/* ==========================================================================
   GameChecklist.top — Ultra-Minimal, Icon-First UI
   GTA 6 Palette: Vice Dusk (Default) | Leonida Daylight (Light)
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800&family=Barlow:wght@400;500;600;700&display=swap");

:root {
  --font-body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;

  --bg-primary: #110c1c;
  --bg-secondary: #191329;
  --bg-tertiary: #231b38;
  --bg-hover: #2b2144;
  --bg-glass: rgba(17, 12, 28, 0.92);

  --text-primary: #fdf8ff;
  --text-secondary: #c4b5d8;
  --text-muted: #8b7aa3;

  --accent-pink: #ff2e93;
  --accent-orange: #ff7b54;
  --accent-gold: #ffd166;
  --accent-cyan: #2de2e6;
  --accent-green: #10e898;
  --accent-danger: #ff476f;

  --border-subtle: rgba(255, 165, 220, 0.09);
  --border-strong: rgba(255, 165, 220, 0.2);

  --gradient-progress: linear-gradient(90deg, #ff2e93 0%, #ff7b54 55%, #ffd166 100%);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --tap-min: 44px;
}

[data-theme="light"] {
  --bg-primary: #fff8f4;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f9eef4;
  --bg-hover: #f3e3ec;
  --bg-glass: rgba(255, 248, 244, 0.94);

  --text-primary: #1c102b;
  --text-secondary: #5a446e;
  --text-muted: #826d96;

  --accent-pink: #d91b74;
  --accent-orange: #e8592c;
  --accent-gold: #d97706;
  --accent-cyan: #0091a8;
  --accent-green: #059669;
  --accent-danger: #e11d48;

  --border-subtle: rgba(28, 16, 43, 0.09);
  --border-strong: rgba(28, 16, 43, 0.18);

  --gradient-progress: linear-gradient(90deg, #d91b74 0%, #e8592c 60%, #f59e0b 100%);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.45;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
  body {
    padding-left: 58px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* ==========================================================================
   Thin Left Rail (Logo + Burger Menu Toggle for Non-Game Items)
   ========================================================================== */
.left-rail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  z-index: 80;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

.rail-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rail-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.rail-burger-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.rail-burger-btn:hover,
.rail-burger-btn[aria-expanded="true"] {
  border-color: var(--accent-pink);
  background: var(--bg-hover);
}

.rail-drawer {
  position: fixed;
  top: 56px;
  left: 12px;
  width: 248px;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.52);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 90;
}

.rail-drawer.open {
  display: flex;
}

.rail-section-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 6px 10px 4px;
}

.rail-game-select {
  width: 100%;
  height: 36px;
  margin-bottom: 4px;
}

@media (min-width: 768px) {
  .left-rail {
    top: 0;
    left: 0;
    bottom: 0;
    right: auto;
    width: 58px;
    height: auto;
    flex-direction: column;
    justify-content: flex-start;
    padding: 14px 0;
    border-bottom: none;
    border-right: 1px solid var(--border-subtle);
  }

  .rail-top {
    flex-direction: column;
    gap: 14px;
  }

  .rail-drawer {
    top: 14px;
    left: 66px;
    max-height: calc(100vh - 28px);
  }
}

/* ==========================================================================
   Inline Game Title (Placed in Search Bar Row)
   ========================================================================== */
.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: 4px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.brand-group h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
}

.brand-muted {
  font-weight: 500;
  color: var(--text-secondary);
  display: none;
}

@media (min-width: 640px) {
  .brand-muted {
    display: inline;
  }
}

.game-selector-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.game-selector {
  appearance: none;
  -webkit-appearance: none;
  height: 30px;
  padding: 0 24px 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background-color: var(--bg-tertiary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c4b5d8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  color: var(--text-primary);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.game-selector:hover {
  border-color: var(--accent-pink);
  background-color: var(--bg-hover);
}

/* Icon Buttons & Dropdown Menu */
.icon-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--bg-tertiary);
}

.icon-btn.active,
.icon-btn[aria-pressed="true"] {
  color: var(--accent-pink);
  border-color: rgba(255, 46, 147, 0.45);
  background: rgba(255, 46, 147, 0.12);
}

.icon-btn-badge {
  font-size: 0.72rem;
  font-weight: 700;
  display: none;
}

@media (min-width: 640px) {
  .icon-btn-badge {
    display: inline;
  }
}

/* Overflow Menu Dropdown */
.menu-wrap {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  padding: 6px;
  display: none;
  flex-direction: column;
  z-index: 80;
}

.dropdown-menu.open {
  display: flex;
}

.dropdown-item {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  text-align: left;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-decoration: none;
}

.dropdown-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  text-decoration: none;
}

.dropdown-toggle-row input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent-pink);
  cursor: pointer;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 0;
}

.dropdown-danger {
  color: var(--accent-danger);
}

.dropdown-danger:hover {
  background: rgba(244, 63, 94, 0.12);
  color: var(--accent-danger);
}

/* ==========================================================================
   Main 2-Column Layout (>= 1024px: 68% TODO Checklist / 32% Progress Dashboard)
   On < 1024px, Progress Dashboard sits immediately at the top (order: -1)
   ========================================================================== */
.app-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 66px;
  padding-bottom: 36px;
}

.sidebar-column {
  order: -1;
}

@media (min-width: 768px) {
  .app-layout {
    padding-top: 22px;
  }
}

@media (min-width: 1024px) {
  .app-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 22px;
  }

  .main-column {
    width: 68%;
    flex: 0 0 calc(68% - 11px);
    min-width: 0;
  }

  .sidebar-column {
    order: 0;
    width: 32%;
    flex: 0 0 calc(32% - 11px);
    position: sticky;
    top: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
}

/* ==========================================================================
   Subdued Filter Bar (Search + Status Toggle + Region Pills)
   Kept compact and quiet so TODO list & Progress dominate
   ========================================================================== */
.filter-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.filter-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 38px;
  padding: 0 34px 0 36px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.88rem;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  border-color: var(--accent-cyan);
  outline: none;
}

.clear-search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  display: none;
}

.clear-search-btn.visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.segmented-toggle {
  display: inline-flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  padding: 3px;
  border-radius: var(--radius-sm);
  height: 38px;
}

.seg-btn {
  padding: 0 13px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.seg-btn:hover {
  color: var(--text-primary);
}

.seg-btn.active {
  background: var(--accent-pink);
  color: #ffffff;
}

/* Region Pills */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 2px 0;
}

.pill-list::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.12s ease;
}

.filter-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.filter-pill.active {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--accent-pink);
  font-weight: 600;
}

/* ==========================================================================
   Prominent Category Accordions & High-Contrast TODO Checklist Rows
   ========================================================================== */
.categories-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.category-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.category-header {
  width: 100%;
  min-height: 66px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.015);
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.12s ease;
}

.category-header:hover {
  background: var(--bg-hover);
}

.category-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-icon {
  font-size: 1.25rem;
}

.category-name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.category-stats-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-badge {
  font-size: 0.88rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.category-badge.complete {
  background: rgba(16, 232, 152, 0.16);
  border-color: rgba(16, 232, 152, 0.45);
  color: var(--accent-green);
}

.accordion-chevron {
  transition: transform 0.2s ease;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.category-card.collapsed .accordion-chevron {
  transform: rotate(-90deg);
}

.category-card.collapsed .category-body {
  display: none;
}

.category-body {
  border-top: 1px solid var(--border-subtle);
}

/* Single-Line Focused Checklist Row (Hints hidden until toggled) */
.checklist-item {
  display: flex;
  flex-direction: column;
  padding: 6px 24px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.12s ease, opacity 0.2s ease;
}

.checklist-item:last-child {
  border-bottom: none;
}

.checklist-item:hover {
  background: var(--bg-hover);
}

.checklist-item.completed {
  opacity: 0.42;
}

.checklist-item.completed .item-title {
  text-decoration: line-through;
}

.item-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: var(--tap-min);
}

.item-tap-label {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-height: var(--tap-min);
  cursor: pointer;
  user-select: none;
  min-width: 0;
  padding: 6px 0;
}

.item-checkbox {
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: var(--accent-pink);
  flex-shrink: 0;
}

.item-title {
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .item-title {
    white-space: normal;
  }
}

.item-right-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.item-region-pill {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 3px 10px;
  border-radius: 999px;
}

/* Compact Icon Row Actions (Info ⓘ, Video ▶, Spoiler 👁) */
.row-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
  text-decoration: none;
}

.row-icon-btn:hover,
.row-icon-btn.active {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  text-decoration: none;
}

.row-icon-video {
  color: var(--accent-pink);
}

/* On-Demand Location Hint Drawer */
.item-hint-drawer {
  display: none;
  padding: 0 0 12px 34px;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.checklist-item.show-hint .item-hint-drawer,
body.show-all-hints .item-hint-drawer {
  display: block;
}

/* Spoiler Blur */
.spoiler-masked .item-title,
.spoiler-masked .item-hint-drawer {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
}

/* Empty State */
.empty-state {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 36px 16px;
  text-align: center;
  display: none;
}

.empty-state.visible {
  display: block;
}

.empty-state p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* ==========================================================================
   Prominent Progress Dashboard (Overall + Per-Category Progress)
   ========================================================================== */
.sidebar-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
}

.category-summary-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-overall-hero {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-overall-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.sidebar-kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.sidebar-overall-numbers {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.sidebar-overall-pct {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 0.95;
  background: var(--gradient-progress);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sidebar-overall-fraction {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sidebar-todo-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 46, 147, 0.16);
  border: 1px solid rgba(255, 46, 147, 0.45);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sidebar-overall-bar {
  height: 12px;
  background: var(--bg-primary);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.sidebar-overall-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-progress);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(255, 46, 147, 0.5);
  transition: width 0.25s ease;
}

.sidebar-section-label {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-top: 4px;
}

.category-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 560px) and (max-width: 1023px) {
  .category-summary-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

.cat-summary-row {
  width: 100%;
  text-align: left;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.12s ease;
}

.cat-summary-row:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.cat-summary-row.complete {
  border-color: rgba(16, 232, 152, 0.4);
}

.cat-summary-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.94rem;
}

.cat-summary-name {
  color: var(--text-primary);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-summary-stats {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.cat-summary-pct {
  color: var(--accent-gold);
  font-size: 0.9rem;
  font-weight: 800;
}

.cat-summary-row.complete .cat-summary-pct {
  color: var(--accent-green);
}

.cat-summary-count {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
}

.cat-summary-bar {
  height: 9px;
  background: var(--bg-primary);
  border-radius: 999px;
  overflow: hidden;
}

.cat-summary-fill {
  height: 100%;
  background: var(--gradient-progress);
  width: 0%;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.cat-summary-row.complete .cat-summary-fill {
  background: var(--accent-green);
}

/* ==========================================================================
   Expanded SEO & Disclaimer Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding: 36px 0;
  margin-top: 32px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-seo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
  .footer-seo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.footer-col h2 {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.footer-col p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.footer-col strong {
  color: var(--text-primary);
  font-weight: 600;
}

.footer-col code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  background: var(--bg-tertiary);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--accent-cyan);
}

.footer-disclaimers {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.73rem;
  color: var(--text-muted);
}

.footer-disclaimers strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  font-size: 0.75rem;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-inner a {
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.footer-inner a:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   Modals, Buttons & Toast
   ========================================================================== */
.btn-ghost {
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
}

.btn-primary {
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  cursor: pointer;
}

.btn-danger-solid {
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--accent-danger);
  color: #fff;
  border: none;
  cursor: pointer;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 11, 16, 0.76);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 420px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-header h2 {
  font-size: 0.98rem;
}

.btn-icon-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.modal-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.save-string-textarea {
  width: 100%;
  min-height: 70px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  color: var(--text-primary);
  resize: vertical;
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.gear-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gear-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  text-decoration: none;
}

.gear-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

.gear-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}

.gear-cta {
  color: var(--text-secondary);
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-details {
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.faq-details summary {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

.faq-details p {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.toast-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 120;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
}
