:root {
    --primary: #7c3aed;
    --primary-hover: #6d28d9;
    --primary-glow: rgba(124,58,237,0.25);
    --bg: #0a0a1a;
    --bg-card: rgba(20,20,40,0.95);
    --bg-card-hover: rgba(30,30,55,0.98);
    --bg-surface: rgba(25,25,50,0.9);
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(124,58,237,0.4);
    --text: #ffffff;
    --text-muted: #9ca3af;
    --text-dim: #94a3b8;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --accent-green: #6cff8f;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(124,58,237,0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Header: injected by marketplace-header.js */

/* Page Content */
.rewards-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    position: relative;
    z-index: 1;
}

/* Hero */
.hero { text-align: center; margin-bottom: 56px; }
.hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #a78bfa, #d4bcfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero .tagline {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 24px;
    line-height: 1.6;
}
.hero .highlight {
    display: inline-block;
    background: rgba(124,58,237,0.15);
    border: 1px solid rgba(124,58,237,0.3);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #c084fc;
}

/* Overview cards */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin: 32px 0 48px;
}
.overview-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    transition: border-color 0.2s, transform 0.2s;
}
.overview-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.card-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
    font-size: 1.3rem;
}
.card-icon.sweep { background: rgba(99,102,241,0.15); }
.card-icon.giveaway { background: rgba(16,185,129,0.15); }
.card-icon.buyback { background: rgba(245,158,11,0.15); }
.card-icon.flip { background: rgba(236,72,153,0.15); }
.card-icon.holder { background: rgba(124,58,237,0.15); }
.overview-card h2 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.overview-card p {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin: 0;
}

/* Section styling */
.section { margin-top: 48px; }
.section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}
.section h2 .emoji { font-size: 1.1rem; }
.section p, .section li {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.75;
}
.section p { margin-bottom: 14px; }
.section ul, .section ol {
    margin: 8px 0 16px 20px;
}
.section strong { color: var(--text); }

/* Detail cards */
.detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin: 16px 0;
}
.detail-card h4 {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #c084fc;
}
.detail-card ul { margin: 0 0 0 16px; }
.detail-card li {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Flow visualization */
.flow-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}
.flow-step {
    flex: 1;
    min-width: 160px;
    background: rgba(124,58,237,0.06);
    border: 1px solid rgba(124,58,237,0.15);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    position: relative;
}
.flow-step .step-num {
    display: inline-block;
    width: 22px; height: 22px;
    background: #7c3aed;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 22px;
    color: #fff;
    margin-bottom: 6px;
}
.flow-step .step-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(168,85,247,0.06));
    border: 1px solid rgba(124,58,237,0.2);
    border-radius: 14px;
    padding: 32px;
    margin: 48px 0 0;
    text-align: center;
}
.cta-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.cta-section p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.cta-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 24px; border-radius: 10px; border: none;
    background: #6d28d9; color: #fff; font-size: 0.85rem;
    font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.2s;
    text-decoration: none;
}
.cta-btn:hover { background: #7c3aed; transform: translateY(-1px); }

@media (max-width: 600px) {
    .hero h1 { font-size: 1.6rem; }
    .overview-grid { grid-template-columns: 1fr; }
    .flow-steps { flex-direction: column; }
}
