:root {
    --bg-dark: #0f1117;
    --bg-card: #1a1d27;
    --bg-card-hover: #222634;
    --border-color: #2b3042;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --accent: #ec4899;
    --accent-gold: #f59e0b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --success: #10b981;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* NAVBAR */
.navbar {
    background-color: rgba(26, 29, 39, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
}

.brand-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.online-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1); }
}

.vip-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000 !important;
    font-weight: 700;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 0.9rem;
}

.vip-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: #3f455d;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-danger:hover {
    background: var(--danger-hover);
}

/* MAIN LAYOUT */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* AD WRAPPERS (Removed for Premium Users) */
.ad-wrapper {
    background: rgba(26, 29, 39, 0.5);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    margin: 0.75rem auto;
    padding: 0.5rem;
    text-align: center;
    max-width: 900px;
    width: calc(100% - 1.5rem);
}

.ad-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.ad-placeholder {
    height: clamp(55px, 8vw, 85px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #1e2230, #252a3b);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    padding: 0.5rem;
    text-align: center;
}

/* HERO SECTION */
.hero-section {
    padding: clamp(1.5rem, 4vw, 3rem) 1.25rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    font-size: clamp(1.85rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 40%, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* =======================================================
   3 ENGLISH PRACTICE MODE CARDS (TEXT, VOICE CALL, FACE TO FACE)
   ======================================================= */
.mode-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.25rem;
    text-align: left;
}

.mode-card {
    background: #111420;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.mode-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.15);
    background: #151928;
}

.mode-card:hover::before {
    opacity: 1;
}

.mode-card.card-featured {
    border-color: rgba(99, 102, 241, 0.4);
    background: linear-gradient(180deg, #161a2b 0%, #111420 100%);
}

.mode-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mode-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mode-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    letter-spacing: 0.5px;
}

.badge-text {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-voice {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-video {
    background: rgba(234, 179, 8, 0.2);
    color: #fde047;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.mode-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 1.25rem;
}

.mode-btn {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

/* =======================================================
   VOICE CALL SCREEN & AUDIO PULSE ANIMATION
   ======================================================= */
.voice-avatar-pulse {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.6);
    animation: voicePulse 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.ring-2 {
    animation-delay: 0.8s;
}

@keyframes voicePulse {
    0% {
        transform: scale(0.8);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* TOPIC PILLS */
.topic-pills-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.4rem 0.6rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.topic-pills-container::-webkit-scrollbar {
    display: none;
}

.topic-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.topic-pill:hover, .topic-pill:active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* FILTER BAR */
.filter-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: clamp(1rem, 3vw, 1.75rem);
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    width: 100%;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.lock-badge {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-gold);
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.form-select, .form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #12141c;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-select:focus, .form-input:focus {
    border-color: var(--primary);
}

/* =======================================================
   VIDEO CHAT INTERFACE (ENHANCED OVERLAY & PIP SWAP)
   ======================================================= */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    height: calc(100vh - 75px);
}

.video-area {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
    min-height: 0;
    position: relative;
}

.video-screens {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 380px;
    background: #090a0f;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* BIG MAIN VIDEO (Stranger by default) */
.video-box.main-box {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

/* SMALL PIP VIDEO (Self by default, Chhota/Bada Switchable) */
.video-box.pip-box {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: clamp(140px, 20vw, 240px);
    height: clamp(180px, 26vw, 320px);
    z-index: 25;
    background: #090a0f;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-box.pip-box:hover {
    border-color: var(--primary);
    transform: scale(1.03);
}

/* SWAP BUTTON */
.btn-swap-cam {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(15, 17, 23, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    z-index: 30;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: background 0.2s;
}

.btn-swap-cam:hover {
    background: var(--primary);
}

.video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* User Camera Mirroring: Local webcam mirrored like a selfie mirror, Remote webcam normal */
#localVideo {
    transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    transition: transform 0.25s ease;
}

#localVideo.unmirrored {
    transform: scaleX(1) !important;
    -webkit-transform: scaleX(1) !important;
}

#remoteVideo {
    transform: scaleX(1);
    -webkit-transform: scaleX(1);
}

.video-label {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(15, 17, 23, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 10;
}

.pip-box .video-label {
    top: 0.4rem;
    left: 0.4rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
}

.video-status-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(9, 10, 15, 0.88);
    color: var(--text-muted);
    gap: 1rem;
    z-index: 5;
    text-align: center;
    padding: 1.5rem;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =======================================================
   FLOATING OVERLAY CHAT (Ultra-Transparent See-Through Video Chat)
   ======================================================= */
.chat-panel.floating-chat {
    position: absolute;
    bottom: 16px;
    left: 16px;
    width: clamp(260px, 30vw, 360px);
    height: clamp(200px, 34vh, 320px);
    background: rgba(10, 12, 22, 0.15) !important; /* Fully see-through so video behind is crystal clear */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    z-index: 20;
    overflow: hidden;
    transition: all 0.25s ease;
}

.chat-panel.floating-chat:hover,
.chat-panel.floating-chat:focus-within {
    background: rgba(10, 12, 22, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.35);
}

/* Minimized State: Sleek little transparent pill bar */
.chat-panel.floating-chat.minimized {
    height: 42px !important;
    min-height: 0 !important;
    max-height: 42px !important;
    width: clamp(160px, 35vw, 220px) !important;
    background: rgba(10, 12, 20, 0.75) !important;
    backdrop-filter: blur(8px);
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.chat-panel.floating-chat.minimized .topic-pills-container,
.chat-panel.floating-chat.minimized .messages-list,
.chat-panel.floating-chat.minimized .chat-input-bar {
    display: none !important;
    visibility: hidden !important;
}

.chat-panel.floating-chat.hidden-chat {
    transform: translateY(140%);
    opacity: 0;
    pointer-events: none;
}

.btn-chat-min {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.btn-chat-min:hover, .btn-chat-min:active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.chat-header {
    padding: 0.5rem 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 700;
    font-size: 0.84rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.messages-list {
    flex: 1;
    padding: 0.55rem 0.75rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.msg-item {
    max-width: 90%;
    padding: 0.38rem 0.7rem;
    border-radius: 8px;
    font-size: 0.83rem;
    word-break: break-word;
    line-height: 1.35;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.msg-me {
    align-self: flex-end;
    background: rgba(99, 102, 241, 0.75); /* Semi-transparent indigo */
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom-right-radius: 2px;
}

.msg-stranger {
    align-self: flex-start;
    background: rgba(25, 30, 45, 0.7); /* Semi-transparent dark slate */
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom-left-radius: 2px;
}

.msg-system {
    align-self: center;
    font-size: 0.72rem;
    color: #f1f5f9;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    text-align: center;
    max-width: 95%;
}

.chat-input-bar {
    padding: 0.4rem 0.6rem;
    background: rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 0.35rem;
}

.chat-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.65rem;
    color: #fff;
    font-size: 0.84rem;
    outline: none;
    min-width: 0;
}

.chat-input:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.7);
}

/* MODALS */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3vw, 2rem);
    max-width: min(520px, 94vw);
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.modal-title {
    font-size: clamp(1.15rem, 3vw, 1.4rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PRICING PLANS */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 1.5rem auto;
    padding: 0 1rem;
    width: 100%;
}

.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s, border-color 0.2s;
}

.plan-card.featured {
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2);
}

.plan-card:hover {
    transform: translateY(-4px);
}

.plan-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent-gold);
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
}

.plan-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    margin: 0.75rem 0;
}

.plan-features {
    list-style: none;
    margin: 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* ADMIN PANEL (RESPONSIVE) */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 65px);
    width: 100%;
}

.admin-sidebar {
    background: #141720;
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

.admin-link.active, .admin-link:hover {
    background: var(--bg-card);
    color: #fff;
}

.admin-body {
    padding: clamp(1rem, 3vw, 2rem);
    background: var(--bg-dark);
    min-width: 0;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.stat-num {
    font-size: 1.85rem;
    font-weight: 800;
    color: #fff;
    margin-top: 0.4rem;
}

/* RESPONSIVE TABLE CONTAINER */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    min-width: 650px; /* guarantees readability on mobile with scroll */
}

.data-table th, .data-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
}

.data-table th {
    background: #151822;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

/* FOOTER */
.footer {
    background: #0b0d13;
    border-top: 1px solid var(--border-color);
    padding: 2rem 1.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.compliance-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--primary);
    white-space: nowrap;
}

/* =======================================================
   RESPONSIVE MEDIA QUERIES (MOBILE & TABLET TWEAKS)
   ======================================================= */

/* Tablet & Mobile Screens (<= 992px) */
@media (max-width: 992px) {
    .chat-container {
        grid-template-columns: 1fr;
        height: auto;
        padding: 0.75rem;
    }

    .video-area {
        height: auto;
    }

    .video-screens {
        min-height: 0;
        height: 100%;
        max-height: none;
    }

    /* Admin Sidebar turns into horizontal scrollable navigation */
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.75rem 1rem;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        gap: 0.5rem;
    }

    .admin-sidebar .admin-link {
        padding: 0.5rem 0.85rem;
        font-size: 0.85rem;
    }

    .admin-sidebar hr {
        display: none;
    }

    .payment-settings-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
}

/* Visibility helpers */
.desktop-only {
    display: flex;
}
.mobile-only {
    display: none !important;
}

/* Smartphone Screens (<= 768px: Full Native Mobile App Feel) */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: flex !important;
    }

    /* Fixed 54px Sleek Native Mobile App Header */
    .navbar {
        height: 54px !important;
        padding: 0.4rem 0.75rem !important;
        flex-wrap: nowrap !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0.5rem;
    }

    .nav-brand {
        font-size: 1.05rem;
        flex-shrink: 0;
    }

    .mobile-nav-actions {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        flex-shrink: 0;
    }

    .mobile-pwa-btn {
        padding: 0.22rem 0.55rem !important;
        font-size: 0.72rem !important;
    }

    /* 3-bar Mobile App Hamburger Menu Button */
    .mobile-menu-btn {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        cursor: pointer;
        padding: 0;
        transition: background 0.2s;
    }

    .mobile-menu-btn span {
        display: block;
        width: 17px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
    }

    .mobile-menu-btn:hover, .mobile-menu-btn:active {
        background: rgba(255, 255, 255, 0.15);
    }

    /* Mobile Chat Screen: Full Height without messy multiple header lines */
    .chat-container {
        padding: 0.4rem;
        height: calc(100dvh - 54px) !important;
        max-height: calc(100dvh - 54px) !important;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .video-area {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .video-screens {
        flex: 1;
        height: 100% !important;
        min-height: 0 !important;
        border-radius: 14px;
        position: relative;
    }

    .video-box.pip-box {
        bottom: 10px;
        right: 10px;
        width: 95px;
        height: 130px;
        z-index: 25;
        border-width: 1.5px;
        border-radius: 10px;
    }

    /* Floating Chat on Mobile */
    .chat-panel.floating-chat {
        bottom: 8px;
        left: 8px;
        width: calc(100% - 115px);
        max-width: 250px;
        height: 165px;
        background: rgba(10, 12, 22, 0.15) !important;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        border: 1px solid rgba(255, 255, 255, 0.22);
        z-index: 20;
    }

    .chat-panel.floating-chat.minimized {
        height: 38px !important;
        min-height: 0 !important;
        max-height: 38px !important;
        width: 135px !important;
        background: rgba(10, 12, 20, 0.8) !important;
        backdrop-filter: blur(8px);
        overflow: hidden !important;
    }

    .controls-bar {
        padding: 0.4rem;
        gap: 0.4rem;
        flex-shrink: 0;
    }

    .controls-main {
        width: 100%;
        display: flex;
        gap: 0.4rem;
    }

    .btn-skip {
        flex: 1;
        padding: 0.55rem 0.8rem;
        font-size: 0.88rem;
    }

    .btn-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 1rem;
        padding: 0;
    }

    .controls-filters {
        display: none !important;
    }

    /* Hide desktop footer on mobile to show clean bottom nav */
    .footer {
        padding: 1.25rem 1rem 5rem 1rem !important;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* ========================================================
   CHAT TOP BAR & QUICK SWITCHER
   ======================================================== */
.chat-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
    gap: 0.5rem;
    flex-wrap: nowrap;
    width: 100%;
}

.chat-status-badges {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.badge-mode {
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.badge-voice-call {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #6ee7b7;
}

.badge-video-call {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid #f59e0b;
    color: #fde047;
}

.badge-text-chat {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid #3b82f6;
    color: #93c5fd;
}

.badge-vip-pill {
    background: rgba(234, 179, 8, 0.2);
    border: 1px solid #eab308;
    color: #fde047;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.badge-quota-pill {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--primary);
    color: #c7d2fe;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.chat-mode-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.mode-switch-btn {
    padding: 0.25rem 0.55rem;
    font-size: 0.75rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    transition: all 0.2s;
}

.mode-switch-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 700;
}

@media (max-width: 600px) {
    .hide-mobile {
        display: none !important;
    }
}

/* ========================================================
   MOBILE APP SLIDE-OUT DRAWER
   ======================================================== */
.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.mobile-drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
    display: flex !important;
}

.mobile-drawer-content {
    width: min(320px, 85vw);
    height: 100%;
    background: #0d111a;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.85);
}

.mobile-drawer-backdrop.open .mobile-drawer-content {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
}

.drawer-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem 0.5rem;
}

.drawer-user-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.85rem;
    margin-bottom: 1.25rem;
}

.drawer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s;
}

.drawer-nav-item:hover, .drawer-nav-item:active {
    background: rgba(255, 255, 255, 0.06);
}

.drawer-nav-icon {
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
}

.drawer-nav-badge {
    margin-left: auto;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
}

/* ========================================================
   NATIVE MOBILE BOTTOM APP BAR (Docked on mobile)
   ======================================================== */
.mobile-bottom-app-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #090c14;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 600;
    gap: 2px;
    flex: 1;
    height: 100%;
    transition: color 0.15s;
}

.bottom-tab-item .tab-icon {
    font-size: 1.15rem;
}

.bottom-tab-item:hover, .bottom-tab-item:active {
    color: #fff;
}

/* ========================================================
   PWA ANDROID INSTALL PROMPT & BRANDING UTILITIES
   ======================================================== */
.btn-pwa-install {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: pwaPulse 2.5s infinite;
}

.btn-pwa-install:hover, .btn-pwa-install:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
}

@keyframes pwaPulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35); }
    50% { box-shadow: 0 2px 16px rgba(245, 158, 11, 0.7); }
}

.pwa-install-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: 480px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(229, 169, 60, 0.45);
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(229, 169, 60, 0.15);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.btn-google-auth:hover {
    background: #f8fafc !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.btn-google-auth:active {
    transform: translateY(0);
}

/* ========================================================
   NATIVE MOBILE CALLING SCREEN EXPERIENCE & LIVE TIMER
   ======================================================== */
.native-caller-header {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: rgba(10, 15, 29, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    font-size: 0.85rem;
    color: #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.call-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    display: inline-block;
}

.call-live-dot.pulse {
    animation: liveDotPulse 1.8s infinite;
}

@keyframes liveDotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.45; }
}

.call-divider {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
}

.call-timer-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.88rem;
    font-weight: 700;
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.38);
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.8px;
    display: inline-block;
}

/* Authentic Voice Calling Screen */
.voice-call-screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1rem 0.75rem 1rem;
    background: radial-gradient(circle at 50% 28%, #172554 0%, #0a0f1d 65%, #030712 100%);
    z-index: 5;
    overflow-y: auto;
    overflow-x: hidden;
    text-align: center;
}

.voice-top-calling-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.25rem;
    width: 100%;
}

.voice-call-badge-pill {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.3px;
}

.voice-partner-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
    margin: 0.25rem 0;
}

.voice-status-timer-box {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.timer-bullet {
    color: #64748b;
}

/* Avatar Stage with Pulsing Radar Waves */
.voice-avatar-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto 0;
    position: relative;
}

.voice-avatar-pulse {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-avatar-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 3px solid #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 28px rgba(245, 158, 11, 0.35);
}

.pulse-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(245, 158, 11, 0.4);
    animation: radarPulse 2.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.pulse-ring.ring-1 { width: 100px; height: 100px; animation-delay: 0s; }
.pulse-ring.ring-2 { width: 100px; height: 100px; animation-delay: 0.8s; }
.pulse-ring.ring-3 { width: 100px; height: 100px; animation-delay: 1.6s; }

@keyframes radarPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.85;
    }
    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

/* Animated Audio Equalizer Waves */
.sound-wave-equalizer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 32px;
    margin-top: 1.25rem;
}

.eq-bar {
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(to top, #f59e0b, #10b981);
    animation: eqBounce 1.2s ease-in-out infinite alternate;
}

.eq-bar.bar-1 { height: 12px; animation-delay: 0.1s; }
.eq-bar.bar-2 { height: 24px; animation-delay: 0.3s; }
.eq-bar.bar-3 { height: 32px; animation-delay: 0.15s; }
.eq-bar.bar-4 { height: 18px; animation-delay: 0.4s; }
.eq-bar.bar-5 { height: 28px; animation-delay: 0.25s; }
.eq-bar.bar-6 { height: 20px; animation-delay: 0.35s; }
.eq-bar.bar-7 { height: 14px; animation-delay: 0.2s; }

@keyframes eqBounce {
    0% { transform: scaleY(0.3); opacity: 0.5; }
    100% { transform: scaleY(1.3); opacity: 1; }
}

/* English Practice Topic Card */
.voice-topic-card {
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    text-align: left;
}

.topic-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 0.35rem;
}

.btn-next-topic {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fde047;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-next-topic:hover {
    background: rgba(245, 158, 11, 0.25);
}

.topic-question-text {
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.4;
    font-style: italic;
}

/* ========================================================
   AUTHENTIC NATIVE MOBILE CALL DOCK
   ======================================================== */
.mobile-call-dock {
    background: rgba(13, 17, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 0.65rem 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.call-action-dock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    flex-wrap: nowrap;
}

.btn-dock-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 50px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.btn-dock-action:hover, .btn-dock-action:active {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.btn-dock-action.active-off {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fca5a5;
}

.dock-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.dock-label {
    font-size: 0.62rem;
    font-weight: 600;
    margin-top: 2px;
    color: #cbd5e1;
}

/* AUTHENTIC RED END / NEXT CALL BUTTON */
.btn-dock-end-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0 1.25rem;
    height: 50px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.45);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-dock-end-call:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 22px rgba(239, 68, 68, 0.6);
}

.btn-dock-end-call:active {
    transform: translateY(0) scale(0.97);
}

.dock-icon-end {
    font-size: 1.15rem;
}

.dock-label-end {
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

/* Hide normal footer & bottom tabs during active call */
body[data-mode] .footer,
body[data-mode] .mobile-bottom-app-bar {
    display: none !important;
}

body[data-mode] .main-content {
    min-height: calc(100dvh - 54px);
}

@media (max-width: 600px) {
    .call-action-dock {
        gap: 0.35rem;
    }
    .btn-dock-action {
        width: 42px;
        height: 46px;
        border-radius: 11px;
    }
    .dock-icon {
        font-size: 1rem;
    }
    .dock-label {
        font-size: 0.58rem;
    }
    .btn-dock-end-call {
        height: 46px;
        padding: 0 0.9rem;
        font-size: 0.82rem;
    }
    .dock-icon-end {
        font-size: 1rem;
    }
    .dock-label-end {
        font-size: 0.78rem;
    }
}

/* ========================================================
   CALL CUT, CANCEL SEARCH & VIDEO CHAT CONTROLS
   ======================================================== */
.btn-cancel-search {
    margin-top: 0.95rem;
    padding: 0.55rem 1.35rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.btn-cancel-search:hover, .btn-cancel-search:active {
    transform: scale(1.04);
    background: #b91c1c;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

.btn-call-cut {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45) !important;
}

.btn-call-cut:hover, .btn-call-cut:active {
    background: #b91c1c !important;
    transform: translateY(-2px) scale(1.03);
}

.btn-dock-next-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0 1.15rem;
    height: 50px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-dock-next-call:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.55);
}

.btn-dock-next-call:active {
    transform: translateY(0) scale(0.97);
}

.dock-icon-cut, .dock-icon-next {
    font-size: 1.1rem;
    line-height: 1;
}

.dock-label-cut, .dock-label-next {
    font-size: 0.82rem;
    letter-spacing: 0.3px;
}

/* Chat Panel strictly hidden by default */
.chat-panel.floating-chat.hidden-chat {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Audio Call (Voice Mode): Completely remove Chat button and Chat panel */
body[data-mode="voice"] #btnToggleChatUi,
body[data-mode="voice"] #chatPanel {
    display: none !important;
}

/* Ensure calling screen takes 100% full height without blank void */
@media (max-width: 768px) {
    .chat-container {
        height: calc(100dvh - 54px) !important;
        max-height: calc(100dvh - 54px) !important;
    }
    .video-area {
        flex: 1 !important;
        height: 100% !important;
        min-height: 0 !important;
    }
    .video-screens {
        flex: 1 !important;
        height: 100% !important;
        max-height: none !important;
        min-height: 0 !important;
    }
    .btn-dock-next-call {
        height: 46px;
        padding: 0 0.85rem;
        font-size: 0.78rem;
    }
    .btn-call-cut {
        height: 46px;
        padding: 0 0.85rem;
        font-size: 0.78rem;
    }
}

/* ========================================================
   ENHANCED NATIVE MOBILE BOTTOM APP TAB BAR
   ======================================================== */
.mobile-bottom-app-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 62px !important;
    background: rgba(9, 12, 22, 0.97) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    display: none;
    justify-content: space-around;
    align-items: center;
    z-index: 99999 !important;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.7);
    padding: 0 0.5rem;
    padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 992px) {
    .mobile-bottom-app-bar {
        display: flex !important;
    }
    body:not([data-mode]) {
        padding-bottom: 70px !important;
    }
    body:not([data-mode]) .main-content {
        padding-bottom: 70px !important;
    }
}

.bottom-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 600;
    gap: 3px;
    flex: 1;
    height: 100%;
    position: relative;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-tab-item .tab-icon {
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.2s;
}

.bottom-tab-item:hover, .bottom-tab-item:active, .bottom-tab-item.active {
    color: #ffffff;
}

.bottom-tab-item.active .tab-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.6));
}

.bottom-tab-item.active .tab-text {
    color: #6ee7b7;
    font-weight: 700;
}

.bottom-tab-item.tab-item-vip {
    color: #f59e0b;
}

.bottom-tab-item.tab-item-vip .tab-icon {
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.5));
}

.bottom-tab-item.tab-item-vip:hover .tab-text {
    color: #fde047;
}

.tab-badge-dot {
    position: absolute;
    top: 8px;
    right: 28%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

/* Ensure calling screen hides bottom tab bar completely */
body[data-mode] .mobile-bottom-app-bar {
    display: none !important;
}
