/* ============================================
   REFERRAL PROGRAM STYLES
   Mandataire Auto
   ============================================ */

:root {
    --primary: #00D9A5;
    --primary-dark: #00B88A;
    --bg-dark: #0a0f1c;
    --bg-card: #111827;
    --bg-input: #1a2234;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --border-color: #2d3748;
    --gold: #F59E0B;
    --silver: #94A3B8;
    --bronze: #D97706;
    --platinum: #8B5CF6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon { font-size: 24px; }
.logo-text { font-size: 20px; font-weight: 700; }
.logo-accent { color: var(--primary); }

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
}

/* Hero Section */
.hero-section {
    padding: 80px 24px;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 217, 165, 0.1) 0%, transparent 50%);
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 217, 165, 0.1);
    border: 1px solid rgba(0, 217, 165, 0.3);
    border-radius: 24px;
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 24px;
}

.hero-section h1 {
    font-size: 56px;
    margin-bottom: 16px;
}

.hero-section .accent {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-subtitle strong {
    color: var(--primary);
    font-size: 24px;
}

/* Reward Cards */
.hero-rewards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
}

.reward-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 32px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 2px solid var(--border-color);
}

.reward-card.parrain {
    border-color: var(--primary);
}

.reward-card.filleul {
    border-color: var(--gold);
}

.reward-icon {
    font-size: 32px;
}

.reward-info {
    display: flex;
    flex-direction: column;
}

.reward-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.reward-amount {
    font-size: 28px;
    font-weight: 700;
}

.reward-card.parrain .reward-amount {
    color: var(--primary);
}

.reward-card.filleul .reward-amount {
    color: var(--gold);
}

.reward-plus {
    font-size: 32px;
    color: var(--text-secondary);
}

.btn-cta {
    display: inline-block;
    padding: 18px 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 14px;
    color: var(--bg-dark);
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 217, 165, 0.3);
}

/* How Section */
.how-section {
    padding: 60px 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.how-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 48px;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.step-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    flex: 1;
    max-width: 280px;
    border: 1px solid var(--border-color);
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

.step-arrow {
    font-size: 32px;
    color: var(--primary);
}

/* Share Section */
.share-section {
    padding: 60px 24px;
    max-width: 900px;
    margin: 0 auto;
}

.share-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
}

.share-card,
.qr-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid var(--border-color);
}

.share-card h3,
.qr-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.link-container {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.link-container input {
    flex: 1;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: monospace;
}

.copy-btn {
    padding: 14px 24px;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: var(--bg-dark);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.copy-btn:hover {
    transform: scale(1.02);
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn span:first-child {
    font-size: 24px;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-btn.whatsapp:hover { border-color: #25D366; }
.share-btn.email:hover { border-color: #EA4335; }
.share-btn.facebook:hover { border-color: #1877F2; }
.share-btn.sms:hover { border-color: var(--primary); }

/* QR Code */
.qr-card {
    text-align: center;
}

.qr-placeholder {
    width: 150px;
    height: 150px;
    margin: 0 auto 16px;
    background: white;
    border-radius: 12px;
    padding: 10px;
}

.qr-grid {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.qr-module {
    background: var(--bg-dark);
    border-radius: 2px;
}

.qr-module:nth-child(2),
.qr-module:nth-child(4),
.qr-module:nth-child(6),
.qr-module:nth-child(8) {
    background: white;
}

.qr-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Stats Section */
.stats-section {
    padding: 60px 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.stats-section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 32px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-card.highlight {
    border-color: var(--primary);
    background: rgba(0, 217, 165, 0.1);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-card.highlight .stat-value {
    color: var(--primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Referrals List */
.referrals-list {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border-color);
}

.referrals-list h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.empty-state {
    text-align: center;
    padding: 40px;
}

.empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.empty-state p {
    color: var(--text-secondary);
}

.empty-hint {
    font-size: 13px;
    margin-top: 8px;
}

/* Tiers Section */
.tiers-section {
    padding: 60px 24px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.tiers-section h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.tiers-subtitle {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.tier-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 32px 24px;
    border: 2px solid var(--border-color);
    transition: all 0.2s;
}

.tier-card:hover {
    transform: translateY(-5px);
}

.tier-badge {
    font-size: 40px;
    margin-bottom: 12px;
}

.tier-card h4 {
    font-size: 20px;
    margin-bottom: 12px;
}

.tier-condition {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.tier-reward {
    font-size: 18px;
    font-weight: 700;
}

.tier-card.bronze { border-color: var(--bronze); }
.tier-card.bronze .tier-reward { color: var(--bronze); }

.tier-card.silver { border-color: var(--silver); }
.tier-card.silver .tier-reward { color: var(--silver); }

.tier-card.gold { border-color: var(--gold); }
.tier-card.gold .tier-reward { color: var(--gold); }

.tier-card.platinum { border-color: var(--platinum); }
.tier-card.platinum .tier-reward { color: var(--platinum); }

/* FAQ Section */
.faq-section {
    padding: 60px 24px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 32px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    text-align: left;
    cursor: pointer;
}

.faq-toggle {
    font-size: 20px;
    color: var(--primary);
    transition: transform 0.2s;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 24px 20px;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Footer */
.footer {
    text-align: center;
    padding: 32px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

.footer p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-section h1 {
        font-size: 40px;
    }

    .hero-rewards {
        flex-direction: column;
    }

    .reward-plus {
        transform: rotate(90deg);
    }

    .steps-container {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .share-container {
        grid-template-columns: 1fr;
    }

    .stats-grid,
    .tiers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .share-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid,
    .tiers-grid {
        grid-template-columns: 1fr;
    }
}

