/*
|--------------------------------------------------------------------------
| AfriPass Sprint 7 — Conversion Profile UI
|--------------------------------------------------------------------------
*/

:root {
    --ap6-navy: #071421;
    --ap6-navy-2: #0D1B2A;
    --ap6-green: #2BB673;
    --ap6-blue: #1E88E5;
    --ap6-gold: #F5A623;
    --ap6-bg: #F5F7FA;
    --ap6-text: #0D1B2A;
    --ap6-muted: #667085;
    --ap6-line: rgba(13,27,42,.10);
    --ap6-card: rgba(255,255,255,.92);
    --ap6-shadow: 0 28px 90px rgba(13,27,42,.12);
    --ap6-soft: 0 16px 50px rgba(13,27,42,.08);
    --ap6-radius: 30px;
    --ap6-gradient: linear-gradient(135deg, var(--ap6-green), var(--ap6-blue));
}

* { box-sizing: border-box; }

body.ap6-profile-body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ap6-text);
    background:
        radial-gradient(circle at 10% 4%, rgba(43,182,115,.11), transparent 26%),
        radial-gradient(circle at 88% 6%, rgba(30,136,229,.13), transparent 28%),
        radial-gradient(circle at 88% 96%, rgba(245,166,35,.10), transparent 26%),
        var(--ap6-bg);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.ap6-wrap { width: min(1180px, calc(100% - 30px)); margin: 0 auto; }

.ap6-topbar {
    position: sticky; top: 14px; z-index: 50; margin: 14px auto;
    width: min(1180px, calc(100% - 30px));
    border: 1px solid rgba(255,255,255,.72);
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(18px);
    border-radius: 999px;
    box-shadow: var(--ap6-soft);
    padding: 10px 12px;
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    transition: all .22s ease;
}
.ap6-topbar.is-scrolled { background: rgba(255,255,255,.95); box-shadow: 0 20px 70px rgba(13,27,42,.14); }

.ap6-brand { display: flex; align-items: center; gap: 10px; color: var(--ap6-navy); text-decoration: none; font-weight: 950; letter-spacing: -.03em; white-space: nowrap; }
.ap6-brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--ap6-gradient); box-shadow: 0 14px 30px rgba(43,182,115,.20); }

.ap6-top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ap6-toplink { padding: 10px 12px; border-radius: 999px; color: var(--ap6-navy); text-decoration: none; font-weight: 900; background: rgba(13,27,42,.04); }
.ap6-lang { display: inline-flex; align-items: center; border-radius: 999px; background: #F5F7FA; border: 1px solid var(--ap6-line); overflow: hidden; }
.ap6-lang a { padding: 9px 12px; text-decoration: none; color: var(--ap6-muted); font-weight: 900; }
.ap6-lang a.active { color: #fff; background: var(--ap6-navy); }

.ap6-hero {
    margin-top: 24px; min-height: 660px; border-radius: 48px; padding: clamp(30px, 5vw, 70px);
    color: #fff;
    background:
        radial-gradient(circle at 85% 12%, rgba(30,136,229,.42), transparent 30%),
        radial-gradient(circle at 12% 92%, rgba(43,182,115,.32), transparent 26%),
        linear-gradient(135deg, #071421, #0D1B2A);
    box-shadow: 0 36px 120px rgba(13,27,42,.20);
    display: grid; grid-template-columns: 1.04fr .96fr; gap: 30px; align-items: center;
    position: relative; overflow: hidden;
}
.ap6-hero::after { content: ""; position: absolute; inset: 1px; border-radius: inherit; border: 1px solid rgba(255,255,255,.12); pointer-events: none; }

.ap6-kicker,.ap6-section-label {
    display: inline-flex; align-items: center; gap: 10px; min-height: 36px;
    padding: 10px 16px; border-radius: 999px; font-weight: 950; text-transform: uppercase;
    letter-spacing: .10em; font-size: 13px;
}
.ap6-kicker-dark { background: rgba(43,182,115,.14); border: 1px solid rgba(43,182,115,.34); color: #8AF2BF; }
.ap6-section-label { background: linear-gradient(135deg, rgba(43,182,115,.14), rgba(30,136,229,.12)); border: 1px solid rgba(43,182,115,.26); color: var(--ap6-navy); box-shadow: 0 12px 30px rgba(43,182,115,.10); }

.ap6-name { margin: 22px 0 10px; font-size: clamp(44px, 7vw, 88px); line-height: .92; letter-spacing: -.07em; max-width: 760px; }
.ap6-title { color: rgba(255,255,255,.82); font-size: clamp(18px, 2.6vw, 28px); line-height: 1.4; max-width: 720px; }
.ap6-location { margin-top: 20px; display: inline-flex; color: rgba(255,255,255,.88); padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.12); font-weight: 850; }
.ap6-bio { margin-top: 22px; max-width: 750px; color: rgba(255,255,255,.73); line-height: 1.8; font-size: 17px; }

.ap6-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ap6-btn,.ap6-action-card-links a,.ap6-action-card-links button,.ap6-mobile-bar a,.ap6-mobile-bar button {
    min-height: 52px; border: 0; border-radius: 18px; padding: 14px 20px;
    display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
    font-weight: 950; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; font-family: inherit;
}
.ap6-btn:hover,.ap6-action-card-links a:hover,.ap6-action-card-links button:hover,.ap6-mobile-bar a:hover,.ap6-mobile-bar button:hover { transform: translateY(-1px); }
.ap6-btn-primary { color: #fff; background: var(--ap6-gradient); box-shadow: 0 18px 40px rgba(43,182,115,.24); }
.ap6-btn-light { color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); }
.ap6-btn-whatsapp { color: #fff; background: linear-gradient(135deg, #25D366, #128C7E); box-shadow: 0 18px 40px rgba(37,211,102,.20); }

.ap6-profile-card { width: min(420px, 100%); margin-left: auto; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); border-radius: 44px; padding: 18px; backdrop-filter: blur(22px); box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.ap6-profile-inner { border-radius: 34px; background: #fff; color: var(--ap6-text); padding: 26px; min-height: 560px; }
.ap6-avatar { width: 126px; height: 126px; border-radius: 34px; margin: 18px auto; display: grid; place-items: center; color: #fff; background: var(--ap6-gradient); font-size: 54px; font-weight: 950; overflow: hidden; box-shadow: 0 24px 54px rgba(43,182,115,.24); }
.ap6-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ap6-mini { margin-top: 18px; padding: 16px; border-radius: 22px; background: #F5F7FA; border: 1px solid var(--ap6-line); }
.ap6-mini p { margin: 6px 0 0; color: var(--ap6-muted); line-height: 1.55; }
.ap6-mini-top { margin-top: 0; }
.ap6-score-card { display: flex; align-items: center; gap: 14px; }
.ap6-score-ring { flex: 0 0 auto; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ap6-green) var(--score), rgba(13,27,42,.08) 0); position: relative; }
.ap6-score-ring::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.ap6-score-ring span { position: relative; z-index: 1; font-weight: 950; color: var(--ap6-navy); }
.ap6-qr { width: 180px; height: 180px; border-radius: 26px; display: block; margin: 22px auto 0; background: #fff; padding: 10px; box-shadow: 0 18px 42px rgba(13,27,42,.14); }

.ap6-section { margin: 28px auto; }
.ap6-section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 18px; }
.ap6-section h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1; letter-spacing: -.06em; margin: 8px 0; }
.ap6-section p { color: var(--ap6-muted); line-height: 1.75; }

.ap6-action-strip { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.ap6-action-card,.ap6-card,.ap7-form,.ap7-testimonial-card,.ap6-empty {
    position: relative; border-radius: var(--ap6-radius); background: radial-gradient(circle at var(--mx, 90%) var(--my, 0%), rgba(30,136,229,.08), transparent 25%), rgba(255,255,255,.94);
    border: 1px solid var(--ap6-line); box-shadow: var(--ap6-soft); overflow: hidden;
}
.ap6-action-card { padding: 24px; }
.ap6-action-card span { display: inline-flex; color: var(--ap6-green); font-weight: 950; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; margin-bottom: 8px; }
.ap6-action-card strong { display: block; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.04em; line-height: 1.1; }
.ap6-action-card-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ap6-action-card-links a,.ap6-action-card-links button { color: var(--ap6-navy); background: #F5F7FA; border: 1px solid var(--ap6-line); }

.ap6-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.ap6-card { padding: 24px; min-height: 235px; }
.ap6-card-icon { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: var(--ap6-gradient); font-weight: 950; margin-bottom: 16px; }
.ap6-card h3 { margin: 0 0 10px; font-size: 24px; letter-spacing: -.03em; }
.ap6-card p { margin: 0; color: var(--ap6-muted); }
.ap6-card a { color: var(--ap6-blue); font-weight: 900; text-decoration: none; }

.ap6-chip-row { display: flex; flex-wrap: wrap; gap: 12px; }
.ap6-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; border-radius: 999px; padding: 10px 18px 10px 10px; background: #fff; border: 1px solid var(--ap6-line); box-shadow: 0 14px 34px rgba(13,27,42,.08); color: var(--ap6-text); text-decoration: none; font-weight: 950; }
.ap6-chip span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--ap6-gradient); font-size: 13px; }

.ap6-gallery { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.ap6-gallery-item { min-height: 210px; border-radius: 26px; overflow: hidden; background: #fff; border: 1px solid var(--ap6-line); box-shadow: var(--ap6-soft); }
.ap6-gallery-item img,.ap6-gallery-item video { width: 100%; height: 210px; object-fit: cover; display: block; }

.ap7-conversion-section { display: grid; grid-template-columns: .92fr 1.08fr; gap: 20px; align-items: start; }
.ap7-conversion-copy { padding: 28px; border-radius: var(--ap6-radius); color: #fff; background: linear-gradient(135deg, #071421, #0D1B2A); box-shadow: var(--ap6-soft); }
.ap7-conversion-copy p { color: rgba(255,255,255,.72); }
.ap7-conversion-copy .ap6-section-label { color: #8AF2BF; background: rgba(43,182,115,.14); border-color: rgba(43,182,115,.34); }

.ap7-form { padding: 24px; display: grid; gap: 14px; }
.ap7-form h3 { margin: 0; font-size: 28px; letter-spacing: -.04em; }
.ap7-form label { font-weight: 900; color: var(--ap6-navy); }
.ap7-form input,.ap7-form select,.ap7-form textarea {
    width: 100%; min-height: 52px; border-radius: 17px; border: 1px solid var(--ap6-line); padding: 13px 15px; background: #fff; font: inherit; outline: none;
}
.ap7-form textarea { resize: vertical; }
.ap7-two { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.ap7-hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; }
.ap7-form-response { min-height: 24px; font-weight: 900; }
.ap7-form-response.ok { color: #0f9f63; }
.ap7-form-response.bad { color: #c0392b; }

.ap7-testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-bottom: 18px; }
.ap7-testimonial-card { padding: 24px; }
.ap7-testimonial-card p { font-size: 16px; color: var(--ap6-text); }
.ap7-testimonial-card strong { display: block; margin-top: 18px; font-size: 18px; }
.ap7-testimonial-card span { color: var(--ap6-muted); }
.ap7-stars { color: var(--ap6-gold); letter-spacing: 2px; font-size: 18px; margin-bottom: 12px; }
.ap7-testimonial-form { margin-top: 18px; }

.ap6-empty { padding: 32px; color: var(--ap6-muted); }
.ap6-empty-premium { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.ap6-empty-premium h2 { color: var(--ap6-text); max-width: 820px; }
.ap6-footer { margin: 40px auto 90px; text-align: center; color: var(--ap6-muted); }

.ap6-mobile-bar { display: none; }
.ap6-reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.ap6-visible { opacity: 1; transform: translateY(0); }

.ap7-dashboard { width:min(1180px,calc(100% - 30px)); margin:28px auto 80px; }
.ap7-dashboard-hero { padding:34px; border-radius:34px; color:#fff; background:linear-gradient(135deg,#071421,#0D1B2A); box-shadow:var(--ap6-shadow); margin-bottom:22px; }
.ap7-table-card { background:#fff; border:1px solid var(--ap6-line); border-radius:28px; box-shadow:var(--ap6-soft); overflow:auto; }
.ap7-table { width:100%; border-collapse:collapse; min-width:760px; }
.ap7-table th,.ap7-table td { padding:14px 16px; border-bottom:1px solid var(--ap6-line); text-align:left; vertical-align:top; }
.ap7-table th { font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--ap6-muted); }
.ap7-pill { display:inline-flex; padding:7px 11px; border-radius:999px; font-weight:900; background:#F5F7FA; border:1px solid var(--ap6-line); }
.ap7-admin-actions { display:flex; gap:8px; flex-wrap:wrap; }
.ap7-admin-actions a,.ap7-admin-actions button { border:0; border-radius:12px; padding:9px 11px; font-weight:900; cursor:pointer; background:#F5F7FA; color:var(--ap6-navy); text-decoration:none; }

@media (max-width: 960px) {
    body.ap6-profile-body { padding-bottom: 88px; }
    .ap6-hero,.ap7-conversion-section { grid-template-columns: 1fr; min-height: auto; border-radius: 34px; }
    .ap6-profile-card { margin-left: 0; }
    .ap6-grid,.ap6-gallery,.ap6-action-strip,.ap7-testimonial-grid { grid-template-columns: 1fr; }
    .ap6-section-head { display: block; }
    .ap6-topbar { border-radius: 26px; position: relative; top: auto; }
    .ap6-toplink { display: none; }
    .ap6-mobile-bar {
        position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80;
        display: flex; gap: 8px; padding: 10px; border-radius: 24px;
        background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.72);
        backdrop-filter: blur(18px); box-shadow: 0 20px 70px rgba(13,27,42,.20); overflow-x: auto;
    }
    .ap6-mobile-bar a,.ap6-mobile-bar button {
        min-height: 46px; flex: 1 0 auto; color: #fff; background: var(--ap6-gradient);
        border-radius: 16px; padding: 12px 14px; font-size: 13px; white-space: nowrap;
    }
}

@media (max-width: 620px) {
    .ap6-wrap { width: min(100% - 18px, 1180px); }
    .ap6-hero { padding: 24px; }
    .ap6-name { font-size: 42px; }
    .ap6-title { font-size: 18px; }
    .ap6-topbar { width: calc(100% - 18px); align-items: flex-start; flex-direction: column; }
    .ap6-top-actions { width: 100%; justify-content: space-between; }
    .ap6-top-cta { min-height: 42px; padding: 10px 14px; }
    .ap6-profile-inner { padding: 18px; min-height: auto; }
    .ap6-avatar { width: 106px; height: 106px; font-size: 44px; }
    .ap6-qr { width: 154px; height: 154px; }
    .ap6-actions .ap6-btn,.ap7-form .ap6-btn { width: 100%; }
    .ap7-two { grid-template-columns:1fr; }
    .ap6-empty-premium { display: block; }
    .ap6-empty-premium .ap6-btn { margin-top: 16px; width: 100%; }
}
