/* =====================================================================
   Zernio portal app UI (auth, cabinet, billing, admin, errors).
   Same identity as the landing's night phase ("24 საათი"): night sky with static stars,
   skyline silhouette, Noto Serif Georgian display, Iris violet accent, the clock motif.
   Tokens mirror site.css / CONTRACT.md; this file loads nothing from site.css.
   ===================================================================== */
:root {
  --ink: #06061A;
  --night-2: #141038;
  --surface: #100E26;
  --surface-2: #17142F;
  --surface-3: #201C3D;
  --glass: rgba(17, 15, 40, .84);
  --line: rgba(244, 241, 234, .09);
  --line-2: rgba(244, 241, 234, .16);
  --text: #F4F1EA;
  --text-2: rgba(244, 241, 234, .74);
  --text-3: rgba(244, 241, 234, .56);
  --iris: #8B74FF;
  --iris-2: #A996FF;
  --iris-deep: #5D3FDB;
  --iris-soft: rgba(139, 116, 255, .14);
  --coral: #FF7A59;
  --coral-soft: rgba(255, 122, 89, .14);
  --ok: #3DD68C;
  --ok-soft: rgba(61, 214, 140, .14);
  --warn: #FFB547;
  --warn-soft: rgba(255, 181, 71, .14);
  --danger: #FF5C6C;
  --danger-soft: rgba(255, 92, 108, .14);
  --win: #FFC46B;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 30px 60px -34px rgba(0,0,0,.85);
  --font: "Inter", "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Noto Serif Georgian", "Noto Serif", Georgia, serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; background: linear-gradient(180deg, #06061A 0%, #0C0A26 60%, #161036 100%) fixed; color: var(--text);
  font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; position: relative;
  font-feature-settings: "tnum" 1; overflow-x: hidden;
}
a { color: var(--iris-2); text-decoration: none; }
a:hover { color: #C7BCFF; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
h1 { font-family: var(--serif); font-size: clamp(30px, 3.8vw, 44px); line-height: 1.12; letter-spacing: -.022em; text-wrap: balance; }
h2 { font-size: 18px; }
p { margin: 0; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: 0; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--iris-2); margin-bottom: 10px; }
:focus-visible { outline: 2px solid var(--iris); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
::selection { background: var(--iris); color: #fff; }

/* ---------- night sky (static, light) ---------- */
.nsky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.nsky::after { content: ""; position: absolute; inset: auto -10% -20% -10%; height: 70%; background: radial-gradient(60% 60% at 70% 100%, rgba(139,116,255,.16), transparent 70%); }
.nsky__stars { position: absolute; top: 0; left: 0; width: 100%; height: 72%; fill: #fff; opacity: .85;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent); mask-image: linear-gradient(180deg, #000 40%, transparent); }
.nsky__moon { position: absolute; left: 44vw; top: 12vh; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset -11px 7px 0 0 #F3EBD6; transform: rotate(-18deg); filter: drop-shadow(0 0 20px rgba(243,235,214,.35)); }
.z--bare .nsky__moon { left: auto; right: 13vw; top: 15vh; }
/* stars stay out of the copy: dimmed behind the content column (app) and behind the aside story (auth) */
.z--app .nsky__stars { opacity: .6;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(50% - 640px), rgba(0,0,0,.18) calc(50% - 560px), rgba(0,0,0,.18) calc(50% + 560px), #000 calc(50% + 640px)), linear-gradient(180deg, #000 40%, transparent);
  mask-image: linear-gradient(90deg, #000 calc(50% - 640px), rgba(0,0,0,.18) calc(50% - 560px), rgba(0,0,0,.18) calc(50% + 560px), #000 calc(50% + 640px)), linear-gradient(180deg, #000 40%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.z--auth .nsky__stars {
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.16) 0, rgba(0,0,0,.16) 40%, #000 50%), linear-gradient(180deg, #000 40%, transparent);
  mask-image: linear-gradient(90deg, rgba(0,0,0,.16) 0, rgba(0,0,0,.16) 40%, #000 50%), linear-gradient(180deg, #000 40%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.skyline { display: block; width: 100%; pointer-events: none; }
.skyline__ridge { fill: #141033; }
.skyline__tower path { fill: none; stroke: #141033; stroke-width: 2.4; stroke-linecap: round; }
.skyline__beacon { fill: #FF5A4A; animation: beacon 1.8s steps(1) infinite; }
@keyframes beacon { 50% { fill: #141033; } }
.skyline__hill { fill: #0F0C29; }
.skyline__houses { fill: #0B0920; }
.skyline__win rect { fill: var(--win); opacity: .82; }
.skyline__front { fill: #07061A; }

/* ---------- clock motif atoms ---------- */
.hourchip { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.hourchip__t { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 8px; box-shadow: inset 0 0 0 1px currentColor; color: var(--iris-2); font: 600 14px/1.4 var(--font); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.hourchip__l { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.livedot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 0 rgba(61,214,140,.6); animation: live 2.2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(61,214,140,0); } 100% { box-shadow: 0 0 0 0 rgba(61,214,140,0); } }
.minichip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; color: var(--text-2); white-space: nowrap; }
.minichip b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

.weekclock { margin: 30px 0 30px; max-width: 460px; }
.weekclock__t { display: flex; align-items: baseline; font: 200 clamp(64px, 7vw, 104px)/.9 "Inter", var(--font); letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: var(--text); margin-bottom: 20px; }
.weekclock__t i { font-style: normal; margin: 0 .02em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* the day track: 7 days (or one day) as a ruler, elapsed part filled, a "now" needle */
.daytrack { --p: 0%; position: relative; height: 40px; border-radius: 12px; background-color: rgba(255,255,255,.035);
  background-image: repeating-linear-gradient(90deg, rgba(244,241,234,.26) 0 1px, transparent 1px calc(100% / 7)),
                    repeating-linear-gradient(90deg, rgba(244,241,234,.09) 0 1px, transparent 1px calc(100% / 28));
  box-shadow: inset 0 0 0 1px var(--line); }
.daytrack--day { background-image: repeating-linear-gradient(90deg, rgba(244,241,234,.26) 0 1px, transparent 1px 25%),
                                    repeating-linear-gradient(90deg, rgba(244,241,234,.09) 0 1px, transparent 1px calc(100% / 24)); }
.daytrack__bar { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); border-radius: 12px 0 0 12px;
  background: linear-gradient(90deg, rgba(93,63,219,.25), rgba(139,116,255,.7)); transition: width .8s var(--ease); }
.daytrack__now { position: absolute; top: -7px; bottom: -7px; left: var(--p); width: 2px; margin-left: -1px; border-radius: 2px; background: var(--text); transition: left .8s var(--ease); }
.daytrack__now::before { content: ""; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(255,122,89,.6); animation: needle 2.2s infinite; }
@keyframes needle { 70% { box-shadow: 0 0 0 8px rgba(255,122,89,0); } 100% { box-shadow: 0 0 0 0 rgba(255,122,89,0); } }
.daytrack--week.daytrack--ahead::after, .z--auth .daytrack--week::after { content: ""; position: absolute; inset: 0; border-radius: 12px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(169,150,255,.22), transparent) no-repeat; background-size: 22% 100%; animation: sweep 6s var(--ease) infinite; }
@keyframes sweep { from { background-position: -30% 0; } to { background-position: 130% 0; } }
.daytrack__days, .daytrack__hours { list-style: none; margin: 10px 0 0; padding: 0; font: 500 12px/1 var(--font); color: var(--text-3); font-variant-numeric: tabular-nums; }
.daytrack__days { display: grid; grid-template-columns: repeat(7, 1fr); }
.daytrack__days li { padding-left: 8px; }
.daytrack__days li::before { content: "დღე "; }
.daytrack__days li.is-past { color: var(--text-2); }
.daytrack__days li.is-now { color: var(--text); font-weight: 600; }
.daytrack__hours { display: flex; justify-content: space-between; }

/* ---------- logo ---------- */
.zlogo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.zlogo:hover { color: var(--text); }
.zlogo__mark { flex: none; filter: drop-shadow(0 6px 16px rgba(139,116,255,.35)); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--surface-3); --fg: var(--text); --bd: var(--line-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg); font: 600 14.5px/1 var(--font); cursor: pointer;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .3s, opacity .2s;
  text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--fg); border-color: rgba(255,255,255,.28); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary {
  --bg: #A996FF; --fg: #0B0A14; --bd: transparent;
  background: var(--bg); box-shadow: 0 12px 36px -14px rgba(169,150,255,.85);
}
.btn--primary:hover { --fg: #0B0A14; box-shadow: 0 16px 44px -12px rgba(169,150,255,1); filter: brightness(1.04); }
.btn--secondary { --bg: var(--iris-soft); --fg: #DDD6FF; --bd: rgba(139,116,255,.34); }
.btn--secondary:hover { --bg: rgba(139,116,255,.22); }
.btn--ghost { --bg: transparent; --fg: var(--text-2); --bd: var(--line-2); }
.btn--ghost:hover { --fg: var(--text); --bg: rgba(255,255,255,.04); }
.btn--danger { --bg: var(--danger-soft); --fg: #FF9AA4; --bd: rgba(255,92,108,.3); }
.btn--sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn--xl { min-height: 60px; padding: 0 30px; font-size: 17px; }
.btn--block { width: 100%; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__label { opacity: .85; }
.btn.is-loading::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.pill--trial { color: #C9BEFF; background: var(--iris-soft); border-color: rgba(139,116,255,.3); }
.pill--trial .dot { animation: pulse 2s ease-in-out infinite; }
.pill--active { color: var(--ok); background: var(--ok-soft); border-color: rgba(61,214,140,.28); }
.pill--expired { color: var(--warn); background: var(--warn-soft); border-color: rgba(255,181,71,.28); }
.pill--suspended { color: #FF8F9B; background: var(--danger-soft); border-color: rgba(255,92,108,.28); }
@keyframes pulse { 50% { opacity: .45; } }
.tag { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 6px; background: var(--iris-soft); color: var(--iris-2); margin-left: 4px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .field__row label { font-size: 13.5px; font-weight: 600; color: var(--text); }
.field__row { display: flex; justify-content: space-between; align-items: baseline; }
.field__link { font-size: 13px; }
.field__hint { font-size: 12.5px; color: var(--text-3); overflow-wrap: anywhere; }
.field__err { font-size: 12.5px; color: #FF9AA4; display: flex; gap: 6px; align-items: center; }
.field__err::before { content: "!"; display: inline-grid; place-items: center; width: 15px; height: 15px; flex: none; border-radius: 50%; background: var(--danger-soft); font-size: 10px; font-weight: 700; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=date], textarea, select {
  width: 100%; min-height: 48px; padding: 12px 15px; border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(6,6,26,.55); color: var(--text); font: 400 15px/1.3 var(--font);
  transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none;
}
textarea { resize: vertical; min-height: 64px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: rgba(244,241,234,.38); }
input:hover, textarea:hover { border-color: rgba(255,255,255,.26); }
input:focus, textarea:focus { outline: none; border-color: var(--iris); background: rgba(139,116,255,.07); box-shadow: 0 0 0 4px rgba(139,116,255,.2); }
input[aria-invalid=true] { border-color: rgba(255,92,108,.6); box-shadow: 0 0 0 4px rgba(255,92,108,.12); }
input.is-valid { border-color: rgba(61,214,140,.45); }
input:disabled { opacity: .6; cursor: not-allowed; }
input[type=date] { color-scheme: dark; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.nowrap { white-space: nowrap; }

.input-prefix { display: flex; align-items: stretch; }
.input-prefix__tag { display: grid; place-items: center; padding: 0 13px; border: 1px solid var(--line-2); border-right: 0; border-radius: 14px 0 0 14px; background: rgba(255,255,255,.05); color: var(--text-2); font-size: 14px; font-weight: 500; }
.input-prefix input { border-radius: 0 14px 14px 0; }

.pw { position: relative; }
.pw input { padding-right: 50px; }
.pw__toggle { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--text-3); cursor: pointer; }
.pw__toggle:hover { color: var(--text); background: rgba(255,255,255,.05); }
.pw__toggle[aria-pressed=true] { color: var(--iris-2); }
.pw__toggle[aria-pressed=true] svg path { stroke-dasharray: 2 2.4; }

.meter { height: 4px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--danger); transition: width .35s var(--ease), background .35s; }

.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 13.5px; font-weight: 400 !important; color: var(--text-2) !important; cursor: pointer; line-height: 1.5; position: relative; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box { width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 1.5px solid var(--line-2); background: rgba(255,255,255,.03); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.check__box::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s var(--ease); }
.check input:checked + .check__box { background: var(--iris); border-color: var(--iris); }
.check input:checked + .check__box::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input:focus-visible + .check__box { box-shadow: 0 0 0 4px rgba(139,116,255,.25); }
.check input[aria-invalid=true] + .check__box { border-color: rgba(255,92,108,.7); }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { text-align: center; font-size: 14px; }

.alert { padding: 12px 14px; border-radius: 14px; font-size: 14px; margin-bottom: 16px; border: 1px solid; }
.alert--error { background: var(--danger-soft); border-color: rgba(255,92,108,.3); color: #FFC2C8; }

/* ---------- flashes ---------- */
.flashes { display: grid; gap: 10px; margin-bottom: 4px; }
.flash { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 14px; animation: drop .35s var(--ease); }
.flash--ok { border-color: rgba(61,214,140,.3); background: linear-gradient(0deg, var(--ok-soft), var(--ok-soft)), var(--surface); }
.flash--error { border-color: rgba(255,92,108,.3); background: linear-gradient(0deg, var(--danger-soft), var(--danger-soft)), var(--surface); }
.flash--warn { border-color: rgba(255,181,71,.3); background: linear-gradient(0deg, var(--warn-soft), var(--warn-soft)), var(--surface); }
.flash__x { border: 0; background: transparent; color: var(--text-3); font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.flash__x:hover { color: var(--text); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- auth shell ---------- */
.auth { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(400px, 1.08fr) minmax(440px, 1fr); min-height: 100vh; min-height: 100dvh; }
.auth > .skyline { position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; height: clamp(120px, 22vh, 240px); }
.auth__brand { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 40px clamp(28px, 5.4vw, 88px) 34px; }
.auth__pitch { position: relative; max-width: 520px; padding-bottom: 7vh; }
.auth__title { font-family: var(--serif); font-weight: 700; font-size: clamp(36px, 4.2vw, 60px); line-height: 1.06; letter-spacing: -.025em; margin-bottom: 18px; text-wrap: balance; }
.auth__title em { font-style: normal; color: var(--iris-2); display: block; }
.auth__lead { color: var(--text-2); font-size: 16px; line-height: 1.6; max-width: 30em; }
.auth__note { margin-top: 26px; display: inline-block; padding: 11px 16px; border-radius: 14px; background: rgba(6,6,26,.5); border: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.auth__note strong { color: var(--text); }
.auth__foot { position: relative; font-size: 12.5px; color: var(--text-3); }
.auth__main { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 48px 28px calc(40px + 6vh); }
.auth__main > .flashes { width: 100%; max-width: 480px; margin-bottom: 20px; }
.auth__top { display: none; }
.auth__mstory { display: none; }
.auth__mtitle { font: 700 22px/1.2 var(--serif); letter-spacing: -.02em; margin-bottom: 12px; }
.auth__mtitle em { font-style: normal; color: var(--iris-2); }
.daytrack--mini { height: 14px; border-radius: 7px; }
.daytrack--mini .daytrack__bar { border-radius: 7px 0 0 7px; }
.daytrack--mini .daytrack__now { top: -4px; bottom: -4px; }
.daytrack--mini .daytrack__now::before { width: 8px; height: 8px; margin-left: -4px; top: -4px; }
.authcard { width: 100%; max-width: 480px; padding: 36px clamp(22px, 3vw, 40px); border-radius: 28px; background: var(--glass); border: 1px solid rgba(255,255,255,.09);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 40px 90px -40px rgba(0,0,0,.9);
  animation: rise .6s var(--ease); }
.authcard__head { margin-bottom: 26px; display: grid; gap: 10px; justify-items: start; }
.authcard__head h1 { font-size: clamp(28px, 2.8vw, 38px); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--iris-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23A996FF' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.ticks--sm { gap: 9px; font-size: 14px; }
.ticks--sm li::before { top: 1px; }
.ticks li.ticks__soon { color: var(--text-3); }
.ticks li.ticks__soon::before { background: var(--coral-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4' fill='%23FF7A59'/%3E%3C/svg%3E") center/12px no-repeat; }

.iconbubble { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--iris-soft); color: var(--iris-2); border: 1px solid rgba(139,116,255,.25); flex: none; }
.addr { display: inline-flex; align-items: center; max-width: 100%; min-width: 0; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; color: #CFC6FF; background: var(--iris-soft); border: 1px solid rgba(139,116,255,.26); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
a.addr:hover { color: #fff; border-color: rgba(139,116,255,.5); }
.ws__top .addr { flex: 0 1 auto; }
.activate { position: relative; overflow: hidden; border-color: rgba(139,116,255,.32); }
.activate h2 { position: relative; margin-bottom: 8px; }
.activate > :not(.activate__glow) { position: relative; }
.stack > .activate { order: -1; }
.activate__glow { position: absolute; inset: -40% -20% auto auto; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, rgba(139,116,255,.22), transparent); pointer-events: none; }
.activate .btn--block { margin-top: 18px; }
.activate__hint { margin-top: 10px; }
.copyrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(6,6,26,.4); color: var(--text); }
.copyrow__label { color: var(--text-3); font-size: 13px; }
.copyrow__val { margin-left: auto; font-weight: 600; overflow-wrap: anywhere; }
.copyrow--link { margin-top: 8px; }
.activate__soon { margin-top: 14px; font-size: 12.5px; color: var(--text-3); }
.contactbox { display: grid; gap: 8px; margin: 18px 0; }
.contactbox__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(6,6,26,.4); color: var(--text); }
.contactbox__row span { color: var(--text-3); font-size: 13px; }
.contactbox__row:hover { border-color: var(--iris); color: var(--text); }

/* ---------- bare shell (errors) ---------- */
.bare { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 30px; padding: 40px 20px calc(60px + 14vh); }
.z--bare > .skyline { position: fixed; left: 0; right: 0; bottom: 0; z-index: 0; height: clamp(120px, 24vh, 260px); }
.errorcard { text-align: center; max-width: 560px; display: grid; gap: 14px; justify-items: center; }
.errorcard__code { font: 200 clamp(84px, 14vw, 156px)/.9 "Inter", var(--font); letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: var(--text); }
.errorcard__chip { display: inline-flex; padding: 3px 10px; border-radius: 8px; box-shadow: inset 0 0 0 1px currentColor; color: var(--iris-2); font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.errorcard h1 { font-size: clamp(30px, 4vw, 46px); }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }

/* ---------- app shell ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(6,6,26,.62); -webkit-backdrop-filter: saturate(150%) blur(18px); backdrop-filter: saturate(150%) blur(18px); border-bottom: 1px solid var(--line); }
.topbar__in { max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 66px; display: flex; align-items: center; gap: 28px; }
.tabs { display: flex; gap: 4px; flex: 1; min-width: 0; }
.tabs a { position: relative; padding: 8px 14px; border-radius: 999px; color: var(--text-2); font-size: 14.5px; font-weight: 500; transition: background .2s, color .2s; white-space: nowrap; }
.tabs a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.tabs a.is-on { color: var(--text); background: rgba(139,116,255,.16); box-shadow: inset 0 0 0 1px rgba(139,116,255,.3); }
.topbar__clock { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover { border-color: var(--line-2); color: var(--text); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #A996FF, #5D3FDB); color: #fff; font-weight: 700; font-size: 14px; line-height: 1; }
.usermenu__name { font-size: 14px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usermenu__pop { position: absolute; right: 0; top: calc(100% + 8px); width: 250px; padding: 8px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 24px 60px -20px rgba(0,0,0,.8); display: grid; gap: 2px; animation: drop .2s var(--ease); }
.usermenu__who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; gap: 2px; }
.usermenu__who span { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; }
.usermenu__pop a, .usermenu__out { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 10px; color: var(--text-2); font: 500 14px var(--font); background: none; border: 0; cursor: pointer; }
.usermenu__pop a:hover, .usermenu__out:hover { background: rgba(255,255,255,.05); color: var(--text); }
.usermenu__out { color: #FF9AA4; }

.page { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 44px 24px 40px; display: grid; gap: 24px; }
.page > * { min-width: 0; }
.pageend { position: relative; z-index: 0; margin-top: 10px; }
.pageend .skyline { height: clamp(110px, 18vw, 230px); }
.pagefoot { position: relative; z-index: 1; background: #07061A; }
.pagefoot__in { max-width: 1180px; margin: 0 auto; padding: 4px 24px 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--text-3); }
.pagefoot a { color: var(--text-3); }
.pagefoot a:hover { color: var(--text); }
.pagefoot__tag { margin-left: auto; }

.hello { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.hello h1 { margin-bottom: 8px; }
.hello .muted { font-size: 16px; }

.card { position: relative; background: linear-gradient(180deg, rgba(23,20,47,.96), rgba(16,14,38,.96)); border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); min-width: 0; }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.card h2 { font-family: var(--serif); font-size: 21px; letter-spacing: -.01em; }
.card.empty { text-align: center; padding: 40px 24px; display: grid; gap: 8px; }
.cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; }
.cols--billing { grid-template-columns: 1fr 1.1fr; align-items: start; }
.stack { display: grid; gap: 24px; }

/* workspace hero */
.ws { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 34px; border-radius: 28px; border: 1px solid rgba(139,116,255,.24);
  background: radial-gradient(90% 120% at 100% 0%, rgba(93,63,219,.28), transparent 60%), linear-gradient(160deg, #1A1640 0%, #100E26 70%); box-shadow: var(--shadow); }
.ws__glow { position: absolute; right: -8%; bottom: -70%; width: 50%; height: 140%; background: radial-gradient(closest-side, rgba(255,122,89,.10), transparent 70%); pointer-events: none; }
.ws--locked { border-color: rgba(255,181,71,.22); background: linear-gradient(160deg, #1E1912 0%, var(--surface) 60%); }
.ws--locked .ws__glow { background: radial-gradient(closest-side, rgba(255,181,71,.14), transparent 70%); }
.ws__main, .ws__cta { position: relative; min-width: 0; }
.ws__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ws__url { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; max-width: 100%; }
.ws__name { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.02em; margin-bottom: 22px; overflow-wrap: anywhere; }
.ws__cta { display: grid; gap: 10px; justify-items: center; text-align: center; max-width: 270px; }

/* trial countdown = the clock rail / day track */
.countdown { display: grid; gap: 14px; max-width: 600px; }
.countdown__label { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.countdown__label .hourchip__t { letter-spacing: .02em; text-transform: none; font-size: 13px; }
.countdown__clock { display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 34px); flex-wrap: wrap; margin: 2px 0 6px; }
.cdn { display: inline-flex; align-items: baseline; gap: 2px; position: relative; padding-bottom: 20px; }
.cdn strong { font: 200 clamp(48px, 6vw, 76px)/.9 "Inter", var(--font); letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: var(--text); }
.cdn i { font: 200 clamp(44px, 5.4vw, 68px)/.9 "Inter", var(--font); font-style: normal; color: var(--text-3); animation: blink 1s steps(1) infinite; }
.cdn small { position: absolute; left: 2px; bottom: 0; font-size: 11.5px; letter-spacing: .1em; color: var(--text-3); white-space: nowrap; }
.cdn--hours { padding-left: clamp(16px, 3vw, 34px); border-left: 1px solid var(--line); }
.cdn--hours strong { font-weight: 300; font-size: clamp(30px, 3.4vw, 42px); color: var(--iris-2); }
.cdn--hours small { left: calc(clamp(16px, 3vw, 34px) + 2px); }
.progress { height: 8px; border-radius: 8px; background: rgba(255,255,255,.07); overflow: hidden; }
.progress span { display: block; height: 100%; min-width: 8px; border-radius: inherit; background: linear-gradient(90deg, var(--iris-deep), var(--iris), var(--coral)); transition: width .8s var(--ease); }
.statusline { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--ok-soft); color: #BDF5D8; border: 1px solid rgba(61,214,140,.25); max-width: 560px; }
.statusline svg { flex: none; color: var(--ok); margin-top: 1px; }
.statusline--warn { background: var(--warn-soft); color: #FFE0B0; border-color: rgba(255,181,71,.25); }

.steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 18px; position: relative; }
.steps li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; position: relative; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 18.5px; top: 42px; bottom: -14px; width: 1px; background: var(--line-2); }
.steps__n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(139,116,255,.5); color: var(--iris-2); font-weight: 600; font-variant-numeric: tabular-nums; background: rgba(6,6,26,.6); }
.steps strong { display: block; margin-bottom: 3px; }

.plan__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.plan__price strong { font-family: var(--serif); font-size: 46px; line-height: 1; letter-spacing: -.03em; }
.plan__price span { color: var(--text-3); }
.plan__day { margin: -2px 0 10px; font-size: 14px; color: var(--text-2); }
.plan__day b { color: var(--iris-2); font-weight: 600; }
.plan .ticks { margin-top: 18px; }
.plan__price--xl strong { font-size: clamp(56px, 6vw, 80px); }
.plancard { overflow: hidden; display: grid; gap: 10px; border-color: rgba(139,116,255,.24); background: radial-gradient(90% 80% at 0% 0%, rgba(93,63,219,.26), transparent 60%), linear-gradient(170deg, #1A1640, #100E26 60%); }
.plancard .ticks { margin-top: 14px; }
.plancard__glow { position: absolute; left: -20%; top: -40%; width: 80%; height: 80%; background: radial-gradient(closest-side, rgba(139,116,255,.18), transparent 70%); pointer-events: none; }
.plancard > *:not(.plancard__glow) { position: relative; }
.notice { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.notice h2 { margin-bottom: 6px; }
.notice .contactbox { margin-bottom: 0; }

.kv { margin: 0; display: grid; gap: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--text-3); font-size: 14px; }
.kv dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.kv--inline { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.kv--inline > div { border: 0; padding: 0; gap: 8px; }
.kv--inline dd { font-weight: 500; }

/* ---------- admin ---------- */
.hello--row { align-items: center; }
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.stat { padding: 18px; border-radius: 18px; background: linear-gradient(180deg, rgba(23,20,47,.96), rgba(16,14,38,.96)); border: 1px solid var(--line); display: grid; gap: 8px; }
.stat span { font-size: 12.5px; color: var(--text-3); }
.stat strong { font: 300 34px/1 "Inter", var(--font); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat--trial strong { color: #C9BEFF; }
.stat--active strong { color: var(--ok); }
.stat--expired strong { color: var(--warn); }

.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.search { position: relative; flex: 1 1 320px; }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.search input { padding-left: 44px; border-radius: 999px; }
.segmented { display: flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; max-width: 100%; }
.segmented label { position: relative; padding: 8px 14px; border-radius: 999px; font-size: 13px; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.segmented label.is-on { background: rgba(139,116,255,.26); color: var(--text); box-shadow: inset 0 0 0 1px rgba(139,116,255,.45); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--iris); }
.listcount { margin-bottom: -10px; }

.tlist { border: 1px solid var(--line); border-radius: 24px; background: rgba(16,14,38,.96); overflow: hidden; }
.tlist__head, .trow summary { display: grid; grid-template-columns: 1.4fr 1.5fr .9fr 1.1fr .9fr .6fr 24px; gap: 14px; align-items: center; padding: 14px 20px; }
.tlist__head { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.trow { border-bottom: 1px solid var(--line); }
.trow:last-child { border-bottom: 0; }
.trow summary { list-style: none; cursor: pointer; transition: background .15s; position: relative; }
.trow summary::-webkit-details-marker { display: none; }
.trow summary:hover { background: rgba(255,255,255,.025); }
.trow[open] summary { background: rgba(139,116,255,.07); }
.trow summary > span { min-width: 0; }
.trow__biz, .trow__owner { display: grid; gap: 2px; }
.trow__biz strong, .trow__owner > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow__chev { color: var(--text-3); transition: transform .25s var(--ease); }
.trow[open] .trow__chev { transform: rotate(180deg); }
.trow__body { padding: 16px 20px 20px; display: grid; gap: 18px; background: rgba(139,116,255,.035); border-top: 1px solid var(--line); }
.ok { color: var(--ok); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.actions__activate { display: grid; gap: 6px; }
.inline { display: flex; gap: 8px; }
.inline input[type=date] { min-height: 34px; padding: 6px 10px; font-size: 13px; border-radius: 10px; width: 170px; }
.note { display: grid; gap: 8px; justify-items: start; max-width: 640px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .tlist__head { display: none; }
  .trow summary { grid-template-columns: 1fr auto; gap: 8px 14px; padding-right: 44px; }
  .trow__biz { grid-column: 1; grid-row: 1; }
  .trow summary > span:nth-child(3) { grid-column: 2; grid-row: 1; justify-self: end; }
  .trow__owner { grid-column: 1 / -1; grid-row: 2; }
  .trow summary > span[data-label] { grid-column: 1 / -1; }
  .trow summary > span[data-label]::before { content: attr(data-label) ": "; color: var(--text-3); font-size: 12px; }
  .trow__chev { position: absolute; right: 18px; top: 20px; }
}
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth__brand { display: none; }
  .auth__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; width: 100%; max-width: 480px; }
  .auth__main { justify-content: flex-start; padding-top: 24px; }
  .auth__mstory { display: block; width: 100%; max-width: 480px; margin-bottom: 18px; padding: 0 4px; }
  .cols, .cols--billing { grid-template-columns: 1fr; }
  .ws { grid-template-columns: 1fr; padding: 26px; }
  .ws__cta { max-width: none; justify-items: stretch; }
  .ws__cta .btn { width: 100%; }
  .nsky__moon { left: auto; right: 8vw; top: 9vh; }
  .z--auth .nsky__moon { display: none; }
  .z--auth .nsky__stars { -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); mask-image: linear-gradient(180deg, #000 30%, transparent); }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .topbar__in { padding: 0 16px; gap: 10px; height: 60px; }
  .topbar .zlogo__word { display: none; }
  .topbar__clock { display: none; }
  .tabs a { padding: 7px 11px; font-size: 14px; }
  .usermenu__name { display: none; }
  .usermenu summary { padding: 3px; }
  .usermenu summary svg { display: none; }
  .page { padding: 26px 16px 28px; gap: 18px; }
  .pagefoot__in { padding: 4px 16px 22px; }
  .pagefoot__tag { margin-left: 0; width: 100%; }
  .card { padding: 22px 18px; border-radius: 20px; }
  .ws { padding: 22px 18px; border-radius: 22px; }
  .countdown__clock { gap: 14px; }
  .cdn--hours { padding-left: 0; border-left: 0; width: 100%; padding-top: 4px; }
  .cdn--hours small { left: 2px; }
  .daytrack__days li { padding-left: 0; text-align: center; }
  .daytrack__days li::before { content: ""; }
  .grid2 { grid-template-columns: 1fr; }
  .auth__main { padding: 18px 14px calc(30px + 10vh); }
  .authcard { padding: 26px 18px; border-radius: 22px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat strong { font-size: 28px; }
  .notice { grid-template-columns: 1fr; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
  .inline input[type=date] { flex: 1; width: auto; }
  .kv--inline { flex-direction: column; }
  .nsky__moon { width: 34px; height: 34px; box-shadow: inset -8px 5px 0 0 #F3EBD6; top: 6vh; right: 6vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
