/* =============================================================================
   Tandemio app — design system
   Matches the marketing site at /tandemio/ (dark, purple accent, green CTA)
   ============================================================================= */

:root {
    /* Light theme — matches Aeline default (marketing default surface is white) */
    --bg: #ffffff;
    --bg-elev: #f9f9fa;
    --bg-elev-2: #f2f2f2;
    --fg: #131313;          /* grey-900 */
    --fg-strong: #000000;
    --muted: #585858;        /* grey-400 */
    --muted-2: #8a8a8a;
    --accent: #7c3aed;
    --accent-2: #6d28d9;
    --accent-soft: rgba(124, 58, 237, 0.10);
    --accent-border: rgba(124, 58, 237, 0.35);
    --green: #d6fd70;        /* Aeline lime */
    --green-dark: #b5e040;
    --line: rgba(0, 0, 0, 0.08);
    --line-strong: rgba(0, 0, 0, 0.18);
    --surface: rgba(0, 0, 0, 0.025);
    --surface-2: #ffffff;
    --danger: #d12c2c;
    --danger-soft: rgba(220, 80, 80, 0.08);
    --warn: #b97700;
    --ok: #2f8f4a;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-2: 0 12px 40px rgba(0, 0, 0, 0.10);
    /* Match marketing site (Webflow Aeline) */
    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font: 15px/1.55 var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--accent);
    text-decoration: none;
}
a:hover { color: var(--accent-2); text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--fg-strong);
    margin: 0 0 12px;
    letter-spacing: -0.015em;
    line-height: 1.2;
}
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 20px; font-weight: 600; margin-top: 32px; }
h3 { font-size: 16px; font-weight: 600; margin-top: 0; }

p { margin: 0 0 14px; color: var(--fg); }
small { color: var(--muted); font-size: 13px; }

code {
    font: 13px/1.4 'JetBrains Mono', 'Menlo', monospace;
    background: var(--bg-elev-2);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--line);
    color: var(--accent-2);
}

pre {
    font: 13px/1.5 'JetBrains Mono', 'Menlo', monospace;
    background: var(--bg-elev-2);
    border: 1px solid var(--line);
    padding: 14px;
    border-radius: var(--radius);
    overflow-x: auto;
    color: var(--fg);
    white-space: pre-wrap;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

/* =============================================================================
   BRAND LAYOUT — left sidebar + main content
   ============================================================================= */
body.layout-brand {
    margin: 0;
    background: #f6f7fb;
    color: var(--fg);
    min-height: 100vh;
}
.brand-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 260px;
    background: #ffffff;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 100;
}
/* Border only below the blue head (top: 68px) — keeps blue strip visually unified */
.brand-sidebar::after {
    content: "";
    position: absolute;
    top: 68px;
    right: 0;
    bottom: 0;
    width: 1px;
    background: var(--line);
    pointer-events: none;
}
.brand-sidebar-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;          /* logo centered */
    padding: 0 22px;
    height: 68px;                     /* exact match with topbar */
    /* Same horizontal gradient, anchored to viewport so it blends with topbar */
    background: linear-gradient(to right, #2453ff 0%, #3b82f6 50%, #1d4ed8 100%);
    background-size: 100vw 100%;
    background-position: 0 0;
    background-attachment: scroll;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    box-sizing: border-box;
}
.brand-sidebar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.brand-sidebar-logo img {
    height: 26px;
    width: auto;
    display: block;
    /* Logo is dark wordmark by default — invert to white for the blue header */
    filter: brightness(0) invert(1);
}
.brand-sidebar-close {
    display: none;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.20);
    font-size: 18px;
    line-height: 1;
    color: #ffffff;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
}

.brand-sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.brand-sidebar-group { margin-bottom: 18px; }
.brand-sidebar-group--unlabeled { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.brand-sidebar-group-label {
    color: var(--muted-2);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0 12px 6px;
}
.brand-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--fg);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: background 0.12s, color 0.12s;
    margin-bottom: 1px;
}
.brand-sidebar-link:hover {
    background: var(--bg-elev-2);
    color: var(--fg-strong);
    text-decoration: none;
}
.brand-sidebar-link.is-active {
    background: var(--accent-soft);
    color: var(--accent-2);
    font-weight: 600;
}
.brand-sidebar-link.is-active .brand-sidebar-icon { color: var(--accent); }
.brand-sidebar-icon {
    color: var(--muted);
    flex-shrink: 0;
    display: flex;
}
.brand-sidebar-text { flex: 1; min-width: 0; }
.brand-sidebar-badge {
    padding: 1px 7px;
    background: var(--bg-elev-2);
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 700;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.brand-sidebar-badge--new { background: var(--green); color: #0a0a0f; }
.brand-sidebar-badge--wip { background: rgba(245, 185, 85, 0.15); color: #a06a00; }
.brand-sidebar-count {
    padding: 1px 7px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
}

.brand-sidebar-foot { padding: 12px 16px 18px; border-top: 1px solid var(--line); }
.brand-sidebar-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    background: none;
    border: 0;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s;
}
.brand-sidebar-logout:hover { background: var(--bg-elev-2); color: var(--danger); }

/* Main column shifted to make room for sidebar */
.brand-main {
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.brand-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 32px;
    height: 68px;                     /* explicit, matches sidebar-head */
    /* Anchored to viewport so the gradient lines up SEAMLESSLY with sidebar-head */
    background: linear-gradient(to right, #2453ff 0%, #3b82f6 50%, #1d4ed8 100%);
    background-size: 100vw 100%;
    background-position: -260px 0;    /* sidebar is 260px wide → main starts at viewport x=260 */
    background-attachment: scroll;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(36, 83, 255, 0.20);
}
.brand-topbar-burger {
    display: none;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.20);
    padding: 8px 10px;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
}
.brand-topbar-burger:hover { background: rgba(255, 255, 255, 0.22); }
.brand-topbar-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    flex: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.10);
}
.brand-topbar-actions { display: flex; align-items: center; gap: 12px; }
.brand-topbar-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.20);
    transition: background 0.15s;
}
.brand-topbar-bell:hover { background: rgba(255, 255, 255, 0.24); color: #ffffff; text-decoration: none; }
.brand-topbar-bell-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--green);
    color: #0a0a0f;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    padding: 1px 6px;
    border: 2px solid #1d4ed8;
    line-height: 1.4;
    min-width: 18px;
    text-align: center;
}

.brand-main-inner {
    flex: 1;
    padding: 28px 32px 60px;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;   /* centered within main column */
}

/* ─── Top-bar dropdowns (language, profile) ─────────────────────────────── */
.topbar-dropdown { position: relative; }

.topbar-lang, .topbar-profile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 10px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 999px;
    color: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    height: 38px;
}
.topbar-lang:hover, .topbar-profile:hover { background: rgba(255, 255, 255, 0.24); }

.topbar-lang-flag { font-size: 16px; line-height: 1; }
.topbar-lang-code { letter-spacing: 0.05em; }

.topbar-profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    background: linear-gradient(135deg, var(--green), #b5e040);
    color: #0a0a0f;
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
}
.topbar-profile-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}
.topbar-profile-name { font-size: 12.5px; font-weight: 700; }
.topbar-profile-role { font-size: 10.5px; opacity: 0.75; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }

.topbar-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.18), 0 4px 8px -2px rgba(0, 0, 0, 0.08);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.12s, transform 0.12s, visibility 0.12s;
    z-index: 60;
}
.topbar-dropdown.is-open .topbar-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.topbar-dropdown-menu--profile { min-width: 240px; }
.topbar-dropdown-menu--lang    { min-width: 200px; }

.topbar-dropdown-header {
    padding: 10px 12px 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 4px;
}

.topbar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    background: none;
    border: 0;
    color: var(--fg);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.12s;
}
.topbar-dropdown-item:hover {
    background: var(--bg-elev-2);
    color: var(--fg-strong);
    text-decoration: none;
}
.topbar-dropdown-item.is-active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}
.topbar-dropdown-item svg { color: var(--muted); flex-shrink: 0; }
.topbar-dropdown-item.is-active svg { color: var(--accent); }
.topbar-dropdown-divider {
    height: 1px;
    background: var(--line);
    margin: 4px 0;
}

@media (max-width: 980px) {
    .topbar-profile-meta { display: none; }
    .topbar-lang-code { display: none; }
}
.brand-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.5);
    z-index: 99;
}

@media (max-width: 980px) {
    .brand-sidebar { transform: translateX(-100%); transition: transform 0.2s; box-shadow: 0 0 30px rgba(0,0,0,0.2); }
    .brand-main { margin-left: 0; }
    .brand-topbar-burger { display: inline-flex; }
    .brand-sidebar-close { display: inline-flex; align-items: center; }
    body.sidebar-open .brand-sidebar { transform: translateX(0); }
    body.sidebar-open .brand-sidebar-overlay { display: block; }
    .brand-main-inner { padding: 20px 16px 40px; }
}

/* WIP / Coming-soon page chrome */
.coming-soon {
    text-align: center;
    padding: 80px 24px;
    background: #ffffff;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    margin: 24px 0;
}
.coming-soon-emoji { font-size: 64px; margin-bottom: 16px; }
.coming-soon h2 { font-size: 24px; margin: 0 0 8px; }
.coming-soon p { color: var(--muted); max-width: 460px; margin: 0 auto 20px; }

/* ─── Topbar ───────────────────────────────────────────────────────────── */
.topbar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 14px 32px;
    /* Tandemio sky-blue (matches marketing hero & --base--blue token) */
    background: linear-gradient(135deg, #2453ff 0%, #1d4ed8 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(36, 83, 255, 0.18);
}
.topbar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}
.topbar .brand:hover { text-decoration: none; color: #ffffff; }
.topbar .brand img {
    display: block;
    height: 22px;
    width: auto;
    /* Logo is dark-on-light by default — invert to white on blue topbar */
    filter: brightness(0) invert(1);
}
.topnav {
    display: flex;
    gap: 4px;
    margin-left: 16px;
    flex: 1;
}
.topnav a {
    color: rgba(255, 255, 255, 0.78);
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.15s, color 0.15s;
}
.topnav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    text-decoration: none;
}
.user-menu {
    display: flex;
    align-items: center;
    gap: 14px;
}
.user-name {
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 500;
}
.user-menu .btn-link {
    color: rgba(255, 255, 255, 0.78);
}
.user-menu .btn-link:hover {
    color: #ffffff;
}
.bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: background 0.15s;
}
.bell:hover { background: rgba(255, 255, 255, 0.24); text-decoration: none; color: #ffffff; }
.bell-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--green);
    color: #0a0a0f;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    padding: 1px 6px;
    line-height: 1.4;
    min-width: 18px;
    text-align: center;
    border: 2px solid #1d4ed8;
}

/* ─── Containers ───────────────────────────────────────────────────────── */
.wrap-narrow {
    max-width: 480px;
    margin: 8vh auto;
    padding: 36px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2);
}
.wrap-narrow .auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    text-decoration: none;
}
.wrap-narrow .auth-brand img {
    display: block;
    height: 28px;
    width: auto;
}
.wrap-narrow .auth-brand:hover { text-decoration: none; }
.wrap-wide {
    max-width: 1200px;
    margin: 32px auto 80px;
    padding: 0 32px;
}

/* ─── Page head ────────────────────────────────────────────────────────── */
.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.page-head h1 { margin: 0; }

/* ─── KPI grid ─────────────────────────────────────────────────────────── */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 24px 0;
}
.kpi {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
}
.kpi-label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}
.kpi-value {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    color: var(--fg-strong);
    letter-spacing: -0.01em;
}

/* ─── Cards ────────────────────────────────────────────────────────────── */
.card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    margin: 16px 0;
    box-shadow: var(--shadow-1);
}
.card h3 { margin-top: 0; }
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin: 24px 0;
}
.card-grid > .card,
.card-grid > a.card {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, transform 0.15s;
}
.card-grid > a.card:hover {
    border-color: var(--accent-border);
    text-decoration: none;
    transform: translateY(-1px);
}
.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.card-head strong { color: var(--fg-strong); font-size: 14px; }
.card h3 { font-size: 15px; }
.card p { font-size: 13.5px; color: var(--muted); margin-bottom: 0; }
.card-foot {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--green);
    font-weight: 600;
}

/* ─── Forms ────────────────────────────────────────────────────────────── */
label {
    display: block;
    margin: 16px 0 6px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}
input[type=email],
input[type=password],
input[type=text],
input[type=number],
input[type=url],
input[type=tel],
input[type=search],
input[type=date],
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--fg);
    font: inherit;
    font-family: var(--font-body);
    transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}
.form-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    margin: 20px 0;
    box-shadow: var(--shadow-1);
}

/* ─── Buttons ──────────────────────────────────────────────────────────── */
.btn,
button.btn,
a.btn {
    display: inline-block;
    padding: 13px 22px;
    background: var(--green);
    color: #0a0a0f;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: transform 0.05s, background 0.15s, box-shadow 0.15s;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 16px rgba(214, 253, 112, 0.32), 0 1px 2px rgba(0, 0, 0, 0.06);
}
.btn:hover {
    background: var(--green-dark);
    color: #0a0a0f;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(214, 253, 112, 0.40), 0 1px 2px rgba(0, 0, 0, 0.06);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-sm {
    padding: 7px 14px;
    background: var(--green);
    color: #0a0a0f;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.15s;
}
.btn-sm:hover { background: var(--green-dark); text-decoration: none; color: #0a0a0f; }

.btn-ghost {
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-elev-2); color: var(--fg-strong); }

.btn-link {
    background: none;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.btn-link:hover { color: var(--fg-strong); }

/* Black with lime green text — alternate CTA variant matching marketing */
.btn-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: #0a0a0f;
    color: var(--green);
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s, transform 0.05s, box-shadow 0.15s;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(10, 10, 15, 0.18);
}
.btn-dark:hover {
    background: #1a1a26;
    color: var(--green);
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(10, 10, 15, 0.28);
}
.btn-dark .arrow { transition: transform 0.15s; }
.btn-dark:hover .arrow { transform: translateX(3px); }

/* Small variant for inline use on cards */
.btn-dark--sm {
    padding: 7px 14px;
    font-size: 12.5px;
    box-shadow: 0 2px 8px rgba(10, 10, 15, 0.15);
}

/* Card footer: budget left + view CTA right, with hover sync */
.app-card-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
}
.app-card-foot .btn-dark--sm { width: 100%; justify-content: center; }
.app-card--with-cover .app-card-foot { padding: 0 18px; }
.app-card-budget-row {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    padding: 0 18px 4px;
}
.app-card-budget {
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 500;
}
.app-card--with-cover .app-card-foot { padding: 0 18px 4px; }
/* Card-level hover lifts the embedded pill too */
.app-card:hover .btn-dark--sm {
    background: #1a1a26;
    box-shadow: 0 6px 14px rgba(10, 10, 15, 0.25);
}
.app-card:hover .btn-dark--sm .arrow { transform: translateX(3px); }

.btn-danger { background: var(--danger); color: #1a0808; }

/* Auth-screen full-width primary button */
.wrap-narrow .btn {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 18px;
}

/* ─── Tables ───────────────────────────────────────────────────────────── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 16px 0;
    font-size: 14px;
}
.data-table thead {
    background: var(--bg-elev-2);
}
.data-table th {
    text-align: left;
    padding: 12px 14px;
    color: var(--muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--line);
}
.data-table td {
    padding: 12px 14px;
    border-top: 1px solid var(--line);
    vertical-align: top;
}
.data-table tbody tr:hover { background: rgba(0, 0, 0, 0.02); }
/* Highlight scroll-anchored row (e.g. after deep-link from Top 5 creator card) */
.data-table tbody tr:target {
    background: rgba(214, 253, 112, 0.18);
    box-shadow: inset 4px 0 0 var(--green);
    animation: targetFade 2s ease-out 1.5s forwards;
}
@keyframes targetFade {
    to { background: transparent; box-shadow: inset 4px 0 0 transparent; }
}
.data-table small { display: block; margin-top: 2px; }

/* ─── Pills & states ───────────────────────────────────────────────────── */
.pill {
    display: inline-block;
    padding: 3px 10px;
    background: var(--bg-elev-2);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.state {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid;
}
.state-draft         { color: var(--muted); border-color: var(--line-strong); background: var(--bg-elev-2); }
.state-pending_review,
.state-pending,
.state-applied,
.state-shortlisted,
.state-queued,
.state-processing    { color: var(--warn); border-color: rgba(245, 185, 85, 0.35); background: rgba(245, 185, 85, 0.1); }
.state-live,
.state-accepted,
.state-approved,
.state-paid,
.state-completed     { color: var(--ok); border-color: rgba(106, 209, 123, 0.35); background: rgba(106, 209, 123, 0.1); }
.state-rejected,
.state-declined,
.state-failed,
.state-suspended,
.state-cancelled     { color: var(--danger); border-color: rgba(255, 123, 123, 0.35); background: rgba(255, 123, 123, 0.1); }
.state-paused,
.state-archived      { color: var(--muted); border-color: var(--line-strong); background: var(--bg-elev-2); }

/* ─── Alerts & notices ─────────────────────────────────────────────────── */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-left: 4px solid #dc2626;
    color: #991b1b;
    margin: 0 0 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: alertSlideIn .3s ease;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08);
}
.alert::before {
    content: "\26A0";
    font-size: 16px;
    flex-shrink: 0;
}
@keyframes alertSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.alert-ok {
    background: rgba(47, 143, 74, 0.08);
    border-color: rgba(47, 143, 74, 0.25);
    color: var(--ok);
}
.alert-info {
    background: var(--accent-soft);
    border-color: var(--accent-border);
    color: var(--accent-2);
}
.empty {
    padding: 40px 24px;
    text-align: center;
    background: var(--bg-elev);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    color: var(--muted);
    margin: 16px 0;
}

/* ─── Filters bar ──────────────────────────────────────────────────────── */
.filters-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 16px 0;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    align-items: center;
}
.filters-bar input,
.filters-bar select {
    width: auto;
    min-width: 160px;
    padding: 8px 12px;
}
.filters-bar input[type=text] { flex: 1; min-width: 200px; }

/* ─── Auth-only widgets (used by login/register) ───────────────────────── */
.row-checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 14px 0;
    font-size: 13px;
    color: var(--muted);
}
.row-checkbox input { margin-top: 2px; }
.kind-toggle {
    display: flex;
    gap: 8px;
    margin: 14px 0;
}
.kind-toggle label {
    flex: 1;
    padding: 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    color: var(--fg);
    margin: 0;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}
.kind-toggle input { display: none; }
.kind-toggle input:checked + span { color: var(--accent); font-weight: 700; }
.kind-toggle label:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.wrap-narrow small {
    display: block;
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
}

/* ─── Footer ───────────────────────────────────────────────────────────── */
.appfoot {
    max-width: 1200px;
    margin: 40px auto 24px;
    padding: 0 32px;
    color: var(--muted-2);
    font-size: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
}
.appfoot a { color: var(--muted); }
.appfoot a:hover { color: var(--fg-strong); }

/* ─── Onboarding wizard ────────────────────────────────────────────────── */
.steps {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 12px;
    color: var(--muted);
}
.steps .step {
    flex: 1;
    height: 4px;
    background: var(--line);
    border-radius: 2px;
}
.steps .step.active { background: var(--accent); }
.steps .step.done   { background: var(--green); }

/* ─── Detail / summary ─────────────────────────────────────────────────── */
details {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin: 16px 0;
}
details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--fg-strong);
}
details[open] summary { margin-bottom: 12px; }

/* =============================================================================
   DASHBOARD — hero strip, stat tiles, app cards (creator-friendly)
   ============================================================================= */

/* ─── Hero strip — sky-blue gradient welcome panel ─────────────────────── */
.hero-strip {
    position: relative;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
    align-items: center;
    padding: 28px 32px;
    margin: 0 0 28px;
    background:
        radial-gradient(ellipse 60% 60% at 100% 100%, rgba(255, 255, 255, 0.16) 0%, transparent 60%),
        radial-gradient(ellipse 60% 60% at 0% 0%, rgba(214, 253, 112, 0.12) 0%, transparent 55%),
        linear-gradient(135deg, #2453ff 0%, #3b82f6 55%, #38c6f6 100%);
    border-radius: var(--radius-lg);
    color: #ffffff;
    overflow: hidden;
    box-shadow: 0 12px 32px -12px rgba(36, 83, 255, 0.40);
}
.hero-strip::before {
    content: "";
    position: absolute;
    top: -80px; right: -80px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
    pointer-events: none;
}
.hero-strip-content { position: relative; z-index: 1; }

.hero-eyebrow {
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}
.hero-title {
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 1.1;
    margin: 0 0 8px;
    color: #ffffff;
    letter-spacing: -0.02em;
    font-weight: 700;
}
.hero-sub {
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    margin: 0 0 20px;
    max-width: 460px;
}
.hero-sub strong { color: var(--green); font-weight: 700; }
.hero-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}
.btn-on-dark { font-size: 14px; }
.btn-link-light {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    padding-bottom: 1px;
}
.btn-link-light:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
    text-decoration: none;
}

/* Hero card — earnings highlight on the right */
.hero-strip-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    padding: 22px 24px;
}
.hero-strip-card-eyebrow {
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    margin-bottom: 6px;
}
.hero-strip-card-value {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--green);
    letter-spacing: -0.01em;
    margin-bottom: 6px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.20);
}
.hero-strip-card-meta {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.hero-strip-card-meta strong { color: #ffffff; font-weight: 600; }
.hero-strip-card-meta .dot { opacity: 0.5; }

/* ─── Stat tiles ────────────────────────────────────────────────────────── */
.stat-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 0 0 36px;
}
.stat-tile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    overflow: hidden;
}
.stat-tile::before {
    /* Subtle lime-to-blue accent strip on top */
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--accent));
    opacity: 0;
    transition: opacity 0.18s;
}
.stat-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(36, 83, 255, 0.20);
    box-shadow: 0 14px 28px -10px rgba(36, 83, 255, 0.18);
}
.stat-tile:hover::before { opacity: 1; }
.stat-tile-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-tile-icon--blue   { background: rgba(36, 83, 255, 0.10); color: #2453ff; }
.stat-tile-icon--green  { background: rgba(47, 143, 74, 0.10); color: #2f8f4a; }
.stat-tile-icon--purple { background: rgba(124, 58, 237, 0.10); color: #7c3aed; }
.stat-tile-icon--lime   { background: rgba(214, 253, 112, 0.30); color: #5d6e1f; }
.stat-tile-body { min-width: 0; }
.stat-tile-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.stat-tile-value {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--fg-strong);
    letter-spacing: -0.01em;
    line-height: 1.1;
}
.stat-tile-sub {
    color: var(--muted-2);
    font-size: 11.5px;
    margin-top: 4px;
}

/* ─── Stat-mini (period averages, smaller than stat-tile) ───────────────── */
.stat-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin: 0 0 32px;
}
.stat-mini {
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.stat-mini-label {
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.stat-mini-value {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--fg-strong);
    letter-spacing: -0.01em;
    line-height: 1.05;
    margin-bottom: 2px;
}
.stat-mini-sub {
    color: var(--muted-2);
    font-size: 11.5px;
}

/* ─── Marketing-style section markers ("+ EYEBROW +" centered above h2) ── */
.section-marker {
    text-align: center;
    margin: 44px 0 18px;
}
.section-marker .section-eyebrow {
    display: inline-block;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.section-marker .section-title {
    font-family: var(--font-display);
    font-size: 26px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--fg-strong);
    margin: 0 0 6px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
/* Lime icon circle next to a section title */
.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #0a0a0f;
    flex-shrink: 0;
}
.section-icon--lime { background: var(--green); box-shadow: 0 4px 12px rgba(214, 253, 112, 0.45); }
.section-icon--blue { background: var(--accent); color: #fff; }
.section-icon--dark { background: #0a0a0f; color: var(--green); }
.section-marker .section-help {
    color: var(--muted);
    font-size: 13.5px;
    margin: 0;
}

/* ─── Creator profile page ──────────────────────────────────────────────── */
/* Cloud strip at the bottom of the hero — same vibe as marketing landing */
.creator-profile-hero { position: relative; }
.hero-clouds {
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 70px;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}
.hero-clouds svg { width: 100%; height: 100%; display: block; }

/* Floating decorative dots — like marketing hero */
.hero-floats { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-float {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.30);
    border: 1.5px solid rgba(255, 255, 255, 0.50);
    backdrop-filter: blur(2px);
}
.hero-float--1 { width: 14px; height: 14px; top: 18%; right: 20%; animation: heroFloat 8s ease-in-out infinite; }
.hero-float--2 { width: 22px; height: 22px; top: 60%; right: 10%; animation: heroFloat 10s ease-in-out infinite -3s; }
.hero-float--3 { width: 10px; height: 10px; top: 40%; right: 38%; animation: heroFloat 9s ease-in-out infinite -5s; }
.hero-float--4 { width: 18px; height: 18px; top: 25%; right: 50%; animation: heroFloat 11s ease-in-out infinite -7s; }
@keyframes heroFloat {
    0%,100% { transform: translateY(0) translateX(0); }
    50%     { transform: translateY(-14px) translateX(8px); }
}
.back-link {
    display: inline-block;
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 16px;
    text-decoration: none;
    transition: color 0.15s, transform 0.15s;
}
.back-link:hover { color: var(--accent); text-decoration: none; transform: translateX(-2px); }

.creator-profile-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 12px 32px -12px rgba(36, 83, 255, 0.20);
}
.creator-profile-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 0%, rgba(214, 253, 112, 0.20) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 100%, rgba(167, 139, 250, 0.18) 0%, transparent 55%),
        linear-gradient(135deg, #2453ff 0%, #3b82f6 50%, #38c6f6 100%);
}
.creator-profile-hero-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 36px;
    padding: 36px 40px 80px;   /* leave room for cloud SVG at bottom */
    align-items: center;
    color: #ffffff;
}

.creator-profile-photo-wrap {
    position: relative;
    width: 220px;
    aspect-ratio: 1 / 1;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.7) 0%, transparent 55%),
        linear-gradient(180deg, #cfe5ff 0%, #95c2f2 100%);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15), 0 0 0 4px rgba(255, 255, 255, 0.20);
}
.creator-profile-photo {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
    display: block;
}
.creator-profile-photo--init {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 70px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), #38c6f6);
}
.creator-profile-followers {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--green);
    color: #0a0a0f;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(214, 253, 112, 0.55);
    white-space: nowrap;
    z-index: 1;
}

.creator-profile-info { min-width: 0; }
.creator-profile-name {
    font-family: var(--font-display);
    font-size: 36px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 4px;
}
.creator-profile-handle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    margin-bottom: 14px;
}
.creator-profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.creator-profile-badges .pill {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
}
.creator-profile-badges .state-approved {
    background: rgba(255, 255, 255, 0.95);
    color: var(--ok);
    border-color: transparent;
}
.creator-profile-bio {
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    margin: 0 0 18px;
    max-width: 580px;
    line-height: 1.5;
}
.creator-profile-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}
.creator-profile-social {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    font-size: 13.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    padding-bottom: 1px;
    text-decoration: none;
}
.creator-profile-social:hover {
    color: #ffffff;
    border-bottom-color: var(--green);
    text-decoration: none;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 11px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #0a0a0f;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    backdrop-filter: blur(6px);
}
.rank-badge .rank-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--rc, #cd8a4b);
    box-shadow: 0 0 6px var(--rc, #cd8a4b);
}

/* ─── Platform filter pills (under Audience Authenticity title) ─────────── */
.platform-filter {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px;
    background: var(--bg-elev-2);
    border-radius: 999px;
    margin-top: 14px;
}
.platform-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: transparent;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.platform-pill svg { flex-shrink: 0; }
.platform-pill:hover { color: var(--fg-strong); }
.platform-pill.is-active {
    background: #ffffff;
    color: var(--fg-strong);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.platform-pill--instagram.is-active { color: #dc2743; }
.platform-pill--tiktok.is-active    { color: #0a0a0f; }
.platform-pill--youtube.is-active   { color: #ff0000; }
.platform-pill--facebook.is-active  { color: #1877f2; }
.platform-pill--twitter.is-active   { color: #0a0a0f; }
.platform-pill--linkedin.is-active  { color: #0a66c2; }

/* ─── Analytics: audience authenticity ──────────────────────────────────── */
.auth-quality-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 16px;
    margin-bottom: 28px;
}
.auth-score-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.auth-score-circle {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}
.auth-score-num {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 800;
    color: var(--fg-strong);   /* always dark, max contrast on white */
    letter-spacing: -0.02em;
    line-height: 1;
}
.auth-score-info { flex: 1; min-width: 0; }
.auth-score-label {
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.auth-score-tag {
    color: var(--sc, var(--fg-strong));   /* darker variant for legibility */
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}
.auth-score-help { color: var(--muted); font-size: 12.5px; line-height: 1.4; }

.auth-breakdown {
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.auth-breakdown-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
}
.auth-breakdown-title {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--fg-strong);
    margin: 0;
}
.auth-breakdown-total {
    color: var(--muted);
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
}
.auth-breakdown-total strong {
    color: var(--fg-strong);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    margin-right: 2px;
}
.auth-bar {
    display: flex;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--bg-elev-2);
    margin-bottom: 14px;
}
.auth-bar-seg { height: 100%; transition: filter 0.15s; }
.auth-bar-seg:hover { filter: brightness(1.1); }
.auth-bar-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 18px;
    font-size: 12.5px;
    color: var(--fg);
}
.auth-bar-legend li {
    display: flex;
    align-items: center;
    gap: 6px;
}
.auth-bar-legend li .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.auth-bar-legend li strong {
    margin-left: auto;
    color: var(--fg-strong);
    font-weight: 700;
}

/* ─── Tandemio Score™ component breakdown ──────────────────────────────── */
.score-parts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.score-parts li {
    display: grid;
    grid-template-columns: 1fr 100px 60px;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
}
.score-part-label { color: var(--fg); font-weight: 500; }
.score-part-track {
    height: 8px;
    background: var(--bg-elev-2);
    border-radius: 999px;
    overflow: hidden;
}
.score-part-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--accent));
    border-radius: 999px;
    transition: width 0.4s;
}
.score-part-val {
    color: var(--muted);
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.score-part-val strong { color: var(--fg-strong); font-weight: 700; }

/* Confidence indicator pill */
.confidence-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--cc, var(--line-strong));
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--cc, var(--muted));
}
.confidence-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cc, var(--muted));
    box-shadow: 0 0 6px var(--cc, var(--muted));
}

.score-confidence-note {
    margin: 16px 0 0;
    padding: 12px 14px;
    background: rgba(245, 185, 85, 0.08);
    border: 1px solid rgba(245, 185, 85, 0.25);
    border-radius: var(--radius-sm);
    color: var(--fg);
    font-size: 12.5px;
    line-height: 1.5;
}
.score-confidence-note strong { color: var(--fg-strong); font-weight: 600; }

/* "claimed" badge for self-reported social accounts */
.social-claimed {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    background: var(--bg-elev-2);
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ─── Demographics ──────────────────────────────────────────────────────── */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}
.demo-block {
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.demo-block h4 {
    font-family: var(--font-display);
    font-size: 13.5px;
    color: var(--fg-strong);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.demo-bars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.demo-bars li {
    display: grid;
    grid-template-columns: 60px 1fr 38px;
    gap: 10px;
    align-items: center;
    font-size: 12.5px;
}
.demo-bars-label { color: var(--fg); font-weight: 500; }
.demo-bars-track {
    height: 8px;
    background: var(--bg-elev-2);
    border-radius: 999px;
    overflow: hidden;
}
.demo-bars-fill { display: block; height: 100%; border-radius: 999px; transition: width 0.4s; }
.demo-bars-pct { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

/* ─── Content category pills ────────────────────────────────────────────── */
.cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.cat-pill {
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--accent-soft), rgba(214, 253, 112, 0.18));
    color: var(--accent-2);
    font-weight: 600;
    font-size: 12.5px;
    border-radius: 999px;
    border: 1px solid var(--accent-border);
}

/* ─── Trend bars (monthly clicks sparkline-ish) ─────────────────────────── */
.trend-bars {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    padding: 24px 24px 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 28px;
    height: 200px;
}
.trend-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
}
.trend-bar-fill {
    width: 100%;
    max-width: 56px;
    background: linear-gradient(180deg, var(--accent), #38c6f6);
    border-radius: 8px 8px 0 0;
    min-height: 4px;
    transition: filter 0.15s;
}
.trend-bar-col:hover .trend-bar-fill { filter: brightness(1.1); }
.trend-bar-num {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--fg-strong);
}
.trend-bar-month {
    color: var(--muted);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
    .auth-quality-grid { grid-template-columns: 1fr; }
    .auth-score-card { flex-direction: column; text-align: center; }
    .demo-bars li { grid-template-columns: 50px 1fr 36px; }
}

/* ─── Bio card (creator's "About" section) ──────────────────────────────── */
.bio-card {
    position: relative;
    padding: 22px 26px 22px 70px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fbff 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 28px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.bio-card-quote {
    position: absolute;
    top: 22px; left: 24px;
    color: var(--green-dark);
    opacity: 0.65;
}
.bio-text {
    color: var(--fg);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* Social tiles grid — branded per platform */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin: 0 0 28px;
}
.social-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.social-tile:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.18);
}
.social-tile-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
}
/* Per-platform brand backgrounds */
.social-tile--instagram .social-tile-icon {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.social-tile--instagram:hover { border-color: #dc2743; }

.social-tile--tiktok .social-tile-icon {
    background: #0a0a0f;
    color: #ffffff;
    position: relative;
}
.social-tile--tiktok:hover { border-color: #ff0050; }

.social-tile--youtube .social-tile-icon { background: #ff0000; }
.social-tile--youtube:hover { border-color: #ff0000; }

.social-tile--facebook .social-tile-icon { background: #1877f2; }
.social-tile--facebook:hover { border-color: #1877f2; }

.social-tile--twitter .social-tile-icon { background: #0a0a0f; }
.social-tile--twitter:hover { border-color: #0a0a0f; }

.social-tile--linkedin .social-tile-icon { background: #0a66c2; }
.social-tile--linkedin:hover { border-color: #0a66c2; }

.social-tile-body { flex: 1; min-width: 0; }
.social-tile-platform {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--fg-strong);
    font-size: 13px;
}
.social-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
}
.social-tile-handle {
    color: var(--muted);
    font-size: 13px;
    margin-top: 1px;
}
.social-tile-followers {
    color: var(--fg-strong);
    font-size: 12.5px;
    font-weight: 700;
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
    .creator-profile-hero-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 20px;
        text-align: center;
        justify-items: center;
    }
    .creator-profile-photo-wrap { width: 180px; }
    .creator-profile-name { font-size: 28px; }
    .creator-profile-badges { justify-content: center; }
    .creator-profile-actions { justify-content: center; }
}

/* ─── Creator card (marketing-inspired with lime followers badge) ───────── */
.creator-card {
    flex: 0 0 240px;
    scroll-snap-align: start;
    position: relative;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}
.creator-card:hover {
    transform: translateY(-4px);
    border-color: rgba(36, 83, 255, 0.30);
    box-shadow: 0 18px 36px -14px rgba(36, 83, 255, 0.28);
    text-decoration: none;
    color: inherit;
}
.creator-card-rank {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #0a0a0f;
    color: var(--green);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    letter-spacing: 0.02em;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(10, 10, 15, 0.18);
}
.creator-card-photo-wrap {
    position: relative;
    width: 100%;
    margin-top: 4px;
    /* Sky blue gradient framing — echoes marketing hero photo cards */
    background:
        radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.7) 0%, transparent 55%),
        linear-gradient(180deg, #cfe5ff 0%, #95c2f2 100%);
    border-radius: 14px;
    padding: 14px 14px 50px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}
.creator-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
    display: block;
    position: absolute;
    inset: 0;
}
.creator-card-photo--init {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), #38c6f6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    border-radius: 10px;
}
.creator-card-followers {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--green);
    color: #0a0a0f;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(214, 253, 112, 0.55);
    white-space: nowrap;
    z-index: 1;
}
.creator-card-followers svg {
    flex-shrink: 0;
    color: #0a0a0f;
}
.creator-card-name {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--fg-strong);
    line-height: 1.2;
    margin-top: 4px;
}
.creator-card-handle {
    color: var(--muted);
    font-size: 12.5px;
    margin-top: -2px;
}
.creator-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.creator-card-stat {
    text-align: center;
}
.creator-card-stat-value {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--fg-strong);
    line-height: 1;
}
.creator-card-stat-label {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* ─── Creator rail (top influencers, horizontal scroll) ─────────────────── */
.creator-rail {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 4px 16px;     /* room for scroll bar + hover lift */
    margin: 0 -4px 32px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
}
.creator-rail::-webkit-scrollbar { height: 8px; }
.creator-rail::-webkit-scrollbar-track { background: transparent; }
.creator-rail::-webkit-scrollbar-thumb {
    background: var(--line-strong);
    border-radius: 999px;
}
.creator-rail::-webkit-scrollbar-thumb:hover { background: var(--muted-2); }

.creator-tile {
    flex: 0 0 220px;
    scroll-snap-align: start;
    position: relative;
    padding: 18px 18px 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}
.creator-tile:hover {
    transform: translateY(-2px);
    border-color: var(--accent-border);
    box-shadow: 0 12px 28px -10px rgba(36, 83, 255, 0.20);
}
.creator-tile-rank {
    position: absolute;
    top: 10px;
    left: 12px;
    background: linear-gradient(135deg, var(--accent), #38c6f6);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}
.creator-tile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--accent-soft), rgba(214, 253, 112, 0.20));
    margin-top: 4px;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9), 0 4px 12px rgba(36, 83, 255, 0.18);
}
.creator-tile-avatar--init {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
}
.creator-tile-name {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--fg-strong);
    margin-top: 2px;
    line-height: 1.2;
}
.creator-tile-handle {
    color: var(--muted);
    font-size: 12.5px;
    margin-top: -2px;
}
.creator-tile-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}
.creator-tile-stat {
    color: var(--muted);
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    padding: 0 4px;
}
.creator-tile-stat strong {
    color: var(--fg-strong);
    font-weight: 700;
}

/* ─── Campaign card with cover image ────────────────────────────────────── */
.app-card--with-cover {
    padding: 0;
    overflow: hidden;
}
.app-card--with-cover .app-card-title,
.app-card--with-cover .app-card-meta,
.app-card--with-cover .app-card-progress {
    padding-left: 18px;
    padding-right: 18px;
}
.app-card--with-cover .app-card-title { padding-top: 14px; }
.app-card--with-cover .app-card-meta:last-child { padding-bottom: 16px; }

.app-card-cover {
    position: relative;
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-elev-2);
}
.app-card-cover-overlay {
    position: absolute !important;
    inset: 0 !important;
    padding: 12px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(0,0,0,0.35) 100%) !important;
}
.app-card-cover-overlay .pill,
.app-card-cover-overlay .state {
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(6px);
    border-color: rgba(255, 255, 255, 0.95);
}

/* ─── Campaign card progress bar ────────────────────────────────────────── */
.app-card-progress {
    width: 100%;
    height: 4px;
    background: var(--bg-elev-2);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 6px;
}
.app-card-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #38c6f6);
    border-radius: 999px;
    transition: width 0.4s;
}

/* ─── Section heads ─────────────────────────────────────────────────────── */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 32px 0 14px;
}
.section-head h2 { margin: 0; }

/* ─── App cards (applications grid) ─────────────────────────────────────── */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin: 0 0 28px;
}
.app-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.app-card:hover {
    border-color: var(--accent-border);
    text-decoration: none;
    color: inherit;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -10px rgba(36, 83, 255, 0.22);
}
.app-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.app-card-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--fg-strong);
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.app-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}
.app-card-meta small { color: var(--muted-2); }
.app-card-summary {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    margin: -4px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.app-card--with-cover .app-card-summary { padding: 0 18px; }
.app-card-code {
    font-size: 11.5px;
    padding: 2px 6px;
}

/* ─── Friendly empty state ──────────────────────────────────────────────── */
.empty-friendly {
    padding: 60px 24px;
    background: linear-gradient(160deg, #ffffff 0%, #f9f9fa 100%);
    border: 1px solid var(--line);
    text-align: center;
}
.empty-friendly .empty-illust {
    font-size: 56px;
    margin-bottom: 12px;
    line-height: 1;
}
.empty-friendly h3 {
    font-family: var(--font-display);
    font-size: 20px;
    margin: 0 0 6px;
    color: var(--fg-strong);
}
.empty-friendly p {
    color: var(--muted);
    max-width: 400px;
    margin: 0 auto 20px;
}
.empty-friendly .btn {
    display: inline-block;
    width: auto;
}

/* Mobile adjustments for hero strip */
@media (max-width: 820px) {
    .hero-strip {
        grid-template-columns: 1fr;
        padding: 24px 22px;
    }
    .hero-strip-card { order: 2; }
    .hero-title { font-size: 24px; }
    .hero-strip-card-value { font-size: 26px; }
}

/* =============================================================================
   AUTH SPLIT LAYOUT — login / register / forgot / reset
   Inspired by Dolvero structure, executed in Tandemio palette.
   ============================================================================= */

body.auth-body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--fg);
    background: var(--bg);
    display: flex;
    flex-direction: column;
}

.auth-bg-gradient {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 18% 12%, rgba(124, 58, 237, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 55% 45% at 85% 88%, rgba(214, 253, 112, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 90% 70% at 50% 50%, rgba(249, 249, 250, 0.0) 0%, transparent 80%),
        var(--bg);
    animation: authGradient 24s ease-in-out infinite alternate;
}
@keyframes authGradient {
    0%   { background-position: 0% 0%, 100% 100%, 50% 50%, 0 0; }
    100% { background-position: 12% 8%, 88% 92%, 55% 45%, 0 0; }
}
.auth-bg-grid {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 75%);
            mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 75%);
}
.auth-bg-particles { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.auth-bg-particles .particle {
    position: absolute;
    width: 2px; height: 2px;
    background: rgba(124, 58, 237, 0.5);
    border-radius: 50%;
    animation: authParticle linear infinite;
}
.auth-bg-particles .particle:nth-child(1) { left:10%; top:20%; animation-duration:18s; animation-delay:0s; width:3px; height:3px; opacity:.45 }
.auth-bg-particles .particle:nth-child(2) { left:25%; top:60%; animation-duration:22s; animation-delay:-3s; opacity:.30 }
.auth-bg-particles .particle:nth-child(3) { left:45%; top:35%; animation-duration:25s; animation-delay:-7s; width:2.5px; height:2.5px; opacity:.50 }
.auth-bg-particles .particle:nth-child(4) { left:65%; top:75%; animation-duration:20s; animation-delay:-5s; opacity:.25; background: rgba(214,253,112,.55) }
.auth-bg-particles .particle:nth-child(5) { left:80%; top:15%; animation-duration:28s; animation-delay:-10s; width:3px; height:3px; opacity:.35 }
.auth-bg-particles .particle:nth-child(6) { left:15%; top:80%; animation-duration:24s; animation-delay:-2s; opacity:.20 }
.auth-bg-particles .particle:nth-child(7) { left:55%; top:10%; animation-duration:19s; animation-delay:-8s; opacity:.40 }
.auth-bg-particles .particle:nth-child(8) { left:90%; top:50%; animation-duration:23s; animation-delay:-4s; width:2px; height:2px; opacity:.30; background: rgba(214,253,112,.45) }
.auth-bg-particles .particle:nth-child(9) { left:35%; top:90%; animation-duration:26s; animation-delay:-6s; opacity:.20 }
.auth-bg-particles .particle:nth-child(10){ left:70%; top:40%; animation-duration:21s; animation-delay:-9s; opacity:.35 }
@keyframes authParticle {
    0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(20px) scale(0.5); opacity: 0; }
}

.auth-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: stretch;
    width: 100%;
    max-width: 1080px;
    min-height: 640px;
    margin: 6vh auto 4vh;
    box-shadow: 0 25px 60px -20px rgba(0, 0, 0, 0.25), 0 12px 24px -8px rgba(0, 0, 0, 0.10);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
}

/* Left: branding panel — photo + diagonal scrim so the subject stays visible */
.auth-brand-panel {
    position: relative;
    padding: 48px 44px;
    color: #ffffff;
    overflow: hidden;
    height: 100%;
    min-height: inherit;
    isolation: isolate;
    background: #1a1432;
}
/* Photo background — full-bleed via ::before so we can control crop + opacity */
.auth-brand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url('/assets/auth-hero.png');
    background-size: cover;
    /* Push composition right so the smiling subject stays visible inside the panel */
    background-position: 78% 35%;
    background-repeat: no-repeat;
}
/* Diagonal scrim — darkens only the upper-left text zone, lets the sky + subject breathe */
.auth-brand-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(115deg,
            rgba(15, 10, 31, 0.80) 0%,
            rgba(15, 10, 31, 0.55) 28%,
            rgba(15, 10, 31, 0.20) 52%,
            transparent 72%),
        /* Subtle Tandemio purple wash blended through the sky */
        linear-gradient(160deg, rgba(124, 58, 237, 0.18) 0%, transparent 60%),
        /* Soft bottom haze — keeps features-list area legible */
        linear-gradient(to top, rgba(10, 10, 15, 0.55) 0%, transparent 30%);
}
.auth-corner {
    position: absolute;
    width: 120px; height: 120px;
    pointer-events: none;
}
.auth-corner--tl {
    top: 0; left: 0;
    border-top: 2px solid rgba(214, 253, 112, 0.6);
    border-left: 2px solid rgba(214, 253, 112, 0.6);
    border-top-left-radius: 22px;
    -webkit-mask-image: linear-gradient(135deg, black 0%, transparent 70%);
            mask-image: linear-gradient(135deg, black 0%, transparent 70%);
}
.auth-corner--br {
    bottom: 0; right: 0;
    border-bottom: 2px solid rgba(124, 58, 237, 0.55);
    border-right: 2px solid rgba(124, 58, 237, 0.55);
    border-bottom-right-radius: 22px;
    -webkit-mask-image: linear-gradient(-45deg, black 0%, transparent 70%);
            mask-image: linear-gradient(-45deg, black 0%, transparent 70%);
}
.auth-brand-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.auth-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 28px;
}
.auth-logo:hover { text-decoration: none; }
.auth-logo img {
    display: block;
    height: 30px;
    width: auto;
    /* invert dark wordmark to white for visibility on the photo */
    filter: brightness(0) invert(1);
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(10, 10, 15, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    color: #d6fd70;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 24px;
}
.auth-badge-dot {
    width: 7px; height: 7px;
    background: #d6fd70;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(214, 253, 112, 0.85);
    animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.6; transform: scale(0.85); }
}

.auth-headline {
    font-family: var(--font-display);
    font-size: 36px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 14px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.auth-headline-accent { color: #d6fd70; }

.auth-sub {
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 32px;
    max-width: 380px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.40);
}

.auth-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 32px;
}
.auth-metric {
    padding: 14px 16px;
    background: rgba(10, 10, 15, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    color: #ffffff;
}
.auth-metric-value {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin-bottom: 2px;
}
.auth-metric-value .accent { color: #d6fd70; }
.auth-metric-label {
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 500;
}

.auth-features {
    list-style: none;
    margin: auto 0 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13.5px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
.auth-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
}
.auth-feature-bullet {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #d6fd70;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(214, 253, 112, 0.6);
}

/* Right: form panel — clean white with a whisper of brand color */
.auth-form-panel {
    position: relative;
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(124, 58, 237, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 0% 100%, rgba(214, 253, 112, 0.05) 0%, transparent 60%),
        #ffffff;
}
.auth-form-panel .form-eyebrow {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}
.auth-form-panel h1 {
    font-family: var(--font-display);
    font-size: 32px;
    line-height: 1.1;
    margin: 0 0 8px;
    color: var(--fg-strong);
    letter-spacing: -0.02em;
}
.auth-form-panel > p {
    color: var(--muted);
    font-size: 14.5px;
    margin: 0 0 28px;
}
.auth-form-panel form { margin: 0; }
.auth-form-panel .btn {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 22px;
    font-size: 14.5px;
}
.auth-form-panel small {
    display: block;
    margin-top: 22px;
    color: var(--muted);
    font-size: 13px;
}
.auth-form-panel small a { font-weight: 600; }

.auth-foot {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--muted-2);
    font-size: 12px;
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.auth-foot a { color: var(--muted); }
.auth-foot a:hover { color: var(--fg-strong); }

/* ─── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
        margin: 16px;
        max-width: 480px;
    }
    .auth-brand-panel {
        padding: 36px 28px 28px;
    }
    .auth-headline { font-size: 28px; }
    .auth-metrics { grid-template-columns: 1fr 1fr; }
    .auth-features { display: none; }
    .auth-form-panel { padding: 36px 28px; }
}

@media (max-width: 720px) {
    .topbar { padding: 12px 16px; gap: 12px; flex-wrap: wrap; }
    .topnav { order: 3; flex-basis: 100%; overflow-x: auto; }
    .wrap-wide { padding: 0 16px; margin: 16px auto 60px; }
    .wrap-narrow { margin: 4vh 16px; padding: 24px; }
    h1 { font-size: 22px; }
    .kpi-value { font-size: 22px; }
    .data-table { font-size: 13px; }
    .data-table th, .data-table td { padding: 10px 8px; }
    .auth-headline { font-size: 24px; }
}

/* ============================================================
   Creators directory — Aeline marketing vcard pattern
   Pillow-in-frame: outer thick grey-100 frame, inner pillow sections
   Typography: Plus Jakarta Sans 500, letter-spacing -0.04em
   ============================================================ */

.creators-page { max-width: 1280px; margin: 0 auto; }

/* Hero — Aeline display style with color flourish */
.creators-hero {
    margin: 8px 0 28px;
    padding: 0 0 0;
    position: relative;
}
.creators-hero::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 30px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--green) 0%, transparent 70%);
    opacity: 0.4;
    pointer-events: none;
    filter: blur(14px);
}
.creators-hero-title {
    margin: 0;
    font-family: var(--font-display, "Plus Jakarta Sans", system-ui);
    font-size: 56px;
    font-weight: 500;
    letter-spacing: -0.06em;
    line-height: 1;
    color: var(--fg-strong);
    position: relative;
}
.creators-hero-title-fade {
    background: linear-gradient(110deg, #131313 0%, #131313 50%, #7c3aed 80%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.creators-hero-sub {
    margin: 12px 0 0;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: rgba(19,19,19,0.5);
}

/* Filterbar — clean horizontal */
.creators-filterbar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 0 14px;
}
.creators-search-wrap {
    position: relative;
    flex: 1 1 320px;
    min-width: 240px;
}
.creators-search-wrap input {
    width: 100%;
    height: 46px;
    padding: 0 42px 0 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: var(--fg-strong);
    transition: border-color .15s, box-shadow .15s;
}
.creators-search-wrap input::placeholder { color: var(--muted-2); font-weight: 400; }
.creators-search-wrap input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.creators-search-icon {
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}
.creators-search-clear {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(0,0,0,0.06);
    color: var(--fg-strong);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    font-size: 16px; line-height: 1;
    transition: background .12s;
}
.creators-search-clear:hover { background: var(--accent-soft); color: var(--accent); }

.creators-filterbar-selects {
    display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.creators-select {
    height: 46px;
    padding: 0 36px 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff
        url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23131313' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
        no-repeat right 14px center;
    appearance: none;
    -webkit-appearance: none;
    font-size: 13.5px;
    color: var(--fg-strong);
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s;
}
.creators-select:hover { border-color: var(--fg-strong); }
.creators-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.creators-reset {
    height: 46px;
    padding: 0 16px;
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(110deg, #fef3c7 0%, #fce7f3 100%);
    color: #9333ea;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: all .15s ease;
    box-shadow: 0 0 0 1px rgba(124,58,237,0.1);
}
.creators-reset:hover {
    background: linear-gradient(110deg, #fde68a 0%, #fbcfe8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124,58,237,0.15);
}

/* Chip rows */
.creators-chiprow {
    display: flex;
    gap: 7px;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 0 10px;
}
.creators-chiprow--secondary {
    margin: 0 0 24px;
    padding-top: 4px;
    border-top: 1px dashed var(--line);
    padding-top: 14px;
}
.creators-chiprow-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted-2);
    padding-right: 4px;
}
.creators-chiprow-divider {
    width: 1px; height: 22px;
    background: var(--line);
    margin: 0 6px;
}

/* Pill chips — marketing aesthetic */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--fg);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .12s ease;
    line-height: 1;
    white-space: nowrap;
}
.chip:hover {
    border-color: var(--fg-strong);
    color: var(--fg-strong);
    transform: translateY(-1px);
}
.chip.is-active {
    background: linear-gradient(110deg, #7c3aed 0%, #6d28d9 100%);
    border-color: #6d28d9;
    color: #fff;
    box-shadow: 0 2px 8px rgba(124,58,237,0.3);
}
.chip.is-active:hover {
    background: linear-gradient(110deg, #6d28d9 0%, #5b21b6 100%);
    border-color: #5b21b6;
}
.chip--sm { padding: 6px 11px; font-size: 12px; }
.chip-count {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--muted-2);
    background: rgba(0,0,0,0.05);
    padding: 2px 7px;
    border-radius: 999px;
    min-width: 18px;
    text-align: center;
}
.chip.is-active .chip-count { background: rgba(255,255,255,0.18); color: #fff; }
.chip-icon { display: inline-flex; align-items: center; }
.chip-flag { font-size: 14px; line-height: 1; }
.chip--instagram .chip-icon { color: #E1306C; }
.chip--tiktok .chip-icon    { color: var(--fg-strong); }
.chip--youtube .chip-icon   { color: #FF0000; }
.chip--facebook .chip-icon  { color: #1877F2; }
.chip--twitter .chip-icon   { color: var(--fg-strong); }
.chip--linkedin .chip-icon  { color: #0A66C2; }
.chip.is-active .chip-icon  { color: #fff; }

/* Creator vcard grid — pillow-in-frame, marketing aesthetic */
.vcard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
    margin: 8px 0 40px;
}

/* Outer card — thick grey-100 frame, multi-layered shadow */
.vcard {
    --tier: #94a3b8;
    --frame: #f2f2f2;
    display: block;
    background: var(--frame);
    border-radius: 18px;
    padding: 6px;
    text-decoration: none;
    color: inherit;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.6) inset,
        0 6px 13px rgba(0,0,0,0.04),
        0 14px 24px rgba(0,0,0,0.03);
    transition: transform .18s ease, box-shadow .18s ease;
}
.vcard:hover {
    transform: translateY(-3px);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.6) inset,
        0 8px 18px rgba(0,0,0,0.07),
        0 24px 32px rgba(0,0,0,0.05),
        0 40px 40px rgba(0,0,0,0.03);
}

/* Inner — Plus Jakarta Sans, medium weight */
.vcard_inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    font-family: "Plus Jakarta Sans", -apple-system, system-ui, sans-serif;
    font-weight: 500;
    color: var(--fg-strong);
    letter-spacing: -0.02em;
}

/* Pillow section — white, rounded, subtle inset */
.vcard_section {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
}

/* HEAD section: avatar + name + meta */
.vcard_head {
    display: flex;
    gap: 12px;
    align-items: center;
}
.vcard_avatar-wrap {
    flex-shrink: 0;
}
.vcard_avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--frame);
    box-shadow: 0 0 0 2px var(--tier), 0 0 0 4px #fff;
    margin: 2px;
}
.vcard_avatar--init {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--fg-strong);
}
.vcard_id {
    flex: 1;
    min-width: 0;
}
.vcard_name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.15;
    color: var(--fg-strong);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vcard_handle {
    margin: 2px 0 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: rgba(19,19,19,0.5);
    line-height: 1.2;
}
.vcard_meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.vcard_flag {
    font-size: 18px;
    line-height: 1;
}
.vcard_kyc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--green);
    border-radius: 50%;
    color: var(--fg-strong);
}
.vcard_star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(241,238,70,0.5));
    animation: vcard_star_twinkle 3s ease-in-out infinite;
}
@keyframes vcard_star_twinkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.12) rotate(8deg); }
}

/* FOLLOWERS section — big number with progress bar (vcard_progress) */
.vcard_followers .vcard_text-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}
.vcard_text-label {
    margin: 0;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: rgba(19,19,19,0.55);
    line-height: 1.2;
    text-transform: uppercase;
}
.vcard_tier-inline {
    color: var(--tier);
    font-weight: 600;
    letter-spacing: 0.04em;
}
.vcard_amount-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.vcard_text-amount {
    margin: 0;
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.06em;
    line-height: 1;
    color: var(--fg-strong);
}
.vcard_text-amount-muted {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: rgba(19,19,19,0.35);
}
.vcard_progress-bg {
    width: 100%;
    height: 8px;
    background: var(--frame);
    border-radius: 999px;
    overflow: hidden;
}
.vcard_progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #7c3aed 0%, #ec4899 50%, #f5c451 100%);
    transition: width .4s ease;
    position: relative;
    overflow: hidden;
}
.vcard_progress-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: vcard_progress_shimmer 2.4s linear infinite;
}
@keyframes vcard_progress_shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* PLATFORMS list — alternating grey rows */
.vcard_section-list {
    background: #fff;
    border-radius: 12px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.vcard_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: var(--frame);
    border-radius: 8px;
    padding: 8px 10px 8px 10px;
    transition: background .12s;
}
.vcard_row--empty {
    background: transparent;
    justify-content: center;
}
.vcard_row-left {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex: 1;
}
.vcard_row-icon {
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.vcard_row--instagram .vcard_row-icon svg { color: #E1306C; }
.vcard_row--tiktok    .vcard_row-icon svg { color: var(--fg-strong); }
.vcard_row--youtube   .vcard_row-icon svg { color: #FF0000; }
.vcard_row--facebook  .vcard_row-icon svg { color: #1877F2; }
.vcard_row--twitter   .vcard_row-icon svg { color: var(--fg-strong); }
.vcard_row--linkedin  .vcard_row-icon svg { color: #0A66C2; }
.vcard_row-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.vcard_row-info .vcard_text-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--fg-strong);
    text-transform: none;
    letter-spacing: -0.02em;
}
.vcard_text-date {
    margin: 0;
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: rgba(19,19,19,0.4);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 130px;
}
.vcard_text-price {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--fg-strong);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Categories — color-coded pills, semantic accent per topic */
.vcard_cats {
    padding: 10px 14px 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}
.vcard_cat {
    --cat-fg: #6366f1;
    --cat-bg: #e0e7ff;
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    background: var(--cat-bg);
    color: var(--cat-fg);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.01em;
    border-radius: 6px;
    line-height: 1.3;
    text-transform: lowercase;
    transition: transform .12s ease;
}
.vcard:hover .vcard_cat {
    transform: translateY(-1px);
}
.vcard_cat--more {
    background: transparent;
    color: rgba(19,19,19,0.4);
    border: 1px dashed rgba(19,19,19,0.2);
    font-style: italic;
}

/* CTA — minimal arrow link, dark on hover */
.vcard_cta {
    margin: 0;
    padding: 12px 14px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--fg-strong);
    transition: background .15s ease;
}
.vcard_cta-text {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.03em;
}
.vcard_cta-arrow {
    width: 28px;
    height: 28px;
    background: var(--frame);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, background .15s ease;
}
.vcard:hover .vcard_cta {
    background: var(--fg-strong);
    color: #fff;
}
.vcard:hover .vcard_cta-arrow {
    background: var(--green);
    color: var(--fg-strong);
    transform: translateX(2px);
}

@media (max-width: 720px) {
    .creators-hero-title { font-size: 38px; }
    .creators-search-wrap { flex: 1 1 100%; }
    .creators-filterbar-selects { flex: 1 1 100%; }
    .creators-select { flex: 1 1 calc(50% - 5px); }
    .vcard-grid { grid-template-columns: 1fr; gap: 14px; }
    .vcard_text-amount { font-size: 22px; }
}

/* ============================================================
   Campaign detail — marketing-aligned, format-themed accents
   ============================================================ */

.campaign-page { max-width: 1200px; margin: 0 auto; }

/* HERO — Tandemio dashboard blue gradient with subtle decorative pops */
.cdetail-hero {
    --acc: #7c3aed;
    --acc-soft: #ede9fe;
    --hero-bg: #1d4ed8;
    --hero-yellow: #F1EE46;
    --hero-lime:   #d6fd70;
    --hero-purple: #7c3aed;
    --hero-sky:    #38c6f6;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin: 8px 0 22px;
    background: linear-gradient(110deg, #2453ff 0%, #3b82f6 50%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 12px 32px rgba(36,83,255,0.18);
}
.cdetail-hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 88% 12%, rgba(214,253,112,0.22) 0%, transparent 35%),
        radial-gradient(ellipse at 12% 100%, rgba(241,238,70,0.16) 0%, transparent 45%),
        radial-gradient(circle at 60% 50%, rgba(255,255,255,0.08) 0%, transparent 55%);
    pointer-events: none;
}
.cdetail-hero-bg::after {
    content: "";
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.10) 1px, transparent 0);
    background-size: 18px 18px;
    mask-image: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, transparent 70%);
    -webkit-mask-image: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, transparent 70%);
    pointer-events: none;
}
.cdetail-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 32px 30px;
    align-items: center;
}
.cdetail-hero-grid:has(.cdetail-hero-thumb) {
    grid-template-columns: 1fr 280px;
}
.cdetail-hero-content {
    min-width: 0;
}
.cdetail-hero-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--hero-lime);
    text-transform: uppercase;
    margin-bottom: 14px;
    text-shadow: 0 0 24px rgba(214,253,112,0.5);
}

/* Polished cover thumbnail — pillow-in-frame, mirrors marketing bcard */
.cdetail-hero-thumb {
    justify-self: end;
    width: 100%;
    max-width: 280px;
}
.cdetail-hero-thumb-frame {
    background: transparent;
    border: 0;
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15,23,42,0.22);
    transition: transform .25s ease;
}
.cdetail-hero-thumb-frame:hover {
    transform: scale(1.02);
}
.cdetail-hero-thumb-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}
.cdetail-hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.cdetail-fmt-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px 6px 10px;
    background: #fff;
    color: #1d4ed8;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.25), 0 4px 12px rgba(0,0,0,0.12);
}
.cdetail-fmt-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cdetail-fmt-icon svg { display: block; }
.cdetail-state {
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid rgba(255,255,255,0.18);
}
.cdetail-state.state-live      { background: var(--hero-lime); color: var(--hero-bg); border-color: var(--hero-lime); animation: cdetail_pulse 2s ease-in-out infinite; }
.cdetail-state.state-draft     { background: var(--hero-yellow); color: var(--hero-bg); border-color: var(--hero-yellow); }
.cdetail-state.state-paused    { background: rgba(244,114,182,0.28); color: #fbcfe8; border-color: rgba(244,114,182,0.4); }
.cdetail-state.state-completed { background: linear-gradient(110deg, #2453ff 0%, #3b82f6 100%); color: #fff; border-color: transparent; box-shadow: 0 0 0 2px rgba(36,83,255,0.18); }
.cdetail-state.state-archived  { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); }
.cdetail-state.state-pending_review { background: rgba(241,238,70,0.18); color: var(--hero-yellow); border-color: rgba(241,238,70,0.35); }
@keyframes cdetail_pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(214,253,112,0.55); }
    50%      { box-shadow: 0 0 0 8px rgba(214,253,112,0); }
}
.cdetail-code {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 11.5px;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.08);
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: -0.01em;
    border: 1px solid rgba(255,255,255,0.1);
}
.cdetail-hero-title {
    margin: 0;
    font-family: var(--font-display, "Plus Jakarta Sans", system-ui);
    font-size: 44px;
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.cdetail-hero-summary {
    margin: 12px 0 0;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: rgba(255,255,255,0.85);
    max-width: 70ch;
    text-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* REWARD CALLOUT — vivid lime/yellow marketing palette */
.cdetail-reward {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    background:
        radial-gradient(circle at 90% 50%, rgba(241,238,70,0.35) 0%, transparent 55%),
        linear-gradient(110deg, #d6fd70 0%, #f1ee46 100%);
    border-radius: 20px;
    margin: 0 0 22px;
    position: relative;
    overflow: hidden;
}
.cdetail-reward::before {
    content: "";
    position: absolute;
    top: -30%; right: -10%;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 65%);
    pointer-events: none;
}
.cdetail-reward-icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    background: var(--hero-bg, #14141d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d6fd70;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(20,20,29,0.25), 0 0 0 3px rgba(20,20,29,0.08);
    position: relative;
    z-index: 1;
}
.cdetail-reward-icon svg { display: block; width: 26px; height: 26px; }
.cdetail-reward-body { flex: 1; min-width: 0; position: relative; z-index: 1; }
.cdetail-reward-eyebrow {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: rgba(20,20,29,0.6);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.cdetail-reward-text {
    font-family: var(--font-display, "Plus Jakarta Sans", system-ui);
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.04em;
    color: var(--hero-bg, #14141d);
    line-height: 1.25;
}
.cdetail-reward-text strong {
    font-weight: 700;
    color: var(--hero-bg, #14141d);
}
.cdetail-reward-fee {
    display: block;
    margin-top: 6px;
    color: rgba(20,20,29,0.65);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* KPI TILES */
.cdetail-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 0 0 28px;
}
.cdetail-kpi {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: border-color .15s, transform .15s;
}
.cdetail-kpi:hover {
    border-color: var(--acc, var(--accent));
    transform: translateY(-1px);
}
.cdetail-kpi--budget { grid-column: span 2; }
@media (max-width: 720px) { .cdetail-kpi--budget { grid-column: auto; } }

.cdetail-kpi-icon {
    width: 40px; height: 40px;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .15s ease;
}
.cdetail-kpi:hover .cdetail-kpi-icon {
    transform: rotate(-6deg) scale(1.05);
}
.cdetail-kpi--budget .cdetail-kpi-icon {
    background: linear-gradient(135deg, #d6fd70 0%, #f1ee46 100%);
    color: #14141d;
    box-shadow: 0 0 0 3px rgba(214,253,112,0.25);
}
.cdetail-kpi-body { flex: 1; min-width: 0; }
.cdetail-kpi-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.cdetail-kpi-value {
    font-family: var(--font-display, "Plus Jakarta Sans", system-ui);
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.05em;
    color: var(--fg-strong);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.cdetail-kpi-progress {
    margin-top: 10px;
    width: 100%;
    height: 8px;
    background: var(--bg-elev-2);
    border-radius: 999px;
    overflow: hidden;
}
.cdetail-kpi-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #7c3aed 0%, #ec4899 50%, #f5c451 100%);
    transition: width .5s ease;
    position: relative;
    overflow: hidden;
}
.cdetail-kpi-progress-bar::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: vcard_progress_shimmer 2.4s linear infinite;
}
.cdetail-kpi-sub {
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: -0.01em;
}

/* SECTION */
.cdetail-section { margin: 0 0 30px; }
.cdetail-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 14px;
}
.cdetail-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--accent);
    text-transform: uppercase;
    background: linear-gradient(110deg, #7c3aed 0%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.cdetail-section-title {
    margin: 0;
    font-family: var(--font-display, "Plus Jakarta Sans", system-ui);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.04em;
    color: var(--fg-strong);
}
.cdetail-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.cdetail-pill svg { display: block; }
.cdetail-pill--pending  { background: linear-gradient(110deg, #f1ee46 0%, #d6fd70 100%); color: #14141d; }
.cdetail-pill--accepted { background: linear-gradient(110deg, #7c3aed 0%, #ec4899 100%); color: #fff; }

/* BRIEF */
.cdetail-brief-card {
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #f1ee46 100%);
    border-radius: 18px;
    padding: 4px;
    position: relative;
}
.cdetail-brief-card .cdetail-brief-quote {
    position: absolute;
    top: 22px; left: 28px;
    color: #7c3aed;
    opacity: 0.16;
    pointer-events: none;
    z-index: 2;
}
.cdetail-brief-text {
    background: #fff;
    border-radius: 15px;
    padding: 28px 28px 24px;
    margin: 0;
    font-family: "Plus Jakarta Sans", system-ui;
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: -0.01em;
    color: var(--fg);
    white-space: pre-wrap;
    word-wrap: break-word;
    position: relative;
    z-index: 1;
}

/* ACTIONS */
.cdetail-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    padding: 16px;
    background: #f2f2f2;
    border-radius: 14px;
}
.cdetail-form { display: inline; margin: 0; }
.cdetail-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: #fff;
    color: var(--fg-strong);
    font-family: "Plus Jakarta Sans", system-ui;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -0.02em;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s ease;
}
.cdetail-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.cdetail-btn--primary {
    background: linear-gradient(110deg, #d6fd70 0%, #f1ee46 100%);
    color: #14141d;
    box-shadow: 0 0 0 0 rgba(214,253,112,0.4);
}
.cdetail-btn--primary:hover {
    background: linear-gradient(110deg, #f1ee46 0%, #d6fd70 100%);
    box-shadow: 0 0 0 4px rgba(214,253,112,0.3), 0 6px 18px rgba(214,253,112,0.4);
}
.cdetail-btn--ghost {
    background: transparent;
    border: 1px solid var(--line-strong);
}
.cdetail-btn--ghost:hover {
    background: #fff;
    border-color: var(--fg-strong);
}

/* S2S code block */
.cdetail-s2s {
    background: #f2f2f2;
    border-radius: 14px;
    padding: 16px 18px;
}
.cdetail-code-block {
    background: var(--fg-strong);
    color: #d6fd70;
    padding: 18px;
    border-radius: 10px;
    margin: 8px 0 0;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 12.5px;
    line-height: 1.55;
    overflow-x: auto;
    white-space: pre;
}

/* APPLICATION CARD GRID */
.cdetail-app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}
.appcard { --tier: #94a3b8; }
.appcard-frame {
    background: #f2f2f2;
    border-radius: 18px;
    padding: 6px;
    box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 6px 13px rgba(0,0,0,0.04);
    transition: transform .15s, box-shadow .15s;
}
.appcard:hover .appcard-frame {
    transform: translateY(-2px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 10px 22px rgba(0,0,0,0.06);
}
.appcard-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: "Plus Jakarta Sans", system-ui;
}
.appcard-head {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
}
.appcard-avatar-wrap { flex-shrink: 0; }
.appcard-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-elev-2);
    box-shadow: 0 0 0 2px var(--tier), 0 0 0 4px #fff;
    margin: 2px;
}
.appcard-avatar--init {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.04em;
}
.appcard-id { flex: 1; min-width: 0; }
.appcard-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--fg-strong);
    text-decoration: none;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.appcard-name:hover { color: var(--accent); }
.appcard-handle {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
    letter-spacing: -0.02em;
}
.appcard-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.appcard-flag { font-size: 16px; line-height: 1; }
.appcard-state {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.appcard-state.state-applied,
.appcard-state.state-shortlisted { background: #fef3c7; color: #b45309; }
.appcard-state.state-accepted,
.appcard-state.state-completed   { background: #d1fae5; color: #15803d; }
.appcard-state.state-declined    { background: #fee2e2; color: #b91c1c; }

.appcard-pitch {
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--fg);
    letter-spacing: -0.01em;
}
.appcard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    background: #fff;
    border-radius: 12px;
    padding: 10px 6px;
}
.appcard-stat {
    text-align: center;
    padding: 4px;
}
.appcard-stat-num {
    font-family: var(--font-display, "Plus Jakarta Sans", system-ui);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--fg-strong);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.appcard-stat-lbl {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}
.appcard-tracking {
    background: #fff;
    border-radius: 12px;
    padding: 10px 14px;
}
.appcard-tracking-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--muted-2);
    text-transform: uppercase;
    margin-bottom: 6px;
}
.appcard-tracking-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.appcard-tracking-url {
    flex: 1;
    background: #f2f2f2;
    padding: 7px 10px;
    border-radius: 8px;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 11.5px;
    color: var(--fg-strong);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.appcard-copy {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    background: var(--fg-strong);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background .12s;
    flex-shrink: 0;
}
.appcard-copy:hover { background: var(--accent); }
.appcard-copy.is-copied { background: #15803d; }

.appcard-decide {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 6px;
    margin: 0;
}
.appcard-btn {
    padding: 11px 14px;
    border: none;
    border-radius: 10px;
    font-family: "Plus Jakarta Sans", system-ui;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: all .12s ease;
}
.appcard-btn--accept {
    background: linear-gradient(110deg, #d6fd70 0%, #f1ee46 100%);
    color: #14141d;
    box-shadow: 0 0 0 0 rgba(214,253,112,0.5);
    transition: box-shadow .2s, transform .12s;
}
.appcard-btn--accept:hover {
    box-shadow: 0 0 0 3px rgba(214,253,112,0.4), 0 4px 12px rgba(214,253,112,0.4);
    transform: translateY(-1px);
}
.appcard-btn--decline {
    background: #fff;
    color: var(--muted);
    border: 1px solid var(--line);
}
.appcard-btn--decline:hover {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fff5f5;
}

@media (max-width: 860px) {
    .cdetail-hero-grid:has(.cdetail-hero-thumb) {
        grid-template-columns: 1fr;
    }
    .cdetail-hero-thumb {
        max-width: 100%;
        justify-self: stretch;
    }
    .cdetail-hero-thumb-frame {
        transform: rotate(0deg);
        aspect-ratio: 16 / 9;
    }
}
@media (max-width: 720px) {
    .cdetail-hero-title { font-size: 32px; }
    .cdetail-hero-grid { padding: 22px 18px; }
    .cdetail-reward-text { font-size: 18px; }
    .cdetail-app-grid { grid-template-columns: 1fr; }
}

/* ─── Format pill variants (CPC / CPA / FIXED / BARTER) ──────────────── */
.pill--cpc      { background: rgba(36,83,255,0.10);  color: #2453ff; border-color: rgba(36,83,255,0.30); }
.pill--cpa      { background: rgba(124,58,237,0.10); color: #7c3aed; border-color: rgba(124,58,237,0.30); }
.pill--fixed    { background: rgba(214,253,112,0.30); color: #4d6b16; border-color: rgba(181,224,64,0.55); }
.pill--barter   { background: rgba(251,146,60,0.12); color: #c2410c; border-color: rgba(251,146,60,0.35); }

/* ─── State pill upgrades — vivid + dot for live ─────────────────────── */
.state {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.state-live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 0 currentColor;
    animation: state_pulse 1.6s cubic-bezier(0.4,0,0.6,1) infinite;
}
@keyframes state_pulse {
    0%   { box-shadow: 0 0 0 0 rgba(106,209,123,0.55); }
    70%  { box-shadow: 0 0 0 6px rgba(106,209,123,0); }
    100% { box-shadow: 0 0 0 0 rgba(106,209,123,0); }
}
.state-paused::before, .state-archived::before, .state-draft::before {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    background: currentColor; opacity: 0.5;
}


/* Onboarding: topnav hidden, push user-menu to the right */
body.is-onboarding .user-menu { margin-left: auto; }

/* === Application card — bio chips (gender / age / followers) === */
.appcard-bio-row{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px;align-items:center}
.appcard-bio-chip{display:inline-flex;align-items:center;gap:3px;padding:2px 8px;border-radius:99px;font-size:10.5px;font-weight:600;line-height:1.2;letter-spacing:-0.01em;background:#f5f6f8;color:#475569;border:1px solid #ececec}
.appcard-bio-chip--male{background:rgba(36,83,255,0.10);color:#2453ff;border-color:rgba(36,83,255,0.20)}
.appcard-bio-chip--female{background:rgba(244,63,94,0.10);color:#e11d48;border-color:rgba(244,63,94,0.20)}
.appcard-bio-chip--other{background:rgba(124,58,237,0.10);color:#7c3aed;border-color:rgba(124,58,237,0.20)}
.appcard-bio-chip--age{background:rgba(34,197,94,0.10);color:#16a34a;border-color:rgba(34,197,94,0.20)}
.appcard-bio-chip--followers{background:rgba(214,253,112,0.30);color:#3f6212;border-color:rgba(132,204,22,0.30)}

/* === Shared: creator card brand chip (used in browse + dashboard) === */
.cb-card-brand{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted)}
.cb-card-brand-avatar{width:22px;height:22px;border-radius:50%;flex-shrink:0;background:var(--bg-elev) center/cover no-repeat;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;color:var(--muted)}

/* Tier chips (BASIC/ADVANCED/PRO) — appcard bio row */
.appcard-bio-chip--tier-basic{background:rgba(148,163,184,0.14);color:#475569;border:1px solid rgba(148,163,184,0.30)}
.appcard-bio-chip--tier-advanced{background:rgba(36,83,255,0.10);color:#2453ff;border:1px solid rgba(36,83,255,0.22)}
.appcard-bio-chip--tier-pro{background:rgba(124,58,237,0.12);color:#7c3aed;border:1px solid rgba(124,58,237,0.25)}

/* === Mobile topbar fixes — Panel de creador overflowing on narrow screens === */
@media (max-width: 980px) {
    .brand-topbar { padding: 0 14px; gap: 10px; }
    .brand-topbar-title {
        font-size: 15px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
        flex: 1 1 0;
    }
    .brand-topbar-actions { gap: 8px; flex-shrink: 0; }
    .brand-topbar-bell { width: 36px; height: 36px; }
    .topbar-lang { padding: 6px 8px; }
    .topbar-profile { padding: 4px 4px 4px 6px; }
    .topbar-profile-avatar { width: 30px; height: 30px; font-size: 12px; }
}
@media (max-width: 520px) {
    .brand-topbar-title { display: none; }
    .brand-topbar { padding: 0 12px; gap: 6px; }
}

/* Topbar background fix on mobile — sidebar is off-screen so gradient must start at viewport 0 */
@media (max-width: 980px) {
    .brand-topbar {
        background-position: 0 0 !important;
        background-size: 100% 100% !important;
    }
}
