/* ─── Reset & Base ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --bg-card: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-blue: #4285f4;
    --accent-green: #34a853;
    --accent-red: #ea4335;
    --accent-yellow: #fbbc04;
    --navbar-height: 56px;
    --status-height: 40px;
    --progress-height: 24px;
    --logo-filter: invert(1);
}

body.light {
    --bg-primary: #f0f0f0;
    --bg-secondary: #e0e0e0;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --logo-filter: invert(0);
}

html, body {
    width: 100%; height: 100%;
    overflow: hidden;
    font-family: 'Google Sans', 'Roboto', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    user-select: none;
    -webkit-user-select: none;
    transition: background 0.4s, color 0.4s;
}

/* ─── Login Screen ─── */
#login-screen {
    display: flex; align-items: center; justify-content: center;
    height: 100%; padding: 40px;
}

.login-box {
    text-align: center;
    background: var(--bg-secondary);
    padding: 48px 40px;
    border-radius: 24px;
    width: 340px;
    box-shadow: 0 16px 64px rgba(0,0,0,0.4);
    transition: background 0.4s;
}

.login-logo {
    height: 40px;
    filter: var(--logo-filter);
    margin-bottom: 20px;
}

.login-box h2 {
    font-size: 22px; font-weight: 500;
    margin-bottom: 6px;
}

.login-box p {
    font-size: 14px; color: var(--text-secondary);
    margin-bottom: 24px;
}

.login-box input {
    width: 100%; padding: 14px 18px;
    background: var(--bg-primary);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px; font-family: inherit;
    text-align: center; outline: none;
    transition: border-color 0.3s, background 0.4s;
}
.login-box input:focus { border-color: var(--accent-blue); }
body.light .login-box input { border-color: #ccc; }

.login-btn {
    width: 100%; padding: 14px;
    margin-top: 16px;
    background: var(--accent-blue); color: #fff;
    border: none; border-radius: 12px;
    font-size: 16px; font-weight: 500; font-family: inherit;
    cursor: pointer; transition: opacity 0.2s, transform 0.2s;
}
.login-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.login-error {
    color: var(--accent-red) !important;
    font-size: 13px !important;
    margin-top: 12px !important;
    margin-bottom: 0 !important;
    min-height: 18px;
}

/* ─── Team Selection ─── */
#team-select {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    height: 100%; gap: 24px; padding: 40px;
}
#team-select h1 { font-size: 28px; font-weight: 400; color: var(--text-secondary); margin-bottom: 20px; }
#team-buttons { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.team-btn {
    width: 280px; padding: 20px 32px; border: none; border-radius: 28px;
    font-size: 18px; font-weight: 500; color: white; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase; letter-spacing: 1px;
}
.team-btn:hover { transform: scale(1.05); box-shadow: 0 8px 32px rgba(255,255,255,0.1); }
.team-btn.negro { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.team-btn.cafe { background: linear-gradient(135deg, #3e2723, #5d4037); }
.team-btn.gris { background: linear-gradient(135deg, #37474f, #546e7a); }

/* ─── Main Container (landscape) ─── */
#aa-container {
    display: none;
    flex-direction: column;
    height: 100%; width: 100%;
    background: var(--bg-primary);
    position: relative;
    transition: background 0.4s;
}

/* ─── Status Bar ─── */
.aa-status-bar {
    height: var(--status-height);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 16px;
    background: var(--bg-secondary);
    font-size: 13px; color: var(--text-secondary);
    z-index: 50; flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background 0.4s;
}
body.light .aa-status-bar { border-bottom: 1px solid #ccc; }

.status-left, .status-right {
    display: flex; align-items: center; gap: 10px;
}

.aa-status-bar .time { font-weight: 500; font-size: 15px; }

.infiniti-logo {
    height: 30px;
    filter: var(--logo-filter);
    opacity: 0.8;
    transition: filter 0.4s;
}

.aa-status-bar .team-badge {
    padding: 3px 14px; border-radius: 12px;
    font-size: 11px; text-transform: uppercase;
    letter-spacing: 0.5px; color: #ffffff;
    cursor: pointer; transition: opacity 0.2s, transform 0.2s;
}
.aa-status-bar .team-badge:hover { opacity: 0.8; transform: scale(1.05); }

.weather {
    font-size: 13px; font-weight: 500;
    color: var(--text-secondary);
}

/* WiFi indicator */
.wifi-indicator {
    display: flex; align-items: center;
    height: 30px; width: 22px;
    justify-content: center;
}

.wifi-indicator svg { display: block; overflow: visible; }

.wifi-bar { fill: #555; transition: opacity 0.4s, fill 0.4s; }
.wifi-bar.active { fill: var(--accent-green); }
.wifi-bar.offline { fill: var(--accent-red); }

body.light .wifi-bar { fill: #ccc; }
body.light .wifi-bar.active { fill: var(--accent-green); }
body.light .wifi-bar.offline { fill: var(--accent-red); }

.action-btn {
    cursor: pointer; font-size: 16px;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, transform 0.2s;
}
.action-btn:hover { background: rgba(255,255,255,0.12); transform: scale(1.15); }
body.light .action-btn:hover { background: rgba(0,0,0,0.08); }
.action-btn.muted { background: var(--accent-red); }

/* ─── Content Area ─── */
.aa-content {
    flex: 1; position: relative; overflow: hidden;
}

/* ─── App Screens ─── */
.app-screen {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.5s cubic-bezier(0.4,0,0.2,1);
    opacity: 0; transform: translateX(100%); pointer-events: none;
}
.app-screen.active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.app-screen.exit-left { opacity: 0; transform: translateX(-100%); }

/* ─── Home Screen: Split Layout ─── */
#screen-home { background: var(--bg-primary); transition: background 0.4s; }

.home-split {
    display: flex; width: 100%; height: 100%;
}

/* Left panel: App Grid */
.home-left {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 20px 24px;
    border-right: 1px solid rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
}
body.light .home-left { border-right: 1px solid rgba(0,0,0,0.08); }

/* ─── Decorative background bubbles ─── */
.home-left::before,
.home-left::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.home-left::before {
    width: 280px; height: 280px;
    top: -60px; left: -40px;
    background: radial-gradient(circle, rgba(66,133,244,0.25) 0%, transparent 70%);
    border: 1px solid rgba(66,133,244,0.15);
    animation: bubbleFloat1 8s ease-in-out infinite;
}

.home-left::after {
    width: 200px; height: 200px;
    bottom: -30px; right: -20px;
    background: radial-gradient(circle, rgba(52,168,83,0.22) 0%, transparent 70%);
    border: 1px solid rgba(52,168,83,0.12);
    animation: bubbleFloat2 10s ease-in-out infinite;
}

body.light .home-left::before {
    background: radial-gradient(circle, rgba(66,133,244,0.20) 0%, transparent 70%);
    border: 1px solid rgba(66,133,244,0.18);
}
body.light .home-left::after {
    background: radial-gradient(circle, rgba(52,168,83,0.18) 0%, transparent 70%);
    border: 1px solid rgba(52,168,83,0.15);
}

@keyframes bubbleFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, 15px) scale(1.05); }
}
@keyframes bubbleFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-15px, -20px) scale(1.08); }
}

/* Extra bubble via box-shadow on grid container */
.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 24px;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.app-grid::before {
    content: '';
    position: absolute;
    width: 150px; height: 150px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(234,67,53,0.18) 0%, transparent 70%);
    border: 1px solid rgba(234,67,53,0.10);
    animation: bubbleFloat3 12s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

body.light .app-grid::before {
    background: radial-gradient(circle, rgba(234,67,53,0.15) 0%, transparent 70%);
    border: 1px solid rgba(234,67,53,0.12);
}

@keyframes bubbleFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    33% { transform: translate(-40%, -60%) scale(1.1); }
    66% { transform: translate(-60%, -40%) scale(0.95); }
}

.grid-app {
    display: flex; flex-direction: column;
    align-items: center; gap: 8px;
    cursor: default;
}

.grid-app-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s, background 0.4s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.grid-app-icon svg {
    width: 34px; height: 34px;
}
body.light .grid-app-icon { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.grid-app-name {
    font-size: 11px; color: var(--text-secondary);
    text-align: center; line-height: 1.2;
}

/* Right panel: Assistant */
.home-right {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
}

.assistant-area {
    text-align: center;
}

.aa-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    opacity: 0.7;
}

.aa-title span {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.aa-title-logo {
    opacity: 0.9;
}

.google-g {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    transition: background 0.4s;
}

.google-g.pulse {
    animation: googlePulse 2.5s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(66,133,244,0.4);
}

@keyframes googlePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(66,133,244,0.4); }
    30% { transform: scale(1.08); box-shadow: 0 0 0 18px rgba(66,133,244,0); }
    60%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(66,133,244,0); }
}

.hint-text {
    font-size: 18px; color: var(--text-secondary);
    font-weight: 300; margin-bottom: 6px;
}

.step-indicator {
    font-size: 13px; color: var(--text-secondary);
    opacity: 0.6; margin-top: 12px;
}

/* ─── Google Maps Screen ─── */
#screen-google_maps { background: #1a2634; }
body.light #screen-google_maps { background: #c8e6ff; }

.maps-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; }
.maps-grid {
    position: absolute; top: 0; left: 0; width: 200%; height: 200%;
    background-image: linear-gradient(rgba(66,133,244,0.1) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(66,133,244,0.1) 1px, transparent 1px);
    background-size: 60px 60px; animation: mapPan 20s linear infinite;
}
body.light .maps-grid {
    background-image: linear-gradient(rgba(66,133,244,0.2) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(66,133,244,0.2) 1px, transparent 1px);
}
@keyframes mapPan { 0% { transform: translate(0,0); } 100% { transform: translate(-50%,-50%); } }

.maps-road {
    position: absolute; top: 50%; left: -10%; width: 120%; height: 6px;
    background: rgba(255,255,255,0.15); transform: rotate(-15deg);
}
body.light .maps-road { background: rgba(0,0,0,0.1); }
.maps-road::after {
    content: ''; position: absolute; top: -40px; left: 0;
    width: 100%; height: 6px; background: rgba(255,255,255,0.08);
}
.maps-route {
    position: absolute; top: 50%; left: -10%; width: 120%; height: 8px;
    background: var(--accent-blue); transform: rotate(-15deg);
    box-shadow: 0 0 20px rgba(66,133,244,0.5); animation: routePulse 2s ease-in-out infinite;
}
@keyframes routePulse { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } }

.maps-nav-card {
    position: absolute; top: 30px; left: 50%; transform: translateX(-50%);
    background: var(--bg-card); border-radius: 16px; padding: 18px 24px;
    min-width: 260px; text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5); z-index: 2; transition: background 0.4s;
}
body.light .maps-nav-card { box-shadow: 0 8px 32px rgba(0,0,0,0.15); }
.maps-nav-card .nav-icon { font-size: 28px; margin-bottom: 6px; }
.maps-nav-card .nav-text { font-size: 15px; font-weight: 500; }
.maps-nav-card .nav-dest { font-size: 13px; color: var(--accent-blue); margin-top: 4px; }

.maps-marker {
    position: absolute; bottom: 30%; right: 25%;
    width: 36px; height: 36px; background: var(--accent-red);
    border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
    animation: markerBounce 1s ease-in-out infinite; z-index: 2;
}
.maps-marker::after {
    content: ''; position: absolute; top: 7px; left: 7px;
    width: 22px; height: 22px; background: white; border-radius: 50%;
}
@keyframes markerBounce {
    0%, 100% { transform: rotate(-45deg) translateY(0); }
    50% { transform: rotate(-45deg) translateY(-10px); }
}

/* ─── Google Assistant Screen ─── */
#screen-google_assistant { background: var(--bg-primary); transition: background 0.4s; }

.assistant-dots { display: flex; gap: 12px; margin-bottom: 40px; }
.assistant-dot {
    width: 16px; height: 16px; border-radius: 50%;
    animation: assistantPulse 1.5s ease-in-out infinite;
}
.assistant-dot:nth-child(1) { background: var(--accent-blue); animation-delay: 0s; }
.assistant-dot:nth-child(2) { background: var(--accent-red); animation-delay: 0.2s; }
.assistant-dot:nth-child(3) { background: var(--accent-yellow); animation-delay: 0.4s; }
.assistant-dot:nth-child(4) { background: var(--accent-green); animation-delay: 0.6s; }
@keyframes assistantPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.5); } }

.assistant-response-card {
    background: var(--bg-card); border-radius: 20px;
    padding: 24px 32px; max-width: 320px; text-align: center;
    transition: background 0.4s;
}
.assistant-response-card .icon { font-size: 48px; margin-bottom: 12px; }
.assistant-response-card .text { font-size: 16px; line-height: 1.5; }

/* ─── Play Store Screen ─── */
#screen-play_store { background: var(--bg-primary); transition: background 0.4s; }

.playstore-header {
    position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 12px; z-index: 2;
}
.playstore-header .play-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.playstore-header .play-text { font-size: 18px; font-weight: 500; }

.playstore-download { text-align: center; }
.playstore-app-icon {
    width: 100px; height: 100px; border-radius: 24px;
    background: linear-gradient(135deg, var(--accent-red), #ff6b6b);
    display: flex; align-items: center; justify-content: center;
    font-size: 48px; margin: 0 auto 20px;
}
.playstore-app-name { font-size: 20px; font-weight: 500; margin-bottom: 16px; }
.download-progress {
    width: 240px; height: 4px; background: var(--bg-card);
    border-radius: 2px; margin: 0 auto; overflow: hidden;
}
.download-progress .bar {
    height: 100%; width: 0; background: var(--accent-green);
    border-radius: 2px; transition: width 2s ease-in-out;
}
.download-progress .bar.animate { width: 100%; }
.download-status { margin-top: 12px; font-size: 14px; color: var(--accent-green); }

/* ─── Completion Screen ─── */
#screen-completed { background: var(--bg-primary); transition: background 0.4s; }
.completed-content { text-align: center; padding: 40px; }

.completed-logo {
    display: block; height: 60px; margin: 0 auto 24px;
    filter: var(--logo-filter); animation: scaleIn 0.6s ease-out;
}

.completed-content .check-circle {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--accent-green);
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; margin: 0 auto 20px;
    animation: scaleIn 0.5s ease-out;
}
@keyframes scaleIn { from { transform: scale(0); } to { transform: scale(1); } }

.completed-content h2 { font-size: 24px; font-weight: 400; margin-bottom: 8px; }
.completed-content p { color: var(--text-secondary); font-size: 16px; }

/* ─── Rally Progress Bar (bottom strip) ─── */
.rally-progress {
    height: var(--progress-height);
    background: var(--bg-secondary);
    display: flex; align-items: center;
    padding: 0 12px; gap: 10px; flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    transition: background 0.4s;
}
body.light .rally-progress { border-top: 1px solid #ccc; }

.rally-progress-bar {
    flex: 1; height: 4px; background: #333;
    border-radius: 2px; overflow: hidden; transition: background 0.4s;
}
body.light .rally-progress-bar { background: #ccc; }

.rally-progress-bar::after {
    content: ''; display: block; height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
    border-radius: 2px; transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}

.rally-progress-text {
    font-size: 10px; color: var(--text-secondary);
    font-weight: 500; min-width: 28px; text-align: right;
}

/* ─── Bottom Navigation Bar ─── */
.aa-navbar {
    height: var(--navbar-height);
    background: var(--bg-secondary);
    display: flex; align-items: center; justify-content: center;
    gap: 24px; flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    transition: background 0.4s;
}
body.light .aa-navbar { border-top: 1px solid #ccc; }

.nav-item {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; opacity: 0.5;
    transition: opacity 0.3s, background 0.3s;
    color: var(--text-secondary); font-size: 16px;
}
.nav-item.active { opacity: 1; }
.nav-item.nav-mic {
    width: 44px; height: 44px;
    background: var(--accent-blue);
    opacity: 1; border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}
.nav-item.nav-mic:hover { transform: scale(1.1); }
.nav-item.nav-mic.muted { background: var(--accent-red); }
.nav-music-icon {
    font-size: 20px; color: var(--text-secondary);
}
.nav-dots { font-size: 14px; letter-spacing: 2px; color: var(--text-secondary); }

/* ─── Voice Overlays ─── */
.voice-overlay {
    position: fixed; bottom: 100px; left: 50%;
    transform: translateX(-50%); z-index: 100;
    display: none; flex-direction: column; align-items: center; gap: 12px;
}
.voice-overlay.active { display: flex; }

.listening-indicator {
    display: none; align-items: center; gap: 4px;
    padding: 14px 20px; background: rgba(66,133,244,0.15);
    border-radius: 30px; backdrop-filter: blur(10px);
    border: 1px solid rgba(66,133,244,0.3);
}
.listening-indicator.active { display: flex; }

.listening-bar {
    width: 4px; height: 20px; background: var(--accent-blue);
    border-radius: 2px; animation: listeningBars 0.8s ease-in-out infinite;
}
.listening-bar:nth-child(1) { animation-delay: 0s; }
.listening-bar:nth-child(2) { animation-delay: 0.1s; }
.listening-bar:nth-child(3) { animation-delay: 0.2s; }
.listening-bar:nth-child(4) { animation-delay: 0.3s; }
.listening-bar:nth-child(5) { animation-delay: 0.4s; }
.listening-bar:nth-child(6) { animation-delay: 0.3s; }
.listening-bar:nth-child(7) { animation-delay: 0.2s; }
@keyframes listeningBars { 0%, 100% { height: 8px; } 50% { height: 32px; } }
.listening-label { font-size: 13px; color: var(--accent-blue); margin-left: 8px; }

.speaking-indicator {
    display: none; align-items: center; gap: 8px;
    padding: 14px 20px; background: rgba(52,168,83,0.15);
    border-radius: 30px; backdrop-filter: blur(10px);
    border: 1px solid rgba(52,168,83,0.3);
}
.speaking-indicator.active { display: flex; }

.speaking-wave { display: flex; align-items: center; gap: 3px; }
.speaking-dot {
    width: 6px; height: 6px; background: var(--accent-green);
    border-radius: 50%; animation: speakingWave 1.2s ease-in-out infinite;
}
.speaking-dot:nth-child(1) { animation-delay: 0s; }
.speaking-dot:nth-child(2) { animation-delay: 0.15s; }
.speaking-dot:nth-child(3) { animation-delay: 0.3s; }
.speaking-dot:nth-child(4) { animation-delay: 0.45s; }
.speaking-dot:nth-child(5) { animation-delay: 0.3s; }
@keyframes speakingWave { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(3); } }
.speaking-label { font-size: 13px; color: var(--accent-green); }

/* ─── Response Overlay ─── */
.response-overlay {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(42,42,42,0.95); border-radius: 20px;
    padding: 32px 40px; max-width: 360px; text-align: center;
    z-index: 90; display: none;
    backdrop-filter: blur(20px); box-shadow: 0 16px 64px rgba(0,0,0,0.5);
    animation: fadeInUp 0.3s ease-out;
}
body.light .response-overlay { background: rgba(255,255,255,0.95); box-shadow: 0 16px 64px rgba(0,0,0,0.15); }
.response-overlay.active { display: block; }
@keyframes fadeInUp { from { opacity: 0; transform: translate(-50%,-40%); } to { opacity: 1; transform: translate(-50%,-50%); } }

.response-overlay .response-icon { font-size: 48px; margin-bottom: 16px; }
.response-overlay .response-text { font-size: 18px; line-height: 1.6; font-weight: 300; }
.response-overlay.success .response-icon::after { content: '✓'; color: var(--accent-green); }
.response-overlay.error .response-icon::after { content: '✗'; color: var(--accent-red); }
.response-overlay.wrong_app .response-icon::after { content: '⚠'; color: var(--accent-yellow); }

/* ─── Processing ─── */
.processing-indicator {
    display: none; position: fixed; bottom: 100px; left: 50%;
    transform: translateX(-50%); padding: 12px 24px;
    background: rgba(42,42,42,0.9); border-radius: 20px;
    z-index: 100; backdrop-filter: blur(10px);
    color: var(--text-secondary);
}
body.light .processing-indicator {
    background: rgba(255,255,255,0.92);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    color: #555;
}
.processing-indicator.active { display: flex; align-items: center; gap: 8px; }
.processing-spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.2); border-top-color: var(--accent-blue);
    border-radius: 50%; animation: spin 0.8s linear infinite;
}
body.light .processing-spinner { border-color: rgba(0,0,0,0.1); border-top-color: var(--accent-blue); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Responsive: Desktop landscape ─── */
@media (min-width: 768px) {
    #aa-container {
        max-width: 1100px; max-height: 520px;
        margin: auto; border-radius: 16px; overflow: hidden;
        box-shadow: 0 0 80px rgba(0,0,0,0.8);
        position: absolute; top: 50%; left: 50%;
        transform: translate(-50%, -50%);
    }
}
