/* ============================================
   TAP TAP EARN — Complete Design System
   Dark theme, neon green + gold, glassmorphism
   Mobile-first responsive design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables / Design Tokens --- */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(255, 255, 255, 0.06);
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-glass-hover: rgba(255, 255, 255, 0.2);

    --green: #00ff88;
    --green-dim: #00cc6a;
    --green-glow: rgba(0, 255, 136, 0.3);
    --green-bg: rgba(0, 255, 136, 0.1);
    --gold: #ffd700;
    --gold-dim: #ccac00;
    --gold-glow: rgba(255, 215, 0, 0.3);
    --gold-bg: rgba(255, 215, 0, 0.1);
    --orange: #ff8c00;
    --red: #ff4444;
    --red-bg: rgba(255, 68, 68, 0.1);
    --blue: #4488ff;
    --blue-bg: rgba(68, 136, 255, 0.1);
    --telegram: #0088cc;
    --whatsapp: #25D366;
    --purple: #a855f7;

    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --text-muted: #6a6a7a;
    --text-dark: #0a0a0f;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-green: 0 4px 30px rgba(0, 255, 136, 0.2);
    --shadow-gold: 0 4px 30px rgba(255, 215, 0, 0.2);

    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --nav-height: 60px;
    --bottom-nav-height: 70px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--green);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--gold);
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    font-family: var(--font-body);
    border: none;
    outline: none;
}

input, select, textarea {
    font-family: var(--font-body);
    outline: none;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

/* --- Utility Classes --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.text-green { color: var(--green); }
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.relative { position: relative; }

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* --- Top Navigation Bar --- */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
}

.nav-logo span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
}

.nav-logo .logo-tap { color: var(--blue); }
.nav-logo .logo-earn { color: var(--orange); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--green);
}

.nav-auth {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-user-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--green-bg);
    border: 1px solid rgba(0,255,136,0.2);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--green);
}

.nav-user-balance .rupee-icon {
    font-size: 1rem;
}

.nav-hamburger {
    display: none;
    background: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    padding: 4px;
}

/* --- Bottom Navigation (Mobile App-like) --- */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-glass);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    min-width: 50px;
}

.bottom-nav-item .nav-icon {
    font-size: 1.3rem;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--green);
}

.bottom-nav-item.active .nav-icon {
    transform: scale(1.15);
}

.bottom-nav-item.earn-btn {
    background: linear-gradient(135deg, var(--green), var(--green-dim));
    color: var(--text-dark);
    border-radius: var(--radius-lg);
    padding: 10px 16px;
    margin-top: -20px;
    box-shadow: var(--shadow-green);
    font-weight: 700;
}

/* --- Page Content Wrapper --- */
.page-content {
    padding-top: calc(var(--nav-height) + 16px);
    padding-bottom: calc(var(--bottom-nav-height) + 24px);
    min-height: 100vh;
}

.page-content.no-bottom-nav {
    padding-bottom: 24px;
}

/* --- Glassmorphism Card --- */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--border-glass-hover);
    background: var(--bg-card-hover);
}

.glass-card-sm {
    padding: 16px;
    border-radius: var(--radius-md);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green), var(--green-dim));
    color: var(--text-dark);
    box-shadow: var(--shadow-green);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 40px rgba(0, 255, 136, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: var(--text-dark);
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 40px rgba(255, 215, 0, 0.35);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--green);
    color: var(--green);
    background: var(--green-bg);
}

.btn-telegram {
    background: var(--telegram);
    color: #fff;
}

.btn-telegram:hover {
    background: #006da3;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
}

.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
}

.btn-danger {
    background: rgba(255,68,68,0.15);
    color: var(--red);
    border: 1px solid rgba(255,68,68,0.3);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

.btn-full {
    width: 100%;
}

.btn-pulse {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 30px rgba(0, 255, 136, 0.2); }
    50% { box-shadow: 0 4px 50px rgba(0, 255, 136, 0.5); }
}

@keyframes pulse-glow-gold {
    0%, 100% { box-shadow: 0 4px 30px rgba(255, 215, 0, 0.2); }
    50% { box-shadow: 0 4px 50px rgba(255, 215, 0, 0.5); }
}

/* --- Form Elements --- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast);
}

.form-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-bg);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input.error {
    border-color: var(--red);
}

.form-error {
    color: var(--red);
    font-size: 0.8rem;
    margin-top: 4px;
}

.form-hint {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 4px;
}

/* --- Auth Pages (Login / Signup) --- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--green-glow), transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.auth-page::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--gold-glow), transparent 70%);
    bottom: -50px;
    left: -50px;
    pointer-events: none;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.auth-header h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-footer a {
    color: var(--green);
    font-weight: 600;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-glass);
}

/* --- Hero Section --- */
.hero {
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,255,136,0.08), transparent 70%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--green-bg);
    border: 1px solid rgba(0,255,136,0.2);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--green);
    font-weight: 500;
    margin-bottom: 24px;
    animation: fadeInDown 0.6s ease;
}

.hero-badge .pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: dot-pulse 1.5s infinite;
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.1s both;
    line-height: 1.1;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--green), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 32px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 12px 24px;
    border-radius: var(--radius-xl);
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease 0.25s both;
}

.hero-counter .label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.hero-counter .amount {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 48px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-value {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--green);
}

.hero-stat .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --- Trust Badges / Partners --- */
.partners-section {
    padding: 40px 0;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.partners-label {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.partner-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    opacity: 0.5;
    transition: opacity var(--transition-normal);
}

.partner-logo:hover {
    opacity: 0.8;
}

.partner-logo .partner-icon {
    font-size: 1.4rem;
}

/* --- How It Works --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    text-align: center;
    padding: 32px 20px;
}

.step-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: var(--green-bg);
    border-radius: var(--radius-lg);
    margin: 0 auto 16px;
    border: 1px solid rgba(0,255,136,0.15);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Channel Join Section --- */
.channels-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 40px 24px;
    text-align: center;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.channel-card {
    padding: 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform var(--transition-normal);
}

.channel-card:hover {
    transform: translateY(-4px);
}

.channel-card.telegram {
    background: rgba(0, 136, 204, 0.1);
    border: 1px solid rgba(0, 136, 204, 0.3);
}

.channel-card.whatsapp {
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.channel-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.channel-bonus {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold);
    margin: 8px 0 4px;
}

.channel-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* --- Live Payouts Feed --- */
.live-feed {
    overflow: hidden;
    position: relative;
}

.live-feed-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    justify-content: center;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    animation: dot-pulse 1s infinite;
}

.live-feed-header span {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.feed-container {
    max-height: 300px;
    overflow: hidden;
    position: relative;
}

.feed-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, var(--bg-primary));
    pointer-events: none;
}

.feed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    border: 1px solid var(--border-glass);
    animation: slideInFeed 0.5s ease;
}

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

.feed-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--green), var(--blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.feed-info {
    flex: 1;
}

.feed-name {
    font-weight: 600;
    font-size: 0.85rem;
}

.feed-action {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.feed-amount {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--green);
    font-size: 0.95rem;
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimonial-card {
    padding: 24px;
}

.testimonial-stars {
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--purple), var(--blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.85rem;
}

.testimonial-location {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Dashboard --- */
.dashboard-greeting {
    margin-bottom: 24px;
}

.dashboard-greeting h1 {
    font-size: 1.6rem;
    font-weight: 700;
}

.dashboard-greeting p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Balance Card */
.balance-card {
    background: linear-gradient(135deg, #0d2818, #0a1a2e);
    border: 1px solid rgba(0,255,136,0.2);
    border-radius: var(--radius-xl);
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0,255,136,0.15), transparent 70%);
    top: -60px;
    right: -60px;
    pointer-events: none;
}

.balance-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.balance-amount {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--green);
    margin-bottom: 4px;
}

.balance-today {
    font-size: 0.85rem;
    color: var(--gold);
}

.balance-today .amount {
    font-weight: 700;
}

/* Quick Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-card {
    padding: 16px;
    text-align: center;
}

.stat-card .stat-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-card .stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Quick Actions */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    text-align: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.action-card:hover {
    transform: translateY(-4px);
    border-color: var(--green);
    color: var(--text-primary);
}

.action-icon {
    font-size: 1.6rem;
}

.action-card span {
    font-size: 0.8rem;
    font-weight: 500;
}

.action-card .action-reward {
    font-size: 0.7rem;
    color: var(--gold);
    font-weight: 600;
}

/* --- Spin Wheel --- */
.spin-section {
    text-align: center;
}

.wheel-container {
    position: relative;
    width: 260px;
    height: 260px;
    margin: 0 auto 20px;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid var(--gold);
    position: relative;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    background: conic-gradient(
        var(--green-bg) 0deg 45deg,
        var(--gold-bg) 45deg 90deg,
        rgba(168,85,247,0.15) 90deg 135deg,
        var(--blue-bg) 135deg 180deg,
        var(--green-bg) 180deg 225deg,
        var(--gold-bg) 225deg 270deg,
        rgba(168,85,247,0.15) 270deg 315deg,
        var(--blue-bg) 315deg 360deg
    );
    box-shadow: 0 0 30px rgba(255,215,0,0.2);
}

.wheel-segment {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.wheel-pointer {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.spin-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.75rem;
    border: 3px solid rgba(255,255,255,0.3);
    z-index: 3;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255,215,0,0.3);
    transition: transform 0.2s;
}

.spin-btn:hover {
    transform: translate(-50%, -50%) scale(1.08);
}

.spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Streak Calendar --- */
.streak-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.streak-day {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    gap: 2px;
}

.streak-day.claimed {
    background: var(--green-bg);
    border-color: rgba(0,255,136,0.3);
    color: var(--green);
}

.streak-day.today {
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(255,215,0,0.2);
}

.streak-day .day-label {
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.streak-day.claimed .day-label {
    color: var(--green);
}

/* --- Ad/Earn Grid --- */
.earn-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.earn-progress {
    flex: 1;
    min-width: 200px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid var(--border-glass);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--gold));
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.ad-card {
    padding: 16px 12px;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.ad-card.locked {
    opacity: 0.4;
    pointer-events: none;
}

.ad-card.completed {
    border-color: rgba(0,255,136,0.3);
    background: var(--green-bg);
}

.ad-card.available {
    border-color: var(--gold);
    animation: pulse-glow-gold 2s infinite;
    cursor: pointer;
}

.ad-card .ad-number {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.ad-card .ad-icon {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.ad-card .ad-reward {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold);
}

.ad-card.completed .ad-reward {
    color: var(--green);
}

.ad-card .ad-status {
    font-size: 0.65rem;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Ad watching overlay */
.ad-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.ad-timer {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--gold);
}

.ad-timer-bar {
    width: 300px;
    max-width: 80%;
    height: 6px;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.ad-timer-fill {
    height: 100%;
    background: var(--green);
    border-radius: var(--radius-full);
    transition: width 1s linear;
}

.ad-placeholder {
    width: 300px;
    max-width: 90%;
    height: 250px;
    background: var(--bg-card);
    border: 2px dashed var(--border-glass);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Survey Cards --- */
.surveys-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.survey-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.survey-card:hover {
    transform: translateX(4px);
    border-color: var(--gold);
}

.survey-card.completed {
    opacity: 0.5;
    pointer-events: none;
}

.survey-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--gold-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    border: 1px solid rgba(255,215,0,0.2);
}

.survey-info {
    flex: 1;
}

.survey-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.survey-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.survey-reward {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gold);
    font-size: 1rem;
    white-space: nowrap;
}

.survey-done-badge {
    background: var(--green-bg);
    color: var(--green);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
}

/* Survey Modal */
.survey-modal-content {
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.survey-question {
    margin-bottom: 20px;
}

.survey-question label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.survey-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.85rem;
}

.survey-option:hover {
    border-color: var(--green);
    background: var(--green-bg);
}

.survey-option.selected {
    border-color: var(--green);
    background: var(--green-bg);
}

.survey-option input[type="radio"] {
    accent-color: var(--green);
}

/* --- Referral Page --- */
.referral-code-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 2px dashed var(--green);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
}

.referral-code {
    flex: 1;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--green);
    letter-spacing: 3px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.referral-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.referral-progress {
    padding: 20px;
    text-align: center;
}

.referral-progress .progress-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    position: relative;
}

.referral-list {
    max-height: 300px;
    overflow-y: auto;
}

.referral-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-glass);
}

.referral-item:last-child {
    border-bottom: none;
}

/* --- Leaderboard --- */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-glass);
}

.leaderboard-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: 0.9rem;
}

.leaderboard-table tr:hover {
    background: var(--bg-card-hover);
}

.leaderboard-table tr.current-user {
    background: var(--green-bg);
    border: 1px solid rgba(0,255,136,0.2);
}

.leaderboard-rank {
    font-family: var(--font-heading);
    font-weight: 800;
    width: 40px;
}

.leaderboard-rank.top-1 { color: var(--gold); }
.leaderboard-rank.top-2 { color: #c0c0c0; }
.leaderboard-rank.top-3 { color: #cd7f32; }

.leaderboard-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.leaderboard-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.leaderboard-earnings {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--green);
}

/* --- Withdrawal Page --- */
.withdraw-checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
}

.checklist-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.checklist-icon.pass {
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid rgba(0,255,136,0.3);
}

.checklist-icon.fail {
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid rgba(255,68,68,0.3);
}

.checklist-text {
    flex: 1;
    font-size: 0.9rem;
}

.checklist-status {
    font-size: 0.75rem;
    font-weight: 600;
}

.checklist-status.pass { color: var(--green); }
.checklist-status.fail { color: var(--red); }

/* Withdrawal History */
.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th {
    text-align: left;
    padding: 10px 14px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-glass);
}

.history-table td {
    padding: 12px 14px;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
}

.status-badge.processing {
    background: rgba(255,215,0,0.1);
    color: var(--gold);
    border: 1px solid rgba(255,215,0,0.2);
}

.status-badge.review {
    background: var(--blue-bg);
    color: var(--blue);
    border: 1px solid rgba(68,136,255,0.2);
}

/* --- Modals --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 450px;
    width: 100%;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    padding: 4px;
    transition: color var(--transition-fast);
}

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

.modal-icon {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 16px;
}

.modal-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* Success animation */
.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-bg);
    border: 2px solid var(--green);
    margin: 0 auto 16px;
    font-size: 2rem;
    animation: pop 0.4s ease;
}

@keyframes pop {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* --- Notification Toast --- */
.toast {
    position: fixed;
    top: calc(var(--nav-height) + 12px);
    right: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    box-shadow: var(--shadow-lg);
    transform: translateX(120%);
    transition: transform var(--transition-normal);
    max-width: 350px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success { border-color: rgba(0,255,136,0.3); }
.toast.warning { border-color: rgba(255,215,0,0.3); }
.toast.error { border-color: rgba(255,68,68,0.3); }

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

.toast-text {
    font-size: 0.85rem;
    font-weight: 500;
}

/* --- Floating Notification Popup (Greed triggers) --- */
.floating-notification {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 16px);
    left: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    transform: translateY(120%);
    transition: transform var(--transition-normal);
    max-width: 300px;
    font-size: 0.8rem;
}

.floating-notification.show {
    transform: translateY(0);
}

/* --- Footer --- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-section a,
.footer-section p {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--green);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-fine-print {
    max-width: 600px;
    margin: 8px auto 0;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.2);
    line-height: 1.4;
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Keyframe Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes coinRain {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.coin-particle {
    position: fixed;
    font-size: 1rem;
    pointer-events: none;
    z-index: 0;
    animation: coinRain linear forwards;
    opacity: 0.3;
}

/* Almost there banner */
.almost-there-banner {
    background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,140,0,0.1));
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.almost-there-banner .banner-icon {
    font-size: 1.5rem;
    animation: float 2s infinite;
}

.almost-there-banner .banner-text {
    font-size: 0.85rem;
    font-weight: 500;
}

.almost-there-banner .banner-text strong {
    color: var(--gold);
}

/* Page header with back button */
.page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.page-header .back-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.page-header .back-btn:hover {
    color: var(--text-primary);
    border-color: var(--green);
}

.page-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
}

/* Mobile-friendly table wrapper */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
}

/* --- RESPONSIVE DESIGN --- */

/* Tablets */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 20px;
        border-bottom: 1px solid var(--border-glass);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
        z-index: 1001;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links a {
        padding: 12px 8px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: block;
        width: 100%;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .bottom-nav {
        display: flex;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ads-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .referral-stats {
        grid-template-columns: 1fr;
    }

    .channels-grid {
        grid-template-columns: 1fr;
    }

    .leaderboard-table th:nth-child(3),
    .leaderboard-table td:nth-child(3) {
        display: none;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .hero {
        padding: 80px 0 40px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-counter .amount {
        font-size: 1.1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .glass-card {
        padding: 16px;
    }

    .balance-amount {
        font-size: 2.2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .ads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .ad-card {
        padding: 12px 8px;
    }

    .modal-content {
        padding: 24px 16px;
    }

    .referral-code {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .wheel-container {
        width: 220px;
        height: 220px;
    }

    .partners-grid {
        gap: 20px;
    }

    .footer-bottom {
        font-size: 0.7rem;
    }
}

/* Small phones */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .balance-amount {
        font-size: 1.8rem;
    }

    .ads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop enhancements */
@media (min-width: 769px) {
    .page-content {
        padding-bottom: 24px;
    }

    .container {
        padding: 0 24px;
    }
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* --- Selection Color --- */
::selection {
    background: rgba(0, 255, 136, 0.3);
    color: var(--text-primary);
}

/* --- Loading Skeleton --- */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Confetti burst (for rewards) --- */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
