:root {
  --bg: #f5f7fb; --card: #fff; --text: #141a2a; --muted: #667085; --line: #e4e8f0;
  --accent: #2f6bff; --accent-2: #1d4fd8; --ok: #12a150; --warn: #d97706; --bad: #dc2626;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0d1117; --card: #161b24; --text: #e7ecf3; --muted: #94a0b4; --line: #263042; --accent: #5b8cff; --accent-2: #3f74ff; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", "Noto Sans Georgian", sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--accent); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
header.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { font-weight: 800; font-size: 19px; letter-spacing: -.3px; }
.logo span { color: var(--accent); }
nav a { margin-left: 18px; text-decoration: none; color: var(--muted); font-weight: 500; }
nav a:hover { color: var(--text); }
.hero { padding: 48px 0 28px; }
.hero h1 { font-size: clamp(26px, 4vw, 40px); margin: 0 0 8px; letter-spacing: -.5px; }
.hero p { color: var(--muted); margin: 0 0 20px; max-width: 620px; }
input, select, textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 5px; font-weight: 500; }
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
button:hover { background: var(--accent-2); }
button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
button.small { padding: 5px 10px; font-size: 13px; }
button.danger { background: var(--bad); }
button:disabled { opacity: .5; cursor: default; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.tabs button { background: var(--card); color: var(--text); border: 1px solid var(--line); font-weight: 500; }
.tabs button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding-bottom: 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.svc { display: flex; flex-direction: column; gap: 8px; }
.svc h3 { margin: 0; font-size: 16px; }
.svc .meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; }
.price { font-size: 20px; font-weight: 800; }
.muted { color: var(--muted); font-size: 13px; }
.desc { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--line); color: var(--text); }
.st-awaiting_payment { background: #fef3c7; color: #92400e; }
.st-paid { background: #dbeafe; color: #1e40af; }
.st-processing { background: #e0e7ff; color: #3730a3; }
.st-completed { background: #dcfce7; color: #166534; }
.st-rejected, .st-cancelled { background: #fee2e2; color: #991b1b; }
dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(480px, calc(100vw - 32px)); background: var(--card); color: var(--text); }
dialog::backdrop { background: rgba(10, 15, 30, .55); }
dialog .body { padding: 22px; }
dialog h2 { margin: 0 0 4px; font-size: 19px; }
.row { display: flex; gap: 10px; align-items: center; }
.row > * { flex: 1; }
.err { color: var(--bad); font-size: 13px; min-height: 18px; margin-top: 8px; }
pre.result { white-space: pre-wrap; background: var(--bg); border: 1px solid var(--line); padding: 12px; border-radius: 10px; font-size: 13px; }
.section { padding: 32px 0; }
.track { display: flex; gap: 10px; max-width: 520px; }
footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 13px; margin-top: 30px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.steps .card b { display: block; font-size: 22px; color: var(--accent); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; }
.tablewrap { overflow-x: auto; }
.hidden { display: none !important; }
@media (max-width: 600px) { nav a { margin-left: 10px; font-size: 14px; } .track { flex-direction: column; } }
.balance-pill { background: var(--accent); color: #fff !important; padding: 5px 12px; border-radius: 99px; font-weight: 700; }
.balance-big { font-size: 38px; font-weight: 800; letter-spacing: -1px; margin-top: 4px; }
.acct-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; align-items: start; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; }
.netpick { display: grid; gap: 10px; }
button.net, .net-chosen { display: flex; align-items: center; justify-content: flex-start; gap: 14px; width: 100%; padding: 12px 14px; text-align: left;
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 12px; font-weight: 500; }
button.net:hover { background: var(--card); border-color: var(--accent); }
.net b, .net-chosen b { display: block; font-size: 16px; }
.net small, .net-chosen small { display: block; color: var(--muted); font-size: 13px; }
.net-chosen { margin-bottom: 12px; }
.net-chosen > span:nth-child(2) { flex: 1; }
.coin { position: relative; width: 38px; height: 38px; flex: none; }
.coin svg { width: 38px; height: 38px; display: block; }
.coin svg.coin-net { position: absolute; right: -5px; bottom: -5px; width: 20px; height: 20px; border: 2px solid var(--card); border-radius: 50%; background: var(--card); }
.notice { margin-bottom: 14px; font-weight: 500; }
.notice.ok { border-color: var(--ok); }
.notice.bad { border-color: var(--bad); }
.tabs button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (max-width: 760px) { .acct-grid { grid-template-columns: 1fr; } }

/* Registration: password strength bar, consent checkbox; 2FA QR */
.pw-meter { height: 5px; background: var(--line, #e4e8f0); border-radius: 4px; margin-top: 6px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; transition: width .2s; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 13px; margin-top: 12px; }
label.check input { width: auto; margin-top: 2px; }
.qr { display: block; width: 180px; height: 180px; image-rendering: pixelated; margin: 8px 0; border-radius: 8px; }
.codes { display: grid; grid-template-columns: repeat(2, max-content); gap: 4px 18px; font-family: monospace; font-size: 15px; }

/* Account: side menu + one section at a time (tabs on phones) */
.acct-layout { display: grid; grid-template-columns: 230px 1fr; gap: 18px; align-items: start; }
.acct-layout h2 { margin: 0 0 12px; font-size: 22px; }
.acct-layout > * { min-width: 0; }
.side { padding: 10px; position: sticky; top: 76px; }
.side-who { padding: 8px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: grid; overflow-wrap: anywhere; }
.side a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 500; }
.side a:hover { background: var(--bg); }
.side a.on { background: var(--accent); color: #fff; }
.side svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side-out { color: var(--muted) !important; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ok-badge { color: var(--ok); font-weight: 600; font-size: 13px; }
@media (max-width: 760px) {
  .acct-layout { grid-template-columns: 1fr; }
  .side { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 6px; }
  .side-who { display: none; }
  .side a { flex: none; padding: 8px 12px; font-size: 14px; }
  .row2 { grid-template-columns: 1fr; }
}

/* Main page for a logged-in customer: greeting + orders in progress, no "how it works" */
body.logged .hero { padding: 28px 0 8px; }
body.logged .guest-only { display: none; }
.hero h1.hi { font-size: clamp(22px, 3vw, 30px); margin-bottom: 10px; }
.active-orders { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--text); text-decoration: none; font-size: 14px; }
.chip:hover { border-color: var(--accent); }
#userHero { margin-bottom: 16px; }

/* Main page for guests: call to action, payment badges, perks, FAQ, footer contacts */
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-cta .btn { padding: 12px 22px; font-size: 16px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); }
.pay-badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.pay-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); font-size: 13px; font-weight: 600; }
.coin.sm, .coin.sm svg { width: 22px; height: 22px; }
.coin.sm svg.coin-net { width: 12px; height: 12px; right: -3px; bottom: -3px; border-width: 1px; }
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.perk { display: grid; gap: 4px; }
.perk-ic { font-size: 26px; line-height: 1; margin-bottom: 6px; }
.faq { padding: 4px 18px; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; color: var(--muted); }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 16px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--text); }
@media (max-width: 600px) { .hide-sm { display: none; } header.top nav { white-space: nowrap; } }
