/* ───────────────────────────────────────────────────────────
   Page shell (scoped so other pages keep their own styles)
   ─────────────────────────────────────────────────────────── */

body.dashboard-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Poppins', system-ui, sans-serif;

  /* Local tokens (don’t touch profile.css) */
  --dash-card-bg: rgba(15, 23, 42, 0.92);
  --dash-card-brd: rgba(148, 163, 184, 0.55);
  --dash-nav-bg: rgba(15, 23, 42, 0.9);
  --dash-nav-brd: rgba(148, 163, 184, 0.65);

  /* Atom / brand accent tokens – reuse the index.css palette */
  --dash-accent-gold: #facc15;
  --dash-accent-amber-soft: #fef3c7;
  --dash-accent-orange: #f97316;
  --dash-accent-pink: #ec4899;
  --dash-accent-violet: #8b5cf6;
  --dash-accent-cyan: #0ea5e9;
  --dash-accent-teal: #14b8a6;
}


/* ───────────────────────────────────────────────────────────
   Glassy nav – profile‑style, but scoped to dashboard
   ─────────────────────────────────────────────────────────── */

.dashboard-page .dash-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  max-width: 1120px;
  margin: 16px auto 8px;

  background:
    radial-gradient(circle at 0 0, rgba(148, 163, 184, 0.28), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.2), transparent 55%),
    var(--dash-nav-bg);
  border-radius: 999px;
  border: 1px solid var(--dash-nav-brd);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);

  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
}

.dashboard-page .dash-nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dashboard-page .dash-logo {
  font-size: 1.3rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.55);
}

.dashboard-page .dash-nav-title {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #e5edff;
  opacity: 0.9;
  white-space: nowrap;
}

.dashboard-page .dash-nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-page .dash-nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e5edff;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.18s ease;
}

.dashboard-page .dash-nav-links a:hover {
  background: rgba(15, 23, 42, 0.45);
}

.dashboard-page .dash-nav-links a.active {
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #111827;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.75);
}

/* Small-screen nav tweaks */
@media (max-width: 640px) {
  .dashboard-page .dash-nav {
    padding: 10px 16px;
    margin-top: 10px;
    border-radius: 18px;
  }

  .dashboard-page .dash-nav-title {
    display: none;
  }
}




/* ───────────────────────────────────────────────────────────
   Main area – atom only, truly no card
   ─────────────────────────────────────────────────────────── */

.dash-main {
  flex: 1; /* fills remaining height under nav */
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;

  /* Ensure nothing from main.css “cardifies” this area */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;

  display: flex;
  align-items: center;
  justify-content: center;
}


/* Override the global h1/h2 centering from main.css */
body.dashboard-page h1,
body.dashboard-page h2 {
  text-align: left;
}


/* Hero header */
.dash-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 12px; /* was 24px */
}

.dash-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 2.1rem);
  color: #e5edff;
}

.dash-tagline {
  margin: 0;
  max-width: 720px;
  color: #cbd5f5;
  font-size: 0.96rem;
  line-height: 1.5;
}


/* ───────────────────────────────────────────────────────────
   Atom-style “orbital” dashboard navigation
   ─────────────────────────────────────────────────────────── */

.dash-atom {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none; /* let the orbit decide the size */
}

/* Big glowing disc that picks up the app background palette */
.dash-atom-orbits {
  position: relative;
  /* Big atom: up to 80% of the smaller viewport dimension */
  width: min(80vmin, 90vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* electrons re-enable pointer events */

  background:
    radial-gradient(circle at 0 0, rgba(148, 163, 184, 0.30), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.22), transparent 60%);
  box-shadow:
    0 32px 120px rgba(15, 23, 42, 0.95),
    0 0 80px rgba(15, 23, 42, 0.9);
}

/* Electron shells (rings) */
.dash-atom-orbits::before,
.dash-atom-orbits::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.85);
  background:
    radial-gradient(circle at 30% 30%, rgba(248, 250, 252, 0.18), transparent 65%);
  box-shadow:
    0 0 28px rgba(15, 23, 42, 0.9),
    0 0 32px rgba(56, 189, 248, 0.65);
}

.dash-atom-orbits::before {
  inset: 6%;
  opacity: 0.85;
}

.dash-atom-orbits::after {
  inset: 22%;
  opacity: 0.7;
}

/* Nucleus in the centre – warm core with brand halo */
.dash-atom-nucleus {
  position: relative;
  z-index: 2;
  /* slightly smaller nucleus */
  width: 22vmin;
  height: 22vmin;
  border-radius: 50%;
  background:
    radial-gradient(circle at 22% 18%,
      var(--dash-accent-amber-soft),
      var(--dash-accent-gold) 32%,
      var(--dash-accent-orange) 62%,
      transparent 78%
    ),
    radial-gradient(circle at 80% 90%,
      rgba(236, 72, 153, 0.85),
      rgba(59, 130, 246, 0.05)
    ),
    radial-gradient(circle at 50% 50%,
      rgba(15, 23, 42, 0.15),
      rgba(15, 23, 42, 1)
    );
  border: 1px solid rgba(248, 250, 252, 0.75);
  box-shadow:
    0 0 40px rgba(250, 204, 21, 0.95),
    0 0 90px rgba(236, 72, 153, 0.9),
    0 0 160px rgba(59, 130, 246, 0.8),
    0 26px 80px rgba(15, 23, 42, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
}

/* Force nucleus to exclusively say “The Professor of Law” */
.dash-atom-nucleus-title {
  position: relative;
  /* hide original text but keep element in the layout */
  font-size: 0;
}

.dash-atom-nucleus-title::before {
  content: 'The Professor of Law';
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0f172a;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85),
    0 12px 30px rgba(15, 23, 42, 0.8);
}

/* Hide the subtitle so the nucleus “exclusively” says the title */
.dash-atom-nucleus-sub {
  display: none;
}


/* Electrons (outer button, animated on an orbit) */
.atom-electron {
  --radius: 140px; /* overridden per electron */
  position: absolute;
  top: 50%;
  left: 50%;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  outline: none;
  z-index: 2;
}

/* Actual “bubble” that scales on hover */
.atom-electron-inner {
  /* slightly larger electrons */
  width: 11.5vmin;
  height: 11.5vmin;
  min-width: 72px;
  min-height: 72px;
  max-width: 130px;
  max-height: 130px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
  background:
    radial-gradient(circle at 30% 20%,
      rgba(14, 165, 233, 0.52),
      rgba(15, 23, 42, 0.98)
    );
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    0 10px 26px rgba(15, 23, 42, 0.95),
    0 0 28px rgba(14, 165, 233, 0.95);
  color: #e5edff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: scale(1);
  transform-origin: center;
  transition:
    transform 0.2s ease-out,
    box-shadow 0.2s ease-out,
    background 0.2s ease-out,
    filter 0.2s ease-out;
}

.atom-electron-label {
  pointer-events: none;
}

.atom-electron-preview {
  position: absolute;
  right: 100%;
  top: 50%;
  width: min(260px, 40vw);
  padding: 12px 14px;
  border-radius: 12px;
  text-align: left;
  font-size: 0.72rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #e2e8f0;
  background:
    linear-gradient(120deg,
      rgba(15, 23, 42, 0.95),
      rgba(30, 41, 59, 0.75) 45%,
      rgba(59, 130, 246, 0.35) 75%,
      rgba(15, 23, 42, 0.95)
    );
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow:
    0 16px 40px rgba(15, 23, 42, 0.8),
    inset 0 0 0 1px rgba(59, 130, 246, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translate(-8px, -50%);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  pointer-events: none;
}

.atom-electron-preview::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 50%;
  width: 16px;
  height: 2px;
  background: rgba(226, 232, 240, 0.65);
  transform: translateY(-50%);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}

/* Electron colour accents – pulled from index.css palette */
.atom-electron--practice .atom-electron-inner {
  background:
    radial-gradient(circle at 30% 20%,
      rgba(14, 165, 233, 0.65),
      rgba(8, 47, 73, 0.98)
    );
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.98),
    0 0 40px rgba(14, 165, 233, 0.95);
}

.atom-electron--multiplayer .atom-electron-inner {
  background:
    radial-gradient(circle at 30% 20%,
      var(--dash-accent-gold),
      var(--dash-accent-orange) 55%,
      rgba(15, 23, 42, 0.98)
    );
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.98),
    0 0 40px rgba(250, 204, 21, 0.9);
}

.atom-electron--stats .atom-electron-inner {
  background:
    radial-gradient(circle at 30% 20%,
      var(--dash-accent-teal),
      rgba(15, 23, 42, 0.98)
    );
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.98),
    0 0 40px rgba(45, 212, 191, 0.9);
}

/* Orbit paths – different radii + speeds (scaled with viewport) */
.atom-electron--practice {
  --radius: 21vmin;
  animation: atom-orbit-slow 26s linear infinite;
}

.atom-electron--multiplayer {
  --radius: 28vmin;
  animation: atom-orbit-medium 18s linear infinite reverse;
}

.atom-electron--stats {
  --radius: 35vmin;
  animation: atom-orbit-slow 32s linear infinite reverse;
}

/* Hover / focus: magnify and crank up the glow */
.atom-electron:hover .atom-electron-inner,
.atom-electron:focus-visible .atom-electron-inner {
  transform: scale(1.9);
  box-shadow:
    0 20px 70px rgba(15, 23, 42, 1),
    0 0 50px rgba(14, 165, 233, 0.9),
    0 0 80px rgba(236, 72, 153, 0.8);
  filter: saturate(1.2) brightness(1.05);
}
.atom-electron:hover .atom-electron-preview,
.atom-electron:focus-visible .atom-electron-preview {
  opacity: 1;
  visibility: visible;
  transform: translate(-20px, -50%);
}
.atom-electron:hover,
.atom-electron:focus-visible {
  animation-play-state: paused;
}

/* Provide a visible focus style for keyboard users */
.atom-electron:focus-visible .atom-electron-inner {
  box-shadow:
    0 20px 70px rgba(15, 23, 42, 1),
    0 0 50px rgba(14, 165, 233, 0.9),
    0 0 80px rgba(236, 72, 153, 0.8);
}

/* Orbital motion – electrons rotate around the centre
   while labels stay upright (counter‑rotation trick) */
@keyframes atom-orbit-medium {
  from {
    transform:
      translate(-50%, -50%)
      rotate(0deg)
      translateX(var(--radius))
      rotate(0deg);
  }
  to {
    transform:
      translate(-50%, -50%)
      rotate(360deg)
      translateX(var(--radius))
      rotate(-360deg);
  }
}

@keyframes atom-orbit-slow {
  from {
    transform:
      translate(-50%, -50%)
      rotate(0deg)
      translateX(var(--radius))
      rotate(0deg);
  }
  to {
    transform:
      translate(-50%, -50%)
      rotate(-360deg)
      translateX(var(--radius))
      rotate(360deg);
  }
}





/* ───────────────────────────────────────────────────────────
   Sections & grid
   ─────────────────────────────────────────────────────────── */

.dash-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 10px;
}

.dash-section {
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.dash-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.dash-section h2 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  color: #e5edff;
}

/* ───────────────────────────────────────────────────────────
   Cards (reusing .pill but calming hover)
   ─────────────────────────────────────────────────────────── */

.dash-card.pill {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  align-items: flex-start;
  text-align: left;
  padding: 22px 22px 20px;
  gap: 8px;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
  transform: translateY(0);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

/* Keep the pill frame subtle for dashboard cards */
.dash-card.pill::before {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 18px 40px rgba(15, 23, 42, 0.8);
}

/* Override main.css .pill:hover scale */
.dash-card.pill:hover,
.dash-card.pill:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.9);
}

/* Card colours via CSS custom properties that main.css already honours */
.dash-card-primary {
  --pill-bg: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.dash-card-mode[data-mode="lightning"] {
  --pill-bg: linear-gradient(135deg, #f97316, #ec4899);
}

.dash-card-mode[data-mode="castle"] {
  --pill-bg: linear-gradient(135deg, #38bdf8, #22c55e);
}

/* Titles / labels inside cards */
.dash-card-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.dash-card-title {
  margin: 0 0 4px;
  font-size: 1.1rem;
  color: #f9fafb;
}

.dash-card-body {
  margin: 6px 0 12px;
  font-size: 0.94rem;
  color: #e5edff;
}

/* Lists inside cards */
.dash-list {
  margin: 0 0 10px 0;
  padding-left: 18px;
  font-size: 0.9rem;
  color: #dbeafe;
}

.dash-list li {
  margin-bottom: 4px;
}

/* ───────────────────────────────────────────────────────────
   Multiplayer layout & status (pre-game surface)
   ─────────────────────────────────────────────────────────── */

.dash-modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.dash-login-hint {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #e2e8f0;
  opacity: 0.9;
}

/* Call‑to‑action buttons */
.dash-cta {
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.9);
  color: #e5edff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.55);
}

/* Disabled state */
.dash-cta[disabled] {
  cursor: not-allowed;
  opacity: 0.7;
}

/* Loading / success / error accents */
.dash-cta.is-loading {
  position: relative;
  opacity: 0.9;
}

.dash-cta.is-loading::after {
  content: '…';
  margin-left: 6px;
}

.dash-cta.is-success {
  background: rgba(22, 163, 74, 0.95);
}

.dash-cta.is-error {
  background: rgba(185, 28, 28, 0.95);
}

.dash-match-status {
  margin-top: 6px;
  font-size: 0.8rem;
  color: #e2e8f0;
  opacity: 0.9;
}

.dash-match-status.is-error {
  color: #fecaca;
}

.dash-match-status.is-success {
  color: #bbf7d0;
}

/* Ghost‑style button for "Play With Friends" */
.dash-cta.dash-cta-ghost {
  margin-top: 6px;
  margin-left: 0;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: none;
  color: #e5edff;
  opacity: 0.9;
}

.dash-cta.dash-cta-ghost:hover {
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.75);
}

/* Small inline notes under cards */
.dash-inline-note {
  margin-top: 8px;
  font-size: 0.78rem;
  color: #cbd5f5;
  opacity: 0.9;
}

/* ───────────────────────────────────────────────────────────
   “Under the Hood” card + stats
   ─────────────────────────────────────────────────────────── */

.dash-card-plain {
  background:
    radial-gradient(circle at 0 0, rgba(148, 163, 184, 0.18), transparent 60%),
    rgba(15, 23, 42, 0.96);
  border-radius: 22px;
  padding: 20px 20px 18px;
  color: #e5edff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.dash-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.dash-stat {
  min-width: 160px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.dash-stat-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  opacity: 0.85;
  color: #cbd5f5;
}

.dash-stat-value {
  display: block;
  margin-top: 4px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #f9fafb;
}

/* ───────────────────────────────────────────────────────────
   Responsive tweaks (dashboard layout)
   ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .dash-main {
    padding: 24px 16px 32px;
    margin-bottom: 0;
  }

  .dash-hero {
    margin-top: 0;
  }

  .dash-card.pill {
    padding: 20px 18px 18px;
  }

  /* NEW: simpler stacked atom layout on small screens */
  .dash-atom {
    margin: 10px 0 18px;
  }

  .dash-atom-orbits {
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
    flex-direction: column;
    gap: 10px;
  }

  .dash-atom-orbits::before,
  .dash-atom-orbits::after {
    display: none;
  }

  .dash-atom-nucleus {
    width: 100%;
    border-radius: 22px;
    height: auto;
    padding: 12px 14px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.9);
  }

  .atom-electron {
    position: static;
    animation: none;
    width: 100%;
  }

  .atom-electron-inner {
    width: 100%;
    height: auto;
    transform: none;
  }

  .atom-electron:hover .atom-electron-inner,
  .atom-electron:focus-visible .atom-electron-inner {
    transform: none;
  }
    .atom-electron-preview {
    display: none;
  }
}

/* ─────────────────────────────────────────────────────────────
   Logged-out auth modal (STATB-style, scoped to dashboard)
   ───────────────────────────────────────────────────────────── */

html.sb-modal-open,
body.dashboard-page.sb-modal-open {
  overflow: hidden;
}

body.dashboard-page .sb-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: grid;
  place-items: center;
  padding: 18px;
}

body.dashboard-page .sb-auth-modal[hidden] {
  display: none !important;
}

body.dashboard-page .sb-auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(10px);
}

body.dashboard-page .sb-auth-dialog {
  position: relative;
  width: min(520px, 92vw);
  border-radius: calc(var(--sb-radius, 18px) + 2px);
  background: var(--sb-surface-2, rgba(15, 23, 42, 0.92));
  border: 1px solid var(--sb-border, rgba(148, 163, 184, 0.55));
  box-shadow: var(--sb-shadow, 0 18px 60px rgba(2, 6, 23, 0.65));
  padding: 20px 20px 18px;
  transform: translateY(10px);
  opacity: 0;
  animation: sbModalIn 220ms ease forwards;
}

@keyframes sbModalIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.dashboard-page .sb-auth-dialog {
    animation: none;
    opacity: 1;
    transform: none;
  }
  body.dashboard-page .sb-auth-backdrop {
    backdrop-filter: none;
  }
}

body.dashboard-page .sb-auth-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--sb-border, rgba(148, 163, 184, 0.55));
  background: rgba(255, 255, 255, 0.10);
  color: var(--sb-text, #e5edff);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

body.dashboard-page .sb-auth-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(96, 165, 250, 0.16));
  border: 1px solid var(--sb-border, rgba(148, 163, 184, 0.55));
  margin-bottom: 10px;
  font-size: 22px;
}

body.dashboard-page .sb-auth-title {
  margin: 0 0 6px;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  color: var(--sb-text, #e5edff);
}

body.dashboard-page .sb-auth-desc {
  margin: 0 0 14px;
  color: var(--sb-muted, rgba(226, 232, 240, 0.82));
  line-height: 1.45;
}

/* Minimal STATB button styling for the modal (scoped) */
body.dashboard-page .sb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  will-change: transform;
}

body.dashboard-page .sb-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--sb-shadow, 0 18px 60px rgba(2, 6, 23, 0.65));
}

body.dashboard-page .sb-auth-primary {
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(96, 165, 250, 0.9));
  color: rgba(15, 23, 42, 0.98);
}

body.dashboard-page .sb-auth-mini {
  margin: 12px 0 0;
  color: var(--sb-muted, rgba(226, 232, 240, 0.82));
  font-weight: 700;
  font-size: 0.95rem;
}

body.dashboard-page .sb-auth-link {
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: inherit;
}
