/* ══════════════════════════════════════════════════════
   404.vodka — Dashboard & Account Area  v81
   Premium cyberpunk glass-panel system
   Works ON TOP of main.css (landing base)
   ══════════════════════════════════════════════════════ */

/* ── Dashboard topbar (identity strip) ────────────── */
.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px 20px;
  background: linear-gradient(90deg, rgba(0,229,197,.08), rgba(155,93,229,.06), rgba(255,51,102,.04));
  border-bottom: 1px solid rgba(0,229,197,.12);
  position: relative;
  z-index: 1001;
}
.dash-topbar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
}
.dash-topbar__label {
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}
.dash-topbar__sep {
  color: var(--muted);
  font-size: 9px;
  opacity: .4;
}
.dash-topbar__env {
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .6;
}

[data-theme="light"] .dash-topbar {
  background: linear-gradient(90deg, rgba(0,158,137,.06), rgba(108,62,184,.04), rgba(230,41,78,.03));
  border-bottom-color: rgba(0,158,137,.12);
}

/* ── Active nav link ─────────────────────────────── */
.nav-links a.active { color: var(--cyan); }
.nav-links a.active::after { right: 0; background: var(--cyan); }

/* ── Page shell ──────────────────────────────────── */
.dash-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 40px 2.5rem;
  position: relative;
}
.dash-shell::before {
  content: '';
  position: absolute;
  top: -60px; left: -10%; right: -10%;
  height: 500px;
  background:
    radial-gradient(ellipse at 25% 0%, rgba(0,229,197,.10), transparent 50%),
    radial-gradient(ellipse at 75% 10%, rgba(155,93,229,.08), transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(255,51,102,.03), transparent 55%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}
.dash-shell > * { position: relative; z-index: 1; }

@media(max-width:767px) { .dash-shell { padding: 1.25rem 16px 2rem; } }

/* ── Ticker ──────────────────────────────────────── */
.dash-ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(8,12,16,.6);
  position: relative;
  padding: 10px 0;
}
.dash-ticker::before,
.dash-ticker::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2;
  pointer-events: none;
}
.dash-ticker::before { left: 0; background: linear-gradient(90deg, var(--bg-1), transparent); }
.dash-ticker::after  { right: 0; background: linear-gradient(-90deg, var(--bg-1), transparent); }
.dash-ticker__track {
  display: flex;
  width: max-content;
  animation: dashTicker 28s linear infinite;
}
.dash-ticker__track:hover { animation-play-state: paused; }
@keyframes dashTicker { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.dash-ticker__item {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); padding: 0 28px; white-space: nowrap;
}
a.dash-ticker__item--link {
  text-decoration: none;
  cursor: pointer;
  transition: color .2s;
}
a.dash-ticker__item--link:hover {
  color: var(--cyan);
}
a.dash-ticker__item--link:hover .dash-ticker__sep {
  opacity: 1;
}
.dash-ticker__sep { color: var(--cyan); margin-left: 28px; opacity: .5; }

/* ══════════════════════════════════════════════════════
   GLASS PANEL — shared foundation for all cards
   ══════════════════════════════════════════════════════ */
.dash-panel,
.dash-stat,
.v-card,
.dash-session {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at top left, rgba(0,229,197,.05), transparent 35%),
    linear-gradient(180deg, rgba(12,18,24,.96), rgba(8,12,16,.98));
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
}
.dash-panel::before,
.dash-stat::before,
.v-card::before,
.dash-session::before {
  content: '';
  position: absolute; inset: 0; padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg,
    rgba(0,229,197,.4),
    rgba(155,93,229,.2) 40%,
    rgba(255,51,102,.12) 70%,
    transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
  opacity: .55;
}
.dash-panel { padding: 1.25rem; }

/* ══════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════ */
.dash-hero {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(300px,.7fr);
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 24px;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(0,229,197,.10), transparent 35%),
    radial-gradient(ellipse at 85% 30%, rgba(155,93,229,.06), transparent 40%),
    linear-gradient(180deg, rgba(12,18,24,.95), rgba(8,12,16,.97));
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.dash-hero::before {
  content: '';
  position: absolute; inset: 0; padding: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg,
    rgba(0,229,197,.5),
    rgba(155,93,229,.3) 50%,
    rgba(255,51,102,.2) 80%,
    transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
  opacity: .6;
}

.dash-hero__copy { display: flex; flex-direction: column; justify-content: center; }

/* ── Typography ──────────────────────────────────── */
.dash-eyebrow,
.dash-kicker,
.dash-panel-label,
.dash-stat__label,
.dash-inline-link,
.page-label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.dash-eyebrow { color: var(--cyan); margin-bottom: .75rem; }
.dash-kicker {
  color: color-mix(in srgb, var(--text) 55%, transparent);
  margin-bottom: .75rem;
}
.dash-panel-label, .page-label { color: var(--muted); }

.dash-brand {
  font-family: var(--f-tech);
  font-size: clamp(40px, 6vw, 72px);
  line-height: .88;
  margin: 0 0 .4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}
.dash-brand .h-num { color: var(--cyan); }
.dash-brand .h-dot { color: var(--pink); }
.dash-brand .h-word { color: var(--text); letter-spacing: -.06em; }

.dash-heading {
  font-family: var(--f-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1;
  margin: 0 0 .5rem;
  letter-spacing: -.03em;
  color: var(--text);
}

.dash-copy {
  max-width: 680px;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: .4rem;
}
.dash-copy--muted { color: var(--muted); }

/* ── Buttons ─────────────────────────────────────── */
.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1rem;
}
.dash-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .7rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s, background .25s;
}
.dash-btn--fill {
  background: var(--cyan);
  color: #071013;
  box-shadow: 0 6px 20px rgba(0,229,197,.18);
}
.dash-btn--fill:hover {
  transform: translateY(-2px);
  color: #071013;
  box-shadow: 0 10px 28px rgba(0,229,197,.28);
}
.dash-btn--ghost {
  background: rgba(255,255,255,.02);
  color: var(--text);
  border: 1px solid var(--line);
}
.dash-btn--ghost:hover {
  transform: translateY(-2px);
  color: var(--cyan);
  border-color: rgba(0,229,197,.35);
  background: rgba(0,229,197,.04);
}
.dash-btn--full { width: 100%; margin-top: .75rem; }

/* ══════════════════════════════════════════════════════
   SESSION CARD
   ══════════════════════════════════════════════════════ */
.dash-session {
  padding: 1.25rem;
  align-self: stretch;
  background:
    radial-gradient(ellipse at top right, rgba(0,229,197,.08), transparent 50%),
    linear-gradient(180deg, rgba(12,18,24,.94), rgba(8,12,16,.97));
  border-color: rgba(0,229,197,.10);
}
.dash-session::before {
  background: linear-gradient(160deg,
    rgba(0,229,197,.5),
    rgba(0,229,197,.15) 50%,
    transparent);
}

.dash-session__badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,229,197,.2);
  background: rgba(0,229,197,.06);
  color: var(--cyan);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: .5rem 0 .85rem;
}
.dash-session__badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.dash-session__name {
  font-family: var(--f-tech);
  font-size: clamp(20px, 2.5vw, 32px);
  line-height: 1.04;
  margin-bottom: .35rem;
  overflow-wrap: anywhere;
}
.dash-session__key {
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  margin-bottom: 1rem;
}

.dash-session__rows,
.dash-list {
  display: grid;
  gap: 0;
}
.dash-session__row,
.dash-list__row {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .65rem 0;
  border-top: 1px solid var(--line);
}
.dash-session__row span,
.dash-list__row span {
  color: var(--muted);
  font-size: 12px;
  font-family: var(--f-mono);
  letter-spacing: .04em;
}
.dash-session__row strong,
.dash-list__row strong {
  color: var(--text);
  font-size: 13px;
  overflow-wrap: anywhere;
}

/* ══════════════════════════════════════════════════════
   STATS STRIP
   ══════════════════════════════════════════════════════ */
.dash-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .6rem;
  margin-bottom: 1rem;
}
.dash-stat {
  padding: 1rem;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.dash-stat__icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .5rem;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--f-tech);
}
.dash-stat:nth-child(1) .dash-stat__icon {
  background: rgba(0,229,197,.08);
  border: 1px solid rgba(0,229,197,.15);
  color: var(--cyan);
}
.dash-stat:nth-child(2) .dash-stat__icon {
  background: rgba(155,93,229,.08);
  border: 1px solid rgba(155,93,229,.15);
  color: var(--purple);
}
.dash-stat:nth-child(3) .dash-stat__icon {
  background: rgba(255,122,89,.08);
  border: 1px solid rgba(255,122,89,.15);
  color: var(--orange, #ff7a59);
}
.dash-stat:nth-child(4) .dash-stat__icon {
  background: rgba(221,228,236,.06);
  border: 1px solid rgba(221,228,236,.08);
  color: var(--text);
}

.dash-stat__num {
  font-family: var(--f-tech);
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 700;
  line-height: 1;
  margin-bottom: .35rem;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}
.dash-stat:nth-child(1) .dash-stat__num { color: var(--cyan); }
.dash-stat:nth-child(2) .dash-stat__num { color: #9b5de5; }
.dash-stat:nth-child(3) .dash-stat__num { color: #ff7a59; }
.dash-stat:nth-child(4) .dash-stat__num { color: var(--text); }

.dash-stat__num--date { font-size: clamp(18px, 1.8vw, 26px); }
.dash-stat__label {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .14em;
}

/* ══════════════════════════════════════════════════════
   CONTENT GRID
   ══════════════════════════════════════════════════════ */
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: .6rem;
}

.dash-panel--wide { grid-column: 1 / -1; }

.dash-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.dash-panel__title {
  margin: .35rem 0 0;
  font-family: var(--f-display);
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.05;
}
.dash-inline-link {
  color: var(--cyan);
  text-decoration: none;
  margin-top: .2rem;
  transition: color .25s;
}
.dash-inline-link:hover { color: #8ff7e8; }

/* ── Table ───────────────────────────────────────── */
.dash-table-wrap { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th,
.dash-table td {
  padding: .8rem .7rem;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.dash-table th {
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.dash-table td { font-size: 14px; }
.dash-table__key {
  color: var(--cyan);
  font-family: var(--f-mono);
  font-size: 12px;
  word-break: break-word;
}
.dash-table tbody tr {
  transition: background .25s;
}
.dash-table tbody tr:hover {
  background: rgba(0,229,197,.02);
}

/* ── Status badge ────────────────────────────────── */
.dash-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 .65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.dash-status--active {
  color: var(--cyan);
  border-color: rgba(0,229,197,.22);
  background: rgba(0,229,197,.06);
}
.dash-status--active::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}

/* ── Action cards ────────────────────────────────── */
.dash-actions-grid {
  display: grid;
  gap: .6rem;
}
.dash-action-card {
  display: block;
  padding: .85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.015);
  transition: transform .25s var(--ease), border-color .25s, background .25s, box-shadow .25s;
  text-decoration: none;
}
.dash-action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,229,197,.25);
  background: rgba(0,229,197,.03);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.dash-action-card span {
  color: var(--cyan);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .14em;
}
.dash-action-card strong {
  display: block;
  margin: .35rem 0 .25rem;
  font-size: 15px;
  font-family: var(--f-display);
  color: var(--text);
}
.dash-action-card em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.6;
}

/* ── News cards ──────────────────────────────────── */
.dash-news-grid { display: grid; gap: .6rem; }
.dash-news-card {
  display: block;
  padding: .85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.015);
  transition: transform .25s var(--ease), border-color .25s, background .25s;
  text-decoration: none;
}
.dash-news-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,229,197,.2);
  background: rgba(0,229,197,.02);
}
.dash-news-card__meta {
  color: var(--cyan);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .12em;
}
.dash-news-card h3 {
  font-size: 16px !important;
  margin: .35rem 0 .25rem !important;
  font-family: var(--f-display) !important;
}
.dash-news-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}

/* General news card (news list) */
.news-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem;
  margin-bottom: .5rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.015);
  transition: transform .25s var(--ease), border-color .25s;
  text-decoration: none;
}
.news-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,229,197,.2);
}
.news-card__img {
  width: 64px; height: 64px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.news-card__img img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { flex: 1; min-width: 0; }
.news-card__body h4 {
  font-family: var(--f-display);
  font-size: 15px;
  margin: 0 0 .25rem;
}
.news-card__body p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}

/* ── Empty state ─────────────────────────────────── */
.dash-empty { padding: .75rem 0 .2rem; }
.dash-empty__title {
  font-family: var(--f-display);
  font-size: 20px;
  margin-bottom: .35rem;
}
.dash-empty p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════
   PAGE HEADER (profile, news, configs)
   ══════════════════════════════════════════════════════ */
.page-header { margin-bottom: 1.25rem; }
.page-header h2 {
  font-family: var(--f-display);
  font-size: clamp(26px, 3vw, 38px);
  margin: .3rem 0 0;
  line-height: 1.08;
}

/* ── Pagination ──────────────────────────────────── */
.step-links a { color: var(--cyan); text-decoration: none; }
.step-links a:hover { color: #8ff7e8; }
.current-page { color: var(--muted); margin: 0 .75rem; }

/* ══════════════════════════════════════════════════════
   PROFILE PAGE — structured classes replacing inline styles
   ══════════════════════════════════════════════════════ */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: .75rem;
}

.profile-card {
  padding: 1.5rem;
}

.profile-identity-name {
  font-family: var(--f-tech);
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.1;
  margin-bottom: .5rem;
}

.profile-login-key {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--cyan);
  word-break: break-all;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.profile-key-display {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .75rem 1rem;
  word-break: break-all;
  margin-bottom: .5rem;
  line-height: 1.5;
}

.profile-key-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}

.profile-quick-links {
  display: grid;
  gap: .5rem;
}
.profile-quick-links .dash-action-card {
  padding: .7rem .85rem;
}
.profile-quick-links .dash-action-card strong {
  font-size: 14px;
  margin: 0;
}

/* ══════════════════════════════════════════════════════
   GLOBAL FORM STYLES — dashboard area
   ══════════════════════════════════════════════════════ */
.dash-shell input[type="text"],
.dash-shell input[type="password"],
.dash-shell input[type="email"],
.dash-shell input[type="number"],
.dash-shell textarea,
.dash-shell select,
.profile-card input[type="text"],
.profile-card input[type="password"],
.profile-card input[type="email"] {
  display: block;
  width: 100%;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  font-family: var(--f-body);
  font-size: 14px;
  padding: .7rem 1rem;
  min-height: 46px;
  transition: border-color .3s, box-shadow .3s;
  -webkit-appearance: none;
  appearance: none;
}
.dash-shell input:focus,
.dash-shell textarea:focus,
.dash-shell select:focus,
.profile-card input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,229,197,.08), 0 0 20px rgba(0,229,197,.04);
  outline: none;
}
.dash-shell input::placeholder,
.profile-card input::placeholder { color: var(--muted); }

.dash-shell label,
.profile-card label,
.auth-box label {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

/* ── Form messages ───────────────────────────────── */
.form-message {
  font-size: 13px;
  margin-bottom: .25rem;
}
.form-message--error { color: var(--pink); }
.form-message--success { color: var(--cyan); }

/* ══════════════════════════════════════════════════════
   AUTH PAGES (signin / signup / recover)
   ══════════════════════════════════════════════════════ */
.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  position: relative;
}
.auth-page::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(0,229,197,.08), transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(155,93,229,.06), transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(255,51,102,.03), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.auth-container {
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
}

.auth-logo {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
  text-decoration: none;
}
.auth-logo .a-num {
  font-family: var(--f-tech);
  font-size: 48px;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 30px rgba(0,229,197,.25);
}
.auth-logo .a-dot {
  font-family: var(--f-tech);
  font-size: 48px;
  color: var(--pink);
}
.auth-logo .a-word {
  font-family: var(--f-tech);
  font-size: 48px;
  color: var(--text);
  letter-spacing: -.04em;
}

.auth-box {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top left, rgba(0,229,197,.05), transparent 30%),
    linear-gradient(180deg, rgba(12,18,24,.97), rgba(8,12,16,.99));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2.5rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.auth-box::before {
  content: '';
  position: absolute; inset: 0; padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg,
    rgba(0,229,197,.45),
    rgba(155,93,229,.25) 50%,
    rgba(255,51,102,.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
  opacity: .5;
}
.auth-box::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 200%;
  background: linear-gradient(180deg, transparent 45%, rgba(0,229,197,.02) 50%, transparent 55%);
  animation: authScan 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes authScan { 0%{transform:translateY(-30%)} 100%{transform:translateY(30%)} }

.auth-title {
  font-family: var(--f-display);
  font-size: 26px;
  text-align: center;
  margin-bottom: .5rem;
  position: relative;
}
.auth-sub {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  position: relative;
}

.auth-box form { position: relative; }
.auth-box input {
  display: block;
  width: 100%;
  background: var(--bg-2, #141b23);
  color: var(--text, #dde4ec);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  font-family: var(--f-body);
  font-size: 15px;
  padding: .85rem 1.1rem;
  min-height: 52px;
  margin-bottom: 1.2rem;
  transition: border-color .3s, box-shadow .3s;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}
.auth-box input:focus {
  border-color: var(--cyan, #00e5c5);
  box-shadow: 0 0 0 3px rgba(0,229,197,.08), 0 0 20px rgba(0,229,197,.04);
  outline: none;
}
.auth-box input::placeholder {
  color: var(--muted, #4d5f73);
}

.auth-submit {
  position: relative;
  width: 100%;
  min-height: 48px;
  background: var(--cyan);
  color: #071013;
  border: none;
  border-radius: 8px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s;
  box-shadow: 0 8px 24px rgba(0,229,197,.18);
}
.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,229,197,.28);
}

.auth-error {
  color: var(--pink);
  font-size: 13px;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.auth-links {
  text-align: center;
  margin-top: 1.5rem;
  position: relative;
}
.auth-links a { color: var(--cyan); font-size: 13px; }
.auth-links p { color: var(--muted); font-size: 13px; margin-bottom: .4rem; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  color: var(--muted);
  font-size: 10px;
  font-family: var(--f-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Floating particles */
.auth-particles {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.auth-particles span {
  position: absolute;
  display: block;
  width: 2px; height: 2px;
  background: var(--cyan);
  border-radius: 50%;
  opacity: 0;
  animation: authFloat linear infinite;
}
@keyframes authFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: .5; }
  90% { opacity: .5; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

/* ══════════════════════════════════════════════════════
   REVEAL ANIMATIONS
   ══════════════════════════════════════════════════════ */
.rev {
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp .7s var(--ease) forwards;
}
.rev-d1 { animation-delay: .1s; }
.rev-d2 { animation-delay: .2s; }
@keyframes revealUp { to { opacity: 1; transform: none; } }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media(max-width:1199px) {
  .dash-hero { grid-template-columns: 1fr; }
  .dash-stats-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dash-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
}
@media(max-width:767px) {
  .dash-stats-strip { grid-template-columns: 1fr; }
  .dash-hero, .dash-panel, .dash-stat, .v-card, .dash-session { border-radius: 16px; }
  .dash-hero { padding: 1.25rem; }
  .dash-brand { font-size: clamp(40px, 13vw, 64px); }
  .dash-heading { font-size: clamp(26px, 8vw, 40px); }
  .dash-topbar__env { display: none; }
  .dash-topbar__sep { display: none; }
  .dash-panel__head { flex-direction: column; }
  .dash-actions { flex-direction: column; }
  .dash-btn { width: 100%; }
  .news-card { flex-direction: column; align-items: flex-start; }
  .auth-logo .a-num, .auth-logo .a-dot, .auth-logo .a-word { font-size: 36px; }
  .auth-box { padding: 1.5rem; }
  .profile-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════
   LIGHT THEME — dashboard & account area
   ══════════════════════════════════════════════════════ */
[data-theme="light"] .dash-shell::before {
  background:
    radial-gradient(ellipse at 25% 0%, rgba(0,158,137,.06), transparent 50%),
    radial-gradient(ellipse at 75% 10%, rgba(120,70,190,.04), transparent 45%);
}

[data-theme="light"] .dash-ticker {
  background: rgba(255,255,255,.5);
  border-color: rgba(0,0,0,.06);
}
[data-theme="light"] .dash-ticker__track { color: #8a929e; }

[data-theme="light"] .dash-panel,
[data-theme="light"] .dash-stat,
[data-theme="light"] .v-card,
[data-theme="light"] .dash-session {
  background: rgba(255,255,255,.92);
  border-color: rgba(0,0,0,.08);
  box-shadow: 0 10px 36px rgba(0,0,0,.05);
}
[data-theme="light"] .dash-panel::before,
[data-theme="light"] .dash-stat::before,
[data-theme="light"] .v-card::before,
[data-theme="light"] .dash-session::before { opacity: .2; }

[data-theme="light"] .dash-hero {
  background: rgba(255,255,255,.92);
  border-color: rgba(0,0,0,.08);
  box-shadow: 0 12px 40px rgba(0,0,0,.06);
}
[data-theme="light"] .dash-hero::before { opacity: .2; }

[data-theme="light"] .dash-eyebrow { color: #009e89; }
[data-theme="light"] .dash-kicker { color: #8a929e; }
[data-theme="light"] .dash-panel-label,
[data-theme="light"] .page-label { color: #8a929e; }
[data-theme="light"] .dash-copy { color: #3a3f48; }
[data-theme="light"] .dash-copy--muted { color: #5a6270; }
[data-theme="light"] .dash-panel__title { color: #1a1d23; }

[data-theme="light"] .dash-brand .h-num { color: #009e89; }
[data-theme="light"] .dash-brand .h-dot { color: #e6294e; }
[data-theme="light"] .dash-brand .h-word { color: #1a1d23; }
[data-theme="light"] .dash-heading { color: #1a1d23; }
[data-theme="light"] .dash-topbar {
  background: linear-gradient(90deg, rgba(0,158,137,.06), rgba(108,62,184,.04), rgba(230,41,78,.03));
  border-bottom-color: rgba(0,158,137,.12);
}

[data-theme="light"] .dash-session {
  background: rgba(0,158,137,.03);
  border-color: rgba(0,158,137,.12);
}
[data-theme="light"] .dash-session__badge {
  background: rgba(0,158,137,.06);
  border-color: rgba(0,158,137,.15);
}
[data-theme="light"] .dash-session__name { color: #1a1d23; }
[data-theme="light"] .dash-session__key { color: #5a6270; }
[data-theme="light"] .dash-session__row span,
[data-theme="light"] .dash-list__row span { color: #8a929e; }
[data-theme="light"] .dash-session__row strong,
[data-theme="light"] .dash-list__row strong { color: #1a1d23; }
[data-theme="light"] .dash-session__row,
[data-theme="light"] .dash-list__row { border-color: rgba(0,0,0,.06); }

[data-theme="light"] .dash-btn--fill {
  background: #009e89;
  box-shadow: 0 6px 20px rgba(0,158,137,.15);
}
[data-theme="light"] .dash-btn--ghost {
  background: rgba(0,0,0,.02);
  color: #1a1d23;
  border-color: rgba(0,0,0,.10);
}
[data-theme="light"] .dash-btn--ghost:hover {
  color: #009e89;
  border-color: rgba(0,158,137,.3);
  background: rgba(0,158,137,.04);
}

[data-theme="light"] .dash-stat:nth-child(1) .dash-stat__num { color: #009e89; }
[data-theme="light"] .dash-stat:nth-child(2) .dash-stat__num { color: #7840c8; }
[data-theme="light"] .dash-stat:nth-child(3) .dash-stat__num { color: #e05a3a; }
[data-theme="light"] .dash-stat:nth-child(4) .dash-stat__num { color: #1a1d23; }
[data-theme="light"] .dash-stat__label { color: #8a929e; }

[data-theme="light"] .dash-stat:nth-child(1) .dash-stat__icon { background: rgba(0,158,137,.06); border-color: rgba(0,158,137,.12); color: #009e89; }
[data-theme="light"] .dash-stat:nth-child(2) .dash-stat__icon { background: rgba(120,64,200,.06); border-color: rgba(120,64,200,.12); color: #7840c8; }
[data-theme="light"] .dash-stat:nth-child(3) .dash-stat__icon { background: rgba(224,90,58,.06); border-color: rgba(224,90,58,.12); color: #e05a3a; }
[data-theme="light"] .dash-stat:nth-child(4) .dash-stat__icon { background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.06); color: #5a6270; }

[data-theme="light"] .dash-table th { color: #8a929e; }
[data-theme="light"] .dash-table td { color: #1a1d23; }
[data-theme="light"] .dash-table__key { color: #009e89; }
[data-theme="light"] .dash-table th,
[data-theme="light"] .dash-table td { border-color: rgba(0,0,0,.06); }
[data-theme="light"] .dash-table tbody tr:hover { background: rgba(0,158,137,.02); }

[data-theme="light"] .dash-status { border-color: rgba(0,0,0,.08); color: #8a929e; }
[data-theme="light"] .dash-status--active { color: #009e89; border-color: rgba(0,158,137,.2); background: rgba(0,158,137,.05); }

[data-theme="light"] .dash-action-card,
[data-theme="light"] .dash-news-card,
[data-theme="light"] .news-card {
  border-color: rgba(0,0,0,.06);
  background: rgba(0,0,0,.01);
}
[data-theme="light"] .dash-action-card:hover,
[data-theme="light"] .dash-news-card:hover {
  border-color: rgba(0,158,137,.2);
  background: rgba(0,158,137,.03);
}
[data-theme="light"] .dash-action-card strong { color: #1a1d23; }
[data-theme="light"] .dash-action-card em { color: #5a6270; }
[data-theme="light"] .dash-action-card span { color: #009e89; }
[data-theme="light"] .dash-news-card h3 { color: #1a1d23 !important; }
[data-theme="light"] .dash-news-card p { color: #5a6270; }

[data-theme="light"] .dash-empty__title { color: #1a1d23; }
[data-theme="light"] .dash-empty p { color: #5a6270; }
[data-theme="light"] .dash-inline-link { color: #009e89; }

[data-theme="light"] .page-header h2 { color: #1a1d23; }

/* Profile page */
[data-theme="light"] .profile-identity-name { color: #1a1d23; }
[data-theme="light"] .profile-login-key { color: #009e89; }
[data-theme="light"] .profile-key-display {
  background: #f0f2f5;
  border-color: rgba(0,0,0,.08);
  color: #1a1d23;
}
[data-theme="light"] .profile-key-hint { color: #5a6270; }

/* Form inputs */
[data-theme="light"] .dash-shell input[type="text"],
[data-theme="light"] .dash-shell input[type="password"],
[data-theme="light"] .dash-shell input[type="email"],
[data-theme="light"] .dash-shell input[type="number"],
[data-theme="light"] .dash-shell textarea,
[data-theme="light"] .dash-shell select,
[data-theme="light"] .profile-card input[type="text"],
[data-theme="light"] .profile-card input[type="password"],
[data-theme="light"] .profile-card input[type="email"] {
  background: #f0f2f5;
  color: #1a1d23;
  border-color: rgba(0,0,0,.10);
}
[data-theme="light"] .dash-shell input:focus,
[data-theme="light"] .profile-card input:focus {
  border-color: #009e89;
  box-shadow: 0 0 0 3px rgba(0,158,137,.08);
}
[data-theme="light"] .dash-shell input::placeholder,
[data-theme="light"] .profile-card input::placeholder { color: #8a929e; }
[data-theme="light"] .dash-shell label,
[data-theme="light"] .profile-card label,
[data-theme="light"] .auth-box label { color: #5a6270; }

/* Auth pages */
[data-theme="light"] .auth-page::before {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(0,158,137,.04), transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(120,70,190,.03), transparent 50%);
}
[data-theme="light"] .auth-box {
  background: rgba(255,255,255,.95);
  border-color: rgba(0,0,0,.08);
  box-shadow: 0 20px 50px rgba(0,0,0,.06);
}
[data-theme="light"] .auth-box::before { opacity: .15; }
[data-theme="light"] .auth-box::after { background: linear-gradient(180deg, transparent 45%, rgba(0,158,137,.015) 50%, transparent 55%); }
[data-theme="light"] .auth-title { color: #1a1d23; }
[data-theme="light"] .auth-sub { color: #5a6270; }
[data-theme="light"] .auth-box input {
  background: #f0f2f5;
  color: #1a1d23;
  border-color: rgba(0,0,0,.10);
}
[data-theme="light"] .auth-box input:focus {
  border-color: #009e89;
  box-shadow: 0 0 0 3px rgba(0,158,137,.08);
}
[data-theme="light"] .auth-box input::placeholder { color: #8a929e; }
[data-theme="light"] .auth-submit { background: #009e89; box-shadow: 0 6px 20px rgba(0,158,137,.15); }
[data-theme="light"] .auth-links a { color: #009e89; }
[data-theme="light"] .auth-links p { color: #5a6270; }
[data-theme="light"] .auth-divider { color: #8a929e; }
[data-theme="light"] .auth-divider::before,
[data-theme="light"] .auth-divider::after { background: rgba(0,0,0,.08); }
[data-theme="light"] .auth-error { color: #e6294e; }
[data-theme="light"] .form-message--error { color: #e6294e; }
[data-theme="light"] .form-message--success { color: #009e89; }

[data-theme="light"] .auth-logo .a-num { color: #009e89; text-shadow: none; }
[data-theme="light"] .auth-logo .a-dot { color: #e6294e; }
[data-theme="light"] .auth-logo .a-word { color: #1a1d23; }


/* ══════════════════════════════════════════════════════
   CONFIGS PAGE — premium card layout
   ══════════════════════════════════════════════════════ */
.cfg-grid {
  display: grid;
  gap: 1rem;
}

.cfg-card {
  padding: 1.3rem;
}

.cfg-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cfg-card__identity {
  min-width: 0;
  flex: 1 1 auto;
}

.cfg-key-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-top: .55rem;
}

.cfg-key {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  max-width: 100%;
  padding: .8rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.025);
  color: var(--text);
  font-size: 13px;
  letter-spacing: .08em;
  text-decoration: none;
}

.cfg-key:hover {
  border-color: rgba(0,229,197,.22);
  background: rgba(0,229,197,.04);
  color: var(--cyan);
}

.cfg-copy-hint {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.cfg-plan-chip {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 42px;
  max-width: 280px;
  padding: .75rem .95rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
  text-align: right;
}

.cfg-note {
  padding: .95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.05);
  background: rgba(255,255,255,.02);
}

.cfg-note__label,
.cfg-meta-item .mono {
  display: block;
  margin-bottom: .4rem;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.cfg-note p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
  word-break: break-word;
}

.cfg-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}

.cfg-meta-item {
  padding: .9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.05);
  background: rgba(255,255,255,.018);
}

.cfg-meta-item strong {
  display: block;
  font-size: 13px;
  line-height: 1.65;
  word-break: break-word;
}

.cfg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1rem;
}

.cfg-action-btn {
  min-width: 210px;
}

.cfg-action-btn.is-disabled {
  pointer-events: none;
  opacity: .55;
  box-shadow: none;
}

.cfg-action-btn--full {
  flex: 1;
  width: 100%;
}

.cfg-status--soon {
  color: #ffc457;
  border-color: rgba(255,196,87,.18);
  background: rgba(255,196,87,.08);
}

.cfg-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}

.cfg-modal.is-open {
  display: block;
}

.cfg-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 12, .68);
  backdrop-filter: blur(8px);
}

.cfg-modal__dialog {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  margin: 7vh auto;
  max-height: 86vh;
  overflow: auto;
  padding: 1.35rem;
}

.cfg-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cfg-modal__head h3 {
  margin: .35rem 0 0;
  font-size: clamp(26px, 3.1vw, 36px);
}

.cfg-modal__close {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  color: var(--text);
  font-size: 26px;
  line-height: 1;
}

.cfg-modal__loading {
  padding: 1rem 0;
  color: var(--muted);
}

.cfg-settings-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cfg-settings-head h3 {
  margin: .35rem 0 0;
  font-size: 22px;
  word-break: break-word;
}

.cfg-settings-grid {
  display: grid;
  gap: 1rem;
}

#configSettingsContainer .form-group,
#configSettingsContainer .mb-3 {
  margin: 0;
}

#configSettingsContainer .dash-btn {
  align-self: flex-start;
}

[data-theme="light"] .cfg-key,
[data-theme="light"] .cfg-plan-chip,
[data-theme="light"] .cfg-note,
[data-theme="light"] .cfg-meta-item {
  background: rgba(0,0,0,.015);
  border-color: rgba(0,0,0,.08);
}

[data-theme="light"] .cfg-key {
  color: #1a1d23;
}

[data-theme="light"] .cfg-key:hover {
  color: #009e89;
  border-color: rgba(0,158,137,.22);
  background: rgba(0,158,137,.04);
}

[data-theme="light"] .cfg-copy-hint,
[data-theme="light"] .cfg-note__label,
[data-theme="light"] .cfg-meta-item .mono,
[data-theme="light"] .cfg-plan-chip {
  color: #7f8795;
}

[data-theme="light"] .cfg-note p,
[data-theme="light"] .cfg-meta-item strong,
[data-theme="light"] .cfg-modal__head h3,
[data-theme="light"] .cfg-settings-head h3 {
  color: #1a1d23;
}

[data-theme="light"] .cfg-modal__backdrop {
  background: rgba(24, 28, 34, .32);
}

[data-theme="light"] .cfg-modal__close {
  background: rgba(0,0,0,.02);
  border-color: rgba(0,0,0,.08);
  color: #1a1d23;
}

[data-theme="light"] .cfg-modal__loading {
  color: #5a6270;
}

@media (max-width: 900px) {
  .cfg-card__top {
    flex-direction: column;
  }

  .cfg-plan-chip {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 767px) {
  .cfg-card {
    padding: 1rem;
  }

  .cfg-meta-grid {
    grid-template-columns: 1fr;
  }

  .cfg-action-btn {
    width: 100%;
    min-width: 0;
  }

  .cfg-actions {
    flex-direction: column;
  }

  .cfg-key {
    width: 100%;
    justify-content: space-between;
  }

  .cfg-modal__dialog {
    width: calc(100vw - 20px);
    margin: 4vh auto;
    padding: 1rem;
  }
}


/* ══════════════════════════════════════════════════════
   SUBSCRIPTION PAGE
   ══════════════════════════════════════════════════════ */
.sub-current-panel,
.sub-catalog-panel {
  margin-bottom: 1rem;
}

.sub-owned-grid,
.sub-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.sub-plan-grid--box {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.sub-card,
.sub-plan-card {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .95rem;
}

.sub-card__top,
.sub-plan-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .8rem;
}

.sub-card__eyebrow,
.sub-plan-card__period,
.sub-plan-card__features-label,
.sub-card__keys-label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.sub-card__title,
.sub-plan-card__title {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.02;
}

.sub-state-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(0,229,197,.18);
  background: rgba(0,229,197,.08);
  color: var(--cyan);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.sub-state-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.sub-state-chip.is-inactive {
  color: #9aa7b6;
  border-color: rgba(154,167,182,.18);
  background: rgba(154,167,182,.08);
}

.sub-card__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.sub-card__meta-item {
  padding: .85rem .9rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.sub-card__meta-item span {
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.sub-card__meta-item strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
}

.sub-key-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .55rem;
}

.sub-key-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: .45rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(0,229,197,.14);
  background: rgba(0,229,197,.06);
  color: var(--cyan);
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.3;
  word-break: break-all;
}

.sub-plan-card__price {
  font-family: var(--f-tech);
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1;
  color: var(--text);
}

.sub-plan-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.sub-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .55rem;
}

.sub-feature-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

.sub-feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0,229,197,.45);
}

.sub-plan-card__actions {
  margin-top: auto;
  padding-top: .35rem;
}

.sub-empty {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: .5rem;
}

.sub-empty--inline {
  grid-column: 1 / -1;
}

.sub-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

[data-theme="light"] .sub-card__meta-item {
  border-color: rgba(6,24,38,.08);
  background: rgba(255,255,255,.76);
}

[data-theme="light"] .sub-state-chip {
  background: rgba(0,184,165,.08);
  border-color: rgba(0,184,165,.18);
  color: #009d90;
}

[data-theme="light"] .sub-state-chip.is-inactive {
  color: #687588;
  border-color: rgba(104,117,136,.16);
  background: rgba(104,117,136,.08);
}

[data-theme="light"] .sub-key-chip {
  border-color: rgba(0,184,165,.16);
  background: rgba(0,184,165,.08);
  color: #007f76;
}

[data-theme="light"] .sub-feature-list li::before {
  background: #00a69a;
  box-shadow: 0 0 8px rgba(0,166,154,.2);
}

@media (max-width: 1100px) {
  .sub-owned-grid,
  .sub-plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .sub-card,
  .sub-plan-card {
    padding: 1rem;
  }

  .sub-card__top,
  .sub-plan-card__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .sub-card__meta {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════
   FINAL PATCH — refreshed cabinet pages
   ══════════════════════════════════════════════════════ */
.page-header {
  margin-bottom: 1.35rem;
}
.page-header h2 {
  font-family: var(--f-display);
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: .98;
  letter-spacing: -.04em;
  margin: .45rem 0 0;
}

.dash-panel--wide {
  padding: 1.65rem;
}

.dash-news-grid--page {
  display: grid;
  gap: 1rem;
}
.news-card--panel {
  min-height: 156px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
.news-card__cta {
  min-width: 132px;
}
.dash-pagination {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}
.dash-pagination .step-links {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
  justify-content: center;
}
.dash-pagination a,
.dash-pagination .current-page {
  padding: .62rem .86rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  color: var(--text);
  text-decoration: none;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.dash-pagination a:hover {
  color: var(--cyan);
  border-color: rgba(0,229,197,.25);
}
.article-body p,
.article-body ul,
.article-body ol {
  margin-bottom: 1rem;
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* config settings form polish */
#configSettingsContainer label,
#configSettingsContainer .form-label {
  display: block;
  margin-bottom: .45rem;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
#configSettingsContainer input[type="text"],
#configSettingsContainer select {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--text);
  padding: 0 .95rem;
}
#configSettingsContainer input[type="text"]:focus,
#configSettingsContainer select:focus {
  outline: none;
  border-color: rgba(0,229,197,.26);
  box-shadow: 0 0 0 4px rgba(0,229,197,.08);
}
#responseMessage {
  margin-top: .2rem;
}
.form-message {
  margin-top: .4rem;
  padding: .75rem .9rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--text);
}
.form-message--success {
  border-color: rgba(0,229,197,.18);
  background: rgba(0,229,197,.07);
  color: var(--cyan);
}
.form-message--error {
  border-color: rgba(255,71,102,.18);
  background: rgba(255,71,102,.08);
  color: #ff6f8f;
}

[data-theme="light"] .news-card--panel,
[data-theme="light"] .dash-pagination a,
[data-theme="light"] .dash-pagination .current-page {
  background: rgba(255,255,255,.82);
  border-color: rgba(6,24,38,.08);
  color: #17202c;
}
[data-theme="light"] #configSettingsContainer input[type="text"],
[data-theme="light"] #configSettingsContainer select {
  background: rgba(255,255,255,.82);
  border-color: rgba(6,24,38,.10);
  color: #17202c;
}
[data-theme="light"] #configSettingsContainer input[type="text"]:focus,
[data-theme="light"] #configSettingsContainer select:focus {
  border-color: rgba(0,158,137,.24);
  box-shadow: 0 0 0 4px rgba(0,158,137,.07);
}
[data-theme="light"] .form-message {
  background: rgba(255,255,255,.82);
  border-color: rgba(6,24,38,.09);
  color: #17202c;
}
[data-theme="light"] .form-message--success {
  color: #00897a;
  border-color: rgba(0,137,122,.18);
  background: rgba(0,137,122,.06);
}
[data-theme="light"] .form-message--error {
  color: #d43b67;
  border-color: rgba(212,59,103,.18);
  background: rgba(212,59,103,.06);
}

@media (max-width: 760px) {
  .page-header h2 {
    font-size: clamp(28px, 9vw, 42px);
  }
  .news-card__cta {
    width: 100%;
    min-width: 0;
  }
}

/* ══════════════════════════════════════════════════════
   v85 — COMPREHENSIVE DASHBOARD FIXES
   News color bug, layout density, spacing
   ══════════════════════════════════════════════════════ */

/* ── FIX: News card link color bug ──────────────── */
/* <a> tags wrapping news cards cause purple/red text inheritance */
a.news-card,
a.news-card:link,
a.news-card:visited,
a.news-card:hover,
a.news-card:active {
  color: var(--text);
  text-decoration: none;
}
a.news-card h4,
a.news-card:link h4,
a.news-card:visited h4,
a.news-card:active h4 {
  color: var(--text) !important;
}
a.news-card p,
a.news-card:link p,
a.news-card:visited p {
  color: var(--muted) !important;
}
a.news-card .dash-news-card__meta {
  color: var(--cyan) !important;
}
[data-theme="light"] a.news-card,
[data-theme="light"] a.news-card:link,
[data-theme="light"] a.news-card:visited,
[data-theme="light"] a.news-card:active {
  color: #1a1d23;
}
[data-theme="light"] a.news-card h4,
[data-theme="light"] a.news-card:link h4,
[data-theme="light"] a.news-card:visited h4 {
  color: #1a1d23 !important;
}
[data-theme="light"] a.news-card p,
[data-theme="light"] a.news-card:visited p {
  color: #5a6270 !important;
}
[data-theme="light"] a.news-card .dash-news-card__meta {
  color: #009e89 !important;
}

/* ── Expand dashboard shell max-width ───────────── */
.dash-shell {
  max-width: 1340px;
}

/* ── Hero: tighter, less padding ────────────────── */
.dash-hero {
  gap: 1.25rem;
  padding: 1.75rem;
}

/* ── Stats: bigger, less wasted space ───────────── */
.dash-stat {
  min-height: 100px;
  padding: 1rem 1.1rem;
}
.dash-stat__num {
  font-size: clamp(28px, 3vw, 40px);
}

/* ── Grid: tighter gaps, better proportions ─────── */
.dash-grid {
  gap: .85rem;
}

/* ── Panels: denser ─────────────────────────────── */
.dash-panel {
  padding: 1.35rem;
}

/* ── Config cards: fill width, better meta grid ─── */
.cfg-grid {
  display: grid;
  gap: .85rem;
}
.cfg-card {
  display: flex;
  flex-direction: column;
}
.cfg-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .85rem;
}
.cfg-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .6rem;
  margin-bottom: 1rem;
}
.cfg-meta-item {
  padding: .7rem .8rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.cfg-meta-item span {
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cfg-meta-item strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.cfg-note {
  margin-bottom: .85rem;
}
.cfg-note__label {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: .25rem;
}
.cfg-note p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}
.cfg-key-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: .4rem;
}
.cfg-key {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .85rem;
  border-radius: 10px;
  border: 1px solid rgba(0,229,197,.12);
  background: rgba(0,229,197,.04);
  color: var(--cyan);
  font-family: var(--f-mono);
  font-size: 12px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.cfg-key:hover {
  background: rgba(0,229,197,.08);
  border-color: rgba(0,229,197,.2);
}
.cfg-copy-hint {
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .6;
}
.cfg-plan-chip {
  padding: .35rem .65rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.cfg-actions {
  display: flex;
  gap: .6rem;
  margin-top: auto;
}
.cfg-action-btn {
  flex: 1;
}
.cfg-action-btn.is-disabled {
  opacity: .35;
  cursor: not-allowed;
}

/* ── Config modal ───────────────────────────────── */
.cfg-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s;
}
.cfg-modal.is-open {
  pointer-events: auto;
  opacity: 1;
}
.cfg-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
}
.cfg-modal__dialog {
  position: relative;
  width: 90%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(12px);
  transition: transform .3s var(--ease);
}
.cfg-modal.is-open .cfg-modal__dialog {
  transform: none;
}
.cfg-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.cfg-modal__close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
}
.cfg-modal__close:hover {
  border-color: rgba(0,229,197,.3);
  background: rgba(0,229,197,.04);
}
.cfg-modal__loading {
  text-align: center;
  color: var(--muted);
  padding: 2rem 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
}

/* ── Config status soon ─────────────────────────── */
.cfg-status--soon {
  color: #ff9f43;
  border-color: rgba(255,159,67,.22);
  background: rgba(255,159,67,.06);
}
.cfg-status--soon::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #ff9f43;
  box-shadow: 0 0 6px #ff9f43;
}

/* ── Subscribe page: wider meta grid ────────────── */
.sub-card__meta {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.sub-current-panel,
.sub-catalog-panel {
  margin-bottom: .85rem;
}

.sub-owned-grid {
  display: grid;
  gap: .85rem;
}

.sub-card--owned {
  padding: 1.35rem;
}

.sub-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .6rem;
}

.sub-card__eyebrow {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}

.sub-state-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sub-state-chip.is-active {
  color: var(--cyan);
  border: 1px solid rgba(0,229,197,.2);
  background: rgba(0,229,197,.06);
}
.sub-state-chip.is-active::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}
.sub-state-chip.is-inactive {
  color: var(--muted);
  border: 1px solid var(--line);
  background: transparent;
}

.sub-card__title {
  font-family: var(--f-tech);
  font-size: clamp(20px, 2.5vw, 32px);
  line-height: 1.1;
  margin: 0 0 .85rem;
}

.sub-card__keys {
  margin-top: .85rem;
}
.sub-card__keys-label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: .4rem;
}

.sub-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: .85rem;
}
.sub-plan-grid--box {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.sub-plan-card {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
}
.sub-plan-card__head {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: .25rem;
}
.sub-plan-card__period {
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 12px;
}
.sub-plan-card__title {
  font-family: var(--f-tech);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.1;
  margin: .15rem 0 .6rem;
}
.sub-plan-card__features-label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}

/* ── News list: full-width cards ────────────────── */
.dash-news-grid--page .news-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.15rem 1.25rem;
}

/* ── Profile: equal-height cards ────────────────── */
.profile-card {
  display: flex;
  flex-direction: column;
}
.profile-card form {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.profile-card form label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .4rem;
}
.profile-card form input {
  margin-bottom: .85rem;
}
.profile-card form button[type="submit"] {
  margin-top: auto;
}
.profile-messages {
  margin-bottom: .85rem;
}

/* ── Light theme: config and sub extras ─────────── */
[data-theme="light"] .cfg-meta-item {
  border-color: rgba(6,24,38,.07);
  background: rgba(255,255,255,.7);
}
[data-theme="light"] .cfg-meta-item span { color: #8a929e; }
[data-theme="light"] .cfg-meta-item strong { color: #1a1d23; }
[data-theme="light"] .cfg-key {
  border-color: rgba(0,158,137,.14);
  background: rgba(0,158,137,.05);
  color: #009e89;
}
[data-theme="light"] .cfg-plan-chip {
  border-color: rgba(0,0,0,.08);
  color: #5a6270;
}
[data-theme="light"] .cfg-modal__backdrop {
  background: rgba(255,255,255,.65);
}
[data-theme="light"] .cfg-modal__close {
  border-color: rgba(0,0,0,.1);
  color: #1a1d23;
}
[data-theme="light"] .cfg-status--soon {
  color: #d48520;
  border-color: rgba(212,133,32,.2);
  background: rgba(212,133,32,.06);
}

/* ── Responsive: config meta grid ───────────────── */
@media (max-width: 900px) {
  .cfg-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .cfg-meta-grid {
    grid-template-columns: 1fr;
  }
  .cfg-card__top {
    flex-direction: column;
  }
  .cfg-actions {
    flex-direction: column;
  }
}

/* ══════════════════════════════════════════════════════
   PART 2 PATCH — cabinet separation, layout hardening, lazy i18n support
   ══════════════════════════════════════════════════════ */

.nav-dashboard {
  background:
    linear-gradient(180deg, rgba(6, 11, 16, .96), rgba(7, 12, 17, .92));
  border-bottom-color: rgba(0, 229, 197, .14);
  box-shadow: 0 10px 36px rgba(0, 0, 0, .24);
}

.nav-dashboard::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 197, .45), rgba(155, 93, 229, .32), transparent);
  pointer-events: none;
}

.nav-inner--dashboard {
  max-width: 1320px;
  gap: 28px;
}

.nav-logo--dashboard {
  flex-shrink: 0;
}

.nav-links--dashboard {
  justify-content: center;
}

.nav-pill--dashboard {
  padding: 0 10px 0 0;
}

[data-theme="light"] .nav-dashboard {
  background: linear-gradient(180deg, rgba(247, 249, 251, .97), rgba(240, 243, 247, .95));
  border-bottom-color: rgba(0, 158, 137, .16);
}

.dash-stat__num--date {
  white-space: nowrap;
  font-size: clamp(13px, 1.15vw, 18px);
}

.dash-panel--actions-wide {
  grid-column: 1 / -1;
}

.dash-panel--actions-wide .dash-actions-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dash-panel--actions-wide .dash-action-card {
  min-height: 132px;
}

.sub-owned-grid,
.sub-plan-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  align-items: stretch;
}

.sub-plan-card,
.sub-card--owned {
  min-height: 100%;
}

.sub-plan-card__head {
  flex-wrap: wrap;
}

.sub-plan-card__price {
  font-size: clamp(22px, 2.2vw, 38px);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sub-plan-card__period {
  white-space: nowrap;
}

.sub-card__title,
.sub-plan-card__title,
.dash-session__name,
.dash-session__key,
.dash-list__row strong {
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .dash-panel--actions-wide .dash-actions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .nav-inner--dashboard {
    grid-template-columns: auto 1fr auto;
    gap: 18px;
  }

  .dash-topbar {
    padding: 4px 16px;
  }
}

@media (max-width: 767px) {
  .dash-panel--actions-wide {
    grid-column: auto;
  }

  .dash-panel--actions-wide .dash-action-card {
    min-height: 0;
  }

  .sub-plan-card__period {
    white-space: normal;
  }
}


.dash-panel--account {
  min-height: 100%;
}

.sub-owned-grid--single,
.sub-plan-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.sub-owned-grid--single .sub-card--owned,
.sub-plan-grid--single .sub-plan-card {
  width: 100%;
}

.sub-owned-grid--single { justify-items: stretch; }
.sub-plan-grid--single { justify-items: stretch; }

.sub-plan-card__price {
  letter-spacing: -.05em;
}

.sub-plan-card__head {
  justify-content: space-between;
}

@media (min-width: 1101px) {
  .dash-grid {
    grid-template-columns: minmax(0, 1.22fr) minmax(340px, .78fr);
  }
}



/* ══════════════════════════════════════════════════════
   2026-03 cabinet revamp overrides
   ══════════════════════════════════════════════════════ */
body::after {
  display: none;
}

.dash-topbar {
  display: none !important;
}

.nav-dashboard {
  border-bottom-color: rgba(0, 229, 197, .14);
  background: linear-gradient(180deg, rgba(6, 12, 18, .92), rgba(6, 10, 16, .84));
  backdrop-filter: blur(18px);
}

.nav-brand-stack {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nav-workspace {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 197, .14);
  background: rgba(0, 229, 197, .06);
  color: var(--cyan);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.dash-shell {
  max-width: 1280px;
  padding: clamp(24px, 3vw, 40px) clamp(18px, 3vw, 42px) 48px;
}

.dash-shell::before {
  top: -120px;
  left: -12%;
  right: -12%;
  height: 720px;
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 229, 197, .18), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(155, 93, 229, .16), transparent 28%),
    radial-gradient(circle at 50% 35%, rgba(255, 51, 102, .08), transparent 34%);
  filter: blur(58px);
}

.dash-ticker {
  background: rgba(7, 12, 16, .78);
  border-top-color: rgba(0, 229, 197, .08);
  border-bottom-color: rgba(0, 229, 197, .08);
}

.dash-hero,
.dash-page-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
  gap: 1.25rem;
  padding: clamp(22px, 2.5vw, 32px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, .08);
  background:
    linear-gradient(135deg, rgba(0, 229, 197, .08), transparent 34%),
    linear-gradient(225deg, rgba(155, 93, 229, .10), transparent 30%),
    linear-gradient(180deg, rgba(10, 16, 24, .98), rgba(5, 10, 16, .98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .38);
  margin-bottom: 1rem;
}

.dash-hero::after,
.dash-page-hero::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 22%);
  pointer-events: none;
}

.dash-page-hero__main,
.dash-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.dash-heading,
.dash-page-hero h1 {
  margin: 0 0 .55rem;
  font-family: var(--f-display);
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: .96;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.dash-page-hero h1 {
  font-size: clamp(34px, 4vw, 56px);
}

.dash-copy {
  max-width: 740px;
  color: rgba(221, 228, 236, .88);
  font-size: 15px;
  line-height: 1.75;
}

.dash-copy--muted {
  color: rgba(221, 228, 236, .54);
}

.dash-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: .95rem 0 0;
}

.dash-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.dash-panel,
.dash-stat,
.v-card,
.dash-session,
.dash-overview-card,
.cfg-modal__dialog {
  border-color: rgba(255, 255, 255, .08);
  background:
    linear-gradient(180deg, rgba(10, 16, 24, .96), rgba(6, 10, 16, .98));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .24);
  backdrop-filter: blur(12px);
}

.dash-panel::before,
.dash-stat::before,
.v-card::before,
.dash-session::before {
  opacity: .72;
}

.dash-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  align-content: stretch;
}

.dash-overview--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dash-overview-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 150px;
  padding: 1rem;
  border-radius: 22px;
  overflow: hidden;
}

.dash-overview-card__label {
  display: block;
  margin-bottom: .7rem;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.dash-overview-card__value {
  display: block;
  color: var(--text);
  font-family: var(--f-tech);
  font-size: clamp(18px, 2vw, 30px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.dash-session {
  padding: 1.35rem;
}

.dash-session__name {
  font-size: clamp(24px, 2.4vw, 34px);
}

.dash-session__row,
.dash-list__row {
  padding: .8rem 0;
}

.dash-stats-strip {
  gap: .85rem;
  margin-bottom: 1.05rem;
}

.dash-stat {
  min-height: 118px;
  padding: 1rem 1.05rem;
}

.dash-stat__num {
  font-size: clamp(28px, 2.8vw, 40px);
}

.dash-grid {
  gap: .85rem;
}

.dash-panel__title {
  letter-spacing: -.04em;
}

.dash-panel--actions-wide .dash-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.dash-action-card,
.dash-news-card,
.news-card,
.cfg-key,
.cfg-plan-chip,
.cfg-note,
.cfg-meta-item,
.sub-card__meta-item {
  background: rgba(255, 255, 255, .028);
}

.dash-action-card {
  border-radius: 18px;
  padding: 1rem 1.05rem;
}

.dash-action-card strong {
  font-size: 16px;
}

.page-header {
  display: none;
}

.cfg-grid {
  gap: 1.05rem;
}

.cfg-card {
  padding: 1.35rem;
  border-radius: 24px;
}

.cfg-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.cfg-action-btn {
  width: 100%;
  min-width: 0;
}

.cfg-key {
  border-radius: 16px;
}

.cfg-plan-chip {
  border-radius: 16px;
}

.sub-current-panel,
.sub-catalog-panel {
  margin-bottom: 1rem;
}

.sub-card,
.sub-plan-card {
  border-radius: 22px;
}

.profile-grid {
  gap: .85rem;
  margin-bottom: .85rem;
}

.profile-card {
  border-radius: 24px;
  padding: 1.3rem;
}

.profile-card form {
  display: grid;
  gap: .95rem;
}

.profile-quick-links {
  display: grid;
  gap: .7rem;
}

.profile-key-display {
  margin-bottom: .85rem;
}

.footer-dashboard {
  padding-top: 14px;
}

.footer-build {
  font-size: 10px;
  color: var(--muted);
}

[data-theme="light"] body {
  background:
    linear-gradient(rgba(0, 158, 137, .02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 158, 137, .02) 1px, transparent 1px),
    linear-gradient(180deg, #f4f7fb, #edf1f6);
  background-size: 60px 60px, 60px 60px, auto;
}

[data-theme="light"] .nav-dashboard {
  background: linear-gradient(180deg, rgba(249, 251, 253, .96), rgba(241, 245, 249, .92));
}

[data-theme="light"] .nav-workspace {
  color: #008d7b;
  background: rgba(0, 141, 123, .08);
  border-color: rgba(0, 141, 123, .12);
}

[data-theme="light"] .dash-hero,
[data-theme="light"] .dash-page-hero,
[data-theme="light"] .dash-panel,
[data-theme="light"] .dash-stat,
[data-theme="light"] .v-card,
[data-theme="light"] .dash-session,
[data-theme="light"] .dash-overview-card,
[data-theme="light"] .cfg-modal__dialog {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(247, 250, 252, .96));
  box-shadow: 0 16px 40px rgba(31, 42, 55, .08);
}

[data-theme="light"] .dash-copy,
[data-theme="light"] .dash-overview-card__value,
[data-theme="light"] .dash-action-card strong,
[data-theme="light"] .profile-identity-name,
[data-theme="light"] .profile-key-display,
[data-theme="light"] .dash-session__name,
[data-theme="light"] .dash-panel__title,
[data-theme="light"] .dash-empty__title {
  color: #151d28;
}

[data-theme="light"] .dash-chip {
  background: rgba(0, 0, 0, .018);
  color: #243040;
  border-color: rgba(0, 0, 0, .08);
}

[data-theme="light"] .dash-copy--muted,
[data-theme="light"] .dash-session__key,
[data-theme="light"] .dash-list__row span,
[data-theme="light"] .dash-session__row span,
[data-theme="light"] .dash-empty p,
[data-theme="light"] .dash-action-card em,
[data-theme="light"] .dash-overview-card__label {
  color: #687588;
}

[data-theme="light"] .dash-action-card,
[data-theme="light"] .dash-news-card,
[data-theme="light"] .news-card,
[data-theme="light"] .cfg-key,
[data-theme="light"] .cfg-plan-chip,
[data-theme="light"] .cfg-note,
[data-theme="light"] .cfg-meta-item,
[data-theme="light"] .sub-card__meta-item,
[data-theme="light"] .dash-chip {
  background: rgba(255, 255, 255, .8);
  border-color: rgba(10, 18, 28, .08);
}

@media (max-width: 1100px) {
  .dash-hero,
  .dash-page-hero {
    grid-template-columns: 1fr;
  }

  .dash-overview,
  .dash-overview--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-panel--actions-wide .dash-actions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .nav-brand-stack {
    gap: 8px;
  }

  .nav-workspace {
    display: none;
  }

  .dash-shell {
    padding: 20px 14px 36px;
  }

  .dash-heading,
  .dash-page-hero h1 {
    font-size: clamp(28px, 10vw, 42px);
  }

  .dash-overview,
  .dash-overview--three,
  .dash-stats-strip,
  .cfg-actions,
  .sub-card__meta {
    grid-template-columns: 1fr;
  }

  .dash-overview-card {
    min-height: 118px;
  }

  .dash-stat__num--date {
    white-space: normal;
  }

  .cfg-card,
  .profile-card,
  .sub-card,
  .sub-plan-card {
    padding: 1rem;
  }
}


/* ══════════════════════════════════════════════════════
   v82 — targeted polish pass
   ══════════════════════════════════════════════════════ */

.dash-stat__num--date {
  font-size: clamp(16px, 1.55vw, 24px);
  letter-spacing: -.04em;
  white-space: nowrap;
}

.dash-panel--actions-spaced .dash-actions-grid {
  margin-top: 1.1rem;
}

.dash-panel--actions-spaced .dash-panel__title {
  margin-top: .6rem;
}

.cfg-actions > :only-child {
  grid-column: 1 / -1;
}

.profile-hero-stage {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  min-height: 100%;
  padding: 1.4rem;
}

.profile-hero-stage__badge-row {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.profile-hero-stage__name {
  font-family: var(--f-tech);
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--text);
  overflow-wrap: anywhere;
}

.profile-hero-stage__copy {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.profile-hero-stage__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.profile-hero-stage__footer {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding-top: .95rem;
  border-top: 1px solid var(--line);
}

.profile-hero-stage__footer-label {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.profile-hero-stage__footer strong {
  font-family: var(--f-tech);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1;
  color: var(--text);
}

.profile-card--key {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.profile-card--key .dash-panel-label {
  margin-bottom: 1rem;
}

.profile-card--key .profile-key-display {
  margin-bottom: .75rem;
}

.profile-card--links {
  min-height: 100%;
}

.profile-card--links .profile-quick-links {
  margin-top: 1.15rem;
}

.profile-card--changes {
  min-height: 100%;
}

.profile-grid--single > .profile-card {
  grid-column: 1 / -1;
}

.dash-session__badge[data-i18n="dash.session.badge"]::before {
  flex: 0 0 5px;
}

@media (max-width: 767px) {
  .dash-stat__num--date {
    white-space: normal;
  }

  .profile-hero-stage {
    padding: 1rem;
  }
}
