/* ==========================================================================
   WIN WIN Earning App - Design Tokens & Stylesheet
   Theme: Futuristic Dark Glassmorphism (Cyberpunk & Neon highlights)
   MOBILE-FIRST: Optimized for phone users (360px-420px target)
   ========================================================================== */

/* 1. Design Variables & Base Resets */
:root {
    --bg-base: #0A0F0D;
    --bg-panel: #0A0F0D;
    --bg-panel-solid: #0A0F0D;
    --border-glass: rgba(255, 255, 255, 0.05);
    --border-glass-active: #10E58A;
    
    /* Strict 3-Color Palette */
    --color-primary: #10E58A;
    --color-primary-glow: transparent;
    --color-success: #10E58A;
    --color-success-glow: transparent;
    --color-warning: #F2B94D;
    --color-danger: #F2B94D;
    --color-danger-glow: transparent;
    --color-gold: #F2B94D;
    --color-gold-glow: transparent;
    --color-wincash: #10E58A;
    
    /* Typography colors */
    --text-main: #FFFFFF;
    --text-muted: #b5bbc5;
    --text-inverse: #0A0F0D;
    
    /* Shadows & Transitions */
    --shadow-glow: none !important;
    --shadow-primary-neon: none !important;
    --shadow-success-neon: none !important;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    --safe-ad-gap: 50px;
    --bottom-nav-height: 64px;
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile browsers */
    display: flex;
    justify-content: center;
    align-items: stretch;
    overscroll-behavior-y: none; /* Prevent pull-to-refresh */
}

.hidden-element {
    display: none !important;
}

/* Hide scrollbars on mobile for cleaner look */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(242, 185, 77, 0.3); border-radius: 10px; }

/* 2. Global Utilities */
h1, h2, h3, h4, h5, .brand-text h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
}

.plan-free {
    background: rgba(143, 156, 174, 0.15);
    color: var(--text-muted);
    border: 1px solid rgba(143, 156, 174, 0.3);
}

.plan-pro {
    background: rgba(16, 229, 138, 0.15);
    color: #10E58A;
    border: 1px solid rgba(16, 229, 138, 0.3);
    box-shadow: none !important;
}

.status-danger {
    background: rgba(242, 185, 77, 0.15);
    color: var(--color-danger);
    border: 1px solid var(--color-danger);
}

.status-success {
    background: rgba(16, 229, 138, 0.15);
    color: var(--color-success);
    border: 1px solid var(--color-success);
}

/* WinCash identity */
.wc-mini { font-size: 0.9rem; color: #10E58A; }
.wc-icon { font-size: 1rem; color: #10E58A; }
.wc-icon-big { font-size: 1.8rem; color: #10E58A; }
.fa-coins { color: #10E58A !important; }

.wincash-explainer {
    background: rgba(16, 229, 138, 0.06);
    border: 1px solid rgba(16, 229, 138, 0.15);
    padding: 8px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--color-wincash);
    font-weight: 600;
    margin-bottom: 20px;
}

.wincash-conversion-box {
    background: var(--bg-panel);
    border: 1px solid rgba(16, 229, 138, 0.15);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.conversion-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.conversion-info h5 {
    font-size: 0.85rem;
    color: var(--color-wincash);
    margin-bottom: 2px;
}

.conversion-info p {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.your-balance-display {
    text-align: center;
    background: rgba(16, 229, 138, 0.04);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(16, 229, 138, 0.08);
}

.your-balance-display span {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.your-balance-display strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    color: var(--color-success);
}

.input-helper-text {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

/* Buttons - MOBILE OPTIMIZED (min 48px touch targets) */
.btn {
    padding: 14px 20px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    min-height: 48px; /* Touch-friendly minimum */
    touch-action: manipulation; /* Prevent double-tap zoom */
    -webkit-user-select: none;
    user-select: none;
}

.btn:active {
    transform: scale(0.96);
    transition: transform 0.1s;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--text-inverse);
    font-weight: bold;
    border-radius: 12px;
}
.btn-primary:hover, .btn-primary:active {
    background: #10E58A;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.btn-secondary:active {
    background: rgba(255, 255, 255, 0.1);
}
.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-success {
    background: var(--color-success);
    color: var(--text-inverse);
    font-weight: bold;
    border-radius: 12px;
}
.btn-success:active {
    background: #10E58A;
}
.btn-success:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-gold {
    background: var(--color-gold);
    color: var(--text-inverse);
    box-shadow: 0 0 12px rgba(242, 185, 77, 0.3);
}
.btn-gold:active {
    background: #F2B94D;
    box-shadow: 0 0 20px rgba(242, 185, 77, 0.6);
}

.btn-danger {
    background: var(--color-danger);
    color: var(--text-main);
}

.btn-block { display: flex; width: 100%; }
.btn-icon-only { padding: 10px; border-radius: 8px; min-height: 44px; min-width: 44px; }
.btn-sm { font-size: 0.7rem; padding: 10px; min-height: 40px; }

/* Inputs - MOBILE OPTIMIZED (larger touch targets, no zoom on focus) */
.input-group { margin-bottom: 16px; width: 100%; }
.input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrapper i, .input-wrapper .currency-symbol {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.input-wrapper .currency-symbol {
    color: var(--color-wincash);
    font-weight: 700;
    font-size: 1rem;
}
.input-wrapper input {
    width: 100%;
    padding: 14px 42px 14px 42px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 16px; /* 16px prevents iOS zoom on focus! */
    outline: none;
    transition: var(--transition-smooth);
    -webkit-appearance: none;
    appearance: none;
}
.input-wrapper input:focus {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(242, 185, 77, 0.15);
}
.input-wrapper .toggle-password-btn {
    position: absolute;
    right: 14px;
    left: auto !important;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 5px;
    z-index: 10;
    pointer-events: auto;
}
.input-wrapper .toggle-password-btn:hover {
    color: var(--color-primary);
}

/* 3. Auth Screen - MOBILE FULL SCREEN */
.auth-wrapper {
    width: 100%;
    max-width: 480px;
    margin: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
}

.auth-card {
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: var(--shadow-glow);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-success));
}

.brand-logo-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 12px;
}
.logo-orb {
    width: 52px; height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--color-primary), #F2B94D);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    color: var(--text-main);
    box-shadow: var(--shadow-primary-neon);
    margin-bottom: 12px;
}
.brand-logo-large h1 {
    font-size: 1.9rem; font-weight: 700;
    background: linear-gradient(to right, #ffffff, #8f9cae);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

/* New Auth Provider Buttons */
.auth-card-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 24px;
}
.btn-auth-provider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-auth-provider:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.provider-icon {
    width: 24px;
    height: 24px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.google-provider {
    background: #ffffff;
    color: #1f2937;
}
.phone-provider {
    background: #1f2937;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.1);
}
.demo-notice {
    margin-top: 20px;
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* Manual Auth Form */
.manual-auth-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.auth-input {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}
.auth-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}
.auth-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(242, 185, 77, 0.18);
    background: rgba(242, 185, 77, 0.05);
}
.btn-manual-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #F2B94D 0%, #F2B94D 50%, #F2B94D 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-sans);
    cursor: pointer;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 20px rgba(242, 185, 77, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn-manual-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(242, 185, 77, 0.55);
    filter: brightness(1.08);
}
.btn-manual-login:active {
    transform: scale(0.97);
}
.auth-divider {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.6;
    letter-spacing: 1px;
    padding: 4px 0;
}


/* 4. Dashboard layout - MOBILE OPTIMIZED */
.app-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.app-layout-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
}

/* Sticky Bottom Navigation Bar styling */
.bottom-nav-bar {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    z-index: 999;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background: #0A0F0D;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 6px 12px calc(6px + var(--safe-area-bottom));
}

.main-content-wrapper {
    flex: 1;
    padding: 10px 12px;
    padding-bottom: 100px; /* Fixed padding bottom for bottom nav */
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-panel);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    margin-bottom: 12px;
    position: sticky;
    top: 0;
    z-index: 50;
}
/* Header Left Zone */
.header-left-zone {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 1;
    min-width: 0;
}
.header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.header-brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.5px;
}
.header-separator {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}
.header-stats { display: flex; align-items: center; gap: 6px; }
.logo-orb-small {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--color-primary), #F2B94D);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
    color: var(--text-main);
    box-shadow: 0 0 8px rgba(242, 185, 77, 0.25);
    flex-shrink: 0;
}
.brand-text h2 { font-size: 1.05rem; line-height: 1.1; margin-bottom: 1px; }
.header-stats { display: flex; align-items: center; gap: 6px; }

.stat-bubble {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 6px 10px; border-radius: 10px;
    font-size: 0.78rem; font-weight: 600;
    display: flex; align-items: center; gap: 5px;
    transition: var(--transition-smooth);
    white-space: nowrap;
}
.streak-bubble { border-color: rgba(255, 87, 34, 0.2); }
.wallet-bubble {
    border-color: rgba(16, 229, 138, 0.25);
    color: var(--color-wincash);
    box-shadow: 0 0 8px rgba(16, 229, 138, 0.05);
}

/* Header User Badge */
.header-user-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 1;
    min-width: 0;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
    border-radius: 8px;
    padding: 4px;
}
.header-user-badge:hover {
    opacity: 0.85;
    transform: scale(0.98);
}
.header-user-badge:active {
    transform: scale(0.95);
}
.header-avatar-icon {
    font-size: 1.4rem;
    color: var(--color-primary);
}
.header-username-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Notification Bell */
.header-noti-wrapper {
    position: relative;
    position: relative;
}
.header-noti-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
    flex-shrink: 0;
}
.header-noti-btn:hover { color: var(--text-main); background: rgba(255, 255, 255, 0.08); }
.noti-badge-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10E58A;
    box-shadow: 0 0 6px #10E58A, 0 0 12px rgba(16, 229, 138, 0.4);
    animation: notiPulse 1.5s infinite;
}
@keyframes notiPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

/* Notification Dropdown */
.noti-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    max-height: 380px;
    background: rgba(18, 22, 33, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 200;
    overflow: hidden;
    animation: fade 0.2s ease;
}
.noti-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.noti-dropdown-header h5 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-main);
}
.noti-clear-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.noti-clear-btn:hover { color: var(--text-main); }
.noti-feed {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    max-height: 320px;
}
.noti-feed li {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}
.noti-feed li:last-child { border-bottom: none; }
.noti-feed li.noti-unread { color: var(--text-main); background: rgba(16, 229, 138, 0.03); }
.noti-feed .noti-empty {
    text-align: center;
    padding: 30px 16px;
    color: var(--text-muted);
    font-size: 0.8rem;
    display: block;
}
.noti-msg { flex: 1; line-height: 1.35; }
.noti-time { font-size: 0.65rem; color: rgba(255,255,255,0.25); white-space: nowrap; flex-shrink: 0; }

.btn-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: rgba(242, 185, 77, 0.1);
    border: 1px solid rgba(242, 185, 77, 0.2);
    color: var(--color-danger);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 0.9rem;
    transition: var(--transition-smooth);
    flex-shrink: 0;
    min-width: 34px;
    touch-action: manipulation;
}
.btn-icon:active { background: var(--color-danger); color: var(--text-main); }

/* Session */
.session-alert {
    background: rgba(242, 185, 77, 0.05);
    border: 1px solid rgba(242, 185, 77, 0.12);
    border-radius: 10px;
    padding: 6px 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem;
    margin-bottom: 8px;
    flex-wrap: wrap; gap: 4px;
    color: var(--text-muted);
}
.session-label i { color: var(--color-primary); }
.session-value { color: var(--text-main); font-weight: 700; }
.session-divider { opacity: 0.3; }
.session-countdown-timer {
    color: var(--color-warning);
    font-weight: 700;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.75rem;
}

/* Navigation - FIXED BOTTOM (native app style) */
.app-navbar {
    display: flex;
    padding: 4px 8px;
    gap: 2px;
}
.nav-tab {
    flex: 1; background: transparent; border: none;
    padding: 8px 4px; border-radius: 10px;
    color: var(--text-muted); font-weight: 600;
    cursor: pointer; display: flex;
    flex-direction: column; align-items: center;
    gap: 3px; font-size: 0.65rem;
    transition: var(--transition-smooth);
    min-height: 48px;
    justify-content: center;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    position: relative;
}
.nav-tab i { font-size: 1.15rem; }
.nav-tab:active { background: rgba(255, 255, 255, 0.05); }
.nav-tab.active-nav-tab {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-primary);
}
.nav-tab.active-nav-tab::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 0 0 4px 4px;
}

/* 5. Main content */
.app-main-content { flex: 1; margin-bottom: 10px; padding-bottom: 100px; }
.tab-view { animation: fadeIn 0.3s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.view-intro { margin-bottom: 14px; padding: 0 2px; }
.view-intro h3 { font-size: 1.2rem; margin-bottom: 4px; }
.view-intro p { color: var(--text-muted); font-size: 0.8rem; line-height: 1.4; }
.view-intro.text-center { text-align: center; }
.intro-icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.text-gold { color: var(--color-gold); }

/* 6. Tasks - SINGLE COLUMN ON MOBILE */
.tasks-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); 
    gap: 12px; 
}

.task-card {
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 163, 0.08);
    border-radius: 24px; 
    padding: 24px 12px 16px 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative; 
    overflow: hidden;
    cursor: pointer;
    text-align: center;
}
.task-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: none !important;
}
.task-card:active { transform: scale(0.96); border-color: var(--border-glass-active); }

/* Rolling Cooldown Locked State */
.task-card--locked {
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    filter: none !important;
}
.task-card--locked .task-icon i {
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.05));
}
.task-card--locked .task-reward-badge {
    opacity: 0.5;
}
.cooldown-timer-live {
    font-size: 0.82rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--color-warning);
    letter-spacing: 0.5px;
}
.cooldown-label-text {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}


.task-reward-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(16, 229, 138, 0.15);
    color: var(--color-wincash);
    border: 1px solid rgba(16, 229, 138, 0.3);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.task-reward-badge.badge-danger {
    background: rgba(242, 185, 77, 0.15);
    color: var(--color-danger);
    border-color: rgba(242, 185, 77, 0.3);
}

.task-reward-badge.badge-gold {
    background: rgba(242, 185, 77, 0.15);
    color: var(--color-gold);
    border-color: rgba(242, 185, 77, 0.3);
}

.task-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    margin-top: 10px;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.1));
}

.task-card h4 { font-size: 0.95rem; margin-bottom: 8px; font-weight: 600; }
.task-progress-status {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px; 
    border-radius: 8px;
    font-size: 0.75rem; 
    color: var(--text-muted);
    font-weight: 600;
}
.task-limit-info {
    font-size: 0.65rem; color: var(--text-muted);
    margin-top: 8px;
}

.cooldown-text {
    text-align: center; font-size: 0.75rem;
    color: var(--color-warning); padding: 8px 0;
    animation: pulse 1s infinite alternate;
}
@keyframes pulse { from { opacity: 0.7; } to { opacity: 1; } }

.card-reward-video { border-top: 3px solid var(--color-success); border-left: 1px solid var(--border-glass); }
.card-article-reads { border-top: 3px solid var(--color-primary); border-left: 1px solid var(--border-glass); }
.card-direct-links { border-top: 3px solid var(--color-warning); border-left: 1px solid var(--border-glass); }
.card-mandatory-google { border-top: 3px solid var(--color-danger); border-left: 1px solid var(--border-glass); }
.card-mandatory-web { border-top: 3px solid var(--color-gold); border-left: 1px solid var(--border-glass); }
.card-social-follows { border-top: 3px solid #10E58A; border-left: 1px solid var(--border-glass); }
.card-casual-games { border-top: 3px solid #F2B94D; border-left: 1px solid var(--border-glass); }
.card-social-micro { border-top: 3px solid #10E58A; border-left: 1px solid var(--border-glass); }
.card-custom-tasks { border-top: 3px solid #F2B94D; border-left: 1px solid var(--border-glass); }

/* Video Hourly Limit Indicator */
.task-hourly-limit {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    font-size: 0.68rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.04);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}
.task-hourly-limit i {
    font-size: 0.65rem;
    color: var(--color-warning);
}
.hourly-label {
    opacity: 0.7;
}
.task-hourly-limit.limit-warning {
    color: var(--color-danger);
    border-color: rgba(255,23,68,0.2);
    background: rgba(255,23,68,0.08);
    animation: pulse 1s infinite alternate;
}
.task-hourly-limit.limit-warning i {
    color: var(--color-danger);
}

/* CPA Type Tags (CPI vs CPL) */
.cpa-type-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.cpa-tag {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.cpa-tag i {
    margin-right: 3px;
    font-size: 0.58rem;
}
.cpa-cpi {
    background: rgba(0,230,118,0.1);
    color: var(--color-success);
    border: 1px solid rgba(0,230,118,0.2);
}
.cpa-cpl {
    background: rgba(255,215,0,0.1);
    color: var(--color-gold);
    border: 1px solid rgba(255,215,0,0.2);
}

/* Game Selector List */
.game-selector-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    max-height: 340px;
    overflow-y: auto;
}
.game-select-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.game-select-item:hover {
    background: rgba(168,85,247,0.08);
    border-color: rgba(168,85,247,0.2);
}
.game-select-item .item-main-details h5 {
    font-size: 0.9rem;
    margin-bottom: 3px;
}
.game-select-item .item-main-details span {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.game-select-item .task-payout {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-wincash);
    white-space: nowrap;
}

/* 7. Subscriptions */
.comparison-container { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }

.comparison-card {
    flex: 1; background: var(--bg-panel);
    border: 1px solid rgba(0, 255, 163, 0.08);
    border-radius: 24px; padding: 24px 20px;
    text-align: center; display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-glow);
    position: relative; overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.comparison-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: none !important;
}
.comparison-card h4 { font-size: 1.05rem; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 10px; }
.comparison-card .price { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.comparison-card .price .period { font-size: 0.8rem; color: var(--text-muted); font-weight: 400; }
.recurring-note { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 20px; }

.features-list { list-style: none; text-align: left; margin-bottom: 20px; flex: 1; }
.features-list li { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04); font-size: 0.8rem; display: flex; align-items: center; gap: 8px; }
.features-list li i { font-size: 0.9rem; color: var(--color-success); flex-shrink: 0; }
.features-list li.locked-feature { color: var(--text-muted); opacity: 0.5; }
.features-list li.locked-feature i { color: var(--text-muted); }

.pro-card {
    border-color: rgba(242, 185, 77, 0.25);
    background: linear-gradient(180deg, rgba(242, 185, 77, 0.03) 0%, rgba(18, 22, 33, 0.7) 100%);
    box-shadow: 0 4px 20px 0 rgba(242, 185, 77, 0.05);
}
.pro-ribbon {
    position: absolute; top: 12px; right: -28px;
    background: var(--color-gold); color: var(--text-inverse);
    font-size: 0.6rem; font-weight: 700;
    padding: 3px 28px; transform: rotate(45deg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
@keyframes gold-glow-pulse { 0% { box-shadow: 0 0 8px rgba(242, 185, 77, 0.1); } 100% { box-shadow: 0 0 16px rgba(242, 185, 77, 0.3); } }

/* 8. Referrals */
.stats-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.sub-stat-card { background: var(--bg-panel); border: 1px solid var(--border-glass); border-radius: 12px; padding: 12px 8px; text-align: center; }
.sub-stat-card h5 { font-size: 0.62rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 4px; }
.highlight-val { font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; font-weight: 600; }
.text-success { color: var(--color-success); }

.referral-share-card { background: var(--bg-panel); border: 1px solid var(--border-glass); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.referral-share-card h4 { font-size: 0.95rem; margin-bottom: 4px; }
.referral-share-card p { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 10px; }
.copy-box { display: flex; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 10px; padding: 10px 12px; align-items: center; justify-content: space-between; gap: 8px; }
.copy-box span { font-family: monospace; font-size: 0.68rem; color: var(--color-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.copy-box button { background: transparent; border: none; color: var(--text-muted); cursor: pointer; transition: var(--transition-smooth); min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.copy-box button:active { color: var(--color-primary); }

.referral-tier-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
@media (max-width: 768px) {
    .referral-tier-grid {
        grid-template-columns: 1fr;
    }
}
.tier-grid-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.tier-grid-card h4 {
    margin: 0 0 8px 0;
    color: var(--text-main);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tier-grid-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}
.tier-grid-action {
    width: 100%;
    margin-top: auto;
}
.tier-badge-active {
    display: inline-flex;
    background: rgba(16, 229, 138, 0.15);
    color: #10E58A;
    border: 1px solid #10E58A;
    padding: 6px 12px;
    font-weight: 700;
    border-radius: 8px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(16, 229, 138, 0.2);
}

.capping-warning-box { background: rgba(255, 179, 0, 0.04); border: 1px solid rgba(255, 179, 0, 0.15); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.warning-title { display: flex; align-items: center; gap: 8px; color: var(--color-warning); margin-bottom: 6px; }
.warning-title h5 { font-size: 0.85rem; }
.capping-warning-box p { font-size: 0.72rem; color: var(--text-muted); line-height: 1.4; margin-bottom: 12px; }
.cap-progress-bar-container { background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.03); padding: 10px; border-radius: 10px; margin-bottom: 10px; }
.cap-progress-text { display: flex; justify-content: space-between; font-size: 0.68rem; font-weight: 600; margin-bottom: 5px; }
.cap-bar-outer { height: 5px; background: rgba(255, 255, 255, 0.05); border-radius: 3px; overflow: hidden; }
.cap-bar-fill { height: 100%; background: linear-gradient(90deg, var(--color-primary), var(--color-warning)); border-radius: 3px; transition: width 0.5s ease-out; }
.surplus-note { margin-bottom: 0 !important; color: var(--color-warning) !important; font-weight: 500; }

.referral-demo-trigger-card { background: var(--bg-panel); border: 1px solid var(--border-glass); border-radius: 14px; padding: 16px; }
.referral-demo-trigger-card h5 { font-size: 0.85rem; margin-bottom: 4px; }
.referral-demo-trigger-card p { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 10px; }
.btn-group-row { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-group-row .btn { padding: 10px 10px; font-size: 0.68rem; flex: 1; min-width: 100px; }

/* 9. Withdraw / Redeem - CASH OUT GRID */
.cashout-container {
    animation: fade-in 0.3s ease-out;
}

.cashout-section-title {
    font-size: 1.1rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.cashout-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.cashout-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 16px;
    padding: 24px 16px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    text-align: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cashout-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    filter: brightness(1.1);
}

.card-method-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.card-method-title {
    font-weight: 700;
    font-size: 0.9rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.card-upi {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.card-bank {
    background: linear-gradient(135deg, #0f766e, #047857);
}

.card-amazon {
    background: linear-gradient(135deg, #F2B94D, #F2B94D);
}

.card-play {
    background: linear-gradient(135deg, #e5e7eb, #9ca3af);
    color: #1f2937;
}

.card-play .card-method-title {
    text-shadow: none;
}
.sub-input-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
.sub-input-row input { width: 100%; padding: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; color: var(--text-main); font-size: 16px; outline: none; }
.sub-input-row input:focus { border-color: var(--color-primary); }
.security-disclaimer { background: rgba(242, 185, 77, 0.04); border-left: 3px solid var(--color-primary); padding: 10px; border-radius: 0 8px 8px 0; font-size: 0.7rem; color: var(--text-muted); line-height: 1.4; margin-bottom: 16px; }
.history-list-wrapper { max-height: 300px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.history-list { list-style: none; }
.empty-history-placeholder { font-size: 0.75rem; color: var(--text-muted); text-align: center; padding: 30px 0; }
.history-item { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.04); padding: 10px 12px; border-radius: 10px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.history-info h6 { font-size: 0.78rem; margin-bottom: 2px; }
.history-info span { font-size: 0.62rem; color: var(--text-muted); }
.history-payout { text-align: right; flex-shrink: 0; }
.history-payout .amount { font-weight: 700; font-size: 0.85rem; margin-bottom: 2px; }
.status-txt { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; }
.status-txt.pending { color: var(--color-warning); }
.status-txt.completed { color: var(--color-success); }

/* 10. Profile View / Menu List */
.profile-header-large {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 20px;
}
.profile-avatar-large {
    font-size: 2.5rem;
    color: var(--color-primary);
    background: rgba(242, 185, 77, 0.1);
    border-radius: 50%;
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.profile-header-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}
.profile-header-large h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}
.profile-tier-badge {
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
}

/* 2x2 Stats Dashboard Grid */
.profile-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
}
.profile-stat-card {
    background: var(--bg-panel);
    border: 1px solid rgba(0, 255, 163, 0.08);
    border-radius: 24px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.profile-stat-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: none !important;
}
.stat-card-icon-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.stat-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.stat-card-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}
.stat-card-value {
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-main);
}

/* 30-Day Earnings Chart */
.profile-chart-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 24px;
}
.profile-chart-container h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-main);
}
.earnings-chart-wrapper {
    width: 100%;
    height: 180px;
    position: relative;
    padding-left: 45px;
    padding-bottom: 25px;
    padding-right: 10px;
    padding-top: 10px;
}

.profile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    color: var(--text-main);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.profile-menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.menu-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.menu-item-left i {
    font-size: 1.2rem;
    color: var(--text-muted);
}
.profile-menu-item:hover .menu-item-left i {
    color: var(--text-main);
}
.menu-item-danger {
    margin-top: 10px;
    background: rgba(242, 185, 77, 0.05);
    border-color: rgba(242, 185, 77, 0.2);
    color: var(--color-danger);
}
.menu-item-danger .menu-item-left i {
    color: var(--color-danger);
}
.menu-item-danger:hover {
    background: rgba(242, 185, 77, 0.1);
}

/* 11. Admin Drawer */
.admin-control-panel-drawer {
    position: fixed; bottom: var(--bottom-nav-height); left: 0; width: 100%;
    background: var(--bg-panel-solid);
    border-top: 1px solid var(--color-danger);
    z-index: 99;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-height: 60vh;
}
.admin-control-panel-drawer.collapsed { transform: translateY(calc(100% - 36px)); }
.drawer-toggle-btn {
    width: 100%; height: 36px;
    background: rgba(242, 185, 77, 0.12);
    border: none; border-bottom: 1px solid rgba(242, 185, 77, 0.1);
    color: var(--color-danger);
    font-weight: 700; font-size: 0.7rem;
    cursor: pointer; display: flex; align-items: center;
    justify-content: space-between; padding: 0 14px;
    text-transform: uppercase; letter-spacing: 0.05em;
    min-height: 36px;
    touch-action: manipulation;
}
.drawer-toggle-btn:active { background: rgba(242, 185, 77, 0.18); }
.toggle-icon i { transition: transform 0.3s; }
.admin-control-panel-drawer:not(.collapsed) .toggle-icon i { transform: rotate(180deg); }
.drawer-content { padding: 14px; max-height: calc(60vh - 36px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.admin-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.admin-col { background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.04); padding: 12px; border-radius: 12px; }
.admin-col h5 { color: var(--color-danger); font-size: 0.78rem; margin-bottom: 6px; text-transform: uppercase; }
.admin-col p { font-size: 0.68rem; color: var(--text-muted); line-height: 1.35; margin-bottom: 10px; }

.integrity-status-display {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255, 255, 255, 0.02);
    padding: 6px 10px; border-radius: 8px;
    font-size: 0.68rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 10px;
}

.security-layers-list { margin-bottom: 10px; }
.layer-item {
    display: flex; align-items: center; gap: 5px;
    font-size: 0.65rem; color: var(--text-muted);
    padding: 3px 0;
}
.layer-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.status-indicator-dot, .layer-dot {
    animation: flash 1s infinite alternate;
}
.dot-valid { background: var(--color-success); box-shadow: 0 0 6px var(--color-success); }
.dot-invalid { background: var(--color-danger); box-shadow: 0 0 6px var(--color-danger); }
@keyframes flash { from { opacity: 0.4; } to { opacity: 1; } }

.admin-log-console {
    background: #0A0F0D; border-radius: 6px; padding: 8px;
    font-family: monospace; font-size: 0.62rem;
    color: #00ff00; max-height: 100px; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.btn-grid-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.btn-grid-mini .btn { padding: 8px 4px; font-size: 0.62rem; border-radius: 8px; min-height: 40px; }
.json-inspector {
    background: #0A0F0D; padding: 8px; border-radius: 8px;
    font-family: monospace; font-size: 0.6rem;
    color: #88c9ff; overflow: auto; max-height: 150px;
    -webkit-overflow-scrolling: touch;
    white-space: pre-wrap; word-break: break-all;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 11. Modals - FULL SCREEN ON MOBILE */
.modal-overlay {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh; height: 100dvh;
    background: rgba(4, 5, 8, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex; justify-content: center; align-items: flex-end;
    z-index: 1000; padding: 0;
}

.list-modal-card {
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-glass);
    border-radius: 20px 20px 0 0;
    width: 100%; max-width: 500px;
    max-height: 85vh;
    padding: 20px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease-out;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.list-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.list-modal-header h3 { font-size: 1rem; }
.list-modal-header .btn-icon { min-width: 40px; min-height: 40px; width: 40px; height: 40px; }
.list-subtitle { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 14px; }
.article-selector-list, .social-selector-list, .cpa-selector-list { max-height: 55vh; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 8px; }

.article-select-item, .social-select-item, .cpa-select-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 14px 14px; border-radius: 12px;
    cursor: pointer; display: flex;
    justify-content: space-between; align-items: center;
    transition: var(--transition-smooth);
    gap: 8px;
    min-height: 56px;
    touch-action: manipulation;
}
.article-select-item:active, .social-select-item:active, .cpa-select-item:active { background: rgba(255, 255, 255, 0.06); }
.article-select-item.completed, .social-select-item.completed { opacity: 0.6; border-left: 3px solid var(--color-success); }
.item-main-details { flex: 1; min-width: 0; }
.item-main-details h5 { font-size: 0.82rem; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-main-details span { font-size: 0.65rem; color: var(--text-muted); }

/* Article Reader - FULL SCREEN */
.article-modal-card {
    background: var(--bg-panel-solid); border: none;
    border-radius: 0; width: 100%; max-width: 100%;
    height: 100vh; height: 100dvh;
    display: flex; flex-direction: column;
    box-shadow: none; overflow: hidden;
}
.article-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.article-modal-header .btn-icon { min-width: 40px; min-height: 40px; width: 40px; height: 40px; }
.article-timer-wrapper { flex: 1; max-width: 200px; }
#article-countdown-time { font-size: 0.7rem; font-weight: 700; color: var(--color-warning); display: block; margin-bottom: 3px; }
.timer-progress-bar { height: 3px; background: rgba(255, 255, 255, 0.05); border-radius: 2px; overflow: hidden; }
#article-timer-bar { height: 100%; width: 100%; background: var(--color-warning); transition: width 1s linear; }
.article-modal-body { padding: 20px 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; }
.article-modal-body h2 { font-size: 1.3rem; margin-bottom: 6px; }
.article-meta { font-size: 0.68rem; color: var(--text-muted); margin-bottom: 20px; }
.article-paragraphs p { font-size: 0.85rem; line-height: 1.55; color: #d1d8e0; margin-bottom: 16px; }

/* Ad Layout */
.sponsored-banner-ad { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 10px; padding: 14px; text-align: center; position: relative; overflow: hidden; }
.ad-label { position: absolute; top: 0; left: 0; background: rgba(255, 255, 255, 0.08); color: var(--text-muted); font-size: 0.5rem; font-weight: 700; padding: 2px 6px; border-radius: 0 0 6px 0; letter-spacing: 0.05em; }
.sponsored-banner-ad p { font-size: 0.75rem; color: var(--color-primary); margin: 5px 0 0 0; font-weight: 500; }
.banner-spaced { margin-top: 20px; margin-bottom: 20px; }
.ad-slot-bottom { margin-bottom: 0; }
.ad-button-safe-spacer { height: var(--safe-ad-gap); width: 100%; }

/* Ad Loader */
.ad-loader-card { background: var(--bg-panel-solid); border: 1px solid var(--border-glass); padding: 35px 20px; border-radius: 18px; text-align: center; max-width: 280px; width: 90%; box-shadow: var(--shadow-glow); margin: auto; }
.loader-spinner { width: 36px; height: 36px; border: 3px solid rgba(242, 185, 77, 0.1); border-radius: 50%; border-top-color: var(--color-primary); animation: spin 1s ease-in-out infinite; margin: 0 auto 16px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.ad-loader-card h3 { font-size: 1rem; margin-bottom: 6px; }
.ad-loader-card p { font-size: 0.72rem; color: var(--text-muted); line-height: 1.4; }

/* 12. Video Player - FULL SCREEN ON MOBILE */
.video-player-container {
    background: #0A0F0D; border: none;
    width: 100%; max-width: 100%;
    height: 100vh; height: 100dvh;
    border-radius: 0; overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: none; position: relative;
}
.video-header { padding: 12px 16px; background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%); position: absolute; top: 0; left: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; z-index: 10; padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
.ad-badge { background: rgba(255, 255, 255, 0.15); padding: 4px 8px; border-radius: 6px; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.05em; }
#video-timer { font-size: 0.72rem; font-weight: 700; color: var(--color-warning); }
.video-content { flex: 1; background: linear-gradient(135deg, #150030 0%, #001021 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 20px; text-align: center; position: relative; }
.video-play-icon { font-size: 4rem; color: var(--color-primary); margin-bottom: 20px; filter: drop-shadow(var(--shadow-primary-neon)); animation: breathe 2s infinite alternate; }
@keyframes breathe { from { transform: scale(0.95); opacity: 0.8; } to { transform: scale(1.05); opacity: 1; } }
.mock-video-ad-details h4 { font-size: 1.2rem; margin-bottom: 8px; }
.mock-video-ad-details p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }
.video-footer { padding: 16px; background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%); position: absolute; bottom: 0; left: 0; width: 100%; z-index: 10; padding-bottom: calc(16px + var(--safe-area-bottom)); }

/* 13. Tamper Lock Screen */
#tamper-lock-screen {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh; height: 100dvh;
    background: #0A0F0D;
    background-image: radial-gradient(circle at 50% 50%, rgba(242, 185, 77, 0.15) 0%, transparent 50%);
    z-index: 10000;
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.lock-card {
    background: rgba(18, 12, 12, 0.8);
    border: 1px solid var(--color-danger);
    box-shadow: 0 0 20px rgba(242, 185, 77, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px; padding: 30px 20px;
    max-width: 400px; width: 100%; text-align: center;
}
.lock-icon-container {
    width: 60px; height: 60px;
    border-radius: 18px;
    background: rgba(242, 185, 77, 0.1);
    color: var(--color-danger);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px auto;
    border: 1px solid rgba(242, 185, 77, 0.3);
    animation: flash 1s infinite alternate;
}
.lock-card h1 { font-size: 1.3rem; color: var(--color-danger); margin-bottom: 12px; letter-spacing: 0.05em; }
.lock-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 20px; }
.tamper-details { background: #0A0F0D; border: 1px solid rgba(242, 185, 77, 0.2); border-radius: 10px; padding: 12px; text-align: left; margin-bottom: 20px; }
.tamper-details p { font-size: 0.65rem; margin-bottom: 6px; font-family: monospace; }
.tamper-details p:last-child { margin-bottom: 0; }
.tamper-details strong { color: var(--color-danger); }
.tamper-details span { word-break: break-all; color: #ff9eaf; font-size: 0.6rem; }

/* 14. VPN Block Screen */
#vpn-block-screen {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh; height: 100dvh;
    background: #0A0F0D;
    background-image: radial-gradient(circle at 50% 50%, rgba(16, 229, 138, 0.1) 0%, transparent 50%);
    z-index: 10001;
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.vpn-block-card {
    background: rgba(12, 14, 22, 0.9);
    border: 1px solid #10E58A;
    box-shadow: 0 0 20px rgba(16, 229, 138, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px; padding: 30px 20px;
    max-width: 400px; width: 100%; text-align: center;
}
.vpn-icon-container {
    width: 60px; height: 60px;
    border-radius: 18px;
    background: rgba(16, 229, 138, 0.1);
    color: #10E58A;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px auto;
    border: 1px solid rgba(16, 229, 138, 0.3);
    animation: flash 1s infinite alternate;
}
.vpn-block-card h1 { font-size: 1.3rem; color: #10E58A; margin-bottom: 12px; letter-spacing: 0.05em; }
.vpn-block-card p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }
.vpn-details { background: #0A0F0D; border: 1px solid rgba(16, 229, 138, 0.15); border-radius: 10px; padding: 12px; text-align: left; margin-bottom: 16px; }
.vpn-details p { font-size: 0.65rem; margin-bottom: 6px; font-family: monospace; }
.vpn-details p:last-child { margin-bottom: 0; }
.vpn-details strong { color: #10E58A; }
.vpn-instruction { font-weight: 600; color: var(--color-warning) !important; }

/* ==========================================
   15. DESKTOP ENHANCEMENTS (min-width: 640px)
   ========================================== */
@media (min-width: 640px) {
    body {
        background-image: 
            radial-gradient(circle at 10% 20%, rgba(242, 185, 77, 0.15) 0%, transparent 40%),
            radial-gradient(circle at 90% 80%, rgba(16, 229, 138, 0.08) 0%, transparent 40%);
    }
    
    :root {
        --shadow-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
        --bottom-nav-height: 0px;
    }
       .main-content-wrapper {
        padding: 20px 30px;
        padding-bottom: 85px; /* Fixed spacing on desktop to clear bottom nav */
        max-width: 1200px;
    }

    .app-header {
        padding: 16px 24px;
        border-radius: 16px;
        margin-bottom: 24px;
        background: rgba(18, 22, 33, 0.6);
        justify-content: space-between;
    }
    .header-user-badge { display: flex; }
    .noti-dropdown { width: 360px; }
    
    .logo-orb-small { width: 36px; height: 36px; border-radius: 10px; font-size: 1.1rem; }
    .brand-text h2 { font-size: 1.25rem; }
    .stat-bubble { padding: 8px 14px; font-size: 0.9rem; }
    .btn-icon { width: 36px; height: 36px; }
    
    .session-alert { font-size: 0.8rem; padding: 10px 15px; margin-bottom: 20px; }
    
    .tasks-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
    .task-card { padding: 24px 16px; border-radius: 18px; }
    .task-card:hover { border-color: rgba(255, 255, 255, 0.15); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
    
    .comparison-container { flex-direction: row; gap: 20px; }
    
    .main-content-wrapper { padding-bottom: 20px; }   .modal-overlay { align-items: center; padding: 20px; }
    .list-modal-card { border-radius: 20px; max-height: none; }
    @keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
    
    .article-modal-card { border-radius: 24px; max-width: 650px; height: 90vh; }
    .video-player-container { max-width: 400px; height: 600px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 10px 40px rgba(0,0,0,0.8); }
    @media (max-height: 650px) { .video-player-container { height: 100%; border-radius: 0; } }
    
    .admin-control-panel-drawer { bottom: 0; }
    .admin-grid { grid-template-columns: 1fr 1fr 1.2fr; }
    .drawer-content { max-height: 380px; }
    
    .auth-card { padding: 40px 30px; border-radius: 24px; }
    .logo-orb { width: 60px; height: 60px; font-size: 1.8rem; border-radius: 18px; }
    .brand-logo-large h1 { font-size: 2.2rem; }
    
    .ad-loader-card { max-width: 320px; padding: 40px 20px; }
    
    .lock-card, .vpn-block-card { max-width: 500px; padding: 40px; border-radius: 24px; }
    .lock-icon-container, .vpn-icon-container { width: 70px; height: 70px; font-size: 2.2rem; }
    .lock-card h1 { font-size: 1.6rem; }
    .vpn-block-card h1 { font-size: 1.5rem; }
}

/* ==========================================
   16. CUSTOM TOAST NOTIFICATION SYSTEM
   ========================================== */
#toast-container {
    position: absolute;
    top: calc(100% + 10px); /* Positions dynamically right below the sticky header */
    right: 0;
    bottom: auto;
    left: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 50;
    pointer-events: none;
    width: 320px;
    max-width: calc(100vw - 40px);
    transform: none;
}

@media (max-width: 640px) {
    #toast-container {
        top: calc(100% + 10px);
        right: 0;
        left: auto;
        bottom: auto;
        transform: none;
        width: 320px;
    }
    .noti-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        width: 300px;
        margin-top: 10px;
        z-index: 10000;
    }
}

/* 17. FREECASH REWARDS REFACTOR */
.fc-rewards-subnav {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.fc-subnav-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-muted);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.fc-subnav-btn:hover { background: rgba(255,255,255,0.08); color: var(--text-main); }
.fc-subnav-btn.active {
    background: rgba(16, 229, 138, 0.1);
    border-color: #10E58A;
    color: #10E58A;
    box-shadow: 0 0 10px rgba(0,255,136,0.2);
}

.fc-streak-card {
    background: #0A0F0D;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.rewards-subview {
    animation: fade 0.3s ease-in-out;
}

.streak-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-top: 10px;
}

.streak-timeline::before {
    content: '';
    position: absolute;
    top: 38px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #0A0F0D;
    z-index: 1;
}

.streak-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    opacity: 0.5;
    transition: var(--transition-smooth);
}

.streak-node.active-streak, .streak-node.completed-streak {
    opacity: 1;
}

.fc-streak-day-text { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; }
.fc-streak-reward-text { font-size: 0.8rem; font-weight: 700; color: var(--text-main); margin-top: 8px; }
.text-gold { color: #F2B94D !important; }

.fc-streak-dot-wrapper {
    position: relative;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.fc-streak-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #0A0F0D;
    border: 2px solid #0A0F0D;
    transition: var(--transition-smooth);
}
.streak-node.completed-streak .fc-streak-dot,
.streak-node.active-streak .fc-streak-dot {
    background: #10E58A;
    border-color: #10E58A;
    box-shadow: 0 0 8px #10E58A;
}

.fc-streak-gift {
    font-size: 1.2rem; color: #F2B94D;
    filter: drop-shadow(0 0 6px rgba(242, 185, 77, 0.5));
}

.fc-daily-goal-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.fc-daily-goal-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 12px;
}
.fc-goal-text { color: var(--text-muted); font-weight: 500; }
.fc-goal-timer { color: var(--text-main); font-weight: 600; font-family: 'Space Grotesk', monospace; }
.fc-progress-bar-bg {
    width: 100%; height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    overflow: hidden;
}
.fc-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10E58A, #10E58A);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.fc-btn-claim {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    margin-top: 24px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.fc-btn-claim.disabled {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.2);
    cursor: not-allowed;
}
.fc-btn-claim.active {
    background: var(--color-primary);
    color: var(--text-inverse);
    font-weight: bold;
    box-shadow: none !important;
}
.fc-btn-claim.active:hover {
    transform: scale(1.02);
    box-shadow: none !important;
}

.btn-logout-clean {
    background: rgba(242, 185, 77, 0.1);
    color: var(--color-danger);
    border: 1px solid rgba(242, 185, 77, 0.3);
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 20px;
}
.btn-logout-clean:hover, .btn-logout-clean:active {
    background: var(--color-danger);
    color: white;
}

.toast {
    background: rgba(18, 22, 33, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    animation: toast-slide-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: opacity 0.3s, transform 0.3s;
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toast.toast-exit {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
}

.toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast-success { border-left: 4px solid var(--color-success); }
.toast-success .toast-icon { color: var(--color-success); }
.toast-warning { border-left: 4px solid var(--color-warning); }
.toast-warning .toast-icon { color: var(--color-warning); }
.toast-error { border-left: 4px solid var(--color-danger); }
.toast-error .toast-icon { color: var(--color-danger); }
.toast-info { border-left: 4px solid var(--color-wincash); }
.toast-info .toast-icon { color: var(--color-wincash); }

/* ==========================================
   17. FLOATING COIN PARTICLES
   ========================================== */
.floating-coin {
    position: fixed;
    width: 18px;
    height: 18px;
    background: radial-gradient(circle at 30% 30%, #fff 0%, #F2B94D 40%, #F2B94D 100%);
    border: 1px solid #F2B94D;
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: #5d4037;
    font-weight: 900;
    box-shadow: 0 0 8px rgba(242, 185, 77, 0.6);
    transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.7s ease;
}

/* ==========================================
   18. PLATFORM FINANCIAL AUDIT TABLE
   ========================================== */
.admin-balancesheet-wrapper {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(16, 229, 138, 0.12);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    width: 100%;
}

.admin-balancesheet-wrapper h5 {
    color: var(--color-wincash) !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    font-family: 'Space Grotesk', sans-serif;
}

.admin-balancesheet-wrapper p {
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.35;
    margin-bottom: 12px;
}

.balancesheet-table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.balancesheet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.7rem;
    text-align: left;
}

.balancesheet-table th {
    background: rgba(255, 255, 255, 0.02);
    padding: 8px 12px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-transform: uppercase;
    font-size: 0.62rem;
    letter-spacing: 0.03em;
}

.balancesheet-table td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
}

.balancesheet-table tr:last-child td {
    border-bottom: none;
}

.split-row-gross td {
    color: #ffffff;
    font-weight: 600;
}
.split-row-gross td:nth-child(3),
.split-row-gross td:nth-child(4) {
    color: var(--color-wincash);
}

.split-row-user td:nth-child(3),
.split-row-user td:nth-child(4) {
    color: var(--color-success);
    font-weight: 600;
}

.split-row-ref td:nth-child(3),
.split-row-ref td:nth-child(4) {
    color: #10E58A;
}

.split-row-server td:nth-child(3),
.split-row-server td:nth-child(4) {
    color: var(--color-warning);
}

.split-row-profit td:nth-child(3),
.split-row-profit td:nth-child(4) {
    color: #F2B94D;
    font-weight: 600;
}

/* Lottery Floating Action Bar */
.lottery-action-footer {
    position: fixed;
    left: 0;
    bottom: 64px; /* Sits immediately above the bottom nav */
    width: 100%;
    z-index: 998;
    padding: 12px 16px;
    background: rgba(18, 22, 33, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lottery-action-inner {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* Ultra-small phones (320px) */
@media (max-width: 360px) {
    .stat-bubble { padding: 4px 7px; font-size: 0.7rem; gap: 3px; }
    .brand-text h2 { font-size: 0.95rem; }
    .badge { font-size: 0.6rem; padding: 3px 6px; }
    .task-card h4 { font-size: 0.92rem; }
    .payment-methods-grid { flex-direction: column; }
    .btn-group-row { flex-direction: column; }
    .btn-group-row .btn { min-width: unset; }
    .stats-row { grid-template-columns: 1fr; }
}

/* Coming Soon Overlay */
.coming-soon-wrapper {
    position: relative !important;
}
.coming-soon-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(8px);
    background: rgba(8, 9, 13, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F2B94D;
    text-shadow: 0 0 10px #F2B94D;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 10;
    border-radius: inherit;
    pointer-events: all;
    cursor: not-allowed;
}

.task-card {
    pointer-events: auto !important;
    transition: transform 0.2s ease-in-out !important;
    cursor: pointer;
}
.task-card:hover {
    transform: scale(1.02) !important;
}

/* ==========================================================================
   SHORTLINK SINGLE-PAGE ENGINE STYLES
   ========================================================================== */

.shortlink-engine-card {
    background: var(--bg-panel-solid);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    width: 92%;
    max-width: 420px;
    margin: auto;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

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

/* Ad Slots */
.shortlink-ad-slot {
    width: 100%;
    padding: 6px;
}

.ad-placeholder-banner {
    background: linear-gradient(135deg, rgba(242, 185, 77, 0.08), rgba(16, 229, 138, 0.08));
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
}

.ad-placeholder-banner .ad-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-placeholder-banner .ad-tag-id {
    color: var(--color-warning);
    font-size: 0.65rem;
    font-family: 'Courier New', monospace;
    opacity: 0.6;
}

.ad-autorefresh {
    border-color: rgba(16, 229, 138, 0.2);
    position: relative;
}

.ad-autorefresh::after {
    content: 'AUTO-REFRESH';
    position: absolute;
    top: 4px;
    right: 8px;
    font-size: 0.5rem;
    color: var(--color-success);
    opacity: 0.6;
    letter-spacing: 1px;
}

/* Header */
.shortlink-engine-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 16px 8px;
}

.shortlink-header-left h3 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin: 0 0 4px;
}

.shortlink-reward-tag {
    color: var(--color-warning);
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0;
}

/* Progress Track (dots + lines) */
.shortlink-progress-track {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    gap: 0;
}

.shortlink-step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.shortlink-step-dot.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 0 12px var(--color-primary-glow);
    animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 8px var(--color-primary-glow); }
    50%      { box-shadow: 0 0 20px var(--color-primary-glow); }
}

.shortlink-step-dot.done {
    background: var(--color-success);
    border-color: var(--color-success);
    color: #fff;
    box-shadow: 0 0 8px var(--color-success-glow);
}

.shortlink-step-line {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    transition: background 0.4s ease;
    max-width: 60px;
}

.shortlink-step-line.filled {
    background: var(--color-success);
    box-shadow: 0 0 6px var(--color-success-glow);
}

/* Step Content */
.shortlink-step-content {
    padding: 0 16px 12px;
    text-align: center;
}

.shortlink-step-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0 0 12px;
}

.shortlink-url-display {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.shortlink-url-display i {
    color: var(--color-primary);
    font-size: 0.85rem;
}

.shortlink-url-display span {
    color: var(--color-wincash);
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.shortlink-timer-section {
    text-align: center;
}

.shortlink-countdown-number {
    color: var(--text-main);
    font-size: 3rem;
    font-weight: 700;
    margin: 10px 0 4px;
    font-variant-numeric: tabular-nums;
}

.shortlink-timer-hint {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin: 0 0 12px;
}

/* Action Button */
.shortlink-engine-card .btn-block {
    margin: 0 16px 8px;
    width: calc(100% - 32px);
}

/* Floating Social Bar */
.shortlink-floating-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    display: none;
    animation: slideInBottom 0.4s ease-out;
}

@keyframes slideInBottom {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.social-bar-content {
    background: linear-gradient(135deg, #F2B94D, #10E58A);
    color: #fff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
}

.social-bar-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.8;
}

.social-bar-close:hover {
    opacity: 1;
}



