:root {
  --brand: #1f4e79;
  --bg: #f5f6f8;
  --card: #ffffff;
  --ink: #16202b;
  --muted: #5b6673;
  --line: #e2e6eb;
  --ok: #1d7a46;
  --warn: #9a6200;
  --bad: #b3261e;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }

.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; min-width: 0; }
.brand span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mark {
  display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none;
  border-radius: 8px; background: var(--brand); color: #fff; font-size: 15px;
}
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; }
.lang button {
  border: 0; background: transparent; padding: 6px 11px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--brand); color: #fff; font-weight: 600; }

main { padding-top: 20px; padding-bottom: 24px; }
h1 { font-size: 22px; line-height: 1.25; margin: 0 0 6px; }
h2 { font-size: 18px; line-height: 1.3; margin: 0; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; padding: 40px 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.narrow { max-width: 440px; margin: 8px auto 16px; }

label { display: block; font-weight: 600; font-size: 14px; margin: 6px 0; }
input[type=email], input[type=text], input[type=password], textarea {
  width: 100%; font: inherit; font-size: 17px; padding: 11px 12px; border: 1px solid #c6cdd5; border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 1px; }
#code { letter-spacing: .4em; font-size: 22px; text-align: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 16px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; text-align: center;
}
form .btn.primary { width: 100%; margin-top: 12px; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.ghost { background: #fff; color: var(--ink); border-color: #c6cdd5; }
.btn.danger { background: var(--bad); color: #fff; }
.btn.danger-ghost { background: #fff; color: var(--bad); border-color: #e7b9b5; }
.btn:disabled { opacity: .6; cursor: progress; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; cursor: pointer; }
.err { color: var(--bad); font-size: 14px; margin: 10px 0 0; }
.err.ok { color: var(--ok); }

.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.dash-head .btn { flex: none; min-height: 38px; padding: 6px 12px; font-size: 14px; }
.demo-note { background: #fff7e0; border: 1px solid #f0d58a; color: #6b4e00; border-radius: 10px; padding: 10px 12px; font-size: 14px; }

.member { border-top: 4px solid var(--accent, var(--brand)); }
.m-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 2px; font-weight: 700; }
.badge { flex: none; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #e9f5ee; color: var(--ok); }
.badge[data-status="paused"] { background: #fff4de; color: var(--warn); }
.badge[data-status="canceled"], .badge[data-status="failed"] { background: #f1f2f4; color: var(--muted); }
.badge[data-status="retrying"] { background: #fdecea; color: var(--bad); }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0 0 14px; }
.facts div { min-width: 0; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.actions.stack { flex-direction: column; }
.actions.stack .btn { width: 100%; }

.section { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.section summary { cursor: pointer; font-weight: 700; font-size: 15px; padding: 4px 0; }
.benefits { margin: 8px 0 4px; padding-left: 20px; }
.benefits li { margin-bottom: 6px; }

.table-wrap { overflow-x: auto; margin-top: 8px; }
.billing { width: 100%; border-collapse: collapse; font-size: 14px; }
.billing th, .billing td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.billing th { font-size: 12px; color: var(--muted); font-weight: 600; }
.billing .num { text-align: right; }

.foot { padding-bottom: 32px; text-align: center; }
.foot a { color: var(--muted); }

dialog { border: 0; border-radius: 14px; padding: 20px; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; }
dialog::backdrop { background: rgba(16, 24, 32, .55); }
dialog h2 { margin-bottom: 10px; }
fieldset { border: 0; padding: 0; margin: 0 0 10px; }
legend { font-weight: 600; font-size: 14px; margin-bottom: 4px; padding: 0; }
.choice { font-weight: 400; display: flex; gap: 8px; align-items: center; padding: 7px 0; margin: 0; font-size: 15px; }
.offer { background: #f3f7fb; border-radius: 10px; padding: 12px; margin: 12px 0; }
.offer p { margin-bottom: 8px; font-size: 14px; }

@media (max-width: 420px) {
  .lang button { padding: 6px 9px; }
  .card { padding: 16px; }
  .actions:not(.stack) .btn { flex: 1 1 calc(50% - 8px); }
  .billing th:nth-child(3), .billing td:nth-child(3) { display: none; }
}

#vPass label + input + label, #fPass input + label { margin-top: 12px; }
#vEmail form + p, #vPass form + p { margin-top: 14px; }

.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 14px 0 12px; }
.store-item { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; color: var(--ink); text-decoration: none; background: #fff; min-width: 0; }
.store-item:hover { border-color: var(--brand); }
.store-item img, .store-item .img-ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--bg); display: block; }
.si-title { font-weight: 600; font-size: 14px; line-height: 1.3; }
.si-price { font-size: 15px; }
.si-price s { color: var(--muted); font-size: 13px; }
.si-price strong { color: var(--ok); }
.si-tag { font-size: 12px; color: var(--muted); }
.si-btn { margin-top: auto; min-height: 38px; padding: 6px 10px; font-size: 14px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; color: var(--ink); }
