/* ============================================================
   The Light Park App — Dark Neon Theme
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0B0D14;
  --surface:  #141722;
  --surface2: #1c2033;
  --border:   rgba(255,255,255,0.08);
  --text:     #e8eaf0;
  --muted:    #8890a4;
  --pink:     #ff4fd8;
  --pink-bg:  rgba(255,79,216,0.12);
  --green:    #00e87b;
  --green-bg: rgba(0,232,123,0.12);
  --blue:     #4fa0ff;
  --yellow:   #ffcc00;
  --radius:   12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---- Toast ---- */
.toast {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%) translateY(-100px);
  background: var(--surface2); color: var(--text); border: 1px solid var(--pink);
  padding: 12px 24px; border-radius: 30px; font-size: 0.9em;
  z-index: 9999; transition: transform 0.3s ease; white-space: nowrap;
  box-shadow: 0 4px 20px rgba(255,79,216,0.3);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---- Topbar ---- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: rgba(11,13,20,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink), 0 0 30px rgba(255,79,216,0.4);
}
.brand-title { font-weight: 700; font-size: 0.95em; letter-spacing: 1px; }
.brand-sub { font-size: 0.7em; color: var(--muted); }
.nav { display: flex; gap: 4px; }
.navlink {
  padding: 6px 12px; border-radius: 8px; font-size: 0.8em; font-weight: 600;
  color: var(--muted); text-decoration: none; transition: all 0.2s;
}
.navlink.active { color: var(--pink); background: var(--pink-bg); }
.navlink:hover { color: var(--text); }

/* ---- Container ---- */
.container { max-width: 600px; margin: 0 auto; padding: 16px; }

/* ---- Panels ---- */
.panel h1 { font-size: 1.4em; margin-bottom: 8px; }
.panel h2 { font-size: 1em; color: var(--muted); margin: 24px 0 8px; text-transform: uppercase; letter-spacing: 1px; }
.muted { color: var(--muted); font-size: 0.88em; line-height: 1.5; margin-bottom: 12px; }

/* ---- Cards (Site selection) ---- */
.grid { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.card {
  display: block; width: 100%; text-align: left;
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  cursor: pointer; transition: all 0.2s; -webkit-appearance: none;
  color: var(--text); font-family: inherit;
}
.card:active { transform: scale(0.98); }
.card.selected { border-color: var(--pink); background: var(--pink-bg); }
.card-title { font-weight: 700; font-size: 1em; margin-bottom: 2px; }
.card-sub { font-size: 0.82em; color: var(--muted); }
.pill {
  display: inline-block; margin-top: 6px; padding: 2px 10px;
  border-radius: 20px; font-size: 0.7em; font-weight: 600;
  background: var(--pink-bg); color: var(--pink);
}

/* ---- Song list ---- */
.song-list { margin-bottom: 12px; }
.song-row {
  background: var(--surface); border-radius: 8px; padding: 10px 14px; margin-bottom: 6px;
  border: 1px solid var(--border);
}
.song-title { display: block; font-weight: 600; font-size: 0.92em; }
.song-sub { display: block; font-size: 0.78em; color: var(--muted); margin-top: 2px; }
.song-meta { display: block; font-size: 0.72em; color: var(--muted); margin-top: 4px; }

/* ---- Progress bar ---- */
.progress-wrap {
  width: 100%; height: 6px; background: var(--surface2);
  border-radius: 3px; overflow: hidden; margin: 8px 0;
}
.progress-wrap.big { height: 8px; margin: 12px 0; }
.progress-bar {
  height: 100%; width: 0%; border-radius: 3px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transition: width 0.3s;
}
.progress-bar.pink { background: linear-gradient(90deg, var(--pink), #b44fff); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 10px; font-size: 0.88em; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.2s;
  font-family: inherit; color: var(--text);
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.primary { background: var(--pink); color: #fff; }
.btn.primary:hover:not(:disabled) { box-shadow: 0 0 16px rgba(255,79,216,0.5); }
.btn.secondary { background: var(--surface2); border: 1px solid var(--border); }
.btn.ghost { background: transparent; color: var(--muted); font-size: 0.82em; }
.btn.big-btn { padding: 14px 28px; font-size: 1.1em; }
.btn.armed { background: var(--green-bg); color: var(--green); border: 1px solid var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(0,232,123,0.4); } 50% { box-shadow: 0 0 20px 4px rgba(0,232,123,0.2); } }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.btn-row.center { justify-content: center; }

/* ---- Status ---- */
.status-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.label { font-size: 0.82em; color: var(--muted); font-weight: 600; }
.value { font-weight: 600; }
.status-text { font-size: 0.85em; color: var(--muted); margin: 8px 0; }

/* ---- Player ---- */
.player-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 20px; text-align: center;
  margin: 12px 0;
}
.now-playing { font-size: 1.2em; font-weight: 700; margin-bottom: 4px; }
.now-playing-sub { font-size: 0.85em; color: var(--muted); margin-bottom: 16px; }
.player-time { font-size: 0.85em; color: var(--muted); margin-bottom: 12px; font-variant-numeric: tabular-nums; }

/* ---- Settings ---- */
.setting-group { margin-bottom: 24px; }
.input-row { display: flex; gap: 8px; }
.input {
  flex: 1; padding: 10px 14px; border-radius: 8px; font-size: 0.9em;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-family: inherit;
}
.hint { font-size: 0.78em; color: var(--muted); margin-top: 4px; }
.how-it-works { padding-left: 20px; font-size: 0.88em; line-height: 1.8; color: var(--muted); }
.how-it-works strong { color: var(--text); }
.codeblock {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px; font-size: 0.8em; overflow-x: auto;
  white-space: pre-wrap; color: var(--muted);
}

/* ---- Footer ---- */
.footer { text-align: center; padding: 20px 0 40px; }

/* ---- Fun Zone ---- */
.fun-tabs {
  display: flex; gap: 8px; margin: 16px 0;
}
.fun-tab {
  flex: 1; padding: 10px 16px; border-radius: 10px; font-size: 0.88em; font-weight: 600;
  background: var(--surface); border: 2px solid var(--border);
  color: var(--muted); cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.fun-tab.active {
  background: var(--pink-bg); border-color: var(--pink); color: var(--pink);
}
.fun-tab:active { transform: scale(0.97); }

.fun-section { margin-top: 20px; }

/* ---- Trivia Game ---- */
.trivia-welcome { text-align: center; padding: 40px 20px; }
.trivia-welcome h2 { font-size: 1.3em; margin-bottom: 12px; color: var(--text); }

.trivia-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: var(--surface); border-radius: var(--radius);
  margin-bottom: 16px; border: 1px solid var(--border);
}
.trivia-score { font-weight: 700; color: var(--green); }
.trivia-progress { font-size: 0.85em; color: var(--muted); }

.trivia-question {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 20px;
  font-size: 1.1em; font-weight: 600; text-align: center;
  margin-bottom: 16px; line-height: 1.5;
}

.trivia-choices { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.trivia-choice {
  width: 100%; padding: 16px 20px; border-radius: 10px;
  background: var(--surface); border: 2px solid var(--border);
  color: var(--text); font-size: 0.95em; font-weight: 500;
  cursor: pointer; transition: all 0.2s; text-align: left;
  font-family: inherit;
}
.trivia-choice:active { transform: scale(0.98); }
.trivia-choice:hover { border-color: var(--pink); background: var(--pink-bg); }
.trivia-choice.correct {
  background: var(--green-bg); border-color: var(--green); color: var(--green);
  animation: correctPulse 0.6s ease;
}
.trivia-choice.wrong {
  background: rgba(255,79,79,0.12); border-color: #ff4f4f; color: #ff4f4f;
  animation: shake 0.4s ease;
}
.trivia-choice.disabled { opacity: 0.5; cursor: default; }

@keyframes correctPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.trivia-feedback {
  background: var(--surface2); border-radius: var(--radius);
  padding: 16px; text-align: center; margin-bottom: 16px;
  border: 1px solid var(--border);
}
.trivia-feedback.correct { border-color: var(--green); background: var(--green-bg); }
.trivia-feedback.wrong { border-color: #ff4f4f; background: rgba(255,79,79,0.12); }

.trivia-complete {
  text-align: center; padding: 40px 20px;
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border);
}
.trivia-complete h2 { margin-bottom: 16px; }
.trivia-final-score {
  font-size: 3em; font-weight: 700; color: var(--pink);
  margin: 20px 0;
  text-shadow: 0 0 20px rgba(255,79,216,0.5);
}
.trivia-message { margin: 16px 0 24px; font-size: 1.1em; }

/* ---- Draw Canvas ---- */
.draw-controls {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap;
}
.color-picker { display: flex; gap: 8px; flex: 1; }
.color-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid var(--border); cursor: pointer;
  transition: all 0.2s; -webkit-appearance: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.color-btn.active {
  border-color: var(--pink); transform: scale(1.15);
  box-shadow: 0 0 16px rgba(255,79,216,0.6);
}
.color-btn:active { transform: scale(0.95); }
.draw-canvas {
  width: 100%; height: 400px; border-radius: var(--radius);
  background: #000; border: 2px solid var(--border);
  cursor: crosshair; touch-action: none;
}

/* ---- Color Picker ---- */
.color-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.color-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.color-pick:active { transform: scale(0.95); }
.color-pick:hover { border-color: var(--c, var(--pink)); }
.color-pick.picked {
  border-color: var(--c, var(--pink));
  box-shadow: 0 0 16px var(--c, var(--pink));
  transform: scale(1.03);
}
.color-swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(255,255,255,0.2);
}
.rainbow-swatch {
  background: linear-gradient(135deg, #ff0000, #ff6600, #ffd700, #00cc00, #0066ff, #aa00ff) !important;
}

.color-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  margin-top: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  animation: fadeIn 0.3s;
}
.color-result-swatch {
  width: 80px; height: 80px;
  border-radius: 50%;
  transition: all 0.3s;
}
.rainbow-swatch-big {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: conic-gradient(#ff0000, #ff6600, #ffd700, #00cc00, #0066ff, #aa00ff, #ff0000);
  animation: rainbowSpin 3s linear infinite;
}
@keyframes rainbowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.color-result-text {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--green);
}

/* Color Leaderboard */
.color-leaderboard {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.color-lb-row {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 44px;
}
.color-lb-bar {
  position: absolute;
  top: 0; left: 0; height: 100%;
  transition: width 0.5s ease;
  z-index: 0;
}
.color-lb-content {
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 100%;
}
.color-lb-swatch {
  width: 18px; height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
}
.color-lb-name {
  flex: 1;
  font-weight: 600;
  font-size: 0.9em;
}
.color-lb-pct {
  font-weight: 700;
  font-size: 0.95em;
  color: var(--pink);
}
.color-lb-count {
  font-size: 0.8em;
  color: var(--muted);
  min-width: 30px;
  text-align: right;
}

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

/* ---- Voting ---- */
.vote-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.vote-option {
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 16px; position: relative;
  overflow: hidden; cursor: pointer; transition: all 0.2s;
}
.vote-option:active { transform: scale(0.98); }
.vote-option:hover { border-color: var(--pink); }
.vote-option.voted { border-color: var(--green); }

.vote-bar {
  position: absolute; top: 0; left: 0; height: 100%;
  background: linear-gradient(90deg, rgba(255,79,216,0.15), rgba(79,160,255,0.15));
  transition: width 0.5s ease; z-index: 0;
}
.vote-content {
  position: relative; z-index: 1; display: flex; justify-content: space-between;
  align-items: center;
}
.vote-label { font-weight: 600; font-size: 1.05em; }
.vote-percent {
  font-weight: 700; font-size: 1.2em; color: var(--pink);
  text-shadow: 0 0 10px rgba(255,79,216,0.5);
}
.vote-count { font-size: 0.8em; color: var(--muted); margin-top: 4px; }

.vote-footer { text-align: center; margin-top: 24px; }

/* ---- Hero / How It Works ---- */
.subtitle {
  color: var(--muted);
  font-size: 1.05em;
  margin-top: -8px;
  margin-bottom: 20px;
}
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}
.hero-card h2 { margin-bottom: 16px; font-size: 1.1em; }
.steps { display: flex; flex-direction: column; gap: 16px; }
.step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.step-num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--pink);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.95em;
  box-shadow: 0 0 12px rgba(255,79,216,0.4);
}
.step strong { display: block; margin-bottom: 2px; }
.step .muted { font-size: 0.85em; }

/* ---- Tune In ---- */
.tune-in-section {
  margin-top: 24px;
  text-align: center;
}
.tune-in-btn {
  width: 100%;
  font-size: 1.2em !important;
  padding: 18px !important;
  background: linear-gradient(135deg, var(--pink), #ff2d2d) !important;
  box-shadow: 0 0 24px rgba(255,79,216,0.3);
  animation: tunePulse 2s ease-in-out infinite;
}
.tune-in-btn:active { transform: scale(0.97); }
@keyframes tunePulse {
  0%, 100% { box-shadow: 0 0 24px rgba(255,79,216,0.3); }
  50% { box-shadow: 0 0 36px rgba(255,79,216,0.5); }
}
.geo-status {
  margin-top: 10px;
  font-size: 0.85em;
  color: var(--muted);
  text-align: center;
  min-height: 20px;
}

/* ---- Sync Status ---- */
.sync-label {
  text-align: center;
  color: var(--muted);
  font-size: 0.95em;
  margin-top: 12px;
  padding: 8px;
  transition: all 0.3s;
}
.sync-label.live {
  color: var(--green);
  text-shadow: 0 0 10px rgba(0,232,123,0.4);
  font-weight: 600;
}
.sync-card {
  padding: 16px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.95em;
}

/* ---- Playlist ---- */
.playlist { display: flex; flex-direction: column; gap: 4px; }
.playlist-empty {
  text-align: center;
  color: var(--muted);
  padding: 32px 16px;
  font-style: italic;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}
.playlist-track {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}
.playlist-track:active { transform: scale(0.98); }
.playlist-track:hover { background: var(--surface2); }
.playlist-track.playing {
  border-left: 3px solid var(--green);
  background: var(--green-bg);
}
.track-num {
  color: var(--muted);
  font-size: 0.85em;
  min-width: 20px;
  text-align: center;
}
.track-info { flex: 1; }
.track-title { display: block; font-weight: 600; font-size: 0.95em; }
.track-artist { display: block; font-size: 0.8em; color: var(--muted); }
.track-dur { font-size: 0.8em; color: var(--muted); }

/* ---- Effects Grid ---- */
.effects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.effect-btn {
  padding: 16px 12px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.effect-btn:active { transform: scale(0.95); }
.effect-btn:hover { border-color: var(--pink); }
.effect-btn.active {
  border-color: var(--green);
  box-shadow: 0 0 20px rgba(0,232,123,0.4);
  background: var(--green-bg);
  animation: effectPulse 0.5s ease;
}
@keyframes effectPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.effect-status {
  margin-top: 12px;
  padding: 12px;
  text-align: center;
  color: var(--green);
  font-weight: 600;
  background: var(--green-bg);
  border-radius: var(--radius);
  animation: fadeIn 0.3s;
}

/* ---- Playlist Player ---- */
.playlist-player {
  background: var(--surface);
  border: 2px solid rgba(0,232,123,0.3);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.playlist-now-playing {
  font-weight: 700;
  font-size: 1.05em;
  text-align: center;
  margin-bottom: 10px;
  color: var(--green);
  text-shadow: 0 0 8px rgba(0,232,123,0.3);
}
.playlist-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}
.btn.small {
  padding: 8px 14px;
  font-size: 1.1em;
  min-width: 44px;
}
.progress-bar.green {
  background: linear-gradient(90deg, var(--green), #00ff88) !important;
}

/* ---- Message Board ---- */
.msg-input-wrap {
  position: relative;
}
.msg-input {
  width: 100%;
  padding: 14px 60px 14px 16px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1.05em;
  outline: none;
  transition: border-color 0.2s;
}
.msg-input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 12px rgba(255,79,216,0.2);
}
.msg-input::placeholder {
  color: var(--muted);
  opacity: 0.6;
}
.msg-char-count {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8em;
  color: var(--muted);
}
.msg-preview {
  margin-top: 10px;
  padding: 12px 16px;
  background: rgba(0,232,123,0.08);
  border: 1px solid rgba(0,232,123,0.2);
  border-radius: var(--radius);
  font-size: 1.1em;
  text-align: center;
  color: var(--green);
  text-shadow: 0 0 8px rgba(0,232,123,0.3);
  word-break: break-word;
}
.msg-feed {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
}
.msg-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.msg-text {
  flex: 1;
  font-size: 0.95em;
  word-break: break-word;
}
.msg-time {
  font-size: 0.75em;
  color: var(--muted);
  white-space: nowrap;
}
.msg-empty {
  text-align: center;
  color: var(--muted);
  padding: 24px;
  font-style: italic;
}

/* ---- Radio Show Card ---- */
.radio-card {
  background: var(--surface);
  border: 2px solid rgba(0,232,123,0.3);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.radio-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(0,232,123,0.06), rgba(255,79,216,0.06));
  pointer-events: none;
}
.radio-info { position: relative; z-index: 1; margin-bottom: 12px; }
.radio-title {
  display: block;
  font-weight: 700;
  font-size: 1.15em;
  color: var(--green);
  text-shadow: 0 0 12px rgba(0,232,123,0.4);
}
.radio-sub {
  display: block;
  font-size: 0.85em;
  color: var(--muted);
  margin-top: 4px;
}
.radio-bar {
  background: linear-gradient(90deg, var(--green), var(--blue)) !important;
}
#btnRadio.playing {
  background: var(--green);
  color: #0B0D14;
  box-shadow: 0 0 20px rgba(0,232,123,0.4);
}

/* ---- Advanced Section ---- */
.advanced-section {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}
.advanced-section summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9em;
  user-select: none;
}
.advanced-section[open] summary {
  margin-bottom: 12px;
}

/* ---- Responsive ---- */
@media (min-width: 500px) {
  .grid { flex-direction: row; }
  .card { flex: 1; }
}
