:root {
    --bg-color: #000000;
    --surface-color: #111111;
    --surface-hover: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #ffffff;
    --accent-text: #000000;
    --border-color: rgba(255, 255, 255, 0.1);
    --success-color: #00ff88;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 110px;
}

#app {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: contain;
    background-color: #000;
    border: 1px solid var(--border-color);
}

.logo-container h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.user-info {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: left;
}

/* Categories */
.categories {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding-top: 12px;
    padding-bottom: 18px;
    margin-bottom: 20px;
    scrollbar-width: none;
    cursor: grab;
    scroll-behavior: smooth;
}

.categories:active {
    cursor: grabbing;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category-btn:hover {
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--text-primary);
}

/* ===== Moving Spotlight ===== */
.category-spotlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(0);
    transition:
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease;
}

.spot-cap {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 44%;
    height: 4px;
    border-radius: 0 0 6px 6px;
    background: #ffffff;
    box-shadow: 0 0 14px 2px rgba(255, 255, 255, 0.6);
}

.spot-cone {
    position: absolute;
    top: 3px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.28) 0%,
        rgba(255, 255, 255, 0.10) 45%,
        rgba(255, 255, 255, 0) 100%);
    clip-path: polygon(33% 0, 67% 0, 100% 100%, 0 100%);
}

.spot-cone::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 78%;
    height: 14px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.22), transparent 70%);
}

.category-btn {
    position: relative;
    z-index: 1;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.category-btn.active {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
}

/* Courses Header */
.courses-header {
    text-align: center;
    margin-bottom: 18px;
}

.courses-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.courses-header p {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================== */
/* Course Detail Sheet (modal)    */
/* ============================== */
body.modal-open {
    overflow: hidden;
}

.course-sheet {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.course-sheet.show {
    opacity: 1;
    visibility: visible;
}

.course-sheet-card {
    width: 100%;
    max-width: 600px;
    background: linear-gradient(180deg, #15151d 0%, #0b0b11 100%);
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 26px 26px 0 0;
    padding: 14px 22px calc(26px + env(safe-area-inset-bottom, 0px));
    position: relative;
    transform: translateY(100%);
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    max-height: 92vh;
    overflow-y: auto;
    scrollbar-width: none;
}

.course-sheet-card::-webkit-scrollbar {
    display: none;
}

.course-sheet.show .course-sheet-card {
    transform: translateY(0);
}

.sheet-handle {
    width: 42px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.18);
    margin: 0 auto 20px;
}

.sheet-close {
    position: absolute;
    top: 16px;
    left: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.sheet-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Sheet body content */
.cm-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.cm-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: rgba(48, 209, 88, 0.1);
    border: 1px solid rgba(48, 209, 88, 0.2);
    flex-shrink: 0;
}

.cm-badge {
    font-size: 12px;
    font-weight: 700;
    color: #30d158;
    background: rgba(48, 209, 88, 0.1);
    border: 1px solid rgba(48, 209, 88, 0.22);
    padding: 5px 12px;
    border-radius: 20px;
}

.cm-title {
    font-size: 21px;
    font-weight: 800;
    line-height: 1.45;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.cm-tagline {
    font-size: 14px;
    color: #30d158;
    font-weight: 600;
    margin-bottom: 16px;
}

.cm-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 22px;
}

.cm-benefits {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 24px;
}

.cm-benefits h3 {
    font-size: 15px;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.cm-benefits ul {
    list-style: none;
    display: grid;
    gap: 12px;
}

.cm-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: #cfd2dc;
    line-height: 1.6;
}

.cm-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(48, 209, 88, 0.14);
    color: #30d158;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    margin-top: 1px;
}

.cm-watch {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    background: linear-gradient(135deg, #2ecc5b 0%, #1f9e42 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 22px rgba(48, 209, 88, 0.28);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.cm-watch:hover {
    box-shadow: 0 10px 28px rgba(48, 209, 88, 0.42);
}

.cm-watch:active {
    transform: scale(0.98);
}

.cm-watch-icon {
    font-size: 11px;
}

/* Courses */
.courses-container {
    display: block;
}

/* Course Group Header */
.course-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 4px 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.courses-container > .course-group-header:first-child {
    margin-top: 4px;
}

.cgh-icon { font-size: 18px; }

.cgh-title {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.cgh-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    padding: 2px 11px;
    border-radius: 20px;
}

/* Course Group + Items */
.course-group {
    display: grid;
    gap: 10px;
    margin-bottom: 6px;
}

.course-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(160deg, #121219 0%, #0c0c12 100%);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.3s ease, background 0.3s ease;
}

.course-item:hover {
    transform: translateY(-2px);
    border-color: rgba(48, 209, 88, 0.25);
    background: var(--surface-hover);
}

.course-item:active {
    transform: scale(0.99);
}

.course-play {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(48, 209, 88, 0.1);
    border: 1px solid rgba(48, 209, 88, 0.2);
    color: #30d158;
    font-size: 10px;
    padding-right: 1px;
}

.course-title {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
}

.course-open {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.course-item:hover .course-open {
    color: #30d158;
}

.course-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-3px);
    background-color: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
}

.course-level {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.course-card h2 {
    font-size: 18px;
    margin-bottom: 10px;
    margin-top: 10px;
    padding-right: 5px;
}

.course-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.duration {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.start-btn {
    background: transparent;
    color: var(--accent-color);
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-card:hover .start-btn {
    color: var(--success-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--surface-color);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    left: 20px;
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--text-primary);
}

.modal-body h2 {
    margin-bottom: 15px;
    padding-right: 10px;
}

.modal-body p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
}

.enroll-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--accent-color);
    color: var(--accent-text);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.enroll-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background-color: #12131a; /* Dark premium tone matching the image */
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    z-index: 1000;
}

.nav-item {
    color: #5a5c6e;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    cursor: pointer;
    gap: 4px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-label {
    font-size: 11px;
    font-weight: 600;
}

.nav-item.active {
    color: #ffffff;
}

.nav-item:active {
    transform: scale(0.9);
}

.nav-fab-container {
    position: relative;
    top: -18px; /* Float above the bar */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 80px;
    background-color: transparent; /* No blob — clean floating button */
}

.fab-button {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #0d0d12;
    /* Clean notch ring in the bar color + soft depth shadow */
    box-shadow:
        0 0 0 6px #12131a,
        0 10px 22px rgba(0, 0, 0, 0.55),
        0 2px 6px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fab-button.active {
    box-shadow:
        0 0 0 6px #12131a,
        0 0 0 8px rgba(255, 255, 255, 0.12),
        0 10px 22px rgba(0, 0, 0, 0.55);
}

.fab-label {
    font-size: 11px;
    font-weight: 600;
    color: #7a7c8a;
    transition: color 0.3s ease;
}

.fab-button.active + .fab-label,
.nav-fab-container:has(.active) .fab-label {
    color: #ffffff;
}

.fab-button:active {
    transform: scale(0.92);
}

/* Views & Features */
.view {
    display: none;
    animation: fadeIn 0.3s ease;
}

.view.active-view {
    display: block;
}

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

.welcome-banner {
    position: relative;
    background: linear-gradient(135deg, #191922 0%, #0d0d12 55%, #0a0a14 100%);
    padding: 30px 24px;
    border-radius: 22px;
    border: 1px solid var(--border-color);
    margin-bottom: 28px;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.welcome-glow {
    position: absolute;
    top: -70%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(120, 140, 255, 0.16), transparent 65%);
    z-index: -1;
    pointer-events: none;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 16px;
}

.welcome-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #30d158;
    box-shadow: 0 0 8px rgba(48, 209, 88, 0.8);
    animation: pulseLive 1.5s ease-in-out infinite;
}

.welcome-banner h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.4;
}

.welcome-brand {
    background: linear-gradient(90deg, #ffffff, #9fb4ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.welcome-banner p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    max-width: 400px;
    margin: 0 auto;
}

.welcome-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.welcome-pill {
    font-size: 11.5px;
    font-weight: 600;
    color: #cfd3e0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
}

.section-title {
    font-size: 18px;
    margin-bottom: 15px;
    padding-right: 5px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.feature-card {
    position: relative;
    background: linear-gradient(160deg, #121219 0%, #0c0c12 100%);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: right;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
}

.feature-card.feat-green:hover { border-color: rgba(48, 209, 88, 0.3); }
.feature-card.feat-blue:hover  { border-color: rgba(90, 160, 255, 0.3); }
.feature-card.feat-purple:hover{ border-color: rgba(170, 120, 255, 0.3); }

.feature-icon-wrap {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.feat-green .feature-icon-wrap  { background: rgba(48, 209, 88, 0.1);  border: 1px solid rgba(48, 209, 88, 0.2); }
.feat-blue .feature-icon-wrap   { background: rgba(90, 160, 255, 0.1); border: 1px solid rgba(90, 160, 255, 0.2); }
.feat-purple .feature-icon-wrap { background: rgba(170, 120, 255, 0.1);border: 1px solid rgba(170, 120, 255, 0.2); }

.feature-card .icon {
    font-size: 26px;
}

.feature-body {
    flex: 1;
}

.feature-card h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-primary);
    font-weight: 700;
}

.feature-card p {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-arrow {
    flex-shrink: 0;
    font-size: 18px;
    color: #444;
    transition: color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover .feature-arrow {
    color: var(--text-primary);
    transform: translateX(-4px);
}

.about-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
}

.about-card h2 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
}

/* ============================== */
/* Price Counter Section - Premium */
/* ============================== */
.price-counter-section {
    background: linear-gradient(160deg, #0a0a14 0%, #080812 50%, #0d071a 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 45px 20px;
    margin-top: 30px;
    text-align: center;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.counter-content {
    position: relative;
    z-index: 2;
}

.counter-label {
    font-size: 13px;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* Price Display */
.price-display {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.currency {
    font-size: 28px;
    font-weight: 700;
    color: #ff453a;
    font-family: 'Outfit', monospace;
    transition: color 0.3s ease;
}

.price-digits {
    font-size: 56px;
    font-weight: 800;
    color: #ff453a;
    font-family: 'Outfit', monospace;
    letter-spacing: -1px;
    text-shadow: 0 0 30px rgba(255, 69, 58, 0.3);
    transition: all 0.3s ease;
    min-width: 200px;
    display: inline-block;
}

.price-display.counting .price-digits {
    animation: digitShake 0.05s infinite;
}

@keyframes digitShake {
    0% { transform: translateY(-1px); }
    50% { transform: translateY(1px); }
    100% { transform: translateY(0); }
}

.price-display.zero .currency,
.price-display.zero .price-digits {
    color: #30d158;
    text-shadow: 0 0 40px rgba(48, 209, 88, 0.4);
}

.price-display.hide {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
}

/* Counter Reveal */
.counter-reveal {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.counter-reveal.show {
    display: flex;
    animation: revealSlide 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

/* Free Explosion Effect */
.free-explosion {
    position: relative;
    display: inline-block;
}

.free-word {
    font-size: 52px;
    font-weight: 900;
    color: #30d158;
    text-shadow: 
        0 0 30px rgba(48, 209, 88, 0.6),
        0 0 80px rgba(48, 209, 88, 0.2);
    letter-spacing: 3px;
    display: inline-block;
    animation: freeAppear 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes freeAppear {
    0% { opacity: 0; transform: scale(0.3); filter: blur(20px); }
    50% { opacity: 1; transform: scale(1.15); filter: blur(0); }
    70% { transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* Burst rings behind the free word */
.free-explosion::before,
.free-explosion::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
}

.free-explosion::before {
    border: 2px solid rgba(48, 209, 88, 0.3);
    animation: burstRing 1s ease-out 0.2s forwards;
}

.free-explosion::after {
    border: 1px solid rgba(48, 209, 88, 0.15);
    animation: burstRing 1.2s ease-out 0.4s forwards;
}

@keyframes burstRing {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(4); opacity: 0; }
}

.counter-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    animation: fadeUp 0.5s ease 0.3s both;
}

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

/* Badge shimmer */
.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 30px;
    background: rgba(48, 209, 88, 0.08);
    border: 1px solid rgba(48, 209, 88, 0.2);
    color: #30d158;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.5s ease 0.6s both;
}

.promo-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transform: skewX(-20deg);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { left: -100%; }
    50%, 100% { left: 150%; }
}

.promo-badge span {
    color: rgba(48, 209, 88, 0.6);
    font-size: 10px;
}

/* ============================== */
/* Stats Section                  */
/* ============================== */
.stats-section {
    margin-top: 35px;
}

.stats-heading {
    text-align: center;
    font-size: 20px;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.stats-subheading {
    text-align: center;
    font-size: 12.5px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Featured Value Banner */
.value-banner {
    position: relative;
    background: linear-gradient(135deg, #1a1305 0%, #0f0b02 55%, #100a14 100%);
    border: 1px solid rgba(255, 196, 84, 0.18);
    border-radius: 20px;
    padding: 24px 20px;
    margin-bottom: 16px;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.value-banner.visible {
    opacity: 1;
    transform: translateY(0);
}

.value-banner-glow {
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 196, 84, 0.22), transparent 65%);
    z-index: -1;
    pointer-events: none;
}

.value-banner-label {
    display: inline-block;
    font-size: 12px;
    color: #d9a441;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.value-banner-amount {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 52px;
    line-height: 1;
    letter-spacing: -1px;
    color: #ffcf6b;
    text-shadow: 0 0 40px rgba(255, 196, 84, 0.35);
    margin-bottom: 10px;
    direction: ltr;
}

.vb-currency { font-size: 30px; vertical-align: 6px; margin-inline-end: 2px; }
.vb-plus { color: #d9a441; }

.value-banner-desc {
    display: block;
    font-size: 12.5px;
    color: #8a7a5a;
    line-height: 1.6;
    max-width: 320px;
    margin: 0 auto;
}

.value-banner-badge {
    display: inline-block;
    margin-top: 14px;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    color: #ffcf6b;
    background: rgba(255, 196, 84, 0.1);
    border: 1px solid rgba(255, 196, 84, 0.25);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.stat-card {
    background: linear-gradient(160deg, #111118 0%, #0c0c14 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 22px 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease;
}

/* Per-metric accent glow */
.stat-card::after {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 90px;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.stat-card.accent-blue::after { background: rgba(90, 160, 255, 0.28); }
.stat-card.accent-green::after { background: rgba(48, 209, 88, 0.26); }
.stat-card.accent-purple::after { background: rgba(170, 120, 255, 0.26); }
.stat-card.accent-gold::after { background: rgba(255, 196, 84, 0.26); }

.stat-card.accent-blue { border-color: rgba(90, 160, 255, 0.14); }
.stat-card.accent-green { border-color: rgba(48, 209, 88, 0.14); }
.stat-card.accent-purple { border-color: rgba(170, 120, 255, 0.14); }
.stat-card.accent-gold { border-color: rgba(255, 196, 84, 0.14); }

.stat-card > * { position: relative; z-index: 1; }

/* Live trending pill */
.stat-trend {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 9.5px;
    font-weight: 700;
    color: #30d158;
    background: rgba(48, 209, 88, 0.1);
    border: 1px solid rgba(48, 209, 88, 0.22);
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    z-index: 2;
    animation: trendPulse 2s ease-in-out infinite;
}

.accent-blue .stat-trend {
    color: #5aa0ff;
    background: rgba(90, 160, 255, 0.1);
    border-color: rgba(90, 160, 255, 0.22);
}

@keyframes trendPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.stat-plus, .stat-prefix { font-weight: 800; }
.accent-gold .stat-number { color: #ffcf6b; }

.stat-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-card:nth-child(2) { transition-delay: 0.1s; }
.stat-card:nth-child(3) { transition-delay: 0.2s; }
.stat-card:nth-child(4) { transition-delay: 0.3s; }

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card.visible::before {
    opacity: 1;
}

.stat-icon {
    font-size: 28px;
    margin-bottom: 10px;
    filter: grayscale(0.2);
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    direction: ltr;
}

.counter-num {
    display: inline-block;
    min-width: 20px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.stat-sub {
    font-size: 11px;
    color: #555;
    line-height: 1.4;
}

/* Updates Card */
.updates-card {
    background: linear-gradient(160deg, #0d1117 0%, #0a0e13 100%);
    border: 1px solid rgba(48, 209, 88, 0.12);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.updates-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.updates-icon {
    font-size: 28px;
    position: relative;
    min-width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(48, 209, 88, 0.08);
    border-radius: 12px;
}

.pulse-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: #30d158;
    border-radius: 50%;
    animation: pulseLive 1.5s ease-in-out infinite;
}

@keyframes pulseLive {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.6); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(48, 209, 88, 0); }
}

.updates-text {
    text-align: right;
}

.updates-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 700;
    color: #30d158;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #30d158;
    box-shadow: 0 0 8px rgba(48, 209, 88, 0.8);
    animation: pulseLive 1.5s ease-in-out infinite;
}

.updates-text h4 {
    font-size: 15px;
    color: #30d158;
    font-weight: 700;
    margin-bottom: 5px;
}

.updates-text p {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}
