/* Sleek Course Cards - Added after dashboard-action-grid */
.sleek-course-section {
    margin-top: 20px;
    margin-bottom: 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 3px;
}

.section-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-link {
    font-size: 11px;
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
}

.sleek-course-grid {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 3px 3px 8px 3px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.sleek-course-grid::-webkit-scrollbar {
    display: none;
}

.sleek-course-card {
    flex: 0 0 130px;
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.sleek-course-card:active {
    transform: scale(0.96);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.course-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    margin-bottom: 10px;
}

.course-name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.course-chapters {
    font-size: 10px;
    color: #64748b;
    font-weight: 600;
}

.course-arrow {
    color: #94a3b8;
    font-size: 10px;
    transition: transform 0.2s;
}

.sleek-course-card:active .course-arrow {
    transform: translateX(3px);
    color: #3b82f6;
}

/* Unified Strip Card Styling */
    .unified-strip-card {
        border-radius: 16px !important;
        margin: 0 !important;
        width: 100% !important;
        display: block;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05) !important;
        border: none !important;
        overflow: hidden;
    }
    
    @keyframes pulseSoft {
        0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
        70% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(255,255,255,0); }
        100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0); }
    }
    
    .animated-icon-pulse {
        animation: pulseSoft 2s infinite ease-in-out;
    }

/* New 4-Grid Dashboard Styles (Sleek & Native Feel) */
    .dashboard-action-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .action-grid-card {
        background: #ffffff;
        border-radius: 16px;
        padding: 16px 12px;
        text-align: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.04);
        border: 1px solid rgba(0,0,0,0.02);
        cursor: pointer;
        transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
        height: 100%;
    }
    .action-grid-card:active { transform: scale(0.96); box-shadow: 0 2px 5px rgba(0,0,0,0.04); }
    .agc-icon-wrap {
        width: 44px; height: 44px; border-radius: 14px;
        display: flex; align-items: center; justify-content: center;
        font-size: 20px; margin-bottom: 10px; color: white;
    }
    .agc-title { font-size: 13.5px; font-weight: 800; margin-bottom: 2px; line-height: 1.2; }
    .agc-subtitle { font-size: 10.5px; font-weight: 600; opacity: 0.85; }
    
    /* Card 1: Live Arena */
    .card-live-arena .agc-icon-wrap { background: linear-gradient(135deg, #ef4444, #dc2626); }
    .card-live-arena .agc-title { color: #0f172a; }
    .card-live-arena .agc-subtitle { color: #64748b; }
    
    /* Card 2: English Talk Room */
    .card-eng-talk { background: linear-gradient(135deg, #6366f1, #a855f7); }
    .card-eng-talk .agc-icon-wrap { background: rgba(255,255,255,0.2); }
    .card-eng-talk .agc-title, .card-eng-talk .agc-subtitle { color: #ffffff; text-shadow: 0 1px 2px rgba(0,0,0,0.1); }
    
    /* Card 3: All Live Exams */
    .card-live-exam .agc-icon-wrap { background: linear-gradient(135deg, #3b82f6, #2563eb); }
    .card-live-exam .agc-title { color: #0f172a; }
    .card-live-exam .agc-subtitle { color: #64748b; }

    /* Card 4: UPI Rewards */
    .card-rewards { background: linear-gradient(135deg, #10b981, #059669); }
    .card-rewards .agc-icon-wrap { background: rgba(255,255,255,0.25); }
    .card-rewards .agc-title, .card-rewards .agc-subtitle { color: #ffffff; text-shadow: 0 1px 2px rgba(0,0,0,0.1); }

    /* Live pulse dot for active arena */
    .live-pulse-dot {
        position: absolute; top: 10px; right: 10px; width: 8px; height: 8px;
        background: #ef4444; border-radius: 50%; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
        animation: pulseRed 1.5s infinite;
    }
    @keyframes pulseRed {
        0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
        70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
        100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
    }

/* Smooth Floating Active Call Banner */
    .etr-active-call-banner {
        position: fixed; /* Pins it to the screen viewport, not the scrollable list */
        left: 5%; 
        width: 90%;
        bottom: 20px; /* Lock the base position */
        transform: translateY(150%); /* Hides it completely off-screen using the GPU */
        opacity: 0;
        background: white; 
        border-radius: 24px; 
        padding: 25px 20px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.2); 
        border: 2px solid #6366f1;
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
        z-index: 999999; 
        text-align: center;
        will-change: transform, opacity; /* Forces mobile hardware acceleration */
        pointer-events: none; /* Prevents invisible clicks when hidden */
    }
    
    .etr-active-call-banner.show { 
        transform: translateY(0); /* Slides up perfectly smooth */
        opacity: 1;
        pointer-events: auto; /* Re-enables clicks */
    }
    
    .call-pulse-avatar { 
        width: 65px; height: 65px; background: #6366f1; color: white; 
        border-radius: 50%; display: flex; align-items: center; justify-content: center; 
        font-size: 26px; margin: 0 auto 10px auto; 
        text-transform: uppercase;
        position: relative;
        z-index: 2;
    }

    /* Volume Indicator Animation */
    .vol-indicator-container {
        display: flex; align-items: center; justify-content: center; gap: 4px; height: 24px; margin-bottom: 12px;
    }
    .vol-bar {
        width: 6px; height: 4px; background-color: #10b981; border-radius: 4px; transition: height 0.15s ease;
    }

    .etr-call-controls {
        display: flex; gap: 12px; justify-content: center; margin-top: 5px;
    }

    /* Clean Tap Highlights */
    html, body {
        -webkit-tap-highlight-color: transparent;
    }

    /* English Talk Room Scrolling & Native Feel - Isolated to Overlay */
    .etr-fullscreen {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: #f8f9fa;
        z-index: 9999999;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        overflow: hidden !important; /* Stop whole page from scrolling/bouncing */
        overscroll-behavior: none;
        touch-action: none; /* Kill native pull-to-refresh */
    }
    
    /* FIX: Show state for the overlay */
    .etr-fullscreen.active {
        transform: translateY(0);
    }

    .etr-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    .etr-header-title {
        font-weight: 700;
        font-size: 16px;
    }

    .etr-close-btn {
        background: transparent;
        border: none;
        font-size: 20px;
        color: #6b7280;
    }

    .etr-body {
        height: calc(100% - 70px); /* Fill remaining space safely */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y; /* Only allow vertical scrolling inside the list */
        padding-bottom: 250px; /* Ample space for the bigger floating call banner */
    }

    /* Hide scrollbar just for the ETR body for a cleaner look */
    .etr-body::-webkit-scrollbar {
        width: 0px;
        background: transparent;
    }
    
    /* Live Exams Card Enhancements */
    .card-live-exam { 
        position: relative; 
        overflow: visible !important; /* Allows the badge to pop outside slightly */
    }
    .live-exam-badge {
        position: absolute;
        top: -6px;
        right: -6px;
        background: linear-gradient(135deg, #ef4444, #dc2626);
        color: white;
        font-size: 9px;
        font-weight: 800;
        padding: 4px 8px;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
        animation: floatBadge 2.5s ease-in-out infinite;
        z-index: 10;
        letter-spacing: 0.5px;
    }
    @keyframes floatBadge {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-4px); box-shadow: 0 6px 14px rgba(239, 68, 68, 0.3); }
    }

    /* Slim Live Strip - Old Live Tests */
    .slim-live-strip {
        background: linear-gradient(to right, #ffffff, #f8fafc);
        border-radius: 14px;
        padding: 10px 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-decoration: none !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.04);
        border: 1px solid #e2e8f0;
        position: relative;
        overflow: hidden;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .slim-live-strip:active {
        transform: scale(0.97);
        box-shadow: 0 2px 5px rgba(0,0,0,0.04);
    }
    .slim-live-strip::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(to bottom, #8b5cf6, #3b82f6);
    }
    .sls-content {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .sls-icon {
        width: 36px;
        height: 36px;
        background: linear-gradient(135deg, #eff6ff, #dbeafe);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #3b82f6;
        font-size: 16px;
    }
    .sls-text-group {
        display: flex;
        flex-direction: column;
    }
    .sls-title {
        color: #64748b;
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        line-height: 1;
        margin-bottom: 3px;
    }
    .sls-name {
        color: #0f172a;
        font-size: 14.5px;
        font-weight: 800;
        line-height: 1;
    }
    .sls-action-btn {
        background: #f1f5f9;
        color: #3b82f6;
        border-radius: 50%;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        transition: all 0.2s ease;
    }
    .slim-live-strip:active .sls-action-btn {
        background: #3b82f6;
        color: #ffffff;
    }


   /* Pin the badge to the absolute top-right of the card box */
    .corner-badge { position: absolute; top: -12px; right: -12px; background: linear-gradient(45deg, #ff3d00, #ff8e53); color: white; font-size: 0.65rem; font-weight: 700; padding: 3px 8px; border-radius: 12px; border: 2px solid #ffffff; box-shadow: 0 4px 6px rgba(0,0,0,0.15); z-index: 10; white-space: nowrap; pointer-events: none; }
    .feature-card .card { overflow: visible !important; position: relative; border: none; }

    /* ==============================================
       SMART LIVE AUTO-QUIZ CARD 
    ================================================= */
    .live-quiz-card {
        background: linear-gradient(90deg, #FF416C 0%, #FF4B2B 100%);
        border-radius: 12px;
        padding: 10px 14px; /* Thinner padding */
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: white;
        box-shadow: 0 4px 15px rgba(255, 65, 108, 0.35);
        position: relative;
        overflow: hidden;
        transition: transform 0.2s;
        gap: 12px;
    }
    .live-quiz-card:hover, .live-quiz-card:active { transform: scale(0.98); }
    .live-quiz-card::before {
        content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
        animation: rotateGlow 4s linear infinite; pointer-events: none;
    }
    @keyframes rotateGlow { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
    @keyframes pulseIcon { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
    
    .lqc-left-area {
        display: flex; align-items: center; gap: 12px;
        flex: 1; /* Takes up all available space */
        min-width: 0; /* Prevents text from pushing button off-screen */
        position: relative; z-index: 2;
    }
    .lqc-icon { 
        width: 36px; height: 36px; /* Smaller sleek icon */
        background: rgba(255,255,255,0.2); border-radius: 50%; 
        display: flex; align-items: center; justify-content: center; 
        font-size: 16px; flex-shrink: 0; pointer-events: none;
    }
    .lqc-text {
        display: flex; flex-direction: column; justify-content: center;
        flex: 1; min-width: 0; /* Allows text to truncate cleanly */
    }
    .lqc-text h5 { 
        margin: 0; font-size: 14px; font-weight: 800; color: #ffffff; 
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
        text-shadow: 0 1px 2px rgba(0,0,0,0.2); /* Improves text clarity */
        line-height: 1.2;
    }
    .lqc-text p { 
        margin: 0; font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,0.95); 
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        margin-top: 2px;
    }
    .lqc-btn-wrapper { position: relative; z-index: 2; flex-shrink: 0; }
    .lqc-btn { 
        background: white; color: #e11d48; font-weight: 800; font-size: 10px; 
        padding: 6px 14px; border-radius: 20px; text-transform: uppercase; 
        box-shadow: 0 2px 6px rgba(0,0,0,0.15); border:none; outline:none; transition: all 0.3s;
    }

    /* ==============================================
       FULL PAGE ENGLISH TALK ROOM (ULTRA SMOOTH)
    ================================================= */
    .etr-voice-pulse-icon { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; animation: pulseWhite 2s infinite; }
    @keyframes pulseWhite { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.2); opacity: 0.5; } }
    
    .etr-fullscreen {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: #f8fafc; z-index: 99999;
        transform: translateY(100%); opacity: 0;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
        display: flex; flex-direction: column; overflow: hidden;
    }
    .etr-fullscreen.active { transform: translateY(0); opacity: 1; }
    
    .etr-header {
        background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
        padding: 20px; color: white; display: flex; align-items: center; justify-content: space-between;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    .etr-header-title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
    .etr-close-btn { background: rgba(255,255,255,0.2); border: none; width: 32px; height: 32px; border-radius: 50%; color: white; display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; transition: 0.2s;}
    .etr-close-btn:active { transform: scale(0.9); }

    .etr-body { flex: 1; overflow-y: auto; padding: 20px; padding-bottom: 120px; position: relative; }
    
    /* Online User Cards */
    .etr-user-card {
        background: white; border-radius: 16px; padding: 15px; margin-bottom: 12px;
        display: flex; align-items: center; justify-content: space-between;
        box-shadow: 0 4px 10px rgba(0,0,0,0.03); border: 1px solid #e2e8f0;
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .etr-user-card:active { transform: scale(0.98); }
    .etr-avatar-box { display: flex; align-items: center; gap: 12px; }
    .etr-user-avatar { width: 45px; height: 45px; background: #e0e7ff; color: #4f46e5; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; border: 2px solid #c7d2fe; text-transform: uppercase; }
    
    .etr-status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 4px; }
    .etr-status-dot.available { background: #10b981; box-shadow: 0 0 8px #10b981; animation: pulseGreen 2s infinite; }
    .etr-status-dot.busy { background: #ef4444; }

    /* Buttons */
    .btn-call { background: #10b981; color: white; border: none; padding: 8px 16px; border-radius: 20px; font-weight: 700; font-size: 12px; transition: 0.2s; box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3); }
    .btn-call:active { transform: scale(0.95); }
    .btn-busy { background: #f1f5f9; color: #94a3b8; border: none; padding: 8px 16px; border-radius: 20px; font-weight: 700; font-size: 12px; cursor: not-allowed; }

    /* Smooth Floating Active Call Banner */
    .etr-active-call-banner {
        position: absolute; bottom: -100%; left: 5%; width: 90%;
        background: white; border-radius: 20px; padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15); border: 2px solid #6366f1;
        transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 10; text-align: center;
    }
    .etr-active-call-banner.show { bottom: 20px; }
    
    .call-pulse-avatar { width: 60px; height: 60px; background: #6366f1; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 10px auto; animation: searchGlow 1.5s infinite; text-transform: uppercase;}

    @keyframes searchGlow { 0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); } 70% { box-shadow: 0 0 0 20px rgba(99, 102, 241, 0); } 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); } }
    @keyframes pulseGreen { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: 0.6; } }

    /* ==============================================
       ZERO-STATE MOTIVATION WARNING
    ================================================= */
    .zero-state-card {
        background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
        border: 1px solid #fecdd3 !important;
        border-left: 5px solid #e11d48 !important;
        border-radius: 12px;
        animation: warningPulse 2s infinite;
        overflow: hidden;
    }
    @keyframes warningPulse {
        0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.4); }
        70% { box-shadow: 0 0 0 10px rgba(225, 29, 72, 0); }
        100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
    }
    .zero-state-header {
        color: #be123c;
        font-size: 15px;
        font-weight: 800;
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 2px;
    }
    .zero-state-header i { animation: flashWarning 1s infinite alternate; }
    @keyframes flashWarning { from { opacity: 1; transform: scale(1); } to { opacity: 0.5; transform: scale(0.9); } }
    
    .rivals-container { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
    .rival-badge {
        background: #ffffff;
        border: 1px solid #fecdd3;
        padding: 4px 10px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 700;
        color: #881337;
        display: flex;
        align-items: center;
        gap: 6px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    }
    .rival-badge span { color: #e11d48; font-weight: 800; }
    
    .target-slim-card {
        background: #ffffff;
        border-radius: 8px;
        padding: 10px 12px;
        margin-top: 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border: 1px dashed #fb7185;
        box-shadow: 0 2px 5px rgba(225, 29, 72, 0.05);
    }
    .target-text { font-size: 12.5px; font-weight: 700; color: #4c0519; line-height: 1.3;}
    .target-text .pts { color: #e11d48; font-size: 14.5px; font-weight: 900;}
    
    .btn-attempt-now {
        background: linear-gradient(45deg, #e11d48, #be123c);
        color: white; border: none; font-size: 11px; font-weight: 800; 
        padding: 6px 12px; border-radius: 6px; text-decoration: none;
        white-space: nowrap; box-shadow: 0 4px 6px rgba(225, 29, 72, 0.2);
        transition: transform 0.2s;
    }
    .btn-attempt-now:hover { background: #9f1239; color: white; transform: scale(1.05); }

    /* PULSE CARD CSS */
    .pulse-card-container { border-radius: 12px; border: 1px solid rgba(0,0,0,0.05); overflow: hidden; }
    .pulse-card-body { display: flex; align-items: stretch; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 15px; }
    .pulse-streak-widget { display: flex; flex-direction: column; gap: 10px; flex: 0 0 auto;}
    .pulse-text { display: flex; flex-direction: column; }
    .pulse-title { font-size: 15px; font-weight: 800; color: #1e293b; margin-bottom: 2px;}
    .pulse-subtitle { font-size: 13px; color: #64748b; font-weight: 500; }

    /* TARGET MINI BADGE (UNDER DATES) */
    .target-mini-badge {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 9.5px;
        font-weight: 600;
        color: #64748b;
        background: rgba(241, 245, 249, 0.8);
        padding: 5px 8px;
        border-radius: 6px;
        border: 1px dashed #cbd5e1;
        width: fit-content;
        margin-top: 2px;
    }
    .target-mini-badge strong { color: #0f172a; font-weight: 800; }
    .target-mini-badge i { font-size: 10px; animation: pulseRed 1.5s infinite; color: #ef4444; }
    @keyframes pulseRed { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.15); opacity: 0.7; } }

    /* Weekly Nodes */
    .weekly-nodes-container { display: flex; gap: 6px; flex-wrap: nowrap; }
    .mini-node { width: 34px; height: 52px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: bold; position: relative; box-shadow: 0 2px 4px rgba(0,0,0,0.04); flex-shrink: 0; }
    .mini-node.pending { background: #f8fafc; color: #94a3b8; border: 1px dashed #cbd5e1; }
    .mini-node.pending::after { content: '\f00d'; font-family: 'Font Awesome 5 Free', 'Font Awesome 5 Solid'; font-weight: 900; position: absolute; bottom: -4px; right: -4px; background: #ef4444; color: white; border-radius: 50%; width: 14px; height: 14px; font-size: 7px; display: flex; align-items: center; justify-content: center; border: 1px solid white; }
    .mini-node.completed { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; border: none; }
    .mini-node.completed::after { content: '\f00c'; font-family: 'Font Awesome 5 Free', 'Font Awesome 5 Solid'; font-weight: 900; position: absolute; bottom: -4px; right: -4px; background: #ffffff; color: #10b981; border-radius: 50%; width: 14px; height: 14px; font-size: 7px; display: flex; align-items: center; justify-content: center; border: 1px solid #10b981; }
    .mini-node-day { font-size: 9px; text-transform: uppercase; opacity: 0.9; }
    .mini-node-date { font-size: 14px; line-height: 1; margin-top: 1px; }
    .mini-node-count { font-size: 9px; font-weight: 800; margin-top: 3px; }
    .mini-node.completed .mini-node-count { color: #d1fae5; } 
    .mini-node.pending .mini-node-count { color: #cbd5e1; }  

    /* DUAL LEADERBOARD */
    .pulse-community-stats { flex: 1 1 0%; min-width: 300px; display: flex; flex-direction: column; align-items: flex-end; }
    .pulse-community-badge { display: inline-flex; align-items: center; background: rgba(245, 158, 11, 0.1); color: #d97706; padding: 5px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; gap: 5px; margin-bottom: 8px;}
    .pulse-community-badge i { animation: pulse-fire 1.5s infinite; }
    @keyframes pulse-fire { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.15); opacity: 0.7; } }
    
    .dual-leaderboard { display: flex; width: 100%; gap: 12px; }
    .lb-half { flex: 1; background: transparent; border-radius: 8px; }
    .lb-title-wrap { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; font-weight: 800; color: #475569; text-transform: uppercase; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid #e2e8f0; }
    
    /* SLEEK UI CARDS FOR USERS */
    .lb-item { display: flex; align-items: center; justify-content: space-between; background: #ffffff; margin-bottom: 8px; padding: 1px 1px;border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); border: 1px solid #f1f5f9; transition: transform 0.2s; }
    .lb-item:hover { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.04); border-color: #e2e8f0; }
    .lb-item:last-child { margin-bottom: 0; }
    
    .lb-name-wrapper { display: flex; align-items: center;  flex: 1; min-width: 0; }
    
    /* SLEEK SPLIT BADGE */
    .sleek-badge { display: flex; align-items: center; background: #f8fafc; border-radius: 6px; border: 1px solid #e2e8f0; overflow: hidden; font-size: 11px; font-weight: 800; flex-shrink: 0; }
    .sleek-badge-left { padding: 3px 6px; background: #ffffff; color: #0f172a; display: flex; align-items: center; gap: 3px; }
    .sleek-badge-right { padding: 3px 6px; background: #f1f5f9; color: #64748b; font-size: 10px; border-left: 1px solid #e2e8f0; display: flex; align-items: center; gap: 3px; }
    
    .text-quality { color: #059669; }
    .text-volume { color: #0284c7; }
    
    .pulse-top-avatar { padding: 0 8px; height: 24px; width: auto; min-width: 48px; color: black; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; letter-spacing: 0.5px; flex-shrink: 0; }
    .rank-0 .pulse-top-avatar { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); } 
    .rank-1 .pulse-top-avatar { background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%); } 
    .rank-2 .pulse-top-avatar { background: linear-gradient(135deg, #b45309 0%, #78350f 100%); } 

    /* GLOBAL TOPPER MESSAGES */
    .global-topper-messages { display: flex; flex-direction: column; gap: 10px; }
    .topper-msg-item { display: flex; align-items: center; gap: 15px; padding: 12px 18px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); animation: floatIn 0.5s ease-out; }
    .scorer-msg { background: linear-gradient(to right, #fffbeb, #ffffff); border: 1px solid #fde68a; }
    .practicer-msg { background: linear-gradient(to right, #fef2f2, #ffffff); border: 1px solid #fecaca; }
    .msg-icon { font-size: 28px; animation: bounce 2s infinite; }
    .msg-content strong { font-size: 11px; text-transform: uppercase; color: #475569; display: block; margin-bottom: 2px;}
    .msg-content p { font-size: 14px; font-weight: 700; color: #1e293b; margin: 0; font-style: italic; min-height: 21px; }
    
    .reward-card { animation: pulseGlow 2.5s infinite; border-radius: 12px; }
    .reward-card .input-group { box-shadow: 0 4px 6px rgba(0,0,0,0.05); border-radius: 8px; overflow: hidden; }
    .reward-card input:focus { box-shadow: none; border-color: #f59e0b; }
    
    /* TYPING ANIMATION CURSOR */
    .typing-cursor::after {
        content: '|';
        display: inline-block;
        margin-left: 3px;
        color: #f59e0b; 
        font-weight: 800;
        animation: blinkCursor 0.75s step-end infinite;
    }

    /* GLOBAL TODAY'S TOP 5 MARQUEE STRIP */
    .global-topper-strip {
        width: 100%;
        background: linear-gradient(90deg, #0dcaf0, #0d6efd);
        color: white;
        font-size: 0.70rem;
        padding: 1px 0;
        white-space: nowrap;
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    .global-topper-text {
        display: inline-block;
        padding-left: 100%; 
        animation: smooth-marquee 30s linear infinite; 
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    /* TODAY'S #1 RANKER SLEEK MESSAGE CARD */
    .today-topper-msg-card {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 5px 10px;
        border-radius: 12px;
        background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
        border: 1px solid #bae6fd;
        box-shadow: 0 4px 15px rgba(2, 132, 199, 0.1);
        animation: floatIn 0.5s ease-out;
    }
    .tt-msg-icon { font-size: 32px; animation: bounce 2s infinite; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
    .tt-msg-content strong { font-size: 11px; text-transform: uppercase; color: #0369a1; display: block; margin-bottom: 3px; letter-spacing: 0.5px; }
    .tt-msg-content p { font-size: 13px; font-weight: 500; color: #0f172a; margin: 0; font-style: italic; min-height: 22px; }

    @keyframes smooth-marquee { 0% { transform: translateX(0%); } 100% { transform: translateX(-100%); } }
    @keyframes floatIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
    @keyframes pulseGlow { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.3); } 70% { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); } }
    @keyframes pulseBlue { 0% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.3); } 70% { box-shadow: 0 0 0 12px rgba(2, 132, 199, 0); } 100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); } }
    @keyframes blinkCursor { from, to { opacity: 1; } 50% { opacity: 0; } }

    @media (max-width: 768px) { 
        .pulse-card-body { flex-direction: column; align-items: flex-start; padding: 12px; } 
        .pulse-community-stats { width: 100%; align-items: flex-start; } 
        .dual-leaderboard { flex-direction: column; }
    }

    /* SLEEK ONLINE BADGES */
    .lqc-online-badge {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        background: rgba(255, 255, 255, 0.25);
        padding: 3px 8px;
        border-radius: 12px;
        font-size: 10.5px;
        font-weight: 800;
        letter-spacing: 0.5px;
        border: 1px solid rgba(255, 255, 255, 0.4);
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        backdrop-filter: blur(4px);
    }
    .lqc-online-badge i { font-size: 9px; animation: pulseIcon 1.5s infinite; }

    @keyframes pulseGreenDot { 
        0%, 100% { transform: scale(1); opacity: 1; } 
        50% { transform: scale(1.4); opacity: 0.6; } 
    }
    
    
    
    