: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(16,185,129,0.06) 0%, transparent 60%);
pointer-events: none;
z-index: 0;
}

.earn-page {
max-width: 900px;
margin: 0 auto;
padding: 48px 24px 80px;
position: relative;
z-index: 1;
}

/* Hero */
.hero { text-align: center; margin-bottom: 48px; }
.hero-image {
width: 140px;
height: 140px;
border-radius: 20px;
object-fit: cover;
margin-bottom: 20px;
border: 3px solid rgba(16,185,129,0.3);
box-shadow: 0 8px 32px rgba(16,185,129,0.15);
}
.hero h1 {
font-size: 2.2rem;
font-weight: 800;
margin-bottom: 12px;
background: linear-gradient(135deg, #10b981, #6ee7b7, #34d399);
-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-seat {
width: 280px;
margin: 0 auto 28px;
border-radius: 14px;
border: 2px solid rgba(16,185,129,0.25);
overflow: hidden;
box-shadow: 0 6px 24px rgba(0,0,0,0.4), 0 0 40px rgba(16,185,129,0.08);
transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
animation: seatGlow 3s ease-in-out infinite;
cursor: pointer;
}
.hero-seat:hover {
transform: translateY(-6px) scale(1.02);
border-color: rgba(16,185,129,0.5);
box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 60px rgba(16,185,129,0.2), 0 0 100px rgba(16,185,129,0.08);
animation: none;
}
.hero-seat img {
width: 100%;
display: block;
}
@keyframes seatGlow {
0%, 100% { box-shadow: 0 6px 24px rgba(0,0,0,0.4), 0 0 40px rgba(16,185,129,0.08); }
50% { box-shadow: 0 6px 24px rgba(0,0,0,0.4), 0 0 50px rgba(16,185,129,0.18), 0 0 80px rgba(16,185,129,0.06); }
}
.hero .cta-btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 10px 24px;
background: linear-gradient(135deg, #10b981, #059669);
color: white;
border: none;
border-radius: 10px;
font-size: 0.9rem;
font-weight: 600;
text-decoration: none;
cursor: pointer;
transition: all 0.2s;
}
.hero .cta-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(16,185,129,0.3); }

/* Overview cards */
.overview-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
margin: 0 0 48px;
}
.overview-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 14px;
padding: 24px;
text-align: center;
transition: border-color 0.2s, transform 0.2s;
}
.overview-card:hover { border-color: rgba(16,185,129,0.3); transform: translateY(-2px); }
.overview-card .card-label {
font-size: 0.72rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--text-dim);
margin-bottom: 8px;
}
.overview-card .card-value {
font-size: 1.4rem;
font-weight: 800;
color: var(--text);
}
.overview-card .card-value.green { color: #10b981; }
.overview-card .card-sub {
font-size: 0.75rem;
color: var(--text-dim);
margin-top: 4px;
}

/* Sections */
.section { margin-top: 48px; }
.section h2 {
font-size: 1.3rem;
font-weight: 700;
margin-bottom: 16px;
color: var(--text);
}

/* History table */
.history-table-wrap {
overflow-x: auto;
border-radius: 12px;
border: 1px solid var(--border);
}
.history-table {
width: 100%;
border-collapse: collapse;
font-size: 0.85rem;
}
.history-table thead { background: rgba(255,255,255,0.03); }
.history-table th {
padding: 12px 16px;
text-align: left;
font-weight: 600;
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--text-dim);
border-bottom: 1px solid var(--border);
}
.history-table td {
padding: 12px 16px;
border-bottom: 1px solid rgba(255,255,255,0.04);
color: var(--text-muted);
}
.history-table tr:last-child td { border-bottom: none; }
.history-table tr:hover td { background: rgba(255,255,255,0.02); }
.history-table .sol-amount { color: var(--text); font-weight: 600; }

/* Inline Solana logo prefixing any SOL denomination. Sized off the surrounding
   text so it works in the 1.4rem stat values and the 0.75rem sub-labels alike. */
.sol-icon {
    width: 1em; height: 1em;
    border-radius: 50%;
    vertical-align: -0.12em;
    display: inline-block;
    flex-shrink: 0;
}
.overview-card .card-value .sol-icon { vertical-align: -0.1em; }

/* Loading / empty states */
.loading-state {
text-align: center;
padding: 48px 24px;
color: var(--text-dim);
}
.loading-state .spinner {
display: inline-block;
width: 28px;
height: 28px;
border: 3px solid rgba(255,255,255,0.1);
border-top-color: #10b981;
border-radius: 50%;
animation: spin 0.8s linear infinite;
margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
text-align: center;
padding: 48px 24px;
color: var(--text-dim);
}
.empty-state p { margin-bottom: 4px; }

/* Responsive */
@media (max-width: 640px) {
.overview-grid { grid-template-columns: 1fr; }
.hero h1 { font-size: 1.6rem; }
.hero-image { width: 100px; height: 100px; }
.hero-seat { width: 220px; margin-bottom: 20px; }
}