/* ============================================================
   ProblemRecon — Design System & Styles
   Dark theme · System fonts · Emerald accent
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Surface palette */
  --bg-base:       #0f172a;
  --bg-raised:     #1e293b;
  --bg-overlay:    #334155;
  --bg-input:      #0f172a;

  /* Border */
  --border:        #334155;
  --border-light:  #475569;

  /* Text */
  --text-primary:  #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;

  /* Accent */
  --accent:        #10b981;
  --accent-hover:  #34d399;
  --accent-muted:  #065f46;
  --accent-glow:   rgba(16, 185, 129, .15);

  /* Semantic */
  --danger:        #ef4444;
  --danger-hover:  #f87171;
  --warning:       #f59e0b;
  --info:          #3b82f6;

  /* Radius */
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --radius-full:   9999px;

  /* Shadows */
  --shadow-sm:     0 1px 2px rgba(0,0,0,.3);
  --shadow-md:     0 4px 12px rgba(0,0,0,.35);
  --shadow-lg:     0 8px 30px rgba(0,0,0,.4);
  --shadow-glow:   0 0 20px var(--accent-glow);

  /* Transitions */
  --ease:          cubic-bezier(.4,0,.2,1);
  --dur:           180ms;

  /* Sizes */
  --container-max: 1140px;
  --sidebar-width: 280px;
  --header-h:      64px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--accent-hover); }

img, svg { display: block; max-width: 100%; }


/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; color: var(--text-primary); }
h1 { font-size: 3rem;   letter-spacing: -.025em; }
h2 { font-size: 2rem;   letter-spacing: -.02em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }
p  { color: var(--text-secondary); }

.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.text-sm      { font-size: .875rem; }
.text-xs      { font-size: .75rem; }
.text-lg      { font-size: 1.125rem; }
.text-xl      { font-size: 1.25rem; }


/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.flex      { display: flex; }
.flex-col  { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center   { align-items: center; }
.items-start    { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between{ justify-content: space-between; }
.gap-1  { gap: .5rem; }
.gap-2  { gap: 1rem; }
.gap-3  { gap: 1.5rem; }
.gap-4  { gap: 2rem; }
.gap-6  { gap: 3rem; }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.w-full { width: 100%; }
.mx-auto { margin-inline: auto; }

.section {
  padding: 5rem 0;
}

.hidden { display: none !important; }


/* --- Header / Navbar --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(15, 23, 42, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.logo .logo-icon {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: .875rem;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--text-primary); }


/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .625rem 1.25rem;
  font-size: .9rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.4;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--bg-raised);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-overlay);
  border-color: var(--border-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: var(--bg-raised);
  color: var(--text-primary);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover { background: var(--danger-hover); }

.btn-sm { padding: .375rem .875rem; font-size: .8rem; border-radius: var(--radius-sm); }
.btn-lg { padding: .875rem 2rem;   font-size: 1rem; }
.btn-icon {
  width: 36px; height: 36px;
  padding: 0;
  border-radius: var(--radius-sm);
}

.btn-google {
  background: #fff;
  color: #333;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.btn-google:hover {
  background: #f8f8f8;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-google svg { width: 18px; height: 18px; }


/* --- Cards --- */
.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-md);
}

.card-compact { padding: 1.25rem; border-radius: var(--radius-md); }

.card-glow:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}


/* --- Form Inputs --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: .375rem;
}

.form-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.form-input,
.form-textarea,
.form-select {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: .75rem 1rem;
  font-size: .95rem;
  font-family: inherit;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-help {
  font-size: .8rem;
  color: var(--text-muted);
}

.form-error {
  font-size: .8rem;
  color: var(--danger);
}


/* --- Tables --- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

thead {
  background: var(--bg-overlay);
}

th {
  text-align: left;
  padding: .75rem 1rem;
  font-weight: 600;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

tr:last-child td { border-bottom: none; }

tr:hover td {
  background: rgba(30, 41, 59, .5);
}

td.num {
  font-variant-numeric: tabular-nums;
  text-align: right;
}


/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .6rem;
  font-size: .7rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-green  { background: rgba(16,185,129,.15); color: #34d399; }
.badge-yellow { background: rgba(245,158,11,.15); color: #fbbf24; }
.badge-red    { background: rgba(239,68,68,.15);  color: #f87171; }
.badge-blue   { background: rgba(59,130,246,.15); color: #60a5fa; }
.badge-gray   { background: rgba(100,116,139,.15);color: #94a3b8; }


/* --- Toasts / Notifications --- */
.toast-container {
  position: fixed;
  top: calc(var(--header-h) + 1rem);
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: .875rem 1.25rem;
  font-size: .875rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 280px;
  max-width: 420px;
  animation: toast-in var(--dur) var(--ease);
}
.toast-success { border-left: 3px solid var(--accent); }
.toast-error   { border-left: 3px solid var(--danger); }
.toast-warning { border-left: 3px solid var(--warning); }
.toast-info    { border-left: 3px solid var(--info); }

.toast-icon { flex-shrink: 0; font-size: 1.1rem; }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}


/* --- Loading Spinner --- */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.spinner-sm { width: 18px; height: 18px; border-width: 2px; }
.spinner-lg { width: 48px; height: 48px; border-width: 4px; }

@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.7);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 50;
  border-radius: inherit;
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem;
}

.loading-state p {
  color: var(--text-muted);
  font-size: .9rem;
}


/* --- Progress Bar --- */
.progress {
  height: 6px;
  background: var(--bg-overlay);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width .4s var(--ease);
}


/* --- Tabs --- */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  gap: 0;
}

.tab {
  padding: .875rem 1.5rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--dur) var(--ease);
}
.tab:hover { color: var(--text-secondary); }
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}


/* --- Charts --- */
.chart-container {
  position: relative;
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.chart-container canvas {
  max-height: 400px;
}

.chart-title {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}


/* ============================================================
   App Layout — Sidebar + Main
   ============================================================ */
.app-layout {
  display: flex;
  min-height: calc(100vh - var(--header-h));
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-raised);
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-heading {
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .5rem .75rem;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem .75rem;
  font-size: .875rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
}
.sidebar-item:hover { background: var(--bg-overlay); color: var(--text-primary); }
.sidebar-item.active { background: var(--accent-glow); color: var(--accent); }

.main-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  min-width: 0;
}

.results-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}


/* ============================================================
   Landing Page
   ============================================================ */

/* Hero */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero h1 {
  max-width: 720px;
  margin: 0 auto 1.25rem;
}

.hero h1 .accent-word {
  background: linear-gradient(135deg, var(--accent) 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.2rem;
  max-width: 580px;
  margin: 0 auto 3rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* CTA Cards */
.cta-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 760px;
  margin: 0 auto;
}

.cta-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: left;
  transition: all .25s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cta-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.cta-card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-glow);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.cta-card h3 {
  font-size: 1.25rem;
  margin: 0;
}

.cta-card p {
  font-size: .95rem;
  flex: 1;
}

.cta-card .btn { margin-top: .5rem; align-self: flex-start; }


/* How It Works */
.how-it-works { background: var(--bg-raised); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}

.step {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.step h4 { font-size: 1.1rem; }
.step p { font-size: .9rem; max-width: 260px; }

.steps-connector {
  position: absolute;
  top: 26px;
  left: 17%;
  right: 17%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}


/* Sample Preview */
.preview-section {
  overflow: hidden;
}

.preview-wrapper {
  max-width: 860px;
  margin: 3rem auto 0;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.25rem;
  background: var(--bg-overlay);
  border-bottom: 1px solid var(--border);
}

.preview-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.preview-dot.red    { background: #ef4444; }
.preview-dot.yellow { background: #f59e0b; }
.preview-dot.green  { background: #10b981; }

.preview-body {
  padding: 1.5rem;
}

.sample-table th { font-size: .7rem; }
.sample-table td { font-size: .85rem; }

.bar-visual {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-overlay);
  overflow: hidden;
}
.bar-visual-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--accent);
}

.magnitude-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}


/* Pricing */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 700px;
  margin: 3rem auto 0;
}

.pricing-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  position: relative;
}

.pricing-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem .875rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.pricing-tier {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.pricing-price {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: .5rem 0 .25rem;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: .9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .625rem;
  margin-bottom: 2rem;
  flex: 1;
}

.pricing-features li {
  font-size: .9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.pricing-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  font-size: .85rem;
}

.pricing-card .btn { width: 100%; }


/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: .85rem;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--text-secondary); }

.footer-copy {
  font-size: .8rem;
  color: var(--text-muted);
}


/* ============================================================
   Animations
   ============================================================ */
.fade-in {
  animation: fadeIn .5s var(--ease) both;
}

.fade-in-up {
  animation: fadeInUp .6s var(--ease) both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }


/* ============================================================
   Responsive — 768px breakpoint
   ============================================================ */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero { padding: 3.5rem 0 3rem; }
  .hero-sub { font-size: 1rem; }

  .cta-cards,
  .pricing-cards,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .steps,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .steps-connector { display: none; }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar {
    display: none;
  }

  .app-layout {
    flex-direction: column;
  }

  .main-content {
    padding: 1rem;
  }

  .nav-links { gap: 1rem; }

  .section { padding: 3rem 0; }

  .preview-wrapper { margin-top: 2rem; }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }

  .nav-links .btn { display: none; }

  .cta-card { padding: 1.5rem; }

  .pricing-card { padding: 1.5rem; }

  .container { padding: 0 1rem; }

  .grid-4 { grid-template-columns: 1fr; }
}


/* ============================================================
   Disabled buttons
   ============================================================ */
.btn:disabled,
.btn.disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}


/* ============================================================
   FAQ Section
   ============================================================ */
.faq {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.faq-item:last-child { border-bottom: none; }

.faq-q {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: .375rem;
}

.faq-a {
  color: var(--text-secondary);
  font-size: .925rem;
  line-height: 1.65;
}


/* ============================================================
   Billing / Account page
   ============================================================ */
.card-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .925rem;
}
.info-row:last-child { border-bottom: none; }


/* ============================================================
   Utility: scrollbar
   ============================================================ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-overlay); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }
