:root {
    --bg-main: #060913;
    --bg-surface: #0f172a;
    --bg-card: #141e33;
    --bg-card-active: #1e293b;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-focus: #10b981;
    --accent-emerald: #10b981;
    --accent-cyan: #06b6d4;
    --accent-rose: #f43f5e;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --focus-glow: 0 0 25px rgba(16, 185, 129, 0.6), inset 0 0 10px rgba(16, 185, 129, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body.tv-app {
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    user-select: none;
    display: flex;
}

/* ── Fullscreen Video Player ── */
.player-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* Suppress native browser video loading/buffering arc */
video::-webkit-media-controls-overlay-enclosure {
    display: none !important;
}
video::-webkit-media-controls-loading-panel {
    display: none !important;
}
video::-webkit-media-controls-spinner {
    display: none !important;
}

/* ── Modern Radar Logo Ripple Loader ── */
.player-loader {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 25;
    background: rgba(2, 6, 23, 0.88);
    padding: 22px 34px;
    border-radius: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.65), 0 0 25px rgba(16, 185, 129, 0.15);
}

.loader-ripple-container {
    position: relative;
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ripple-wave {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.65);
    background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, rgba(16, 185, 129, 0) 70%);
    animation: radarWavePulse 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
    pointer-events: none;
}
.wave-2 {
    animation-delay: 0.9s;
}

@keyframes radarWavePulse {
    0% {
        transform: scale(0.7);
        opacity: 0.9;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.ripple-logo-badge {
    position: relative;
    z-index: 2;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(145deg, #0f172a, #020617);
    border: 2px solid #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.45);
    animation: badgeBreath 1.8s ease-in-out infinite alternate;
}

@keyframes badgeBreath {
    from { transform: scale(1); box-shadow: 0 0 15px rgba(16, 185, 129, 0.35); }
    to { transform: scale(1.06); box-shadow: 0 0 28px rgba(16, 185, 129, 0.65); }
}

.ripple-logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

#loader-text {
    font-size: 14px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.loader-subtag {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #10b981;
    text-transform: uppercase;
    background: rgba(16, 185, 129, 0.12);
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

/* ── Player Error Overlay ── */
.player-error {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 9, 19, 0.9);
    z-index: 20;
    backdrop-filter: blur(15px);
}

.error-box {
    text-align: center;
    max-width: 440px;
    padding: 36px;
    background: var(--bg-surface);
    border-radius: 24px;
    border: 1px solid rgba(244, 63, 94, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.error-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.error-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

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

.btn-retry {
    background: var(--accent-emerald);
    color: #000;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* ── TV OSD (On-Screen Display) ── */
.tv-osd {
    position: absolute;
    bottom: 30px;
    left: 40px;
    right: 40px;
    z-index: 30;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 18px 28px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    animation: osdSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

@keyframes osdSlideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.osd-content {
    display: flex;
    align-items: center;
    gap: 22px;
}

.osd-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 70px;
}

#osd-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: #000;
    border-radius: 12px;
    padding: 4px;
    border: 1px solid var(--border-subtle);
}

.osd-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-cyan);
}

.osd-meta {
    flex: 1;
}

#osd-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.osd-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-cat { background: rgba(255, 255, 255, 0.1); color: var(--text-main); }
.tag-live { background: rgba(244, 63, 94, 0.2); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.4); }
.tag-hd { background: rgba(6, 182, 212, 0.15); color: #38bdf8; border: 1px solid rgba(6, 182, 212, 0.3); }
.tag-lan { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }

.osd-clock-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
}

.osd-clock {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.osd-date {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

/* ── Channel Quick Jump Overlay ── */
.channel-number-display {
    position: absolute;
    top: 40px;
    right: 50px;
    z-index: 50;
    background: rgba(15, 23, 42, 0.95);
    border: 2px solid var(--accent-emerald);
    padding: 16px 30px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), var(--focus-glow);
}

.jump-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.jump-digits {
    font-family: 'JetBrains Mono', monospace;
    font-size: 38px;
    font-weight: 800;
    color: #fff;
}

/* ── Guide Sidebar (TV & Mobile) ── */
.guide-sidebar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 380px;
    max-width: 85vw;
    background: rgba(8, 12, 24, 0.58);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 40;
    display: flex;
    flex-direction: column;
    box-shadow: 15px 0 45px rgba(0, 0, 0, 0.5);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.guide-sidebar.sidebar-collapsed {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}

.sidebar-header {
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-subtle);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.brand-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.brand-text h1 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
}

.brand-text span {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-emerald);
}

.mobile-only {
    display: none;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
}

/* Search Bar */
.search-bar-wrap {
    padding: 14px 20px 8px;
}

#channel-search {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 14px;
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

#channel-search:focus {
    border-color: var(--accent-emerald);
    background: rgba(255, 255, 255, 0.08);
}

/* Categories Bar */
.categories-bar {
    display: flex;
    gap: 8px;
    padding: 10px 20px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--border-subtle);
}
.categories-bar::-webkit-scrollbar { display: none; }

.category-tab {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 10px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-tab.active {
    background: var(--accent-emerald);
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Channels List Grid */
.channels-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.channels-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.channel-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background 0.18s ease, border-color 0.18s ease;
    outline: none;
}

.channel-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.channel-card.active-playing {
    background: linear-gradient(90deg, rgba(244, 63, 94, 0.22) 0%, rgba(244, 63, 94, 0.05) 100%) !important;
    border-color: rgba(244, 63, 94, 0.4) !important;
    border-left: 3.5px solid #f43f5e !important;
    box-shadow: 0 4px 20px -2px rgba(244, 63, 94, 0.25);
}

.channel-card.active-playing .channel-name {
    color: #ffffff !important;
    font-weight: 700;
}

.channel-card.active-playing .channel-sub {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ── Live Channel Equalizer Animation (Bar-Dance) ── */
.channel-eq-bars {
    display: none;
    align-items: flex-end;
    gap: 2.5px;
    height: 16px;
    margin-left: auto;
    padding-right: 4px;
    flex-shrink: 0;
}

.channel-card.active-playing .channel-eq-bars {
    display: flex;
}

.eq-bar {
    width: 3px;
    background-color: #f43f5e;
    border-radius: 2px 2px 0 0;
}

@keyframes bar-dance {
    0%, 100% { height: 4px; }
    50% { height: 16px; }
}

.eq-bar:nth-child(1) { animation: bar-dance 0.8s infinite ease-in-out 0.1s; }
.eq-bar:nth-child(2) { animation: bar-dance 0.8s infinite ease-in-out 0.3s; }
.eq-bar:nth-child(3) { animation: bar-dance 0.8s infinite ease-in-out 0.2s; }

.card-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    min-width: 22px;
}

.card-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    background: #000;
    border-radius: 8px;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-info {
    flex: 1;
    min-width: 0;
}

.channel-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-sub {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 2px;
}

/* ── TV Remote D-Pad Focus Styles (The Gold Standard) ── */
.focus-item:focus,
.channel-card:focus,
.category-tab:focus,
.tv-focused {
    border-color: var(--border-focus) !important;
    background: rgba(16, 185, 129, 0.22) !important;
    transform: scale(1.03) translateZ(0);
    box-shadow: var(--focus-glow) !important;
    color: #fff !important;
    z-index: 10;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-subtle);
    background: rgba(6, 9, 19, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tv-help-hint {
    font-size: 10px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
}

.kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 1px 4px;
    font-family: monospace;
    font-size: 9px;
    color: var(--text-main);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-emerald);
}

.dot-online {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
}

/* ── Mobile Floating Header Button ── */
.toggle-guide-fab {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 35;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 8px 16px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

.toggle-guide-fab:active {
    transform: scale(0.95);
}

/* ── Header Actions ── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── About Modal ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.about-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(16, 185, 129, 0.15);
    display: flex;
    flex-direction: column;
}

.btn-close-modal {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

.about-header {
    text-align: center;
    margin-bottom: 20px;
}

.about-logo {
    width: 68px;
    height: 68px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.about-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.about-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.15);
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.about-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 16px;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.about-row:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
}

.about-row-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-row-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.about-label {
    font-size: 11px;
    color: var(--text-dim);
    font-weight: 600;
}

.about-val {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.about-val.mono {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-cyan);
}

.btn-whatsapp-chat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.4);
    color: #25d366;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-whatsapp-chat:hover {
    background: rgba(37, 211, 102, 0.28);
    border-color: #25d366;
    transform: scale(1.04);
}

.badge-action {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.12);
    padding: 4px 8px;
    border-radius: 8px;
}

.about-features {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 11px;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.about-footer-copy {
    text-align: center;
    font-size: 10px;
    color: #64748b;
    margin-top: 6px;
}

.about-ver {
    display: block;
    font-size: 10px;
    color: var(--text-dim);
    margin-top: 4px;
}

.hidden {
    display: none !important;
}

/* ── Mobile Optimizations ── */
@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    .tv-help-hint {
        display: none;
    }
    .guide-sidebar {
        width: 100vw;
        max-width: 100vw;
    }
    .tv-osd {
        left: 14px;
        right: 14px;
        bottom: 14px;
        padding: 12px 16px;
    }
    #osd-logo {
        width: 44px;
        height: 44px;
    }
    #osd-title {
        font-size: 18px;
    }
    .osd-clock {
        font-size: 14px;
    }
}

@media (max-height: 550px) and (orientation: landscape) {
    .guide-sidebar {
        width: 320px !important;
        max-width: 75vw !important;
    }
    .sidebar-header {
        padding: 12px 16px;
    }
    .brand-logo-img {
        width: 32px;
        height: 32px;
    }
    .channels-scroll {
        padding: 8px 12px;
    }
    .channel-card {
        padding: 8px 12px;
        margin-bottom: 6px;
    }
}

/* ── Exit Confirmation Modal ── */
.exit-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: rgba(13, 19, 34, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(225, 29, 72, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: scaleUpModal 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUpModal {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.exit-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 22px;
}

.exit-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

.exit-header h2 {
    font-size: 21px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.exit-subtext {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
}

.exit-btn-group {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.btn-exit-action {
    flex: 1;
    height: 46px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    user-select: none;
}

.btn-cancel-exit {
    background: #1e293b;
    border: 2px solid #475569;
    color: #94a3b8;
}

.btn-cancel-exit:hover,
.btn-cancel-exit:focus {
    background: #0284c7;
    border-color: #38bdf8;
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.6), 0 8px 20px rgba(0, 0, 0, 0.5);
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

.btn-confirm-exit {
    background: #3b1219;
    border: 2px solid #9f1239;
    color: #fda4af;
}

.btn-confirm-exit:hover,
.btn-confirm-exit:focus {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    border-color: #ffffff;
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 0 24px rgba(244, 63, 94, 0.7), 0 8px 20px rgba(0, 0, 0, 0.5);
    outline: 2px solid #f43f5e;
    outline-offset: 2px;
}

/* ── Top-Left Dialed Channel Indicator ── */
.dial-number-badge {
    position: absolute;
    top: 32px;
    left: 40px;
    background: rgba(10, 16, 36, 0.9);
    border: 2px solid #10b981;
    border-radius: 16px;
    padding: 10px 24px;
    z-index: 95;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(16, 185, 129, 0.4);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dial-number-badge.hidden {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
}

.dial-badge-digits {
    font-family: 'JetBrains Mono', monospace;
    font-size: 34px;
    font-weight: 800;
    color: #10b981;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* ── Right-Side Virtual Dial Pad Overlay ── */
.dialpad-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    background: rgba(6, 9, 19, 0.88);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 90;
    display: flex;
    flex-direction: column;
    padding: 24px 18px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.dialpad-sidebar.hidden {
    transform: translateX(105%);
    opacity: 0;
    pointer-events: none;
}

.dialpad-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 16px;
}

.dialpad-logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
    margin-bottom: 6px;
}

.dialpad-header h2 {
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    margin: 0;
}

.dialpad-subtitle {
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.dialpad-preview {
    width: 100%;
    margin-top: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    text-align: center;
}

.dialpad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 6px;
    margin-bottom: auto;
}

.dial-key {
    height: 54px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.dial-key:hover,
.dial-key:focus {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10b981;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.5);
}

.dial-key-del {
    color: #f43f5e;
    font-size: 20px;
}

.dial-key-del:hover,
.dial-key-del:focus {
    background: rgba(244, 63, 94, 0.25);
    border-color: #f43f5e;
    box-shadow: 0 0 16px rgba(244, 63, 94, 0.5);
}

.dial-key-ok {
    color: #10b981;
    font-size: 15px;
    font-weight: 800;
}

.dialpad-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dialpad-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    color: #10b981;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.15s ease;
}

.dialpad-link:hover {
    color: #34d399;
    text-decoration: underline;
}

.dialpad-hint {
    font-size: 10px;
    color: #64748b;
}

@media (max-width: 640px) {
    .dialpad-sidebar {
        width: 100%;
        max-width: 320px;
    }
}

