:root {
    --primary: #00ff88;
    --primary-dim: rgba(0, 255, 136, 0.10);
    --primary-glow: rgba(0, 255, 136, 0.30);
    --secondary: #8247e5;
    --accent: #ff6b35;

    --bg-base: #080c14;
    --bg-card: #111827;
    --bg-elevated: #1a2235;
    --bg-input: rgba(255,255,255,0.04);

    --border: rgba(255,255,255,0.07);
    --border-strong: rgba(255,255,255,0.13);

    --text-primary: #f0f4f8;
    --text-secondary: #7a8ba0;
    --text-muted: #4a5568;

    --error: #ff4757;
    --warning: #ffa502;

    --tier-premium: #fbbf24;
    --tier-high: #34d399;
    --tier-medium: #60a5fa;
    --tier-basic: #a78bfa;
    --tier-low: #ff4757;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== HERO ===== */
.hero-section {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 7rem 2rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), transparent);
}
.hero-section::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 700px; height: 350px;
    background: radial-gradient(ellipse, rgba(0,255,136,0.05) 0%, transparent 70%);
    pointer-events: none;
}
.hero-section h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(to right, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    position: relative; z-index: 1;
}
.hero-section h2 {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 500;
    color: var(--primary);
    position: relative; z-index: 1;
}

/* ===== REVENUE SHARE BADGE ===== */
.revenue-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-dim);
    border: 1px solid rgba(0,255,136,0.25);
    border-radius: 40px;
    padding: 6px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 1.25rem;
    position: relative; z-index: 1;
}

/* ===== LAYOUT ===== */
.rates-section {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

/* ===== DISCLAIMER ALERT ===== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    margin: 0 0 2rem;
    font-size: 0.875rem;
    line-height: 1.6;
}
.alert.info {
    background: var(--primary-dim);
    border: 1px solid rgba(0,255,136,0.2);
    color: var(--text-secondary);
}
.alert.info i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.alert.warn {
    background: rgba(255,165,2,0.07);
    border: 1px solid rgba(255,165,2,0.2);
    color: #b8860b;
}
.alert.warn i { color: var(--warning); margin-top: 2px; flex-shrink: 0; }
.alert.danger {
    background: rgba(255,71,87,0.07);
    border: 1px solid rgba(255,71,87,0.2);
    color: var(--error);
}
.alert.danger i { color: var(--error); margin-top: 2px; flex-shrink: 0; }

/* ===== TIER CONTAINER ===== */
.tier-container {
    margin-bottom: 3rem;
}

.tier-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.tier-title::before,
.tier-title::after {
    content: '';
    height: 1px;
    width: 60px;
    background: currentColor;
    opacity: 0.3;
}

/* ===== COUNTRY GRID ===== */
.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

/* ===== COUNTRY CARD ===== */
.country-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.country-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--primary);
    opacity: 0;
    transition: var(--transition);
}
.country-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}
.country-card:hover::before { opacity: 1; }

.country-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
}
.country-flag {
    width: 32px;
    height: auto;
    border-radius: 4px;
    flex-shrink: 0;
}
.country-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.rate-single {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-top: 0.25rem;
}
.rate-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.rate-value {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
}

/* ===== INFO SECTION ===== */
.info-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-top: 1rem;
    box-shadow: var(--shadow-card);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.info-card-earn {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
}
.info-card-earn h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}
.info-card-earn ul {
    list-style: none;
    padding: 0; margin: 0;
}
.info-card-earn li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border);
}
.info-card-earn li:last-child { border-bottom: none; }
.info-card-earn li::before {
    content: '→';
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 1px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .countries-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .hero-section { padding: 5rem 1.5rem 2.5rem; }
}