:root {
  --accent: #1f8fff;
  --price: #1f8fff;
  --button: #1f8fff;
  --button-ink: #ffffff;
  --pix: #1f8fff;
  --bump-price: #1f9d55;
  --ink: #151821;
  --muted: #8b919c;
  --line: #e7ebf1;
  --bg: #eef1f5;
  --card: #ffffff;
  --danger: #c5362b;
  --ok: #14804a;
  --shadow: 0 16px 40px rgba(22, 32, 51, 0.06);
  font-family: Inter, "Segoe UI", sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  font-family: Inter, "Segoe UI", sans-serif;
  color: var(--ink);
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.head-notice {
  width: 100%;
  margin: 0;
  padding: 10px 16px;
  text-align: center;
  background: #1f8fff;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px 48px;
}
.card {
  width: min(460px, 100%);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 26px 22px 22px;
}
.brand { display: flex; gap: 14px; align-items: center; }
.logo-img, .logo-fallback {
  width: 72px;
  height: 58px;
  flex: 0 0 auto;
}
.logo-img { object-fit: contain; }
.logo-fallback {
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #08356e));
  color: white;
  font-weight: 800;
  font-size: 26px;
}
h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.seller { margin: 3px 0 0; color: #9aa1ab; font-size: 14px; font-weight: 500; }
.price {
  margin: 4px 0 0;
  color: var(--price);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 18px 0 6px; }
h2 { margin: 18px 0 12px; font-size: 16px; letter-spacing: -0.02em; }
.field { margin-bottom: 12px; }
label, .lbl {
  display: block;
  margin: 0 0 6px;
  color: #9aa1ab;
  font-size: 13px;
  font-weight: 500;
}
input:not([type="checkbox"]):not([type="color"]):not([type="file"]), textarea, select {
  width: 100%;
  border: 1px solid #e3e7ee;
  background: #fff;
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 74px; }
input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}
#form .field input.control {
  display: block;
  width: 100%;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #e3e7ee;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 46px;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}
.field-error { color: var(--danger); font-size: 12px; margin: 5px 2px 0; }
.field-error:empty { display: none; }
.alert {
  background: #fff1f0;
  color: var(--danger);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  margin: 0 0 12px;
}
.pix {
  border: 1.5px solid var(--pix);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px 16px;
  color: var(--pix);
  background: #fff;
}
.pix-mark { width: 28px; height: 28px; display: block; }
#pix-name {
  margin-top: 6px;
  color: var(--pix);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-indent: 0.12em;
  text-transform: uppercase;
}
.benefits {
  margin-top: 16px;
  background: #f4f6f8;
  border-radius: 14px;
  padding: 6px 14px;
}
.benefit { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; }
.benefit + .benefit { border-top: 1px solid #e8ebf0; }
.benefit svg { flex: 0 0 auto; margin-top: 1px; color: var(--accent); }
.benefit strong { display: block; color: var(--accent); font-size: 14px; }
.benefit span { display: block; color: #66707c; font-size: 13px; line-height: 1.4; margin-top: 1px; }
.offer {
  margin-top: 16px;
  color: inherit;
  border: 1.5px dashed #d5dae3;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  background: #fff;
  text-align: left;
  width: 100%;
}
.offer.on {
  border-style: solid;
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, white);
}
.offer-mark {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  border: 1px solid #eceff3;
  display: grid;
  place-items: center;
  color: #3d4c63;
  background: #fff;
}
.offer strong { display: block; font-size: 14px; }
.offer em { display: block; margin-top: 3px; color: #1f9d55; font-style: normal; font-weight: 800; font-size: 13px; }
.plus {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e4e8ef;
  background: #f7f8fa;
  color: #667;
  display: grid;
  place-items: center;
}
.offer.on .plus, .bump.on .plus { background: var(--accent); color: white; border-color: var(--accent); }
.totals { margin-top: 8px; }
.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  color: #8b919c;
  font-size: 14px;
}
.row.extra { color: var(--ink); font-weight: 600; padding: 2px 0 8px; align-items: center; }
.row.extra .extra-price { color: var(--bump-price); font-weight: 800; }
.bump-remove {
  border: 1px solid #f0d0d0;
  background: #fff;
  color: #b42318;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 5px 8px;
  margin-left: 8px;
}
.row.total {
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
  border-top: 1px solid var(--line);
  margin-top: 2px;
  padding-top: 12px;
}
.pay-btn, .primary {
  width: 100%;
  margin-top: 8px;
  background: var(--button);
  color: var(--button-ink);
  border: 0;
  border-radius: 10px;
  min-height: 52px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 15px;
}
.primary { background: var(--accent); color: #fff; }
.pay-btn:hover, .primary:hover { filter: brightness(0.97); }
.pay-btn:disabled, .primary:disabled { opacity: 0.65; cursor: wait; }
.secondary {
  width: 100%;
  margin-top: 10px;
  background: #fff;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  min-height: 46px;
  font-weight: 800;
}
.ghost {
  width: 100%;
  margin-top: 8px;
  background: transparent;
  color: #66707c;
  border: 0;
  min-height: 36px;
  font-weight: 700;
}
.seals { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 16px; }
.seal { display: flex; align-items: center; gap: 6px; color: #5d6772; }
.seal b, .seal small { display: block; }
.seal b { font-size: 9px; letter-spacing: 0.04em; text-transform: uppercase; }
.seal small { font-size: 10px; color: #8b939e; font-weight: 600; }
.proof {
  width: 100%;
  aspect-ratio: 765 / 1024;
  object-fit: cover;
  margin-top: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  display: block;
}
.proof-frame {
  width: 230px;
  aspect-ratio: 765 / 1024;
  margin: 8px 0 14px;
  border-radius: 16px;
  border: 1px dashed #c5ced8;
  background: #f6f8fb;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.proof-frame img { width: 100%; height: 100%; object-fit: cover; }
.proof-frame span { color: #8b939e; font-size: 13px; font-weight: 700; }
.secure-note {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  color: #6a7180;
  font-size: 12px;
  line-height: 1.45;
}
.secure-note svg { flex: 0 0 auto; color: var(--accent); margin-top: 1px; }
.top-banner {
  width: min(460px, 100%);
  aspect-ratio: 1200 / 675;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 14px;
  display: block;
}
.banner-preview { width: 240px; height: 135px; object-fit: cover; border-radius: 10px; border: 1px solid #e6eaf0; }
.bump-preview { width: 54px; height: 54px; object-fit: contain; border-radius: 12px; border: 1px solid #eceff3; background: #fff; }
.bump {
  position: relative;
  width: 100%;
  margin: 22px 0 8px;
  border: 1.5px dashed #d5dbe3;
  border-radius: 16px;
  background: #fff;
  padding: 18px 12px 12px;
  color: inherit;
  text-align: left;
}
.bump.on { border-style: solid; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, white); box-shadow: 0 8px 20px rgba(31, 143, 255, 0.08); }
.bump-added {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, white);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}
.bump-bolt {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #f5b400;
  line-height: 0;
  padding: 0 6px;
}
.bump-body { display: grid; grid-template-columns: 58px 1fr 40px; gap: 12px; align-items: center; }
.bump-img {
  width: 54px; height: 54px; border-radius: 12px; border: 1px solid #eceff3;
  display: grid; place-items: center; overflow: hidden; background: #fff; color: #5c6b7a;
}
.bump-img img { width: 100%; height: 100%; object-fit: contain; }
.bump strong { display: block; font-size: 14px; }
.bump em { display: block; margin-top: 3px; color: var(--bump-price); font-style: normal; font-weight: 800; font-size: 13px; }
.bump-edit { border: 1px solid #e7ebf1; border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.pay-screen { width: min(460px, 100%); display: flex; flex-direction: column; align-items: center; }
.pay-intro { text-align: center; margin-bottom: 12px; }
.pay-intro h1 { font-size: 22px; line-height: 1.25; }
.pay-intro p { margin: 8px 0 0; color: #6d7580; font-size: 14px; line-height: 1.45; }
.notice {
  width: 100%;
  background: #e7f3fc;
  color: #3c5870;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 14px;
}
.pay-card, .steps-card { width: 100%; }
.timer-row { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 10px; }
.clock { display: inline-flex; gap: 4px; align-items: center; }
.clock b {
  width: 22px; height: 28px; border-radius: 4px; background: #e5484d; color: #fff;
  display: grid; place-items: center; font-size: 14px;
}
.clock span { color: #e5484d; font-weight: 800; margin: 0 1px; }
.pay-split { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pay-split small { display: block; color: #98a0ab; font-size: 12px; font-weight: 500; }
.pay-split strong { display: block; margin-top: 2px; font-size: 18px; }
.pay-split .end { text-align: right; }
.pay-split .end strong { font-size: 14px; font-weight: 700; max-width: 180px; }
.desktop-hint { text-align: center; color: #8b919c; font-size: 13px; line-height: 1.4; margin: 14px 8px; }
.qr-frame { position: relative; width: 220px; margin: 6px auto 22px; padding: 12px 12px 18px; border: 1px dashed #e1e5ec; border-radius: 16px; }
.qr-frame img { width: 100%; height: auto; display: block; }
.qr-cap {
  position: absolute; left: 50%; bottom: -11px; transform: translateX(-50%);
  background: #fff; border: 1px solid #eceff3; border-radius: 999px;
  font-size: 12px; color: #66707c; padding: 3px 10px; white-space: nowrap;
}
.perks { display: grid; grid-template-columns: 1fr 1fr 1fr; margin: 8px 0 14px; }
.perk { text-align: center; padding: 0 6px; color: #1f9d55; }
.perk + .perk { border-left: 1px solid #eceff3; }
.perk strong, .perk span { display: block; color: #3d4652; font-size: 12px; line-height: 1.3; }
.perk strong { margin-top: 6px; }
.copy-btn { text-transform: none; letter-spacing: 0; }
.soft {
  width: 100%; margin-top: 10px; background: #e7f2ff; color: var(--accent);
  border: 0; border-radius: 10px; min-height: 48px; font-weight: 800;
}
.pay-note { text-align: center; color: #8b919c; font-size: 12px; line-height: 1.4; margin: 10px 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.steps-card { margin-top: 14px; }
.steps-card h2 { text-align: center; margin-top: 0; }
.step { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; }
.step i {
  width: 26px; height: 26px; border-radius: 50%; background: #e7f2ff; color: var(--accent);
  display: grid; place-items: center; font-style: normal; font-weight: 800; flex: 0 0 auto;
}
.step strong { display: block; font-size: 14px; }
.step span { display: block; color: #66707c; font-size: 13px; line-height: 1.4; margin-top: 2px; }
.page-foot { width: min(460px, 100%); text-align: center; color: #98a0ab; font-size: 13px; margin-top: 18px; }
.page-foot .lockline { display: inline-flex; align-items: center; gap: 6px; }
.links { display: flex; gap: 14px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }
.links a, .links span { color: #98a0ab; text-decoration: none; font-size: 13px; }
.ribbon {
  width: min(460px, 100%);
  margin-bottom: 10px;
  background: #fff7e8;
  color: #8a5a00;
  border-radius: 999px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
}
.pay-head { text-align: center; }
.eyebrow { margin: 0; color: #8b919c; font-size: 13px; font-weight: 600; }
.pay-head .price { font-size: 28px; }
.status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #8a5a00;
  background: #fff7e8;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}
.status-line.paid { color: var(--ok); background: #e8f8ef; }
.status-line.bad { color: var(--danger); background: #fff1f0; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.5s infinite;
}
.status-line.paid .dot, .status-line.bad .dot { animation: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); }
  100% { box-shadow: 0 0 0 8px transparent; }
}
.qr-wrap { display: grid; place-items: center; margin: 16px 0; }
.qr-wrap img { width: 232px; height: 232px; border-radius: 16px; border: 1px solid var(--line); background: white; }
.code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-all;
}
.success { text-align: center; padding: 12px 8px 4px; }
.success-badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8f8ef;
  color: var(--ok);
}
.success h2 { margin: 0 0 6px; }
.success p { margin: 0; color: #66707c; font-size: 14px; line-height: 1.45; }
.e2e { margin-top: 10px !important; font-family: ui-monospace, Consolas, monospace; font-size: 11px !important; word-break: break-all; }
.awaiting {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f4f7fb;
  text-align: left;
}
.awaiting strong { display: block; font-size: 14px; }
.awaiting span { display: block; color: #66707c; font-size: 12px; line-height: 1.4; }
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #d5deea;
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
  flex: 0 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.admin-page { background: #eef1f6; color: #1c2434; }
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
}
.side {
  background: #1b2030;
  color: #d5dbe6;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px 6px;
  color: #fff;
  font-size: 16px;
}
.side-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center 18%;
  flex: 0 0 auto;
}
.login-brand { display: flex; align-items: center; gap: 10px; }
.login-brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center 18%;
}
.side-nav { padding-bottom: 12px; }
.nav-label {
  margin: 16px 18px 6px;
  color: #8b93a7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 16px);
  margin: 2px 8px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #d7dde8;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}
.nav-btn svg { flex: 0 0 auto; }
.nav-btn.on, .nav-btn:hover { background: #31286a; color: #fff; }
.side-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.side-foot strong, .side-foot small { display: block; }
.side-foot strong { color: #fff; font-size: 14px; }
.side-foot small { color: #8b93a7; font-size: 12px; }
.side-foot small::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #3ddc84; }
.side-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #31286a;
  color: #fff;
  font-weight: 800;
}
.work { padding: 22px 22px 36px; min-width: 0; }
.work .topbar h1 { font-size: 26px; }
.banner { width: 100%; text-align: left; border: 0; cursor: pointer; }
.admin-wrap { width: min(920px, 100%); }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.topbar h1 { font-size: 22px; }
.topbar p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.linkish, .text-btn {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.actions { display: flex; gap: 8px; }
.panel {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 14px;
}
.panel h2 { margin: 0 0 12px; }
.hint { color: #7b8491; font-size: 13px; line-height: 1.45; margin: 0 0 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); margin: 4px 0 12px; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.colorline { display: flex; gap: 8px; align-items: center; }
.colorline input[type="color"] { width: 48px; height: 46px; padding: 4px; border-radius: 12px; border: 1px solid #e3e7ee; background: white; }
.logo-row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.logo-row img, .logo-row .logo-fallback { width: 64px; height: 52px; }
.savebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: white;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.1);
}
.savebar .primary, .savebar .secondary { width: auto; margin: 0; padding: 0 16px; min-height: 44px; }
.banner {
  background: #fff7e8;
  color: #8a5a00;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 12px;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: #8b919c; font-weight: 600; padding: 8px; border-bottom: 1px solid #eee; white-space: nowrap; }
td { padding: 10px 8px; border-bottom: 1px solid #f3f4f6; vertical-align: top; }
.badge { display: inline-flex; border-radius: 999px; padding: 2px 8px; font-weight: 800; font-size: 12px; }
.badge.paid { background: #e7f8ee; color: #0f7a3a; }
.badge.pending { background: #fff6e5; color: #9a6700; }
.badge.failed, .badge.expired { background: #fdecec; color: #b42318; }
.order-detail {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #e6eaf0;
  border-radius: 14px;
  background: #fff;
}
.order-detail h3 { margin: 0 0 10px; font-size: 16px; }
.order-detail p { margin: 0 0 6px; }
.toast {
  position: fixed;
  top: 16px;
  right: 16px;
  background: #142033;
  color: white;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  box-shadow: var(--shadow);
  z-index: 5;
}
.result { margin-top: 10px; font-size: 13px; color: #3d4c63; }
.catalog { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; }
.catalog-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid #e7ebf1;
  border-radius: 12px;
  padding: 10px;
  background: #fbfcfe;
}
.catalog-row.on { border-color: #6d4dff; background: #f7f5ff; }
.catalog-row img, .catalog-mark {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  background: #eef1f6;
}
.catalog-mark { display: grid; place-items: center; font-weight: 800; color: #6d4dff; font-size: 12px; }
.dash-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.dash-ranges { display: flex; flex-wrap: wrap; gap: 6px; }
.dash-ranges button, .dash-currency {
  border: 0;
  background: #1b2030;
  color: #d7dce8;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 13px;
}
.dash-ranges button.on { background: #31286a; color: white; }
.dash-currency { background: #243049; }
.dash-updated { margin-left: auto; color: #6d7582; font-size: 13px; }
.dash-custom, .dash-picks { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 12px; }
.dash-custom label, .dash-picks label { font-size: 13px; color: #3d4658; font-weight: 700; }
.dash-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.dash-card {
  background: #161b2c;
  color: #e8edf7;
  border-radius: 16px;
  padding: 14px;
  min-height: 124px;
}
.dash-card h2 { margin: 0 0 8px; font-size: 14px; font-weight: 650; }
.dash-card h2 span, .dash-card small { color: #93a0b8; font-weight: 500; font-size: 12px; }
.dash-card strong { display: block; font-size: 28px; letter-spacing: -0.04em; }
.dash-card p { margin: 6px 0 0; color: #93a0b8; font-size: 12px; }
.dash-delta { margin-top: 10px; font-size: 12px; font-weight: 700; }
.dash-delta.up { color: #3dd68c; }
.dash-delta.down { color: #ff8b8b; }
.dash-spark { height: 28px; margin-top: 8px; }
.dash-board { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr); gap: 12px; }
.dash-card.wide, .dash-card.live { min-height: 320px; }
.dash-legend { display: flex; gap: 12px; color: #93a0b8; font-size: 12px; margin-bottom: 8px; }
.dash-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 99px; margin-right: 4px; }
.dash-legend .gen { background: #3d8bfd; }
.dash-legend .paid { background: #3dd68c; }
.dash-legend .money { background: #7aa2ff; }
.dash-chart { display: flex; align-items: flex-end; gap: 8px; height: 220px; }
.dash-col { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.dash-tip {
  display: none;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 4;
  min-width: 148px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #0e1324;
  border: 1px solid #2a3148;
  color: #e8edf7;
  text-align: left;
  pointer-events: none;
}
.dash-col:hover .dash-tip { display: grid; gap: 2px; }
.dash-tip strong { font-size: 12px; }
.dash-tip span { color: #93a0b8; font-size: 11px; white-space: nowrap; }
.dash-bars { display: flex; align-items: flex-end; gap: 3px; width: 100%; height: 180px; }
.dash-bars span { flex: 1; border-radius: 6px 6px 2px 2px; min-height: 2px; }
.dash-bars .gen { background: #3d8bfd; }
.dash-bars .paid { background: #3dd68c; }
.dash-bars .money { background: #7aa2ff; }
.dash-col em { color: #93a0b8; font-style: normal; font-size: 11px; }
.live-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid #2a3148; }
.live-row b { display: block; font-size: 13px; }
.live-row span { color: #93a0b8; font-size: 12px; }
.live-row time { color: #93a0b8; font-size: 12px; white-space: nowrap; }
@media (max-width: 1100px) {
  .dash-grid, .dash-board { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .dash-grid, .dash-board { grid-template-columns: 1fr; }
  .dash-updated { margin-left: 0; }
}
.catalog-mark.ok { color: #0f7a3a; background: #e7f8ee; }
.catalog-mark.bad { color: #b42318; background: #fdecec; }
.stage-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.stage-tabs button { border: 1px solid #e3e7ee; background: #f6f8fb; border-radius: 999px; padding: 8px 14px; font-weight: 700; color: #1c2434; }
.stage-tabs button.on { background: #31286a; color: #fff; border-color: #31286a; }
.editor-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.preview-col { position: sticky; top: 12px; }
.preview-frame { height: 680px; overflow: hidden; border-radius: 18px; border: 1px solid #d7dde7; background: #eef1f5; }
.preview-frame iframe { width: 128%; height: 128%; border: 0; transform: scale(0.78); transform-origin: top left; }
.thanks-card h1 { margin: 0 0 8px; font-size: 26px; }
.thanks-split { margin-top: 16px; }
#thanks-link { display: flex; align-items: center; justify-content: center; text-decoration: none; }
body.is-preview .page { padding: 12px 10px 24px; min-height: 0; }
@media (max-width: 1100px) {
  .editor-split { grid-template-columns: 1fr; }
  .preview-col { position: static; }
}
.copyline { display: flex; gap: 8px; align-items: center; }
.copyline input { flex: 1 1 auto; min-width: 0; width: 1%; }
.copyline .secondary { width: auto; flex: 0 0 auto; margin-top: 0; padding: 0 18px; white-space: nowrap; }
.catalog-row strong { display: block; }
.catalog-row span { color: #6d7582; font-size: 12px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.row-actions button, .row-actions a {
  border: 1px solid #e3e7ee;
  background: #fff;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #1c2434;
  text-decoration: none;
}
.row-actions .danger { color: #b42318; }
.panel h3 { margin: 16px 0 10px; font-size: 15px; }
@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .topbar, .actions { align-items: flex-start; }
  .actions { flex-direction: column; }
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; height: auto; z-index: 4; }
  .side-nav { display: flex; gap: 8px; overflow-x: auto; padding: 0 8px 12px; }
  .nav-group { display: flex; gap: 4px; }
  .nav-label, .side-foot { display: none; }
  .nav-btn { width: auto; white-space: nowrap; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
}
