/* ==========================================================================
   AfikRubik - Minimalist Black & White Speedcubing Trainer
   Modern, high-contrast monochrome design system.
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas, Menlo, monospace;

  /* Dark Theme (Default) */
  --bg-primary: #09090b;
  --bg-surface: #121214;
  --bg-surface-elevated: #18181b;
  --bg-surface-hover: #202024;
  --border-color: #27272a;
  --border-subtle: #1e1e24;
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #ffffff;
  --accent-inverse: #000000;

  /* SVG & Cube Sticker Palette (Monochrome) */
  --sticker-bg: #1c1c20;
  --sticker-border: #3f3f46;
  --sticker-oriented: #ffffff;
  --sticker-unoriented: #202025;
  --sticker-side: #ffffff;
  --arrow-color: #ffffff;
  --timer-ready: #ffffff;
  --timer-running: #f4f4f5;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.7);
  --transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-surface: #f4f4f5;
  --bg-surface-elevated: #ffffff;
  --bg-surface-hover: #e4e4e7;
  --border-color: #e4e4e7;
  --border-subtle: #ebebef;
  --text-primary: #09090b;
  --text-secondary: #52525b;
  --text-muted: #a1a1aa;
  --accent: #000000;
  --accent-inverse: #ffffff;

  --sticker-bg: #f4f4f5;
  --sticker-border: #d4d4d8;
  --sticker-oriented: #000000;
  --sticker-unoriented: #e4e4e7;
  --sticker-side: #000000;
  --arrow-color: #000000;
  --timer-ready: #000000;
  --timer-running: #18181b;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.app-header {
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-primary);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-icon {
  width: 32px;
  height: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border-color);
  padding: 2px;
  border-radius: var(--radius-sm);
}

.brand-logo-icon span {
  background: var(--text-primary);
  border-radius: 1px;
}
.brand-logo-icon span:nth-child(2) {
  opacity: 0.4;
}

h1.app-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
}

.tagline-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Navigation Tabs */
.nav-tab-bar {
  display: flex;
  overflow-x: auto;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  scrollbar-width: none;
}
.nav-tab-bar::-webkit-scrollbar {
  display: none;
}

.nav-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.nav-tab-btn.active {
  color: var(--accent-inverse);
  background: var(--accent);
  border-color: var(--accent);
}

/* Tab Views */
.tab-view {
  display: none;
  padding: 2rem 0 4rem;
}
.tab-view.active {
  display: block;
}

/* Section Header */
.section-header {
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  max-width: 720px;
}

/* Controls Bar (Search & Filter) */
.controls-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.search-input-wrap {
  flex: 1;
  min-width: 240px;
}

.search-input {
  width: 100%;
  padding: 0.5rem 0.875rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.875rem;
  transition: var(--transition);
}

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

.filter-select {
  padding: 0.5rem 0.875rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}
.filter-select:focus {
  outline: none;
  border-color: var(--text-primary);
}

.case-count-badge {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Grid Layout for Cases */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

/* Case Card */
.case-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.case-card:hover {
  transform: translateY(-2px);
  border-color: var(--text-muted);
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.card-title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-2look {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  background: var(--text-primary);
  color: var(--accent-inverse);
  letter-spacing: 0.05em;
}

.mastery-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
}
.mastery-indicator.status-mastered {
  background: var(--text-primary);
  box-shadow: 0 0 6px var(--text-primary);
}
.mastery-indicator.status-learning {
  background: var(--text-muted);
}

.card-svg-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
  min-height: 120px;
}

.card-body {
  margin-top: 0.5rem;
  flex: 1;
}

.card-group {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.card-alg {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-primary);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  word-break: break-word;
}

.card-footer {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.btn-subtle {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-subtle:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

/* ==========================================================================
   TRAINER MODE STYLES
   ========================================================================== */
.trainer-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.trainer-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.trainer-puzzle-picker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trainer-puzzle-picker label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.trainer-grid-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
}

@media (max-width: 860px) {
  .trainer-grid-layout {
    grid-template-columns: 1fr;
  }
}

/* Flashcard Box */
.flashcard-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.flashcard-meta {
  margin-bottom: 1.25rem;
}

.flashcard-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.flashcard-group {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.flashcard-setup {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: var(--bg-primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.flashcard-svg-container {
  width: 180px;
  height: 180px;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flashcard-svg-container svg {
  width: 100%;
  height: 100%;
}

.flashcard-alg-box {
  width: 100%;
  max-width: 520px;
  margin-bottom: 1.5rem;
}

.flashcard-alg-text {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--bg-primary);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  user-select: all;
}

.flashcard-alg-text.blurred-alg {
  color: var(--text-muted);
  letter-spacing: 0.2em;
  filter: blur(4px);
  user-select: none;
}

.flashcard-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-inverse);
  border: 1px solid var(--accent);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}
.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--text-muted);
}

/* Timer Box */
.timer-box {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transition: var(--transition);
  position: relative;
  min-height: 220px;
}

.timer-box:hover {
  border-color: var(--text-muted);
}

.timer-display {
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.timer-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Timer Status Colors */
.timer-box.status-holding {
  border-color: #71717a;
  background: #18181b;
}
.timer-box.status-holding .timer-display {
  color: #71717a;
}

.timer-box.status-ready {
  border-color: var(--accent);
  background: var(--bg-surface-hover);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}
.timer-box.status-ready .timer-display {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.timer-box.status-running {
  border-color: var(--accent);
  background: var(--bg-primary);
}
.timer-box.status-running .timer-display {
  color: var(--text-primary);
}

.timer-box.status-stopped {
  border-color: var(--border-color);
}

/* Side Stats Panel */
.stats-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.stats-panel-title {
  font-size: 1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.stats-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.metric-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  text-align: center;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.25rem;
}

.history-section {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.history-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.history-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 220px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.5rem;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.hist-idx {
  color: var(--text-muted);
  font-size: 0.75rem;
  width: 32px;
}

.hist-case {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 0.5rem;
}

.hist-time {
  font-weight: 700;
  color: var(--text-primary);
}

.stats-actions {
  margin-top: auto;
}

/* ==========================================================================
   SVG CUBE GRAPHICS SYSTEM
   ========================================================================== */
.cube-svg {
  width: 100px;
  height: 100px;
  display: block;
}

.svg-bg {
  fill: var(--sticker-bg);
  stroke: var(--border-color);
  stroke-width: 1;
}

/* OLL stickers */
.sticker-oriented {
  fill: var(--sticker-oriented);
  stroke: var(--sticker-border);
  stroke-width: 1.5;
}

.sticker-unoriented {
  fill: var(--sticker-unoriented);
  stroke: var(--sticker-border);
  stroke-width: 1.5;
}

.sticker-side-active {
  fill: var(--sticker-side);
  stroke: none;
}

/* PLL stickers */
.sticker-pll-face {
  fill: var(--sticker-oriented);
  stroke: var(--sticker-border);
  stroke-width: 1.5;
}

.pll-bar-indicator {
  fill: var(--text-primary);
}

.pll-arrow {
  stroke: var(--arrow-color);
  stroke-width: 2.5;
  stroke-linecap: round;
  fill: none;
}

.pll-arrow-bidirectional {
  stroke: var(--arrow-color);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 4, 3;
}

.arrow-head {
  fill: var(--arrow-color);
}

.arrow-dot {
  fill: var(--arrow-color);
}

/* 2x2 Ortega PBL SVG */
.pbl-layer-block {
  fill: var(--sticker-bg);
  stroke: var(--sticker-border);
  stroke-width: 2;
}

.pbl-divider {
  stroke: var(--sticker-border);
  stroke-width: 2;
  stroke-dasharray: 3, 2;
}

.pbl-mid-sep {
  stroke: var(--border-color);
  stroke-width: 2;
}

.pbl-bar-highlight {
  fill: var(--text-primary);
}

.pbl-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  fill: var(--text-primary);
}

.pbl-label-diag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  fill: var(--text-secondary);
}

.pbl-label-solved {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  fill: var(--text-primary);
}

/* Megaminx SVG */
.mega-center-star {
  fill: var(--sticker-oriented);
  stroke: var(--sticker-border);
  stroke-width: 1.5;
}

.mega-edge-oriented {
  fill: var(--sticker-oriented);
  stroke: var(--sticker-border);
  stroke-width: 1.5;
}

.mega-edge-unoriented {
  fill: var(--sticker-unoriented);
  stroke: var(--sticker-border);
  stroke-width: 1.5;
}

.mega-corner-oriented {
  fill: var(--sticker-oriented);
  stroke: var(--sticker-border);
  stroke-width: 1.5;
}

.mega-corner-unoriented {
  fill: var(--sticker-unoriented);
  stroke: var(--sticker-border);
  stroke-width: 1.5;
}

.mega-cycle-arrow {
  stroke: var(--arrow-color);
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}

/* ==========================================================================
   MODAL DIALOG
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 90;
}
.modal-overlay.active {
  display: block;
}

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  overflow-y: auto;
  padding: 1.75rem;
}
.modal.active {
  display: block;
  animation: modalIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%, -46%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}
.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-content-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 520px) {
  .modal-content-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

.modal-svg-wrap {
  width: 140px;
  height: 140px;
}
.modal-svg-wrap svg {
  width: 100%;
  height: 100%;
}

.modal-info-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-alg-block {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  position: relative;
}

.modal-alg-text {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  word-break: break-word;
}

.modal-setup-text {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.modal-section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.alt-algs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.alt-alg-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.btn-copy {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.btn-copy:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

.modal-settings-grid {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.custom-alg-input-row {
  display: flex;
  gap: 0.5rem;
}

.custom-alg-input {
  flex: 1;
  padding: 0.4rem 0.75rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

/* Footer */
.app-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  background: var(--bg-primary);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
}
.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}
.footer-nav a:hover {
  color: var(--text-primary);
}

.empty-state {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.875rem;
  padding: 0.5rem 0;
}
