/* ==========================================================================
   2048 Pro Edition - Designed by Kitaab Paglu
   Multi-Theme System (AMOLED, Light, Cyberpunk, Classic) & Feature Styles
   ========================================================================== */

/* Theme Variables Definition */
:root {
  /* Default AMOLED Dark Theme */
  --bg-gradient: #000000;
  --panel-bg: rgba(18, 18, 26, 0.85);
  --panel-border: rgba(255, 255, 255, 0.12);
  --grid-bg: rgba(26, 26, 36, 0.95);
  --cell-bg: rgba(255, 255, 255, 0.05);
  
  --primary-accent: #6366f1;
  --primary-hover: #4f46e5;
  --brand-color: #f59e0b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --card-bg: #12121a;

  --title-gradient: linear-gradient(135deg, #fbbf24, #f59e0b, #edc22e);

  /* Game Board Sizing */
  --board-size: 460px;
  --grid-gap: 12px;
  --grid-padding: 12px;
  --cell-size: calc((var(--board-size) - (var(--grid-padding) * 2) - (var(--grid-gap) * 3)) / 4);
  --border-radius: 14px;
}

/* 1. Light Theme */
[data-theme="light"] {
  --bg-gradient: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  --panel-bg: rgba(255, 255, 255, 0.85);
  --panel-border: rgba(0, 0, 0, 0.08);
  --grid-bg: #bbada0;
  --cell-bg: rgba(238, 228, 218, 0.35);
  
  --primary-accent: #3b82f6;
  --primary-hover: #2563eb;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --card-bg: #ffffff;
  --title-gradient: linear-gradient(135deg, #d97706, #f59e0b);
}

/* 2. Cyberpunk Theme */
[data-theme="cyberpunk"] {
  --bg-gradient: linear-gradient(135deg, #090d16 0%, #150d2a 100%);
  --panel-bg: rgba(20, 15, 38, 0.85);
  --panel-border: rgba(236, 72, 153, 0.3);
  --grid-bg: rgba(15, 23, 42, 0.95);
  --cell-bg: rgba(236, 72, 153, 0.1);
  
  --primary-accent: #ec4899;
  --primary-hover: #db2777;
  --text-main: #00f0ff;
  --text-muted: #a855f7;
  --card-bg: #150d2a;
  --title-gradient: linear-gradient(135deg, #00f0ff, #ec4899);
}

/* 3. Classic 2048 Theme */
[data-theme="classic"] {
  --bg-gradient: #faf8ef;
  --panel-bg: rgba(250, 248, 239, 0.95);
  --panel-border: rgba(187, 173, 160, 0.2);
  --grid-bg: #bbada0;
  --cell-bg: rgba(238, 228, 218, 0.35);
  
  --primary-accent: #8f7a66;
  --primary-hover: #776e65;
  --text-main: #776e65;
  --text-muted: #9f968d;
  --card-bg: #ffffff;
  --title-gradient: linear-gradient(135deg, #776e65, #8f7a66);
}

/* Mobile Responsiveness */
@media (max-width: 520px) {
  :root {
    --board-size: 340px;
    --grid-gap: 8px;
    --grid-padding: 8px;
    --border-radius: 10px;
  }
}

@media (max-width: 380px) {
  :root {
    --board-size: 290px;
    --grid-gap: 6px;
    --grid-padding: 6px;
  }
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  overflow-x: hidden;
  position: relative;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Canvas overlay for particles */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99;
}

.app-wrapper {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 1;
}

/* Top Quick Toolbar Navigation */
.top-nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 4px;
}

.nav-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-btn {
  background: var(--panel-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--border-radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  position: relative;
}

.nav-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary-accent);
}

.nav-btn-badge {
  font-size: 0.85rem;
  padding: 6px 12px;
}

.btn-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  position: absolute;
  top: 4px;
  right: 4px;
}

/* Header */
.header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  flex-direction: column;
}

.game-title {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(245, 158, 11, 0.3));
}

.game-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.brand-highlight {
  color: #38bdf8;
  font-weight: 700;
}

/* Score Display Boxes */
.scores-wrapper {
  display: flex;
  gap: 8px;
}

.score-box {
  position: relative;
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border);
  padding: 6px 14px;
  border-radius: var(--border-radius);
  min-width: 80px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.score-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.score-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.score-addition {
  position: absolute;
  top: -10px;
  right: 50%;
  transform: translateX(50%);
  font-size: 1rem;
  font-weight: 800;
  color: #4ade80;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.score-addition.show {
  animation: floatUp 0.8s ease-out forwards;
}

@keyframes floatUp {
  0% { opacity: 1; transform: translate(50%, 0); }
  100% { opacity: 0; transform: translate(50%, -28px); }
}

/* Target Selector & Controls Bar */
.controls-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.target-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.target-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.target-select {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 10px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
  border-radius: var(--border-radius);
  cursor: pointer;
  outline: none;
}

.btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-accent), var(--primary-hover));
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Undo & Redo Action Bar */
.undo-redo-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  padding: 6px 12px;
  border-radius: var(--border-radius);
}

.btn-action {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--panel-border);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

.btn-action:not(:disabled):hover {
  background: var(--primary-accent);
  color: #ffffff;
}

.cost-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.cost-badge.penalty {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.passes-info {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Game Board Container */
.game-container-wrapper {
  position: relative;
  width: var(--board-size);
  height: var(--board-size);
}

.game-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--grid-bg);
  backdrop-filter: blur(16px);
  border: 2px solid var(--panel-border);
  border-radius: calc(var(--border-radius) * 1.5);
  padding: var(--grid-padding);
  touch-action: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.05);
}

/* Grid Cells Background */
.grid-container {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
  width: 100%;
  height: 100%;
}

.grid-row {
  display: flex;
  gap: var(--grid-gap);
  width: 100%;
  height: var(--cell-size);
}

.grid-cell {
  width: var(--cell-size);
  height: var(--cell-size);
  background: var(--cell-bg);
  border-radius: var(--border-radius);
}

/* Dynamic Tile Container */
.tile-container {
  position: absolute;
  top: var(--grid-padding);
  left: var(--grid-padding);
  right: var(--grid-padding);
  bottom: var(--grid-padding);
  pointer-events: none;
}

.tile {
  position: absolute;
  width: var(--cell-size);
  height: var(--cell-size);
  border-radius: var(--border-radius);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  font-size: 1.9rem;
  transition: transform 0.14s ease-in-out;
  will-change: transform;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  user-select: none;
  -webkit-user-select: none;
}

.tile-new { animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.tile-merged { z-index: 20; animation: bounceMerge 0.22s ease-in-out forwards; }

@keyframes popIn {
  0% { opacity: 0; transform: scale(0) var(--pos-transform); }
  100% { opacity: 1; transform: scale(1) var(--pos-transform); }
}

@keyframes bounceMerge {
  0% { transform: scale(1) var(--pos-transform); }
  50% { transform: scale(1.18) var(--pos-transform); }
  100% { transform: scale(1) var(--pos-transform); }
}

/* Tile Value Colors */
.tile-2 { background: #eee4da; color: #776e65; }
.tile-4 { background: #ede0c8; color: #776e65; }
.tile-8 { background: #f2b179; color: #f9f6f2; }
.tile-16 { background: #f59563; color: #f9f6f2; }
.tile-32 { background: #f67c5f; color: #f9f6f2; }
.tile-64 { background: #f65e3b; color: #f9f6f2; }
.tile-128 { background: #edcf72; color: #f9f6f2; font-size: 1.6rem; box-shadow: 0 0 16px rgba(237, 207, 114, 0.5); }
.tile-256 { background: #edcc61; color: #f9f6f2; font-size: 1.6rem; box-shadow: 0 0 20px rgba(237, 204, 97, 0.6); }
.tile-512 { background: #edc850; color: #f9f6f2; font-size: 1.6rem; box-shadow: 0 0 24px rgba(237, 200, 80, 0.7); }
.tile-1024 { background: #edc53f; color: #f9f6f2; font-size: 1.3rem; box-shadow: 0 0 28px rgba(237, 197, 63, 0.8); }
.tile-2048 {
  background: linear-gradient(135deg, #edc22e, #f59e0b, #fbbf24);
  color: #ffffff;
  font-size: 1.3rem;
  box-shadow: 0 0 35px rgba(237, 194, 46, 0.9);
  animation: glowPulse 2s infinite alternate;
}
@keyframes glowPulse {
  0% { box-shadow: 0 0 25px rgba(237, 194, 46, 0.7); }
  100% { box-shadow: 0 0 45px rgba(251, 191, 36, 1); }
}
.tile-super { background: #3c3a32; color: #f9f6f2; font-size: 1.2rem; }

/* Milestone Banner */
.milestone-banner {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%) translateY(-50px);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #000000;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 6px 16px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 50;
}

.milestone-banner.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Game Message Overlay Modal */
.game-message {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border-radius: calc(var(--border-radius) * 1.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.game-message.show { opacity: 1; pointer-events: auto; }

.message-content { text-align: center; padding: 24px; }
.message-icon { font-size: 3.5rem; margin-bottom: 8px; }
.message-title { font-size: 2rem; font-weight: 900; color: #ffffff; margin-bottom: 8px; }
.message-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }
.message-buttons { display: flex; gap: 12px; justify-content: center; }

/* D-Pad Controls */
.dpad-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.dpad-middle { display: flex; align-items: center; gap: 4px; }
.dpad-center { width: 40px; height: 40px; }

.dpad-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
  display: flex; justify-content: center; align-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dpad-btn:active { background: var(--primary-accent); transform: scale(0.92); }

@media (min-width: 768px) {
  .dpad-container { display: none; }
}

.game-footer { width: 100%; text-align: center; margin-top: 4px; }
.copyright { font-size: 0.75rem; color: var(--text-muted); }

/* ==================== MODALS GENERAL STYLING ==================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.show { opacity: 1; pointer-events: auto; }

.modal-card {
  background: var(--card-bg);
  border: 1px solid var(--panel-border);
  width: 100%;
  max-width: 460px;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-overlay.show .modal-card { transform: translateY(0); }

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 { font-size: 1.25rem; font-weight: 800; color: var(--text-main); }
.modal-close { background: none; border: none; font-size: 1.5rem; color: var(--text-muted); cursor: pointer; }
.modal-close:hover { color: var(--text-main); }

.modal-body { padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }

/* Rules Modal */
.rule-item { display: flex; gap: 14px; align-items: flex-start; }
.rule-icon { font-size: 1.5rem; }
.rule-item h3 { font-size: 0.95rem; font-weight: 700; color: var(--text-main); }
.rule-item p { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; line-height: 1.3; }
.rule-sub { color: #f87171 !important; margin-top: 4px; font-weight: 600; }

/* Daily Streak Modal */
.streak-header-info {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  padding: 14px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.streak-badge { display: flex; align-items: center; gap: 10px; }
.streak-fire { font-size: 2rem; }
.streak-count-val { font-size: 1.1rem; font-weight: 800; color: var(--text-main); }
.streak-sub { font-size: 0.75rem; color: var(--text-muted); }

.section-subtitle { font-size: 0.9rem; font-weight: 800; color: var(--text-main); margin-top: 6px; }

.streak-days-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.streak-day-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  padding: 8px 4px;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.streak-day-card.active { border-color: var(--brand-color); background: rgba(245, 158, 11, 0.15); color: var(--text-main); }
.streak-day-card.claimed { border-color: #22c55e; background: rgba(34, 197, 94, 0.15); }

/* Shop Item */
.shop-item {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  padding: 12px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.shop-info { display: flex; align-items: center; gap: 10px; }
.shop-icon { font-size: 1.8rem; }
.shop-title { font-size: 0.9rem; font-weight: 700; color: var(--text-main); }
.shop-desc { font-size: 0.75rem; color: var(--text-muted); }

/* Daily Challenge Modal */
.challenge-card { text-align: center; padding: 10px 0; }
.challenge-icon { font-size: 3rem; margin-bottom: 8px; }
.progress-bar-wrapper {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  margin-top: 16px;
  overflow: hidden;
}
.progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, #6366f1, #22c55e); transition: width 0.3s ease; }
.progress-text { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); margin-top: 4px; display: block; }

/* Leaderboard Modal */
.table-intro { font-size: 0.85rem; color: var(--text-muted); }
.table-container { overflow-x: auto; }
.leaderboard-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.85rem; }
.leaderboard-table th { padding: 10px; color: var(--text-muted); border-bottom: 1px solid var(--panel-border); font-size: 0.75rem; }
.leaderboard-table td { padding: 10px; border-bottom: 1px solid var(--panel-border); color: var(--text-main); }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-box { background: var(--panel-bg); border: 1px solid var(--panel-border); padding: 12px; border-radius: 12px; text-align: center; }
.stat-num { font-size: 1.4rem; font-weight: 800; color: var(--text-main); display: block; }
.stat-lbl { font-size: 0.75rem; color: var(--text-muted); font-weight: 700; }

/* ==========================================================================
   ELEGANT COLLAPSIBLE ACCORDION STYLING FOR SEO CONTENT
   ========================================================================== */
.seo-article-content {
  width: 100%;
  max-width: 500px;
  margin-top: 24px;
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.seo-intro-header {
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 12px;
  margin-bottom: 4px;
}

.seo-main-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.seo-main-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.collapsible-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.seo-collapsible {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.seo-collapsible[open] {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--primary-accent);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.15);
}

.collapsible-header {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.collapsible-header::-webkit-details-marker {
  display: none;
}

.header-title-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.collapsible-icon {
  font-size: 1.2rem;
}

.collapsible-header h2 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

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

.seo-collapsible[open] .chevron-icon {
  transform: rotate(180deg);
  color: var(--primary-accent);
}

.collapsible-body {
  padding: 0 16px 16px 16px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
  margin-top: 2px;
}

.collapsible-body p {
  margin-bottom: 10px;
}

.collapsible-body p:last-child {
  margin-bottom: 0;
}

.collapsible-body a {
  color: #38bdf8;
  text-decoration: underline;
  font-weight: 700;
}

.collapsible-body a:hover {
  color: var(--primary-accent);
}

.article-list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 10px;
}

.article-list.decimal {
  list-style: decimal;
}

.article-list li {
  margin-bottom: 6px;
}

/* FAQ List inside collapsible */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 10px 12px;
}

.faq-item h3 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.faq-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* SEO Footer Navigation */
.seo-footer {
  width: 100%;
  max-width: 500px;
  margin-top: 16px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--text-main);
}

.seo-page-wrapper {
  max-width: 600px;
}

.brand-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
