/* ibuluxe — Affiliate Program styles
   Complements main.css (header, footer, buttons). Uses the site accent palette. */

:root {
    --aff-navy: #1a1a2e;
    --aff-navy-2: #2d2d5e;
    --aff-gold: #c9a050;
    --aff-gold-strong: #b8954d;
    --aff-bg: #f9f7f4;
    --aff-surface: #ffffff;
    --aff-border: #e8e4dc;
    --aff-text: #3a3a3a;
    --aff-muted: #7a7a7a;
    --aff-success: #1e8e5a;
    --aff-warn: #c98a1e;
    --aff-danger: #c0392b;
    --aff-info: #2d6cdf;
}

/* ── Hero ─────────────────────────────────────────────── */
.aff-hero {
    background: linear-gradient(135deg, var(--aff-navy) 0%, var(--aff-navy-2) 100%);
    color: #fff;
    padding: 90px 0 80px;
    position: relative;
    overflow: hidden;
}
.aff-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: var(--aff-gold);
}
.aff-hero .eyebrow {
    color: var(--aff-gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}
.aff-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    margin: 0 0 18px;
    color: #fff;
}
.aff-hero p.lead {
    font-size: 1.1rem;
    color: #d8d8e0;
    max-width: 640px;
    margin: 0 auto 30px;
    line-height: 1.7;
}
.aff-hero .aff-cta-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Buttons (affiliate accent) ───────────────────────── */
.aff-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.aff-btn:hover { transform: translateY(-2px); }
.aff-btn-primary { background: var(--aff-gold); color: var(--aff-navy); }
.aff-btn-primary:hover { background: var(--aff-gold-strong); box-shadow: 0 8px 22px rgba(201,160,80,.35); }
.aff-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.aff-btn-ghost:hover { border-color: var(--aff-gold); color: var(--aff-gold); }
.aff-btn-dark { background: var(--aff-navy); color: #fff; }
.aff-btn-dark:hover { background: var(--aff-navy-2); }
.aff-btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.aff-btn-block { width: 100%; justify-content: center; }

/* ── Section shells ───────────────────────────────────── */
.aff-section { padding: 70px 0; }
.aff-section.alt { background: var(--aff-bg); }
.aff-section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.aff-section-head .eyebrow {
    color: var(--aff-gold-strong);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
}
.aff-section-head h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin: 10px 0 12px;
    color: var(--aff-navy);
}
.aff-section-head p { color: var(--aff-muted); font-size: 1.02rem; line-height: 1.7; }

/* ── Steps / How it works ─────────────────────────────── */
.aff-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.aff-step {
    background: var(--aff-surface);
    border: 1px solid var(--aff-border);
    border-radius: 14px;
    padding: 28px 22px;
    text-align: center;
    position: relative;
}
.aff-step .num {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--aff-navy);
    color: var(--aff-gold);
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.aff-step i { font-size: 1.6rem; color: var(--aff-gold-strong); margin-bottom: 10px; display: block; }
.aff-step h3 { font-size: 1.1rem; color: var(--aff-navy); margin: 6px 0 8px; }
.aff-step p { color: var(--aff-muted); font-size: .92rem; line-height: 1.6; margin: 0; }

/* ── Tiers ────────────────────────────────────────────── */
.aff-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 960px; margin: 0 auto; }
.aff-tier {
    background: var(--aff-surface);
    border: 1px solid var(--aff-border);
    border-radius: 16px;
    padding: 34px 26px;
    text-align: center;
}
.aff-tier.featured { border-color: var(--aff-gold); box-shadow: 0 12px 30px rgba(201,160,80,.18); transform: translateY(-6px); }
.aff-tier .rate { font-family: 'Playfair Display', serif; font-size: 3rem; color: var(--aff-navy); line-height: 1; }
.aff-tier .rate span { font-size: 1.2rem; color: var(--aff-gold-strong); }
.aff-tier .slab { color: var(--aff-muted); font-size: .95rem; margin: 10px 0 0; }
.aff-tier h4 { color: var(--aff-navy); margin: 14px 0 4px; font-size: 1.05rem; }

/* ── Perks grid ───────────────────────────────────────── */
.aff-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.aff-perk { background: var(--aff-surface); border: 1px solid var(--aff-border); border-radius: 14px; padding: 26px; }
.aff-perk i { font-size: 1.5rem; color: var(--aff-gold-strong); margin-bottom: 12px; display: block; }
.aff-perk h3 { color: var(--aff-navy); font-size: 1.08rem; margin: 0 0 8px; }
.aff-perk p { color: var(--aff-muted); font-size: .95rem; line-height: 1.6; margin: 0; }

/* ── Forms ────────────────────────────────────────────── */
.aff-form-wrap { max-width: 760px; margin: 0 auto; }
.aff-card {
    background: var(--aff-surface);
    border: 1px solid var(--aff-border);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
}
.aff-card > h3 {
    font-family: 'Playfair Display', serif;
    color: var(--aff-navy);
    font-size: 1.25rem;
    margin: 0 0 6px;
    display: flex; align-items: center; gap: 10px;
}
.aff-card > h3 i { color: var(--aff-gold-strong); }
.aff-card .hint { color: var(--aff-muted); font-size: .9rem; margin: 0 0 22px; }
.aff-field { margin-bottom: 18px; }
.aff-field label { display: block; font-weight: 600; color: var(--aff-navy); font-size: .9rem; margin-bottom: 7px; }
.aff-field label .req { color: var(--aff-danger); }
.aff-field input[type=text],
.aff-field input[type=email],
.aff-field input[type=tel],
.aff-field input[type=number],
.aff-field select,
.aff-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--aff-border);
    border-radius: 9px;
    font-size: 15px;
    font-family: inherit;
    color: var(--aff-text);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.aff-field input:focus, .aff-field select:focus, .aff-field textarea:focus {
    outline: none;
    border-color: var(--aff-gold);
    box-shadow: 0 0 0 3px rgba(201,160,80,.15);
}
.aff-field textarea { min-height: 90px; resize: vertical; }
.aff-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.aff-file-input {
    display: flex; align-items: center; gap: 12px;
    border: 1px dashed var(--aff-border);
    border-radius: 9px;
    padding: 14px;
    background: var(--aff-bg);
}
.aff-file-input input[type=file] { flex: 1; font-size: 13px; }
.aff-file-status { font-size: 12px; color: var(--aff-muted); }
.aff-file-status.ok { color: var(--aff-success); font-weight: 600; }

/* Verify rows */
.aff-verify-row { display: flex; gap: 10px; align-items: flex-start; }
.aff-verify-row .aff-field { flex: 1; margin-bottom: 0; }
.aff-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
}
.aff-badge.pending { background: #fff4e0; color: var(--aff-warn); }
.aff-badge.ok { background: #e6f5ee; color: var(--aff-success); }
.aff-badge.no { background: #fdecea; color: var(--aff-danger); }
.aff-badge.info { background: #e8f0fe; color: var(--aff-info); }

/* Inline messages */
.aff-alert { padding: 13px 16px; border-radius: 9px; font-size: 14px; margin-bottom: 18px; display: none; }
.aff-alert.err { background: #fdecea; color: var(--aff-danger); display: block; }
.aff-alert.ok { background: #e6f5ee; color: var(--aff-success); display: block; }
.aff-alert.info { background: #e8f0fe; color: var(--aff-info); display: block; }

/* Consent */
.aff-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--aff-text); }
.aff-consent input { margin-top: 4px; }
.aff-consent a { color: var(--aff-gold-strong); font-weight: 600; }

/* ── Gate / status panels ─────────────────────────────── */
.aff-gate { max-width: 560px; margin: 60px auto; text-align: center; background: var(--aff-surface); border: 1px solid var(--aff-border); border-radius: 16px; padding: 46px 34px; }
.aff-gate i { font-size: 2.6rem; color: var(--aff-gold-strong); margin-bottom: 16px; }
.aff-gate h2 { font-family: 'Playfair Display', serif; color: var(--aff-navy); margin: 0 0 10px; }
.aff-gate p { color: var(--aff-muted); line-height: 1.7; margin: 0 0 22px; }

/* ── Dashboard ────────────────────────────────────────── */
.aff-dash-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.aff-linkbox {
    display: flex; gap: 10px; align-items: center;
    background: var(--aff-surface); border: 1px solid var(--aff-border);
    border-radius: 10px; padding: 10px 12px; max-width: 100%;
}
.aff-linkbox code { font-size: 13px; color: var(--aff-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aff-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.aff-stat {
    background: var(--aff-surface); border: 1px solid var(--aff-border);
    border-radius: 14px; padding: 22px;
}
.aff-stat .k { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--aff-muted); font-weight: 700; }
.aff-stat .v { font-family: 'Playfair Display', serif; font-size: 1.9rem; color: var(--aff-navy); margin-top: 6px; }
.aff-stat .sub { font-size: 12px; color: var(--aff-muted); margin-top: 4px; }
.aff-wallet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 20px; }
.aff-wallet {
    border-radius: 14px; padding: 22px; color: #fff;
}
.aff-wallet.locked { background: linear-gradient(135deg, #4a4a6a, #35354f); }
.aff-wallet.available { background: linear-gradient(135deg, var(--aff-navy), var(--aff-navy-2)); }
.aff-wallet.paid { background: linear-gradient(135deg, #1e8e5a, #16663f); }
.aff-wallet .k { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; opacity: .85; font-weight: 700; }
.aff-wallet .v { font-family: 'Playfair Display', serif; font-size: 2rem; margin-top: 6px; }

/* ── Tables ───────────────────────────────────────────── */
.aff-table { width: 100%; border-collapse: collapse; background: var(--aff-surface); border-radius: 12px; overflow: hidden; }
.aff-table th, .aff-table td { text-align: left; padding: 13px 16px; font-size: 14px; border-bottom: 1px solid var(--aff-border); }
.aff-table th { background: var(--aff-bg); color: var(--aff-navy); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.aff-table td { color: var(--aff-text); }
.aff-empty { text-align: center; color: var(--aff-muted); padding: 40px 20px; }

/* ── Terms / legal page reuse ─────────────────────────── */
.aff-legal { max-width: 820px; margin: 0 auto; }
.aff-legal h2 { font-family: 'Playfair Display', serif; color: var(--aff-navy); font-size: 1.4rem; margin: 34px 0 12px; }
.aff-legal h3 { color: var(--aff-navy); font-size: 1.1rem; margin: 22px 0 8px; }
.aff-legal p, .aff-legal li { color: var(--aff-text); line-height: 1.8; font-size: .98rem; }
.aff-legal ul { padding-left: 22px; }
.aff-legal .updated { color: var(--aff-muted); font-size: .9rem; }
.aff-toc { background: var(--aff-bg); border: 1px solid var(--aff-border); border-radius: 12px; padding: 20px 24px; margin-bottom: 30px; }
.aff-toc a { color: var(--aff-gold-strong); text-decoration: none; }
.aff-toc a:hover { text-decoration: underline; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
    .aff-steps { grid-template-columns: repeat(2, 1fr); }
    .aff-tiers { grid-template-columns: 1fr; max-width: 420px; }
    .aff-tier.featured { transform: none; }
    .aff-perks { grid-template-columns: 1fr; }
    .aff-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .aff-wallet-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .aff-steps { grid-template-columns: 1fr; }
    .aff-grid-2 { grid-template-columns: 1fr; }
    .aff-stat-grid { grid-template-columns: 1fr; }
    .aff-table { display: block; overflow-x: auto; }
}
