/* SikatBoost — one family (Archivo, variable width). Expanded width = prices and headings; normal width = everything else. */
:root {
  --ink: #1C0F45;
  --ink-2: #4B4370;
  --ink-3: #7C7699;
  --page: #F5F3FB;
  --surface: #FFFFFF;
  --line: #E3DFF0;
  --violet: #5B21D6;
  --violet-2: #EDE6FD;
  --flash: #FF2E7E;
  --ok: #0E8A5F;
  --ok-bg: #E2F6EE;
  --warn: #A3530A;
  --warn-bg: #FDF0DF;
  --bad: #B4232F;
  --bad-bg: #FCE6E8;
  --r-sm: 8px;
  --r-lg: 18px;
  --gut: 16px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.5 var(--font); font-variation-settings: 'wdth' 100; padding-bottom: 72px; }
a { color: var(--violet); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--flash); outline-offset: 2px; }
.wide { font-variation-settings: 'wdth' 125; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px var(--gut); background: var(--ink); color: #fff; }
.brand { color: #fff; text-decoration: none; font-weight: 850; font-size: 20px; letter-spacing: -0.01em; font-variation-settings: 'wdth' 125; }
.brand::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-left: 3px; border-radius: 50%; background: var(--flash); vertical-align: 2px; }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a { color: #CFC8EE; text-decoration: none; padding: 6px 12px; border-radius: 999px; font-weight: 600; }
.nav a.on { color: #fff; background: rgba(255,255,255,.12); }
.wallet { margin-left: auto; color: var(--ink); background: #fff; text-decoration: none; font-weight: 700; padding: 6px 14px; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wallet small { font-weight: 500; color: var(--ink-3); margin-right: 4px; }
.notice { background: var(--violet-2); color: var(--ink); padding: 10px var(--gut); font-size: 15px; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { text-align: center; padding: 12px 4px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; }
.tabbar a.on { color: var(--violet); box-shadow: inset 0 3px 0 var(--violet); }
@media (min-width: 900px) { .nav { display: flex; } .tabbar { display: none; } body { padding-bottom: 0; } }

main { max-width: 1120px; margin: 0 auto; padding: 20px var(--gut) 40px; outline: none; }
.loading { color: var(--ink-3); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; }
h1 { font-size: clamp(28px, 6vw, 44px); font-weight: 850; font-variation-settings: 'wdth' 125; }
h2 { font-size: 22px; font-weight: 800; font-variation-settings: 'wdth' 118; }
h3 { font-size: 17px; font-weight: 700; }
.lede { color: var(--ink-2); max-width: 56ch; margin: 8px 0 0; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }

/* order page */
.intro { margin-bottom: 18px; }
.order-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .order-grid { grid-template-columns: minmax(0, 1fr) 400px; align-items: start; } .panel-wrap { position: sticky; top: 76px; } }
.platforms { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 calc(var(--gut) * -1); padding-left: var(--gut); padding-right: var(--gut); scrollbar-width: none; }
.platforms::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1.5px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 999px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.chip small { color: var(--ink-3); font-weight: 500; margin-left: 4px; }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed='true'] small { color: #B9B1DE; }
.filters { display: grid; gap: 8px; grid-template-columns: 1fr; margin: 6px 0 12px; }
@media (min-width: 600px) { .filters { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 650; font-size: 14px; }
.field > .hint { font-size: 13px; color: var(--ink-3); font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-sm); padding: 11px 12px; font-size: 16px; }
input:focus, select:focus, textarea:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 3px var(--violet-2); }
textarea { min-height: 120px; resize: vertical; }

.services { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; }
.cat { padding: 10px 14px; font-weight: 700; font-size: 14px; color: var(--ink-2); background: #FAF9FE; border-bottom: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 12px 14px; cursor: pointer; }
.svc:last-child { border-bottom: 0; }
.svc:hover { background: #FAF9FE; }
.svc[aria-pressed='true'] { background: var(--violet-2); box-shadow: inset 4px 0 0 var(--violet); }
.svc .nm { font-weight: 600; line-height: 1.35; }
.svc .pr { font-weight: 800; font-variation-settings: 'wdth' 118; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.svc .pr small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-3); font-variation-settings: 'wdth' 100; }
.svc .meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink-3); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--ok-bg); color: var(--ok); }
.tag.c { background: var(--violet-2); color: var(--violet); }
.empty { padding: 28px 16px; text-align: center; color: var(--ink-2); }
.more { display: block; width: 100%; border: 0; border-top: 1px solid var(--line); padding: 12px; background: #FAF9FE; font-weight: 650; color: var(--violet); cursor: pointer; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 14px; }
.panel .svc-name { font-weight: 700; line-height: 1.35; }
.panel .note { font-size: 14px; color: var(--ink-2); white-space: pre-line; }
.qchips { display: flex; flex-wrap: wrap; gap: 6px; }
.qchips button { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 12px; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; }
.qchips button[aria-pressed='true'] { border-color: var(--violet); color: var(--violet); }
.total { border-top: 1.5px dashed var(--line); padding-top: 14px; display: grid; gap: 2px; }
.total .lbl { font-size: 14px; color: var(--ink-2); }
.total .big { font-size: clamp(38px, 9vw, 52px); font-weight: 850; line-height: 1; letter-spacing: -0.03em; font-variation-settings: 'wdth' 125; font-variant-numeric: tabular-nums; }
.total .big .cur { font-size: .55em; vertical-align: .55em; margin-right: 2px; color: var(--flash); }
.total .after { font-size: 14px; color: var(--ink-3); }
.total .after.short { color: var(--bad); font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 22px; font-weight: 750; font-size: 16px; cursor: pointer; text-decoration: none;
  background: var(--violet); color: #fff; }
.btn:hover { background: #4C17BC; }
.btn:disabled { background: #C9C2E3; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--violet); border: 1.5px solid var(--violet-2); }
.btn.ghost:hover { background: var(--violet-2); }
.btn.sm { padding: 7px 14px; font-size: 14px; }
.err { color: var(--bad); font-size: 14px; font-weight: 600; margin: 0; }
.err:empty { display: none; }
.pick-hint { color: var(--ink-2); }
/* mobile: compact sticky summary for the chosen service */
.sheet-bar { display: none; }
@media (max-width: 899px) {
  .sheet-bar { position: fixed; left: 0; right: 0; bottom: 49px; z-index: 15; display: flex; align-items: center; gap: 12px; padding: 10px var(--gut); background: var(--ink); color: #fff; }
  .sheet-bar .t { font-weight: 850; font-size: 22px; font-variation-settings: 'wdth' 125; font-variant-numeric: tabular-nums; }
  .sheet-bar .s { font-size: 13px; color: #CFC8EE; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
  .sheet-bar .btn { padding: 9px 16px; background: var(--flash); }
}

/* orders, top-ups, account */
.head-row { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.list { display: grid; gap: 10px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; display: grid; gap: 8px; }
.card .top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.card .id { font-weight: 800; font-variation-settings: 'wdth' 118; font-variant-numeric: tabular-nums; }
.card .link { font-size: 14px; color: var(--ink-2); word-break: break-all; }
.card .facts { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.card .facts b { color: var(--ink); font-weight: 650; }
.card .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.bar-prog { height: 6px; border-radius: 999px; background: var(--violet-2); overflow: hidden; }
.bar-prog i { display: block; height: 100%; background: var(--violet); }
.st { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; background: var(--violet-2); color: var(--violet); }
.st.completed, .st.approved { background: var(--ok-bg); color: var(--ok); }
.st.partial, .st.pending { background: var(--warn-bg); color: var(--warn); }
.st.canceled, .st.failed, .st.rejected { background: var(--bad-bg); color: var(--bad); }

.two { display: grid; gap: 20px; }
@media (min-width: 900px) { .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--ink-2); }
.steps b { color: var(--ink); }
.methods { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.method { border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; background: var(--surface); cursor: pointer; text-align: left; }
.method[aria-pressed='true'] { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-2); }
.method b { display: block; }
.payto { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; background: #FAF9FE; border-radius: var(--r-sm); padding: 12px; }
.payto img { width: 132px; height: 132px; object-fit: contain; background: #fff; border-radius: 6px; border: 1px solid var(--line); }
.payto .no-qr { width: 0; }
.payto .acct { font-size: 20px; font-weight: 800; font-variation-settings: 'wdth' 118; font-variant-numeric: tabular-nums; }
.copy { border: 0; background: none; color: var(--violet); font-weight: 650; cursor: pointer; padding: 0; }
.bal-big { font-size: 40px; font-weight: 850; font-variation-settings: 'wdth' 125; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.rows { display: grid; }
.rows > div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.rows > div:last-child { border-bottom: 0; }
.plus { color: var(--ok); font-weight: 700; font-variant-numeric: tabular-nums; }
.minus { font-weight: 700; font-variant-numeric: tabular-nums; }

.auth { max-width: 420px; margin: 4vh auto 0; }
.auth form { display: grid; gap: 14px; }
.switch { display: grid; grid-template-columns: 1fr 1fr; background: var(--violet-2); border-radius: 999px; padding: 4px; margin: 18px 0; }
.switch button { border: 0; background: none; border-radius: 999px; padding: 9px; font-weight: 700; cursor: pointer; color: var(--ink-2); }
.switch button[aria-pressed='true'] { background: var(--surface); color: var(--ink); }
.prose { max-width: 70ch; }
.prose h2 { margin: 26px 0 8px; font-size: 19px; }
.prose p, .prose li { color: var(--ink-2); }

.foot { max-width: 1120px; margin: 0 auto; padding: 18px var(--gut) 90px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--ink-3); }
.foot a { color: var(--ink-2); }
@media (min-width: 900px) { .foot { padding-bottom: 28px; } }
.toast { position: fixed; left: 50%; bottom: 120px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-weight: 650; z-index: 40; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
