:root {
  color-scheme: dark;
  --bg: #050609;
  --panel: #0d0f14;
  --panel-2: #11141b;
  --panel-3: #171b24;
  --auth-panel: #10140a;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f7f7f5;
  --muted: #a2a6b3;
  --soft: #6f7483;
  --lime: #b9ee24;
  --lime-hot: #d8ff3d;
  --tone-ok: var(--lime);
  --tone-ok-hot: var(--lime-hot);
  --tone-warning: #ffb020;
  --tone-warning-hot: #ffd166;
  --tone-danger: #ff4d5e;
  --tone-danger-hot: #ff7d7d;
  --tone-current: var(--tone-ok);
  --tone-current-hot: var(--tone-ok-hot);
  --green: #b9ee24;
  --blue: #83a8ff;
  --violet: #9c7dff;
  --purple: #7554d9;
  --purple-2: #453066;
  --amber: #ffd166;
  --red: #ff7d7d;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  background-color: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: #080908;
  background-color: #080908;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

[data-tone="ok"] {
  --tone-current: var(--tone-ok);
  --tone-current-hot: var(--tone-ok-hot);
}

[data-tone="warning"] {
  --tone-current: var(--tone-warning);
  --tone-current-hot: var(--tone-warning-hot);
}

[data-tone="danger"] {
  --tone-current: var(--tone-danger);
  --tone-current-hot: var(--tone-danger-hot);
}

.app-shell {
  position: relative;
  width: calc(100vw - 32px);
  min-height: calc(100vh - 32px);
  margin: 16px auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #050609;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.55);
}

.app-shell[data-view="loading"] {
  border-color: transparent;
  background: #080908;
  box-shadow: none;
}

.app-shell[data-view="loading"] > .topbar,
.app-shell[data-view="loading"] .auth-view,
.app-shell[data-view="loading"] .dashboard-view {
  visibility: hidden;
}

.app-shell[data-view="login"],
.app-shell[data-view="signup"],
.app-shell[data-view="payment"] {
  max-width: 1180px;
  padding: 10px;
  background: #2a2435;
}

.app-shell[data-view="dashboard"] {
  max-width: 1480px;
  padding: 12px;
  background:
    linear-gradient(145deg, rgba(117, 84, 217, 0.1), transparent 32%),
    linear-gradient(315deg, rgba(31, 140, 255, 0.08), transparent 34%),
    #07080d;
}

.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #08090d;
}

.brand,
.topnav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 9px;
  color: var(--text);
  text-decoration: none;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, #7247ff, #2cffb1);
  box-shadow: 0 0 24px rgba(114, 71, 255, 0.45);
  font-size: 13px;
}

.brand-logo-mark,
.auth-logo-mark {
  position: relative;
  display: block;
  overflow: hidden;
  color: transparent;
  background:
    linear-gradient(145deg, rgba(185, 238, 36, 0.13), rgba(185, 238, 36, 0.03)),
    #10140a;
}

.brand-logo-mark::before,
.brand-logo-mark::after,
.auth-logo-mark::before,
.auth-logo-mark::after {
  content: "";
  position: absolute;
  left: 22%;
  height: 18%;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 18px rgba(185, 238, 36, 0.52);
  transform: skewY(-8deg);
}

.brand-logo-mark::before,
.auth-logo-mark::before {
  top: 28%;
  width: 58%;
}

.brand-logo-mark::after,
.auth-logo-mark::after {
  top: 53%;
  width: 42%;
}

.hub-logo-mark::before {
  top: 24%;
  width: 64%;
}

.hub-logo-mark::after {
  top: 48%;
  width: 48%;
}

.topnav {
  gap: 4px;
}

.app-shell[data-view="dashboard"] .topnav,
.app-shell[data-view="dashboard"] .topbar > .pill-button {
  display: none;
}

.app-shell[data-view="login"] .topbar,
.app-shell[data-view="signup"] .topbar,
.app-shell[data-view="payment"] .topbar {
  display: none;
}

.nav-link,
.tiny-button {
  border: 0;
  color: var(--muted);
  background: transparent;
}

.nav-link {
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
}

.nav-link:hover,
.tiny-button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.pill-button,
.ghost-button,
.tiny-button {
  border-radius: 8px;
  min-height: 38px;
  padding: 0 16px;
  font-weight: 720;
}

.pill-button {
  border: 1px solid rgba(255, 255, 255, 0.84);
  color: #08090d;
  background: #f6f6f1;
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.14);
}

.pill-button:hover {
  background: #fff;
}

.pill-button.compact {
  min-height: 34px;
  padding: 0 13px;
  font-size: 13px;
}

.pill-button.full,
.ghost-button.full {
  width: 100%;
}

.ghost-button {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.inline-action {
  display: inline;
  border: 0;
  padding: 0;
  color: #d5c7ff;
  background: transparent;
  font-weight: 720;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-action:hover {
  color: #fff;
}

.tiny-button {
  border: 1px solid var(--line);
  min-height: 30px;
  padding: 0 10px;
  white-space: nowrap;
}

.tiny-button:disabled,
.pill-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.auth-view {
  min-height: calc(100vh - 68px);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(390px, 1.02fr) minmax(360px, 0.98fr);
  gap: 0;
  min-height: calc(100vh - 68px);
}

.auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 640px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: clamp(22px, 3vw, 34px);
  background: #1b1230;
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(42, 24, 86, 0.1) 0%, rgba(16, 10, 28, 0.2) 44%, rgba(10, 7, 16, 0.72) 100%),
    linear-gradient(90deg, rgba(9, 6, 15, 0.12), transparent 45%);
  pointer-events: none;
}

.auth-visual-image {
  position: absolute;
  inset: 0;
  background-image: url("./assets/login-visual.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.auth-visual-top,
.auth-visual-copy {
  position: relative;
  z-index: 1;
}

.auth-visual-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 24px;
  font-weight: 820;
  letter-spacing: 0;
}

.auth-logo-mark {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(185, 238, 36, 0.24);
  border-radius: 12px;
  box-shadow: 0 0 32px rgba(185, 238, 36, 0.28);
}

.visual-link {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 720;
}

.visual-link:hover {
  background: rgba(255, 255, 255, 0.18);
}

.auth-visual-copy {
  max-width: 470px;
}

.auth-visual-copy h1 {
  max-width: 470px;
  margin: 10px 0 16px;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 0.98;
}

.auth-visual-copy .lead {
  max-width: 430px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.76);
}

.auth-form-panel {
  display: grid;
  align-content: center;
  padding: clamp(36px, 6vw, 80px);
  background:
    radial-gradient(circle at 90% 10%, rgba(117, 84, 217, 0.16), transparent 28%),
    #261f33;
  border-radius: 0 12px 12px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: 28px;
  padding: 70px 22px 34px;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow,
.signal-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(48px, 7.8vw, 92px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.lead {
  max-width: 570px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.hero-actions,
.split-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-actions {
  margin: 28px 0;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 580px;
}

.signal-grid article,
.metric-card,
.panel,
.auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101218;
}

.signal-grid article {
  min-height: 120px;
  padding: 16px;
}

.signal-grid strong,
.metric-card strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 26px;
  letter-spacing: 0;
}

.signal-grid small,
.metric-card small,
.microcopy {
  color: var(--soft);
  line-height: 1.45;
}

.auth-card {
  min-height: 450px;
  padding: 18px;
  background: #11141b;
}

.auth-view .auth-card {
  width: min(100%, 430px);
  min-height: auto;
  margin: 0 auto;
  border: 0;
  padding: 0;
  background: transparent;
}

.auth-panel-head {
  margin-bottom: 28px;
}

.auth-panel-head h2 {
  margin: 8px 0 10px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1;
}

.auth-panel-head p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
}

.card-head > div {
  display: grid;
  gap: 4px;
}

.card-head small {
  color: var(--soft);
  font-size: 12px;
  font-weight: 560;
}

.status-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 16px rgba(139, 255, 186, 0.78);
}

.status-dot.warm {
  background: var(--blue);
  box-shadow: 0 0 16px rgba(136, 169, 255, 0.72);
}

.status-dot.pending {
  background: var(--amber);
  box-shadow: 0 0 16px rgba(255, 209, 102, 0.66);
}

.stacked-form {
  display: grid;
  gap: 13px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.24);
  outline: none;
}

input:focus {
  border-color: rgba(139, 255, 186, 0.56);
  box-shadow: 0 0 0 3px rgba(139, 255, 186, 0.08);
}

.auth-view label {
  color: rgba(255, 255, 255, 0.7);
}

.auth-view input {
  height: 50px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.auth-view input:focus {
  border-color: rgba(173, 146, 255, 0.78);
  box-shadow: 0 0 0 3px rgba(117, 84, 217, 0.18);
}

.auth-view .pill-button {
  min-height: 50px;
  border-color: rgba(188, 168, 255, 0.72);
  color: #fff;
  background: #7554d9;
  box-shadow: 0 18px 44px rgba(117, 84, 217, 0.28);
}

.auth-view .pill-button:hover {
  background: #8362e8;
}

.auth-view .microcopy {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.46);
}

.auth-view .price-strip,
.auth-view .payment-box {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.price-strip,
.payment-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #090b10;
}

.price-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 54px;
  padding: 0 14px;
}

.payment-box {
  padding: 16px;
  margin-bottom: 14px;
}

.payment-box strong {
  display: block;
  margin: 8px 0;
  font-size: 32px;
}

.payment-box code {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  overflow-wrap: anywhere;
  border-radius: 8px;
  color: var(--green);
  background: rgba(139, 255, 186, 0.08);
}

.dashboard-view {
  padding: 12px 0 0;
}

.customer-hub {
  display: grid;
  gap: 14px;
}

.hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(31, 140, 255, 0.12), transparent 34%),
    linear-gradient(225deg, rgba(139, 255, 186, 0.08), transparent 44%),
    #0d1017;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
}

.hub-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.hub-logo {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(31, 140, 255, 0.25);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(31, 140, 255, 0.18);
}

.hub-identity h2 {
  margin: 2px 0 5px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 0.95;
}

.hub-identity p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.account-chip,
.account-actions,
.soft-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.account-chip,
.soft-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #101218;
}

.account-chip {
  min-height: 38px;
  padding: 0 13px;
  color: var(--muted);
  font-size: 13px;
}

.support-button {
  color: var(--green);
  border-color: rgba(139, 255, 186, 0.24);
  background: rgba(139, 255, 186, 0.08);
}

.soft-badge {
  padding: 5px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.metric-card,
.panel {
  padding: 16px;
}

.metric-card {
  min-height: 148px;
  grid-column: span 3;
}

.hero-metric {
  grid-column: span 3;
}

.hero-metric strong {
  font-size: 46px;
  line-height: 1;
}

.progress-track {
  width: 100%;
  height: 9px;
  margin: 16px 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.panel {
  min-height: 250px;
  grid-column: span 6;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 58%),
    #101218;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
}

.profile-panel {
  grid-column: span 3;
  min-height: 250px;
}

.usage-panel {
  grid-column: span 6;
  min-height: 250px;
}

.limits-panel {
  grid-column: span 3;
  min-height: 250px;
}

.usage-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
  align-items: stretch;
}

.usage-total,
.usage-trend {
  min-width: 0;
}

.usage-total {
  display: grid;
  align-content: center;
  gap: 10px;
}

.usage-trend {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.usage-trend-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.usage-trend-head span {
  display: block;
  color: var(--text);
  font-weight: 760;
}

.usage-trend-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.cost-ring-wrap {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 250px;
  margin: 4px auto 0;
}

.cost-ring-wrap canvas {
  width: min(100%, 220px);
}

.cost-ring-center {
  position: absolute;
  display: grid;
  place-items: center;
  gap: 5px;
  text-align: center;
}

.cost-ring-center span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.cost-ring-center strong {
  font-size: 24px;
  line-height: 1;
}

#costSummary {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.limit-stack {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.limits-panel .limit-stack {
  margin-top: 0;
}

.limit-card {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.limit-card > span,
.muted-row {
  color: var(--muted);
  font-size: 12px;
}

.limit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.limit-row strong {
  font-size: 13px;
}

.limit-track {
  position: relative;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.limit-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.profile-main {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(139, 255, 186, 0.25);
  border-radius: 16px;
  color: #08090d;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 14px 36px rgba(139, 255, 186, 0.14);
  font-size: 24px;
  font-weight: 820;
}

.profile-logo {
  overflow: hidden;
  color: transparent;
  background:
    center / 150% no-repeat url("./assets/codexhub-logo.png"),
    #081122;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.profile-main strong,
.profile-details strong {
  display: block;
  color: var(--text);
}

.profile-main strong {
  margin-bottom: 5px;
  font-size: 22px;
  line-height: 1.1;
}

.profile-main span {
  color: var(--muted);
  font-size: 13px;
}

.profile-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-details > div {
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.profile-details > div:first-child {
  grid-column: span 2;
}

.profile-details strong {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.25;
}

.chart-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.mode-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #090b10;
}

.mode-button {
  min-height: 28px;
  border-color: transparent;
  color: var(--soft);
}

.mode-button.is-active {
  color: #08090d;
  background: #f6f6f1;
}

.trend-help {
  margin: -6px 0 12px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.legend-item::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.legend-item.tokens::after {
  background: #8bffba;
}

.legend-item.cost::after {
  background: #1f8cff;
}

.setup-panel {
  grid-column: span 8;
  min-height: auto;
}

canvas {
  width: 100%;
  height: auto;
  display: block;
}

#usageTrendChart {
  height: 158px;
  max-height: 158px;
}

pre {
  min-height: 178px;
  margin: 0;
  padding: 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #d8ffe7;
  background: rgba(0, 0, 0, 0.34);
  font-size: 13px;
  line-height: 1.55;
}

.setup-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.setup-note {
  display: grid;
  gap: 5px;
  margin: 4px 0 10px;
  padding: 12px 14px;
  border: 1px solid rgba(139, 255, 186, 0.22);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(139, 255, 186, 0.055);
  line-height: 1.45;
}

.setup-note strong {
  color: var(--text);
}

.setup-note-compact span {
  max-width: 860px;
}

.setup-accordion {
  display: grid;
  gap: 8px;
}

.setup-accordion-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 160ms ease, background 160ms ease;
}

.setup-accordion-item[open] {
  border-color: rgba(139, 255, 186, 0.28);
  background:
    linear-gradient(135deg, rgba(139, 255, 186, 0.055), transparent 42%),
    rgba(12, 15, 23, 0.9);
}

.setup-accordion-item summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.setup-accordion-item summary::-webkit-details-marker {
  display: none;
}

.setup-accordion-item summary::after {
  content: "";
  grid-column: 3;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: var(--muted);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.setup-accordion-item[open] summary::after {
  transform: rotate(225deg);
}

.setup-accordion-item summary strong,
.setup-accordion-body h3 {
  display: block;
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.setup-accordion-item summary small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.setup-accordion-body {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px 56px;
}

.setup-accordion-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.setup-accordion-body pre {
  max-height: 210px;
  min-height: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.manual-setup {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.manual-setup p {
  max-width: 980px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0b0d12;
}

.step-card h3 {
  margin: 0;
  font-size: 18px;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.step-index {
  display: inline-grid;
  place-items: center;
  min-width: 72px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(139, 255, 186, 0.22);
  border-radius: 8px;
  color: var(--green);
  background: rgba(139, 255, 186, 0.08);
  font-size: 12px;
  font-weight: 760;
}

.step-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.step-copy-row h3 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.os-grid {
  display: grid;
  gap: 10px;
}

.os-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.os-card p {
  font-size: 13px;
}

.step-card pre {
  min-height: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.step-card code:not(pre code) {
  color: #d8ffe7;
}

.video-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
  grid-column: span 4;
  min-height: auto;
}

.video-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #141821;
}

.play-button {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.play-button span {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid var(--text);
}

.dashboard-view {
  padding: 0;
}

.hub-shell {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  min-height: calc(100vh - 58px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 32%),
    #080908;
}

.hub-rail {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
  padding: 20px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.075);
  background:
    linear-gradient(180deg, rgba(185, 238, 36, 0.045), transparent 34%),
    #0b0c0b;
}

.hub-rail-logo,
.hub-rail-button,
.icon-button {
  display: grid;
  place-items: center;
}

.hub-rail-logo {
  width: 39px;
  height: 39px;
  border-radius: 11px;
}

.hub-rail-logo .brand-logo-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(185, 238, 36, 0.2);
  border-radius: 10px;
}

.hub-rail-nav,
.hub-rail-bottom {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.hub-rail-nav {
  align-content: start;
}

.hub-rail-button,
.icon-button {
  width: 39px;
  height: 39px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
}

.hub-rail-button:hover,
.hub-rail-button.is-active,
.icon-button:hover {
  border-color: rgba(185, 238, 36, 0.22);
  color: var(--lime-hot);
  background: rgba(185, 238, 36, 0.12);
}

.hub-rail-button.is-active {
  box-shadow: inset 4px 0 0 var(--lime);
}

.rail-icon {
  position: relative;
  width: 18px;
  height: 18px;
}

.rail-icon::before,
.rail-icon::after {
  content: "";
  position: absolute;
  border: 2px solid currentColor;
}

.rail-icon-grid::before {
  inset: 2px;
  border-radius: 4px;
}

.rail-icon-grid::after {
  inset: 6px;
  border-width: 0 2px 2px 0;
}

.rail-icon-chart::before {
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 12px;
  border-width: 0 0 2px 2px;
}

.rail-icon-chart::after {
  left: 5px;
  bottom: 5px;
  width: 8px;
  height: 8px;
  border-width: 2px 2px 0 0;
  transform: rotate(-18deg);
}

.rail-icon-list::before {
  inset: 3px 2px;
  border-width: 2px 0;
}

.rail-icon-list::after {
  inset: 8px 2px;
  border-width: 2px 0 0;
}

.rail-icon-support::before {
  inset: 3px;
  border-radius: 999px;
}

.rail-icon-support::after {
  left: 8px;
  bottom: 1px;
  width: 5px;
  height: 5px;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.rail-icon-bell::before {
  inset: 2px 4px 5px;
  border-radius: 9px 9px 5px 5px;
}

.rail-icon-bell::after {
  left: 7px;
  right: 7px;
  bottom: 2px;
  border-width: 2px 0 0;
}

.rail-icon-logout::before {
  inset: 3px 7px 3px 2px;
  border-radius: 3px;
}

.rail-icon-logout::after {
  right: 1px;
  top: 7px;
  width: 8px;
  height: 4px;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}

.rail-icon-search::before {
  inset: 2px 6px 6px 2px;
  border-radius: 999px;
}

.rail-icon-search::after {
  right: 2px;
  bottom: 2px;
  width: 7px;
  border-width: 2px 0 0;
  transform: rotate(45deg);
}

.customer-hub {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}

.hub-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent),
    rgba(255, 255, 255, 0.012);
}

.hub-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.hub-identity h2 {
  margin: 2px 0 5px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 0.95;
}

.hub-identity p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.account-chip,
.account-actions,
.soft-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.account-chip,
.soft-badge {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.account-chip {
  min-height: 38px;
  padding: 0 13px;
  color: var(--muted);
  font-size: 13px;
}

.support-button {
  color: var(--lime-hot);
  border-color: rgba(185, 238, 36, 0.24);
  background: rgba(185, 238, 36, 0.08);
}

.soft-badge {
  padding: 5px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  padding: 18px;
}

.metric-card,
.panel {
  padding: 16px;
}

.panel {
  min-height: 220px;
  min-width: 0;
  grid-column: span 4;
  border-color: rgba(255, 255, 255, 0.085);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01) 60%),
    #121410;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.balance-panel,
.usage-total-panel {
  grid-column: span 3;
  min-height: 240px;
}

.allowance-panel {
  grid-column: span 6;
  min-height: 240px;
}

.limits-panel {
  grid-column: span 4;
  min-height: 334px;
}

.setup-panel {
  grid-column: span 5;
  min-height: 334px;
}

.profile-panel {
  grid-column: span 3;
  min-height: 334px;
}

.activity-panel,
.support-panel,
.video-panel {
  grid-column: span 4;
  min-height: 214px;
}

.infinity-access-panel {
  grid-column: span 12;
  min-height: 0;
}

.access-policy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.access-policy-grid > div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.access-policy-grid strong {
  font-size: 14px;
  line-height: 1.35;
}

.access-seat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin: 16px 0;
  padding: 12px;
  border: 1px solid rgba(185, 238, 36, 0.2);
  border-radius: var(--radius);
  background: rgba(185, 238, 36, 0.035);
}

.access-seat-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.access-seat-form input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.2);
}

.access-seat-list,
.access-event-list {
  display: grid;
  gap: 10px;
}

.access-seat-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.14);
}

.access-seat-head,
.access-device-row,
.access-event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.access-seat-head > div,
.access-device-row > div,
.access-event-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.access-seat-head span,
.access-device-row span,
.access-event-row span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.access-seat-actions,
.access-device-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.access-device-list {
  display: grid;
  gap: 7px;
}

.access-device-row,
.access-event-row {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.02);
}

.access-device-row[data-active="true"] {
  border-color: rgba(185, 238, 36, 0.32);
  background: rgba(185, 238, 36, 0.045);
}

.access-alerts {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.compact-head {
  min-height: 0;
  margin-bottom: 0;
}

.access-event-row[data-severity="critical"] {
  border-color: rgba(255, 77, 94, 0.3);
}

.access-event-row[data-severity="warning"] {
  border-color: rgba(255, 176, 32, 0.26);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  margin-bottom: 16px;
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
}

.card-head > div {
  display: grid;
  gap: 4px;
}

.card-head small {
  color: var(--soft);
  font-size: 12px;
  font-weight: 560;
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 6px 0 8px;
}

.stat-value strong {
  display: block;
  font-size: clamp(38px, 5vw, 54px);
  line-height: 0.95;
  letter-spacing: 0;
}

.stat-value span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 760;
}

.weekly-ring-wrap {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 8px 0 4px;
}

.weekly-balance-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 138px;
  height: 138px;
  border-radius: 999px;
}

.ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}

.ring-track,
.ring-fill {
  fill: none;
  stroke-width: 14;
}

.ring-track {
  stroke: rgba(255, 255, 255, 0.12);
}

.ring-fill {
  stroke: var(--tone-current);
  stroke-dasharray: var(--ring-value, 0) 100;
  stroke-linecap: round;
}

.weekly-balance-ring span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 94px;
  max-width: 88%;
  height: 94px;
  border-radius: 999px;
  color: var(--text);
  background: #13160f;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
  font-size: clamp(1.85rem, 3.4vw, 2.25rem);
  font-weight: 840;
  line-height: 1;
}

.balance-panel .pill-button,
.support-panel .pill-button {
  min-height: 42px;
  margin-top: 18px;
  border-color: rgba(216, 255, 61, 0.58);
  color: #15180a;
  background: linear-gradient(180deg, var(--lime-hot), #a8d81e);
}

#reconstituteBalanceButton {
  transition: filter 160ms ease, transform 160ms ease;
}

#reconstituteBalanceButton:hover {
  filter: brightness(0.88);
}

#costSummary,
.advance-hint,
.allowance-note {
  min-height: 0;
  margin: 0;
  color: var(--muted);
  line-height: 1.38;
}

.usage-total-panel #costSummary,
.allowance-note {
  max-width: 54ch;
  font-size: 14px;
  font-weight: 520;
}

.quota-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.quota-meter span {
  display: block;
  width: 0;
  height: 100%;
  margin-left: auto;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tone-current), var(--tone-current-hot));
}

.allowance-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.allowance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.allowance-grid > div {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
}

.allowance-grid strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.2;
}

#planMonthlyCap[data-tone] {
  color: var(--tone-current);
}

.limit-stack {
  display: grid;
  gap: 12px;
}

.limit-card {
  display: grid;
  gap: 7px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.limit-card > span,
.muted-row {
  color: var(--muted);
  font-size: 12px;
}

.limit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.limit-row strong {
  font-size: 13px;
}

.limit-track {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.limit-track span {
  display: block;
  height: 100%;
  margin-left: auto;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tone-current), var(--tone-current-hot));
}

.limit-rings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.limit-ring-card {
  display: grid;
  justify-items: center;
  gap: 9px;
}

.limit-ring-card + .limit-ring-card {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.limit-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 999px;
}

.limit-ring span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 999px;
  color: var(--text);
  background: #13160f;
  font-weight: 820;
}

.profile-main {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(185, 238, 36, 0.22);
  border-radius: 18px;
  color: transparent;
  background:
    linear-gradient(145deg, rgba(185, 238, 36, 0.13), rgba(185, 238, 36, 0.03)),
    #10140a;
  box-shadow: 0 14px 36px rgba(185, 238, 36, 0.12);
}

.profile-logo {
  position: relative;
  overflow: hidden;
}

.profile-logo::before,
.profile-logo::after {
  content: "";
  position: absolute;
  left: 23%;
  height: 9px;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 18px rgba(185, 238, 36, 0.52);
  transform: skewY(-8deg);
}

.profile-logo::before {
  top: 24px;
  width: 38px;
}

.profile-logo::after {
  top: 38px;
  width: 27px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.profile-main strong,
.profile-details strong {
  display: block;
  color: var(--text);
}

.profile-main strong {
  margin-bottom: 5px;
  font-size: 22px;
  line-height: 1.1;
}

.profile-main span {
  color: var(--muted);
  font-size: 13px;
}

.profile-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-details > div,
.profile-details > div:first-child {
  min-height: 62px;
  grid-column: auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
}

.profile-details strong {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.25;
}

#customerPlanPrice .primary-text,
#customerKeyStatus {
  color: var(--lime);
}

pre {
  min-height: 178px;
  margin: 0;
  padding: 14px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  color: #e9ffd0;
  background: rgba(0, 0, 0, 0.34);
  font-size: 13px;
  line-height: 1.55;
}

.setup-note {
  display: grid;
  gap: 5px;
  margin: 4px 0 10px;
  padding: 12px 14px;
  border: 1px solid rgba(185, 238, 36, 0.22);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(185, 238, 36, 0.055);
  line-height: 1.45;
}

.setup-note strong {
  color: var(--text);
}

.setup-note-compact span {
  max-width: 860px;
}

.setup-accordion {
  display: grid;
  gap: 8px;
}

.setup-accordion-item {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 160ms ease, background 160ms ease;
}

.setup-accordion-item[open] {
  border-color: rgba(185, 238, 36, 0.28);
  background:
    linear-gradient(135deg, rgba(185, 238, 36, 0.055), transparent 42%),
    rgba(12, 15, 10, 0.9);
}

.setup-accordion-item summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.setup-accordion-item summary::-webkit-details-marker {
  display: none;
}

.setup-accordion-item summary::after {
  content: "";
  grid-column: 3;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: var(--muted);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.setup-accordion-item[open] summary::after {
  transform: rotate(225deg);
}

.setup-accordion-item summary strong,
.setup-accordion-body h3 {
  display: block;
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.setup-accordion-item summary small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.setup-accordion-body {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px 56px;
}

.setup-accordion-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.setup-accordion-body pre {
  max-height: 210px;
  min-height: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.manual-setup {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.step-index {
  display: inline-grid;
  place-items: center;
  min-width: 72px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(185, 238, 36, 0.22);
  border-radius: 8px;
  color: #15180a;
  background: var(--lime);
  font-size: 12px;
  font-weight: 800;
}

.step-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.activity-list {
  display: grid;
  gap: 9px;
}

.activity-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
}

.activity-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(185, 238, 36, 0.14);
}

.activity-item strong {
  display: block;
  font-size: 13px;
}

.activity-item span:not(.activity-icon) {
  color: var(--soft);
  font-size: 11px;
}

.support-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.video-panel {
  display: grid;
  gap: 14px;
  align-items: start;
}

.video-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background:
    linear-gradient(135deg, rgba(185, 238, 36, 0.1), transparent 42%),
    #171a14;
}

.play-button {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.play-button span {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid var(--text);
}

.hidden {
  display: none !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(10px);
}

.tutorial-modal {
  width: min(900px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 18px;
  background: #0b0d12;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.72);
}

.video-modal-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(139, 255, 186, 0.08), transparent 38%),
    linear-gradient(225deg, rgba(136, 169, 255, 0.1), transparent 42%),
    #141821;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(17, 20, 27, 0.94);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.42);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .access-policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .access-seat-form {
    grid-template-columns: 1fr;
  }

  .topnav {
    display: none;
  }

  .auth-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-visual {
    min-height: 430px;
    border-radius: 12px 12px 0 0;
  }

  .auth-form-panel {
    border-radius: 0 0 12px 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 46px;
  }

  .auth-card {
    min-height: auto;
  }

  .hub-shell {
    grid-template-columns: 1fr;
  }

  .hub-rail {
    display: none;
  }

  .panel,
  .balance-panel,
  .usage-total-panel,
  .allowance-panel,
  .limits-panel,
  .setup-panel,
  .profile-panel,
  .activity-panel,
  .support-panel,
  .video-panel {
    grid-column: span 12;
  }

  .hub-topbar {
    display: grid;
    align-items: start;
  }

  .hub-topbar {
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .access-policy-grid {
    grid-template-columns: 1fr;
  }

  .access-seat-head,
  .access-device-row,
  .access-event-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .access-seat-actions,
  .access-device-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .app-shell {
    width: min(100vw - 18px, 560px);
    margin: 9px auto;
    padding: 10px;
    border-radius: 14px;
  }

  h1 {
    font-size: 46px;
  }

  .auth-visual-copy h1 {
    font-size: 36px;
  }

  .auth-form-panel {
    padding: 28px 18px 32px;
  }

  .auth-panel-head h2 {
    font-size: 34px;
  }

  .auth-visual {
    min-height: 360px;
    padding: 20px;
  }

  .lead {
    font-size: 15px;
  }

  .signal-grid,
  .hub-topbar,
  .video-panel {
    grid-template-columns: 1fr;
  }

  .dashboard-view {
    padding-top: 0;
  }

  .hub-grid {
    padding: 10px;
  }

  .account-actions {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .icon-button {
    display: none;
  }

  .account-chip {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
  }

  #accountLabel {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .panel {
    grid-column: span 12;
  }

  .step-copy-row {
    justify-content: flex-start;
  }

  .profile-panel,
  .usage-panel,
  .limits-panel {
    min-height: auto;
  }

  .hub-identity {
    align-items: flex-start;
  }

  .hub-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .hub-identity h2 {
    font-size: 34px;
  }

  .stat-value strong {
    font-size: 42px;
  }

  .setup-accordion-body {
    padding-left: 14px;
  }

  .limit-rings,
  .profile-details {
    grid-template-columns: 1fr;
  }

  .limit-ring-card + .limit-ring-card {
    border-left: 0;
  }

  .profile-details > div:first-child {
    grid-column: auto;
  }

  .split-actions,
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pill-button,
  .ghost-button {
    width: 100%;
  }
}

.app-shell[data-view="login"],
.app-shell[data-view="signup"],
.app-shell[data-view="payment"] {
  background:
    linear-gradient(145deg, rgba(185, 238, 36, 0.12), transparent 34%),
    #070907;
}

.auth-visual {
  border-color: rgba(185, 238, 36, 0.16);
  background: var(--auth-panel);
}

.auth-visual::after {
  background:
    linear-gradient(180deg, rgba(13, 17, 9, 0.06) 0%, rgba(13, 17, 9, 0.32) 46%, rgba(7, 9, 7, 0.84) 100%),
    linear-gradient(90deg, rgba(7, 9, 7, 0.16), transparent 46%);
}

.auth-form-panel {
  background:
    radial-gradient(circle at 88% 12%, rgba(185, 238, 36, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    var(--auth-panel);
}

.auth-view input:focus {
  border-color: rgba(185, 238, 36, 0.76);
  box-shadow: 0 0 0 3px rgba(185, 238, 36, 0.16);
}

.auth-view .pill-button {
  border-color: rgba(216, 255, 61, 0.68);
  color: #111407;
  background: linear-gradient(180deg, var(--lime-hot), var(--lime));
  box-shadow: 0 18px 44px rgba(185, 238, 36, 0.2);
}

.auth-view .pill-button:hover {
  background: linear-gradient(180deg, #e3ff62, var(--lime));
}

.auth-view .price-strip,
.auth-view .payment-box {
  border-color: rgba(185, 238, 36, 0.16);
  background: rgba(185, 238, 36, 0.055);
}

.inline-action {
  color: var(--lime-hot);
}

.inline-action:hover {
  color: #f0ffc0;
}

button,
.pill-button,
.ghost-button,
.tiny-button,
.mode-button,
.whatsapp-panel-button {
  white-space: nowrap;
}

.hub-rail {
  justify-items: center;
  grid-template-rows: auto;
}

.hub-rail-logo {
  align-self: start;
}

.account-actions {
  flex: 0 0 auto;
}

.whatsapp-button {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  border: 1px solid rgba(37, 211, 102, 0.34);
  border-radius: 10px;
  background: rgba(37, 211, 102, 0.11);
}

.whatsapp-button:hover {
  background: rgba(37, 211, 102, 0.18);
}

.whatsapp-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #25d366;
  box-shadow: 0 0 18px rgba(37, 211, 102, 0.28);
}

.whatsapp-mark::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 2px solid #071107;
  border-top-color: transparent;
  border-right-color: transparent;
  border-radius: 3px 3px 3px 6px;
  transform: rotate(-34deg);
}

.whatsapp-mark::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 1px;
  width: 7px;
  height: 7px;
  background: #25d366;
  transform: rotate(45deg);
}

.whatsapp-panel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.stat-value {
  min-width: 0;
}

.stat-value strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(30px, 4vw, 48px);
}

.limit-row,
.profile-details strong,
.activity-item strong {
  min-width: 0;
}

.limit-row span,
.profile-details strong,
.activity-item strong {
  overflow-wrap: anywhere;
}

.profile-panel,
.limits-panel,
.activity-panel {
  grid-column: span 4;
  min-height: 334px;
}

.support-panel,
.video-panel {
  grid-column: span 6;
  min-height: 224px;
}

.setup-panel {
  grid-column: span 12;
  min-height: auto;
}

.setup-panel .card-head {
  margin-bottom: 12px;
}

@media (max-width: 920px) {
  .profile-panel,
  .limits-panel,
  .activity-panel,
  .support-panel,
  .video-panel,
  .setup-panel {
    grid-column: span 12;
    min-height: auto;
  }

  .account-actions {
    justify-content: start;
  }
}

@media (max-width: 640px) {
  .hub-topbar {
    padding: 14px;
  }

  .account-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .account-chip {
    width: auto;
    max-width: 100%;
  }

  .whatsapp-button {
    width: 38px;
    height: 38px;
  }

  .stat-value {
    align-items: flex-start;
    gap: 6px;
  }

  .stat-value strong {
    font-size: clamp(30px, 10vw, 38px);
  }

  .allowance-grid {
    grid-template-columns: 1fr;
  }

  .step-copy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

.app-shell[data-view="dashboard"] {
  width: min(1440px, calc(100vw - 48px));
  min-height: auto;
  margin: 16px auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-shell[data-view="dashboard"] > .topbar {
  display: none;
}

.app-shell[data-view="dashboard"] .hub-shell {
  grid-template-columns: minmax(0, 1fr);
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: #080908;
}

.app-shell[data-view="dashboard"] .hub-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 92px;
  padding: 18px 22px;
  border-bottom: 0;
  background: #080908;
}

.app-shell[data-view="dashboard"] .hub-logout-button {
  flex: 0 0 auto;
  width: auto;
  min-height: 36px;
  border-color: rgba(255, 255, 255, 0.13);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.app-shell[data-view="dashboard"] .hub-logout-button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
}

.app-shell[data-view="dashboard"] .hub-identity {
  align-items: center;
  gap: 12px;
}

.app-shell[data-view="dashboard"] .hub-header-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid rgba(185, 238, 36, 0.22);
  border-radius: 12px;
}

.app-shell[data-view="dashboard"] .hub-identity h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
}

.app-shell[data-view="dashboard"] .hub-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.2;
}

.app-shell[data-view="dashboard"] .hub-grid {
  align-items: stretch;
}

.app-shell[data-view="dashboard"] .panel {
  height: 100%;
}

.app-shell[data-view="dashboard"] .balance-panel,
.app-shell[data-view="dashboard"] .usage-total-panel,
.app-shell[data-view="dashboard"] .allowance-panel {
  min-height: 276px;
}

.app-shell[data-view="dashboard"] .video-panel {
  grid-column: span 12;
  min-height: 236px;
}

.app-shell[data-view="dashboard"] .video-frame {
  height: clamp(220px, 28vw, 340px);
  aspect-ratio: auto;
}

.whatsapp-floating-button {
  position: fixed;
  right: max(18px, calc((100vw - 1440px) / 2 + 22px));
  bottom: 22px;
  z-index: 30;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border-color: rgba(37, 211, 102, 0.48);
  background: #25d366;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.38),
    0 0 0 8px rgba(37, 211, 102, 0.12);
}

.whatsapp-floating-button:hover {
  background: #2ce878;
}

.whatsapp-floating-button .whatsapp-mark {
  width: 30px;
  height: 30px;
  box-shadow: none;
}

.whatsapp-floating-button .whatsapp-mark::before {
  width: 12px;
  height: 12px;
  border-width: 3px;
}

.whatsapp-floating-button .whatsapp-mark::after {
  left: 3px;
  bottom: 2px;
  width: 9px;
  height: 9px;
}

.whatsapp-mark {
  color: #fff;
  background: transparent;
  box-shadow: none;
}

.whatsapp-mark::before,
.whatsapp-mark::after {
  content: none;
  display: none;
}

.whatsapp-icon {
  display: block;
  width: 100%;
  height: 100%;
}

.whatsapp-bubble {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.whatsapp-phone {
  fill: currentColor;
}

.whatsapp-floating-button .whatsapp-mark {
  width: 32px;
  height: 32px;
}

@media (max-width: 640px) {
  .app-shell[data-view="dashboard"] {
    width: calc(100vw - 16px);
    margin: 8px auto;
  }

  .app-shell[data-view="dashboard"] .hub-shell {
    min-height: auto;
  }

  .whatsapp-floating-button {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }
}
