:root {
  --ink: #0d0b1a;
  --ink2: #17142b;
  --paper: #f6f5fb;
  --white: #fff;
  --text: #16142a;
  --muted: #625f7a;
  /* from the YouPhix logo: cyan → blue → violet */
  --brand: #4a4dff;
  --brand-d: #3631e6;
  --grad: linear-gradient(90deg, #22c8ff, #3b5bff 45%, #a93bff);
  --mint: #2fd18b;
  --red: #e5484d;
  --line: #e5e3ef;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body { font-family: var(--sans); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.hidden { display: none !important; }
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn:hover { border-color: var(--text); }
.btn.primary { background: linear-gradient(90deg, #3b5bff, #8b3bff); border-color: transparent; color: #fff; }
.btn.primary:hover { filter: brightness(1.1); box-shadow: 0 10px 28px rgba(74, 77, 255, .4); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.danger { color: var(--red); border-color: #f3c4c6; }
.btn.danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn.sm { padding: 8px 13px; font-size: 13px; border-radius: 10px; }
.btn.lg { padding: 16px 28px; font-size: 16px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 21px; text-decoration: none; letter-spacing: -.02em; color: var(--ink); }
.logo.on-dark { color: #fff; }
.logo img { width: 36px; height: 36px; object-fit: contain; }
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo small { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0; }

/* ---------------- home ---------------- */
.home { background: var(--ink); color: #fff; }
.h-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px max(20px, calc((100vw - 1140px) / 2)); }
.h-nav .btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.h-hero { padding: 70px 20px 90px; text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(124,92,255,.35), transparent 60%); }
.h-hero .pill { display: inline-block; padding: 6px 14px; border-radius: 99px; background: rgba(124,92,255,.18); border: 1px solid rgba(124,92,255,.45); font-size: 13px; font-weight: 600; color: #cfc4ff; margin-bottom: 22px; }
.h-hero h1 { font-size: clamp(40px, 7vw, 78px); line-height: 1.02; letter-spacing: -.035em; max-width: 14ch; margin: 0 auto; }
.h-hero h1 span { background: linear-gradient(90deg, #2fd2ff, #5b6bff 50%, #b84dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-hero > p { font-size: 19px; color: #b7b2d3; max-width: 52ch; margin: 22px auto 0; line-height: 1.6; }
.claim { margin: 36px auto 0; max-width: 560px; background: #fff; color: var(--text); border-radius: 18px; padding: 8px; display: flex; gap: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.claim .field { flex: 1; display: flex; align-items: center; padding: 0 6px 0 14px; min-width: 0; font-weight: 600; }
.claim .field span { color: var(--muted); white-space: nowrap; }
.claim input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 14px 2px; font-weight: 700; background: transparent; }
.claim-msg { min-height: 24px; margin-top: 12px; font-size: 14px; font-weight: 600; }
.claim-msg.ok { color: var(--mint); }
.claim-msg.bad { color: #ff8b8f; }
.h-sec { background: var(--paper); color: var(--text); padding: 90px max(20px, calc((100vw - 1140px) / 2)); }
.h-sec h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.03em; text-align: center; margin-bottom: 40px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.steps b { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; margin-bottom: 14px; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { color: var(--muted); line-height: 1.6; }
.themes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.theme-card { border-radius: 16px; padding: 18px; min-height: 140px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); }
.theme-card i { display: block; height: 10px; width: 70%; border-radius: 6px; background: currentColor; opacity: .85; }
.theme-card i + i { width: 45%; margin-top: 8px; opacity: .45; }
.theme-card span { display: inline-block; width: 54px; height: 18px; border-radius: 6px; }
.theme-card b { font-size: 14px; }
.h-cta { text-align: center; }
.h-foot { padding: 30px 20px; text-align: center; color: #8f8aab; font-size: 14px; }

/* ---------------- home: 3D scroll story ---------------- */
.home .h-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 30; background: linear-gradient(rgba(13,11,26,.85), rgba(13,11,26,0)); }
.story { position: relative; height: 760vh; background: radial-gradient(ellipse at 50% 40%, #1d1645 0%, #0d0b1a 60%); }
.st-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; perspective: 1500px; --outro: 0; }
.st-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.st-scene { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; opacity: calc(1 - var(--outro) * 0.6); }
/* no will-change: opacity here — it flattens preserve-3d and breaks the card flip */
.st-scene > * { position: absolute; transform-style: preserve-3d; will-change: transform; }

.st-captions { position: absolute; z-index: 5; left: max(24px, calc((100vw - 1180px) / 2)); top: 50%; transform: translateY(-50%); width: 380px; height: 260px; pointer-events: none; }
.st-cap { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .5s; }
.st-cap.on { opacity: 1; transform: none; }
.st-cap b { font-size: 13px; letter-spacing: .2em; color: #8fb4ff; margin-bottom: 10px; }
.st-cap h2 { color: #fff; font-size: clamp(32px, 4vw, 52px); line-height: 1.04; letter-spacing: -.03em; }
.st-cap h2 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.st-cap p { color: #b7b2d3; font-size: 18px; line-height: 1.55; margin-top: 14px; max-width: 34ch; }
.st-hint { position: absolute; z-index: 5; left: 50%; bottom: 28px; transform: translateX(-50%); color: #b7b2d3; font-size: 14px; font-weight: 600; }
.st-hint span { display: inline-block; animation: stBob 1.6s ease-in-out infinite; }
@keyframes stBob { 50% { transform: translateY(6px); } }

/* photos + upload card */
.st-photo { width: 140px; height: 100px; margin: -50px 0 0 -70px; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 0 2px rgba(255,255,255,.08); }
.st-photo img, .st-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-card { width: 340px; height: 380px; margin: -190px 0 0 -170px; }
.st-face { position: absolute; inset: 0; border-radius: 22px; background: #fff; padding: 22px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.55); display: flex; flex-direction: column; gap: 14px; }
.st-face.back { transform: rotateY(180deg); }
.st-label { font-weight: 800; color: var(--text); font-size: 16px; }
.st-slots { display: grid; grid-template-columns: 140px 140px; grid-auto-rows: 100px; gap: 12px; justify-content: center; }
.st-slot { border-radius: 12px; border: 2px dashed #cfcbe0; overflow: hidden; background: var(--paper); }
.st-slot img { opacity: 0; }
.st-ok { margin-top: auto; font-weight: 800; color: #137a4b; opacity: 0; }
.st-typed { flex: 1; font-size: 17px; line-height: 1.6; color: var(--text); background: var(--paper); border-radius: 14px; padding: 16px; border: 1.5px solid var(--line); }
.st-caret { display: inline-block; width: 2px; height: 1.1em; background: var(--brand); vertical-align: -3px; margin-left: 2px; animation: stBlink 1s steps(1) infinite; }
@keyframes stBlink { 50% { opacity: 0; } }
.st-go { text-align: center; padding: 13px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 800; }
.st-orb { width: 160px; height: 160px; margin: -80px 0 0 -80px; border-radius: 50%; background: radial-gradient(circle, #fff 0%, #8fd8ff 22%, #6a5cff 48%, rgba(169,59,255,.35) 66%, transparent 72%); filter: blur(2px); box-shadow: 0 0 120px 40px rgba(106,92,255,.45); opacity: 0; }

/* finished website + phone */
.st-site { width: 760px; height: 480px; margin: -240px 0 0 -380px; border-radius: 16px; overflow: hidden; background: #fffaf3; box-shadow: 0 60px 140px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); opacity: 0; }
.st-bar { height: 38px; background: #f1f0f6; display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.st-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.st-bar i:nth-child(2) { background: #febc2e; } .st-bar i:nth-child(3) { background: #28c840; }
.st-bar span { margin-left: 12px; flex: 1; background: #fff; border-radius: 8px; padding: 5px 12px; font-size: 13px; font-weight: 600; color: var(--muted); min-height: 26px; }
.st-live { font-style: normal; font-size: 12px; font-weight: 800; color: #137a4b; opacity: 0; }
.st-page { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.st-blk { opacity: 0; }
.st-hero { position: relative; height: 230px; border-radius: 12px; overflow: hidden; }
.st-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-hero > div { position: relative; height: 100%; padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 8px; background: linear-gradient(90deg, rgba(30,18,10,.85), rgba(30,18,10,.2)); color: #fff; }
.st-hero small { font-size: 11px; font-weight: 800; letter-spacing: .2em; color: #ffcf9e; }
.st-hero strong { font-family: "Playfair Display", serif; font-size: 36px; line-height: 1.05; }
.st-hero span { font-size: 14px; opacity: .85; max-width: 32ch; }
.st-hero em, .st-mini em { align-self: flex-start; font-style: normal; font-weight: 800; font-size: 13px; background: #e8743b; padding: 8px 16px; border-radius: 9px; color: #fff; }
.st-row { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 92px; gap: 10px; }
.st-row img { width: 100%; height: 92px; object-fit: cover; border-radius: 10px; }
.st-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.st-feats div { background: #f6ece0; border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 700; color: #4a2c18; display: flex; gap: 8px; align-items: center; }
.st-phone { width: 210px; height: 430px; margin: -215px 0 0 -105px; border-radius: 34px; background: #0b0a12; padding: 12px; box-shadow: 0 50px 120px rgba(0,0,0,.65), 0 0 0 2px rgba(255,255,255,.12); opacity: 0; }
.st-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 64px; height: 16px; border-radius: 10px; background: #0b0a12; z-index: 2; }
.st-mini { height: 100%; border-radius: 24px; overflow: hidden; background: #fffaf3; display: flex; flex-direction: column; gap: 10px; padding-bottom: 12px; }
.st-mini > img { height: 170px; width: 100%; object-fit: cover; }
.st-mini strong { font-family: "Playfair Display", serif; font-size: 21px; line-height: 1.1; color: #2a1710; padding: 0 14px; }
.st-mini em { margin-left: 14px; }
.st-mini-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px; margin-top: auto; }
.st-mini-row img { height: 70px; width: 100%; object-fit: cover; border-radius: 8px; }

/* offer after the story */
.offer { position: relative; padding: 120px 20px 110px; text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(124,92,255,.35), transparent 60%), #0d0b1a; overflow: hidden; }
.offer .pill { display: inline-block; padding: 6px 14px; border-radius: 99px; background: rgba(124,92,255,.18); border: 1px solid rgba(124,92,255,.45); font-size: 13px; font-weight: 700; color: #cfc4ff; margin-bottom: 22px; }
.offer h2 { color: #fff; font-size: clamp(38px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -.035em; max-width: 15ch; margin: 0 auto; }
.price-tag { display: inline-block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 1.25em; }
.offer > p { color: #b7b2d3; font-size: 19px; max-width: 50ch; margin: 22px auto 0; line-height: 1.6; }
.offer-points { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; color: #d9d5ef; font-weight: 600; font-size: 15px; }
.offer-points li::before { content: "✓ "; color: #2fd18b; }

@media (max-width: 820px) {
  .story { height: 680vh; }
  .st-captions { left: 20px; right: 20px; top: 76px; transform: none; width: auto; height: 170px; }
  .st-cap { justify-content: flex-start; text-align: center; align-items: center; }
  .st-cap h2 { font-size: clamp(28px, 8vw, 38px); }
  .st-cap p { font-size: 15px; margin-top: 8px; }
  .offer { padding: 90px 16px 80px; }
  .offer > p { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .st-cap { transition: none; }
  .st-hint span, .st-caret { animation: none; }
}

/* ---------------- page view ---------------- */
.owner-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; background: var(--ink); color: #fff; font-size: 14px; }
.owner-bar .btn { padding: 6px 12px; font-size: 13px; color: var(--text); }
.notice { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; background: var(--paper); }
.notice h1 { font-size: 34px; letter-spacing: -.02em; margin-bottom: 10px; }
.notice p { color: var(--muted); margin: 0 auto 22px; max-width: 46ch; line-height: 1.6; }
.notice .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------------- editor ---------------- */
.ed { display: grid; grid-template-rows: auto 1fr; height: 100vh; height: 100dvh; }
.ed-top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--white); border-bottom: 1px solid var(--line); min-width: 0; }
.ed-url { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; background: var(--paper); font-size: 14px; min-width: 0; }
.ed-url span { color: var(--muted); }
.ed-url b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-url button { border: 0; background: none; cursor: pointer; color: var(--brand); font-weight: 700; font-size: 13px; }
.save-state { font-size: 13px; color: var(--muted); white-space: nowrap; }
.save-state.err { color: var(--red); }
.ed-top .grow { flex: 1; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; cursor: pointer; user-select: none; white-space: nowrap; }
.switch input { appearance: none; width: 40px; height: 22px; border-radius: 99px; background: #d4d1e3; position: relative; cursor: pointer; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked { background: var(--mint); }
.switch input:checked::after { transform: translateX(18px); }
.ed-body { display: grid; grid-template-columns: 400px 1fr; min-height: 0; }
.panel { overflow-y: auto; overflow-x: hidden; background: var(--white); border-right: 1px solid var(--line); padding: 12px 14px 60px; }
.panel details { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; background: #fff; }
.panel details[open] { box-shadow: 0 6px 20px rgba(22,20,42,.06); }
.panel summary { cursor: pointer; list-style: none; padding: 14px 16px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; }
.panel summary::-webkit-details-marker { display: none; }
.panel summary::after { content: "▾"; color: var(--muted); transition: transform .2s; }
.panel details[open] summary::after { transform: rotate(180deg); }
.panel .inner { padding: 2px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); min-width: 0; }
.f input, .f textarea, .f select { width: 100%; min-width: 0; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 500; color: var(--text); background: #fff; outline: none; }
.f textarea { resize: vertical; min-height: 86px; line-height: 1.5; }
.f input:focus, .f textarea:focus, .f select:focus { border-color: var(--brand); }
.f small { font-weight: 500; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.chk input { width: 18px; height: 18px; accent-color: var(--brand); }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.swatch { border: 2px solid var(--line); border-radius: 12px; padding: 10px; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 700; }
.swatch .dots { display: flex; gap: 4px; }
.swatch .dots i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.1); }
.swatch.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124,92,255,.18); }
.color-row { display: flex; align-items: center; gap: 10px; }
.color-row input[type=color] { width: 44px; height: 38px; border: 1.5px solid var(--line); border-radius: 10px; padding: 2px; background: #fff; cursor: pointer; }
.img-pick { display: flex; align-items: center; gap: 12px; }
.img-pick .ph { width: 92px; height: 64px; border-radius: 10px; background: var(--paper); border: 1.5px dashed #cfcbe0; display: grid; place-items: center; font-size: 11px; color: var(--muted); overflow: hidden; flex: none; }
.img-pick .ph img { width: 100%; height: 100%; object-fit: cover; }
.img-pick .ph.sq { width: 56px; height: 56px; }
.list-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.list-item .rm { position: absolute; top: 8px; right: 8px; }
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gal div { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--paper); }
.gal img { width: 100%; height: 100%; object-fit: cover; }
.gal button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; }
.gal label { aspect-ratio: 1; border: 1.5px dashed #cfcbe0; border-radius: 10px; display: grid; place-items: center; cursor: pointer; font-size: 12px; color: var(--muted); text-align: center; }
.danger-zone { border-color: #f3c4c6 !important; }
.ai-sec { border: 1.5px solid transparent !important; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box !important; }
.ai-ex { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 99px; padding: 6px 11px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--text); }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.ai-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-reply { background: #f1efff; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.5; color: var(--text); }
.preview-wrap { min-height: 0; overflow: hidden; display: flex; flex-direction: column; background: #e9e7f3; }
.preview-bar { display: flex; justify-content: center; gap: 6px; padding: 10px; }
.preview-bar button { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--muted); }
.preview-bar button.on { background: #fff; color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.preview-scroll { flex: 1; overflow: auto; padding: 0 20px 20px; }
.preview { margin: 0 auto; width: 100%; max-width: 1200px; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 60px rgba(22,20,42,.18); background: #fff; transition: max-width .3s; }
.preview.phone { max-width: 390px; }
.preview .yp-nav { position: static; }
.ed-tabs { display: none; }

/* ---------------- admin ---------------- */
.adm { max-width: 1180px; margin: 0 auto; padding: 24px 20px 80px; }
.adm-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.adm h2 { font-size: 22px; margin: 26px 0 12px; }
.table { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tr { display: grid; grid-template-columns: 1.2fr 1fr 110px 140px auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.tr:last-child { border-bottom: 0; }
.tr.head { background: var(--paper); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sub, .tr .sub { color: var(--muted); font-size: 12px; }
.tr .acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.tag { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; }
.tag.live { background: #dcf7ea; color: #137a4b; }
.tag.draft { background: #eceaf4; color: var(--muted); }
.tag.off { background: #fde2e3; color: var(--red); }
.empty { padding: 36px; text-align: center; color: var(--muted); }
.adm-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.adm-tabs button { border: 0; background: none; padding: 12px 14px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.adm-tabs button.on { color: var(--text); border-bottom-color: var(--brand); }
.dot-count { background: var(--red); color: #fff; font-size: 11px; border-radius: 99px; padding: 1px 7px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.stat b { display: block; font-size: 28px; letter-spacing: -.02em; }
.stat small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat.ok b { color: #137a4b; }
.stat.hot b { color: var(--red); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar input, .toolbar select { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 12px; font-size: 14px; outline: none; }
.toolbar input { flex: 1; min-width: 220px; }
.toolbar input:focus, .toolbar select:focus { border-color: var(--brand); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.card h3 { font-size: 18px; }
.note { background: #fff7e0; border: 1px solid #f3dd9a; color: #7a5b00; border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.flag { color: var(--red); font-weight: 700; }
.tr[hidden] { display: none; }
.users .tr { grid-template-columns: 1.4fr 1fr 110px 120px auto; }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.report-list { list-style: none; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.report-list li { font-size: 14px; line-height: 1.5; }
.report-list li div { margin-top: 4px; color: var(--text); }

/* ---------------- modal + toast ---------------- */
.modal-bg { position: fixed; inset: 0; z-index: 60; background: rgba(13,11,26,.55); display: grid; place-items: center; padding: 16px; }
.modal { background: #fff; color: var(--text); border-radius: 18px; padding: 24px; width: min(440px, 100%); display: flex; flex-direction: column; gap: 14px; font-family: var(--sans); }
.modal h3 { font-size: 20px; }
.modal p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.modal .row { display: flex; gap: 10px; justify-content: flex-end; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 140px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 14px; transition: transform .3s; max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); }
.toast.bad { background: var(--red); }

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; }
  .themes { grid-template-columns: repeat(3, 1fr); }
  .ed-body { grid-template-columns: 1fr; }
  .ed-tabs { display: flex; gap: 6px; padding: 8px 12px; background: var(--white); border-bottom: 1px solid var(--line); }
  .ed-tabs button { flex: 1; border: 0; background: var(--paper); padding: 10px; border-radius: 10px; font-weight: 800; cursor: pointer; }
  .ed-tabs button.on { background: var(--ink); color: #fff; }
  .ed { grid-template-rows: auto auto 1fr; }
  .ed[data-tab=edit] .preview-wrap, .ed[data-tab=preview] .panel { display: none; }
  .panel { border-right: 0; }
  .preview-bar { display: none; }
  .preview-scroll { padding: 12px; }
  .preview.phone, .preview { max-width: 100%; }
  .ed-top { flex-wrap: wrap; gap: 8px 10px; }
  .ed-top .logo span { display: none; }
  .ed-url { order: 5; flex: 1 1 100%; }
  .ed-top .grow { display: none; }
  .tr { grid-template-columns: 1fr auto; }
  .tr.head { display: none; }
  .tr > .hide-m { display: none; }
}
@media (max-width: 560px) {
  .claim { flex-direction: column; }
  .claim .btn { width: 100%; }
  .themes { grid-template-columns: repeat(2, 1fr); }
  .h-sec { padding: 64px 16px; }
  .h-hero { padding: 48px 16px 70px; }
  .h-hero > p { font-size: 17px; }
}
