/* VirtualNumbers design system */
:root {
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --ink: #0b1020;
  --ink-2: #39405a;
  --ink-3: #6b7290;
  --line: #e6e8f0;
  --line-2: #d6d9e6;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #fafbfe;

  --brand: #5b4cf5;
  --brand-600: #4b3ce0;
  --brand-50: #f1efff;
  --brand-100: #e4e0ff;
  --mint: #0fae78;
  --mint-50: #e8f8f1;
  --amber: #c98a06;
  --amber-50: #fdf5e2;
  --red: #dc3b4b;
  --red-50: #fdecee;

  --night: #070a17;
  --night-2: #0e1328;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  --sh-1: 0 1px 2px rgba(11, 16, 32, .06);
  --sh-2: 0 1px 2px rgba(11, 16, 32, .05), 0 4px 12px rgba(11, 16, 32, .06);
  --sh-3: 0 2px 4px rgba(11, 16, 32, .04), 0 12px 32px rgba(11, 16, 32, .10);
  --sh-brand: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 18px rgba(91, 76, 245, .35);

  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 650; }
p { margin: 0; }
.mono { font-family: var(--mono); font-feature-settings: 'zero'; }
.muted { color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border-radius: 10px; border: 1px solid transparent;
  font-weight: 560; font-size: 15px; letter-spacing: -0.005em;
  cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--brand-100); outline-offset: 2px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--sh-brand); }
.btn-primary:hover { background: var(--brand-600); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, var(--sh-2); }
.btn-dark:hover { background: #1a2036; }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); box-shadow: var(--sh-1); }
.btn-ghost:hover { border-color: #b9bed3; }
.btn-light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; }
.btn-light:hover { background: rgba(255,255,255,.14); }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 247, 251, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.on-dark { background: rgba(7, 10, 23, .72); color: #fff; }
.site-header.on-dark.is-scrolled { border-bottom-color: rgba(255,255,255,.08); }
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 680; font-size: 17px; letter-spacing: -0.02em; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(140deg, #7a6cff, #4b3ce0 60%, #2c1fb8);
  display: grid; place-items: center;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 4px 10px rgba(91,76,245,.35);
}
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-size: 15px; color: var(--ink-2); font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: rgba(11,16,32,.05); }
.on-dark .nav-links a { color: rgba(255,255,255,.72); }
.on-dark .nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-balance {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px;
  border-radius: 9px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 560;
}
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
@media (max-width: 880px) {
  .nav-links, .nav-right .hide-sm { display: none; }
  .menu-btn { display: block; }
  .nav.open + .mobile-menu { display: block; }
}
.mobile-menu { display: none; border-top: 1px solid var(--line); padding: 12px 0 18px; }
.mobile-menu a { display: block; padding: 12px 4px; font-weight: 520; border-bottom: 1px solid var(--line); }
.on-dark .mobile-menu { border-color: rgba(255,255,255,.1); }
.on-dark .mobile-menu a { border-color: rgba(255,255,255,.08); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--night); color: #fff;
  margin-top: -68px; padding: 148px 0 96px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(600px 380px at 78% 30%, rgba(91,76,245,.45), transparent 70%),
    radial-gradient(520px 340px at 12% 90%, rgba(15,174,120,.18), transparent 70%),
    radial-gradient(900px 500px at 50% -10%, rgba(122,108,255,.22), transparent 70%);
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding: 124px 0 72px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 6px;
  border-radius: 999px; font-size: 13px; font-weight: 520;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.86);
}
.eyebrow .dot { width: 20px; height: 20px; border-radius: 999px; background: rgba(15,174,120,.18); display: grid; place-items: center; }
.eyebrow .dot::after { content: ''; width: 7px; height: 7px; border-radius: 999px; background: #2fe0a2; box-shadow: 0 0 0 4px rgba(47,224,162,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(47,224,162,0); } }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); font-weight: 680; letter-spacing: -0.04em; margin: 22px 0 20px; }
.hero h1 .grad { background: linear-gradient(92deg, #b9b1ff, #8a7dff 40%, #5ff0c0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 19px; color: rgba(255,255,255,.72); max-width: 540px; line-height: 1.6; }
.hero-cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 26px; font-weight: 650; letter-spacing: -0.03em; font-family: var(--mono); }
.hero-stats span { font-size: 14px; color: rgba(255,255,255,.58); }

/* Hero product mock */
.mock { position: relative; }
.mock-card {
  position: relative; border-radius: 22px; padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 1px 0 rgba(255,255,255,.12) inset;
  backdrop-filter: blur(10px);
}
.mock-head { display: flex; align-items: center; gap: 12px; }
.mock-head .meta { font-size: 13px; color: rgba(255,255,255,.6); }
.mock-head .title { font-weight: 600; }
.mock-num {
  margin: 18px 0; padding: 18px; border-radius: 14px;
  background: rgba(7,10,23,.55); border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.mock-num .n { font-family: var(--mono); font-size: 22px; letter-spacing: .02em; }
.mock-num .copy { font-size: 12px; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); }
.mock-wait { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,.66); }
.bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.bar i { display: block; height: 100%; width: 40%; border-radius: 4px; background: linear-gradient(90deg, #7a6cff, #5ff0c0); animation: load 2.4s ease-in-out infinite; }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.mock-sms {
  margin-top: 16px; padding: 16px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(15,174,120,.20), rgba(15,174,120,.08));
  border: 1px solid rgba(95,240,192,.28);
  animation: smsIn .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: 1.2s;
}
@keyframes smsIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.mock-sms .from { font-size: 12px; color: #9ff5d6; display: flex; justify-content: space-between; }
.mock-sms .code { font-family: var(--mono); font-size: 30px; font-weight: 600; letter-spacing: .18em; margin-top: 6px; }
.mock-float {
  position: absolute; right: -18px; bottom: -26px; padding: 12px 14px; border-radius: 14px;
  background: #fff; color: var(--ink); box-shadow: var(--sh-3); display: flex; align-items: center; gap: 10px; font-size: 14px;
}
.mock-float .ok { width: 28px; height: 28px; border-radius: 999px; background: var(--mint-50); color: var(--mint); display: grid; place-items: center; }
@media (max-width: 640px) { .mock-float { right: 8px; } }

/* ---------- Sections ---------- */
section.block { padding: 96px 0; }
section.block.tight { padding: 72px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.035em; }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--ink-3); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.card-pad { padding: 24px; }

/* Service badge (monogram) */
.svc-badge {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 16px; letter-spacing: -0.02em;
  background: var(--c, var(--brand));
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 2px 6px rgba(11,16,32,.15);
}
.svc-badge.sm { width: 32px; height: 32px; border-radius: 9px; font-size: 13px; }
.svc-badge.lg { width: 48px; height: 48px; border-radius: 13px; font-size: 19px; }

/* Popular services grid */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-tile {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-1);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.svc-tile:hover { transform: translateY(-2px); box-shadow: var(--sh-3); border-color: var(--line-2); }
.svc-tile .name { font-weight: 600; }
.svc-tile .sub { font-size: 13px; color: var(--ink-3); }
.svc-tile .from { margin-left: auto; text-align: right; }
.svc-tile .from small { display: block; font-size: 12px; color: var(--ink-3); }
.svc-tile .from b { font-family: var(--mono); font-weight: 600; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 28px; position: relative; }
.step .num {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand); font-weight: 650; font-family: var(--mono); margin-bottom: 22px;
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--ink-3); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); padding: 32px; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); margin-bottom: 20px; }
.feature .ico.mint { background: var(--mint-50); color: var(--mint); }
.feature .ico.amber { background: var(--amber-50); color: var(--amber); }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--ink-3); font-size: 15px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; font-size: 18px; font-weight: 580;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; font-weight: 300; color: var(--ink-3); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 0 22px; color: var(--ink-2); max-width: 720px; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px; padding: 64px;
  background: var(--night); color: #fff; text-align: center;
}
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 260px at 50% 0%, rgba(91,76,245,.55), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.035em; }
.cta-band p { color: rgba(255,255,255,.7); margin: 14px auto 30px; max-width: 520px; font-size: 18px; }
@media (max-width: 640px) { .cta-band { padding: 44px 22px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 96px; background: var(--surface); }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } }
.foot h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 14px; font-weight: 600; }
.foot a { display: block; padding: 4px 0; color: var(--ink-2); font-size: 15px; }
.foot a:hover { color: var(--ink); }
.foot-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--ink-3); flex-wrap: wrap; }

/* ---------- Catalog ---------- */
.page-head { padding: 48px 0 28px; }
.page-head h1 { font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -0.035em; }
.page-head p { color: var(--ink-3); margin-top: 10px; font-size: 17px; }

.catalog { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
@media (max-width: 960px) { .catalog { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); overflow: hidden; }
.panel-head { padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.panel-title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; margin-bottom: 10px; display: flex; justify-content: space-between; }
.search {
  position: relative;
}
.search input {
  width: 100%; height: 44px; padding: 0 14px 0 40px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--surface-2); outline: none; font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.search input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-50); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.list { max-height: 640px; overflow-y: auto; padding: 6px; }
.list-item {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 11px;
  background: none; border: 1px solid transparent; cursor: pointer; text-align: left;
}
.list-item:hover { background: var(--bg); }
.list-item.active { background: var(--brand-50); border-color: var(--brand-100); }
.list-item .t { font-weight: 560; font-size: 15px; }
.list-item .s { font-size: 13px; color: var(--ink-3); }
.list-item .r { margin-left: auto; text-align: right; font-size: 13px; color: var(--ink-3); }
.list-item .r b { display: block; color: var(--ink); font-family: var(--mono); font-size: 14px; font-weight: 600; }

.sel-head { display: flex; align-items: center; gap: 14px; padding: 20px; border-bottom: 1px solid var(--line); }
.sel-head h2 { font-size: 22px; }
.sel-head .s { color: var(--ink-3); font-size: 14px; }
.sort { margin-left: auto; display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: 10px; border: 1px solid var(--line); }
.sort button { border: 0; background: none; padding: 6px 12px; border-radius: 7px; font-size: 13px; font-weight: 560; color: var(--ink-3); cursor: pointer; }
.sort button.on { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }

.country-row {
  display: grid; grid-template-columns: 1fr 120px 110px 132px; gap: 12px; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
}
.country-row:last-child { border-bottom: 0; }
.country-row .c { display: flex; align-items: center; gap: 12px; min-width: 0; }
.country-row .c .nm { font-weight: 560; }
.country-row .c .px { font-size: 13px; color: var(--ink-3); font-family: var(--mono); }
.country-row .stock { font-size: 14px; color: var(--ink-2); }
.country-row .price { font-family: var(--mono); font-weight: 650; font-size: 17px; text-align: right; }
.country-row.head { padding: 10px 20px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); font-weight: 600; background: var(--surface-2); }
.country-row.head .price { font-family: var(--font); font-size: 12px; font-weight: 600; }
@media (max-width: 640px) {
  .country-row { grid-template-columns: 1fr auto; }
  .country-row .stock, .country-row .rate-col, .country-row.head { display: none; }
  .country-row .act { grid-column: 1 / -1; }
}
.flag { width: 30px; height: 22px; border-radius: 5px; flex: none; background-size: cover; background-position: center; box-shadow: 0 0 0 1px rgba(11,16,32,.08); }

.rate { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 560; padding: 3px 8px; border-radius: 999px; }
.rate.hi { background: var(--mint-50); color: #08875c; }
.rate.mid { background: var(--amber-50); color: #9a6a03; }
.rate.lo { background: var(--bg); color: var(--ink-3); }

.ops { padding: 6px 20px 16px 62px; display: grid; gap: 6px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.op { display: grid; grid-template-columns: 1fr 110px 90px 110px; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 14px; }
.op .p { font-family: var(--mono); font-weight: 600; text-align: right; }
@media (max-width: 640px) { .ops { padding-left: 20px; } .op { grid-template-columns: 1fr auto; } .op .hide-sm { display: none; } }

.empty { padding: 56px 20px; text-align: center; color: var(--ink-3); }
.skeleton { background: linear-gradient(90deg, #eef0f6, #f7f8fb, #eef0f6); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Forms / auth ---------- */
.auth { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 48px 16px; }
.auth-card { width: 100%; max-width: 440px; padding: 36px; }
.auth-card h1 { font-size: 28px; letter-spacing: -0.03em; }
.auth-card .sub { color: var(--ink-3); margin: 8px 0 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 560; margin-bottom: 6px; color: var(--ink-2); }
.input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: #fff; outline: none; font-size: 15px; transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
textarea.input { height: auto; padding: 12px 14px; min-height: 96px; }
.hint { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; border: 1px solid; }
.alert.err { background: var(--red-50); border-color: #f6c7cd; color: #a0202f; }
.alert.ok { background: var(--mint-50); border-color: #bfe9d6; color: #07734e; }
.alert.info { background: var(--brand-50); border-color: var(--brand-100); color: #3a2fb0; }
.auth-foot { margin-top: 22px; text-align: center; font-size: 15px; color: var(--ink-3); }
.auth-foot a { color: var(--brand); font-weight: 560; }

/* ---------- App (dashboard + admin) ---------- */
.app-shell { display: grid; grid-template-columns: 248px 1fr; min-height: calc(100vh - 68px); }
@media (max-width: 900px) { .app-shell { grid-template-columns: 1fr; } .side { display: none; } }
.side { border-right: 1px solid var(--line); background: var(--surface); padding: 20px 14px; }
.side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 520; color: var(--ink-2); font-size: 15px; }
.side a:hover { background: var(--bg); color: var(--ink); }
.side a.active { background: var(--brand-50); color: var(--brand-600); }
.side .grp { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 18px 12px 8px; font-weight: 600; }
.main { padding: 32px; min-width: 0; }
@media (max-width: 640px) { .main { padding: 20px 16px; } }
.main-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.main-head h1 { font-size: 28px; letter-spacing: -0.03em; }
.main-head p { color: var(--ink-3); margin-top: 6px; }
.tabs-sm { display: none; gap: 6px; overflow-x: auto; margin-bottom: 18px; }
@media (max-width: 900px) { .tabs-sm { display: flex; } }
.tabs-sm a { padding: 8px 12px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; white-space: nowrap; font-weight: 520; }
.tabs-sm a.active { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-600); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 20px; }
.stat .l { font-size: 13px; color: var(--ink-3); font-weight: 520; }
.stat .v { font-size: 28px; font-weight: 650; letter-spacing: -0.03em; margin-top: 8px; font-family: var(--mono); }
.stat .d { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); font-weight: 600; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.num { font-family: var(--mono); text-align: right; white-space: nowrap; }
table.t th.num { text-align: right; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.pill.pending { background: var(--amber-50); color: #9a6a03; }
.pill.received, .pill.finished, .pill.paid, .pill.active { background: var(--mint-50); color: #08875c; }
.pill.canceled, .pill.timeout, .pill.expired, .pill.suspended { background: var(--bg); color: var(--ink-3); }
.pill.banned, .pill.failed { background: var(--red-50); color: #a0202f; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.secret-row { display: flex; gap: 8px; }
.secret-row .input { font-family: var(--mono); }
.status-dot { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 560; }
.status-dot::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--ink-3); }
.status-dot.ok::before { background: var(--mint); box-shadow: 0 0 0 4px var(--mint-50); }
.status-dot.err::before { background: var(--red); box-shadow: 0 0 0 4px var(--red-50); }

/* Order (active number) */
.order-card { padding: 28px; }
.order-num { font-family: var(--mono); font-size: clamp(26px, 4vw, 38px); font-weight: 600; letter-spacing: .02em; }
.code-box { margin-top: 18px; padding: 22px; border-radius: 16px; background: var(--mint-50); border: 1px solid #bfe9d6; }
.code-box .code { font-family: var(--mono); font-size: 40px; font-weight: 650; letter-spacing: .16em; color: #065f42; }
.wait-box { margin-top: 18px; padding: 22px; border-radius: 16px; background: var(--bg); border: 1px dashed var(--line-2); display: flex; align-items: center; gap: 14px; color: var(--ink-2); }
.spinner { width: 22px; height: 22px; border-radius: 999px; border: 2.5px solid var(--brand-100); border-top-color: var(--brand); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(7,10,23,.5); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.modal-bg.open { display: flex; }
.modal { width: 100%; max-width: 460px; padding: 28px; animation: smsIn .25s ease both; }
.modal h3 { font-size: 22px; }
.summary { margin: 20px 0; border: 1px solid var(--line); border-radius: 12px; }
.summary div { display: flex; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary div:last-child { border-bottom: 0; font-weight: 650; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; box-shadow: var(--sh-3); transition: all .25s ease; z-index: 200; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }
