/* Vazirmatn — served locally (variable weight 100–900). No external font requests. */
@font-face { font-family: "Vazirmatn"; src: url("/assets/fonts/Vazirmatn.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ============================================================
   Mewshot — Stylesheet
   Palette: night ink + cat-eye amber + marquee blue
   Type:    Space Grotesk (display) / Inter (body)
   ============================================================ */

/* ---------- Theme tokens ----------
   Dark is the default; light applies with [data-theme="light"] or, when no
   choice is stored (data-theme="auto"), from the OS preference.        */
:root, [data-theme="dark"] {
  color-scheme: dark;
  --ink:       #101019;
  --surface:   #1a1a26;
  --surface-2: #222232;
  --line:      #2e2e42;
  --text:      #eaeaf2;
  --muted:     #9c9cb4;
  --accent:    #b50063;   /* magenta — button/bar fill     */
  --accent-ink:#ff6fb3;   /* magenta as text on dark bg    */
  --accent-soft: rgba(181,0,99,.16);
  --on-accent:  #ffffff;
  --accent-2:  #7bb8ff;   /* selection blue / links        */
  --danger:    #ff6b7a;
  --ok:        #59d9a4;
  --shadow:    0 10px 30px rgba(0,0,0,.35);
  --radius:    14px;
  --font-display: "Vazirmatn", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Vazirmatn", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
[data-theme="light"] {
  color-scheme: light;
  --ink:       #f6f5fb;
  --surface:   #ffffff;
  --surface-2: #ecebf4;
  --line:      #d9d7e6;
  --text:      #14131f;
  --muted:     #5b5a72;   /* 6.6:1 on white */
  --accent:    #b50063;
  --accent-ink:#b50063;   /* 6.4:1 on #f6f5fb */
  --accent-soft: rgba(181,0,99,.1);
  --on-accent:  #ffffff;
  --accent-2:  #1d63c8;   /* 6.1:1 on white  */
  --danger:    #c8323f;
  --ok:        #13805a;
  --shadow:    0 10px 30px rgba(20,19,31,.10);
}
@media (prefers-color-scheme: light) {
  [data-theme="auto"] {
    color-scheme: light;
    --ink:       #f6f5fb;
    --surface:   #ffffff;
    --surface-2: #ecebf4;
    --line:      #d9d7e6;
    --text:      #14131f;
    --muted:     #5b5a72;
    --accent:    #b50063;
    --accent-ink:#b50063;
    --accent-soft: rgba(181,0,99,.1);
    --accent-2:  #1d63c8;
    --danger:    #c8323f;
    --ok:        #13805a;
    --shadow:    0 10px 30px rgba(20,19,31,.10);
  }
}
[lang="fa"] { --font-display: "Vazirmatn", Tahoma, sans-serif; --font-body: "Vazirmatn", Tahoma, sans-serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand { font-family: var(--font-display); }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; }
.header-actions { margin-inline-start: auto; display: flex; gap: 10px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 0; width: 38px; height: 38px; place-items: center; cursor: pointer; }
.nav-toggle .ic { width: 20px; height: 20px; vertical-align: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 9px 18px; border-radius: 10px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .12s ease;
  font-family: var(--font-body);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #ffd075; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn-outline:hover { border-color: var(--muted); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Flash messages ---------- */
.flash { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; font-size: 15px; }
.flash-error   { background: rgba(255,107,122,.12); border: 1px solid rgba(255,107,122,.4); color: var(--danger); }
.flash-success { background: rgba(89,217,164,.12);  border: 1px solid rgba(89,217,164,.4);  color: var(--ok); }
.flash-info    { background: rgba(123,184,255,.12); border: 1px solid rgba(123,184,255,.4); color: var(--accent-2); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; text-align: center; }
.hero h1 {
  font-size: clamp(34px, 5.5vw, 56px);
  line-height: 1.12; letter-spacing: -0.02em; font-weight: 700;
}
.hero h1 .accent { color: var(--accent-ink); }
.hero .sub { color: var(--muted); max-width: 560px; margin: 18px auto 0; font-size: 18px; }

/* ---------- Signature: selection-marquee dropzone ---------- */
.dropzone-wrap { max-width: 720px; margin: 44px auto 0; position: relative; }
.dropzone {
  position: relative;
  border: 2px dashed rgba(123,184,255,.55);
  border-radius: 6px;
  background:
    linear-gradient(rgba(123,184,255,.045), rgba(123,184,255,.045)),
    var(--surface);
  padding: 64px 24px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent-2);
  background: linear-gradient(rgba(123,184,255,.09), rgba(123,184,255,.09)), var(--surface);
}
/* amber corner brackets, like a capture selection */
.dz-corner { position: absolute; width: 22px; height: 22px; border: 3px solid var(--accent); }
.dz-corner.tl { top: -3px; left: -3px; border-right: 0; border-bottom: 0; border-radius: 4px 0 0 0; }
.dz-corner.tr { top: -3px; right: -3px; border-left: 0; border-bottom: 0; border-radius: 0 4px 0 0; }
.dz-corner.bl { bottom: -3px; left: -3px; border-right: 0; border-top: 0; border-radius: 0 0 0 4px; }
.dz-corner.br { bottom: -3px; right: -3px; border-left: 0; border-top: 0; border-radius: 0 0 4px 0; }
.dz-chip {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent-2); color: #0b1a2c; font-family: var(--font-display);
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  letter-spacing: .04em;
}
.dz-icon { width: 44px; height: 44px; margin-bottom: 14px; opacity: .9; }
.dz-title { font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.dz-hint { color: var(--muted); margin-top: 6px; font-size: 14px; }
.dz-hint kbd {
  background: var(--surface-2); border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 5px; padding: 1px 6px; font-size: 12px; font-family: var(--font-body);
}

/* progress bar */
.progress { height: 6px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin-top: 18px; display: none; }
.progress-bar { height: 100%; width: 0%; background: var(--accent-2); transition: width .15s ease; }

/* upload result card */
.result-card {
  display: none; margin-top: 22px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; text-align: left;
}
.result-card.show { display: block; }
.result-thumb { max-width: 100%; max-height: 260px; border-radius: 8px; display: block; margin: 0 auto 18px; border: 1px solid var(--line); }
.link-row { display: flex; gap: 8px; margin-bottom: 10px; }
.link-row input {
  flex: 1; background: var(--ink); border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: var(--font-body);
}
.result-meta { color: var(--muted); font-size: 13px; margin-top: 8px; }
.result-meta a { color: var(--danger); }

/* ---------- Feature strip on home ---------- */
.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 64px 0; }
.feature-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 15px; }
.feature-card .glyph { font-size: 26px; margin-bottom: 12px; display: block; }

/* ---------- Generic page ---------- */
.page { padding: 56px 0 80px; max-width: 760px; margin: 0 auto; }
.page h1 { font-size: 36px; margin-bottom: 10px; letter-spacing: -0.02em; }
.page .lede { color: var(--muted); font-size: 18px; margin-bottom: 36px; }
.page h2 { font-size: 22px; margin: 36px 0 12px; }
.page p { margin-bottom: 14px; color: var(--text); opacity: .88; }
.page ul { margin: 0 0 14px; padding-inline-start: 22px; color: var(--text); opacity: .88; }
.page code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 14px; }
.page pre {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.5; margin-bottom: 16px;
}
.page pre code { background: none; border: 0; padding: 0; }

/* ---------- Auth forms ---------- */
.auth-wrap { max-width: 420px; margin: 64px auto 96px; padding: 0 20px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; background: var(--ink); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 11px 14px; font-size: 15px; font-family: var(--font-body);
}
.field input:focus { border-color: var(--accent-2); outline: none; }
.auth-alt { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14px; }

/* ---------- Dashboard ---------- */
.dash { padding: 48px 0 80px; }
.dash h1 { font-size: 30px; margin-bottom: 4px; }
.dash .sub { color: var(--muted); margin-bottom: 32px; }
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h2 { font-size: 19px; margin-bottom: 16px; }
.panel .hint { color: var(--muted); font-size: 14px; margin-bottom: 14px; }

.api-key-box { display: flex; gap: 8px; margin-bottom: 12px; }
.api-key-box input {
  flex: 1; background: var(--ink); border: 1px solid var(--line); color: var(--accent-ink);
  border-radius: 8px; padding: 10px 12px; font-size: 13px; font-family: monospace;
}

.upload-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.upload-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.upload-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.upload-table tr:last-child td { border-bottom: 0; }
.upload-table .thumb { width: 52px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.upload-table .muted { color: var(--muted); font-size: 13px; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-temp { background: rgba(181,0,99,.15); color: var(--accent-ink); }
.badge-perm { background: rgba(89,217,164,.15); color: var(--ok); }

.empty-state { text-align: center; color: var(--muted); padding: 40px 20px; }

/* ---------- Image view page ---------- */
.view-wrap { max-width: 900px; margin: 48px auto 96px; padding: 0 20px; text-align: center; }
.view-frame {
  display: inline-block; position: relative; border: 1px solid var(--line);
  border-radius: 8px; background: var(--surface); padding: 10px;
}
.view-frame img { max-width: 100%; max-height: 70vh; border-radius: 4px; display: block; }
.view-meta { color: var(--muted); font-size: 14px; margin-top: 16px; }
.view-actions { margin-top: 20px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.countdown { color: var(--accent-ink); font-weight: 600; }

/* ---------- Footer ---------- */

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .feature-strip { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   v2 additions — gate card, dashboard stats, API key passports,
   file analytics
   ============================================================ */

.header-email { color: var(--muted); font-size: 13px; align-self: center; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Sign-in gate on the homepage ---------- */
.gate-card { display: none; grid-template-columns: 180px 1fr; gap: 22px; align-items: center; border-color: rgba(181,0,99,.45); }
.gate-card.show { display: grid; }
.gate-preview { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--ink); }
.gate-preview img { display: block; width: 100%; height: 130px; object-fit: cover; filter: blur(3px) saturate(.7); transform: scale(1.04); }
.gate-preview::after {
  content: "🔒"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px;
  background: rgba(16,16,25,.35);
}
.gate-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.gate-text { color: var(--muted); font-size: 15px; margin: 6px 0 14px; }
.gate-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.gate-perks { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; color: var(--muted); font-size: 13px; }
.gate-perks span { color: var(--ok); display: inline-flex; align-items: center; gap: 4px; }
.pending-banner {
  background: rgba(181,0,99,.12); border: 1px solid rgba(181,0,99,.45); color: var(--accent-ink);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: 15px; text-align: center;
}

/* ---------- Dashboard layout ---------- */
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.dash-head .sub { margin-bottom: 0; }
.dash-head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.crumbs a { color: var(--muted); }
.code-tag { background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; font-size: 12px; font-family: monospace; color: var(--accent-2); }
.muted { color: var(--muted); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-grid-file { grid-template-columns: repeat(6, 1fr); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat-n { font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1.1; }
.stat-l { color: var(--muted); font-size: 13px; margin-top: 4px; }
.stat-wide { grid-column: 1 / -1; }
.country-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.chip { background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px; padding: 3px 11px; font-size: 13px; }

.panel { margin-bottom: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2 { margin-bottom: 0; }
.search-form { display: flex; gap: 6px; }
.search-form input { background: var(--ink); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 12px; font-size: 14px; font-family: var(--font-body); min-width: 220px; }
.row-actions { white-space: nowrap; text-align: right; }
.badge-off      { background: rgba(156,156,180,.15); color: var(--muted); }
.badge-view     { background: rgba(123,184,255,.15); color: var(--accent-2); }
.badge-download { background: rgba(89,217,164,.15); color: var(--ok); }
.badge-direct   { background: rgba(181,0,99,.15); color: var(--accent-ink); }

/* ---------- API keys ---------- */
.newkey-card {
  background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 24px;
}
.newkey-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.newkey-card .hint { color: var(--muted); font-size: 14px; margin-bottom: 12px; }

.key-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px; }
.key-card.is-revoked { opacity: .6; }
.key-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.key-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.key-prefix code { font-family: monospace; font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.key-actions form { display: inline; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 20px; font-family: var(--font-body); }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-live   { background: rgba(89,217,164,.15); color: var(--ok); }
.status-live .dot { animation: pulse 1.4s ease-in-out infinite; }
.status-active { background: rgba(123,184,255,.15); color: var(--accent-2); }
.status-idle   { background: rgba(181,0,99,.15); color: var(--accent-ink); }
.status-new    { background: rgba(156,156,180,.15); color: var(--muted); }
.status-off    { background: rgba(255,107,122,.12); color: var(--danger); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.passport { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 18px; margin-top: 16px; }
.passport-1col { grid-template-columns: 1fr; gap: 10px; margin-top: 0; }
.passport dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.passport dd { font-size: 14px; margin-top: 2px; word-break: break-word; }

details.devices, details.rename { margin-top: 14px; }
details summary { cursor: pointer; color: var(--accent-2); font-size: 14px; }
details.devices table { margin-top: 10px; }
.inline-form { display: flex; gap: 8px; margin-top: 10px; }
.inline-form input { flex: 1; background: var(--ink); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 12px; font-size: 14px; font-family: var(--font-body); }

/* ---------- File passport ---------- */
.file-hero { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.file-preview { width: 100%; border-radius: 8px; border: 1px solid var(--line); display: block; background: var(--ink); }
.file-links .link-row:last-child { margin-bottom: 0; }

.timeline { display: flex; gap: 6px; align-items: flex-end; height: 140px; padding-top: 10px; }
.tl-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.tl-bar { flex: 1; width: 100%; display: flex; flex-direction: column-reverse; justify-content: flex-start; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.tl-seg { width: 100%; min-height: 0; }
.tl-view   { background: var(--accent-2); }
.tl-dl     { background: var(--ok); }
.tl-direct { background: var(--accent); }
.tl-n { font-size: 11px; color: var(--muted); height: 14px; margin-top: 4px; }
.tl-d { font-size: 11px; color: var(--muted); }
.legend { display: flex; gap: 16px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bar-row { display: grid; grid-template-columns: 1fr 120px 36px; gap: 10px; align-items: center; font-size: 14px; padding: 5px 0; }
.bar { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent-2); border-radius: 4px; }
.bar-n { text-align: right; color: var(--muted); font-size: 13px; }
.kv { display: flex; align-items: center; gap: 10px; justify-content: space-between; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv-head { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin-top: 14px; padding-bottom: 4px; }

.field select { width: 100%; background: var(--ink); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 11px 14px; font-size: 15px; font-family: var(--font-body); }
.field .check { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; cursor: pointer; }

@media (max-width: 820px) {
  .gate-card { grid-template-columns: 1fr; }
  .stat-grid, .stat-grid-file { grid-template-columns: 1fr 1fr; }
  .passport { grid-template-columns: 1fr 1fr; }
  .file-hero, .two-col { grid-template-columns: 1fr; }
  .header-email { display: none; }
  .upload-table { display: block; overflow-x: auto; }
}

/* ---------- Password field with eye toggle ---------- */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; background: transparent; color: var(--muted);
  border-radius: 8px; cursor: pointer; display: grid; place-items: center; padding: 0;
}
.pw-toggle:hover { color: var(--text); background: var(--surface-2); }
.pw-toggle svg { width: 20px; height: 20px; }
.pw-toggle:empty { display: none; } /* no JS → no button */

/* ---------- "Find Mew" captcha ---------- */
.captcha { margin: 18px 0 20px; padding: 14px; background: var(--ink); border: 1px solid var(--line); border-radius: 12px; }
.cap-head { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.cap-mark { width: 26px; height: 26px; flex-shrink: 0; }
.cap-head strong { display: block; font-family: var(--font-display); font-size: 15px; }
.cap-head span { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
.cap-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.cap-tile { position: relative; cursor: pointer; }
.cap-tile input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cap-art {
  display: block; aspect-ratio: 1 / 1; background: var(--surface); border: 2px solid var(--line);
  border-radius: 10px; padding: 5px; transition: transform .12s ease, border-color .12s ease;
}
.cap-art svg { width: 100%; height: 100%; display: block; }
.cap-tile:hover .cap-art { border-color: var(--muted); transform: translateY(-2px); }
.cap-tile input:checked + .cap-art { border-color: var(--accent); background: rgba(181,0,99,.12); transform: translateY(-2px); }
.cap-tile input:focus-visible + .cap-art { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.cap-hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
@media (max-width: 420px) { .cap-grid { grid-template-columns: repeat(3, 1fr); } }


/* ============================================================
   v3 — icons, header controls, RTL, misc
   ============================================================ */
.ic { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex-shrink: 0; }
.ic-lg { width: 28px; height: 28px; }
.ic-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; padding: 0;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.ic-btn:hover { color: var(--text); border-color: var(--muted); background: var(--surface-2); text-decoration: none; }
.ic-btn .ic { width: 18px; height: 18px; vertical-align: 0; }
.ic-btn .lang-code { font-size: 12px; font-weight: 700; font-family: var(--font-body); }
.header-controls { display: flex; gap: 8px; align-items: center; }
.btn .ic { margin-inline-end: 4px; }
.feature-card .glyph { color: var(--accent-ink); }
.feature-card .glyph .ic { width: 28px; height: 28px; }
.kv .ic, .dz-title .ic { margin-inline-end: 6px; color: var(--muted); }

/* logical-property fixes so RTL just works */
.header-actions { margin-inline-start: auto; }
.dz-corner.tl { left: auto; inset-inline-start: -3px; border-inline-end: 0; border-right: 0; }
.dz-corner.tr { right: auto; inset-inline-end: -3px; border-inline-start: 0; border-left: 0; }
.dz-corner.bl { left: auto; inset-inline-start: -3px; border-inline-end: 0; border-right: 0; }
.dz-corner.br { right: auto; inset-inline-end: -3px; border-inline-start: 0; border-left: 0; }
[dir="rtl"] .dz-corner.tl { border-right: 3px solid var(--accent); border-left: 0; border-radius: 0 4px 0 0; }
[dir="rtl"] .dz-corner.tr { border-left: 3px solid var(--accent); border-right: 0; border-radius: 4px 0 0 0; }
[dir="rtl"] .dz-corner.bl { border-right: 3px solid var(--accent); border-left: 0; border-radius: 0 0 4px 0; }
[dir="rtl"] .dz-corner.br { border-left: 3px solid var(--accent); border-right: 0; border-radius: 0 0 0 4px; }
.upload-table th { text-align: start; }
.row-actions { text-align: end; }
.bar-n { text-align: end; }
.pw-wrap input { padding-inline-end: 44px; padding-right: 14px; }
[dir="ltr"] .pw-wrap input { padding-right: 44px; }
.pw-toggle { right: auto; inset-inline-end: 6px; }
.nav-toggle { margin-inline-start: auto; }
.gate-card, .file-hero { direction: inherit; }
[dir="rtl"] .brand span { font-family: var(--font-display); }
[dir="rtl"] code, [dir="rtl"] pre, [dir="rtl"] .code-tag, [dir="rtl"] .key-prefix, [dir="rtl"] .link-row input, [dir="rtl"] .api-key-box input { direction: ltr; text-align: left; }
[dir="rtl"] .link-row { flex-direction: row-reverse; }
[dir="rtl"] .api-key-box { flex-direction: row-reverse; }
[dir="rtl"] .hero .sub, [dir="rtl"] .page p { line-height: 1.85; }

/* light-mode polish */
[data-theme="light"] .dropzone, [data-theme="auto"] .dropzone { box-shadow: var(--shadow); }
[data-theme="light"] .btn-primary { box-shadow: 0 2px 0 rgba(143,91,0,.25); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* table cell helpers */
.cell-user { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--surface-2); color: var(--accent-ink); font-weight: 700; font-family: var(--font-display); font-size: 14px;
}
.impersonate-bar {
  background: var(--accent); color: var(--on-accent); text-align: center; padding: 8px 16px; font-size: 14px; font-weight: 600;
}
.impersonate-bar a { color: inherit; text-decoration: underline; margin-inline-start: 10px; }


/* theme toggle icon swap */
#themeToggle .ic-moon { display: none; }
[data-theme="light"] #themeToggle .ic-sun { display: none; }
[data-theme="light"] #themeToggle .ic-moon { display: inline; }
@media (prefers-color-scheme: light) {
  [data-theme="auto"] #themeToggle .ic-sun { display: none; }
  [data-theme="auto"] #themeToggle .ic-moon { display: inline; }
}

/* ============================================================
   v4 — plans, pricing, media, paywall
   ============================================================ */
/* media players */
.view-frame video, .file-preview video, video.file-preview { width: 100%; max-height: 70vh; border-radius: 12px; background: #000; display: block; }
.audio-card { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 32px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; width: 100%; max-width: 560px; margin: 0 auto; color: var(--accent-ink); }
.audio-card audio { width: 100%; }
.audio-name { color: var(--text); font-weight: 600; }
.thumb-kind { display: inline-grid; place-items: center; background: var(--surface-2); color: var(--accent-ink); }
.thumb-kind .ic { width: 22px; height: 22px; }
.result-kind { display: grid; place-items: center; background: var(--surface-2); color: var(--accent-ink); }
.result-kind .ic { width: 32px; height: 32px; }

/* plan panel (dashboard) */
.plan-panel { border-color: rgba(181,0,99,.45); }
.plan-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.plan-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.plan-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 6px; }
.plan-title .ic { color: var(--accent-ink); }
.usage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 12px; }
.usage { background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.usage-l { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; gap: 8px; }
.usage-l span:first-child { display: inline-flex; align-items: center; gap: 4px; }
.usage-bar { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.usage-bar i { display: block; height: 100%; background: var(--accent-2); border-radius: 4px; transition: width .3s ease; }
.usage-bar i.hot { background: var(--danger); }
.usage-kinds { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-off { opacity: .45; text-decoration: line-through; }
.orders-mini .kv { padding: 8px 0; }
.upsell { margin-top: 10px; padding: 10px 12px; background: rgba(181,0,99,.12); border: 1px solid rgba(181,0,99,.4); border-radius: 10px; font-size: 13px; color: var(--text); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.upsell .ic { color: var(--accent-ink); }

/* locked passport teaser */
.locked-panel { position: relative; overflow: hidden; min-height: 260px; }
.locked-blur { filter: blur(6px); opacity: .5; pointer-events: none; }
.locked-body { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 20px; background: color-mix(in srgb, var(--surface) 55%, transparent); }
.locked-body .ic-lg { color: var(--accent-ink); }
.locked-body p { color: var(--muted); max-width: 460px; margin: 0 0 6px; }

/* pricing */
.page.pricing { max-width: 1180px; }
.pricing .lede { max-width: 640px; }
.period-switch { display: flex; justify-content: center; gap: 6px; margin: 24px auto 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 5px; width: max-content; max-width: 100%; }
.period-switch button { border: 0; background: transparent; color: var(--muted); padding: 9px 16px; border-radius: 9px; cursor: pointer; font-family: var(--font-body); font-size: 14px; font-weight: 500; min-height: 38px; }
.period-switch button.active { background: var(--accent); color: var(--on-accent); }
.period-switch .save { font-size: 12px; font-weight: 700; opacity: .85; }
.plan-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.plan-card.popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan-card.current { border-color: var(--ok); }
.ribbon { position: absolute; top: -12px; inset-inline-start: 18px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.plan-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.plan-name .ic { color: var(--accent-ink); }
.plan-tag { color: var(--muted); font-size: 14px; min-height: 40px; margin: 0; }
.plan-price .amount { font-family: var(--font-display); font-size: 34px; font-weight: 700; }
.plan-price .per { color: var(--muted); font-size: 14px; margin-inline-start: 4px; }
.plan-price .total { font-size: 13px; color: var(--muted); margin-top: 2px; }
.save-inline { color: var(--ok); font-weight: 600; }
.plan-list { list-style: none; padding: 0; margin: 6px 0 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; flex: 1; }
.plan-list li { display: flex; gap: 8px; align-items: flex-start; }
.plan-list li b { white-space: nowrap; }
.plan-price { display: flex; flex-direction: column; }
.plan-price .price-for { display: flex; flex-wrap: wrap; align-items: baseline; }
.plan-price .price-for[hidden] { display: none; }
.plan-price .total { flex-basis: 100%; }
.plan-list .ic { color: var(--ok); margin-top: 2px; }
.plan-list li.off { color: var(--muted); }
.plan-list li.off .ic { color: var(--muted); }
.compare td:first-child { color: var(--muted); }
.compare .ok .ic { color: var(--ok); width: 20px; height: 20px; }
.compare th, .compare td { text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: start; }
.faq { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--muted); }
.checkout-card { max-width: 520px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.voucher-list { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 1000px) { .plan-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .plan-cards { grid-template-columns: 1fr; } .usage-grid { grid-template-columns: 1fr; } .feature-grid { grid-template-columns: 1fr; } }

/* ============================================================
   v5 — discounts, notifications, announcements, ads
   ============================================================ */
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.price-line + .price-line { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); }
.was { color: var(--muted); font-size: 15px; text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--danger); }
.ribbon-sale { background: var(--danger); color: #fff; display: inline-flex; align-items: center; gap: 4px; }
.ribbon-sale .ic { width: 14px; height: 14px; }
.seg { display: inline-flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.seg a, .seg button { padding: 7px 14px; border-radius: 7px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg .active { background: var(--accent); color: var(--on-accent); }
.quote { background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 4px 14px; }
.quote .kv b.neg { color: var(--ok); }
.quote .kv-total { border-top: 2px solid var(--line); font-size: 18px; margin-top: 4px; padding-top: 10px; }
.quote .kv-total b { color: var(--accent-ink); }

/* bell */
.bell { position: relative; }
.bell-count { position: absolute; top: -4px; inset-inline-end: -4px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.notif-list { display: flex; flex-direction: column; gap: 8px; }
.notif { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.notif.unread { border-color: var(--accent); }
.notif-ic { color: var(--accent-ink); flex-shrink: 0; margin-top: 2px; }
.notif-body p { margin: 4px 0 6px; color: var(--muted); font-size: 14px; }

/* announcements */
.notices { padding-top: 14px; }
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-radius: 12px; margin-bottom: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.notice-body { flex: 1; }
.notice-body span { color: var(--muted); }
.notice-link { font-weight: 600; white-space: nowrap; }
.notice-x { background: transparent; border: 0; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }
.notice-info    { border-color: rgba(123,184,255,.45); }
.notice-success { border-color: rgba(88,214,141,.5); }
.notice-warning { border-color: rgba(255,120,120,.55); background: rgba(255,120,120,.08); }
.notice-promo   { border-color: var(--accent); background: rgba(181,0,99,.1); }

/* ads */
.ad { position: relative; margin: 22px auto 0; max-width: 728px; text-align: center; border: 1px dashed var(--line); border-radius: 10px; padding: 12px; }
.ad img { max-width: 100%; height: auto; border-radius: 6px; }
.ad-tag { position: absolute; top: -9px; inset-inline-start: 12px; background: var(--surface); color: var(--muted); font-size: 11px; padding: 1px 8px; border-radius: 8px; letter-spacing: .04em; text-transform: uppercase; }
.ad-files_top { margin: 0 0 18px; }
.price-line-irt .amount { font-size: 24px; }
.price-line-irt .was { font-size: 13px; }

/* ============================================================
   v6 — verification, phone sign-in, password reset
   ============================================================ */
.seg-block { display: flex; width: 100%; }
.seg-block a { flex: 1; justify-content: center; }
.otp-input { font-family: var(--font-mono); font-size: 26px; letter-spacing: .4em; text-align: center; }
.field label .forgot { float: inline-end; font-weight: 400; font-size: 13px; }
.verify-panel { border-color: rgba(123,184,255,.45); }
.verify-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.verify-row .chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: 14px; }
.chip-ok { border-color: var(--ok); color: var(--text); }
.chip-warn { border-color: rgba(255,120,120,.6); }
.vbadge { display: inline-flex; color: var(--ok); vertical-align: middle; }
.vbadge .ic { width: 14px; height: 14px; }

/* ============================================================
   v7 — navigation island (desktop), tab bar + bottom sheet (mobile),
   cute footer, live-chat launcher
   ============================================================ */
.main-nav { position: relative; display: flex; gap: 2px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.main-nav a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 14px; line-height: 1; white-space: nowrap; transition: color .2s; }
.main-nav a .ic { width: 15px; height: 15px; flex-shrink: 0; }
.header-actions .btn { white-space: nowrap; }
@media (max-width: 1360px) and (min-width: 821px) { .main-nav a { padding: 9px 11px; } .main-nav a .lbl { display: none; } .header-inner { gap: 14px; } }
.main-nav { min-width: 0; }
.main-nav a:hover { color: var(--text); text-decoration: none; }
.main-nav:not(.has-pill) a.active, .main-nav.has-pill a.is-lit { color: var(--on-accent); }
.main-nav.has-pill a.active:not(.is-lit) { color: var(--text); font-weight: 600; }
.nav-pill { position: absolute; top: 4px; left: 0; height: calc(100% - 8px); width: 0; background: var(--accent); border-radius: 999px; opacity: 0; transition: left .28s cubic-bezier(.4,0,.2,1), width .28s cubic-bezier(.4,0,.2,1), opacity .2s; box-shadow: 0 6px 16px rgba(181,0,99,.35); }
.nav-pill.on { opacity: 1; }
.main-nav a.badge-dot::after { content: ""; position: absolute; top: 6px; inset-inline-end: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-ink); }
.main-nav a.active.badge-dot::after { background: var(--on-accent); }

/* mobile tab bar + sheet */
.tabbar, .sheet, .sheet-backdrop { display: none; }
@media (max-width: 820px) {
  body { padding-bottom: 76px; }
  .main-nav, .header-actions .btn, .header-controls { display: none; }
  .header-actions { margin-inline-start: auto; }
  .nav-toggle { display: none; }
  .tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; border: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 500; font-family: inherit; border-radius: 12px; text-decoration: none; }
  .tabbar .ic { width: 22px; height: 22px; }
  .tabbar .active { color: var(--accent-ink); }
  .tabbar .active .ic { color: var(--accent-ink); }
  .tabbar .tab-main { margin-top: -22px; }
  .tabbar .tab-main .ic-wrap { width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; box-shadow: 0 10px 22px rgba(181,0,99,.4); border: 4px solid var(--ink); }
  .tabbar .tab-main .ic-wrap .ic { width: 24px; height: 24px; color: var(--on-accent); }
  .tab-count { position: absolute; top: 2px; inset-inline-end: calc(50% - 20px); background: var(--accent); color: var(--on-accent); font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; padding: 0 4px; }
  .sheet-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .sheet { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: var(--surface); border-radius: 22px 22px 0 0; padding: 10px 16px calc(20px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .32s cubic-bezier(.2,.8,.2,1); max-height: 86vh; overflow: auto; box-shadow: 0 -20px 50px rgba(0,0,0,.35); }
  body.sheet-open .sheet { transform: translateY(0); }
  body.sheet-open .sheet-backdrop { opacity: 1; pointer-events: auto; }
  .sheet-handle { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 14px; }
  .sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
  .sheet-head .who { display: flex; align-items: center; gap: 10px; font-weight: 600; }
  .sheet-head .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; }
  .sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .sheet-grid a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 16px; background: var(--ink); border: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 500; text-align: center; }
  .sheet-grid a .ic { width: 22px; height: 22px; color: var(--accent-ink); }
  .sheet-grid a.active { border-color: var(--accent); background: var(--accent-soft); }
  .sheet-row { display: flex; gap: 10px; margin-top: 14px; }
  .sheet-row .btn { flex: 1; justify-content: center; }
  .sheet-row .ic-btn { width: 44px; height: 44px; flex-shrink: 0; }
}

/* cute footer */
.site-footer { margin-top: 56px; padding: 0 0 36px; }
.footer-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px 26px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; overflow: hidden; }
.footer-card::before { content: ""; position: absolute; inset: auto -40px -60px auto; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); pointer-events: none; }
.footer-cat { width: 46px; height: 46px; flex-shrink: 0; filter: drop-shadow(0 6px 14px rgba(181,0,99,.35)); animation: catbob 4s ease-in-out infinite; }
@keyframes catbob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-4px) rotate(3deg); } }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { font-family: var(--font-display); font-size: 18px; display: block; }
.footer-brand p { color: var(--muted); font-size: 13px; margin: 2px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 4px; margin-inline-start: auto; }
.footer-links a { color: var(--muted); font-size: 13px; padding: 6px 10px; border-radius: 999px; }
.footer-links a:hover { color: var(--text); background: var(--ink); text-decoration: none; }
.footer-meta { flex-basis: 100%; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
.footer-meta .heart { color: var(--accent-ink); }
@media (max-width: 820px) { .footer-links { margin-inline-start: 0; } .footer-card { padding: 20px 18px 16px; } }

/* live chat widget */
.chat-widget { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 65; }
@media (max-width: 820px) { .chat-widget { bottom: 92px; inset-inline-end: 12px; } }
.chat-launch { position: relative; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 28px rgba(181,0,99,.45); transition: transform .2s; }
.chat-launch:hover { transform: translateY(-2px); }
.chat-launch .ic { width: 26px; height: 26px; color: var(--on-accent); }
.chat-badge { position: absolute; top: -4px; inset-inline-end: -4px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--ink); }
.chat-panel { position: absolute; bottom: 68px; inset-inline-end: 0; width: 340px; max-width: calc(100vw - 24px); height: 460px; max-height: calc(100vh - 120px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.35); display: flex; flex-direction: column; overflow: hidden; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--accent); color: var(--on-accent); }
.chat-head .ic-btn { border-color: transparent; color: var(--on-accent); }
.chat-status { font-size: 12px; opacity: .9; display: flex; align-items: center; gap: 6px; }
.chat-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #ccc; }
.chat-status .dot.on { background: #4be38a; box-shadow: 0 0 0 3px rgba(75,227,138,.3); }
.chat-body { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--ink); }
.chat-msg { max-width: 82%; display: flex; flex-direction: column; }
.chat-msg.me { align-self: flex-end; align-items: flex-end; }
.chat-msg.staff { align-self: flex-start; }
.chat-msg .bubble { padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.5; background: var(--surface-2); color: var(--text); word-break: break-word; }
.chat-msg.me .bubble { background: var(--accent); color: var(--on-accent); border-end-end-radius: 4px; }
.chat-msg.staff .bubble { border-end-start-radius: 4px; }
.chat-time { font-size: 10px; color: var(--muted); margin-top: 3px; }
.chat-sys { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 8px; }
.chat-form { padding: 10px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.chat-form input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--ink); color: var(--text); font-family: inherit; font-size: 14px; }
.chat-input { display: flex; gap: 8px; }
.chat-input .btn { padding: 8px 12px; }

/* ticket threads */
.ticket-list { display: flex; flex-direction: column; gap: 8px; }
.ticket-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink); color: var(--text); }
.ticket-row:hover { border-color: var(--accent); text-decoration: none; }
.thread { display: flex; flex-direction: column; gap: 12px; }
.thread-msg { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.thread-msg.mine { border-inline-start: 3px solid var(--accent-2); }
.thread-msg.staff { border-inline-start: 3px solid var(--accent); background: var(--accent-soft); }
.thread-msg.note { border-style: dashed; opacity: .85; }
.thread-meta { font-size: 13px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.thread-body { font-size: 15px; line-height: 1.7; white-space: pre-wrap; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 4px; }

/* admin chat console */
.chat-console { display: grid; grid-template-columns: 300px 1fr; gap: 16px; min-height: 560px; }
.chat-list { display: flex; flex-direction: column; gap: 6px; max-height: 70vh; overflow: auto; }
.chat-item { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--ink); cursor: pointer; }
.chat-item.active { border-color: var(--accent); background: var(--accent-soft); }
.chat-item .ci-top { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 14px; }
.chat-item .ci-last { color: var(--muted); font-size: 12px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item .unread { background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 9px; }
.chat-item.closed { opacity: .55; }
.chat-thread { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.chat-thread .chat-body { min-height: 380px; max-height: 60vh; }
.chat-thread-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .chat-console { grid-template-columns: 1fr; } }
.hero-note { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 18px auto 0; padding: 8px 14px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent); color: var(--text); font-size: 14px; }
.hero-note .ic { color: var(--accent-ink); }
.hero-note a { font-weight: 600; }
[hidden] { display: none !important; }

/* ============================================================
   v9 — wallet, invoices, payment methods, Google button
   ============================================================ */
.wallet-panel { border-color: var(--accent); }
.wallet-balances { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.wallet-bal { display: flex; flex-direction: column; }
.wallet-bal .amount { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--accent-ink); }
.kv b.pos { color: var(--ok); } .kv b.neg { color: var(--danger); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: -6px 0 12px; }
.seg-opt { flex: 1; cursor: pointer; }
.seg-opt span { display: block; text-align: center; padding: 7px 14px; border-radius: 7px; font-size: 14px; font-weight: 500; color: var(--muted); }
.seg-opt.active span { background: var(--accent); color: var(--on-accent); }
.pay-methods { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.pay-method { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink); }
.pay-method .pm-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex-shrink: 0; }
.pay-method .pm-body { flex: 1; font-size: 14px; }
.pay-method .pm-body .muted { font-size: 13px; }
.pay-method .btn { white-space: nowrap; }
.or-sep { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 16px 0 12px; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
@media (max-width: 600px) { .pay-method { flex-wrap: wrap; } .pay-method .btn { flex-basis: 100%; text-align: center; } }


/* ============================================================
   v10 — cute scrollbars, textarea, mobile sheet grid, feature page
   ============================================================ */
* { scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--ink))); border-radius: 999px; border: 2px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-ink); }
::-webkit-scrollbar-corner { background: transparent; }
.field textarea, .notes-box { width: 100%; min-height: 120px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--ink); color: var(--text); font-family: var(--font-body); font-size: 15px; line-height: 1.6; resize: vertical; }
.field textarea:focus, .notes-box:focus { border-color: var(--accent-2); outline: none; }
@media (max-width: 820px) {
  .sheet-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .sheet-grid a { flex: 1 1 calc(33.333% - 7px); max-width: calc(33.333% - 7px); min-width: 96px; }
  .sheet-row { align-items: center; }
  .sheet-row .btn { padding-inline: 10px; }
}

/* feature page */
.feat-hero { text-align: center; padding: 56px 0 24px; }
.feat-hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin: 0 0 12px; }
.feat-hero .lede { max-width: 640px; margin: 0 auto; }
.feat-stats { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 26px 0 10px; }
.feat-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.feat-stat b { color: var(--accent-ink); font-family: var(--font-display); font-size: 16px; }
.feat-section { margin-top: 48px; }
.feat-section h2 { display: flex; align-items: center; gap: 10px; font-size: 24px; margin: 0 0 6px; }
.feat-section h2 .ic { color: var(--accent-ink); }
.feat-section > p { color: var(--muted); margin: 0 0 18px; max-width: 720px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px; overflow: hidden; opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .25s; }
.feat-card.in { opacity: 1; transform: none; }
.feat-card::before { content: ""; position: absolute; inset: -40% auto auto -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); transition: transform .5s ease; pointer-events: none; }
.feat-card:hover { border-color: var(--accent); box-shadow: 0 14px 40px rgba(181,0,99,.22); transform: translateY(-4px); }
.feat-card:hover::before { transform: translate(20%, 20%) scale(1.4); }
.feat-card .glyph { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 14px; transition: transform .3s; }
.feat-card:hover .glyph { transform: rotate(-8deg) scale(1.08); }
.feat-card .glyph .ic { width: 24px; height: 24px; }
.feat-card h3 { margin: 0 0 8px; font-size: 17px; }
.feat-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.feat-card .tag { position: absolute; top: 14px; inset-inline-end: 14px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.feat-card.wide { grid-column: span 2; }
.feat-cta { margin: 56px 0 10px; text-align: center; padding: 36px 22px; border-radius: 22px; background: linear-gradient(135deg, var(--accent-soft), transparent 60%), var(--surface); border: 1px solid var(--line); }
.feat-cta h2 { margin: 0 0 8px; }
.feat-cta p { color: var(--muted); margin: 0 0 18px; }
.feat-marquee { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.feat-marquee span { font-size: 12px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr 1fr; } .feat-card.wide { grid-column: span 2; } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } .feat-card.wide { grid-column: auto; } }
@media (prefers-reduced-motion: reduce) { .feat-card { opacity: 1; transform: none; transition: none; } }

/* terms page + acceptance modal + file requests */
.terms-page { max-width: 820px; }
.terms-list { padding-inline-start: 22px; display: flex; flex-direction: column; gap: 18px; }
.terms-list h2 { font-size: 18px; margin: 0 0 6px; }
.terms-list p { margin: 0; color: var(--muted); line-height: 1.8; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; max-width: 460px; width: 100%; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.modal h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 20px; }
.modal h2 .ic { color: var(--accent-ink); }
.modal p { color: var(--muted); margin: 0 0 14px; }
.modal .check { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.modal .check input { width: auto; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.request-card { max-width: 560px; }
.req-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.req-head .ic-lg { color: var(--accent-ink); flex-shrink: 0; }
.req-head h1 { margin: 0; font-size: 24px; }
.req-desc { background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--muted); margin: 8px 0 16px; line-height: 1.7; }
#reqDz { min-height: 150px; margin: 6px 0 12px; }

.pdf-frame { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.txt-frame { height: 50vh; background: var(--surface); }

/* ============================================================
   v13 — Mewp marketplace
   ============================================================ */
.mewp-h2 { display: flex; align-items: center; gap: 8px; font-size: 22px; margin: 28px 0 12px; }
.mewp-h2 .ic { color: var(--accent-ink); }
.mewp-filters .kind-tabs { flex-wrap: wrap; }
.mewp-filters .kind-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; }
.mewp-filters .kind-tabs a.active { background: var(--accent); color: var(--on-accent); }
.mewp-filters .kind-tabs a:hover { text-decoration: none; color: var(--text); }
.mewp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mewp-grid.small { grid-template-columns: repeat(2, 1fr); }
.mewp-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--text); transition: transform .2s, border-color .2s, box-shadow .2s; }
.mewp-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 14px 34px rgba(181,0,99,.2); text-decoration: none; }
.mc-cover { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--accent-soft), var(--ink)); display: grid; place-items: center; color: var(--accent-ink); overflow: hidden; }
.mc-cover img { width: 100%; height: 100%; object-fit: cover; }
.mc-badges { position: absolute; top: 8px; inset-inline-start: 8px; display: flex; gap: 4px; }
.mbadge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 4px; }
.mbadge.featured { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.mbadge.fresh { color: var(--ok); }
.mbadge .ic { width: 12px; height: 12px; }
.mc-price { position: absolute; bottom: 8px; inset-inline-end: 8px; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.mc-price.free { color: var(--ok); }
.mc-price.paid { color: var(--accent-ink); }
.mc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.mc-body strong { font-size: 15px; line-height: 1.3; }
.mc-meta { font-size: 12px; }
.mc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; font-size: 12px; }
.stars i { font-style: normal; color: var(--line); font-size: 13px; }
.stars i.on { color: #f5b301; }
.mewp-head { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.mewp-cover { aspect-ratio: 1; border-radius: 18px; background: linear-gradient(135deg, var(--accent-soft), var(--ink)); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent-ink); overflow: hidden; }
.mewp-cover img { width: 100%; height: 100%; object-fit: cover; }
.mewp-info h1 { font-size: clamp(24px, 4vw, 36px); margin: 4px 0 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mewp-meta { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mewp-desc { margin: 14px 0; line-height: 1.8; color: var(--text); }
.mewp-buy { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.mewp-items { display: flex; flex-direction: column; gap: 10px; }
.mewp-item { display: grid; grid-template-columns: 32px 1fr 220px; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.mewp-item.locked { opacity: .75; }
.mi-n { color: var(--muted); font-family: var(--font-display); text-align: center; }
.mi-media { min-height: 48px; display: flex; align-items: center; }
.mi-media img { max-width: 100%; max-height: 420px; border-radius: 10px; }
.mi-media video { width: 100%; max-height: 420px; border-radius: 10px; background: #000; }
.mi-media audio { width: 100%; }
.mi-media .pdf-frame { height: 420px; }
.mi-lock { width: 100%; min-height: 80px; border-radius: 10px; border: 1px dashed var(--line); display: grid; place-items: center; color: var(--muted); }
.mi-body { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.mewp-items.protected img, .mewp-items.protected video { -webkit-user-drag: none; user-select: none; }
.rate-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.star-pick { display: inline-flex; flex-direction: row-reverse; }
.star-pick input { display: none; }
.star-pick label { font-size: 26px; color: var(--line); cursor: pointer; padding: 0 2px; }
.star-pick input:checked ~ label, .star-pick label:hover, .star-pick label:hover ~ label { color: #f5b301; }
.rate-form input[type=text] { flex: 1; min-width: 180px; }
.pool { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-height: 360px; overflow: auto; }
.pool-item { display: flex; align-items: center; gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 13px; }
.pool-item:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pool-item input { width: auto; }
.creator-head { display: flex; align-items: center; gap: 16px; margin: 20px 0 22px; }
.avatar.big { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 26px; font-weight: 700; }
@media (max-width: 1000px) { .mewp-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .mewp-grid { grid-template-columns: repeat(2, 1fr); } .mewp-head { grid-template-columns: 1fr; } .mewp-cover { max-width: 320px; } .mewp-item { grid-template-columns: 28px 1fr; } .mewp-item .mi-body { grid-column: 2; } }
@media (max-width: 480px) { .mewp-grid, .mewp-grid.small { grid-template-columns: 1fr; } }
.mewp-filters .filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mewp-filters .filters input[type=search], .mewp-filters .filters select { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-family: inherit; font-size: 14px; }
.mewp-filters .filters input[type=search] { flex: 1; min-width: 200px; }


/* ============================================================
   v14 — File Shield viewer
   ============================================================ */
.shield-view { position: relative; overflow: hidden; border-radius: 14px; background: var(--ink); user-select: none; -webkit-user-select: none; }
.shield-view img, .shield-view video { display: block; max-width: 100%; margin: 0 auto; -webkit-user-drag: none; pointer-events: auto; }
.shield-view video { width: 100%; max-height: 78vh; background: #000; }
.shield-view audio { width: 100%; display: block; padding: 20px; }
.shield-view .wm-move { position: absolute; z-index: 5; padding: 6px 12px; color: rgba(255,255,255,.55); font-size: clamp(12px, 1.6vw, 18px); font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.6); pointer-events: none; transition: left 1.2s ease, top 1.2s ease; white-space: nowrap; direction: ltr; }
.shield-view .wm-brand { position: absolute; z-index: 5; bottom: 10px; inset-inline-start: 12px; color: rgba(255,255,255,.7); font-size: 13px; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.6); pointer-events: none; }
.shield-view.kind-audio .wm-move { position: static; display: inline-block; margin: 0 20px 14px; color: var(--muted); text-shadow: none; }
.shield-view .pdf-canvas { padding: 8px; max-height: 80vh; overflow: auto; }
.shield-view .pdf-pages canvas { display: block; margin: 0 auto 8px; max-width: 100%; box-shadow: 0 4px 16px rgba(0,0,0,.35); }
.shield-view .txt-view { margin: 0; padding: 18px; max-height: 60vh; overflow: auto; white-space: pre-wrap; font-family: var(--font-mono); font-size: 14px; color: var(--text); direction: ltr; text-align: left; }
.shield-banner { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--accent); color: var(--text); font-size: 13px; }
.shield-banner .ic { color: var(--accent-ink); flex-shrink: 0; }
.view-frame.shielded { padding: 0; }
@media print { [data-shield] { display: none !important; } }


/* feature spotlights (Mewp / File Shield) */
.spotlights { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.spot { position: relative; overflow: hidden; border-radius: 24px; padding: 30px 28px 26px; border: 1px solid var(--line); background: var(--surface); min-height: 380px; display: flex; flex-direction: column; opacity: 0; transform: translateY(18px); animation: spotin .7s cubic-bezier(.2,.8,.2,1) forwards; }
.spot-shield { animation-delay: .15s; }
@keyframes spotin { to { opacity: 1; transform: none; } }
.spot::before { content: ""; position: absolute; inset: -30% -30% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 68%); pointer-events: none; }
.spot-shield::before { background: radial-gradient(circle, rgba(123,184,255,.22), transparent 68%); }
.spot-kicker { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.spot-shield .spot-kicker { color: var(--accent-2); }
.spot h2 { font-size: clamp(22px, 3vw, 30px); margin: 10px 0 8px; line-height: 1.2; max-width: 80%; }
.spot > p { color: var(--muted); margin: 0 0 14px; max-width: 78%; line-height: 1.7; }
.spot ul { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 7px; font-size: 14px; max-width: 78%; }
.spot ul li { display: flex; align-items: center; gap: 8px; }
.spot ul li .ic { color: var(--ok); flex-shrink: 0; }
.spot-cta { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.spot-art { position: absolute; inset-inline-end: 22px; bottom: 26px; width: 150px; height: 150px; pointer-events: none; }
.spot-card { position: absolute; width: 74px; height: 92px; border-radius: 14px; background: var(--ink); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent-ink); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.spot-card .ic { width: 28px; height: 28px; }
.spot-card.c1 { inset-inline-start: 0; bottom: 30px; transform: rotate(-10deg); animation: float1 5s ease-in-out infinite; }
.spot-card.c2 { inset-inline-start: 40px; bottom: 48px; transform: rotate(4deg); animation: float1 6s ease-in-out infinite .6s; }
.spot-card.c3 { inset-inline-start: 80px; bottom: 26px; transform: rotate(14deg); animation: float1 5.5s ease-in-out infinite 1.2s; }
.spot-price { position: absolute; top: 4px; inset-inline-end: 4px; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; box-shadow: 0 10px 24px rgba(181,0,99,.45); animation: pulse 2.4s ease-in-out infinite; }
@keyframes float1 { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.shield-art .wm-demo { position: absolute; inset: 0; border-radius: 18px; background: linear-gradient(135deg, #2a2340, #0f2b3a); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.shield-art .wm-demo span { position: absolute; color: rgba(255,255,255,.28); font-size: 10px; white-space: nowrap; transform: rotate(-28deg); direction: ltr; }
.shield-art .wm-demo span:nth-child(1) { top: 14px; left: -20px; } .shield-art .wm-demo span:nth-child(2) { top: 70px; left: 10px; animation: wmslide 3s linear infinite; } .shield-art .wm-demo span:nth-child(3) { top: 124px; left: -30px; }
@keyframes wmslide { 0% { transform: rotate(-28deg) translateX(-10px); } 100% { transform: rotate(-28deg) translateX(30px); } }
.shield-art .wm-demo i { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-2); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(123,184,255,.45); }
.shield-art .wm-demo i .ic { width: 24px; height: 24px; }
@media (max-width: 860px) { .spotlights { grid-template-columns: 1fr; } .spot h2, .spot > p, .spot ul { max-width: 100%; } .spot-art { position: relative; inset: auto; width: 100%; height: 150px; margin-top: 14px; } .spot-card.c1 { inset-inline-start: 20%; } .spot-card.c2 { inset-inline-start: 40%; } .spot-card.c3 { inset-inline-start: 60%; } }


/* v16 — layout & hero polish */
main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }
.header-inner { flex-wrap: nowrap; }
.main-nav { flex: 0 0 auto; }
.header-actions, .header-controls { flex-shrink: 0; }
@media (max-width: 1360px) and (min-width: 821px) { .main-nav a { padding: 9px 10px; } .header-inner { gap: 10px; } }
.btn-sm { padding: 8px 12px; font-size: 13px; }
.btn-sm .ic { width: 15px; height: 15px; }
.hero-type { position: relative; }
.hero-type .caret { display: inline-block; width: 3px; height: .9em; margin-inline-start: 4px; vertical-align: -0.1em; background: var(--accent-ink); border-radius: 2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hero-type.typing .t1, .hero-type.typing .t2 { min-height: 1em; }
.hero { padding-bottom: 28px; }
@media (prefers-reduced-motion: reduce) { .hero-type .caret { display: none; } }

/* v19 — chat icon centering */
.chat-launch .ic, .chat-input .btn .ic { margin: 0; }
.chat-input .btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 42px; padding: 0; flex-shrink: 0; }
.chat-head .ic-btn { display: inline-flex; align-items: center; justify-content: center; }
