:root {
  color-scheme: dark;
  font-family: Manrope, 'Segoe UI Variable Text', 'Segoe UI', sans-serif;
  --bg: #080b18; --panel: #111629; --inset: #0c1020; --edge: #343d57; --text: #f4f5fa;
  --muted: #b8c0d3; --subtle: #99a5c0; --accent: #aecfff; --link: #cfb7ff; --error: #ffb3a4;
  background: var(--bg); color: var(--text);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 300px; min-height: 100dvh; }
.bar { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; padding: 12px clamp(18px,4vw,60px); min-height: 68px; border-bottom: 1px solid var(--edge); }
a { color: var(--link); }
.brand { color: var(--text); display: inline-flex; align-items: center; gap: 9px; font-weight: 700; text-decoration: none; }
.brand img { width: 39px; height: 39px; object-fit: contain; }
.product { border-left: 1px solid var(--edge); padding-left: 18px; color: var(--muted); font-size: .89rem; }
#home { display: inline-flex; gap: .55em; align-items: center; min-height: 44px; margin-left: auto; text-decoration: none; font-size: .9rem; font-weight: 650; }
#home:hover { text-decoration: underline; text-underline-offset: .22em; }
main { width: min(890px, calc(100% - 44px)); margin: clamp(32px,10vh,112px) auto 40px; }
.card { display: grid; background: var(--panel);
  border: 1px solid var(--edge); border-radius: 20px; overflow: hidden; box-shadow: 0 22px 70px #03041155; }
[data-view=signin] .card { grid-template-columns: minmax(220px,.78fr) minmax(340px,1fr); }
figure { margin: 0; position: relative; min-height: 436px; background: #242238; }
figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; position: absolute; inset: 0; }
figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 58%, #080916e6); }
figcaption { position: absolute; z-index: 1; bottom: 25px; left: 26px; display: grid; color: #fff; }
figcaption span { text-transform: uppercase; font-weight: 680; font-size: .68rem; letter-spacing: .14em; }
figcaption span { color: #dfd8f4; }
figcaption strong { font-family: Georgia, serif; font-weight: 500; font-size: 2rem; }
.panel { padding: clamp(26px,4.5vw,54px); align-self: center; min-width: 0; }
h1,h2,p { margin: 0; }
h1 { font-size: clamp(1.9rem,3.5vw,2.55rem); line-height: 1.12; letter-spacing: -.045em; }
h1:focus { outline: none; }
#intro { color: var(--muted); line-height: 1.6; margin: 10px 0 25px; overflow-wrap: anywhere; }
form { display: grid; gap: 12px; }
label { font-size: .9rem; font-weight: 650; }
input,button { font: inherit; }
input { border: 1px solid var(--edge); border-radius: 9px; padding: 12px 14px; width: 100%; background: var(--inset); color: var(--text); font-size: 1rem; }
input[name=code] { font-variant-numeric: tabular-nums; letter-spacing: .28em; }
button { cursor: pointer; border-radius: 9px; min-height: 44px; font-weight: 650; }
button:disabled { opacity: .55; cursor: wait; }
.primary { border: 0; background: var(--accent); color: #102141; padding: 11px 16px; }
.primary:hover:enabled { filter: brightness(1.06); }
.quiet { padding: 4px 0; border: 0; background: transparent; color: var(--link); text-align: left; }
.links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.hint, .meta, #message { color: var(--subtle); font-size: .86rem; line-height: 1.55; }
.hint { margin: 10px 0 0; }
.preview-code { border-left: 2px solid var(--link); padding: 8px 12px; background: var(--inset); color: var(--text); margin: 0 0 15px; font-size: .87rem; }
#message:not(:empty) { margin-top: 15px; }
#message.error { color: var(--error); }
body:not([data-view=signin]) main { max-width: 700px; margin-top: clamp(32px,7vh,76px); }
body:not([data-view=signin]) .card { display: block; border: 0; border-radius: 0; box-shadow: none; background: transparent; overflow: visible; }
body:not([data-view=signin]) .panel { padding: 0; }
[data-view=account] h1 { margin-bottom: 26px; }
.account-group { padding: clamp(18px,3vw,28px); background: var(--panel); border: 1px solid var(--edge); border-radius: 14px; }
.account-group + .account-group { margin-top: 14px; }
.account-group h2 { letter-spacing: -.02em; font-size: 1.1rem; line-height: 1.4; }
.facts { margin: 12px 0 0; }
.facts > div { display: grid; grid-template-columns: minmax(116px,.64fr) minmax(0,1fr); align-items: baseline; gap: 6px 18px; padding: 10px 0; }
.facts > div + div { border-top: 1px solid var(--edge); }
.facts > div:last-child { padding-bottom: 0; }
.facts dt { color: var(--muted); font-size: .89rem; }
.facts dd { margin: 0; overflow-wrap: anywhere; line-height: 1.45; font-weight: 600; }
.account-group .meta { margin-top: 16px; }
.billing-controls, .account-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.billing-controls { margin-top: 20px; }
.account-actions { justify-content: space-between; margin: 10px 2px 0; }
.account-actions .quiet:last-child { color: var(--muted); }
.quiet:hover:enabled { text-decoration: underline; text-underline-offset: .22em; }
footer { color: var(--subtle); font-size: .83rem; padding: 14px 4px; }
:root[data-theme=light] { color-scheme: light; --bg: #f2f1f7; --panel: #faf9fd; --inset: #f1f0f7; --edge: #a5a8bb; --text: #222538; --muted: #444e66; --subtle: #536077; --accent: #b3cefc; --link: #5f418a; --error: #973a29; }
:root[data-theme=light] :focus-visible { outline-color: #345b94; }
@media (max-width: 650px) {
  main { width: min(450px,calc(100% - 28px)); margin: 24px auto; }
  [data-view=signin] .card { grid-template-columns: 1fr; border-radius: 15px; }
  figure { min-height: 126px; max-height: 150px; }
  figure img { object-position: 50% 13%; }
  figure::after { background: linear-gradient(90deg,#080916ad,transparent 78%); }
  figcaption { bottom: 12px; left: 18px; } figcaption strong { font-size: 1.45rem; }
  .panel { padding: 23px 20px; }
  .bar { min-height: 58px; gap: 4px 10px; } .product { padding-left: 10px; }
  [data-view=account] .bar .product { display: none; }
  [data-view=account] h1 { margin-bottom: 18px; }
  .facts > div { grid-template-columns: minmax(98px,.65fr) minmax(0,1fr); gap: 5px 12px; }
}
@media (max-width: 380px) {
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
}
