/* ==========================================================================
   TrailSense AI — Touch Grass & Nature Exploration Design System
   ========================================================================== */

:root {
  --bg-primary: #070e0a;
  --bg-secondary: #0d1a14;
  --bg-tertiary: #14281e;
  --bg-card: rgba(13, 26, 20, 0.75);
  --bg-card-hover: rgba(20, 40, 30, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(52, 211, 153, 0.3);
  
  --emerald: #10b981;
  --mint: #34d399;
  --amber: #f59e0b;
  --terracotta: #f97316;
  --sky: #38bdf8;
  --gold: #fbbf24;
  
  --text-main: #f0fdf4;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 35px 0 rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 25px rgba(52, 211, 153, 0.2);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* Ambient Nature Glow Orbs */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
}
.glow-forest {
  top: -15%;
  left: -10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--emerald), transparent);
}
.glow-sunlight {
  bottom: 0%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--amber), transparent);
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 2.5rem;
  background: rgba(7, 14, 10, 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(245, 158, 11, 0.2));
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.25);
  font-size: 1.3rem;
}

.brand-title {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.badge-tag {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--mint), var(--amber));
  color: #070e0a;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(13, 26, 20, 0.8);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: #a7f3d0;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

/* ==========================================================================
   Buttons & General Controls
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald), #059669);
  color: #fff;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.5);
}

.btn-emerald {
  background: linear-gradient(135deg, var(--mint), var(--emerald));
  color: #070e0a;
  font-weight: 700;
}
.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 211, 153, 0.4);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.btn-danger {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
}
.btn-danger:hover {
  background: #f43f5e;
  color: #fff;
}

.btn-large {
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.btn-subtext {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.85;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-strip {
  position: relative;
  z-index: 10;
  padding: 2rem 2rem 1.25rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mint);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.65rem;
}
.hero-title em {
  font-style: normal;
  color: var(--mint);
  text-decoration: underline;
  text-decoration-color: rgba(52, 211, 153, 0.4);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
}
.hero-desc strong {
  color: var(--text-main);
}

/* ==========================================================================
   Main Workstation Layout
   ========================================================================== */

.main-container {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 1.75rem;
  padding: 1rem 2.5rem 3rem;
  flex: 1;
}

.card-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.card-panel:hover {
  border-color: rgba(52, 211, 153, 0.2);
}

.card-header {
  padding: 1.25rem 1.5rem;
  background: rgba(13, 26, 20, 0.6);
  border-bottom: 1px solid var(--border-subtle);
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.icon-bubble {
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-subtitle {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Planner Form Sections */
.form-section {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--mint);
  letter-spacing: 0.03em;
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.choice-card {
  background: rgba(20, 40, 30, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}
.choice-card:hover {
  background: rgba(20, 40, 30, 0.7);
  border-color: rgba(52, 211, 153, 0.3);
  transform: translateY(-2px);
}
.choice-card.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--mint);
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.15);
}

.choice-icon {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.choice-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

.choice-desc {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

/* Duration Pills */
.duration-pills {
  display: flex;
  gap: 0.6rem;
}

.pill-btn {
  flex: 1;
  background: rgba(20, 40, 30, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  padding: 0.55rem 0.65rem;
  font-size: 0.775rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}
.pill-btn:hover {
  color: var(--text-main);
  background: rgba(20, 40, 30, 0.8);
}
.pill-btn.active {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--amber);
  color: var(--amber);
}

/* Sensory Chips */
.sensory-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-btn {
  background: rgba(20, 40, 30, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.chip-btn:hover {
  color: var(--text-main);
}
.chip-btn.active {
  background: rgba(52, 211, 153, 0.15);
  border-color: var(--mint);
  color: var(--mint);
}

.action-footer {
  padding: 1.25rem 1.5rem;
  background: rgba(7, 14, 10, 0.5);
}

/* Pocket Mode Card */
.pocket-mode-card {
  margin: 1.25rem 1.5rem 1.5rem;
  background: linear-gradient(135deg, rgba(20, 40, 30, 0.8), rgba(13, 26, 20, 0.9));
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.pocket-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.pocket-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
  animation: beacon 1.5s infinite;
}

@keyframes beacon {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.pocket-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--mint);
}

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

.timer-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}

#timerCountdown {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Right Panel Tabs & Quest Display
   ========================================================================== */

.tab-header {
  display: flex;
  background: rgba(13, 26, 20, 0.6);
  border-bottom: 1px solid var(--border-subtle);
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.4rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}
.tab-btn.active {
  color: var(--mint);
  border-bottom-color: var(--mint);
  background: rgba(52, 211, 153, 0.08);
}

.tab-content {
  display: none;
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  max-height: 700px;
}
.tab-content.active {
  display: block;
}

/* Quest Banner */
.quest-banner {
  background: linear-gradient(135deg, rgba(20, 40, 30, 0.6), rgba(13, 26, 20, 0.7));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.quest-meta-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.quest-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(52, 211, 153, 0.15);
  color: var(--mint);
  border: 1px solid rgba(52, 211, 153, 0.3);
}
.quest-badge.time-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.3);
}
.quest-badge.ai-badge {
  background: rgba(56, 189, 248, 0.15);
  color: var(--sky);
  border-color: rgba(56, 189, 248, 0.3);
}

.quest-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  color: #fff;
}

.quest-theme {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Challenges Cards */
.challenges-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.challenge-card {
  background: rgba(7, 14, 10, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  gap: 1rem;
  transition: var(--transition);
}
.challenge-card:hover {
  border-color: rgba(52, 211, 153, 0.3);
  transform: translateY(-1px);
}

.challenge-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(52, 211, 153, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.challenge-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}
.challenge-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Mindfulness Card */
.mindfulness-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(13, 26, 20, 0.6));
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.mindfulness-icon {
  font-size: 2rem;
}

.mindfulness-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 0.25rem;
}

.mindfulness-text {
  font-size: 0.825rem;
  color: #cbd5e1;
  line-height: 1.5;
}

/* Log Findings Box */
.log-findings-box {
  background: rgba(7, 14, 10, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.log-findings-box h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--mint);
}
.log-findings-box textarea {
  width: 100%;
  min-height: 75px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 0.75rem;
  font-family: inherit;
  font-size: 0.85rem;
  resize: vertical;
  outline: none;
}
.log-findings-box textarea:focus {
  border-color: var(--mint);
}

/* ==========================================================================
   Field Guide Grid
   ========================================================================== */

.guide-intro {
  margin-bottom: 1.25rem;
}
.guide-intro h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}
.guide-intro p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.guide-card {
  background: rgba(7, 14, 10, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: var(--transition);
}
.guide-card:hover {
  border-color: rgba(52, 211, 153, 0.3);
  transform: translateY(-2px);
}

.guide-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.guide-specie-icon {
  font-size: 1.8rem;
}
.guide-category {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  color: var(--text-dim);
}

.guide-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}
.guide-botanical {
  font-size: 0.75rem;
  font-style: italic;
  color: var(--mint);
}
.guide-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.guide-trait-tag {
  font-size: 0.7rem;
  color: var(--amber);
  background: rgba(245, 158, 11, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* ==========================================================================
   Nature Journal
   ========================================================================== */

.journal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}
.journal-header h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}
.journal-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.streak-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--mint);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.streak-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--mint);
  line-height: 1;
}
.streak-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.journal-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.journal-entry-card {
  background: rgba(7, 14, 10, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.journal-date-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.journal-quest-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.journal-notes {
  font-size: 0.85rem;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--mint);
}

/* ==========================================================================
   Modal Dialog
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: modalEnter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(7, 14, 10, 0.6);
  border-bottom: 1px solid var(--border-subtle);
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.btn-close:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.modal-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-group input, .form-group select {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 0.6rem 0.85rem;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.15);
}

.form-help {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.test-connection-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 0.5rem;
}

.test-feedback {
  font-size: 0.8rem;
  font-weight: 600;
}

.modal-footer {
  padding: 1rem 1.5rem;
  background: rgba(7, 14, 10, 0.6);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
}

/* Spinner */
.spin-icon {
  animation: spin 1s linear infinite;
}
.spin-icon.hidden {
  display: none;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Responsive Queries */
@media (max-width: 1024px) {
  .main-container {
    grid-template-columns: 1fr;
    padding: 1rem 1.5rem 3rem;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
}
