/* ==========================================
   EMPIRE REWARDS — CONVERSION-OPTIMIZED THEME
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=DM+Serif+Display&display=swap');

:root {
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a28;
    --accent-green: #00e676;
    --accent-blue: #448aff;
    --accent-orange: #ff9100;
    --accent-red: #ff1744;
    --accent-purple: #d500f9;
    --text-primary: #f0f0f5;
    --text-secondary: #8888a0;
    --text-muted: #555570;
    --border: #2a2a3a;
    --success: #00e676;
    --warning: #ffab00;
    --danger: #ff1744;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow-green: 0 0 30px rgba(0, 230, 118, 0.15);
    --shadow-glow-blue: 0 0 30px rgba(68, 138, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---- Background gradient mesh ---- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(0, 230, 118, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(68, 138, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(213, 0, 249, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ---- Container ---- */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.container-wide {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ---- Header ---- */
.header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* ---- Trust bar ---- */
.trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 12px 20px;
    background: rgba(0, 230, 118, 0.05);
    border-bottom: 1px solid rgba(0, 230, 118, 0.1);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.trust-bar .badge {
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust-bar .badge .icon {
    color: var(--accent-green);
}

/* ---- Hero section ---- */
.hero {
    padding: 60px 0 40px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.8rem;
    line-height: 1.15;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
}

/* ---- Reward amount ---- */
.reward-amount {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: var(--radius);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 24px;
}

.reward-amount .label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---- Social proof ---- */
.social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
}

.user-avatars {
    display: flex;
}

.user-avatars span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: 2px solid var(--bg-dark);
    margin-left: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.user-avatars span:first-child {
    margin-left: 0;
}

.social-proof-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.social-proof-text strong {
    color: var(--accent-green);
}

/* ---- Steps section ---- */
.steps-section {
    padding: 40px 0;
}

.steps-section h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 40px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    position: relative;
    transition: transform 0.2s, border-color 0.2s;
}

.step-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-green);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    color: var(--bg-dark);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ---- CTA Button ---- */
.cta-container {
    text-align: center;
    padding: 20px 0 60px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 48px;
    background: linear-gradient(135deg, var(--accent-green), #00c853);
    color: var(--bg-dark);
    font-family: 'DM Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-glow-green);
    animation: cta-pulse 3s ease-in-out infinite;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(0, 230, 118, 0.3);
}

@keyframes cta-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 230, 118, 0.15); }
    50% { box-shadow: 0 0 40px rgba(0, 230, 118, 0.3); }
}

.cta-subtext {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 12px;
}

/* ---- Urgency bar ---- */
.urgency-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255, 23, 68, 0.08);
    border: 1px solid rgba(255, 23, 68, 0.15);
    border-radius: var(--radius);
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--accent-red);
    font-weight: 600;
}

.urgency-bar .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-red);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* ---- Live counter ---- */
.live-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(68, 138, 255, 0.08);
    border: 1px solid rgba(68, 138, 255, 0.15);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--accent-blue);
    margin-bottom: 20px;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

/* ---- Offer cards grid (hub page) ---- */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.offer-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.offer-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-green);
    box-shadow: var(--shadow-glow-green);
}

.offer-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.offer-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.offer-card-icon.gaming { background: rgba(213, 0, 249, 0.1); }
.offer-card-icon.streaming { background: rgba(68, 138, 255, 0.1); }
.offer-card-icon.app { background: rgba(255, 145, 0, 0.1); }
.offer-card-icon.reward { background: rgba(0, 230, 118, 0.1); }

.offer-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

.offer-card-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.offer-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.offer-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.offer-card-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-green);
}

.offer-card-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--accent-green);
}

.offer-card-status .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
}

/* ---- Verification badges ---- */
.verification-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.verification-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.verification-badge .icon {
    color: var(--accent-green);
}

/* ---- Disclosure ---- */
.disclosure {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.disclosure p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.disclosure a {
    color: var(--text-secondary);
    text-decoration: underline;
}

/* ---- Footer ---- */
.footer {
    padding: 30px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---- Animations ---- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
}

.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }
.fade-in:nth-child(5) { animation-delay: 0.4s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .offers-grid {
        grid-template-columns: 1fr;
    }

    .trust-bar {
        flex-wrap: wrap;
        gap: 12px;
    }

    .nav-links {
        display: none;
    }

    .cta-button {
        padding: 16px 32px;
        font-size: 1rem;
    }
}

/* ---- Niche-specific accent overrides ---- */
.theme-gaming { --page-accent: var(--accent-purple); }
.theme-streaming { --page-accent: var(--accent-blue); }
.theme-app { --page-accent: var(--accent-orange); }
.theme-reward { --page-accent: var(--accent-green); }