:root {
    --primary-blue: #0072ff;
    --secondary-blue: #00c6ff;
    --bg-dark: #050a14;
    --text-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --accent-glow: 0 0 20px rgba(0, 198, 255, 0.5);

    /* O'ta ixcham dinamik proporsional o'lchamlar */
    --logo-size: clamp(0.85rem, 2.2vw, 1.8rem);
    --assistant-size: clamp(0.75rem, 1.6vw, 1.15rem);
    --nav-btn-size: clamp(0.55rem, 1vw, 0.82rem);
    --mic-size: clamp(38px, 5.5vw, 60px);
    --icon-size: clamp(0.7rem, 1.3vw, 1.1rem);
}

.short-text {
    display: none;
}
.full-text {
    display: inline;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
    height: 100dvh;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
}

#app-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

#hologram-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#main-ui {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(0.4rem, 1.5vw, 1.2rem);
    pointer-events: none;
    box-sizing: border-box;
    overflow: hidden;
}

#main-ui * {
    pointer-events: auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.4rem;
    background: linear-gradient(to right, var(--text-white), var(--secondary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    text-align: left;
    margin: 0;
}

#status-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.2rem;
    font-size: 0.85rem;
    opacity: 0.9;
    flex-wrap: nowrap;
    margin: 0;
}

.admin-panel-link {
    color: var(--secondary-blue);
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid var(--secondary-blue);
    padding: 5px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 198, 255, 0.08);
    transition: 0.2s;
}

.admin-panel-link:hover {
    background: rgba(0, 198, 255, 0.2);
    box-shadow: 0 0 12px rgba(0, 198, 255, 0.35);
}

.admin-logout-link {
    color: #ff5252;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 8px;
    transition: 0.2s;
}

.admin-logout-link:hover {
    color: #ff7b7b;
    background: rgba(255, 82, 82, 0.15);
}

.admin-login-link {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 8px;
    transition: 0.2s;
}

.admin-login-link:hover {
    color: var(--secondary-blue);
    background: rgba(0, 198, 255, 0.1);
}

.lang-dropdown {
    position: relative;
    font-size: 0.8rem;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    min-width: 140px;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 6px;
    width: 220px;
    max-height: 280px;
    overflow-y: auto;
    display: none;
    z-index: 200;
}

.lang-dropdown.open .lang-menu {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: left;
    cursor: pointer;
    transition: 0.2s;
}

.flag-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 16px;
    min-width: 24px;
    border-radius: 2px;
    overflow: hidden;
}

.flag-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.lang-flag {
    display: inline-flex;
    width: 24px;
    height: 16px;
    border-radius: 2px;
    overflow: hidden;
}

.lang-flag svg {
    width: 100%;
    height: 100%;
    display: block;
}

.lang-option:hover {
    background: rgba(0, 198, 255, 0.15);
}

#interaction-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 2rem;
    gap: 1.2rem;
}

.glass-panel {
    background: rgba(5, 12, 26, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    max-width: 650px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 198, 255, 0.25);
    max-height: 35vh;
    overflow-y: auto;
}

#assistant-text {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    line-height: 1.55;
    min-height: auto;
}

#bottom-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    padding-bottom: 1.5rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
}

.nav-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.8rem 1.6rem;
    font-size: 0.85rem;
    min-height: 48px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
}

.nav-btn:hover {
    background: var(--primary-blue);
    box-shadow: var(--accent-glow);
    transform: translateY(-3px);
}

.voice-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-shrink: 0;
}

.mic-btn {
    width: 76px;
    height: 76px;
    min-width: 76px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: radial-gradient(circle at 35% 25%, rgba(0, 198, 255, 0.38), rgba(0, 114, 255, 0.22));
    box-shadow: 0 0 25px rgba(0, 198, 255, 0.45);
}

.mic-btn:hover {
    transform: translateY(-3px) scale(1.03);
}

.action-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: rgba(0, 198, 255, 0.22);
    border-color: rgba(0, 198, 255, 0.65);
    transform: translateY(-3px);
}

#btn-call {
    background: rgba(0, 198, 255, 0.12);
    border-color: var(--secondary-blue);
}

#btn-call:hover {
    background: rgba(0, 198, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.4);
}

.btn-complaint-pill {
    background: rgba(255, 82, 82, 0.15);
    border-color: #ff5252;
}

.btn-complaint-pill:hover {
    background: rgba(255, 82, 82, 0.35);
    box-shadow: 0 0 15px rgba(255, 82, 82, 0.4);
}

.pulsing {
    animation: pulse 2s infinite;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    transition: opacity 0.3s ease;
}

#earth-modal {
    z-index: 120;
}

#map-modal {
    z-index: 180;
}

.hide {
    display: none;
    opacity: 0;
}

.modal-content {
    width: 100vw;
    height: 100vh;
    background: rgba(5, 10, 20, 0.96); 
    backdrop-filter: blur(10px) saturate(180%); /* Modal blur kamaytirildi */
    border: none;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

#map-canvas-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    border-radius: 0; /* Full screen uchun chetlarni tekislaymiz */
    perspective: 2000px;
    background: #000;
    touch-action: none;
    cursor: grab;
}

#map-modal .modal-content header {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: rgba(0,0,0,0.4);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.1);
    pointer-events: none; /* Mapni bosishga halal bermaslik uchun */
}

#map-modal .modal-content header h3 {
    margin: 0;
    color: white;
    font-size: 1.2rem;
}

#map-modal .close-modal {
    position: absolute !important;
    top: 30px !important;
    right: 40px !important;
    left: auto !important; /* Chap tarafni bekor qilamiz */
    z-index: 10005 !important;
    font-size: 2.2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 82, 82, 0.15);
    border: 2px solid #ff5252;
    color: #ff5252;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto !important;
}


#map-modal .close-modal:hover {
    background: #ff5252;
    color: white;
    transform: scale(1.1);
}


#map-modal.map-preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    background: #000;
    overflow: hidden;
    touch-action: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#map-modal.hide {
    display: none !important;
}



#map-canvas {
    position: absolute;
    top: 0;
    left: 0;
    background: transparent !important;
}

.close-map-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    pointer-events: auto !important;
}

.close-map-btn:hover {
    background: rgba(255, 82, 82, 0.7);
    transform: scale(1.1);
}

#btn-voice.active-recording {
    background: #ff5252 !important;
    animation: pulse-red 1.5s infinite;
    box-shadow: 0 0 20px #ff5252;
}

#btn-complaint-record.active-recording {
    background: #ff5252 !important;
    animation: pulse-red 1.5s infinite;
    box-shadow: 0 0 20px #ff5252;
}

@keyframes pulse-red {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 15px rgba(255, 82, 82, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 82, 82, 0); }
}

#flights-table-container {
    flex: 1;
    overflow-y: auto;
    margin-top: 0;
    display: flex;
    flex-direction: column;
}

.flights-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    padding: 1.6rem 2rem;
    background: rgba(0, 198, 255, 0.04);
    border-bottom: 1px solid var(--glass-border);
}

.flight-tab-btn {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.75);
    padding: 1rem 3rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-width: 280px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.flight-tab-btn i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.flight-tab-btn:hover {
    border-color: var(--secondary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 198, 255, 0.4);
}

.flight-tab-btn.active {
    background: linear-gradient(135deg, rgba(0, 198, 255, 0.4), rgba(0, 114, 255, 0.3));
    border-color: var(--secondary-blue);
    color: #ffffff;
    box-shadow: 0 0 25px rgba(0, 198, 255, 0.6), inset 0 0 15px rgba(0, 198, 255, 0.2);
    transform: scale(1.02);
}

#flights-table {
    width: 100%;
    border-collapse: collapse;
    color: white;
}

#flights-table th {
    color: var(--secondary-blue);
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    background: rgba(0, 198, 255, 0.08);
    border-bottom: 2px solid rgba(0, 198, 255, 0.4);
    padding: 1.4rem 1.8rem;
    text-align: left;
}

#flights-table td {
    padding: 1.3rem 1.8rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
    vertical-align: middle;
}

/* 1. Reys Ustuni */
.col-flight .flight-dir {
    display: block;
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.col-flight .flight-no {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: #00f2fe;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

/* 2. Yo'nalish Ustuni */
.col-route {
    font-size: 1.25rem;
    font-weight: 500;
    color: #e2f1ff;
}
.col-route strong {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
}
.col-route i {
    font-size: 1.15rem;
    margin: 0 8px;
}

/* 3. Vaqt Ustuni */
.col-time .flight-time {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Orbitron', monospace;
    letter-spacing: 1px;
}

/* 4. Gate Ustuni */
.col-gate .flight-gate {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffcc00;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.4);
}

/* 5. Stoyka Ustuni */
.col-counter .flight-counter {
    font-size: 1.25rem;
    font-weight: 600;
    color: #00e5ff;
    font-family: 'Orbitron', sans-serif;
}

/* 6. Holat Ustuni */
.status-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

#flights-table th:nth-child(5),
#flights-table td:nth-child(5) {
    display: table-cell;
}

#flights-table tr:hover {
    background: rgba(0, 198, 255, 0.12);
}

/* 3D Earth Modal - RIGHT SIDE Flight Info Panel */
.earth-flight-info-panel {
    width: 420px;
    min-width: 360px;
    max-width: 480px;
    background: rgba(6, 14, 28, 0.88);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0, 198, 255, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    padding: 1.2rem;
    background: linear-gradient(135deg, rgba(0, 198, 255, 0.15), rgba(0, 114, 255, 0.15));
    border-bottom: 1px solid rgba(0, 198, 255, 0.25);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #00f2fe;
    text-align: center;
    letter-spacing: 2px;
    text-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
}

.terminal-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #e2f1ff;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
    white-space: pre-wrap;
    word-wrap: break-word;
    padding: 1.8rem;
    flex: 1;
    overflow-y: auto;
    background: radial-gradient(circle at top left, rgba(0, 198, 255, 0.04), transparent 60%);
}

/* Scrollbar styling for terminal */
.terminal-text::-webkit-scrollbar {
    width: 6px;
}

.terminal-text::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.terminal-text::-webkit-scrollbar-thumb {
    background: rgba(0, 198, 255, 0.4);
    border-radius: 4px;
}

/* Typing cursor animation */
.terminal-text.typing::after {
    content: '▋';
    color: #00f2fe;
    animation: blink 0.8s infinite;
}

/* Floating Map Controls */
.map-floating-controls {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1002;
}

.map-control-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(6, 14, 28, 0.85);
    border: 1px solid rgba(0, 198, 255, 0.3);
    color: #00f2fe;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.map-control-btn:hover {
    background: rgba(0, 198, 255, 0.25);
    border-color: #00f2fe;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}

.map-control-btn:active {
    transform: translateY(0);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Glow effect on text */
.terminal-text {
    animation: terminal-glow 3s ease-in-out infinite;
}

@keyframes terminal-glow {
    0%, 100% { 
        text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    }
    50% { 
        text-shadow: 0 0 10px rgba(0, 255, 0, 0.8), 0 0 20px rgba(0, 255, 0, 0.4);
    }
}

.earth-route-actions {
    border-top: 1px solid rgba(0, 198, 255, 0.25);
    padding: 0.8rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: 40%;
    overflow-y: auto;
    background: rgba(1, 10, 18, 0.94);
}

.earth-route-btn {
    border: 1px solid rgba(0, 198, 255, 0.4);
    background: linear-gradient(135deg, rgba(0, 198, 255, 0.22), rgba(0, 114, 255, 0.18));
    color: #d9f6ff;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    text-align: left;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

#time-display { font-family: 'Orbitron', sans-serif; font-size: 1.2rem; color: var(--accent); opacity: 0.9; }



.earth-route-btn:hover {
    border-color: rgba(0, 198, 255, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.4);
}

.earth-route-btn .counter {
    color: #00ff90;
}

.earth-route-empty {
    color: rgba(180, 255, 220, 0.75);
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.82rem;
    line-height: 1.5;
}

/* Weather Temp Button */
.weather-temp-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--secondary-blue);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.1);
}

.weather-temp-btn:hover {
    background: rgba(0, 198, 255, 0.15);
    border-color: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: var(--accent-glow);
}

.weather-temp-btn i {
    font-size: 1.1rem;
    color: #ffc400; /* Sun color */
    text-shadow: 0 0 5px rgba(255, 196, 0, 0.5);
}

/* Weather Modal Specifics */
.weather-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.weather-card:hover {
    background: rgba(0, 198, 255, 0.1);
    border-color: var(--secondary-blue);
    transform: scale(1.03);
}

.weather-card h4 {
    font-family: 'Orbitron', sans-serif;
    color: var(--secondary-blue);
    margin-bottom: 5px;
    font-size: 1rem;
}

.weather-card .temp {
    font-size: 1.8rem;
    font-weight: 700;
}

.weather-card .desc {
    font-size: 0.85rem;
    opacity: 0.7;
    text-transform: capitalize;
}

.weather-card img {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}

.loader-container {
    color: var(--secondary-blue);
    text-align: center;
    padding: 20px;
}
/* Inline stoyka links */
.inline-stoyka-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 198, 255, 0.15);
    border: 1px solid rgba(0, 198, 255, 0.3);
    color: #00e5ff;
    padding: 0 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    margin: 0 2px;
}

.inline-stoyka-link:hover {
    background: rgba(0, 198, 255, 0.3);
    border-color: #00e5ff;
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.4);
    transform: translateY(-1px);
}

.stoyka-tag {
    background: #00ff90;
    color: #050a14;
    padding: 0 5px;
    border-radius: 3px;
    font-size: 0.85em;
    font-family: 'Orbitron', sans-serif;
}

/* Terminal within Earth modal interactive links */
.terminal-text .inline-stoyka-link {
    background: rgba(0, 255, 0, 0.1);
    border-color: rgba(0, 255, 0, 0.3);
    color: #00ff00;
}

.terminal-text .inline-stoyka-link:hover {
    background: rgba(0, 255, 0, 0.2);
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
}

.terminal-text .stoyka-tag {
    background: #00ff00;
    color: #000;
}

/* QR Code Container Styling */
#qr-container {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 500;
    width: 440px; /* 400px img + padding */
    padding: 20px;
    background: rgba(5, 10, 20, 0.85);
    backdrop-filter: blur(25px);
    border: 2px solid var(--secondary-blue);
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0, 198, 255, 0.4);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#qr-container.hide {
    right: -500px;
    opacity: 0;
    pointer-events: none;
}

.qr-content {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#qr-image {
    width: 400px;
    height: 400px;
    object-fit: contain;
    border-radius: 12px;
    background: white;
    padding: 10px;
}

#qr-label {
    font-family: 'Orbitron', sans-serif;
    color: var(--secondary-blue);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
}

#close-qr {
    position: absolute;
    top: -45px;
    right: -15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--glass-border);
    color: white;
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 501;
}

#close-qr:hover {
    background: rgba(255, 82, 82, 0.3);
    border-color: #ff5252;
    color: #ff5252;
    transform: scale(1.1);
}

/* Xarita yon panellari */
.map-side-panel {
    position: absolute;
    top: 100px;
    bottom: 40px;
    width: 280px;
    background: rgba(5, 10, 20, 0.75);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.4s ease;
}

.map-side-panel.left { left: 30px; }
.map-side-panel.right { right: 30px; }

.map-side-panel .panel-header {
    padding: 15px;
    background: linear-gradient(135deg, rgba(0, 198, 255, 0.2), transparent);
    border-bottom: 1px solid var(--glass-border);
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    text-align: center;
    color: var(--secondary-blue);
    letter-spacing: 1px;
}

.map-side-panel .panel-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.panel-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-item:hover {
    background: rgba(0, 198, 255, 0.15);
    border-color: var(--secondary-blue);
    transform: translateX(5px);
}

.panel-item i {
    width: 20px;
    text-align: center;
    color: var(--secondary-blue);
}

/* Umumiy modal yopish tugmasi (boshqa modallar uchun) */
.modal-content header .close-modal {
    position: absolute !important;
    top: 20px !important;
    right: 15px !important;
    font-size: 2.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    cursor: pointer;
    line-height: 1;
    transition: 0.3s;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 1010;
}

.modal-content header .close-modal:hover {
    color: #ff5252;
    background: rgba(255, 82, 82, 0.1);
}







/* Til tanlash modal - 100% Markazda, Toza va Premium Kiosk Dizayn */
.language-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 10000 !important;
    background: rgba(3, 7, 16, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.5rem !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.language-modal-content {
    width: 95vw !important;
    max-width: 1200px !important;
    height: auto !important;
    max-height: 92vh !important;
    background: rgba(6, 14, 28, 0.95) !important;
    border: 2px solid rgba(0, 198, 255, 0.4) !important;
    box-shadow: 0 0 50px rgba(0, 198, 255, 0.3), inset 0 0 30px rgba(0, 198, 255, 0.08) !important;
    border-radius: 24px !important;
    padding: 2rem 2.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    margin: auto !important;
}

.language-modal-content h2 {
    font-family: 'Orbitron', sans-serif !important;
    font-size: clamp(1.2rem, 2vw, 1.8rem) !important;
    color: #00f2fe !important;
    text-align: center !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 0 0 15px rgba(0, 242, 254, 0.5) !important;
    flex-shrink: 0 !important;
}

.language-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 1rem !important;
    width: 100% !important;
    max-height: calc(90vh - 120px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 0.5rem !important;
    box-sizing: border-box !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(0, 198, 255, 0.4) transparent !important;
}

.language-grid::-webkit-scrollbar {
    width: 6px;
}

.language-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 198, 255, 0.4);
    border-radius: 4px;
}

.language-option-card {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1.5px solid rgba(0, 198, 255, 0.25) !important;
    border-radius: 14px !important;
    padding: 1.1rem 0.8rem !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.language-option-card:hover {
    background: linear-gradient(135deg, rgba(0, 198, 255, 0.25), rgba(0, 114, 255, 0.2)) !important;
    border-color: #00f2fe !important;
    transform: translateY(-4px) scale(1.03) !important;
    box-shadow: 0 8px 25px rgba(0, 198, 255, 0.4) !important;
}

.language-option-card .flag-icon {
    width: 48px !important;
    height: 32px !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4) !important;
}

.language-option-card .flag-icon svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.language-option-card .lang-name {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    letter-spacing: 0.5px !important;
}

.language-modal {
    display: flex !important;
}

.language-modal.hide {
    display: none !important;
}





/* ========================================================
   TO'LIQ RESPONSIVE DIZAYN (MOBILE, TABLET, KIOSK, DESKTOP)
   ======================================================== */

/* 1. Katta Ekranlar va Kiosklar (1400px+) */
@media (min-width: 1400px) {
    #main-ui {
        padding: 2.5rem 3rem;
    }
    
    .logo-text {
        font-size: 2.8rem;
        letter-spacing: 0.5rem;
    }
    
    #assistant-text {
        font-size: 1.35rem;
    }
    
    .nav-btn {
        padding: 1.1rem 2.2rem;
        font-size: 1.05rem;
    }
    
    .mic-btn {
        width: 82px;
        height: 82px;
        font-size: 1.8rem;
    }
}

/* 2. Katta Planshetlar va O'rta Ekranlar (1024px - 1399px) */
@media (max-width: 1399px) and (min-width: 992px) {
    #main-ui {
        padding: 1.5rem;
    }
    
    .logo-text {
        font-size: 2rem;
        letter-spacing: 0.3rem;
    }
    
    #assistant-text {
        font-size: 1.15rem;
    }
    
    #bottom-nav {
        gap: 0.8rem;
        justify-content: center;
    }
    
    .nav-btn {
        padding: 0.85rem 1.4rem;
        font-size: 0.9rem;
    }
    
    .mic-btn {
        width: 68px;
        height: 68px;
        font-size: 1.45rem;
    }
}

/* 3. Portret / Vertikal Kiosk, Planshet va Mobil Qurilmalar (max-width: 991px) */
@media (max-width: 991px) {
    body {
        overflow: hidden;
        height: 100dvh;
    }
    
    #app-container {
        height: 100dvh;
        width: 100vw;
        overflow: hidden;
    }
    
    #main-ui {
        padding: 0.5rem 0.4rem 0.6rem 0.4rem !important;
        height: 100dvh !important;
        justify-content: space-between !important;
    }
    
    /* 1-Pog'ona: Nom Markazda */
    header {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        gap: 3px !important;
        text-align: center !important;
        margin: 0 auto !important;
    }
    
    .logo-text {
        font-size: 1.25rem !important;
        letter-spacing: 0.1rem !important;
        margin: 0 auto !important;
        text-align: center !important;
    }
    
    /* 2-Pog'ona: Status Bar Markazda */
    #status-bar {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        font-size: 0.65rem !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
        margin: 0 auto !important;
    }
    
    #ai-status {
        display: none !important;
    }
    
    #time-display {
        font-size: 0.65rem !important;
    }
    
    .weather-temp-btn {
        padding: 2px 6px !important;
        font-size: 0.62rem !important;
        border-radius: 4px !important;
    }
    
    .weather-temp-btn i, .weather-temp-btn span {
        font-size: 0.62rem !important;
    }
    
    .lang-toggle {
        min-width: auto !important;
        padding: 2px 6px !important;
        font-size: 0.62rem !important;
        border-radius: 4px !important;
        gap: 3px !important;
    }
    
    .lang-flag, .flag-icon {
        width: 14px !important;
        height: 9px !important;
        min-width: 14px !important;
    }
    
    .admin-panel-link {
        color: var(--secondary-blue);
        text-decoration: none;
        font-size: 0.62rem;
        border: 1px solid var(--secondary-blue);
        padding: 2px 5px;
        border-radius: 4px;
        display: inline-flex;
        align-items: center;
        gap: 2px;
    }
    
    .admin-panel-link .admin-text {
        display: none !important;
    }
    
    .admin-logout-link {
        color: #ff5252;
        text-decoration: none;
        font-size: 0.65rem;
        display: inline-flex;
        align-items: center;
    }

    .admin-login-link {
        color: rgba(255, 255, 255, 0.35);
        text-decoration: none;
        font-size: 0.65rem;
        display: inline-flex;
        align-items: center;
    }

    /* 4-Pog'ona: Chat oynasi */
    #interaction-area {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-end !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 0 0.3rem 0 !important;
        margin: 0 auto !important;
    }
    
    #voice-waves {
        margin-bottom: 0.3rem;
    }
    
    .bar {
        width: 2px;
        height: 10px;
    }
    
    #chat-output.glass-panel {
        width: 94% !important;
        max-width: 380px !important;
        margin: 0 auto 16px auto !important;
        padding: 0.6rem 0.9rem !important;
        border-radius: 14px !important;
        max-height: 18vh !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 8px rgba(0, 198, 255, 0.2) !important;
    }
    
    #assistant-text {
        font-size: 0.8rem !important;
        line-height: 1.35 !important;
        min-height: auto !important;
        text-align: center !important;
    }
    
    /* Mobil & Planshet Pastki Boshqaruv Dok-Paneli (Pog'onama-pog'ona Tiered Layout) */
    #bottom-nav {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        grid-template-areas:
            "voice voice voice voice"
            "map call flights complaint" !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 390px !important;
        margin: 0 auto !important;
        padding: 0 4px !important;
        box-sizing: border-box !important;
    }
    
    /* 5-Pog'ona: Mikrofon va ovoz boshqaruvi - Katta va Qoq Markazda */
    .voice-controls {
        grid-area: voice !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 16px !important;
        width: 100% !important;
        padding: 0 !important;
        transform: none !important;
        margin: 0 auto 4px auto !important;
    }
    
    .mic-btn {
        width: 66px !important;
        height: 66px !important;
        min-width: 66px !important;
        font-size: 1.65rem !important;
        margin: 0 !important;
        box-shadow: 0 0 28px rgba(0, 198, 255, 0.55) !important;
    }
    
    .action-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        font-size: 0.9rem !important;
    }
    
    /* 6-Pog'ona: 4 ta Asosiy Xizmat Tugmasi (Harita, Operator, Reyslar, E'tiroz - 100% bir xil) */
    #btn-map { grid-area: map !important; }
    #btn-call { grid-area: call !important; background: rgba(0, 198, 255, 0.12) !important; border: 1px solid var(--secondary-blue) !important; }
    #btn-flights { grid-area: flights !important; }
    #btn-complaint { grid-area: complaint !important; background: rgba(255, 82, 82, 0.2) !important; border: 1px solid #ff5252 !important; }
    
    .nav-btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding: 6px 2px !important;
        font-size: 0.6rem !important;
        min-height: 36px !important;
        border-radius: 10px !important;
        white-space: nowrap !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        letter-spacing: 0px !important;
    }
    
    .nav-btn i {
        font-size: 0.8rem !important;
    }
    
    .btn-complaint-pill {
        background: rgba(255, 82, 82, 0.2) !important;
        border: 1px solid #ff5252 !important;
    }
    
    /* 3D Globus Modal - Vertikal layout */
    #earth-modal .modal-content > div:nth-child(2) {
        flex-direction: column !important;
    }
    
    #earth-container {
        height: 52vh !important;
        min-height: 260px !important;
        width: 100% !important;
    }
    
    .earth-flight-info-panel {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        height: 48vh !important;
        border-left: none !important;
        border-top: 1px solid var(--secondary-blue) !important;
    }
    
    /* Xarita Yon Panellari - Planshetda ixcham */
    .map-side-panel {
        width: 200px;
        top: 60px;
        bottom: 15px;
    }
    
    .map-side-panel.left { left: 10px; }
    .map-side-panel.right { right: 10px; }
    
    .panel-item {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    /* Modal mobil konteyner */
    .modal {
        padding: 0;
    }
    
    .modal-content {
        width: 100vw !important;
        height: 100dvh !important;
        max-width: 100vw !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        border: none !important;
        padding: 0 !important;
    }
    
    .modal-content header {
        padding: 0.8rem 1rem !important;
    }
    
    .modal-content header h3 {
        font-size: 1.05rem;
    }
    
    .close-modal {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.4rem !important;
        top: 10px !important;
        right: 10px !important;
    }
    
    /* Xarita Modali Mobilda */
    #map-modal .modal-content {
        display: flex;
        flex-direction: column;
    }
    
    #map-canvas-container {
        flex: 1;
        width: 100%;
        height: 100%;
    }
    
    /* Xarita yon panellari mobilda ixcham pastki karta shaklida */
    .map-side-panel {
        width: 48%;
        max-height: 28vh;
        top: auto;
        bottom: 12px;
        background: rgba(5, 10, 20, 0.92);
        border-radius: 12px;
    }
    
    .map-side-panel.left { left: 8px; }
    .map-side-panel.right { right: 8px; }
    
    .map-side-panel .panel-header {
        padding: 8px;
        font-size: 0.75rem;
    }
    
    .panel-item {
        padding: 6px 8px;
        font-size: 0.72rem;
        gap: 6px;
    }
    
    .map-floating-controls {
        bottom: calc(28vh + 20px);
        right: 12px;
    }
    
    .map-control-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    /* Reyslar Jadvali Mobilda - 100% Ekranga Sig'adigan Format */
    .flights-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding: 0.5rem 0.4rem;
    }
    
    .flight-tab-btn {
        width: 100%;
        padding: 0.5rem 0.3rem;
        font-size: 0.68rem;
        justify-content: center;
        gap: 4px;
        border-radius: 8px;
        letter-spacing: 0px;
    }
    
    .flight-tab-btn i {
        font-size: 0.8rem;
    }
    
    #flights-table-container {
        width: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 0 0.2rem 1rem 0.2rem;
    }
    
    #flights-table {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        table-layout: fixed;
        font-size: 0.65rem;
    }
    
    #flights-table th,
    #flights-table td {
        padding: 6px 2px;
        font-size: 0.62rem;
        line-height: 1.2;
        word-break: break-word;
        vertical-align: middle;
    }

    #flights-table th {
        font-size: 0.6rem;
        padding: 8px 2px;
    }

    /* Stoyka ustunini mobilda yashiramiz - qolgan 5 ta muhim ustun to'liq kenglikda sig'adi */
    #flights-table th:nth-child(5),
    #flights-table td:nth-child(5) {
        display: none;
    }

    /* Ustunlar proporsiyasi */
    #flights-table th:nth-child(1), #flights-table td:nth-child(1) { width: 22%; font-size: 0.6rem; }
    #flights-table th:nth-child(2), #flights-table td:nth-child(2) { width: 34%; font-size: 0.62rem; }
    #flights-table th:nth-child(3), #flights-table td:nth-child(3) { width: 14%; text-align: center; }
    #flights-table th:nth-child(4), #flights-table td:nth-child(4) { width: 11%; text-align: center; }
    #flights-table th:nth-child(6), #flights-table td:nth-child(6) { width: 19%; text-align: center; }

    .status-badge {
        display: inline-block;
        padding: 2px 3px;
        border-radius: 4px;
        font-size: 0.55rem;
        line-height: 1.1;
        white-space: normal;
        word-break: break-word;
    }
    
    /* 3D Globus Mobilda */
    #earth-modal .modal-content {
        height: 100dvh !important;
    }
    
    #earth-container {
        height: 55vh !important;
    }
    
    .earth-flight-info-panel {
        height: 45vh !important;
        max-height: 45vh !important;
    }
    
    .terminal-header {
        padding: 0.7rem 1rem;
        font-size: 0.75rem;
    }
    
    .terminal-text {
        font-size: 0.8rem;
        padding: 0.8rem;
    }
    
    /* Ob-havo Mobilda */
    .weather-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
        gap: 0.8rem !important;
        padding: 0.8rem !important;
    }
    
    .weather-card {
        padding: 0.8rem !important;
    }
    
    .weather-card .city-name {
        font-size: 0.9rem;
    }
    
    .weather-card .temp {
        font-size: 1.3rem;
    }
    
    /* Til Tanlash Modali Mobilda */
    .language-modal-content {
        width: 96% !important;
        max-width: 96% !important;
        padding: 1.2rem !important;
        border-radius: 16px !important;
    }
    
    .language-modal-content h2 {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .language-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.7rem !important;
        max-height: 72vh !important;
        padding: 0.2rem !important;
    }
    
    .language-option-card {
        padding: 0.8rem 0.5rem !important;
        gap: 6px !important;
    }
    
    .language-option-card .flag-icon {
        width: 38px !important;
        height: 26px !important;
    }
    
    .language-option-card .lang-name {
        font-size: 0.82rem !important;
    }
}

/* 5. Juda Kichik Mobil Telefonlar (max-width: 400px) */
@media (max-width: 400px) {
    .logo-text {
        font-size: 1.2rem;
    }
    
    .mic-btn {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }
    
    #assistant-text {
        font-size: 0.88rem;
    }
    
    .nav-btn {
        font-size: 0.72rem;
    }
    
    .map-side-panel {
        width: 47%;
    }
}

/* 6. Mobil Landshaft Rejimi (max-height: 550px va landscape) */
@media (max-height: 550px) and (orientation: landscape) {
    #main-ui {
        padding: 0.4rem 1rem;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
    
    header {
        width: 100%;
        margin-bottom: 0.2rem;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    #interaction-area {
        flex: 1 1 55%;
        padding: 0;
    }
    
    #voice-waves {
        display: none;
    }
    
    #chat-output.glass-panel {
        max-height: 48vh;
        padding: 0.6rem 0.8rem;
    }
    
    #assistant-text {
        font-size: 0.88rem;
    }
    
    #bottom-nav {
        flex: 1 1 40%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        justify-content: flex-end;
    }
    
    .nav-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.72rem;
        min-height: 34px;
    }
    
    .mic-btn {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
    
    #earth-modal .modal-content > div:nth-child(2) {
        flex-direction: row !important;
    }
    
    #earth-container {
        height: 80vh !important;
    }
    
    .earth-flight-info-panel {
        height: 80vh !important;
        width: 280px !important;
    }
}
