/* ==========================================================================
    TABLETS & COMPACT LAPTOPS (under 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    .main {
        padding: 16px;
    }

    .home-layout {
        flex-direction: column;
        gap: 16px;
    }

    .content-col {
        display: contents;
    }

    .trip-dashboard {
        order: 1;
        padding: 20px;
    }

    .voice-col {
        order: 2;
        flex: none;
        padding: 40px 20px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    .hero-identity {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        margin-bottom: 0;
    }

    .asst-name {
        font-size: 30px;
        margin: 0 0 8px 0;
        transform: none;
    }

    .asst-sub {
        font-size: 14px;
        line-height: 1.4;
    }

    .mic-container {
        flex: none;
        margin-top: 10px;
    }

    .talk-btn {
        width: 200px;
        height: 200px;
    }

    .talk-fallback {
        font-size: 45px;
    }

    .voice-status {
        font-size: 11px;
        margin-top: 8px;
    }

    .conversation-col {
        order: 3;
        padding: 20px;
    }

    .route-display {
        margin-bottom: 16px;
        gap: 20px;
    }

    .stop-name {
        font-size: 16px;
    }

    .trip-stats-row {
        padding-top: 16px;
    }

    .stat-label {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .stat-value {
        font-size: 16px;
    }

    .stat-sub {
        font-size: 12px;
        display: block;
        margin-top: 2px;
        margin-left: 0;
    }

    .msg {
        max-width: 95%;
    }

    .msg-bubble {
        font-size: 16px;
        padding: 12px 16px;
    }

    .chips {
        margin-bottom: 12px;
    }

    .chip {
        padding: 10px 16px;
        font-size: 13px;
    }

    .chat-input {
        min-height: 48px;
        padding: 12px 16px;
        font-size: 15px;
    }

    .send-btn {
        font-size: 14px;
        padding: 0 20px;
    }
}

/* ==========================================================================
   MOBILE PHONES (under 768px) - Ultra Compact Mode
   ========================================================================== */
@media (max-width: 768px) {
    .main {
        padding: 8px;
    }

    .home-layout {
        gap: 8px;
    }

    .card {
        border-radius: 12px;
    }

    .trip-dashboard {
        padding: 12px 16px;
    }

    .route-display {
        margin-bottom: 10px;
        gap: 14px;
    }

    .stop-name {
        font-size: 15px;
    }

    .stop-label {
        display: none;
    }

    .cute-taxi {
        width: 20px;
    }

    .trip-stats-row {
        padding-top: 10px;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 6px;
    }

    .stat {
        flex: 1;
        border-right: 1px solid var(--line) !important;
        padding-bottom: 0;
        border-bottom: none;
        text-align: center;
    }

    .stat:last-child {
        border-right: none !important;
    }

    .stat-label {
        font-size: 9px;
        margin-bottom: 2px;
        letter-spacing: 0;
    }

    .stat-value {
        font-size: 13px;
    }

    .stat-sub {
        display: none;
    }

    .voice-col {
        padding: 56px 16px 24px;
        gap: 20px;
    }

    .hero-identity {
        flex-direction: column;
        align-items: center;
    }

    .asst-name {
        font-size: 26px;
    }

    .asst-sub {
        font-size: 12px;
        margin-top: 4px;
    }

    .mic-container {
        margin-top: 8px;
    }

    .talk-btn {
        width: 160px;
        height: 160px;
        border: none;
        background: transparent;
    }

    .talk-fallback {
        font-size: 32px;
    }

    .voice-status {
        font-size: 10px;
        margin-top: 4px;
    }

    .lang-toggle {
        padding: 5px 12px;
        font-size: 12px;
        top: 12px;
        right: 12px;
    }

    html[dir="rtl"] .lang-toggle {
        left: 12px;
        right: auto;
    }

    .conversation-col {
        padding: 12px 16px;
    }

    .transcript-hdr {
        margin-bottom: 4px;
    }

    .messages {
        padding-right: 6px;
    }

    .msg {
        max-width: 88%;
    }

    .chips {
        margin-bottom: 8px;
        gap: 6px;
    }

    .chip {
        padding: 8px 12px;
        font-size: 12px;
    }

    .chat-input {
        min-height: 40px;
        padding: 10px 14px;
        font-size: 14px;
    }

    .send-btn {
        font-size: 13px;
        padding: 0 16px;
    }
}