/* ==========================================================================
   HPL Creators - core stylesheet
   ========================================================================== */
:root {
    --bg: #060c1e;
    --bg-soft: #0a1330;
    --panel: #0d1a3d;
    --panel-2: #12224f;
    --line: #1e3163;
    --text: #f2f5ff;
    --muted: #94a3c8;
    --primary: #d4af37;
    --primary-2: #f5cf5e;
    --accent: #e8c65a;
    --ink: #071022;
    --navy: #0b1e4d;
    --navy-2: #16337a;
    --ok: #34d399;
    --warn: #f4c542;
    --bad: #fb7185;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 18px 50px rgba(2, 6, 20, .6);
    --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

::selection { background: rgba(212, 175, 55, .35); color: #fff; }

* { box-sizing: border-box; }

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(251, 113, 133, .12); --btn-fg: #ffb3c0; border-color: rgba(251,113,133,.4); }
.btn--ok { --btn-bg: rgba(52, 211, 153, .14); --btn-fg: #a7f3d0; border-color: rgba(52,211,153,.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(7, 11, 24, .78);
    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-2); 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, #f5cf5e, #d4af37 55%, #fff); -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-2); 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__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; 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%, #12204d 0%, #060c1e 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(255,255,255,.07); padding: 2px 7px; border-radius: 6px; color: var(--primary-2); }
.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(255,255,255,.06); border: 1px solid var(--line); color: var(--primary-2);
}
.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-2); 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(7,11,24,.75); 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(255,255,255,.08); 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(251,113,133,.2); color: #ffc2cd; border: 1px solid rgba(251,113,133,.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-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: linear-gradient(120deg, rgba(212,175,55,.22), rgba(22,51,122,.4)); color: #fff; 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: #6b7ba6; 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(7,11,24,.95); }
}

/* ------------------------------------------------------------------- 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(52,211,153,.14); color: #a7f3d0; border-color: rgba(52,211,153,.35); }
.badge.warn { background: rgba(251,191,36,.14); color: #fde68a; border-color: rgba(251,191,36,.35); }
.badge.bad { background: rgba(251,113,133,.14); color: #ffc2cd; border-color: rgba(251,113,133,.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: #e6ecff; }
.icon--youtube { color: #ff4d4d; } .icon--google_ads { color: #fbbc04; } .icon--twitter { color: #9aa4c9; }

/* ------------------------------------------------------------------- forms */
.field { margin-bottom: 18px; }
.label { display: block; font-size: .87rem; font-weight: 600; margin-bottom: 7px; color: #c3cbe8; }
.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; } }
.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%); padding: 56px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.auth-aside h2 { font-size: 2rem; }
.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(52,211,153,.12); border-color: rgba(52,211,153,.4); color: #b8f5d8; }
.flash--error { background: rgba(251,113,133,.12); border-color: rgba(251,113,133,.4); color: #ffc6d0; }
.flash--warning { background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.4); color: #fde9ae; }
.flash--info { background: rgba(34,211,238,.1); border-color: rgba(34,211,238,.35); color: #b6effb; }

/* ------------------------------------------------------------------- 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, #34d399, #86efac); }
.progress__bar.warn { background: linear-gradient(90deg, #fbbf24, #fb7185); }
.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(52,211,153,.2); border-color: rgba(52,211,153,.5); color: #a7f3d0; }
.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, #0a1330); 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: #fff; 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: var(--primary-2); 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: var(--primary-2); 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: rgba(255,255,255,.04); color: var(--text);
    border-radius: 999px; padding: 7px 14px; font-size: .85rem; cursor: pointer; transition: all .12s;
}
.chip:hover { background: rgba(212,175,55,.12); border-color: rgba(212,175,55,.5); color: #ffe9a8; }
.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(22,51,122,.55); border-color: var(--navy-2); }
.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: payout-scroll 12s 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-2); }
.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; }
