/* ============ YOUVIX marketplace ============ */
:root {
  --bg: #f7f6fb; --surface: #fff; --surface-2: #f1eff8; --text: #17152a; --muted: #6a6784; --border: #e7e4f1;
  --p1: #f58529; --p2: #dd2a7b; --p3: #8134af; --p4: #515bd4;
  --grad: linear-gradient(120deg, var(--p1), var(--p2) 40%, var(--p3) 75%, var(--p4));
  --accent: #7c3aed; --accent-soft: #efe9ff;
  --ok: #10b981; --warn: #f59e0b; --bad: #ef4444; --info: #3b82f6;
  --r: 18px; --shadow: 0 1px 2px rgba(23,21,42,.05), 0 10px 30px rgba(23,21,42,.07); --shadow-lg: 0 24px 60px rgba(80,40,140,.18);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0d0c14; --surface: #16141f; --surface-2: #201d2c; --text: #eeedf5; --muted: #9d9ab3; --border: #2b2838;
  --accent-soft: #2a2140; --shadow: 0 1px 2px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.3); color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0d0c14; --surface: #16141f; --surface-2: #201d2c; --text: #eeedf5; --muted: #9d9ab3; --border: #2b2838; --accent-soft: #2a2140; --shadow: 0 1px 2px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.3); color-scheme: dark; }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: 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; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
.muted { color: var(--muted); } .small { font-size: .87rem; } .center { text-align: center; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hp { position: absolute; left: -9999px; }
svg { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; font: 700 .95rem inherit; font-family: inherit; cursor: pointer; text-decoration: none !important; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; color: var(--text); background: var(--surface-2); }
.btn:active { transform: scale(.97); }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(221,42,123,.3); }
.btn-grad:hover { box-shadow: 0 12px 28px rgba(221,42,123,.42); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ok { background: var(--ok); color: #fff; } .btn-bad { background: transparent; color: var(--bad); border-color: currentColor; }
.btn-bad:hover { background: var(--bad); color: #fff; }
.btn-sm { padding: 8px 15px; font-size: .85rem; } .btn-lg { padding: 15px 28px; font-size: 1.05rem; } .btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none !important; }
.icon-btn:hover { border-color: var(--accent); }
.i-sun { display: none; } [data-theme="dark"] .i-sun { display: block; } [data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: block; } :root:not([data-theme="light"]) .i-moon { display: none; } }
.dot-badge { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--p2); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; font-weight: 800; font-size: 1.15rem; letter-spacing: .04em; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; }
.links { display: flex; gap: 4px; }
.links a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; text-decoration: none; }
.links a:hover, .links a.active { color: var(--text); background: var(--surface-2); }
.actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.me-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 700; text-decoration: none !important; }
.menu-btn { display: none; } .only-sm { display: none !important; }
@media (max-width: 860px) {
  .menu-btn { display: inline-grid; } .hide-sm { display: none !important; }
  .links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 16px 16px; box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s; }
  .links.open { transform: none; opacity: 1; pointer-events: auto; }
  .links a { padding: 12px; border-radius: 12px; } .only-sm { display: block !important; }
}

/* Toasts */
.toasts { position: fixed; top: 80px; right: 16px; z-index: 90; display: grid; gap: 10px; max-width: calc(100% - 32px); }
.toast { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--info); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; animation: tin .35s ease; }
.toast-success { border-left-color: var(--ok); } .toast-error { border-left-color: var(--bad); }
.toast.hide { opacity: 0; transform: translateX(20px); transition: .3s; }
@keyframes tin { from { opacity: 0; transform: translateY(-10px); } }

/* Cards & layout */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; }
.section { padding: 56px 0; } .section-sm { padding: 32px 0; }
.page-head { padding: 36px 0 12px; } .page-head p { margin: 0; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .between { justify-content: space-between; } .grow { flex: 1; min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; font-size: .78rem; font-weight: 700; background: var(--surface-2); color: var(--text); white-space: nowrap; }
.pill-accent { background: var(--accent-soft); color: var(--accent); }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .85rem; }
.verified { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #3b82f6; color: #fff; font-size: .65rem; font-weight: 900; vertical-align: middle; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; color: #fff; font-weight: 800; flex: none; font-size: 1rem; }
.avatar.xs { width: 30px; height: 30px; font-size: .72rem; } .avatar.sm { width: 38px; height: 38px; font-size: .85rem; }
.avatar.lg { width: 96px; height: 96px; font-size: 2rem; } .avatar.xl { width: 120px; height: 120px; font-size: 2.4rem; }
.ring { padding: 3px; border-radius: 50%; background: var(--grad); display: inline-block; }
.ring > .avatar { border: 3px solid var(--surface); }
.stars { color: #f59e0b; letter-spacing: 1px; } .stars .off { color: var(--border); }
.empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--border); border-radius: var(--r); background: var(--surface); }
.empty .ico { font-size: 2.6rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 40px; }
.hero::before { content: ''; position: absolute; inset: -40% -10% auto; height: 520px; background: radial-gradient(closest-side, rgba(221,42,123,.18), transparent), radial-gradient(closest-side at 70% 40%, rgba(81,91,212,.18), transparent); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero h1 { margin: 16px 0; } .hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.searchbar { display: flex; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px; box-shadow: var(--shadow); max-width: 560px; }
.searchbar input, .searchbar select { border: 0; background: transparent; padding: 10px 14px; font: inherit; color: var(--text); min-width: 0; }
.searchbar input { flex: 1; } .searchbar select { max-width: 150px; border-left: 1px solid var(--border); }
.searchbar input:focus, .searchbar select:focus { outline: none; }
.hero-stack { position: relative; min-height: 380px; }
.float-card { position: absolute; width: 250px; animation: floaty 7s ease-in-out infinite; }
.float-card:nth-child(1) { top: 0; left: 6%; } .float-card:nth-child(2) { top: 120px; right: 0; animation-delay: -2.5s; } .float-card:nth-child(3) { bottom: 0; left: 18%; animation-delay: -5s; }
@keyframes floaty { 50% { transform: translateY(-12px); } }
@media (max-width: 959px) { .hero-stack { display: none; } }
.stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; max-width: 560px; }
@media (min-width: 560px) { .stats-row { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.stat b { display: block; font-size: 1.4rem; } .stat span { font-size: .8rem; color: var(--muted); }

/* Creator card */
.creator { position: relative; display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); color: var(--text); text-decoration: none !important; transition: transform .2s, box-shadow .2s, border-color .2s; }
.creator:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--p2) 40%, var(--border)); }
.creator-top { display: flex; align-items: center; gap: 12px; }
.creator-top b { display: block; } .creator-top small { color: var(--muted); }
.creator-stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); border-radius: 12px; padding: 10px 6px; text-align: center; }
.creator-stats b { display: block; font-size: 1.02rem; } .creator-stats span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.creator-foot { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; }
.creator-foot b { font-size: 1rem; }
.bio-line { color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }

/* Steps / features */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 8px; }
.step::before { counter-increment: s; content: counter(s); width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 12px; }
.tabs { display: inline-flex; background: var(--surface-2); padding: 4px; border-radius: 999px; gap: 2px; max-width: 100%; overflow-x: auto; }
.tabs a, .tabs button { padding: 8px 16px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: .9rem; text-decoration: none; border: 0; background: none; cursor: pointer; white-space: nowrap; font-family: inherit; }
.tabs a.on, .tabs button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.cta-band { background: var(--grad); color: #fff; border-radius: 28px; padding: 40px 28px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band p { opacity: .92; } .cta-band .btn { background: #fff; color: var(--p3); }

/* Browse layout */
.browse { display: grid; gap: 22px; align-items: start; }
@media (min-width: 960px) { .browse { grid-template-columns: 270px 1fr; } .filters { position: sticky; top: 88px; } }
.filters .field { margin-bottom: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; font-size: .88rem; white-space: nowrap; text-decoration: none !important; }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.pager { display: flex; gap: 6px; justify-content: center; margin: 28px 0; flex-wrap: wrap; }
.pager a { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 700; text-decoration: none; }
.pager a.on { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Forms */
label, .label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date], input[type=search], input[type=tel], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
textarea { resize: vertical; min-height: 110px; }
.field { margin-bottom: 18px; } .field small { color: var(--muted); }
.field .err, .err { color: var(--bad); font-weight: 600; font-size: .85rem; display: block; margin-top: 4px; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--bad); }
.fr { display: grid; gap: 0 14px; } @media (min-width: 640px) { .fr { grid-template-columns: 1fr 1fr; } .fr3 { grid-template-columns: 1fr 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.form-card { max-width: 520px; margin: 0 auto; }
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 600; font-size: .92rem; }
.alert-error { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.alert-info { background: color-mix(in srgb, var(--info) 12%, transparent); color: var(--info); }
.alert-warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: #b45309; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.role-pick label { margin: 0; }
.role-pick input { position: absolute; opacity: 0; }
.role-pick .opt { display: block; border: 2px solid var(--border); border-radius: 16px; padding: 16px; cursor: pointer; text-align: center; transition: .2s; }
.role-pick .opt b { display: block; font-size: 1.02rem; } .role-pick .opt small { color: var(--muted); font-weight: 500; }
.role-pick .opt .ico { font-size: 1.8rem; display: block; }
.role-pick input:checked + .opt { border-color: var(--p2); background: color-mix(in srgb, var(--p2) 7%, var(--surface)); box-shadow: 0 6px 18px rgba(221,42,123,.15); }
.captcha-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.captcha-row img { border-radius: 10px; border: 1px solid var(--border); background: #f4f2ff; }
.captcha-row input { width: 110px; text-align: center; font-weight: 800; font-size: 1.1rem; }

/* Profile */
.profile-head { display: grid; gap: 22px; align-items: center; }
@media (min-width: 760px) { .profile-head { grid-template-columns: auto 1fr auto; } }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); color: var(--text); text-decoration: none !important; }
.kpi span { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kpi b { display: block; font-size: 1.6rem; line-height: 1.3; }
.rate-card { display: grid; gap: 10px; }
.rate { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.rate b { font-size: 1.1rem; }
.review { border-top: 1px solid var(--border); padding: 14px 0; } .review:first-child { border-top: 0; }

/* Lists / tables */
.list { display: grid; gap: 10px; }
.item { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); color: var(--text); text-decoration: none !important; flex-wrap: wrap; }
a.item:hover { border-color: var(--accent); }
.status { padding: 4px 11px; border-radius: 99px; font-size: .76rem; font-weight: 800; white-space: nowrap; background: var(--surface-2); }
.st-offered, .st-pending { background: color-mix(in srgb, var(--info) 15%, transparent); color: var(--info); }
.st-accepted, .st-delivered { background: color-mix(in srgb, var(--warn) 18%, transparent); color: #b45309; }
.st-paid { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.st-completed, .st-paid_out, .st-open { background: color-mix(in srgb, var(--ok) 16%, transparent); color: #059669; }
.st-declined, .st-cancelled, .st-rejected, .st-closed, .st-withdrawn { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }

/* Deal timeline */
.timeline { display: flex; gap: 0; margin: 18px 0; overflow-x: auto; }
.tl { flex: 1; min-width: 92px; text-align: center; position: relative; font-size: .78rem; font-weight: 700; color: var(--muted); padding-top: 30px; }
.tl::before { content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%; background: var(--surface-2); border: 3px solid var(--border); z-index: 1; }
.tl::after { content: ''; position: absolute; top: 17px; left: -50%; width: 100%; height: 3px; background: var(--border); }
.tl:first-child::after { display: none; }
.tl.done { color: var(--text); } .tl.done::before { background: var(--ok); border-color: var(--ok); } .tl.done::after { background: var(--ok); }
.tl.now::before { background: var(--p2); border-color: var(--p2); box-shadow: 0 0 0 5px color-mix(in srgb, var(--p2) 25%, transparent); }

/* Messages */
.chat { display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--surface); min-height: 560px; }
@media (min-width: 860px) { .chat { grid-template-columns: 320px 1fr; } }
.convos { border-right: 1px solid var(--border); overflow-y: auto; max-height: 640px; }
.convo { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none !important; }
.convo:hover, .convo.on { background: var(--surface-2); }
.convo .last { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo .n { background: var(--p2); color: #fff; font-size: .7rem; font-weight: 800; border-radius: 99px; padding: 1px 7px; }
.thread { display: flex; flex-direction: column; min-height: 560px; }
.thread-head { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; gap: 12px; align-items: center; }
.bubbles { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 470px; }
.bub { max-width: 75%; padding: 10px 14px; border-radius: 18px; line-height: 1.5; background: var(--surface-2); align-self: flex-start; white-space: pre-wrap; overflow-wrap: anywhere; }
.bub.mine { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 4px; }
.bub:not(.mine) { border-bottom-left-radius: 4px; }
.bub time { display: block; font-size: .7rem; opacity: .7; margin-top: 2px; }
.composer { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--border); }
.composer textarea { min-height: 46px; height: 46px; resize: none; border-radius: 23px; padding: 11px 16px; }
@media (max-width: 859px) { .chat.has-thread .convos { display: none; } .chat:not(.has-thread) .thread { display: none; } }

/* Footer */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 24px; margin-top: 56px; }
.foot-grid { display: grid; gap: 28px; } @media (min-width: 760px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.foot-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.foot-grid a:not(.brand) { display: block; color: var(--text); padding: 3px 0; }
.foot-bottom { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 18px; font-size: .85rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in, html:not(.js) .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }
.star-input { display: inline-flex; gap: 4px; }
.star-input button { border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--border); padding: 0; }
.star-input button.on { color: #f59e0b; }

/* Live fee breakdown */
.fee-box{margin:4px 0 16px;padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2);font-size:.9rem}
.fee-box[hidden]{display:none}
.fee-box div{display:flex;justify-content:space-between;gap:12px;padding:3px 0;color:var(--muted)}
.fee-box b{color:var(--text);font-variant-numeric:tabular-nums}
.fee-box .fee-total{margin-top:4px;padding-top:8px;border-top:1px dashed var(--border);color:var(--text);font-weight:600}
.fee-box .fee-total b{color:var(--ok)}

/* PayU pay card */
.pay-card{max-width:440px;margin-top:12px;padding:18px;border:1px solid var(--border);border-radius:var(--r);background:var(--surface);box-shadow:var(--shadow)}
.pay-sum{padding:12px 14px;margin-bottom:16px;border-radius:12px;background:var(--surface-2);font-size:.92rem}
.pay-sum div{display:flex;justify-content:space-between;gap:12px;padding:3px 0;color:var(--muted)}
.pay-sum b{color:var(--text);font-variant-numeric:tabular-nums}
.pay-sum .pay-total{margin-top:6px;padding-top:9px;border-top:1px dashed var(--border);font-weight:700;color:var(--text);font-size:1.02rem}
.phone-group{display:flex;align-items:stretch;border:1.5px solid var(--border);border-radius:12px;background:var(--surface);overflow:hidden;transition:border-color .15s, box-shadow .15s}
.phone-group:focus-within{border-color:var(--accent);box-shadow:0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent)}
.phone-group .cc{display:flex;align-items:center;gap:4px;padding:0 12px;background:var(--surface-2);border-right:1px solid var(--border);font-weight:600;font-size:.92rem;white-space:nowrap}
.phone-group input{border:0!important;box-shadow:none!important;border-radius:0!important;letter-spacing:.04em;font-variant-numeric:tabular-nums;min-width:0;flex:1}
.has-error .phone-group{border-color:var(--bad)}
.pay-btn{display:flex;align-items:center;justify-content:center;gap:8px}
.pay-btn[disabled]{opacity:.75;cursor:progress}
.pay-methods{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:12px 0 6px}
.pay-methods span{font-size:.75rem;font-weight:600;padding:3px 10px;border-radius:99px;border:1px solid var(--border);color:var(--muted)}
.pay-foot{margin:6px 0 0;text-align:center;font-size:.8rem;color:var(--muted);line-height:1.5}
.err[hidden]{display:none!important}

/* ---------- Creator insights dashboard ---------- */
:root { --ci-bar: #7c3aed; }
:root[data-theme="dark"] { --ci-bar: #9b6bff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ci-bar: #9b6bff; } }
.ci { display: grid; gap: 14px; }
.ci-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.ci-tile { padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ci-tile span { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ci-tile b { font-size: 1.55rem; line-height: 1.2; color: var(--text); font-variant-numeric: tabular-nums; }
.ci-tile small { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.ci-chart { margin: 0; padding: 14px 16px 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); min-width: 0; }
.ci-chart figcaption { font-weight: 700; font-size: .92rem; margin-bottom: 8px; color: var(--text); }
.ci-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ci-row { position: relative; display: grid; grid-template-columns: minmax(96px, 44%) 1fr auto; align-items: center; gap: 8px; padding: 5px 6px; margin: 0 -6px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .83rem; }
.ci-row:hover, .ci-row:focus-visible { background: var(--surface-2); outline: none; }
.ci-row:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.ci-lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.ci-row.sel .ci-lbl { color: var(--text); font-weight: 700; }
.ci-track { height: 10px; border-radius: 0 4px 4px 0; background: transparent; display: block; min-width: 0; }
.ci-fill { display: block; height: 100%; background: var(--ci-bar); border-radius: 0 4px 4px 0; transition: width .3s ease; }
.ci-row.dim .ci-fill { opacity: .32; }
.ci-val { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); min-width: 2ch; text-align: right; }
.ci-note { margin: 8px 0 0; font-size: .75rem; color: var(--muted); }
.ci-row[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); background: var(--text); color: var(--surface); font-size: .75rem; font-weight: 600; padding: 5px 9px; border-radius: 8px; white-space: nowrap; pointer-events: none; z-index: 5; box-shadow: var(--shadow); }
.ci-range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.ci-range span { font-size: .8rem; color: var(--muted); }
.ci-range select, .ci-range input { min-width: 0; padding-left: 10px; padding-right: 6px; }
.ci-active { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; }
.ci-active .chip { font-size: .8rem; }
@media (max-width: 520px) { .ci-tile b { font-size: 1.3rem; } }
.ci-admin-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 14px; align-items: end; }
.ci-admin-form .field { margin-bottom: 14px; }
.ci-row, .ci-row:hover, .ci-row:hover * { text-decoration: none; }
.ci-row.dim .ci-fill { opacity: .4; }
