/* ---------- tokens ---------- */
:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --border: #e3e8ef;
  --border-strong: #cfd7e3;
  --text: #0f1729;
  --muted: #5b687d;
  --brand: #0fa968;
  --brand-strong: #0b8a55;
  --brand-soft: #e2f6ec;
  --on-brand: #ffffff;
  --danger: #d23b3b;
  --danger-soft: #fdecec;
  --warn: #a8660b;
  --warn-soft: #fdf2df;
  --info: #2a64c9;
  --info-soft: #e8effc;
  --violet: #6a4fd1;
  --violet-soft: #efebfc;
  --sidebar: #0d1525;
  --sidebar-text: #a9b5c8;
  --sidebar-hover: rgba(255, 255, 255, .06);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 41, .04), 0 6px 20px rgba(15, 23, 41, .05);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f19;
    --surface: #111827;
    --surface-2: #0e1522;
    --border: #1f2a3b;
    --border-strong: #2c3a50;
    --text: #e6ecf5;
    --muted: #8d9ab0;
    --brand: #26c281;
    --brand-strong: #4fd89c;
    --brand-soft: rgba(38, 194, 129, .14);
    --on-brand: #04130c;
    --danger: #f06b6b;
    --danger-soft: rgba(240, 107, 107, .14);
    --warn: #e6ac4b;
    --warn-soft: rgba(230, 172, 75, .14);
    --info: #6ea2f5;
    --info-soft: rgba(110, 162, 245, .14);
    --violet: #a493f2;
    --violet-soft: rgba(164, 147, 242, .14);
    --sidebar: #070b13;
    --shadow: none;
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
code, .mono { font-family: var(--mono); font-size: .9em; }
code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.grow { flex: 1; }
.nowrap { white-space: nowrap; }
.wrap { word-break: break-all; }
.pre { white-space: pre-line; }
.error-text { color: var(--danger); }
.pos { color: var(--brand-strong); }
.neg { color: var(--danger); }
.ic { width: 18px; height: 18px; flex: none; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; font-size: .92rem; line-height: 1.2;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn-ghost.danger, .danger { color: var(--danger); }
.btn-sm { padding: 6px 11px; font-size: .84rem; }
.btn-lg { padding: 13px 22px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.form { display: grid; gap: 14px; align-content: start; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: .88rem; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  font: inherit; font-size: .95rem;
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 1px; border-color: var(--brand); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--brand); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; cursor: pointer; }
.row-2, .row-3 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.row-3 { grid-template-columns: 1fr 1fr 1fr; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline input, .inline select { width: auto; flex: 1; min-width: 120px; }
.w-sm { max-width: 110px; }
.w-md { max-width: 200px; }

/* ---------- cards, grids ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; margin-bottom: 18px; min-width: 0;
}
.card.flush { padding: 0; overflow: hidden; }
.card-pad { padding: 18px 20px 4px; margin: 0; }
.card.narrow { max-width: 760px; }
.card h3:last-child { margin-bottom: 0; }
.stack > .card:last-child { margin-bottom: 0; }
.empty { text-align: center; color: var(--muted); padding: 32px 20px; margin: 0; }
.grid-main { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; margin-bottom: 18px; }
.grid-main > .card { margin-bottom: 0; }
.grid-2 { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.grid-2 > .card { margin-bottom: 0; }
.grid-3 { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; margin-bottom: 18px; }
.grid-3 > .card { margin-bottom: 0; }
.stack { display: grid; gap: 18px; align-content: start; }
.stack > .card { margin-bottom: 0; }
.section-title { margin: 4px 0 14px; }

.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat-label { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat strong { display: block; font-size: 1.35rem; margin-top: 2px; font-variant-numeric: tabular-nums; }

.details { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.details dt { color: var(--muted); font-size: .88rem; }
.details dd { margin: 0; min-width: 0; }

.mini-list { list-style: none; margin: 0 0 12px; padding: 0; }
.mini-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.mini-list li:last-child { border-bottom: 0; }
.mini-list li > :first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tips { margin: 0; padding-left: 18px; color: var(--muted); }
.tips li { margin-bottom: 6px; }

/* ---------- alerts & badges ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; border: 1px solid transparent; font-size: .93rem; }
.alert-success { background: var(--brand-soft); color: var(--brand-strong); border-color: color-mix(in srgb, var(--brand) 25%, transparent); }
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.alert-info { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.alert-warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.alert a { color: inherit; text-decoration: underline; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.s-pending { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.s-in_progress, .s-processing { background: var(--info-soft); color: var(--info); border-color: transparent; }
.s-completed, .s-approved { background: var(--brand-soft); color: var(--brand-strong); border-color: transparent; }
.s-partial { background: var(--violet-soft); color: var(--violet); border-color: transparent; }
.s-canceled, .s-error, .s-rejected { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.s-muted { background: var(--surface-2); color: var(--muted); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.group-row th { background: var(--surface-2); color: var(--text); font-size: .85rem; text-transform: none; letter-spacing: 0; padding: 10px 14px; border-top: 1px solid var(--border); }
.clip { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desc-cell { max-width: 320px; }
.desc-cell summary { cursor: pointer; color: var(--brand-strong); font-size: .85rem; }
.desc-cell .pre { font-size: .85rem; color: var(--muted); margin-top: 6px; }
a.ext { white-space: nowrap; }
.wrap a.ext, .details a.ext { white-space: normal; word-break: break-all; }
table.params td:first-child { width: 160px; }

/* ---------- toolbar, tabs, pager ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar input[type=search] { max-width: 340px; }
.toolbar input.grow { max-width: none; }
.toolbar.filters select { width: auto; }
.search { display: flex; }
.search.grow { flex: 1; }
.search.grow input { max-width: 420px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px; }
.tabs a { padding: 6px 12px; border-radius: 6px; color: var(--muted); font-weight: 600; font-size: .86rem; }
.tabs a:hover { text-decoration: none; color: var(--text); background: var(--surface-2); }
.tabs a.active { background: var(--brand); color: var(--on-brand); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 18px; }
.bulk-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-bottom: 14px; }
.bulk-bar select { width: auto; }
.import-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.import-bar .field { width: 120px; }

/* ---------- app shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 248px; flex: none; background: var(--sidebar); color: var(--sidebar-text);
  display: flex; flex-direction: column; padding: 18px 12px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.08rem; color: var(--text); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.sidebar .brand { color: #fff; padding: 4px 10px 16px; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: var(--brand) url("favicon.svg") center / cover no-repeat;
}
.sidebar-tag { margin: -6px 10px 12px; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #b7a8ff; }
.nav { display: grid; gap: 2px; }
.nav a, .sidebar-foot a, .sidebar-foot button {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--sidebar-text); font-weight: 600; font-size: .93rem; width: 100%;
  background: none; border: 0; font-family: inherit; cursor: pointer; text-align: left;
}
.nav a:hover, .sidebar-foot a:hover, .sidebar-foot button:hover { background: var(--sidebar-hover); color: #fff; text-decoration: none; }
.nav a.active { background: rgba(38, 194, 129, .16); color: #fff; }
.nav a.active .ic { color: #3fd795; }
.area-admin .nav a.active { background: rgba(140, 120, 255, .18); }
.area-admin .nav a.active .ic { color: #b7a8ff; }
.nav-count { margin-left: auto; background: #e5484d; color: #fff; font-size: .72rem; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.sidebar-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); display: grid; gap: 2px; }
.sidebar-foot form { margin: 0; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 14px; padding: 14px 28px;
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--border);
}
.page-title { font-size: 1.2rem; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.balance-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; font-variant-numeric: tabular-nums;
}
.balance-pill:hover { text-decoration: none; }
.user-chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; font-size: .88rem; }
.user-chip:hover { text-decoration: none; border-color: var(--border-strong); }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.menu-btn { display: none; }
.content { padding: 24px 28px 40px; width: 100%; max-width: 1400px; }
.backdrop { display: none; }

/* ---------- order form ---------- */
.service-desc { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .88rem; color: var(--muted); white-space: pre-line; max-height: 220px; overflow: auto; }
.charge-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--brand-soft); }
.charge-row strong { font-size: 1.3rem; color: var(--brand-strong); font-variant-numeric: tabular-nums; }
.copy-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.copy-row code { word-break: break-all; }
code.key { font-size: .95rem; padding: 6px 10px; }
pre.code { background: var(--sidebar); color: #d6e2f3; padding: 14px 16px; border-radius: var(--radius-sm); overflow-x: auto; font: .85rem/1.5 var(--mono); margin: 0; }

/* ---------- tickets ---------- */
.thread { display: grid; gap: 12px; margin-bottom: 18px; }
.msg { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; max-width: 760px; }
.msg-staff { border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
.msg-mine { margin-left: auto; background: var(--surface-2); }
.msg-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: .88rem; }
.msg-body { overflow-wrap: anywhere; }

/* ---------- providers ---------- */
.provider-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 8px; }
.provider-head h3 { margin-bottom: 2px; }
.provider-balance { text-align: right; display: grid; }
.provider-balance strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }

/* ---------- install checks ---------- */
.checks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 4px; font-size: .92rem; }
.checks .ok { color: var(--brand-strong); }
.checks .bad { color: var(--danger); font-weight: 700; }

/* ---------- public pages ---------- */
.area-guest { background: var(--bg); }
.guest-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px clamp(16px, 4vw, 48px); max-width: 1240px; margin: 0 auto;
}
.guest-bar nav { display: flex; align-items: center; gap: 22px; }
.guest-bar nav a:not(.btn) { color: var(--text); font-weight: 600; font-size: .94rem; }
.guest-main { max-width: 1240px; margin: 0 auto; padding: 8px clamp(16px, 4vw, 48px) 56px; }
.guest-title { font-size: 1.7rem; margin: 18px 0 20px; }
.guest-foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  max-width: 1240px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 48px) 40px;
  color: var(--muted); font-size: .88rem; border-top: 1px solid var(--border);
}
.guest-foot nav { display: flex; gap: 18px; }
.guest-foot a { color: var(--muted); }

.auth-wrap { display: grid; place-items: center; padding: 32px 0; }
.auth-card { width: 100%; max-width: 420px; padding: 28px; }
.auth-card.wide { max-width: 620px; }

.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(28px, 6vw, 72px) 0 clamp(28px, 5vw, 56px); }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.05; letter-spacing: -.03em; margin-bottom: 18px; }
.hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 44px); }
.hero-stats div { display: grid; }
.hero-stats strong { font-size: 1.6rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero-stats span { color: var(--muted); font-size: .88rem; }
.hero-login { justify-self: end; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-strong); margin-bottom: 14px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }

.platforms { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 18px 0 8px; border-top: 1px solid var(--border); }
.platforms .muted { margin-right: 6px; }
.chip { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: .86rem; }

.section { padding: clamp(40px, 7vw, 80px) 0 0; }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feature-num { display: inline-block; font: 800 .8rem var(--mono); color: var(--brand-strong); background: var(--brand-soft); padding: 3px 8px; border-radius: 6px; margin-bottom: 12px; }
.feature p { color: var(--muted); margin: 0; font-size: .94rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 6px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 800; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: .94rem; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.price-card { display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.price-card h3 { margin: 0; font-size: .98rem; }
.price-card .price { font-size: 1.5rem; font-weight: 800; margin: 6px 0 10px; font-variant-numeric: tabular-nums; }
.price-card .price span { font-size: .85rem; font-weight: 600; color: var(--muted); }
.price-card .btn { justify-self: start; }
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-strong); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; color: var(--muted); }
.cta-band { margin-top: clamp(48px, 8vw, 88px); padding: clamp(32px, 6vw, 56px); border-radius: 20px; text-align: center; background: var(--sidebar); color: #e8eef7; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { color: #a9b5c8; }
.cta-band a:not(.btn) { color: #6ee7b7; }
.prose { max-width: 820px; }

/* ---------- google login ---------- */
.btn-google { background: var(--surface); color: var(--text); border-color: var(--border-strong); gap: 10px; }
.btn-google:hover { background: var(--surface-2); }
.btn-google .ic { width: 18px; height: 18px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; margin: 14px 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.steps-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; }

/* ---------- platform pages ---------- */
.platform-hero { padding: 4px 0 8px; }
.platform-hero .lead { font-size: 1.1rem; color: var(--muted); max-width: 720px; margin-bottom: 22px; }
.platform-hero .hero-stats { margin-bottom: 24px; }
.section-sm { padding-top: clamp(28px, 5vw, 48px); }
.section-sm > h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 16px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ticks li { position: relative; padding: 12px 14px 12px 40px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.ticks li::before { content: "✓"; position: absolute; left: 14px; top: 11px; color: var(--brand-strong); font-weight: 800; }
.platform-links { display: flex; flex-wrap: wrap; gap: 8px; }
.platform-links .chip, .platforms a.chip { color: var(--text); }
.platforms a.chip:hover, .platform-links .chip:hover { border-color: var(--brand); text-decoration: none; }
a.platform-card { color: var(--text); transition: border-color .15s, transform .15s; }
a.platform-card:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-2px); }
.link-arrow { color: var(--brand-strong); font-weight: 700; font-size: .9rem; }
.guest-foot nav { flex-wrap: wrap; }
.guest-foot nav[aria-label="Platforms"] { flex-basis: 100%; order: 3; gap: 14px; font-size: .84rem; }

/* ---------- maintenance ---------- */
.maintenance { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 24px; padding: 32px 16px; text-align: center; }
.maintenance-card { max-width: 560px; padding: clamp(28px, 6vw, 48px); margin: 0; }
.maintenance-card h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: -.02em; }
.maintenance-card .lead { color: var(--muted); font-size: 1.05rem; }

/* ---------- card payments ---------- */
.pay-card { border-radius: 18px; padding: 24px; }
.pay-card .order-head { margin-bottom: 4px; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pay-methods span { font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.quick-amounts { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-amounts .btn.active { border-color: var(--brand); color: var(--brand-strong); }
.mini-list li .inline form { margin: 0; }

/* ---------- crypto payments ---------- */
.coin { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; }
.coin svg { width: 20px; height: 20px; }
.head-icon .coin { width: 46px; height: 46px; border-radius: 12px; }
.coin-BTC { background: #f7931a; } .coin-ETH { background: #627eea; } .coin-USDT { background: #26a17b; }
.coin-USDC { background: #2775ca; } .coin-LTC { background: #345d9d; } .coin-SOL { background: #9945ff; } .coin-XRP { background: #23292f; }
.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.coin-pick { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 12px; cursor: pointer; }
.coin-pick input { position: absolute; opacity: 0; pointer-events: none; }
.coin-pick span:last-child { display: grid; line-height: 1.25; }
.coin-pick small { color: var(--muted); font-size: .74rem; }
.coin-pick:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.coin-pick:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.crypto-pay { display: grid; gap: 18px; }
.crypto-head { display: flex; align-items: center; gap: 14px; }
.crypto-head .coin { width: 52px; height: 52px; }
.crypto-head .coin svg { width: 28px; height: 28px; }
.crypto-head h2 { margin: 0 0 2px; }
.pay-line { display: grid; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.pay-line .copy-row, .tag-box .copy-row { margin: 0; }
code.big { font-size: 1.25rem; font-weight: 700; padding: 6px 12px; }
.tag-box { display: grid; gap: 8px; padding: 14px 16px; border-radius: 12px; background: var(--danger-soft); color: var(--danger); border: 2px solid var(--danger); }
.paid-box { display: grid; gap: 4px; padding: 16px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong); }

/* ---------- alerts ---------- */
.alerts-card { border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); }
.alerts-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.alerts-head h3 { margin: 0; }
.mini-list li > .wrap-text { white-space: normal; overflow: visible; }

/* ---------- platform icons ---------- */
.pi-instagram { color: #e1306c; }
.pi-youtube { color: #ff0033; }
.pi-tiktok { color: var(--text); }
.pi-facebook { color: #1877f2; }
.pi-twitter { color: var(--text); }
.pi-telegram { color: #229ed9; }
.pi-spotify { color: #1db954; }
.pi-twitch { color: #9146ff; }
.pi-threads, .pi-kick { color: var(--text); }
.pi-kick { color: #2fb80a; }
.pi-discord { color: #5865f2; }
.pi-snapchat { color: #e6b800; }
.pi-linkedin { color: #0a66c2; }
.pi-reddit { color: #ff4500; }
.pi-pinterest { color: #e60023; }
.pi-soundcloud { color: #ff5500; }
.pi-audiomack { color: #ffa200; }
.pi-whatsapp { color: #25d366; }
.pi-vk { color: #0077ff; }
.pi-quora { color: #b92b27; }
.pi-tumblr { color: #36465d; }
.pi-rumble { color: #6aa82e; }
.pi-likee { color: #ff3c8a; }
.pi-kwai { color: #ff7e00; }
.pi-clubhouse { color: #8a6a3b; }
.pi-traffic { color: #2a64c9; }
.pi-other, .pi-all { color: var(--brand-strong); }

/* ---------- new order page ---------- */
.stats-compact .stat { padding: 10px 14px; }
.stats-compact .stat strong { font-size: 1.12rem; }
.platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; margin-bottom: 18px; }
.plat-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; font-size: .98rem; cursor: pointer; box-shadow: var(--shadow);
  transition: border-color .15s, background .15s, transform .05s;
}
.plat-btn .ic { width: 20px; height: 20px; }
.plat-btn:hover { border-color: var(--brand); }
.plat-btn:active { transform: translateY(1px); }
.plat-btn.active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.plat-btn.active .pi { color: var(--on-brand); }
.plat-btn.active svg.pi rect[fill="currentColor"] { fill: var(--on-brand); }
.plat-btn.active svg.pi text { fill: var(--brand); }

.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.order-layout > .card { margin: 0; }
.order-card { padding: 24px; border-radius: 18px; }
.order-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.order-head h2 { margin: 0; font-size: 1.3rem; }
.head-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--brand); color: var(--on-brand); flex: none; }
.head-icon .ic { width: 22px; height: 22px; }
.head-icon.sm { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-strong); }
.seg-tabs { display: flex; gap: 4px; padding: 6px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 20px; }
.seg { flex: 0 0 auto; padding: 10px 18px; border-radius: 10px; border: 0; background: none; color: var(--text); font: inherit; font-weight: 600; font-size: .94rem; cursor: pointer; text-align: center; }
.seg:hover { text-decoration: none; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.seg.active { background: var(--surface); box-shadow: 0 1px 3px rgba(15, 23, 41, .1); }
.tab-panel.form { gap: 18px; grid-template-columns: minmax(0, 1fr); }
.order-card .field, .picker, .picker-btn, .picker-value, .subtotal { min-width: 0; }

.picker { display: none; position: relative; }
.enhanced .picker { display: block; }
.enhanced .native-select { display: none; }
.picker-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 8px 14px;
  border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--text);
  font: inherit; font-size: .96rem; text-align: left; cursor: pointer;
}
.picker-btn > .ic { margin-left: auto; color: var(--muted); transition: transform .15s; }
.picker.open .picker-btn { border-color: var(--brand); outline: 3px solid color-mix(in srgb, var(--brand) 20%, transparent); }
.picker.open .picker-btn > .ic { transform: rotate(180deg); }
.picker-value { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.picker-value .opt-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker-pop {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px;
  box-shadow: 0 12px 40px rgba(15, 23, 41, .16);
}
.search-box { display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); }
.search-box .ic { color: var(--muted); }
.search-box input { border: 0 !important; outline: none !important; padding: 11px 0 !important; background: transparent !important; }
.picker-list, .result-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 360px; overflow-y: auto; }
.result-list { max-height: 460px; }
.picker-opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; line-height: 1.4; }
.picker-opt:hover, .picker-opt.active { background: var(--surface-2); }
.picker-opt.selected { background: var(--info-soft); }
.picker-empty { padding: 14px 12px; color: var(--muted); }
.opt-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: none; }
.opt-icon .ic { width: 20px; height: 20px; }
.opt-text { min-width: 0; }
.id-badge { flex: none; padding: 2px 10px; border-radius: 999px; background: var(--info-soft); color: var(--info); font-weight: 700; font-size: .84rem; font-variant-numeric: tabular-nums; margin-top: 1px; }

.order-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4px; }
.subtotal { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 14px; font-weight: 700; min-width: 0; }
.subtotal strong { margin-left: auto; font-size: 1.15rem; color: var(--brand-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.btn-order { min-height: 58px; border-radius: 14px; font-size: 1rem; }

.detail-card { padding: 0; overflow: hidden; border-radius: 18px; }
.detail-top { padding: 26px 24px 20px; text-align: center; background: linear-gradient(180deg, var(--info-soft), transparent); border-bottom: 1px solid var(--border); }
.detail-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); margin-bottom: 14px; }
.detail-icon .ic { width: 34px; height: 34px; }
.detail-title { font-size: 1.15rem; line-height: 1.4; margin: 0 0 12px; font-weight: 600; overflow-wrap: anywhere; }
.detail-meta { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0; padding: 0; color: var(--muted); font-size: .88rem; }
.detail-meta li::before { content: "•"; margin-right: 8px; color: var(--border-strong); }
.detail-meta strong { color: var(--text); font-weight: 600; }
.detail-meta .accent { color: var(--warn); }
.accent-2 { color: var(--info); font-weight: 600; }
.detail-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--border); }
.detail-stats > div { display: grid; justify-items: center; gap: 4px; padding: 20px 10px; text-align: center; }
.detail-stats > div + div { border-left: 1px solid var(--border); }
.detail-stats .ic { width: 26px; height: 26px; margin-bottom: 6px; }
.detail-stats > div:nth-child(1) .ic { color: var(--brand-strong); }
.detail-stats > div:nth-child(2) .ic { color: var(--danger); }
.detail-stats > div:nth-child(3) .ic { color: var(--info); }
.detail-stats strong { font-size: .98rem; }
.detail-stats span { color: var(--muted); font-size: .88rem; }
.detail-stats span.ok { color: var(--brand-strong); font-weight: 600; }
.detail-desc { padding: 20px 24px 24px; }
.detail-desc h3 { font-size: 1.1rem; }
.detail-desc .pre { line-height: 1.75; font-size: .95rem; overflow-wrap: anywhere; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid-main, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .feature-grid, .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 30; transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar-open .sidebar { transform: none; }
  .sidebar-opening .sidebar { pointer-events: none; }
  .sidebar-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(5, 10, 20, .5); z-index: 20; }
  .menu-btn { display: inline-grid; }
  .topbar { padding: 12px 16px; }
  .content { padding: 18px 16px 32px; }
  .user-chip { display: none; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-login { justify-self: stretch; max-width: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .row-2, .row-3 { grid-template-columns: minmax(0, 1fr); }
  .feature-grid, .price-grid { grid-template-columns: minmax(0, 1fr); }
  .hide-sm { display: none; }
  .guest-bar nav { gap: 14px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat strong { font-size: 1.1rem; }
  .toolbar input[type=search] { max-width: none; flex: 1; }
  .details { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .details dd { margin-bottom: 8px; }
  th, td { padding: 9px 10px; }
  .balance-pill { padding: 6px 10px; font-size: .88rem; }
}

@media (max-width: 1100px) {
  .order-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .plat-btn { min-height: 46px; font-size: .9rem; border-radius: 12px; }
  .order-card { padding: 16px; }
  .seg { padding: 9px 6px; flex: 1; white-space: nowrap; font-size: .88rem; }
  .order-foot { grid-template-columns: minmax(0, 1fr); }
  .detail-stats > div { padding: 14px 6px; }
  .detail-top { padding: 20px 16px 16px; }
  .detail-desc { padding: 16px; }
}
