/**
 * Zynq Rewards Platform - Premium Animation Engine
 * Keyframes for dynamic ticker loops, status pulses, and micro-interactions
 */

/* --- Ticker Marquee Scroll --- */
@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* --- Node Active Indicator Pulse --- */
@keyframes nodePulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(6, 214, 160, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(6, 214, 160, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(6, 214, 160, 0);
    }
}

/* --- Slide Alert Overlay --- */
@keyframes alertSlide {
    0% {
        transform: translateX(120%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* --- Ambient Orb Animation --- */
@keyframes floatOrb {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.orb-top-left {
    animation: floatOrb 12s ease-in-out infinite;
}

.orb-bottom-right {
    animation: floatOrb 15s ease-in-out infinite reverse;
}

/* --- Card Tilt & Hover physics Simulation --- */
@keyframes pulseBorderGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(67, 97, 238, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(123, 44, 191, 0.5);
    }
}

.vip-plan-card.highlight-card {
    animation: pulseBorderGlow 3s infinite;
}

/* --- Task Completion Reward Particle pop/fade --- */
@keyframes rewardPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    60% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {/**
 * Zynq Rewards Platform - Premium Design System
 * Defines dark-mode styling variables, glass components, and layout architecture
 */

:root {
    --bg-base: #07090E;
    --bg-surface: #0E131F;
    --bg-glass: rgba(14, 19, 31, 0.65);
    --bg-glass-card: rgba(22, 29, 47, 0.55);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(67, 97, 238, 0.35);
    
    --primary: #4361EE;
    --primary-glow: #3A0CA3;
    --accent: #7B2CBF;
    --accent-pink: #F72585;
    --success: #06D6A0;
    --warning: #FFB703;
    --danger: #EF476F;
    
    --text-main: #FFFFFF;
    --text-muted: #8E9BAE;
    --text-dim: #5A677D;
    
    --font-outfit: 'Outfit', sans-serif;
    
    --header-height: 80px;
}

/* Base Layout Resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.zynq-dark-canvas {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-outfit);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Ambient Background Decor Objects */
.ambient-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.25;
}

.orb-top-left {
    top: -150px;
    left: -150px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
}

.orb-bottom-right {
    bottom: 20%;
    right: -100px;
    background: linear-gradient(135deg, var(--accent-pink), var(--primary-glow));
}

.ambient-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.app-layout-frame {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* --- Premium Navigation Header --- */
.zynq-main-header {
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 9, 14, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo .logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    box-shadow: 0 0 20px rgba(67, 97, 238, 0.4);
}

.brand-logo .brand-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.accent-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Desktop Nodes */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.desktop-nav .nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.desktop-nav .nav-link i {
    font-size: 18px;
}

.desktop-nav .nav-link:hover,
.desktop-nav .nav-link.active {
    color: var(--text-main);
    background: var(--bg-glass-card);
}

.desktop-nav .nav-link.admin-link {
    color: var(--warning);
    border: 1px dashed rgba(255, 183, 3, 0.3);
}

/* Header Action Components */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-status-pill {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    padding: 4px 6px 4px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.balance-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.balance-meta .label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    line-height: 1;
}

.balance-meta .amount {
    font-size: 14px;
    font-weight: 700;
    color: var(--success);
}

.vip-badge-mini {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-icon-logout {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger);
    font-size: 18px;
}

.btn-icon-logout:hover {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 0 15px rgba(239, 71, 111, 0.4);
}

/* Glow Buttons */
.btn-outline-glow {
    padding: 10px 22px;
    border-radius: 10px;
    border: 1px solid var(--border-glow);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    box-shadow: inset 0 0 10px rgba(67, 97, 238, 0.1);
}

.btn-outline-glow:hover {
    background: rgba(67, 97, 238, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(67, 97, 238, 0.3);
}

.btn-primary-glow {
    padding: 10px 24px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary-glow:hover {
    filter: brightness(1.15);
    box-shadow: 0 6px 22px rgba(67, 97, 238, 0.6);
}

/* Mobile Drawers */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 28px;
    cursor: pointer;
}

.mobile-nav-canvas {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(15px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-canvas.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-inner {
    position: absolute;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-glass);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-canvas.active .mobile-nav-inner {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-glass);
}

.drawer-header .title {
    font-size: 18px;
    font-weight: 700;
}

.close-drawer {
    background: var(--bg-glass-card);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-link {
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--bg-glass-card);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
}

.drawer-link i {
    font-size: 22px;
}

.drawer-link.active,
.drawer-link:hover {
    color: var(--text-main);
    background: rgba(67, 97, 238, 0.1);
    border-color: var(--border-glow);
}

.drawer-link.admin-link {
    color: var(--warning);
    background: rgba(255, 183, 3, 0.05);
    border-color: rgba(255, 183, 3, 0.2);
}

.drawer-link.logout-link {
    color: var(--danger);
    background: rgba(239, 71, 111, 0.05);
    margin-top: auto;
}

/* Alert Layer Anchor */
.alert-anchor-container {
    position: fixed;
    top: 100px;
    right: 24px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    width: calc(100% - 48px);
}

.custom-alert {
    padding: 16px 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    animation: alertSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.custom-alert i {
    font-size: 22px;
    flex-shrink: 0;
}

.custom-alert span {
    flex-grow: 1;
}

.close-alert {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
}

/* --- Shared Layout / Containers --- */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 24px;
    flex-grow: 1;
    width: 100%;
}

/* Dynamic Live Ticker */
.live-payout-marquee {
    background: var(--bg-glass-card);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.live-payout-marquee .ticker-badge {
    background: rgba(6, 214, 160, 0.15);
    color: var(--success);
    border: 1px solid rgba(6, 214, 160, 0.3);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.marquee-content {
    display: flex;
    gap: 40px;
    animation: scrollMarquee 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-item strong {
    color: var(--text-main);
}

.ticker-item .amt {
    color: var(--success);
    font-weight: 700;
}

/* Premium Card Components */
.glass-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: break-word;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

/* VIP plan card: define base padding via class so media queries can override inline styles */
.vip-plan-card {
    padding: 40px 32px !important;
}

/* Grid Framework */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* --- Form System --- */
.auth-wrapper {
    max-width: 460px;
    margin: 60px auto;
}

.auth-card {
    text-align: center;
}

.auth-header {
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.form-group {
    margin-bottom: 22px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    padding: 14px 18px;
    border-radius: 12px;
    color: var(--text-main);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(67, 97, 238, 0.25);
}

.btn-submit-full {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border-radius: 12px;
    margin-top: 10px;
}

.auth-footer {
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

/* --- Stats Counters --- */
.stat-card {
    background: var(--bg-glass-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
}

.stat-card .icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.stat-card .stat-info {
    display: flex;
    flex-direction: column;
}

.stat-card .stat-info .stat-val {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.stat-card .stat-info .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Table Modules */
.table-wrapper {
    overflow-x: auto;
    background: var(--bg-glass-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.custom-table th {
    background: rgba(0,0,0,0.2);
    padding: 16px 24px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-glass);
}

.custom-table td {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: 14px;
}

.badge {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-completed { background: rgba(6, 214, 160, 0.15); color: var(--success); border: 1px solid rgba(6, 214, 160, 0.3); }
.badge-pending { background: rgba(255, 183, 3, 0.15); color: var(--warning); border: 1px solid rgba(255, 183, 3, 0.3); }
.badge-failed { background: rgba(239, 71, 111, 0.15); color: var(--danger); border: 1px solid rgba(239, 71, 111, 0.3); }

/* --- Premium Footer Component --- */
.zynq-main-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-glass);
    padding-top: 60px;
    margin-top: auto;
}

.footer-grid {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px 60px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-col .col-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
    color: #fff;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-logo i {
    color: var(--primary);
    font-size: 26px;
}

.brand-slogan {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    max-width: 340px;
}

.social-links-footer {
    display: flex;
    gap: 12px;
}

.social-links-footer a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--bg-glass-card);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-muted);
}

.social-links-footer a:hover {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.security-badge-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.security-badge-grid .badge-item {
    background: var(--bg-glass-card);
    border: 1px solid var(--border-glass);
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
}

.security-badge-grid .badge-item i {
    color: var(--success);
    font-size: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.03);
    padding: 24px;
    text-align: center;
    background: rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto;
}

.copyright-text {
    font-size: 13px;
    color: var(--text-dim);
}

.node-status {
    font-size: 12px;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(6, 214, 160, 0.05);
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid rgba(6, 214, 160, 0.15);
}

.active-pulse {
    animation: nodePulse 2s infinite;
}

/* Modal Core Frames */
.custom-modal-canvas {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(15px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.custom-modal-canvas.active {
    opacity: 1;
    pointer-events: auto;
}

.custom-modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glow);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-modal-canvas.active .custom-modal-card {
    transform: scale(1);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.modal-body {
    padding: 24px;
}

/* --- Media Queries / Mobile Responsiveness --- */

/* --- Tablet: 991px and below --- */
@media (max-width: 991px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-section h1 {
        font-size: 42px !important;
        letter-spacing: -1px !important;
    }
}

/* --- Mobile: 768px and below --- */
@media (max-width: 768px) {
    :root {
        --header-height: 68px;
    }

    /* Nav */
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-actions .btn-outline-glow,
    .header-actions .btn-primary-glow {
        display: none;
    }

    .user-status-pill .balance-meta {
        display: none;
    }

    /* Container */
    .container {
        padding: 24px 16px;
    }

    /* Grids */
    .grid-3, .grid-2, .grid-4 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Cards */
    .glass-card {
        padding: 20px 16px;
    }

    /* Hero Section */
    .hero-section {
        margin: 20px auto 40px !important;
    }

    .hero-section h1 {
        font-size: 32px !important;
        letter-spacing: -0.5px !important;
        line-height: 1.2 !important;
    }

    .hero-section > p {
        font-size: 15px !important;
        margin-bottom: 28px !important;
    }

    .hero-cta-group {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .hero-cta-group a {
        text-align: center;
    }

    /* Live Ticker */
    .live-payout-marquee {
        padding: 8px 12px;
        gap: 10px;
        margin-bottom: 24px;
        border-radius: 12px;
    }

    .live-payout-marquee .ticker-badge {
        font-size: 10px;
        padding: 4px 8px;
    }

    /* Section spacing: override inline margin-bottom */
    .section-header {
        margin-bottom: 24px !important;
    }

    /* Stat Cards */
    .stat-card {
        padding: 18px;
        gap: 14px;
    }

    .stat-card .icon-box {
        width: 46px;
        height: 46px;
        font-size: 22px;
    }

    .stat-card .stat-info .stat-val {
        font-size: 20px;
    }

    /* Auth */
    .auth-wrapper {
        margin: 30px auto;
    }

    /* Tables */
    .custom-table th,
    .custom-table td {
        padding: 12px 14px;
        font-size: 13px;
    }

    /* Modals */
    .custom-modal-card {
        border-radius: 16px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 0 16px 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 14px;
        padding: 20px 16px;
        text-align: center;
    }

    /* Alert anchor */
    .alert-anchor-container {
        right: 12px;
        top: 80px;
        width: calc(100% - 24px);
    }

    /* Dashboard welcome header action buttons */
    .dashboard-actions {
        width: 100%;
    }

    .dashboard-actions a {
        flex: 1;
        text-align: center;
        justify-content: center;
    }

    /* VIP page heading */
    .container h1 {
        font-size: 28px !important;
        letter-spacing: -0.5px !important;
    }

    /* VIP plan cards: override inline padding:40px 32px */
    .vip-plan-card {
        padding: 24px 20px !important;
    }

    /* General text overflow protection */
    .glass-card p,
    .glass-card span,
    .glass-card code {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Wallet page balance display */
    .wallet-balance-display {
        font-size: 22px !important;
    }
}

/* --- Small Mobile: 480px and below --- */
@media (max-width: 480px) {
    :root {
        --header-height: 60px;
    }

    /* Header */
    .header-inner {
        padding: 0 12px;
    }

    .brand-logo .brand-text {
        font-size: 17px;
    }

    .brand-logo .logo-icon {
        width: 34px;
        height: 34px;
        font-size: 18px;
        border-radius: 9px;
    }

    /* Balance pill: hide entirely on smallest screens to prevent cramping */
    .user-status-pill {
        display: none;
    }

    /* Container */
    .container {
        padding: 16px 12px;
    }

    /* Hero */
    .hero-section h1 {
        font-size: 26px !important;
        letter-spacing: -0.3px !important;
    }

    .hero-section > p {
        font-size: 14px !important;
    }

    /* Live ticker: shrink further */
    .live-payout-marquee {
        padding: 6px 10px;
    }

    .ticker-item {
        font-size: 12px;
        gap: 6px;
    }

    /* Cards */
    .glass-card {
        padding: 16px 14px;
        border-radius: 14px;
    }

    /* Stat cards */
    .stat-card .stat-info .stat-val {
        font-size: 18px;
    }

    /* Auth */
    .auth-wrapper {
        margin: 20px auto;
    }

    .auth-card {
        padding: 0;
    }

    .form-control {
        padding: 12px 14px;
        font-size: 14px;
    }

    /* Tables — allow horizontal scroll, tighten cells */
    .custom-table th,
    .custom-table td {
        padding: 10px 12px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* Footer */
    .footer-grid {
        padding: 0 12px 32px;
        gap: 24px;
    }

    .footer-bottom {
        padding: 16px 12px;
    }

    .brand-slogan {
        font-size: 13px;
    }

    /* Mobile nav drawer: full width on tiny screens */
    .mobile-nav-inner {
        width: 280px;
        right: -290px;
    }

    /* Buttons */
    .btn-primary-glow,
    .btn-outline-glow {
        font-size: 13px;
        padding: 10px 18px;
    }

    /* VIP badge in header: shrink */
    .vip-badge-mini {
        font-size: 10px;
        padding: 5px 8px;
    }

    .vip-badge-mini span {
        display: none;
    }
}

        transform: scale(1);
        opacity: 1;
    }
}

.reward-confetti-burst {
    animation: rewardPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- Progress Circle Fill FX --- */
@keyframes fillProgress {
    from {
        stroke-dashoffset: 100;
    }
}
