:root {
  --sidebar-width: 280px;
  --bg: #f3f4f6;
  --sidebar-bg: #0f172a;
  --sidebar-hover: rgba(255, 255, 255, 0.08);
  --accent: #6366f1;
  --accent-light: #c7d2fe;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  --text-main: #1e293b;
  --text-muted: #64748b;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  --radius: 16px;
  --border-width: 1px;

  /* ── Typography Scale ── */
  --text-xs:   11px;   /* meta、timestamp、badge label */
  --text-sm:   13px;   /* table cell、副标题、input */
  --text-base: 14px;   /* 正文、nav item */
  --text-md:   16px;   /* card 标题 */
  --text-lg:   20px;   /* section 标题 */
  --text-xl:   24px;   /* page 标题 */
  --text-2xl:  32px;   /* stat 大数字 */

  /* ── Font Weights ── */
  --fw-normal:  500;
  --fw-semi:    600;
  --fw-bold:    700;
  --fw-black:   800;
  --fw-900:     900;

  /* ── Spacing Scale ── */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;

  /* ── Badge / Pill ── */
  --badge-radius: 6px;
  --badge-px: 8px;
  --badge-py: 3px;
  --badge-fs: var(--text-xs);
  --badge-fw: var(--fw-black);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', 'Noto Sans TC', sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
}

#console-app {
  display: flex;
  height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--sidebar-bg);
  color: #f1f5f9;
  display: flex;
  flex-direction: column;
  padding: 32px 0 24px;
  z-index: 100;
  box-shadow: 10px 0 30px rgba(0,0,0,0.1);
  position: relative;
}

.brand {
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  margin-bottom: 32px;
  gap: 16px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
  border: 2px solid rgba(255,255,255,0.1);
}

.brand-name {
  font-weight: 900;
  font-size: 20px;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.brand-tag {
  font-size: 10px;
  font-weight: 800;
  color: #6366f1;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 2px;
}

.nav-menu {
  flex: 1;
  padding: 0 12px;
  overflow-y: auto;
}

/* Sleek Scrollbar for Sidebar */
.nav-menu::-webkit-scrollbar {
  width: 4px;
}
.nav-menu::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
}

.nav-section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #64748b;
  text-transform: uppercase;
  padding: 24px 20px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.nav-section-label:hover {
  color: #94a3b8;
}

.nav-section-chevron {
  font-size: 12px;
  transition: transform 0.25s ease;
  opacity: 0.7;
}

.nav-section-label.collapsed .nav-section-chevron {
  transform: rotate(-90deg);
}

.nav-section {
  overflow: hidden;
  max-height: 1000px;
  transition: max-height 0.3s ease, opacity 0.2s ease;
  opacity: 1;
}

.nav-section.collapsed {
  max-height: 0;
  opacity: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 2px 12px;
  color: #94a3b8;
  position: relative;
  border: 1px solid transparent;
}

.nav-item:hover {
  background-color: var(--sidebar-hover);
  color: white;
  transform: translateX(4px);
}

.nav-item.active {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 20%;
  height: 60%;
  width: 4px;
  background: white;
  border-radius: 0 4px 4px 0;
}

.nav-icon {
  font-size: 18px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  transition: all 0.2s;
}

.nav-item:hover .nav-icon {
  background: rgba(255,255,255,0.1);
}

.nav-item.active .nav-icon {
  background: rgba(255,255,255,0.2);
}

.nav-text {
  font-weight: 700;
  font-size: 13.5px;
}

.sidebar-footer {
  padding: 24px 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.1);
}

.user-profile-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 12px;
}

.user-profile-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.user-profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.user-info {
  min-width: 0;
}

.user-name-wrapper {
  margin-bottom: 2px;
}

.user-display-name {
  font-size: 14px;
  font-weight: 800;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.user-role-badge {
  font-size: 9px;
  font-weight: 900;
  color: #6366f1;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.user-org-badge {
  font-size: 11px;
  color: #94a3b8;
  background: rgba(0,0,0,0.2);
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid rgba(255,255,255,0.03);
}

.footer-actions {
  display: flex;
  gap: 8px;
}

.footer-btn {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.footer-btn:hover {
  background: rgba(255,255,255,0.1);
  color: white;
  border-color: rgba(255,255,255,0.2);
}

.footer-btn.logout:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.content-header {
  height: 70px;
  background: white;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  flex-shrink: 0;
}

.content-header h1 {
  font-size: 20px;
  font-weight: 800;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

#content-body {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
}

/* ── Global Badge / Pill System ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: var(--badge-py) var(--badge-px);
  border-radius: var(--badge-radius);
  font-size: var(--badge-fs);
  font-weight: var(--badge-fw);
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge-green  { color: #065f46; background: #d1fae5; border-color: #86efac; }
.badge-red    { color: #991b1b; background: #fee2e2; border-color: #fca5a5; }
.badge-yellow { color: #92400e; background: #fef3c7; border-color: #fde68a; }
.badge-blue   { color: #1e40af; background: #dbeafe; border-color: #93c5fd; }
.badge-gray   { color: #475569; background: #f1f5f9; border-color: #e2e8f0; }
.badge-purple { color: #3730a3; background: #ede9fe; border-color: #c4b5fd; }

/* ── Table Header Consistent ── */
.th-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-black);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Card Section Title ── */
.section-title {
  font-size: var(--text-md);
  font-weight: var(--fw-black);
  color: var(--text-main);
  margin: 0 0 var(--sp-4);
}

/* ── Meta Text (timestamp, secondary info) ── */
.text-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: var(--fw-semi);
}

/* Common Components */
.card {
  background: var(--card-bg);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(0,0,0,0.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  padding: 24px;
  background: white;
  border-radius: var(--radius);
  border: var(--border-width) solid var(--border);
}

.stat-val {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

.btn-icon {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s;
}

.btn-icon:hover {
  background: #f1f5f9;
}

.btn-icon:active {
  transform: scale(0.9);
}

/* Rule Chips (出题模块选择器) */
.rule-chip {
  padding: 8px 6px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.rule-chip:hover {
  border-color: var(--accent);
  background: #eef2ff;
  color: var(--accent);
}

.rule-chip.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.rule-chip.selected:hover {
  background: #4f46e5;
  border-color: #4f46e5;
}

.rule-chip:active {
  transform: scale(0.95);
}

/* Generator UI Specifics */
.gen-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.control-group {
  margin-bottom: 20px;
}

.control-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

select, input {
  width: 100%;
  padding: 12px 16px;
  border: var(--border-width) solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  background: #f8fafc;
  transition: all 0.2s;
}

select:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

select:focus, input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.primary-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.2s;
}

.primary-btn:active {
  transform: scale(0.98);
}

.primary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.primary-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.secondary-btn {
  background: white;
  color: var(--text-muted);
  border: 2px solid var(--border);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s, border-color 0.2s, color 0.2s;
}

.secondary-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-main);
  background: #f8fafc;
}

.secondary-btn:active {
  transform: scale(0.98);
}

.secondary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.secondary-btn:focus-visible {
  outline: 2px solid var(--text-muted);
  outline-offset: 3px;
}

.danger-btn {
  background: #ef4444;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s, background-color 0.2s, opacity 0.2s;
}

.danger-btn:hover {
  background-color: #dc2626;
}

.danger-btn:active {
  transform: scale(0.98);
}

.danger-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.danger-btn:focus-visible {
  outline: 2px solid #ef4444;
  outline-offset: 3px;
}

/* Table Enhancements */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table-row-hover:hover {
  background-color: #f8fafc !important;
}

.data-table th {
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 12px;
  border-bottom: 2px solid #e2e8f0;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: white;
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.9; }
}

@keyframes popUp {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes skeletonShimmer {
  0% { opacity: 1; }
  50% { opacity: 0.45; }
  100% { opacity: 1; }
}

.skeleton-pulse {
  animation: skeletonShimmer 1.4s ease-in-out infinite;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
  :root {
    --sidebar-width: 100%;
  }

  #console-app {
    flex-direction: column;
    overflow: auto;
  }

  .sidebar {
    width: 100%;
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    transition: left 0.3s ease;
    padding-top: 80px;
    box-shadow: 10px 0 30px rgba(0,0,0,0.2);
    overflow-y: auto;
  }

  .sidebar.mobile-active {
    left: 0;
  }

  .sidebar .brand {
    display: none; /* Hide brand in mobile sidebar as it's in header */
  }

  .main-content {
    margin-top: 64px;   /* clears the single-row header; tab pages add their own */
    height: auto;
    overflow: visible;
  }

  /* When the settings/invoice tab strip is showing, the fixed header grows to
     two rows. body gets .has-header-tabs so we only add the extra offset then. */
  body.has-header-tabs .main-content {
    margin-top: 108px;
  }

  .content-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 101;
    padding: 0 12px;
    min-height: 64px;        /* grow when the tab strip wraps to a 2nd row */
    height: auto !important;  /* override inline height:80px */
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-bottom: none;
  }

  .mobile-logo {
    display: block !important;
  }

  .content-header h1 {
    font-size: 16px !important;
    font-weight: 900;
  }

  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    color: var(--sidebar-bg);
  }

  .header-tools {
    display: none !important; /* Hide tools in header on mobile to save space */
  }

  #content-body {
    padding: 16px;
    overflow-y: visible;
    margin-top: 10px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gen-controls {
    grid-template-columns: 1fr;
  }

  .modal {
    width: 95%;
    padding: 20px;
  }

  .header-tools {
    gap: 10px;
    font-size: 12px;
  }

  /* Responsive Table to Card View */
  .data-table, .data-table thead, .data-table tbody, .data-table th, .data-table td, .data-table tr {
    display: block;
  }
  .data-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  .data-table tr {
    border: 1px solid #e2e8f0;
    margin-bottom: 15px;
    border-radius: 14px;
    background: white;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
  }
  .data-table td {
    border: none;
    position: relative;
    padding-left: 50% !important;
    text-align: right !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    min-height: 40px;
  }
  .data-table td:before {
    content: attr(data-label);
    position: absolute;
    left: 12px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: 800;
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
  }
  .data-table td:first-child {
    padding-left: 12px !important;
    text-align: left !important;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 10px;
  }
  .data-table td:first-child:before {
    content: none;
  }

  /* Sidebar Overlay Logic */
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    z-index: 99; /* Just below sidebar */
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .sidebar.mobile-active ~ .sidebar-overlay {
    display: block;
    opacity: 1;
  }

  /* ----------------------------------------------------------------
     Mobile Header Tabs - Segmented Pill Control
     ----------------------------------------------------------------
     On phone width the desktop underline tabs were crammed beside the
     title and clipped off-screen. We restyle them as a touch-first
     segmented control: an inset track on its own full-width row beneath
     the title, with a raised brand-indigo pill on the active tab,
     comfortable 40px tap targets, momentum scroll + scroll-snap, and a
     right-edge fade hinting there's more to swipe.
     ---------------------------------------------------------------- */
  .content-header > div:first-child {
    flex-wrap: wrap;          /* let the tab strip drop to its own line */
    gap: 8px 10px !important;
    min-width: 0;
    flex: 1 1 100%;
    height: auto !important;  /* override inline height:100% */
    padding: 8px 0 10px;
  }

  .content-header h1#page-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* The strip: full-width inset track, horizontally scrollable.
     A two-sided edge fade signals "this scrolls" rather than "this is
     clipped": content dissolves into the track on whichever side has more
     to reveal. We animate the mask via a CSS var the strip can't set
     itself, so we use a symmetric fade that reads as a scroller. */
  #header-tabs {
    margin-left: 0 !important;
    gap: 2px !important;                      /* tighter so more peeks through */
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    height: auto !important;
    padding: 4px !important;
    background: #eef2f7 !important;           /* inset track */
    border-radius: 14px !important;
    box-shadow: inset 0 1px 2px rgba(15,23,42,0.07) !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;       /* iOS momentum */
    scroll-snap-type: x proximity;
    scrollbar-width: none;                   /* Firefox */
    /* Symmetric edge fade — wider on the right (36px) where the next tab
       peeks in, slim on the left (14px). Strongly hints horizontal scroll. */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 36px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 36px), transparent 100%);
  }
  #header-tabs::-webkit-scrollbar {
    display: none;                           /* Chrome/Safari */
  }

  /* Each tab becomes a pill segment */
  #header-tabs button {
    flex: 0 0 auto;
    scroll-snap-align: start;
    height: 40px !important;
    min-height: 40px;
    padding: 0 13px !important;              /* compact so the next tab shows */
    border-radius: 11px !important;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    background: transparent !important;
    transition: color .2s ease, background .25s ease, box-shadow .25s ease, transform .12s ease;
  }

  #header-tabs button:active {
    transform: scale(0.96);
  }

  /* Active segment: raised white pill with brand-indigo label */
  #header-tabs button.active {
    color: var(--accent) !important;
    font-weight: 800;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(15,23,42,0.10),
                0 0 0 1px rgba(99,102,241,0.10) !important;
  }

  /* Kill the desktop underline indicator on mobile - pill replaces it */
  #header-tabs button::after,
  #header-tabs button.active::after {
    display: none !important;
  }
}

.mobile-menu-btn {
  display: none;
}

/* Header Tabs Underline Styles */
#header-tabs {
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: 28px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

#header-tabs button {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 4px !important;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
  transition: all 0.2s ease;
  border-radius: 0 !important;
  white-space: nowrap;
}

#header-tabs button:hover {
  color: var(--accent) !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

#header-tabs button.active {
  color: var(--accent) !important;
  font-weight: 800;
}

#header-tabs button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

#header-tabs button.active::after {
  transform: scaleX(1);
}

