/* ==========================================================================
   HPL Creators - core stylesheet
   ========================================================================== */
:root {
    --bg: #faf8f4;
    --bg-soft: #f3f0e8;
    --panel: #ffffff;
    --panel-2: #f7f4ec;
    --line: #e6e1d3;
    --text: #1a1a1a;
    --muted: #6b6658;
    --primary: #b8922a;
    --primary-2: #d4af37;
    --accent: #b8922a;
    --ink: #000000;
    --navy: #1a1a1a;
    --navy-2: #3a3a3a;
    --ok: #16a34a;
    --warn: #d97706;
    --bad: #dc2626;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 18px 50px rgba(20, 16, 8, .08);
    --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

::selection { background: rgba(184, 146, 42, .25); color: #fff; }

* { box-sizing: border-box; }

html { color-scheme: light; }

html, body { margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

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

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }

p { margin: 0 0 1em; }

.container { width: min(1160px, 92%); margin: 0 auto; }
.narrow { width: min(720px, 92%); margin: 0 auto; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.filter-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filter-bar .input { flex: 1 1 180px; min-width: 0; }
@media (max-width: 620px) {
    .filter-bar .btn, .filter-bar .select { width: 100%; }
}
.grow { flex: 1; }
.hide { display: none !important; }

/* ------------------------------------------------------------------ buttons */
.btn {
    --btn-bg: var(--panel-2);
    --btn-fg: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .2s ease, opacity .2s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn.is-disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn--primary { --btn-bg: linear-gradient(135deg, var(--primary), var(--primary-2)); --btn-fg: var(--ink); border-color: transparent; box-shadow: 0 10px 30px rgba(212, 175, 55, .3); }
.btn--primary:hover { box-shadow: 0 14px 36px rgba(212, 175, 55, .42); }
.btn--accent { --btn-bg: linear-gradient(135deg, var(--navy-2), var(--navy)); --btn-fg: var(--primary-2); border-color: rgba(212,175,55,.45); }
.btn--ghost { --btn-bg: transparent; }
.btn--danger { --btn-bg: rgba(220,38,38,.10); --btn-fg: #991b1b; border-color: rgba(220,38,38,.4); }
.btn--ok { --btn-bg: rgba(22,163,74,.12); --btn-fg: #166534; border-color: rgba(22,163,74,.4); }
.btn--sm { padding: 7px 14px; font-size: .85rem; }
.btn--block { width: 100%; }

/* -------------------------------------------------------------------- nav */
.site-nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(250, 248, 244, .92);
    border-bottom: 1px solid var(--line);
}
.site-nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); letter-spacing: -.03em; }
.brand:hover { text-decoration: none; }
.brand__mark {
    width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: var(--ink); font-weight: 900; font-size: .95rem;
    box-shadow: 0 8px 20px rgba(212,175,55,.4);
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
@media (max-width: 820px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
        display: none; position: absolute; left: 4%; right: 4%; top: 76px;
        flex-direction: column; align-items: stretch; gap: 6px;
        background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
        padding: 16px; box-shadow: var(--shadow);
    }
    .nav-links.is-open { display: flex; }
    .nav-links a { padding: 10px 12px; border-radius: 10px; }
    .nav-links a:hover { background: var(--panel-2); }
}

/* -------------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 90px; text-align: center; }
.hero::before, .hero::after {
    content: ""; position: absolute; border-radius: 50%; filter: blur(100px); opacity: .5; z-index: 0;
}
.hero::before { width: 520px; height: 520px; background: #1b2f77; top: -200px; left: -140px; }
.hero::after { width: 460px; height: 460px; background: rgba(212,175,55,.5); bottom: -220px; right: -140px; }
.hero__grid { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero__content { max-width: 860px; }
.hero--short { padding: 88px 0 64px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(212,175,55,.12); border: 1px solid rgba(212,175,55,.45);
    color: var(--primary); padding: 6px 15px; border-radius: 999px;
    font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.7rem); margin: 20px 0 14px; }
.hero h1 .grad { background: linear-gradient(120deg, #7a5d12, #b8922a 55%, #9a7a15); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 40em; margin: 0 auto 1em; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.hero__proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; margin-top: 34px; color: var(--muted); font-size: .9rem; }
.hero__proof strong { display: block; color: var(--primary); font-size: 1.5rem; }

/* video frame */
.hero__media { width: min(1000px, 100%); margin: 52px auto 0; }
.video-frame {
    position: relative; border-radius: 22px; overflow: hidden;
    border: 1px solid rgba(212,175,55,.45); background: #000;
    box-shadow: 0 30px 80px rgba(2, 6, 20, .7), 0 0 0 6px rgba(212,175,55,.08);
    aspect-ratio: 16 / 9;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.video-frame__overlay {
    position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer;
    background: linear-gradient(180deg, rgba(5,8,20,.15), rgba(5,8,20,.75));
    transition: opacity .3s ease;
}
.video-frame__overlay.is-hidden { opacity: 0; pointer-events: none; }
.play-btn {
    width: 96px; height: 96px; border-radius: 50%; border: none; cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: var(--ink); display: grid; place-items: center;
    box-shadow: 0 16px 44px rgba(212,175,55,.55); animation: pulse 2.4s infinite;
}
.play-btn svg { margin-left: 7px; width: 34px; height: 34px; }
@keyframes pulse { 0%,100% { transform: scale(1);} 50% { transform: scale(1.06);} }
.video-badge {
    position: absolute; left: 16px; bottom: 16px; z-index: 2;
    background: rgba(7,11,24,.72); border: 1px solid var(--line); border-radius: 10px;
    padding: 8px 14px; font-size: .82rem; color:#fff; backdrop-filter: blur(8px);
}
.video-caption { margin-top: 12px; font-size: .85rem; color: var(--muted); text-align: center; }

/* tutorial video player + playlist */
.video-frame--tutorial { aspect-ratio: 16 / 9; }
.tutorial-empty {
    position: absolute; inset: 0; display: grid; place-content: center;
    text-align: center; padding: 24px; background: radial-gradient(120% 120% at 50% 0%, #efe6cf 0%, #faf8f4 65%);
}
.tutorial-empty__icon { font-size: 2.6rem; margin-bottom: 10px; }
.tutorial-empty h3 { margin: 0 0 6px; font-size: 1.2rem; }
.tutorial-empty p { margin: 0; font-size: .9rem; }
.tutorial-empty code { background: rgba(184,146,42,.12); padding: 2px 7px; border-radius: 6px; color: var(--primary); }
.tutorial-player { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .tutorial-player { grid-template-columns: 1fr; } }
.tutorial-playlist {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; position: sticky; top: 20px;
}
@media (max-width: 860px) { .tutorial-playlist { position: static; } }
.tutorial-playlist__head {
    padding: 16px 18px; border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.tutorial-playlist__head h3 { margin: 0; font-size: 1rem; }
.tutorial-list { list-style: none; margin: 0; padding: 8px; display: grid; gap: 4px; }
.tutorial-list li {
    display: flex; align-items: center; gap: 12px; padding: 12px;
    border-radius: 10px; cursor: pointer; border: 1px solid transparent;
    transition: background .15s ease, border-color .15s ease;
}
.tutorial-list li:hover { background: rgba(212,175,55,.08); }
.tutorial-list li.is-active { background: rgba(212,175,55,.14); border-color: rgba(212,175,55,.4); }
.tutorial-list li.is-locked { cursor: default; opacity: .6; }
.tutorial-list__num {
    flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center; font-size: .78rem; font-weight: 800;
    background: rgba(184,146,42,.12); border: 1px solid var(--line); color: var(--primary);
}
.tutorial-list__body { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.tutorial-list__body strong { font-size: .93rem; line-height: 1.3; }
.tutorial-list__state { flex: 0 0 auto; color: var(--primary); font-size: .8rem; }
.admin-preview { width: 100%; border-radius: 10px; background: #000; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------------------------------------------------------------- sections */
.section { padding: 72px 0; }
.section--alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section__head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section__head p { color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.grid-2--wide { grid-template-columns: 1fr 1.3fr; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .grid-2, .grid-2--wide { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 24px;
}
.card__icon {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(212,175,55,.15); color: var(--primary-2); margin-bottom: 14px; font-size: 1.2rem;
}
.card h3 { font-size: 1.1rem; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }

.step-num {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: var(--ink);
    margin-bottom: 14px;
}

.cta-band {
    background: linear-gradient(120deg, rgba(212,175,55,.16), rgba(22,51,122,.34));
    border: 1px solid rgba(212,175,55,.35); border-radius: 24px;
    padding: 48px; text-align: center; margin: 0 auto;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }

/* --------------------------------------------------------------- app shell */
.app { display: grid; grid-template-columns: 262px 1fr; min-height: 100vh; }
@media (max-width: 900px) { .app { grid-template-columns: 1fr; } }
.app__sidebar {
    background: var(--bg-soft); border-right: 1px solid var(--line);
    padding: 22px 16px; position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto;
}
@media (max-width: 900px) {
    .app__sidebar { position: fixed; z-index: 80; width: 262px; transform: translateX(-105%); transition: transform .25s ease; }
    .app__sidebar.is-open { transform: translateX(0); box-shadow: var(--shadow); }
}
.app__main { min-width: 0; }
.app__topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 16px 28px; border-bottom: 1px solid var(--line);
    background: rgba(250,248,244,.9); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 40;
}
.topbar-actions { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.topbar-link {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px;
    color: var(--muted); font-size: 1.05rem; text-decoration: none;
}
.topbar-link:hover { background: rgba(0,0,0,.06); color: var(--text); }
.topbar-badge {
    position: absolute; top: 2px; right: 0;
    min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; display: inline-grid; place-items: center;
    background: rgba(220,38,38,.14); color: #991b1b; border: 1px solid rgba(220,38,38,.4);
    font-size: .68rem; font-weight: 800;
}
@media (max-width: 900px) { .topbar-actions { border-top: 1px solid var(--line); padding-top: 10px; width: 100%; } .app__topbar { flex-wrap: wrap; } }
.app__content { padding: 28px; max-width: 1180px; }
@media (max-width: 620px) { .app__content { padding: 18px 14px; } .app__topbar { padding: 14px 16px; } }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sidebar-head .brand { margin: 0; }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 22px; }
.sidebar-nav a {
    display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 11px;
    color: var(--muted); font-weight: 500; font-size: .95rem;
}
.sidebar-nav a:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.sidebar-nav a.is-active { background: rgba(184,146,42,.16); color: var(--text); box-shadow: inset 3px 0 0 var(--primary); }
.sidebar-nav .nav-tag { margin-left: auto; font-size: .72rem; background: var(--panel-2); border-radius: 999px; padding: 2px 8px; color: var(--muted); }
.sidebar-nav__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 18px 12px 6px; }
.sidebar-user { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--ink); background: linear-gradient(135deg, var(--primary), var(--primary-2)); flex: none; }
.sidebar-user__name { font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user__mail { font-size: .76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-toggle { display: none; }
@media (max-width: 900px) {
    .sidebar-toggle { display: inline-flex; touch-action: manipulation; }
    .sidebar-nav a { touch-action: manipulation; }
    body.sidebar-locked .sidebar-toggle { position: fixed; top: 15px; left: 16px; z-index: 100; }
}
.sidebar-overlay { position: fixed; inset: 0; z-index: 79; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.sidebar-overlay.is-active { opacity: 1; pointer-events: auto; }
@media (max-width: 900px) {
    body.sidebar-locked { overflow: hidden; }
    .app__topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(250,248,244,.98); }
}

/* ------------------------------------------------------------------- stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat-card__label { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.stat-card__value { font-size: 1.7rem; font-weight: 800; margin-top: 6px; letter-spacing: -.02em; }
.stat-card__meta { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.stat-card--accent { background: linear-gradient(135deg, rgba(212,175,55,.2), rgba(22,51,122,.35)); border-color: rgba(212,175,55,.45); }

/* ------------------------------------------------------------------ panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; }
.panel__head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel__head h2, .panel__head h3 { margin: 0; font-size: 1.05rem; }
.panel__body { padding: 22px; }
.panel__body--flush { padding: 0; }
.tutorial-steps { margin: 14px 0 18px; padding-left: 20px; color: var(--text); line-height: 1.7; }
.tutorial-steps li { margin-bottom: 6px; }
.tutorial-steps li::marker { color: var(--primary-2); font-weight: 700; }

/* ------------------------------------------------------------------ tables */
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; padding: 12px 16px; color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(212,175,55,.06); }
.table .num { font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.table .truncate { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.form-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.form-inline .input { flex: 0 1 auto; }
.msg-subject { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -.01em; }
.msg-body { line-height: 1.6; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.table strong { color: var(--text); }
a.strong { font-weight: 700; color: var(--primary-2); }

/* ------------------------------------------------------------------ badges */
.badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
    font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    background: var(--panel-2); color: var(--muted); border: 1px solid var(--line);
}
.badge.ok { background: rgba(22,163,74,.12); color: #166534; border-color: rgba(22,163,74,.35); }
.badge.warn { background: rgba(217,119,6,.12); color: #92400e; border-color: rgba(217,119,6,.35); }
.badge.bad { background: rgba(220,38,38,.12); color: #991b1b; border-color: rgba(220,38,38,.35); }
.badge.muted { background: var(--panel-2); color: var(--muted); }
.icon { vertical-align: -3px; }
.icon--facebook { color: #4c8bf5; } .icon--instagram { color: #e14b8a; } .icon--tiktok { color: #111; }
.icon--youtube { color: #ff0000; } .icon--google_ads { color: #b45309; } .icon--twitter { color: #1d9bf0; }

/* ------------------------------------------------------------------- forms */
.field { margin-bottom: 18px; }
.label { display: block; font-size: .87rem; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.input, .select, .textarea {
    width: 100%; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line);
    background: var(--bg-soft); color: var(--text); font: inherit; font-size: .95rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(212,175,55,.25); }
.textarea { min-height: 110px; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.upload-preview { display: block; width: 100%; max-width: 360px; aspect-ratio: 16 / 7; object-fit: cover; margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.upload-preview[hidden] { display: none; }
.upload-preview--round { width: 72px; max-width: 72px; aspect-ratio: 1 / 1; border-radius: 50%; }
.field__hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.field__error { font-size: .82rem; color: var(--bad); margin-top: 6px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 6px; }

/* --------------------------------------------------------------- auth page */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-aside { display: none; } }
.auth-aside { background: linear-gradient(150deg, #0d1c4a, #08102a 70%); color: #f5f2e8; padding: 56px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.auth-aside h2 { font-size: 2rem; color: #fff; }
.auth-aside .brand { color: #fff; }
.auth-aside .muted { color: #c9c3b4; }
.auth-main { display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: min(460px, 100%); }
.auth-card h1 { font-size: 1.7rem; }
.auth-switch { color: var(--muted); font-size: .92rem; margin-top: 20px; text-align: center; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: .85rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn--google { --btn-bg: #fff; --btn-color: #1f2937; border: 1px solid rgba(255,255,255,.2); display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; }
.btn--google:hover { --btn-bg: #f3f4f6; }

/* ------------------------------------------------------------------- flash */
.flash { padding: 13px 16px; border-radius: 12px; margin-bottom: 18px; font-size: .92rem; border: 1px solid var(--line); }
.flash--success { background: rgba(22,163,74,.12); border-color: rgba(22,163,74,.4); color: #166534; }
.flash--error { background: rgba(220,38,38,.12); border-color: rgba(220,38,38,.4); color: #991b1b; }
.flash--warning { background: rgba(217,119,6,.12); border-color: rgba(217,119,6,.4); color: #92400e; }
.flash--info { background: rgba(34,211,238,.1); border-color: rgba(34,211,238,.35); color: #0e7490; }

/* ------------------------------------------------------------------- misc */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty__icon { font-size: 2.4rem; margin-bottom: 10px; opacity: .7; }
.progress { height: 10px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.progress__bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-2)); border-radius: 999px; transition: width .4s ease; }
.progress__bar.ok { background: linear-gradient(90deg, #16a34a, #86efac); }
.progress__bar.warn { background: linear-gradient(90deg, #fbbf24, #dc2626); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; background: var(--panel-2); border: 1px solid var(--line); }
.checklist .tick.done { background: rgba(22,163,74,.16); border-color: rgba(22,163,74,.45); color: #166534; }
.alert { border-radius: 12px; padding: 16px 18px; border: 1px solid var(--line); background: var(--panel); margin-bottom: 20px; }
.alert--warn { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.35); }
.alert--ok { background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.35); }
.alert h3 { margin-top: 0; }
.quiz-option { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.quiz-option:hover { border-color: var(--primary); background: rgba(212,175,55,.07); }
.quiz-option input { margin-top: 4px; accent-color: var(--primary); }
.quiz-option.is-correct { border-color: rgba(52,211,153,.6); background: rgba(52,211,153,.08); }
.quiz-option.is-wrong { border-color: rgba(251,113,133,.6); background: rgba(251,113,133,.08); }
.quiz-q { padding: 20px 0; border-bottom: 1px solid var(--line); }
.quiz-q:last-child { border-bottom: none; }
.quiz-q__title { font-weight: 600; margin-bottom: 12px; }
.quiz-q__num { color: var(--muted); font-size: .8rem; display: block; margin-bottom: 4px; }
.dropzone { border: 2px dashed var(--line); border-radius: var(--radius); padding: 30px; text-align: center; color: var(--muted); transition: border-color .15s, background .15s; }
.dropzone.dragover { border-color: var(--primary); background: rgba(212,175,55,.07); }
.media-thumb { width: 100%; aspect-ratio: 16/9; border-radius: 10px; background: linear-gradient(135deg, #13224f, #f3f0e8); display: grid; place-items: center; color: #445588; margin-bottom: 14px; }
.footage-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; }
.code-inline { font-family: ui-monospace, Consolas, monospace; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 2px 7px; font-size: .85rem; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs a { padding: 11px 15px; color: var(--muted); font-weight: 600; font-size: .9rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.is-active { color: var(--text); border-bottom-color: var(--primary); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 18px 26px; border-left: 2px solid var(--line); }
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px rgba(212,175,55,.2); }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: .9rem; background: var(--bg-soft); }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* ------------------------------------------------- responsive refinements */
@media (max-width: 900px) {
    .app__topbar strong { font-size: 1rem; }
    .filter-bar { flex-wrap: wrap; }
    .filter-bar .input, .filter-bar .select { flex: 1 1 180px; min-width: 0; max-width: none; }
}
@media (max-width: 760px) {
    .container { width: min(1160px, 94%); }
    .section { padding: 48px 0; }
    .section__head { margin-bottom: 30px; }
    .hero { padding: 46px 0 58px; }
    .hero__proof { gap: 20px 30px; }
    .hero__proof strong { font-size: 1.25rem; }
    .hero__media { margin-top: 34px; }
    .cta-band { padding: 32px 20px; }
    .cta-band__actions { margin-top: 18px; }
    .panel__head, .panel__body { padding-left: 16px; padding-right: 16px; }
    .panel__head { flex-wrap: wrap; }
    .panel__body { padding-top: 16px; padding-bottom: 16px; }
    .stat-card__value { font-size: 1.45rem; }
    .table td, .table th { padding: 10px 12px; }
    .table .truncate { max-width: 200px; }
    .empty { padding: 34px 16px; }
    .quiz-q { padding: 16px 0; }
}
@media (max-width: 560px) {
    .flex-between { flex-wrap: wrap; }
    .hero__actions { flex-direction: column; width: 100%; }
    .hero__actions .btn { width: 100%; }
    .play-btn { width: 74px; height: 74px; }
    .play-btn svg { width: 26px; height: 26px; }
    .hero__proof { gap: 16px 24px; font-size: .82rem; }
    .table { font-size: .86rem; }
    .table .truncate { max-width: 140px; }
    .site-footer__inner { flex-direction: column; text-align: center; }
    .form-actions .btn { width: 100%; }
}

/* ------------------------------------------------------------------ community chat */
.avatar--sm { width: 34px; height: 34px; font-size: .85rem; }
.chat-feed { display: flex; flex-direction: column; gap: 14px; max-height: 560px; overflow-y: auto; padding: 6px 2px; }
.chat-msg { display: flex; gap: 10px; align-items: flex-start; }
.chat-msg__body { min-width: 0; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 4px var(--radius-sm) var(--radius-sm) var(--radius-sm); padding: 10px 14px; flex: 1; }
.chat-msg--admin .chat-msg__body { background: rgba(212,175,55,.07); border-color: rgba(212,175,55,.4); }
.chat-msg--bot .chat-msg__body { background: rgba(29,78,216,.08); border-color: rgba(59,130,246,.35); }
.chat-msg--bot .chat-msg__text a { color: #8a6714; text-decoration: underline; }
.chat-msg__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; font-size: .85rem; }
.chat-msg__text { white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-form { display: flex; gap: 10px; margin-top: 14px; }
.chat-form .textarea { flex: 1; min-height: 46px; resize: vertical; }
.chat-msg__body a { color: #8a6714; text-decoration: underline; }
.chat-msg__body ol, .chat-msg__body ul { margin: 6px 0 2px; padding-left: 22px; }
.support-feed { max-height: 420px; }
.support-head { display: inline-flex; align-items: center; gap: 10px; }
.support-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.chip {
    border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
    border-radius: 999px; padding: 7px 14px; font-size: .85rem; cursor: pointer; transition: all .12s;
}
.chip:hover { background: rgba(212,175,55,.16); border-color: rgba(212,175,55,.5); color: var(--text); }
.presence-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px rgba(52,211,153,.9); flex: none; }
.presence-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(30,49,99,.5); }
.presence-row:last-child { border-bottom: 0; }
.grid-chat { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 820px) { .grid-chat { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ direct messages */
.dm-row { display: flex; margin-bottom: 2px; }
.dm-row--mine { justify-content: flex-end; }
.dm-row--mine .chat-msg__body { background: rgba(184,146,42,.16); border-color: rgba(184,146,42,.45); }
.inbox-item { display: block; color: inherit; padding: 12px 14px; border: 1px solid transparent; border-bottom-color: rgba(30,49,99,.5); }
.inbox-item:hover { text-decoration: none; background: rgba(255,255,255,.03); }
.inbox-item.is-active { background: linear-gradient(120deg, rgba(212,175,55,.12), rgba(22,51,122,.25)); border-color: var(--line); border-radius: var(--radius-sm); }

/* ------------------------------------------------------------------ payouts marquee */
.payouts-scroll { height: 100%; overflow: hidden; position: relative; }
.payouts-scroll__track { animation: scrollY 7s linear infinite; }
.payouts-scroll:hover .payouts-scroll__track { animation-play-state: paused; }
@keyframes payout-scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}
.payouts-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid rgba(30,49,99,.45); }
.payouts-row:last-child { border-bottom: 0; }

/* ------------------------------------------------------------------ earnings chart */
.area-chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.area-chart__col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; }
.area-chart__bar { width: 100%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #f5cf5e, #d4af37); min-height: 4px; }
.area-chart__col:hover .area-chart__bar { background: linear-gradient(180deg, #fff2c4, #e8c65a); }
.area-chart__label { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--muted); white-space: nowrap; height: 1px; opacity: 0; transition: opacity .15s; }
.area-chart__col:hover .area-chart__label { opacity: 1; }
.earn-bar { margin-top: 12px; }
.earn-bar__info { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 4px; }
.earn-bar__info strong { color: var(--primary); }
.earn-bar__track { height: 8px; border-radius: 99px; background: rgba(30,49,99,.45); overflow: hidden; }
.earn-bar__fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--primary-2)); }
.earn-bar-head { display: flex; justify-content: space-between; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ------------------------------------------------------------------ payment gateways */
.gateway-card { display: flex; flex-direction: column; }
.gateway-card .panel__body { flex: 1; }

.card__num { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.card__label { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.card.is-muted { opacity: .5; }

/* ------------------------------------------------------------------ feed (notifications) */
.feed { display: flex; flex-direction: column; }
.feed-item {
    display: flex; align-items: flex-start; gap: 14px; padding: 15px 22px; text-decoration: none;
    border-bottom: 1px solid var(--line); color: var(--text); transition: background .12s;
}
.feed-item:last-child { border-bottom: 0; }
.feed-item:hover { background: rgba(212,175,55,.06); }
.feed-item__icon {
    width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto;
    background: rgba(212,175,55,.15); font-size: 1.05rem;
}
.feed-item__text { font-size: .93rem; line-height: 1.5; }

/* grouped notification rows */
.table { display: flex; flex-direction: column; }
.table__sep { height: 1px; background: var(--line); }
.table-row {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 15px 22px; text-decoration: none; color: var(--text); transition: background .12s;
}
.table-row:hover { background: rgba(212,175,55,.06); }
.table-row__main { font-size: .93rem; display: flex; align-items: center; gap: 12px; line-height: 1.4; }
.table-row__main .muted { margin-left: 6px; }
.table-row__meta { color: var(--muted); font-size: .8rem; white-space: nowrap; }

/* === Dashboard redesign === */
.welcome-video__grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; align-items:center; }
@media (max-width:720px){ .welcome-video__grid { grid-template-columns:1fr; } }
.video-frame--welcome { aspect-ratio:16/9; background:#000; border-radius:12px; overflow:hidden; }
.video-frame--welcome video, .video-frame--welcome iframe { width:100%; height:100%; border:0; display:block; }
.welcome-checklist { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:6px; }
.welcome-checklist li { color:var(--text,#e5e7eb); font-size:14px; }

.quick-links { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
@media (max-width:900px){ .quick-links { grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ .quick-links { grid-template-columns:1fr; } }
.quick-link {
    display:flex; flex-direction:column; gap:6px; padding:18px 16px;
    background:linear-gradient(135deg, rgba(124,58,237,.15), rgba(14,165,233,.1));
    border:1px solid var(--line,#2a2a3a); border-radius:14px;
    text-decoration:none; color:inherit; transition:transform .18s, box-shadow .18s;
}
.quick-link:hover { transform:translateY(-3px); box-shadow:0 8px 24px rgba(124,58,237,.25); }
.quick-link__icon { font-size:28px; line-height:1; }
.quick-link strong { font-size:15px; }
.quick-link .muted { font-size:12px; }

.guide-steps { display:flex; flex-direction:column; gap:16px; }
.guide-step { display:grid; grid-template-columns:140px 1fr; gap:14px; align-items:center; }
@media (max-width:520px){ .guide-step { grid-template-columns:1fr; } }
.guide-step img { width:100%; height:90px; object-fit:cover; border-radius:10px; }
.guide-step strong { display:block; margin-bottom:4px; }

/* animations */
@keyframes pulseGlow { 0%,100%{ box-shadow:0 0 0 0 rgba(124,58,237,.45);} 50%{ box-shadow:0 0 0 10px rgba(124,58,237,0);} }
.quick-link:hover .quick-link__icon { animation:pulseGlow 1.4s infinite; }
.payouts-scroll__track { animation: scrollY 7s linear infinite; }
@keyframes scrollY { 0%{ transform:translateY(0);} 100%{ transform:translateY(-50%);} }
.payouts-scroll:hover .payouts-scroll__track { animation-play-state:paused; }

.chat-feed--scroll { position:relative; }
.chat-feed--scroll .chat-scroll__track { animation: chat-scroll 22s linear infinite; }
.chat-feed--scroll:hover .chat-scroll__track { animation-play-state:paused; }
@keyframes chat-scroll { 0%{ transform:translateY(0);} 100%{ transform:translateY(-50%);} }

/* === Dashboard tabs === */
.dash-tabs { display:flex; gap:6px; flex-wrap:wrap; border-bottom:1px solid var(--line,#2a2a3a); padding-bottom:8px; }
.dash-tab {
    background:transparent; border:1px solid var(--line,#2a2a3a); color:inherit;
    padding:8px 16px; border-radius:999px; cursor:pointer; font-size:14px; font-weight:600;
}
.dash-tab.is-active { background:var(--primary); color:var(--ink); border-color:var(--primary); }
.tab-panel.hide { display:none; }

/* === Dashboard without sidebar === */
.app--no-sidebar { grid-template-columns: 1fr; }
.app--no-sidebar .app__sidebar { display:none; }

/* === Sidebar tab buttons (dashboard) === */
.sidebar-tab {
    display:flex; align-items:center; gap:10px; width:100%; text-align:left;
    background:transparent; border:0; color:inherit; padding:10px 12px;
    border-radius:8px; cursor:pointer; font-size:14px; font-weight:500;
}
.sidebar-tab span { width:20px; text-align:center; }
.sidebar-tab:hover { background:rgba(184,146,42,.14); }
.sidebar-tab.is-active { background:var(--primary); color:var(--ink); }

/* === Contact support modal === */
.cs-overlay {
    position:fixed; inset:0; z-index:2000;
    background:rgba(0,0,0,0.3);
    backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
    display:flex; align-items:center; justify-content:center;
    padding:16px;
    opacity:0; transition:opacity 150ms ease;
}
.cs-overlay[hidden] { display:none; }
.cs-overlay.is-open { opacity:1; }
.cs-modal {
    width:100%; max-width:640px; max-height:90vh; overflow:auto;
    background:var(--panel); border:1px solid var(--line); border-radius:20px;
    padding:30px; box-shadow:0 20px 60px rgba(20,16,8,.18);
    transform:scale(.96); transition:transform 150ms ease;
    font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
}
.cs-overlay.is-open .cs-modal { transform:scale(1); }
.cs-modal__head { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.cs-modal__head h2 { margin:0; color:var(--text); font-size:24px; font-weight:700; }
.cs-modal__close { background:transparent; border:0; color:var(--muted); font-size:28px; line-height:1; cursor:pointer; padding:0 4px; }
.cs-modal__close:hover { color:var(--text); }
.cs-info { background:var(--panel-2); border:1px solid var(--line); border-radius:12px; padding:20px; margin-bottom:18px; }
.cs-info__line1 { color:var(--text); font-size:17px; font-weight:700; margin-bottom:6px; }
.cs-info__line2 { color:var(--muted); font-size:17px; font-weight:400; }
.cs-textarea {
    width:100%; min-height:140px; resize:none;
    background:#fff; border:1px solid var(--line); border-radius:12px;
    padding:14px; color:var(--text); font-size:20px; box-sizing:border-box;
    font-family:inherit;
}
.cs-textarea::placeholder { color:#9a958a; }
.cs-textarea:focus { outline:none; border-color:var(--primary); }
.cs-divider { height:1px; background:var(--line); margin:18px -30px; }
.cs-footer { display:flex; gap:10px; }
.cs-btn {
    flex:1; height:60px; border-radius:12px;
    background:var(--panel-2); color:var(--text); font-size:22px; font-weight:500; cursor:pointer; border:1px solid var(--line);
}
.cs-btn:hover { background:#ece7db; }
.cs-btn--send:disabled, .cs-btn--send.disabled { color:var(--muted); background:var(--panel-2); border-color:var(--line); cursor:not-allowed; }
.cs-btn--send:disabled:hover { background:var(--panel-2); }
.cs-btn--send.is-enabled { background:var(--primary); border-color:var(--primary); color:var(--ink); }
.cs-btn--send.is-enabled:hover { background:#a07d1f; }
.cs-toast {
    position:fixed; bottom:24px; left:50%; transform:translateX(-50%) translateY(20px);
    background:#f7f4ec; color:#1a1a1a; padding:12px 20px; border-radius:10px; border:1px solid var(--line);
    z-index:3000; opacity:0; transition:all 250ms ease;
    font-size:14px;
}
.cs-toast.is-show { opacity:1; transform:translateX(-50%) translateY(0); }

/* === Announcements channel view === */
.ann-channel { max-width:1150px; margin:0 auto; background:var(--panel); min-height:100vh; }
.ann-header {
    position:sticky; top:0; z-index:50; height:60px;
    display:flex; align-items:center; justify-content:space-between;
    padding:0 20px; border-bottom:1px solid var(--line); background:var(--panel);
}
.ann-header__left { display:flex; align-items:center; gap:10px; }
.ann-icon { font-size:22px; }
.ann-title { color:#1a1a1a; font-weight:600; font-size:20px; }
.ann-header__right { display:flex; gap:6px; }
.ann-iconbtn { background:transparent; border:0; color:var(--muted); font-size:20px; cursor:pointer; padding:6px; border-radius:6px; }
.ann-iconbtn:hover { color:var(--text); background:var(--panel-2); }
.ann-banner { width:100%; height:240px; overflow:hidden; }
.ann-banner img { width:100%; height:100%; object-fit:cover; display:block; }
.ann-composer { display:flex; gap:10px; align-items:center; padding:14px 20px; border-bottom:1px solid var(--line); }
.ann-composer__input { flex:1; background:#fff; border:1px solid var(--line); border-radius:10px; color:var(--text); padding:10px 12px; resize:none; font-family:inherit; font-size:14px; }
.ann-feed { padding:0 20px 40px; }
.ann-empty { text-align:center; padding:60px 20px; color:var(--muted); }
.ann-empty__icon { font-size:40px; margin-bottom:10px; }
.ann-post { padding:20px 0; }
.ann-post__row { display:flex; gap:14px; }
.ann-avatar { width:50px; height:50px; border-radius:50%; background:var(--primary); color:var(--ink); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:18px; flex:none; }
.ann-avatar--sm { width:36px; height:36px; font-size:14px; }
.ann-post__body { flex:1; min-width:0; }
.ann-post__head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:8px; }
.ann-name { color:#1a1a1a; font-weight:600; font-size:19px; }
.ann-verified { display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; border-radius:4px; background:#1d4ed8; color:#fff; font-size:11px; font-weight:700; }
.ann-handle { color:var(--muted); font-size:15px; }
.ann-dot { color:var(--muted); }
.ann-date { color:var(--muted); font-size:15px; }
.ann-pinned { background:#1d4ed8; color:#fff; font-size:14px; padding:4px 10px; border-radius:8px; display:inline-flex; align-items:center; gap:4px; margin-left:6px; }
.ann-overflow { margin-left:auto; background:transparent; border:0; color:var(--muted); font-size:20px; cursor:pointer; }
.ann-overflow:hover { color:var(--text); }
.ann-text { color:#1a1a1a; font-size:17px; line-height:1.5; }
.ann-clamp { display:-webkit-box; -webkit-line-clamp:8; -webkit-box-orient:vertical; overflow:hidden; }
.ann-clamp.ann-expanded { -webkit-line-clamp:unset; display:block; }
.ann-seemore { background:transparent; border:0; color:var(--primary); font-size:15px; cursor:pointer; padding:6px 0; }
.ann-media { margin-top:10px; border-radius:10px; overflow:hidden; }
.ann-media img { width:100%; display:block; }
.ann-actions { display:flex; align-items:center; gap:18px; margin-top:12px; color:var(--muted); font-size:15px; }
.ann-action { background:transparent; border:0; color:var(--muted); font-size:15px; cursor:pointer; display:inline-flex; align-items:center; gap:6px; }
.ann-action:hover { color:var(--text); }
.ann-like.is-liked { color:#ef4444; }
.ann-like.is-liked span { color:#ef4444; }
.ann-share { margin-left:auto; }
.ann-thread { position:relative; margin-top:10px; }
.ann-thread__line { position:absolute; left:24px; top:0; bottom:0; width:2px; background:var(--line); }
.ann-thread__content { padding-left:52px; }
.ann-divider { height:1px; background:var(--line); margin:0; }
.ann-loadmore { text-align:center; padding:20px; }

@media (max-width:620px) {
    .ann-avatar { width:40px; height:40px; font-size:15px; }
    .ann-name { font-size:17px; }
    .ann-text { font-size:16px; }
    .ann-header { padding:0 12px; }
    .ann-feed { padding:0 12px 40px; }
}

/* === Profile modal === */
.pf-overlay {
    position:fixed; inset:0; z-index:2100;
    background:rgba(0,0,0,0.3); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
    display:flex; align-items:center; justify-content:center; padding:16px;
    opacity:0; transition:opacity 150ms ease;
}
.pf-overlay[hidden] { display:none; }
.pf-overlay.is-open { opacity:1; }
.pf-modal {
    width:100%; max-width:460px; background:var(--panel); border:1px solid var(--line);
    border-radius:20px; padding:28px; position:relative;
    font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
    transform:scale(.96); transition:transform 150ms ease;
}
.pf-overlay.is-open .pf-modal { transform:scale(1); }
.pf-close { position:absolute; top:12px; right:14px; background:transparent; border:0; color:var(--muted); font-size:26px; cursor:pointer; }
.pf-close:hover { color:var(--text); }
.pf-head { display:flex; gap:16px; align-items:center; margin-bottom:16px; }
.pf-avatar { width:72px; height:72px; border-radius:50%; object-fit:cover; background:var(--panel-2); }
.pf-name { margin:0; color:var(--text); font-size:22px; font-weight:700; }
.pf-handle { color:var(--muted); font-size:15px; margin-top:2px; }
.pf-followed { color:var(--muted); font-size:14px; margin-top:4px; }
.pf-bio { color:#333; font-size:15px; line-height:1.5; white-space:pre-line; margin-bottom:12px; }
.pf-email { color:var(--muted); font-size:14px; margin-bottom:16px; }
.pf-msgbtn { width:100%; height:50px; border-radius:12px; border:0; background:var(--primary); color:var(--ink); font-size:16px; font-weight:600; cursor:pointer; }
.pf-msgbtn:hover { background:#a07d1f; }
.ann-name--link { background:transparent; border:0; color:#1a1a1a; font-weight:600; font-size:19px; cursor:pointer; padding:0; font-family:inherit; }
.ann-name--link:hover { text-decoration:underline; }

.ann-pinned--btn { border:0; cursor:pointer; font-family:inherit; }
.ann-pinned--btn:hover { filter:brightness(1.15); }
.ann-post.is-highlighted { background:rgba(29,78,216,.08); border-radius:10px; }


/* ==========================================================================
   Public frontend refresh - modern, warm and uncluttered
   ========================================================================== */
html { scroll-behavior: smooth; }

body.site {
    background:
        radial-gradient(900px 520px at 86% -8%, rgba(212,175,55,.11), transparent 70%),
        radial-gradient(760px 460px at 4% 22%, rgba(28,44,92,.07), transparent 70%),
        var(--bg);
}

/* Navigation */
.site .site-nav {
    background: rgba(252,250,245,.78);
    border-bottom: 1px solid rgba(184,146,42,.18);
    box-shadow: 0 8px 30px rgba(20,16,8,.045);
    backdrop-filter: blur(20px) saturate(1.35);
    -webkit-backdrop-filter: blur(20px) saturate(1.35);
}
.site .site-nav__inner { height: 72px; }
.site .brand__mark {
    border-radius: 12px;
    transition: transform .25s ease, box-shadow .25s ease;
}
.site .brand:hover .brand__mark { transform: rotate(-4deg) scale(1.04); box-shadow: 0 12px 26px rgba(212,175,55,.48); }
.site .nav-links { gap: 4px; }
.site .nav-links > a:not(.btn) {
    padding: 8px 13px;
    border-radius: 999px;
    transition: background .18s ease, color .18s ease;
}
.site .nav-links > a:not(.btn):hover { background: rgba(184,146,42,.11); color: var(--text); }

/* Hero */
.site .hero {
    padding: 88px 0 104px;
    background:
        radial-gradient(1100px 540px at 50% -18%, rgba(212,175,55,.18), transparent 62%),
        linear-gradient(180deg, #fcfaf6 0%, #f8f4ea 78%, var(--bg) 100%);
}
.site .hero::before {
    width: 560px; height: 560px; top: -260px; left: -180px;
    background: rgba(31,48,98,.22); filter: blur(120px);
}
.site .hero::after {
    width: 500px; height: 500px; bottom: -260px; right: -160px;
    background: rgba(212,175,55,.42); filter: blur(120px);
}
.site .eyebrow {
    background: rgba(255,255,255,.6);
    border-color: rgba(184,146,42,.35);
    box-shadow: 0 8px 24px rgba(184,146,42,.09);
    backdrop-filter: blur(10px);
}
.site .hero h1 { font-weight: 800; letter-spacing: -.045em; margin-top: 22px; }
.site .hero__lead { color: #625c4f; font-size: 1.14rem; }
.site .hero__actions { margin-top: 30px; }
.site .hero__proof { gap: 12px; margin-top: 38px; }
.site .hero__proof > div {
    min-width: 158px;
    padding: 13px 20px 14px;
    border: 1px solid rgba(184,146,42,.18);
    border-radius: 16px;
    background: rgba(255,255,255,.62);
    box-shadow: 0 10px 24px rgba(20,16,8,.045);
    backdrop-filter: blur(12px);
}
.site .hero__proof strong { font-size: 1.45rem; }
.site .hero__proof .muted { font-size: .78rem; }

/* Video */
.site .video-frame {
    border-radius: 28px;
    border-color: rgba(212,175,55,.4);
    box-shadow:
        0 42px 100px rgba(6,8,16,.65),
        0 0 0 1px rgba(255,255,255,.08),
        0 0 0 8px rgba(212,175,55,.07);
}
.site .video-badge { border-color: rgba(255,255,255,.16); }

/* Sections */
.site .section { padding: 86px 0; }
.site .section--alt {
    background-color: #f4f0e6;
    background-image:
        radial-gradient(rgba(184,146,42,.09) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,.35), transparent 55%);
    background-size: 26px 26px, 100% 100%;
    border-color: rgba(184,146,42,.14);
}
.site .section__head { margin-bottom: 48px; }
.site .section__head h2 { font-weight: 800; letter-spacing: -.04em; }
.site .section__head h2::after {
    content: ""; display: block; width: 46px; height: 3px; margin: 14px auto 0;
    border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

/* Cards */
.site .card {
    position: relative;
    padding: 28px;
    border-radius: 20px;
    border-color: rgba(184,146,42,.15);
    background: linear-gradient(180deg, #ffffff 0%, #fdfbf7 100%);
    box-shadow: 0 12px 34px rgba(20,16,8,.055);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.site .card::before {
    content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,.9), transparent);
    opacity: 0; transition: opacity .25s ease;
}
.site .card:hover { transform: translateY(-4px); border-color: rgba(184,146,42,.32); box-shadow: 0 22px 48px rgba(20,16,8,.09); }
.site .card:hover::before { opacity: 1; }
.site .card__icon { border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(184,146,42,.1); }
.site .step-num {
    width: 44px; height: 44px; border-radius: 14px;
    box-shadow: 0 10px 22px rgba(212,175,55,.28);
}

/* CTA band */
.site .cta-band {
    position: relative;
    overflow: hidden;
    padding: 58px 48px;
    border-radius: 28px;
    border-color: rgba(212,175,55,.38);
    background:
        radial-gradient(560px 260px at 50% 0%, rgba(212,175,55,.2), transparent 70%),
        linear-gradient(135deg, #0e0d0a 0%, #1c1810 100%);
    box-shadow: 0 30px 70px rgba(20,16,8,.18);
}
.site .cta-band h2 { color: #fff; font-weight: 800; }
.site .cta-band .muted { color: #c8c1b1; }
.site .cta-band::before, .site .cta-band::after {
    content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
    filter: blur(70px); pointer-events: none;
}
.site .cta-band::before { top: -150px; left: -80px; background: rgba(212,175,55,.22); }
.site .cta-band::after { bottom: -170px; right: -70px; background: rgba(31,48,98,.4); }

/* Footer */
.site .site-footer {
    padding: 48px 0;
    background: linear-gradient(180deg, #f2eee4 0%, #ece7da 100%);
    border-top: 1px solid rgba(184,146,42,.2);
}
.site .site-footer strong { color: var(--text); }
.site .site-footer a { transition: color .18s ease; }
.site .site-footer a:hover { color: var(--primary); }

/* Auth pages */
.site .auth-aside {
    background:
        radial-gradient(600px 420px at 82% 10%, rgba(212,175,55,.16), transparent 65%),
        radial-gradient(520px 380px at 8% 88%, rgba(38,62,130,.35), transparent 70%),
        linear-gradient(150deg, #0c1a45 0%, #070d22 72%);
}
.site .auth-card {
    padding: 34px;
    border: 1px solid rgba(184,146,42,.16);
    border-radius: 24px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 24px 60px rgba(20,16,8,.09);
    backdrop-filter: blur(16px);
}

/* Subtle entry motion */
@media (prefers-reduced-motion: no-preference) {
    .site .hero__content { animation: siteRise .55s ease both; }
    .site .hero__media { animation: siteRise .65s .08s ease both; }
    @keyframes siteRise {
        from { opacity: 0; transform: translateY(14px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

@media (max-width: 760px) {
    .site .site-nav__inner { height: 64px; }
    .site .nav-links { top: 72px; }
    .site .hero { padding: 52px 0 66px; }
    .site .hero__proof > div { min-width: 0; flex: 1 1 140px; padding: 12px 14px; }
    .site .section { padding: 56px 0; }
    .site .card { padding: 22px; border-radius: 17px; }
    .site .cta-band { padding: 38px 22px; border-radius: 22px; }
    .site .auth-card { padding: 22px; border-radius: 20px; }
}

/* Homepage creator workflow image */
.creator-visual { margin:0; border:1px solid #e8dfca; border-radius:24px; overflow:hidden; background:#faf7ef; box-shadow:0 24px 65px rgba(65,49,16,.12); }
.creator-visual img { display:block; width:100%; height:auto; }
.creator-visual figcaption { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:20px; background:#fff; color:#947222; font-size:12px; }
.creator-visual strong { display:block; color:#24211c; margin-top:5px; font-size:14px; }
@media(max-width:480px) { .creator-visual figcaption { padding:14px; gap:8px; } .creator-visual strong { font-size:12px; } }
