/* account.lords-bot.com: pages on top of the main site's site.css (same tokens, header and footer). */

/* ── Header ───────────────────────────────────────────────────────────── */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.who { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); font-size: 14px; }
/* Longer translated nav labels + the language button: the email gives way first, never the brand or nav. */
.head-row > .brand, .head-row > .nav, .nav a { flex: none; white-space: nowrap; }
.head-actions { min-width: 0; }
.who { flex: 0 1 auto; min-width: 48px; }
.site-head .brand { flex: none; white-space: nowrap; }
@media (max-width: 1180px) { .who { display: none; } }

/* ── Language switcher (disclosure button + list of links) ───────────────── */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 8px 8px 10px; border: 0; border-radius: 6px;
  background: none; color: var(--dim); font: 500 15px/1 var(--ui); cursor: pointer; white-space: nowrap; transition: color .15s, background-color .15s;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { color: var(--text); background: var(--panel); }
.lang-btn .icon { width: 17px; height: 17px; }
.lang-btn .chev { width: 14px; height: 14px; color: var(--label); transition: transform .3s var(--ease); }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-code { font-weight: 600; letter-spacing: .02em; }
.lang-list {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 45; min-width: 210px; margin: 0; padding: 6px; list-style: none;
  background: var(--panel); border: 1px solid var(--line2); border-radius: 9px; box-shadow: 0 16px 32px -14px rgba(0, 0, 0, .7);
}
.lang-list[hidden] { display: none; }
.lang-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 6px;
  color: var(--dim); text-decoration: none; font-size: 15px; font-weight: 500; line-height: 1.3;
  /* Each name in its own script's font, whatever the page language */
  --ui: "Schibsted Grotesk", system-ui, "Segoe UI", sans-serif; font-family: var(--ui);
}
.lang-list a:lang(zh) { --ui: "Schibsted Grotesk", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
.lang-list a:lang(zh-Hant) { --ui: "Schibsted Grotesk", "PingFang TC", "Microsoft JhengHei UI", "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif; }
.lang-list a:lang(vi), .lang-list a:lang(ru) { --ui: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
.lang-list a:hover { background: var(--inset); color: var(--text); }
.lang-list a:focus-visible { outline-offset: -2px; background: var(--inset); color: var(--text); }
.lang-list a[aria-current] { color: var(--text); }
.lang-list a .icon { width: 16px; height: 16px; color: var(--accent); }
/* Login card: compact trigger beside the form title */
.auth-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.auth-card-head h2 { margin-bottom: 0; }
.lang.compact { margin: -4px -8px 0 0; flex: none; }
.lang.compact .lang-btn { border-color: var(--line2); }
.lang.compact .lang-btn:hover, .lang.compact .lang-btn[aria-expanded="true"] { border-color: #4a5266; }
/* Mobile menu: an expanding row like the other menu entries */
.lang.inline .lang-btn {
  width: 100%; min-height: 0; padding: 13px 4px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: none; color: var(--text); font-size: 17px; font-weight: 400;
}
.lang.inline .lang-btn .chev { margin-left: auto; }
.lang.inline .lang-list { position: static; min-width: 0; padding: 6px 0 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; }
.lang.inline .lang-list[hidden] { display: none; }
.mobile-nav .lang.inline .lang-list a { padding: 0 10px; border-bottom: 0; font-size: 15.5px; color: var(--dim); }
.mobile-nav .lang.inline .lang-list a[aria-current] { color: var(--text); background: var(--inset); box-shadow: none; }

/* ── Scripts the Latin-only site font doesn't cover ───────────────────────
   Schibsted Grotesk has no CJK, Cyrillic or full Vietnamese glyphs; these pages use system UI fonts. */
:lang(zh) { --ui: "Schibsted Grotesk", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", system-ui, sans-serif; }
:lang(zh-Hant), :lang(zh-TW), :lang(zh-HK) { --ui: "Schibsted Grotesk", "PingFang TC", "Microsoft JhengHei UI", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", system-ui, sans-serif; }
:lang(vi), :lang(ru) { --ui: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; }
:lang(zh) body, :lang(vi) body, :lang(ru) body { font-feature-settings: normal; }
:lang(zh) .micro { letter-spacing: .06em; }

/* ── Forms ────────────────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field-top label { font-size: 14px; font-weight: 600; color: var(--dim); }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field-top a { font-size: 13.5px; }
.field-hint { margin: 0; color: var(--dim); font-size: 13.5px; }
.field-row { display: flex; gap: 8px; }
.field-row input { flex: 1; min-width: 0; }
input[type="email"], input[type="password"], input[type="text"], input[type="number"], select {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line2); border-radius: var(--r);
  background: var(--bg); color: var(--text); font: 400 15.5px var(--ui);
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: var(--faint); }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(58, 168, 216, .22); }
input[readonly] { color: var(--dim); }
.check { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 14.5px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.btn-block { width: 100%; }
/* Translated labels (German, Russian...) can outgrow a phone: let buttons wrap instead of pushing the layout wider. */
.btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 8px; padding-bottom: 8px; }
.btn-sm, .head-actions .btn { white-space: nowrap; padding-top: 0; padding-bottom: 0; }
.icon-btn { width: 46px; padding: 0; }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 18px; border-radius: var(--r); font-size: 14.5px; line-height: 1.45; }
.note .icon { margin-top: 1px; }
.note.bad { background: rgba(217, 105, 92, .1); border: 1px solid rgba(217, 105, 92, .35); color: #f2b8af; }
.note.ok { background: rgba(79, 185, 138, .1); border: 1px solid rgba(79, 185, 138, .35); color: #9fdcbf; }
.status { min-height: 1.4em; margin-top: 16px; font-size: 14.5px; color: #f2b8af; }
.status.ok { color: var(--good); }
.dlg .status:empty { display: none; }

/* ── Log in / reset ───────────────────────────────────────────────────── */
.auth { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 112px); }
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(40px, 7vw, 112px); align-items: center; }
.auth-intro h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.auth-intro .lede { margin-top: 16px; }
.auth-points { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.auth-points li { display: flex; gap: 12px; color: var(--dim); font-size: 15.5px; line-height: 1.5; }
.auth-points .icon { margin-top: 2px; color: var(--label); }
.auth-card { border: 1px solid var(--line2); border-radius: 12px; background: var(--panel); padding: clamp(24px, 3.4vw, 36px); }
.auth-card h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 22px; }
.auth-alt { margin-top: 22px; font-size: 14.5px; color: var(--dim); }

.result { max-width: 560px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) 0; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.result > .icon { width: 44px; height: 44px; }
.result.ok > .icon { color: var(--good); }
.result.bad > .icon { color: var(--bad); }
.result h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.result .btn { margin-top: 8px; }

/* ── Dashboard ────────────────────────────────────────────────────────── */
.dash { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.dash-head h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.dash-head .lede { margin-top: 8px; overflow-wrap: anywhere; }

.tiles { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line2); border-radius: 12px; background: var(--panel); }
.tile { padding: 22px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.tile + .tile { border-left: 1px solid var(--line2); }
.tile .micro { display: inline-flex; align-items: center; gap: 8px; }
.tile .micro .icon { width: 15px; height: 15px; }
.tile-val { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.tile-sub { font-size: 14px; color: var(--dim); }
.tile-val.time { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.tile-val.time b { font-weight: 700; }
.tile-val.time .u { margin-left: -6px; font-size: .55em; font-weight: 600; letter-spacing: 0; color: var(--dim); }
.tile-hms { font-size: 16px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.tile-hms:empty { display: none; }
.tile.low .tile-val { color: var(--warn); }
.tile.expired .tile-val { color: var(--bad); }
.tile.expired .tile-hms { font-weight: 500; color: var(--dim); }
.tile .btn { margin-top: 2px; }

.dash-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.panel { border: 1px solid var(--line2); border-radius: 12px; background: var(--panel); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.panel > .btn:last-child, .panel > .btn-row:last-child { margin-top: auto; align-self: flex-start; }
.panel-head h2 { font-size: 1.25rem; letter-spacing: -0.02em; }
.panel-head p { margin-top: 6px; color: var(--dim); font-size: 14.5px; line-height: 1.5; }

.choices { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--bg); cursor: pointer; transition: border-color .15s, background-color .15s; }
.choice span::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--label); transition: border-color .15s, box-shadow .15s; }
.choice span:hover { border-color: #4a5266; }
.choice b { font-size: 15px; font-weight: 600; }
.choice small { margin-left: auto; font-size: 13.5px; color: var(--dim); }
.choice input:checked + span { border-color: var(--accent); background: rgba(58, 168, 216, .08); }
.choice input:checked + span::before { border-color: var(--accent); box-shadow: inset 0 0 0 3.5px var(--panel), inset 0 0 0 8px var(--accent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.stepper { display: flex; width: max-content; border: 1px solid var(--line2); border-radius: var(--r); background: var(--bg); overflow: hidden; }
.step { width: 46px; border: 0; background: none; color: var(--text); cursor: pointer; display: grid; place-items: center; }
.step:hover { background: var(--panel); }
.stepper input { width: 76px; height: 46px; border: 0; border-left: 1px solid var(--line2); border-right: 1px solid var(--line2); border-radius: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.stepper input:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pay-note { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13.5px; color: var(--label); }
.pay-note .icon { width: 15px; height: 15px; }

/* ── Dialogs ──────────────────────────────────────────────────────────── */
.dlg { width: calc(100% - 32px); max-width: 460px; padding: 26px; border: 1px solid var(--line2); border-radius: 12px; background: var(--panel); color: var(--text); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.dlg::backdrop { background: rgba(6, 7, 10, .72); }
.dlg h2 { font-size: 1.3rem; letter-spacing: -0.02em; }
.dlg p { margin-top: 10px; color: var(--dim); line-height: 1.55; }
.dlg-plan { max-width: 540px; }
.cmp { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { padding: 11px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.cmp thead th { padding-top: 0; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--label); border-bottom-color: var(--line2); }
.cmp tbody th { padding-left: 0; font-weight: 500; color: var(--dim); white-space: nowrap; }
.cmp td { color: var(--dim); }
.cmp td b { color: var(--text); font-weight: 700; }
.cmp tr > :last-child { background: rgba(58, 168, 216, .06); }
.cmp tr[hidden] { display: none; }
.dlg .dlg-note { margin-top: 14px; font-size: 14px; color: var(--label); }
.dlg .dlg-note[hidden] { display: none; }
.dlg .field { margin-top: 18px; }
.dlg-actions { margin-top: 24px; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.steps { margin: 14px 0 0; padding-left: 20px; color: var(--dim); line-height: 1.55; }
.steps li + li { margin-top: 8px; }
.steps .key { color: var(--text); user-select: all; overflow-wrap: anywhere; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .tile + .tile { border-left: 0; border-top: 1px solid var(--line2); }
}
@media (max-width: 600px) {
  .auth-points { display: none; }
  .panel, .auth-card { padding: 20px; }
  .dlg-actions .btn { flex: 1 1 auto; }
  .cmp tbody th { white-space: normal; }
  .cmp th, .cmp td { padding-left: 8px; padding-right: 8px; }
}

/* ── Payment dialog (Checkout Sessions + Stripe Elements, themed via the Appearance API) ── */
.dlg-pay { width: calc(100% - 48px); max-width: 980px; padding: 0; overflow: hidden; background: var(--panel); }
.dlg-pay[open] { display: flex; flex-direction: column; max-height: min(92vh, 940px); }
.pay-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 22px; border-bottom: 1px solid var(--line2); background: var(--bg); }
.pay-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pay-title .icon { color: var(--good); }
.pay-title h2 { font-size: 1.05rem; letter-spacing: -0.01em; white-space: nowrap; }
.pay-by { font-size: 13px; color: var(--label); white-space: nowrap; }
.pay-head .icon-btn { width: 40px; min-height: 40px; }
.pay-body { flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: start; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.pay-body.loading .pay-summary > *:not(.micro), .pay-body.loading .pay-form > * { visibility: hidden; }
.pay-body.loading .pay-form { position: relative; min-height: 320px; }
.pay-body.loading .pay-form::after { content: attr(data-loading); position: absolute; inset: 0; display: grid; place-items: center; color: var(--label); font-size: 14.5px; }
.pay-body.loading .pay-summary::after { content: ""; display: block; height: 120px; margin-top: 12px; border-radius: 8px; background: linear-gradient(90deg, var(--panel), var(--inset), var(--panel)); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .pay-body.loading .pay-summary::after { animation: none; } }
.pay-body[hidden] { display: none; }
.pay-summary { padding: 28px 28px 32px; border-right: 1px solid var(--line2); background: var(--bg); display: flex; flex-direction: column; gap: 6px; }
.dlg-pay .pay-item { margin: 6px 0 0; font-size: 16px; font-weight: 600; color: var(--text); }
.dlg-pay .pay-big { margin: 2px 0 18px; color: var(--text); font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.pay-lines { margin: 0; display: flex; flex-direction: column; }
.pay-lines > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.pay-lines > div[hidden] { display: none; }
.pay-lines dt { color: var(--dim); }
.pay-lines dd { margin: 0; color: var(--text); text-align: right; }
.pay-lines .tot { border-top-color: var(--line2); padding-top: 14px; font-size: 16px; font-weight: 700; }
.pay-lines .tot dt { color: var(--text); }
.promo { margin-top: 18px; display: flex; gap: 8px; }
.promo[hidden] { display: none; }
.promo input { height: 42px; font-size: 14.5px; }
.promo .btn { min-height: 42px; }
.dlg-pay .promo-msg { margin: 6px 0 0; min-height: 1.3em; font-size: 13.5px; color: var(--good); }
.promo-msg.bad { color: #f2b8af; }
#pay-currency:empty { display: none; }
.pay-form { padding: 28px 28px 30px; display: flex; flex-direction: column; gap: 16px; }
.pay-or { display: flex; align-items: center; gap: 12px; color: var(--label); font-size: 13px; }
.pay-or[hidden] { display: none; }
.pay-or::before, .pay-or::after { content: ""; flex: 1; height: 1px; background: var(--line2); }
#pay-express:empty, #pay-billing:empty { display: none; }
.pay-form .status { margin: 0; min-height: 0; }
.pay-form .status:empty { display: none; }
.dlg-pay .pay-fine { margin: -4px 0 0; font-size: 12.5px; color: var(--label); text-align: center; }
.pay-done { padding: 56px 28px 60px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.pay-done[hidden] { display: none; }
.pay-done .icon { width: 44px; height: 44px; color: var(--good); }
.dlg-pay .pay-done p { margin: 0; }
@media (max-width: 760px) {
  .pay-body { grid-template-columns: 1fr; }
  .pay-summary { border-right: 0; border-bottom: 1px solid var(--line2); padding: 22px 20px; }
  .dlg-pay .pay-big { margin-bottom: 10px; }
  .pay-form { padding: 22px 20px 26px; }
}
@media (max-width: 600px) {
  .dlg-pay { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border-radius: 0; border: 0; }
  .dlg-pay[open] { max-height: none; }
  .pay-by { display: none; }
}
