/* ============================================================
   MMS Accounts — styles/main.css
   Theme: Cobalt / Neon Cyan / Crimson on near-black
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Rajdhani:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --cobalt:        #0047ab;
  --cobalt-light:  #4169e1;
  --cobalt-deep:   #002d6e;
  --cobalt-faint:  rgba(65,105,225,0.08);

  --cyan-neon:     #00d4ff;
  --cyan-faint:    rgba(0,212,255,0.10);

  --crimson:       #dc143c;
  --crimson-faint: rgba(220,20,60,0.08);
  --crimson-glow:  rgba(220,20,60,0.25);

  --bg-base:       #040812;
  --bg-surface:    #070f1f;
  --bg-card:       rgba(7,15,31,0.85);

  --text-primary:  #e8edf8;
  --text-secondary:#8fa0c0;
  --text-muted:    #4a5880;

  --border-subtle: rgba(65,105,225,0.18);
  --border-active: rgba(65,105,225,0.45);
  --border-glow:   rgba(0,212,255,0.4);

  --font-display:  'Orbitron',      monospace;
  --font-body:     'Rajdhani',      sans-serif;
  --font-mono:     'JetBrains Mono',monospace;

  --ease-smooth:   cubic-bezier(0.25,0.46,0.45,0.94);
  --ease-spring:   cubic-bezier(0.34,1.56,0.64,1);

  --glow-cobalt:   0 0 28px rgba(65,105,225,0.35),0 0 56px rgba(65,105,225,0.12);
  --glow-cyan:     0 0 20px rgba(0,212,255,0.4),0 0 48px rgba(0,212,255,0.12);
  --glow-crimson:  0 0 20px var(--crimson-glow),0 0 48px rgba(220,20,60,0.08);
  --card-shadow:   0 4px 24px rgba(0,0,0,0.45),0 1px 0 var(--border-subtle);

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 12px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%,   rgba(0,71,171,0.20) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 90% 100%,  rgba(0,71,171,0.13) 0%, transparent 60%),
    radial-gradient(ellipse 35% 35% at 80% 15%,   rgba(220,20,60,0.04) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.mms-app { position: relative; z-index: 1; min-height: 100vh; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ── Spin animation ─────────────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spin { animation: spin 0.8s linear infinite; }

/* ── Icon sizes ─────────────────────────────────────────────── */
.icon-svg  { width: 18px; height: 18px; display: block; flex-shrink: 0; }
.icon-xs   { width: 12px; height: 12px; }
.icon-sm   { width: 15px; height: 15px; }
.icon-lg   { width: 28px; height: 28px; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.3s var(--ease-smooth);
  white-space: nowrap;
}

.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--cobalt), var(--cobalt-light));
  color: #fff;
  box-shadow: var(--glow-cobalt);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--cobalt-light), var(--cyan-neon));
  color: var(--bg-base);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-active);
}
.btn-ghost:hover:not(:disabled) {
  border-color: var(--cyan-neon);
  color: var(--cyan-neon);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(135deg, #8b0a1e, var(--crimson));
  color: #fff;
  box-shadow: var(--glow-crimson);
}
.btn-danger:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn-sm   { padding: 0.5rem 1rem; font-size: 0.68rem; }
.btn-full { width: 100%; }

/* ── Form elements ──────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }

.form-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus, .form-textarea:focus {
  border-color: var(--cobalt-light);
  box-shadow: 0 0 0 3px rgba(65,105,225,0.12);
}
.form-input--error { border-color: var(--crimson); }
.form-input--icon  { padding-left: 2.5rem; }

.form-error {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--crimson);
}

.input-with-icon { position: relative; }
.input-icon {
  position: absolute;
  left: 0.8rem; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.form-section { margin-bottom: 2rem; }
.form-section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cobalt-light);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

/* ── Status messages ────────────────────────────────────────── */
.status-msg {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  border: 1px solid;
  margin-bottom: 1rem;
}
.status-msg--success {
  background: rgba(0,212,255,0.07);
  border-color: rgba(0,212,255,0.3);
  color: var(--cyan-neon);
}
.status-msg--error {
  background: var(--crimson-faint);
  border-color: rgba(220,20,60,0.3);
  color: #ff6b6b;
}
.status-msg--info {
  background: var(--cobalt-faint);
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  background: var(--cobalt-faint);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.badge--admin {
  background: rgba(65,105,225,0.12);
  border-color: rgba(65,105,225,0.3);
  color: var(--cobalt-light);
}
.badge--success {
  background: rgba(0,212,255,0.08);
  border-color: rgba(0,212,255,0.25);
  color: var(--cyan-neon);
}
.badge--error {
  background: var(--crimson-faint);
  border-color: rgba(220,20,60,0.25);
  color: var(--crimson);
}

/* ── Card ───────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
}

/* ── Avatar ─────────────────────────────────────────────────── */
.avatar-initial {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cobalt), var(--cobalt-light));
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar-initial--lg {
  width: 56px; height: 56px;
  font-size: 1.4rem;
}

/* ── Spinner ────────────────────────────────────────────────── */
.spinner {
  width: 32px; height: 32px;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--cyan-neon);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 4rem;
}

/* ── Link button ────────────────────────────────────────────── */
.link-btn {
  background: none; border: none;
  color: var(--cyan-neon);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
  transition: color 0.2s;
}
.link-btn:hover { color: var(--cobalt-light); }

/* ── Landing nav ────────────────────────────────────────────── */
.landing-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(4,8,18,0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}
.landing-nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.landing-nav-brand {
  display: flex; align-items: baseline; gap: 0.4rem;
}

/* ── Brand text shared ──────────────────────────────────────── */
.brand-mms {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}
.brand-accounts {
  font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan-neon);
}

/* ── Hero section ───────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 8rem 2rem 5rem;
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(65,105,225,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65,105,225,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
}
.orb-cobalt {
  width: 600px; height: 600px;
  top: -15%; left: -10%;
  background: radial-gradient(circle, rgba(0,71,171,0.3), transparent 70%);
}
.orb-crimson {
  width: 280px; height: 280px;
  top: 20%; right: 5%;
  background: radial-gradient(circle, rgba(220,20,60,0.18), transparent 70%);
}

.hero-content {
  max-width: 700px; margin: 0 auto;
  position: relative; z-index: 1;
}

.hero-eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.74rem; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt-light);
  margin-bottom: 1.5rem;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--crimson);
  box-shadow: var(--glow-crimson);
  flex-shrink: 0;
}

.hero-headline {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.headline-primary { display: block; color: var(--text-primary); }
.headline-accent {
  display: block;
  background: linear-gradient(90deg, var(--cobalt-light), var(--cyan-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.hero-cta-row {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.65rem; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--cobalt-faint);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  padding: 0.25rem 0.65rem;
}

/* ── Features section ───────────────────────────────────────── */
.features-section {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, transparent, rgba(0,71,171,0.04), transparent);
}
.features-inner { max-width: 1100px; margin: 0 auto; }

.features-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.features-title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.features-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--cobalt-light), var(--cyan-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.features-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.3s, transform 0.3s var(--ease-smooth), box-shadow 0.3s;
}
.feature-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow), var(--glow-cobalt);
}
.feature-icon-wrap {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cobalt-faint);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--cobalt-light);
  margin-bottom: 1.1rem;
  transition: background 0.3s, color 0.3s;
}
.feature-card:hover .feature-icon-wrap {
  background: rgba(65,105,225,0.15);
  color: var(--cyan-neon);
}
.feature-title {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}
.feature-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Landing footer ─────────────────────────────────────────── */
.landing-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem;
}
.landing-footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.footer-sep    { color: var(--text-muted); }
.footer-studio { color: var(--cobalt-light); font-family: var(--font-mono); font-size: 0.8rem; }
.footer-copy   { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); }

/* ── Auth page ──────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  background:
    radial-gradient(ellipse 70% 60% at 20% 20%, rgba(0,71,171,0.18) 0%, transparent 60%),
    var(--bg-base);
}
.auth-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--card-shadow), var(--glow-cobalt);
}

.auth-brand {
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
  margin-bottom: 2rem;
}
.auth-brand-logo {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--cobalt), var(--cobalt-light));
  border-radius: var(--radius);
  color: #fff;
  box-shadow: var(--glow-cobalt);
}
.auth-brand-text {
  display: flex; flex-direction: column; line-height: 1;
}
.auth-brand-mms {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 900;
  color: var(--text-primary);
}
.auth-brand-accounts {
  font-family: var(--font-mono);
  font-size: 0.58rem; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan-neon);
}

.auth-tab-row {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.75rem;
}
.auth-tab {
  flex: 1;
  background: none; border: none;
  padding: 0.7rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.25s, border-color 0.25s;
}
.auth-tab:hover { color: var(--text-secondary); }
.auth-tab--active {
  color: var(--text-primary);
  border-bottom-color: var(--cyan-neon);
}

.auth-form-wrap { }
.auth-form { display: flex; flex-direction: column; }
.auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.auth-footer-link {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}
.auth-back-home {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.auth-back-home:hover { color: var(--cobalt-light); }

/* ── Dashboard layout ───────────────────────────────────────── */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.dash-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.dash-sidebar-brand {
  display: flex; align-items: baseline; gap: 0.4rem;
  padding: 0 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
.dash-sidebar-user {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.75rem;
}
.sidebar-avatar {
  flex-shrink: 0;
}
.sidebar-user-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 0.25rem;
}
.sidebar-user-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-role-badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt-light);
}

.dash-nav {
  flex: 1;
  padding: 0 0.75rem;
  display: flex; flex-direction: column; gap: 0.25rem;
}

.dash-nav-item {
  display: flex; align-items: center; gap: 0.75rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  background: none;
  border: none; border-radius: var(--radius);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  text-align: left;
}
.dash-nav-item:hover { background: var(--cobalt-faint); color: var(--text-primary); }
.dash-nav-item--active {
  background: rgba(65,105,225,0.12);
  color: var(--text-primary);
  border-left: 2px solid var(--cobalt-light);
}
.dash-nav-item--admin {
  color: var(--cobalt-light);
}
.dash-nav-item--signout {
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.dash-nav-item--signout:hover { color: var(--crimson); background: var(--crimson-faint); }

.dash-sidebar-bottom {
  padding: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 0.75rem;
  display: flex; flex-direction: column; gap: 0.25rem;
}

/* Dashboard main */
.dashboard-main {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
}

.dash-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 2rem;
  flex-shrink: 0;
}
.dash-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.dash-header-title {
  font-size: 1.2rem;
  color: var(--text-primary);
}
.dash-header-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}
.dash-header-status {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status-dot--active {
  background: var(--cyan-neon);
  box-shadow: 0 0 6px var(--cyan-neon);
}

.dashboard-content { flex: 1; padding: 2rem; overflow-y: auto; }
.dashboard-loading  { display: flex; align-items: center; justify-content: center; padding: 5rem; }

/* Overview */
.overview-view { max-width: 680px; display: flex; flex-direction: column; gap: 1.5rem; }

.overview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
}
.overview-card-head { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; }
.overview-identity  { flex: 1; display: flex; flex-direction: column; gap: 0.35rem; }
.overview-name      { font-size: 1.2rem; color: var(--text-primary); }
.overview-email     { font-size: 0.85rem; color: var(--text-secondary); }

.overview-details { display: flex; flex-direction: column; gap: 0.9rem; }
.overview-detail-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.overview-detail-row:last-child { border-bottom: none; }
.overview-detail-label {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
}
.overview-detail-value { font-size: 0.9rem; color: var(--text-secondary); }

.overview-bio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.overview-bio-label {
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.6rem;
}
.overview-bio-text  { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; }
.overview-bio-card--empty {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.6rem; text-align: center;
  color: var(--text-muted);
  border-style: dashed;
}
.overview-bio-card--empty p { font-size: 0.85rem; }

/* Profile form */
.profile-view { max-width: 580px; }
.profile-view-header { margin-bottom: 2rem; }
.profile-view-title  { font-size: 1.2rem; color: var(--text-primary); margin-bottom: 0.4rem; }
.profile-view-sub    { font-size: 0.9rem; color: var(--text-secondary); }
.profile-form .btn   { margin-top: 0.5rem; }

/* ── Admin layout ───────────────────────────────────────────── */
.admin-layout { min-height: 100vh; background: var(--bg-base); }

.admin-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
  position: sticky; top: 0; z-index: 50;
}
.admin-header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.admin-header-brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--cobalt-light);
}
.admin-header-title {
  font-family: var(--font-display);
  font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.06em; color: var(--text-primary);
}
.admin-header-actions { display: flex; gap: 0.5rem; }

.admin-main { max-width: 1200px; margin: 0 auto; padding: 2rem; }
.admin-loading {
  display: flex; align-items: center; justify-content: center;
  padding: 5rem;
}
.admin-error { padding: 2rem; }
.admin-content { display: flex; flex-direction: column; gap: 2rem; }
.admin-page-header { margin-bottom: 0.5rem; }
.admin-page-title  { font-size: 1.6rem; color: var(--text-primary); margin-bottom: 0.35rem; }
.admin-page-sub    { font-size: 0.9rem; color: var(--text-secondary); }

/* Admin stats */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: var(--card-shadow);
}
.admin-stat-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cobalt-faint);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--cobalt-light);
  flex-shrink: 0;
}
.admin-stat-body { display: flex; flex-direction: column; gap: 0.2rem; }
.admin-stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 700;
  background: linear-gradient(90deg, var(--cobalt-light), var(--cyan-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.admin-stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* User table */
.user-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.user-table-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}
.user-table-title {
  font-size: 1rem; color: var(--text-primary);
}
.user-table-search {
  max-width: 280px;
  margin-bottom: 0;
}
.user-table-scroll { overflow-x: auto; }
.user-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 560px;
}
.user-table thead tr { background: var(--bg-surface); }
.user-table th {
  text-align: left;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.user-table-row { border-bottom: 1px solid var(--border-subtle); }
.user-table-row:last-child { border-bottom: none; }
.user-table-row:hover td { background: rgba(65,105,225,0.03); }
.user-table-cell { padding: 0.85rem 1.25rem; color: var(--text-secondary); vertical-align: middle; }
.user-cell-name {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--text-primary); font-weight: 500;
}
.user-cell-avatar { flex-shrink: 0; }
.user-cell-date {
  font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .dash-sidebar {
    display: none;
  }
  .dashboard-layout {
    flex-direction: column;
  }
  .dashboard-content { padding: 1.25rem; }
  .overview-view { max-width: 100%; }
  .profile-view  { max-width: 100%; }
  .admin-main    { padding: 1.25rem; }
  .hero-headline { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-cta-row  { flex-direction: column; }
  .hero-cta-row .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
