/* Shared styles for the account pages (sign in, sign up, account, admin).
   The converter page (index.html) carries its own copy of these tokens. */
:root {
  --bg: #F3F4F7; --surface: #FFFFFF; --surface-2: #EEF0F5; --fg: #0B1226; --muted: #5B6578; --line: #D9DDE6;
  --accent: #1D5BFF; --accent-fg: #FFFFFF; --accent-soft: #E4ECFF;
  --good: #1A7F4B; --good-soft: #DDF3E6; --warn: #9A5B00; --warn-soft: #FBEBD2; --bad: #C0392B; --bad-soft: #FAE1DE;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0D12; --surface: #15181F; --surface-2: #1D2129; --fg: #E9ECF2; --muted: #9AA3B2;
    --line: #2A2F3A; --accent: #4D80FF; --accent-fg: #FFFFFF; --accent-soft: #182B5C;
    --good: #4FD38A; --good-soft: #15301F; --warn: #F0B35B; --warn-soft: #3A2C12; --bad: #FF8A80; --bad-soft: #3A1D1A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0D12; --surface: #15181F; --surface-2: #1D2129; --fg: #E9ECF2; --muted: #9AA3B2;
  --line: #2A2F3A; --accent: #4D80FF; --accent-fg: #FFFFFF; --accent-soft: #182B5C;
  --good: #4FD38A; --good-soft: #15301F; --warn: #F0B35B; --warn-soft: #3A2C12; --bad: #FF8A80; --bad-soft: #3A1D1A;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 15px; line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 24px 40px;
}
a { color: var(--accent); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
.wrap { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; min-height: calc(100svh - 64px); }
.wrap.narrow { max-width: 440px; }
.topbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.brand img { display: block; height: 36px; width: auto; }
.brand span { font-size: 13px; color: var(--muted); font-weight: 500; padding-left: 12px; border-left: 1px solid var(--line); line-height: 1.2; }
@media (max-width: 520px) { .brand span { display: none; } }
.topbar .spacer { flex: 1 1 auto; }
@media (max-width: 520px) { .topbar .spacer { flex-basis: 100%; height: 0; } }
.theme-toggle { flex: 0 0 auto; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 1px solid transparent; background: none; color: var(--muted); display: inline-grid; place-items: center; cursor: pointer; }
.theme-toggle:hover { color: var(--fg); border-color: var(--line); background: var(--surface); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: none; }
.theme-toggle[data-mode="auto"] .i-auto, .theme-toggle[data-mode="light"] .i-light, .theme-toggle[data-mode="dark"] .i-dark { display: block; }
.theme { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.theme button { font: inherit; font-size: 13px; font-weight: 500; padding: 6px 12px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.theme button + button { border-left: 1px solid var(--line); }
.theme button[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); }
.acct { position: relative; display: inline-flex; gap: 8px; align-items: center; }
.acct-btn { font: inherit; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; min-width: 210px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.18); z-index: 30; display: grid; }
.menu .who { padding: 8px 10px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; word-break: break-word; }
.menu a, .menu button { font: inherit; font-size: 14px; text-align: left; padding: 8px 10px; border-radius: 6px; color: var(--fg); text-decoration: none; background: none; border: 0; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--surface-2); }
.btn { font: inherit; font-weight: 500; border-radius: 8px; padding: 9px 16px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--fg); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn:hover { border-color: var(--accent); }
.btn:focus-visible, .theme button:focus-visible, .acct-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: default; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 16px; }
.panel h1 { font-size: 24px; }
.panel .sub { color: var(--muted); margin: -8px 0 0; }
form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field input, .field select { font: inherit; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); width: 100%; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.has-error input { border-color: var(--bad); }
.field .error { font-size: 13px; color: var(--bad); }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 3px; }
.alert { padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.alert.err { background: var(--bad-soft); color: var(--bad); }
.alert.ok { background: var(--good-soft); color: var(--good); }
.alert.info { background: var(--accent-soft); color: var(--fg); }
.alt { font-size: 14px; color: var(--muted); text-align: center; }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
.kv span:nth-child(odd) { color: var(--muted); }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.neutral { background: var(--surface-2); color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.stat .k { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stat .v { font-family: var(--font-mono); font-size: 20px; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: 13px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs button { font: inherit; font-weight: 500; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 9px 12px; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
footer.site { margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
footer.site a { color: var(--accent); text-decoration: none; }
footer.site .copy { margin-left: auto; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.navlink { font-size: 14px; font-weight: 500; color: var(--fg); text-decoration: none; padding: 6px 8px; border-radius: 6px; }
.navlink:hover { background: var(--surface-2); }
/* pricing */
.pricing-head { text-align: center; display: grid; gap: 10px; justify-items: center; padding-top: 12px; }
.pricing-head .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.pricing-head h1 { font-size: clamp(28px, 5vw, 40px); letter-spacing: -.02em; }
.pricing-head p { margin: 0; max-width: 56ch; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; align-items: stretch; margin-top: 8px; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 14px; }
.plan.best { border: 2px solid var(--accent); padding: 25px 23px 21px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface) 60%); box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--accent) 45%, transparent); }
.plan .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--accent); color: var(--accent-fg); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.plan h2 { font-size: 15px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.plan.best h2 { color: var(--accent); }
.plan .price { display: flex; align-items: baseline; gap: 6px; }
.plan .amt { font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.plan .per { color: var(--muted); font-size: 15px; }
.plan .price .was { color: var(--muted); font-size: 22px; font-weight: 600; margin-right: 4px; text-decoration-thickness: 2px; }
.plan .saveline { margin: -6px 0 0; font-size: 13px; font-weight: 600; color: var(--good); }
.plan .tag { margin: 0; color: var(--muted); font-size: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; font-size: 14px; line-height: 1.45; flex: 1 1 auto; }
.plan li { position: relative; padding-left: 26px; }
.plan li::before { content: ""; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, transparent); }
.plan li::after { content: ""; position: absolute; left: 7px; top: 5px; width: 4px; height: 8px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.plan .cta { display: grid; gap: 8px; margin-top: 6px; }
.plan .cta .btn { width: 100%; justify-content: center; padding-block: 11px; }
.plan .cta .muted { font-size: 12.5px; text-align: center; }
.daypass { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px 18px; margin-top: 18px; padding: 16px 20px;
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, var(--line)); border-radius: 16px; background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.daypass .dp-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; }
.daypass .dp-text b { font-size: 16px; }
.daypass .dp-price { margin-left: 6px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.daypass .dp-text p { margin: 4px 0 0; font-size: 14px; }
.daypass .cta { display: grid; gap: 4px; justify-items: center; }
.daypass .cta .btn { white-space: nowrap; font-weight: 700; border-radius: 12px; }
.daypass .cta .muted { font-size: 12px; text-align: center; }
@media (max-width: 640px) { .daypass { grid-template-columns: auto minmax(0, 1fr); } .daypass .cta { grid-column: 1 / -1; justify-items: stretch; } .daypass .cta .btn { justify-content: center; } }
.plan .cta .btn.primary { font-weight: 700; font-size: 15px; border-radius: 12px; transition: transform .15s ease, box-shadow .15s ease; }
.plan .cta .btn.primary::after { content: "→"; margin-left: 8px; display: inline-block; transition: transform .15s ease; }
.plan .cta .btn.primary:hover::after { transform: translateX(3px); }
.plan.best .cta .btn.primary { color: #fff; border: 0; background: linear-gradient(135deg, #3d7bff 0%, #1d5bff 45%, #5b3df5 100%);
  box-shadow: 0 10px 24px -10px rgba(45,100,255,.8), inset 0 1px 0 rgba(255,255,255,.18); }
.plan.best .cta .btn.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(45,100,255,.95), inset 0 1px 0 rgba(255,255,255,.2); }
.plan:not(.best) .cta .btn.primary { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.plan:not(.best) .cta .btn.primary:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .plan .cta .btn.primary, .plan .cta .btn.primary::after { transition: none; } .plan .cta .btn.primary:hover { transform: none; } }
.ecopay { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.payhead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; }
.paypick { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; margin: 10px 0 12px; }
.pm-opt { display: grid; justify-items: center; gap: 6px; padding: 10px 8px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--fg);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.pm-opt:hover { border-color: var(--accent); transform: translateY(-1px); }
.pm-opt[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.pm-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pm-opt:disabled { opacity: .5; cursor: default; transform: none; }
.pm-logos { display: flex; align-items: center; justify-content: center; gap: 4px; height: 26px; padding: 0 8px; background: #fff; border-radius: 6px; min-width: 70px; }
.pm-logos img { height: 15px; width: auto; max-width: 66px; }
@media (max-width: 560px) { .paypick { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pm-logos { min-width: 0; padding: 0 5px; } .pm-logos img { max-width: 52px; height: 13px; } }
@media (prefers-reduced-motion: reduce) { .pm-opt { transition: none; } .pm-opt:hover { transform: none; } }
.waitfoot { margin-top: 6px; }
.alert.waiting { display: flex; align-items: center; gap: 14px; }
.cdwrap { --cd: 1; position: relative; flex: 0 0 auto; width: 54px; height: 54px; display: grid; place-items: center; }
.cdring { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--cd) * 360deg), color-mix(in srgb, var(--accent) 18%, transparent) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  transition: background .9s linear; }
.cdnum { font: 700 14px/1 ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--accent); text-decoration: underline; cursor: pointer; }
.linkbtn:disabled { opacity: .6; cursor: default; }
.innbox { display: grid; gap: 10px; justify-items: start; padding: 14px; border: 1px dashed var(--accent); border-radius: 12px; margin-top: 4px; }
.inncode { font: 700 30px/1.1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.otpform, .zbform { display: grid; gap: 8px; }
.otpform { margin-top: 4px; }
.otpform .row, .zbpay .row { display: flex; flex-wrap: wrap; gap: 10px; }
.otpform input { flex: 0 1 10em !important; font-size: 18px !important; letter-spacing: .2em; }
.zbpay input:disabled { opacity: .7; }
.pm-logos img[src*=onemoney], .pm-logos img[src*=smilecash] { height: 22px; }
.pm-logos img[src*=mastercard] { height: 16px; }
.zbpay { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); margin-top: 12px; }
.zbpay .ecohead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ecopay .ecohead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ecologo { display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px; }
.ecologo img { display: block; height: 15px; width: auto; }
.ecopay .row { display: flex; flex-wrap: wrap; gap: 10px; }
.zbpay input, .otpform input, .ecopay input { flex: 1 1 200px; max-width: 280px; font: inherit; font-size: 16px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); }
.paymanual { display: grid; gap: 10px; }
.paymanual h3 { margin: 6px 0 0; font-size: 15px; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--accent); border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
.paymethods { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.paymethods .pm-label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.pm-list li { display: flex; align-items: center; justify-content: center; height: 26px; min-width: 44px; padding: 0 7px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.pm-list img { display: block; height: 13px; width: auto; max-width: 64px; }
.pm-list img[alt="Mastercard"], .pm-list img[alt="InnBucks"] { height: 15px; }
.pm-list img[alt="Visa"] { height: 10px; }
.pm-list img[alt="OneMoney"], .pm-list img[alt="SmileCash"] { height: 20px; }
.paymethods.center { justify-content: center; }
@media (max-width: 560px) {
  .paymethods { flex-direction: column; align-items: stretch; }
  .paymethods .pm-label { text-align: center; }
  .pm-list { justify-content: center; }
}
.payref { font-family: var(--font-mono); font-size: 22px; font-weight: 600; letter-spacing: .04em; background: var(--surface-2); border: 1px dashed var(--accent); border-radius: 8px; padding: 8px 14px; display: inline-block; }
.faq { display: grid; gap: 8px; max-width: 760px; width: 100%; margin: 12px auto 0; }
.faq h2 { font-size: 20px; margin-bottom: 6px; text-align: center; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; color: var(--muted); }
.planbox { display: grid; gap: 10px; }
.meter { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--accent); }
/* "Continue with Google" */
.oauth { display: grid; gap: 14px; margin: 4px 0 14px; }
.btn.gbtn { justify-content: center; gap: 10px; width: 100%; padding: 11px 16px; font-weight: 600; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; border-radius: 10px; }
.btn.gbtn:hover { background: #f8faff; border-color: #c6cbd3; }
.btn.gbtn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.oauth .or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; }
.oauth .or::before, .oauth .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.oauth .terms { margin: -6px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
