:root {
  --bg: #0B0D10;
  --card: #12161C;
  --edge: #1E2430;
  --text: #E6E9ED;
  --muted: #9AA3AE;
  --brand: #59C1FF;
  --brand2: #32D9A1;
  --danger: #F87171;
  --warn: #FBBF24;
  --page-max: 1200px;
  --page-pad: 24px;
  --header-height: 68px;
}

* {
  box-sizing: border-box;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:visited {
  color: var(--brand);
}

a:hover {
  color: #8BD7FF;
  text-decoration: underline;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #121927 0, var(--bg) 42%, #05070B 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 24px var(--page-pad) 40px;
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.portal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11,13,16,.86);
  border-bottom: 1px solid rgba(148,163,184,.18);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 12px var(--page-pad);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-link {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--brand);
  text-decoration: none;
}

.subtitle {
  font-size: 12px;
  color: var(--muted);
}

.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.header-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .02em;
}

.header-link:hover {
  color: var(--text);
}

.header-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

main {
  margin-top: 20px;
}

.page > main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

main.landing-shell,
main.auth-shell {
  margin-top: 0;
}

main.dashboard-main {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

.radarBG {
  position: fixed;
  left: 50%;
  top: 52%;
  width: clamp(520px, 78vmin, 960px);
  height: clamp(520px, 78vmin, 960px);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  opacity: .2;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 0;
}

.radarBG::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    repeating-radial-gradient(circle, rgba(50,217,161,.28) 0, rgba(50,217,161,.28) 1px, transparent 1px, transparent 8%),
    repeating-conic-gradient(from 0deg, rgba(50,217,161,.22) 0 1deg, transparent 1deg 12deg);
  opacity: .6;
}

.radarBG::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(from 0deg, rgba(50,217,161,.18), rgba(50,217,161,.05) 28%, transparent 42%);
  animation: radarSweep 6.2s linear infinite;
  opacity: .9;
}

.radarBG .mask {
  position: absolute;
  inset: -6%;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(8,12,16,0) 55%, rgba(8,12,16,.45) 85%, rgba(8,12,16,.7) 100%);
}

.radarBG .blip {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(50,217,161,.55);
  box-shadow: 0 0 8px rgba(50,217,161,.6);
  opacity: .35;
}

.radarBG .blip::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  border: 1px solid rgba(50,217,161,.35);
  opacity: 0;
  transform: scale(.6);
}

.radarBG .blip.ping {
  opacity: .9;
  box-shadow: 0 0 12px rgba(50,217,161,.8);
}

.radarBG .blip.ping::after {
  animation: blipRing .32s ease-out;
}

.radarBG .b1 { left: 18%; top: 28%; }
.radarBG .b2 { left: 32%; top: 60%; }
.radarBG .b3 { left: 52%; top: 22%; }
.radarBG .b4 { left: 70%; top: 36%; }
.radarBG .b5 { left: 62%; top: 68%; }
.radarBG .b6 { left: 24%; top: 70%; }
.radarBG .b7 { left: 78%; top: 58%; }
.radarBG .b8 { left: 45%; top: 48%; }
.radarBG .b9 { left: 12%; top: 46%; }
.radarBG .b10 { left: 58%; top: 82%; }
.radarBG .b11 { left: 40%; top: 78%; }
.radarBG .b12 { left: 66%; top: 52%; }

@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes blipRing {
  from { opacity: .7; transform: scale(.6); }
  to { opacity: 0; transform: scale(1.4); }
}

.headerTime,
.timeboard-panel {
  border-radius: 16px;
  border: 1px solid rgba(50,217,161,.35);
  padding: 10px 12px 12px;
  background: rgba(8,12,16,.65);
  box-shadow: inset 0 0 18px rgba(0,0,0,.45);
}

.headerTimeHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: rgba(214,255,241,.8);
  margin-bottom: 8px;
}

.headerTimeLabel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.headerTimeNote {
  color: rgba(214,255,241,.55);
  letter-spacing: .18em;
}

.timeDot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(50,217,161,.9);
  box-shadow: 0 0 10px rgba(50,217,161,.7);
}

.headerTimeGrid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tCell {
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.35);
  background: rgba(6,10,14,.85);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(15,23,42,.7);
  border: 1px solid rgba(148,163,184,.25);
}

.tCity {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(230,233,237,.95);
}

.tZone {
  font-size: 11px;
  color: rgba(154,163,174,.85);
}

.tPill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(190,255,234,.9);
  border: 1px solid rgba(50,217,161,.5);
  box-shadow: 0 0 10px rgba(50,217,161,.35);
}

.dateLine {
  display: flex;
  justify-content: center;
}

.datePill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  color: rgba(214,255,241,.8);
  border: 1px solid rgba(148,163,184,.25);
  background: rgba(8,12,16,.75);
}


.card {
  background: radial-gradient(circle at top left, #121927 0, #020617 70%);
  border-radius: 18px;
  padding: 24px 26px 26px;
  border: 1px solid rgba(148,163,184,.35);
  box-shadow: 0 20px 40px rgba(0,0,0,.6);
  max-width: 980px;
  margin: 0 auto;
}

.card h1 {
  margin: 0 0 12px;
  font-size: 22px;
}

.card h2 {
  margin: 16px 0 8px;
  font-size: 16px;
  color: var(--brand);
}

.card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.form-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,.4);
  background: #0B0F1A;
  color: var(--text);
  font-size: 14px;
}

input:focus {
  outline: none;
  border-color: rgba(89,193,255,.6);
  box-shadow: 0 0 0 2px rgba(89,193,255,.2);
}

.input-error {
  border-color: rgba(248,113,113,.6);
  box-shadow: 0 0 0 2px rgba(248,113,113,.2);
}

.field-error {
  margin-top: 6px;
  font-size: 12px;
  color: #fca5a5;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.checkbox-row input {
  margin-top: 2px;
}

.checkbox-label {
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #0B0D10;
  background: linear-gradient(135deg, var(--brand), #8BD7FF);
  box-shadow: 0 4px 10px rgba(89,193,255,.16);
  text-decoration: none;
}

.btn:hover {
  filter: brightness(1.05);
}

.btn-primary {
  box-shadow: 0 6px 14px rgba(89,193,255,.22);
  text-shadow: none;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--brand2), #86F1C9);
}

.btn-ghost {
  background: rgba(148,163,184,.1);
  color: var(--text);
  box-shadow: none;
  border: 1px solid rgba(148,163,184,.25);
}

.btn-ghost:hover {
  background: rgba(148,163,184,.2);
}

.alert {
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 13px;
}

.alert-info {
  background: rgba(59,130,246,.16);
  border: 1px solid rgba(59,130,246,.4);
}

.alert-success {
  background: rgba(34,197,94,.16);
  border: 1px solid rgba(34,197,94,.4);
}

.alert-warning {
  background: rgba(251,191,36,.14);
  border: 1px solid rgba(251,191,36,.4);
  color: #fef3c7;
}

.alert-error {
  background: rgba(248,113,113,.14);
  border: 1px solid rgba(248,113,113,.4);
  color: #fee2e2;
}

.helper {
  font-size: 12px;
  color: var(--muted);
}

.helper a {
  color: var(--brand);
  text-decoration: none;
}

.helper a:hover {
  text-decoration: underline;
}

.code-box {
  background: #0B0F1A;
  border: 1px solid rgba(148,163,184,.3);
  border-radius: 12px;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  color: #E2E8F0;
  word-break: break-all;
}

.inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  background: rgba(89,193,255,.16);
  border: 1px solid rgba(89,193,255,.4);
}

.status-pill.pending {
  background: rgba(251,191,36,.16);
  border-color: rgba(251,191,36,.4);
  color: #fef3c7;
}

.status-pill.disabled {
  background: rgba(248,113,113,.16);
  border-color: rgba(248,113,113,.4);
  color: #fee2e2;
}

.status-pill.denied {
  background: rgba(248,113,113,.16);
  border-color: rgba(248,113,113,.4);
  color: #fee2e2;
}

.status-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.status-card {
  background: rgba(10,14,20,.72);
  border: 1px solid rgba(148,163,184,.25);
  border-radius: 14px;
  padding: 16px;
}

.miniCard {
  display: flex;
  flex-direction: column;
  min-height: 150px;
}

.btnRow {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.status-title {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .14em;
}

.status-value {
  font-size: 16px;
  margin: 8px 0;
  color: var(--text);
}

.checkPill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(186,255,232,.95);
  border: 1px solid rgba(50,217,161,.6);
  box-shadow: 0 0 12px rgba(50,217,161,.35);
}

.checkIcon {
  font-size: 12px;
  line-height: 1;
}

.status-actions {
  margin-top: 10px;
}

.nixie-rack {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 20px 0 14px;
}

.nixie-clock {
  min-width: min(190px, 100%);
  autoflex: 1 1 220px;
  max-width: 100%;
  padding: 8px 10px 11px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(148,163,184,.22), rgba(15,23,42,1));
  border: 1px solid rgba(148,163,184,.5);
  box-shadow:
    0 18px 40px rgba(0,0,0,.85),
    0 0 40px rgba(15,23,42,.9);
  display: flex;
  flex-direction: column;
}

.dashboard-body .clock.nixie-clock {
  min-width: 0;
  padding: 12px 12px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.13);
  background: linear-gradient(180deg, #141B24, #10151D);
  box-shadow: 0 8px 26px rgba(0,0,0,.45);
}

.nixie-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 10px;
  margin-bottom: 4px;
  color: var(--muted);
}

.nixie-label {
  opacity: .9;
}

.nixie-tz {
  opacity: .7;
}

.nixie-tubes {
  display: flex;
  align-items: stretch;
  justify-content: space-evenly;
  gap: 4px;
  padding: clamp(3px, 0.8vw, 4px) clamp(3px, 1vw, 4px) clamp(2px, 0.6vw, 3px);
  border-radius: 999px;
  background:
    radial-gradient(ellipse at center, #111827 0, #020617 70%);
  box-shadow:
    inset 0 0 0 1px rgba(15,23,42,1),
    inset 0 12px 22px rgba(148,163,184,.28);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
}

.nixie-tube {
  width: clamp(16px, 2.2vw, 22px);
  height: clamp(30px, 3.8vw, 40px);
  border-radius: 7px;
  background:
    radial-gradient(ellipse at 50% 0, rgba(251,146,60,.25), #020617 70%);
  box-shadow:
    0 0 10px rgba(251,146,60,.6),
    inset 0 -14px 18px rgba(0,0,0,.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nixie-digit {
  font-family: "Share Tech Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: clamp(16px, 2vw, 20px);
  color: #fed7aa;
  text-shadow:
    0 0 6px #fdba74,
    0 0 12px rgba(248,250,252,.9),
    0 0 24px rgba(249,115,22,.95);
}

.nixie-separator {
  align-self: center;
  padding: 0 clamp(2px, 0.6vw, 3px);
  font-size: clamp(14px, 1.8vw, 18px);
  color: #f97316;
  text-shadow:
    0 0 4px #fdba74,
    0 0 10px rgba(248,250,252,.8),
    0 0 18px rgba(249,115,22,.9);
}

.headerTime .nixie-tubes {
  justify-content: space-between;
  padding: 6px 8px;
}

.headerTime .nixie-tube {
  width: clamp(18px, 2.2vw, 24px);
  height: clamp(34px, 4vw, 44px);
}

.headerTime .nixie-digit {
  font-size: clamp(17px, 2vw, 22px);
}

.headerTime .nixie-separator {
  font-size: clamp(15px, 1.8vw, 19px);
}

.landing-shell {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  padding: 24px 0 12px;
}

.landing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 20px;
  width: 100%;
  align-items: start;
}

.dashboard-body {
  background:
    radial-gradient(1100px 700px at 25% 15%, rgba(89,193,255,.07), transparent 55%),
    radial-gradient(900px 600px at 70% 70%, rgba(50,217,161,.06), transparent 55%),
    radial-gradient(1400px 900px at 55% 35%, rgba(255,255,255,.05), transparent 60%),
    var(--bg);
  position: relative;
}

.dashboard-body .page {
  z-index: 2;
}

.dashboard-body .portal-header,
.dashboard-body .portal-footer {
  position: relative;
  z-index: 2;
}

.dashboard-body .portal-header .header-link,
.dashboard-body .portal-header .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(230,233,237,.92);
  background: rgba(18,22,28,.65);
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 0 0 1px rgba(0,0,0,.20) inset;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.dashboard-body .portal-header .header-link:hover,
.dashboard-body .portal-header .btn:hover {
  transform: translateY(-1px);
  border-color: rgba(89,193,255,.22);
  background: rgba(18,22,28,.85);
  text-decoration: none;
}

.dashboard-body .footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(230,233,237,.92);
  background: rgba(18,22,28,.65);
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 0 0 1px rgba(0,0,0,.20) inset;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.dashboard-body .footer-links a:hover {
  transform: translateY(-1px);
  border-color: rgba(89,193,255,.22);
  background: rgba(18,22,28,.85);
  color: rgba(230,233,237,.92);
}

.dashboard-body .radarBG {
  left: 0;
  top: 0;
  transform: none;
  border-radius: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .55;
  mix-blend-mode: normal;
}

.dashboard-body .radarBG::before {
  left: 50%;
  top: 55%;
  width: min(1200px, 90vw);
  height: min(1200px, 90vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(89,193,255,.10) 0 1px, transparent 2px 22px,
                    rgba(89,193,255,.09) 23px 24px, transparent 25px 54px,
                    rgba(89,193,255,.08) 55px 56px, transparent 57px 110px,
                    rgba(89,193,255,.06) 111px 112px, transparent 113px 100%),
    conic-gradient(from 0deg, rgba(89,193,255,.00), rgba(89,193,255,.11), rgba(89,193,255,.00) 45%),
    repeating-conic-gradient(from 0deg, rgba(89,193,255,.00) 0 8deg, rgba(89,193,255,.05) 8deg 8.4deg);
  box-shadow: 0 0 0 1px rgba(89,193,255,.05) inset;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,.95) 0 62%, transparent 68%);
}

.dashboard-body .radarBG::after {
  left: 50%;
  top: 55%;
  width: min(1200px, 90vw);
  height: min(1200px, 90vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: .5;
}

.dashboard-body .radarBG .mask {
  inset: 0;
  border-radius: 50%;
  background:
    repeating-linear-gradient(0deg, rgba(89,193,255,.06) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(89,193,255,.05) 0 1px, transparent 1px 56px);
  opacity: .2;
}

.dashboard-body .card {
  background: linear-gradient(180deg, #151B24, #10151D);
  border-color: rgba(255,255,255,.14);
}

.dashboard-body .card.inset {
  box-shadow: 0 18px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(89,193,255,.12), 0 0 0 1px rgba(50,217,161,.06) inset;
}

.dashboard-body .card-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: #0F141B;
}

.dashboard-body .card-header h2 {
  margin: 0;
  font-size: 12px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: rgba(230,233,237,.82);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-body .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand2);
  box-shadow: 0 0 0 4px rgba(50,217,161,.10);
}

.dashboard-body .hint {
  font-size: 12px;
  color: rgba(230,233,237,.62);
}

.dashboard-body .timeboard-card {
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
}

.dashboard-body .timeboard {
  padding: 14px;
}

.dashboard-body .timeboard .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 10px;
}

.dashboard-body .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.09);
  background: #10151D;
  font-size: 11px;
  color: rgba(230,233,237,.78);
  user-select: none;
  white-space: nowrap;
}

.dashboard-body .pill .tiny-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand2);
  box-shadow: 0 0 0 3px rgba(50,217,161,.10);
}

.dashboard-body .clock-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-body .clock {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.13);
  background: linear-gradient(180deg, #141B24, #10151D);
  box-shadow: 0 8px 26px rgba(0,0,0,.45);
  padding: 12px 12px 10px;
  position: relative;
  overflow: hidden;
}

.dashboard-body .clock::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(300px 140px at 20% 0%, rgba(89,193,255,.12), transparent 60%),
    radial-gradient(260px 150px at 90% 30%, rgba(50,217,161,.10), transparent 60%);
  opacity: .7;
  pointer-events: none;
}

.dashboard-body .clock > * {
  position: relative;
}

.dashboard-body .clock-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px 10px;
}

.dashboard-body .clock-city {
  font-weight: 800;
  letter-spacing: .7px;
  font-size: 12px;
}

.dashboard-body .clock-tz {
  font-size: 11px;
  color: rgba(230,233,237,.60);
}

.dashboard-body .clock-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px 2px;
  color: rgba(230,233,237,.70);
  font-size: 12px;
}

.dashboard-body .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.09);
  background: #10151D;
  color: rgba(230,233,237,.75);
  font-weight: 650;
  font-size: 11px;
  letter-spacing: .5px;
  text-transform: uppercase;
  user-select: none;
  white-space: nowrap;
}

.dashboard-body .datePill {
  border: 1px solid rgba(255,255,255,.09);
  background: #10151D;
}

.dashboard-body .nixie-tubes {
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 4px 10px;
  background: transparent;
  box-shadow: none;
}

.dashboard-body .nixie-tube {
  width: 40px;
  height: 62px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.13);
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(255,255,255,.02));
  box-shadow: 0 0 0 1px rgba(0,0,0,.25) inset;
  position: relative;
}

.dashboard-body .nixie-tube::before {
  content: "";
  position: absolute;
  inset: 8px 7px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,170,92,.18), transparent 55%),
    radial-gradient(circle at 50% 80%, rgba(255,170,92,.10), transparent 55%);
  opacity: .9;
  pointer-events: none;
}

.dashboard-body .nixie-digit {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 40px;
  letter-spacing: .5px;
  color: rgba(255,183,114,.95);
  text-shadow: 0 0 12px rgba(255,170,92,.38), 0 0 28px rgba(255,170,92,.18);
}

.dashboard-body .nixie-separator {
  width: 10px;
  padding: 0;
  font-size: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: transparent;
}

.dashboard-body .nixie-separator::before,
.dashboard-body .nixie-separator::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,183,114,.85);
  box-shadow: 0 0 10px rgba(255,170,92,.30);
  display: block;
}

.dashboard-body .dashboard-shell {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  padding: 26px 0 12px;
}

.dashboard-body .dashboard-wrap {
  width: 100%;
  max-width: 1160px;
}

.dashboard-body .dashboard-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 22px;
  align-items: start;
}

.landing-card {
  max-width: 100%;
  margin: 0;
}

.landing-card h1 {
  font-size: 28px;
}

.callout-card {
  border: 1px solid rgba(50,217,161,.3);
  background: rgba(50,217,161,.08);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text);
}

.steps-grid {
  display: grid;
  gap: 10px;
}

.step-card {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(255,255,255,.02);
}

.step-badge {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(89,193,255,.16);
  border: 1px solid rgba(89,193,255,.26);
  color: var(--brand);
  font-weight: 800;
  font-size: 12px;
}

.step-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.timeboard-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.landing-grid .timeboard-panel .headerTimeGrid,
.dashboard-grid .timeboard-panel .headerTimeGrid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.landing-grid .timeboard-panel .tCell,
.dashboard-grid .timeboard-panel .tCell {
  width: 100%;
}

.auth-shell {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
}

.auth-shell .card {
  width: clamp(420px, 42vw, 560px);
  max-width: none;
}

.auth-shell .form-grid .btn {
  width: 100%;
}

.dashboard-body .portal-dashboard {
  padding: 0;
}

.dashboard-body .portal-dashboard .dash {
  padding: 18px;
}

.dashboard-body .welcome {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.dashboard-body .welcome .left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dashboard-body .welcome .hello {
  font-size: 13px;
  color: rgba(230,233,237,.82);
}

.dashboard-body .welcome .name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .3px;
}

.dashboard-body .welcome .sub {
  color: rgba(230,233,237,.62);
  font-size: 12px;
}

.dashboard-body .statusbar {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.13);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #0F141B;
  margin: 10px 0 16px;
}

.dashboard-body .statusbar .left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dashboard-body .statusbar .label {
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  font-size: 12px;
  white-space: nowrap;
}

.dashboard-body .statusbar .hint {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(230,233,237,.55);
}

.dashboard-body .pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 0 rgba(255,92,122,.25);
  animation: pulse 1.5s infinite;
  flex: 0 0 auto;
}

.dashboard-body .statusbar.online .pulse {
  background: var(--brand2);
  box-shadow: 0 0 0 0 rgba(50,217,161,.25);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,92,122,.25); }
  70% { box-shadow: 0 0 0 10px rgba(255,92,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,92,122,0); }
}

.dashboard-body .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.dashboard-body .panel {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.13);
  background: #121821;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.dashboard-body .panel h3 {
  margin: 0 0 8px 0;
  font-size: 12px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: rgba(230,233,237,.70);
}

.dashboard-body .panel .big {
  font-size: 14px;
  font-weight: 750;
  margin: 2px 0 10px;
}

.dashboard-body .panel .small {
  font-size: 12px;
  color: rgba(230,233,237,.62);
}

.dashboard-body .cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.dashboard-body .portal-dashboard .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(11,13,16,.55);
  color: rgba(230,233,237,.92);
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  user-select: none;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.dashboard-body .portal-dashboard .btn:hover {
  transform: translateY(-1px);
  border-color: rgba(89,193,255,.22);
  background: rgba(11,13,16,.75);
}

.dashboard-body .portal-dashboard .btn.primary {
  border-color: rgba(89,193,255,.28);
  background: linear-gradient(180deg, rgba(89,193,255,.12), rgba(11,13,16,.65));
}

.dashboard-body .portal-dashboard .btn.disabled,
.dashboard-body .portal-dashboard .btn[aria-disabled="true"] {
  opacity: .55;
  pointer-events: none;
}

.dashboard-body .license-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-body .table-btn {
  margin-left: 8px;
}

.dashboard-body .notice {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(246,196,69,.22);
  background: linear-gradient(180deg, rgba(246,196,69,.09), rgba(18,22,28,.55));
  color: rgba(230,233,237,.80);
  font-size: 12px;
}

.dashboard-body .table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.13);
  background: #121821;
  margin-top: 10px;
}

.dashboard-body .table th,
.dashboard-body .table td {
  padding: 11px 12px;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(230,233,237,.80);
}

.dashboard-body .table th {
  text-align: left;
  color: rgba(230,233,237,.65);
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  font-size: 11px;
  background: #0F141B;
}

.dashboard-body .table tr:last-child td {
  border-bottom: none;
}

.dashboard-body .tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.13);
  background: #10151D;
  font-weight: 750;
  font-size: 11px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: rgba(230,233,237,.78);
}

.dashboard-body .tag.bad {
  border-color: rgba(255,92,122,.25);
}

.dashboard-body .tag.warn {
  border-color: rgba(246,196,69,.22);
}

.section-divider {
  border: 0;
  border-top: 1px solid #1E2430;
  margin: 18px 0;
}

.alert-spaced {
  margin-top: 18px;
}

.help-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.25);
  background: rgba(148,163,184,.08);
  color: var(--text);
  padding: 12px 14px;
  font-size: 13px;
  cursor: pointer;
}

.accordion-toggle::after {
  content: "▾";
  font-size: 12px;
  color: var(--muted);
  transition: transform .2s ease;
}

.accordion-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.accordion-panel {
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.2);
  background: rgba(10,14,20,.65);
  padding: 12px 14px;
}

.portal-footer {
  border-top: 1px solid rgba(148,163,184,.18);
  background: rgba(8,10,14,.85);
  padding: 18px var(--page-pad);
}

.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  font-size: 12px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.beta-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 18px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
  position: relative;
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.beta-status::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.08), transparent 40%);
  opacity: .35;
  pointer-events: none;
}

.beta-status::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  box-shadow: inset 0 0 20px rgba(0,0,0,.45);
  pointer-events: none;
}

.beta-status .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 10px currentColor;
}

.beta-status .status-text {
  position: relative;
  z-index: 1;
}

.beta-status.online {
  color: #b8ffe6;
  background: linear-gradient(130deg, rgba(19,70,56,.6), rgba(14,24,34,.85));
  border-color: rgba(50,217,161,.55);
  text-shadow: 0 0 10px rgba(50,217,161,.75);
  box-shadow:
    inset 0 0 12px rgba(50,217,161,.2),
    0 0 25px rgba(50,217,161,.35);
  animation: betaGlowOnline 3.8s ease-in-out infinite;
}

.beta-status.offline {
  color: #ffd1dc;
  background: linear-gradient(130deg, rgba(92,16,32,.68), rgba(20,10,18,.9));
  border-color: rgba(248,113,113,.6);
  text-shadow: 0 0 10px rgba(248,113,113,.75);
  box-shadow:
    inset 0 0 12px rgba(248,113,113,.25),
    0 0 28px rgba(248,113,113,.35);
  animation: betaGlowOffline 5.5s ease-in-out infinite;
}

.beta-status.online .status-dot {
  background: #3fffd4;
  box-shadow: 0 0 12px rgba(50,217,161,.9), 0 0 20px rgba(50,217,161,.7);
  animation: dotPulseOnline 2.6s ease-in-out infinite;
}

.beta-status.offline .status-dot {
  background: #ff5771;
  box-shadow: 0 0 14px rgba(248,113,113,.9), 0 0 24px rgba(248,113,113,.6);
  animation: dotPulseOffline 4.8s ease-in-out infinite;
}

@keyframes betaGlowOnline {
  0%, 100% {
    box-shadow: inset 0 0 12px rgba(50,217,161,.2), 0 0 22px rgba(50,217,161,.32);
  }
  50% {
    box-shadow: inset 0 0 16px rgba(50,217,161,.28), 0 0 30px rgba(50,217,161,.45);
  }
}

@keyframes betaGlowOffline {
  0%, 100% {
    box-shadow: inset 0 0 14px rgba(248,113,113,.22), 0 0 24px rgba(248,113,113,.32);
  }
  50% {
    box-shadow: inset 0 0 20px rgba(248,113,113,.3), 0 0 32px rgba(248,113,113,.45);
  }
}

@keyframes dotPulseOnline {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
}

@keyframes dotPulseOffline {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.download-section {
  margin-top: 22px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.download-card {
  background: rgba(11,15,26,.85);
  border: 1px solid rgba(148,163,184,.25);
  border-radius: 16px;
  padding: 16px;
}

.download-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--brand);
}

.download-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.posted-at {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}

.clock-grid {
  display: grid;
  gap: 14px;
}

.clock-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.2);
  background: rgba(10,14,20,.65);
}

.clock-row.is-disabled {
  opacity: .6;
}

.clock-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}

.clock-fields {
  display: grid;
  gap: 12px;
}

.clock-field label {
  margin-bottom: 4px;
}

.clock-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,.4);
  background: #0B0F1A;
  color: var(--text);
  font-size: 13px;
}

.clock-select:focus {
  outline: none;
  border-color: rgba(89,193,255,.6);
  box-shadow: 0 0 0 2px rgba(89,193,255,.2);
}

.clock-tz-input {
  margin-top: 8px;
}

.clock-error {
  margin-top: 6px;
  font-size: 11px;
  color: #fca5a5;
}

.is-hidden {
  display: none;
}

@media (max-width: 720px) {
  .clock-row {
    grid-template-columns: 1fr;
  }
}

.content-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.portal-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(520px, 2fr) minmax(260px, 1fr);
  grid-template-areas: "news portal changelog";
  gap: 18px;
  margin-top: 24px;
  align-items: stretch;
}

.portal-layout.is-single {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "portal";
}

.portal-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  grid-area: portal;
}

.portal-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.portal-news {
  grid-area: news;
}

.portal-changelog {
  grid-area: changelog;
}

.portal-side .content-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: clamp(260px, 55vh, 640px);
  overflow: auto;
}

.portal-main {
  grid-area: portal;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.portal-main .portal-cards {
  flex: 1 1 auto;
  min-height: 0;
}

.portal-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.portal-news {
  grid-area: news;
}

.portal-changelog {
  grid-area: changelog;
}

.portal-side .content-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: clamp(260px, 55vh, 640px);
  overflow: auto;
}

.portal-layout .content-card {
  margin: 0;
}

.portal-layout > .card,
.portal-layout > .content-card {
  max-width: 100%;
  margin: 0;
  min-width: 0;
}

.portal-layout.has-news:not(.has-changelog) {
  grid-template-columns: minmax(260px, 1fr) minmax(520px, 2fr);
  grid-template-areas: "news portal";
}

.portal-layout.has-changelog:not(.has-news) {
  grid-template-columns: minmax(520px, 2fr) minmax(260px, 1fr);
  grid-template-areas: "portal changelog";
}

@media (max-width: 960px) {
  .headerTimeGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .headerTimeGrid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1200px) {
  .portal-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "portal portal"
      "news changelog";
  }

  .portal-layout.has-news:not(.has-changelog) {
    grid-template-areas:
      "portal portal"
      "news news";
  }

  .portal-layout.has-changelog:not(.has-news) {
    grid-template-areas:
      "portal portal"
      "changelog changelog";
  }
}

@media (max-width: 720px) {
  .portal-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "portal"
      "news"
      "changelog";
  }
}

@media (max-width: 960px) {
  .landing-grid,
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .dashboard-body .dashboard-shell {
    align-items: flex-start;
  }

  .dashboard-body .row {
    grid-template-columns: 1fr;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .header-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .dashboard-body .nixie-tube {
    width: 36px;
    height: 58px;
  }

  .dashboard-body .nixie-digit {
    font-size: 36px;
  }
}

.content-card {
  background: rgba(11,15,26,.85);
  border: 1px solid rgba(148,163,184,.25);
  border-radius: 16px;
  padding: 18px 20px;
}

.content-card h2 {
  margin-top: 0;
}

.content-body {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
}

.content-body h1,
.content-body h2,
.content-body h3 {
  color: var(--brand);
  margin: 12px 0 6px;
}

.content-body p {
  margin: 8px 0;
  color: var(--text);
}

.content-body ul,
.content-body ol {
  margin: 8px 0 8px 18px;
}

.content-body blockquote {
  margin: 10px 0;
  padding: 8px 12px;
  border-left: 3px solid rgba(89,193,255,.6);
  background: rgba(89,193,255,.08);
  color: var(--text);
}

.content-body pre {
  background: #0B0F1A;
  border: 1px solid rgba(148,163,184,.3);
  border-radius: 12px;
  padding: 12px;
  overflow-x: auto;
}

.content-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;
  background: rgba(148,163,184,.15);
  padding: 2px 6px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  font-size: 12px;
}

.text-link {
  color: var(--brand);
  text-decoration: none;
}

.text-link:visited {
  color: var(--brand);
}

.text-link:hover {
  text-decoration: underline;
}

.footer-note {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}