﻿/* DMreach Account â€” full-page dashboard */
:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-elev: #0a0a0a;
  --bg-panel: #0e0e0e;
  --bg-soft: #141414;
  --text: #f4f4f5;
  --text-2: #a1a1aa;
  --text-3: #71717a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #fafafa;
  --accent-ink: #09090b;
  --good: #4ade80;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --display: "Outfit", "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sidebar-w: 260px;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.account-page {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

.account-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 45% at 10% -5%, rgba(255, 255, 255, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 40% at 95% 15%, rgba(255, 255, 255, 0.035), transparent 50%),
    linear-gradient(165deg, #090909 0%, #050505 42%, #030303 100%);
}

.account-atmosphere__grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}

.account-atmosphere__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.account-atmosphere__glow--a {
  width: 42vw;
  height: 42vw;
  top: -12%;
  left: -8%;
  background: rgba(255, 255, 255, 0.04);
  animation: glow-drift 18s var(--ease) infinite alternate;
}

.account-atmosphere__glow--b {
  width: 36vw;
  height: 36vw;
  right: -10%;
  bottom: 5%;
  background: rgba(255, 255, 255, 0.03);
  animation: glow-drift 22s var(--ease) infinite alternate-reverse;
}

@keyframes glow-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(3%, 4%) scale(1.08); }
}

/* Boot */
.account-boot {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  text-align: center;
  color: var(--text-2);
  animation: fade-in 0.4s var(--ease) both;
}

.account-boot__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.03em;
}

.account-boot__mark img {
  border-radius: 9px;
}

.account-boot__bar {
  width: 120px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.account-boot__bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: #fff;
  animation: boot-scan 1.1s ease-in-out infinite;
}

@keyframes boot-scan {
  0% { left: -40%; }
  100% { left: 100%; }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Auth shell */
.auth-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  animation: fade-in 0.5s var(--ease) both;
}

.auth-shell__side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.auth-brand img {
  border-radius: 9px;
}

.auth-shell__copy h1 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-weight: 600;
}

.auth-shell__copy > p {
  margin: 0 0 1.75rem;
  max-width: 30rem;
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.55;
}

.auth-shell__points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
  max-width: 30rem;
}

.auth-shell__points li {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1.05rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.auth-shell__points strong {
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.auth-shell__points span {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.45;
}

.auth-shell__back {
  display: none;
}

.auth-shell__panel {
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.auth-card {
  width: min(420px, 100%);
  padding: 1.6rem 1.5rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(12, 12, 12, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.account-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.account-tab {
  flex: 1;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-3);
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.account-tab.is-active {
  color: var(--accent-ink);
  background: var(--accent);
}

.account-form {
  display: grid;
  gap: 0.95rem;
}

.account-form label {
  display: grid;
  gap: 0.35rem;
}

.account-form label span {
  font-size: 0.8rem;
  color: var(--text-2);
  font-weight: 500;
}

.account-form input {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.account-form input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.045);
}

.account-form input[readonly] {
  opacity: 0.72;
  cursor: default;
}

.account-form__note {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-3);
  line-height: 1.45;
}

.account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.account-btn:active {
  transform: scale(0.98);
}

.account-btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.account-btn--primary:hover {
  background: #fff;
}

.account-btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text-2);
}

.account-btn--ghost:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.account-btn--block {
  width: 100%;
}

.account-btn--lg {
  padding: 0.95rem 1.45rem;
  font-size: 1rem;
}

.account-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.account-msg {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.account-msg--error {
  color: var(--danger);
}

.account-msg--ok {
  color: var(--good);
}

.account-msg--hint {
  color: var(--text-2);
}

/* Dashboard shell â€” fills viewport */
.dash {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  animation: fade-in 0.45s var(--ease) both;
}

.dash-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.35rem 1.1rem 1.25rem;
  border-right: 1px solid var(--line);
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(20px);
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.45rem;
  color: inherit;
  text-decoration: none;
}

.dash-brand img {
  border-radius: 9px;
  flex-shrink: 0;
}

.dash-brand strong {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.dash-brand span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 0.1rem;
}

.dash-nav {
  display: grid;
  gap: 0.55rem;
  flex: 1;
  align-content: start;
}

.dash-nav__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  appearance: none;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: var(--text-3);
  padding: 0.48rem 0.7rem;
  border-radius: 8px;
  font: inherit;
  font-weight: 500;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dash-nav__item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.dash-nav__item.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border-left-color: #fff;
  font-weight: 600;
}

.dash-nav__icon {
  display: grid;
  place-items: center;
  width: 1.15rem;
  opacity: 0.75;
  flex-shrink: 0;
}

.dash-nav__item.is-active .dash-nav__icon {
  opacity: 1;
}

.dash-sidebar__foot {
  position: relative;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.dash-profile {
  position: relative;
}

.dash-profile__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.4rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: background 0.15s ease;
}

.dash-profile__btn:hover,
.dash-profile.is-open .dash-profile__btn {
  background: rgba(255, 255, 255, 0.04);
}

.dash-user__avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #2a2a2a, #111);
  border: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.dash-profile__text {
  min-width: 0;
  flex: 1;
}

.dash-profile__text strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-profile__text span {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.7rem;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-profile__chev {
  color: var(--text-3);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.dash-profile.is-open .dash-profile__chev {
  transform: rotate(180deg);
}

.dash-profile__menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 0.45rem);
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(14, 14, 14, 0.98);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  z-index: 20;
  animation: profile-up 0.18s var(--ease) both;
}

@keyframes profile-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.dash-profile__item {
  display: block;
  width: 100%;
  appearance: none;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 550;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.dash-profile__item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.dash-profile__item--danger:hover {
  color: var(--danger);
  background: rgba(248, 113, 113, 0.08);
}

.dash-settings__head {
  margin-bottom: 1.15rem;
}

.dash-settings__head h2 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.dash-settings__head p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.92rem;
}

.dash-settings__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  align-items: start;
}

.dash-card--span {
  grid-column: 1 / -1;
}

.dash-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.dash-card--form {
  max-width: none;
}

.account-form--password {
  max-width: 420px;
}

.dash-settings__actions {
  display: flex;
  justify-content: flex-start;
}

.dash-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 28%);
}

.dash-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1.25rem, 3vw, 2.5rem) 0.75rem;
}

.dash-eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  font-weight: 600;
}

.dash-topbar h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.035em;
  font-weight: 600;
  line-height: 1.1;
}

.dash-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dash-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.25);
  background: rgba(74, 222, 128, 0.08);
  color: var(--good);
  font-size: 0.82rem;
  font-weight: 600;
}

.dash-live__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
  animation: pulse-dot 1.6s ease-out infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.dash-banner {
  margin: 0 clamp(1.25rem, 3vw, 2.5rem);
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.25);
  background: rgba(248, 113, 113, 0.08);
}

.dash-content {
  flex: 1;
  padding: 1rem clamp(1.25rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
}


.dash-panel {
  animation: panel-in 0.4s var(--ease) both;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.dash-stats {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

/* New overview layout (desktop + mobile) */
.dash-overview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dash-metric {
  padding: 1.45rem 1.5rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
}

.dash-metric__label {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-3);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dash-metric__value {
  margin: 0.55rem 0 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.dash-metric__hint {
  margin: 0.55rem 0 0;
  color: var(--text-3);
  font-size: 0.82rem;
}

.dash-status-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.dash-status-cell {
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dash-status-cell__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.dash-status-cell__label {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-3);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.dash-status-cell__value {
  margin: 0.55rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.dash-status-cell__value--sm {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.dash-activity {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.dash-activity h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dash-overview .dash-card--cta {
  margin-top: 0;
}

.dash-stat {
  padding: 1.25rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, transform 0.25s var(--ease);
}

.dash-stat:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.dash-stat--hero {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  min-height: 160px;
}

.dash-stat__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.dash-stat__label {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-3);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.dash-stat__value {
  margin: 0.55rem 0 0;
  font-family: var(--display);
  font-size: clamp(2.1rem, 3.5vw, 2.85rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.dash-stat__value--sm {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-top: 0.7rem;
}

.dash-stat__hint {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--text-3);
}

.dash-status {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #52525b;
  flex-shrink: 0;
}

.dash-status[data-state="ok"] {
  background: var(--good);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
}

.dash-status[data-state="warn"] {
  background: var(--warn);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

.dash-status[data-state="bad"] {
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.dash-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.9rem;
}

.dash-card {
  padding: 1.4rem 1.45rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.dash-card h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.dash-card__lead {
  margin: -0.35rem 0 1.25rem;
  color: var(--text-2);
  font-size: 0.92rem;
}

.dash-card--cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
}

.dash-card--cta h2 {
  margin-bottom: 0.45rem;
}

.dash-card--cta p:not(.dash-eyebrow) {
  margin: 0 0 1.25rem;
  color: var(--text-2);
  line-height: 1.5;
}

.dash-dl {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.dash-dl > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.dash-dl > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.dash-dl dt {
  margin: 0;
  color: var(--text-3);
  font-size: 0.84rem;
}

.dash-dl dd {
  margin: 0;
  font-weight: 560;
  font-size: 0.94rem;
}

.account-meta {
  margin: 1rem 0 0;
  color: var(--text-3);
  font-size: 0.86rem;
}

.dash-tool {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 0.15rem 0 0.5rem;
}

.dash-tool__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  padding: 1.5rem 1.55rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(255, 255, 255, 0.06), transparent 55%);
  overflow: hidden;
}

.dash-tool__hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.dash-tool__hero-copy h2 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  letter-spacing: -0.035em;
  font-weight: 600;
  line-height: 1.1;
}

.dash-tool__hero-copy > p:not(.dash-eyebrow) {
  margin: 0 0 1.15rem;
  max-width: 32rem;
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.55;
}

.dash-tool__chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.dash-tool__chip {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}

.dash-tool__chip strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.15rem;
}

.dash-tool__chip span:not(.dash-status) {
  display: block;
  font-size: 0.88rem;
  font-weight: 560;
  color: var(--text);
  line-height: 1.25;
}

.dash-tool__hero-copy .account-btn--lg {
  align-self: flex-start;
}

.dash-tool__hero-visual {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.dash-tool__panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    #0a0a0a;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
}

.dash-tool__panel-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.dash-tool__panel-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
  flex-shrink: 0;
}

.dash-tool__panel-top strong {
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dash-tool__checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.dash-tool__checklist li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-2);
}

.dash-tool__checklist li[data-done="1"] {
  color: var(--text);
}

.dash-tool__checklist li span {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
  position: relative;
}

.dash-tool__checklist li[data-done="1"] span {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.12);
}

.dash-tool__checklist li[data-done="1"] span::after {
  content: "";
  position: absolute;
  inset: 4px 3px 5px 4px;
  border: solid var(--good);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}

.dash-tool__panel-cta {
  margin-top: auto;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.dash-tool__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.dash-tool__step {
  padding: 1.15rem 1.15rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  min-height: 0;
}

.dash-tool__step-n {
  display: block;
  margin-bottom: 0.65rem;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

.dash-tool__step h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dash-tool__step p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.45;
}


.dash-m-top,
.dash-tabbar {
  display: none;
}

/* Mobile */
@media (max-width: 900px) {
  .dash-settings__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .account-atmosphere__glow,
  .account-atmosphere__glow--a,
  .account-atmosphere__glow--b,
  .dash-live__dot,
  .dash-panel,
  .account-boot__bar::after {
    animation: none !important;
  }

  .dash-tool__panel-live {
    box-shadow: none;
  }

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

  .auth-shell__side {
    display: none;
  }

  .auth-shell__panel {
    min-height: 100dvh;
    padding: 1.25rem 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    align-content: center;
  }

  .auth-card {
    width: min(420px, 100%);
  }

  .dash {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .dash-sidebar {
    display: none;
  }

  .dash-m-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    height: 54px;
    padding: 0 1rem;
    border-bottom: 1px solid transparent;
    background: rgba(5, 5, 5, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 30;
  }

  .dash-m-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text);
    text-decoration: none;
    font-family: var(--display);
    font-weight: 650;
    font-size: 1.02rem;
    letter-spacing: -0.03em;
  }

  .dash-m-brand img {
    border-radius: 7px;
  }

  .dash-m-top__end {
    display: flex;
    align-items: center;
    gap: 0.55rem;
  }

  .dash-m-avatar { display: none !important; }

  .dash-m-more {
    position: relative;
  }

  .dash-m-more__btn {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    border: 0;
    background: transparent;
    color: var(--text);
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
  }

  .dash-m-more__btn img {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: block;
  }

  .dash-m-more.is-open .dash-m-more__btn {
    background: rgba(255, 255, 255, 0.06);
  }

  .dash-m-more__menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    width: min(220px, calc(100vw - 1.5rem));
    padding: 0.4rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 10, 10, 0.96);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    z-index: 40;
  }

  .dash-m-more__item {
    display: block;
    width: 100%;
    appearance: none;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-2);
    padding: 0.75rem 0.85rem;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 550;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }

  .dash-m-more__item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
  }

  .dash-m-more__item--danger:hover {
    color: var(--danger);
    background: rgba(248, 113, 113, 0.08);
  }

  .dash-main {
    min-height: 0;
    height: auto;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background:
      radial-gradient(ellipse 90% 50% at 50% -10%, rgba(255, 255, 255, 0.05), transparent 55%);
  }

  .dash-topbar {
    padding: 1.15rem 1.15rem 0.35rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .dash-eyebrow {
    display: none;
  }

  .dash-topbar h1 {
    font-family: var(--display);
    font-size: clamp(1.45rem, 6.5vw, 1.85rem);
    letter-spacing: -0.04em;
    font-weight: 650;
    line-height: 1.15;
    max-width: 16ch;
  }

  .dash-topbar__actions .account-btn--primary {
    display: none;
  }

  .dash-content {
    padding: 0.35rem 1.15rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

  /* —— Premium overview —— */
  .dash-overview {
    gap: 0.95rem;
  }

  .dash-metric {
    padding: 1.35rem 1.2rem 1.25rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
      linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 48%, rgba(0, 0, 0, 0.2) 100%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }

  .dash-metric__label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .dash-metric__value {
    margin-top: 0.7rem;
    font-size: clamp(2.6rem, 14vw, 3.4rem);
  }

  .dash-metric__hint,
  .dash-overview .dash-stat__hint {
    display: none;
  }

  .dash-status-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0.15rem 0.15rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
    overflow: hidden;
  }

  .dash-status-cell {
    min-height: 0;
    padding: 0.95rem 1.05rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .dash-status-cell:last-child {
    border-bottom: 0;
  }

  .dash-status-cell__value {
    margin-top: 0.35rem;
    font-size: 1.15rem;
  }

  .dash-status-cell__value--sm {
    font-size: 0.98rem;
    font-weight: 600;
  }

  .dash-activity {
    padding: 1.1rem 1.1rem 0.85rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
  }

  .dash-activity h2 {
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 0.75rem;
  }

  .dash-activity .account-meta {
    display: none;
  }

  .dash-overview .dash-card--cta {
    display: none;
  }

  .dash-dl {
    gap: 0;
  }

  .dash-dl > div {
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .dash-dl > div:last-child {
    border-bottom: 0;
    padding-bottom: 0.15rem;
  }

  .dash-dl dt {
    font-size: 0.82rem;
  }

  .dash-dl dd {
    font-size: 0.88rem;
    text-align: right;
  }

  /* —— Tool tab —— */
  .dash-tool {
    gap: 0.85rem;
    padding: 0.15rem 0 0.5rem;
  }

  .dash-tool__hero {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.2rem 1.1rem 1.25rem;
    border-radius: 18px;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  }

  .dash-tool__hero-visual {
    order: -1;
  }

  .dash-tool__panel {
    padding: 1.05rem 1.05rem 1.1rem;
    border-radius: 14px;
  }

  .dash-tool__hero-copy h2 {
    font-size: 1.55rem;
    letter-spacing: -0.035em;
  }

  .dash-tool__hero-copy > p:not(.dash-eyebrow) {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.95rem;
  }

  .dash-tool__chips {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin-bottom: 1.05rem;
  }

  .dash-tool__chip {
    padding: 0.65rem 0.7rem;
    border-radius: 12px;
  }

  .dash-tool__chip span:not(.dash-status) {
    font-size: 0.8rem;
  }

  .dash-tool__hero-copy .account-btn--lg {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    border-radius: 12px;
    font-weight: 650;
  }

  .dash-tool__steps {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .dash-tool__step {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.8rem;
    row-gap: 0.12rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    align-items: start;
  }

  .dash-tool__step-n {
    grid-row: 1 / span 2;
    margin: 0;
    align-self: center;
    font-size: 0.82rem;
    opacity: 0.7;
  }

  .dash-tool__step h3 {
    font-size: 0.98rem;
    margin: 0;
  }

  .dash-tool__step p {
    font-size: 0.82rem;
  }

  /* —— Settings —— */
  .dash-settings__head {
    margin-bottom: 0.85rem;
  }

  .dash-settings__head h2 {
    font-size: 1.35rem;
    letter-spacing: -0.03em;
  }

  .dash-settings__head p {
    font-size: 0.88rem;
  }

  .dash-settings__grid {
    gap: 0.75rem;
  }

  .dash-card--form {
    padding: 1.15rem 1.1rem 1.2rem;
    border-radius: 16px;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
  }

  .dash-card--form h3 {
    font-size: 0.98rem;
    margin-bottom: 0.35rem;
  }

  .dash-card__lead {
    font-size: 0.82rem;
    margin-bottom: 0.95rem;
  }

  .account-form label span {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .account-form input {
    min-height: 46px;
    border-radius: 12px;
    font-size: 0.95rem;
  }

  .dash-settings__actions .account-btn {
    width: 100%;
    min-height: 46px;
    justify-content: center;
  }

  /* —— Tab bar —— */
  .dash-tabbar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.2rem;
    margin: 0 0.65rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
    padding: 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(12, 12, 12, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    z-index: 25;
  }

  .dash-tabbar__item {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text-3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.22rem;
    min-height: 54px;
    padding: 0.4rem 0.25rem;
    border-radius: 14px;
    font: inherit;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
  }

  .dash-tabbar__item svg {
    opacity: 0.65;
  }

  .dash-tabbar__item.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
  }

  .dash-tabbar__item.is-active svg {
    opacity: 1;
  }
}

@media (min-width: 981px) {
  .dash-m-top,
  .dash-tabbar {
    display: none !important;
  }
}

@media (max-width: 560px) {
  .dash-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-atmosphere__glow,
  .dash-live__dot,
  .account-boot__bar::after {
    animation: none !important;
  }

  .dash,
  .auth-shell,
  .dash-panel,
  .account-boot {
    animation: none !important;
  }

  .dash-stat:hover {
    transform: none;
  }
}

