/* ============================================================
   LUMSAS — Premium Aesthetic System
   Apple-tier minimalism, smooth micro-interactions, pure B&W elegance.
   ============================================================ */

/* ── Typography Imports ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

/* ============================================================
   :ROOT — Design Tokens
   ============================================================ */
:root {
  /* Ultra-Premium Dark Theme / B&W Focus */
  --bg:           #0a0a0c;
  --bg-alt:       #111114;
  --bg-card:      #18181c;
  --bg-hover:     #252528;
  --bg-dark:      #000000;
  
  --text-primary:   #fcfcfd;
  --text-secondary: #a1a1aa;
  --text-tertiary:  #71717a;
  
  --accent:         #ffffff;
  --accent-hover:   #e4e4e7;
  --accent-pressed: #d4d4d8;
  
  --success:        #29bc9b;
  --warning:        #f59e0b;
  --danger:         #ef4444;

  --border:         rgba(255, 255, 255, 0.12);
  --border-subtle:  rgba(255, 255, 255, 0.05);
  --border-hover:   rgba(255, 255, 255, 0.2);

  /* Spacing */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-24: 96px;

  /* Border Radius */
  --r-btn:   999px; /* Pill */
  --r-card:  20px;
  --r-input: 14px;
  --r-badge: 6px;
  --r-modal: 24px;

  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', ui-monospace, monospace;

  /* Transitions */
  --t-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --t-med:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --t-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Nav */
  --nav-h: 60px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: opacity var(--t-fast); }
a:hover { opacity: 0.7; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; outline: none; }
input, textarea, select { font-family: inherit; }

/* Selection */
::selection { background: rgba(255,255,255,0.2); color: #fff; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, .t-hero, .t-h1, .t-h2, .t-h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.t-hero    { font-size: clamp(48px, 6vw, 84px); font-weight: 700; line-height: 1.05; letter-spacing: -0.04em; }
.t-h1      { font-size: clamp(32px, 4vw, 56px); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.t-h2      { font-size: clamp(24px, 3vw, 40px); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.t-h3      { font-size: 22px; font-weight: 500; }
.t-body    { font-size: 16px; line-height: 1.7; color: var(--text-secondary); }
.t-sub     { font-size: 20px; color: var(--text-secondary); font-weight: 400; }
.t-small   { font-size: 15px; color: var(--text-secondary); }
.t-caption { font-size: 13px; color: var(--text-tertiary); letter-spacing: 0.02em; }
.t-label   { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); }

.mono { font-family: var(--font-mono); font-size: 14px; color: var(--text-primary); background: var(--bg-hover); padding: 4px 8px; border-radius: 6px; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; }

.accent-text {
  background: linear-gradient(135deg, #ffffff 0%, #71717a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  transition: transform var(--t-med);
}

.nav__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-6);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  text-decoration: none;
}
.nav__logo:hover { opacity: 1; }

.nav__links { display: flex; gap: var(--sp-8); align-items: center; }
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--t-fast);
}
.nav__link:hover { color: var(--text-primary); }

.nav__actions { display: flex; gap: var(--sp-4); align-items: center; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  padding: var(--sp-2);
}
.nav__hamburger span { display: block; width: 20px; height: 2px; background: var(--text-primary); transition: var(--t-fast); }

.nav__drawer {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--sp-6);
  flex-direction: column; gap: var(--sp-4);
  z-index: 999;
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav__drawer.open { display: flex; }

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

@media (max-width: 768px) {
  .nav__links, .nav__actions { display: none; }
  .nav__hamburger { display: flex; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg);
}
.btn-primary:hover { background: #e4e4e7; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,255,255,0.1); }
.btn-primary:active { transform: translateY(1px); scale: 0.98; }

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--text-secondary); background: rgba(255,255,255,0.02); transform: translateY(-1px); }
.btn-secondary:active { transform: translateY(1px); scale: 0.98; }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.btn--sm { font-size: 14px; padding: 8px 16px; }
.btn--lg { font-size: 16px; padding: 18px 36px; }
.btn--full { width: 100%; }
.btn--loading { opacity: 0.7; pointer-events: none; }

/* ============================================================
   INPUTS & FORMS
   ============================================================ */
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field__label { font-size: 14px; font-weight: 500; color: var(--text-primary); }

.input {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-input);
  padding: 14px var(--sp-4);
  font-size: 16px;
  color: var(--text-primary);
  outline: none;
  width: 100%;
  transition: all var(--t-fast);
}
.input::placeholder { color: var(--text-tertiary); }
.input:focus { border-color: var(--text-primary); box-shadow: 0 0 0 1px var(--text-primary); background: var(--bg); }
.input.error { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }

.field__error { font-size: 13px; color: var(--danger); }
.field__hint  { font-size: 13px; color: var(--text-tertiary); }

textarea.input { resize: vertical; min-height: 100px; }

/* ============================================================
   LAYOUT & GRID
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-6); }
.container--narrow { max-width: 640px; }
.container--wide { max-width: 1400px; }

.section { padding: var(--sp-24) 0; position: relative; }
@media (max-width: 768px) { .section { padding: var(--sp-12) 0; } }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
@media (max-width: 768px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.flex { display: flex; } .flex-col { flex-direction: column; }
.items-center { align-items: center; } .justify-center { justify-content: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: var(--sp-2); } .gap-4 { gap: var(--sp-4); } .gap-6 { gap: var(--sp-6); } .gap-8 { gap: var(--sp-8); }
.text-center { text-align: center; } .text-left { text-align: left; }
.mt-4 { margin-top: var(--sp-4); } .mt-8 { margin-top: var(--sp-8); } .mt-12 { margin-top: var(--sp-12); }
.mb-4 { margin-bottom: var(--sp-4); } .mb-6 { margin-bottom: var(--sp-6); } .mb-8 { margin-bottom: var(--sp-8); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card);
  padding: var(--sp-8);
  transition: all var(--t-med);
}
.card--interactive { cursor: pointer; }
.card--interactive:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.5); background: var(--bg-hover); }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 4px 10px; border-radius: var(--r-badge);
}
.badge--active    { background: rgba(41, 188, 155, 0.15); color: var(--success); }
.badge--suspended { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge--revoked   { background: rgba(239, 68, 68, 0.15);  color: var(--danger);  }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + var(--sp-12)) var(--sp-6) var(--sp-16);
  position: relative;
  overflow: hidden;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 13px; font-weight: 500;
  padding: 6px 16px; border-radius: var(--r-btn);
  margin-bottom: var(--sp-6);
  backdrop-filter: blur(10px);
}

.hero__title { max-width: 900px; margin-bottom: var(--sp-6); letter-spacing: -0.05em; }
.hero__sub { max-width: 680px; margin: 0 auto var(--sp-10); font-size: 21px; line-height: 1.6; }
.hero__actions { display: flex; gap: var(--sp-4); flex-wrap: wrap; justify-content: center; }

.hero__bg-circle {
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(40px);
}

.hero__scroll-hint {
  position: absolute; bottom: var(--sp-8);
  display: flex; flex-direction: column; align-items: center;
  color: var(--text-tertiary); font-size: 14px;
  animation: bounce 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* Hero Animation */
.anim-fade-up { opacity: 0; transform: translateY(20px); animation: fadeUp var(--t-slow) forwards; }
.anim-fade-up:nth-child(2) { animation-delay: 0.1s; }
.anim-fade-up:nth-child(3) { animation-delay: 0.2s; }
.anim-fade-up:nth-child(4) { animation-delay: 0.3s; }
.anim-fade-up:nth-child(5) { animation-delay: 0.4s; }

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

/* ============================================================
   HOW IT WORKS & FEATURES
   ============================================================ */
.section-header { text-align: center; margin-bottom: var(--sp-16); max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header .t-label { margin-bottom: var(--sp-4); }
.section-header .t-h2 { margin-bottom: var(--sp-4); }

.steps { display: flex; gap: var(--sp-8); justify-content: center; }
@media (max-width: 768px) { .steps { flex-direction: column; align-items: center; } .step { text-align: center; } }

.step { flex: 1; max-width: 300px; position: relative; }
.step__num {
  font-family: var(--font-display); font-size: 64px; font-weight: 700;
  color: var(--border-subtle); line-height: 1;
  position: absolute; top: -30px; left: -10px; z-index: -1;
}
.step__icon { width: 48px; height: 48px; margin-bottom: var(--sp-6); background: var(--text-primary); border-radius: 12px; display: none; }

.feature-card {
  padding: var(--sp-8);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card);
  transition: all var(--t-med);
}
.feature-card:hover { border-color: var(--border-hover); background: var(--bg-hover); transform: translateY(-4px); box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.feature-card__title { font-size: 18px; font-weight: 600; margin-bottom: var(--sp-2); color: var(--text-primary); }
.feature-card__desc  { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-8); max-width: 540px; margin: 0 auto; }
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-card);
  padding: var(--sp-10) var(--sp-8);
  position: relative;
  transition: transform var(--t-med);
  text-align: center;
}
.pricing-card--featured { border: 1px solid var(--border-hover); background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0) 100%); }
.pricing-card--featured:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(255,255,255,0.05); }

.pricing-card__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--text-primary); color: var(--bg);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 4px 16px; border-radius: var(--r-btn); white-space: nowrap;
}

.pricing-card__name { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: var(--sp-4); color: var(--text-secondary); }
.pricing-card__price { display: flex; align-items: baseline; justify-content: center; gap: var(--sp-1); margin-bottom: var(--sp-6); }
.price-currency { font-size: 24px; font-weight: 500; color: var(--text-secondary); }
.price-amount   { font-family: var(--font-display); font-size: 64px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--text-primary); }

.pricing-card__otp {
  display: inline-block; background: rgba(255,255,255,0.05); color: var(--text-primary);
  font-size: 13px; font-weight: 500; padding: 6px 14px; border-radius: var(--r-btn); margin-bottom: var(--sp-8);
}

.pricing-card__features { display: flex; flex-direction: column; gap: var(--sp-4); margin-bottom: var(--sp-8); text-align: left; }
.pricing-feature { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: 15px; color: var(--text-secondary); }
.pricing-feature::before {
  content: ''; display: block; width: 6px; height: 6px; background: var(--text-secondary); border-radius: 50%; margin-top: 8px; min-width: 6px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-subtle); }
.faq-item:first-child { border-top: 1px solid var(--border-subtle); }

.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: var(--sp-6) 0; background: none; border: none;
  font-size: 18px; font-weight: 500; color: var(--text-primary); text-align: left;
  cursor: pointer; gap: var(--sp-4); transition: color var(--t-fast);
}
.faq-question:hover { color: var(--text-secondary); }
.faq-chevron { width: 24px; height: 24px; min-width: 24px; transition: transform var(--t-med); color: var(--text-tertiary); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease; opacity: 0; }
.faq-item.open .faq-answer { max-height: 400px; opacity: 1; padding-bottom: var(--sp-6); }
.faq-answer p { font-size: 16px; color: var(--text-secondary); line-height: 1.7; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border-subtle); padding: var(--sp-16) 0 var(--sp-8); background: var(--bg); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-12); margin-bottom: var(--sp-12); }
.footer__brand { max-width: 320px; }
.footer__logo { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: var(--sp-4); }
.footer__tagline { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }
.footer__col-title { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-primary); margin-bottom: var(--sp-6); }
.footer__links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer__link { font-size: 15px; color: var(--text-secondary); transition: color var(--t-fast); }
.footer__link:hover { color: var(--text-primary); }

.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: var(--sp-8); border-top: 1px solid var(--border-subtle); }
.footer__copy { font-size: 13px; color: var(--text-tertiary); }

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-10); }
  .footer__bottom { flex-direction: column; gap: var(--sp-4); text-align: center; }
}

/* ============================================================
   AUTH PAGES (Login)
   ============================================================ */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--sp-6); background: var(--bg); }
.auth-card {
  width: 100%; max-width: 420px; background: var(--bg-card);
  border: 1px solid var(--border-subtle); border-radius: var(--r-modal);
  padding: var(--sp-10) var(--sp-8);
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.auth-card__logo { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: var(--sp-2); text-align: center; }
.auth-card__title { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: var(--sp-2); text-align: center; }
.auth-card__sub { font-size: 15px; color: var(--text-secondary); margin-bottom: var(--sp-8); text-align: center; }

.auth-form { display: flex; flex-direction: column; gap: var(--sp-6); }
.auth-actions { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-2); }
.auth-link { font-size: 14px; color: var(--text-secondary); text-align: center; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard { display: flex; min-height: 100vh; padding-top: var(--nav-h); background: var(--bg); }

/* Sidebar */
.sidebar {
  width: 260px; min-width: 260px; background: var(--bg);
  border-right: 1px solid var(--border-subtle); padding: var(--sp-8) 0;
  position: fixed; top: var(--nav-h); bottom: 0; overflow-y: auto;
}
.sidebar__section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-tertiary);
  padding: 0 var(--sp-6) var(--sp-2); margin-top: var(--sp-6);
}
.sidebar__nav { display: flex; flex-direction: column; gap: 2px; padding: 0 var(--sp-4); }
.sidebar__link {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 10px var(--sp-6); margin: 0 var(--sp-4); border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: all var(--t-fast);
}
.sidebar__link:hover { color: var(--text-primary); background: rgba(255,255,255,0.03); }
.sidebar__link.active { color: var(--bg); background: var(--text-primary); }

/* Dashboard Main */
.dash-main { margin-left: 260px; flex: 1; padding: var(--sp-10) var(--sp-12); max-width: calc(100% - 260px); }
.dash-content { max-width: 900px; }
.dash-heading { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: var(--sp-10); }

/* Metrics */
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-10); }
.metric-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--r-card); padding: var(--sp-6); }
.metric-card__label { font-size: 12px; color: var(--text-tertiary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--sp-2); }
.metric-card__value { font-family: var(--font-display); font-size: 36px; font-weight: 600; letter-spacing: -0.02em; }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--r-card); }
.table { width: 100%; border-collapse: collapse; text-align: left; }
.table th, .table td { padding: 16px 24px; border-bottom: 1px solid var(--border-subtle); }
.table th { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-tertiary); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: rgba(255,255,255,0.02); }
.table td { font-size: 15px; color: var(--text-secondary); }
.table td:first-child { color: var(--text-primary); font-weight: 500; }

/* Mobile Bottom Nav */
.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(10,10,12,0.8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle); z-index: 900;
  padding-bottom: env(safe-area-inset-bottom, 12px);
}
.bottom-nav__items { display: flex; justify-content: space-around; padding: 12px 0; }
.bottom-nav__item { font-size: 12px; font-weight: 500; color: var(--text-tertiary); transition: color var(--t-fast); }
.bottom-nav__item.active { color: var(--text-primary); }

@media (max-width: 900px) {
  .dash-main { margin-left: 0; max-width: 100%; padding: var(--sp-6) var(--sp-4) 100px; }
  .sidebar { display: none; }
  .bottom-nav { display: block; }
}

/* ============================================================
   MODALS & TOASTS
   ============================================================ */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; z-index: 2000;
  opacity: 0; pointer-events: none; transition: opacity var(--t-med);
}
.modal-overlay:not(.hidden) { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--r-modal);
  padding: var(--sp-10) var(--sp-8); width: 100%; max-width: 460px; position: relative;
  transform: translateY(20px) scale(0.95); transition: transform var(--t-med); box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.modal-overlay:not(.hidden) .modal { transform: translateY(0) scale(1); }
.modal__close {
  position: absolute; top: var(--sp-6); right: var(--sp-6); background: none; border: none;
  font-size: 24px; color: var(--text-tertiary); cursor: pointer; transition: color var(--t-fast);
}
.modal__close:hover { color: var(--text-primary); }

.toast-container { position: fixed; bottom: var(--sp-6); right: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); z-index: 3000; pointer-events: none; }
.toast {
  background: var(--text-primary); color: var(--bg); padding: 14px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 500; box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  animation: toastSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; pointer-events: auto;
}
.toast.error, .toast.danger { background: var(--danger); }
.toast.success { background: var(--success); }
.toast.warning { background: var(--warning); color: #000; }

@keyframes toastSlideIn { from { opacity: 0; transform: translateX(20px) scale(0.9); } to { opacity: 1; transform: translateX(0) scale(1); } }
.hidden { display: none !important; }

/* Alerts */
.alert { padding: 14px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; }
.alert-info { background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle); color: var(--text-primary); }
.alert-success { background: rgba(41, 188, 155, 0.1); border: 1px solid rgba(41, 188, 155, 0.2); color: var(--success); }
.alert-danger { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); color: var(--danger); }
.alert-warning { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.2); color: var(--warning); }

/* Code blocks */
.code-block { position: relative; background: #000; border: 1px solid var(--border); border-radius: 12px; padding: var(--sp-4); overflow: hidden; }
.code-block pre { margin: 0; overflow-x: auto; font-family: var(--font-mono); font-size: 14px; color: var(--text-primary); }
.code-block__copy {
  position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,0.1); color: var(--text-primary);
  border: none; border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer; transition: background var(--t-fast);
}
.code-block__copy:hover { background: rgba(255,255,255,0.2); }
