/* ============================================================
   YouTube Keyword Finder — tema gelap, layout full-width
   Tampilan publik (buyer-facing): lebar 100%, tetap responsif
   saat jendela dikecilkan.
   ============================================================ */

:root {
  --bg: #0f0f0f;
  --bg-2: #181818;
  --panel: #212121;
  --panel-2: #272727;
  --border: #3f3f3f;
  --border-soft: #303030;
  --text: #f1f1f1;
  --muted: #aaaaaa;
  --muted-2: #717171;
  --accent: #ff0033;
  --accent-soft: rgba(255, 0, 51, 0.14);
  --violet: #ff6b81;
  --cyan: #22d3ee;
  --amber: #fbbf24;
  --emerald: #34d399;
  --sky: #38bdf8;
  --rose: #fb7185;
  --slate: #aaaaaa;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  /* padding horizontal penuh yang mengikuti lebar jendela */
  --gutter: clamp(16px, 4vw, 64px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  background-image:
    radial-gradient(1400px 560px at 80% -10%, rgba(255, 0, 51, 0.09), transparent 60%),
    radial-gradient(1000px 460px at -10% 8%, rgba(255, 255, 255, 0.035), transparent 55%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hidden { display: none !important; }

/* ------------------------------------------------ header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  width: 100%;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon {
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 10px rgba(255, 0, 51, 0.5));
}
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: 0.2px; }
.brand-sub { font-size: 12px; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.demo-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #7c4a12;
  color: #ffd9a8;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
}

/* ------------------------------------------------ main */
.app-main { flex: 1; width: 100%; margin: 0 auto; padding: 36px var(--gutter) 64px; }

/* hero + bar pencarian (satu halaman ala keywordtool.io) */
.search-hero { text-align: center; max-width: 900px; margin: 0 auto; }
.hero { text-align: center; margin: 6px 0 24px; }
.hero h1 { font-size: clamp(26px, 4.2vw, 42px); margin: 0 0 12px; letter-spacing: -0.4px; }
.grad {
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { color: var(--muted); max-width: 660px; margin: 0 auto; }

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 760px;
  margin: 0 auto;
  padding: 7px 7px 7px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow);
}
.search-bar input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 16px;
  font-family: var(--font);
  padding: 11px 0;
}
.search-bar input::placeholder { color: var(--muted-2); }
.search-bar .btn { border-radius: 999px; padding: 11px 22px; font-size: 14.5px; flex: none; }
.search-bar-results { margin: 4px auto 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.field-label { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.3px; }
.field input {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 14.5px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.feature-grid {
  width: 100%;
  max-width: 900px;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.feature {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  text-align: left;
  transition: border-color 0.15s, transform 0.15s;
}
.feature:hover { border-color: var(--border); transform: translateY(-2px); }
.feature-ic { font-size: 22px; }
.feature strong { display: block; font-size: 14px; margin-bottom: 3px; }
.feature p { margin: 0; font-size: 12.5px; color: var(--muted); }

.disclaimer {
  max-width: 720px;
  margin: 28px auto 0;
  text-align: center;
  color: var(--muted-2);
  font-size: 12px;
}

/* ------------------------------------------------ panel / button / pill */
.panel {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:hover { background: #1f2b45; border-color: #33456b; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(90deg, #ff0033, #ff3355);
  border-color: #ff0033;
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 0, 51, 0.35);
}
.btn-primary:hover { background: linear-gradient(90deg, #ff3355, #ff5570); border-color: #ff3355; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 6px 10px; font-size: 12.5px; }
.btn-lg { justify-content: center; padding: 13px; font-size: 15px; width: 100%; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pill-violet { background: rgba(255, 107, 129, 0.14); color: var(--violet); border-color: rgba(255, 107, 129, 0.35); }
.pill-cyan { background: rgba(34, 211, 238, 0.12); color: var(--cyan); border-color: rgba(34, 211, 238, 0.3); }
.pill-amber { background: rgba(251, 191, 36, 0.12); color: var(--amber); border-color: rgba(251, 191, 36, 0.3); }
.pill-emerald { background: rgba(52, 211, 153, 0.12); color: var(--emerald); border-color: rgba(52, 211, 153, 0.3); }
.pill-rose { background: rgba(251, 113, 133, 0.12); color: var(--rose); border-color: rgba(251, 113, 133, 0.3); }
.pill-slate { background: rgba(143, 160, 187, 0.1); color: var(--slate); border-color: rgba(143, 160, 187, 0.25); }
.pill-sky { background: rgba(56, 189, 248, 0.12); color: var(--sky); border-color: rgba(56, 189, 248, 0.3); }

/* ------------------------------------------------ progress */
/* Layar loading nyaris satu layar penuh: lingkaran besar tanpa kotak */
#view-progress {
  min-height: calc(100svh - 190px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: var(--gutter);
  text-align: center;
}
.progress-head {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}
.progress-head h2 {
  margin: 0;
  font-size: 20px;
  color: var(--accent);
  animation: title-blink 1.4s ease-in-out infinite;
}
@keyframes title-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* bola kristal mistik: cahaya bernafas + ring + kabut berputar + bintang kelip */
.progress-circle {
  position: relative;
  z-index: 0;
  width: min(70vmin, 620px);
  aspect-ratio: 1;
  margin: 6px auto 20px;
}
.progress-circle::before {
  content: "";
  position: absolute;
  inset: -26px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 0, 51, 0.30), transparent 65%);
  animation: glow-pulse 3s ease-in-out infinite;
  z-index: -1;
}
.mystic-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, rgba(255, 125, 145, 0.35), rgba(255, 0, 51, 0.20) 42%, rgba(40, 6, 12, 0.55) 72%, transparent 100%);
  animation: glow-pulse 3.2s ease-in-out infinite;
}
.mystic-ring {
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  border: 1px solid rgba(255, 77, 109, 0.45);
  box-shadow: 0 0 26px rgba(255, 0, 51, 0.3), inset 0 0 26px rgba(255, 0, 51, 0.22);
  animation: ring-breathe 3s ease-in-out infinite;
}
.mystic-mist {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 0, 51, 0.4) 40deg, transparent 95deg, rgba(140, 0, 28, 0.45) 200deg, transparent 265deg, rgba(255, 125, 145, 0.35) 320deg, transparent 360deg);
  filter: blur(7px);
  opacity: 0.85;
  animation: mist-spin 6.5s linear infinite;
}
.mystic-star {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd7dd;
  box-shadow: 0 0 14px rgba(255, 125, 145, 0.9);
  animation: star-twinkle 2.4s ease-in-out infinite;
}
.mystic-star-1 { top: 16%; left: 32%; }
.mystic-star-2 { top: 30%; right: 20%; animation-delay: 0.8s; }
.mystic-star-3 { bottom: 20%; left: 56%; animation-delay: 1.6s; }
@keyframes star-twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.3); }
}
.progress-circle-inner {
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, rgba(58, 4, 14, 0.92), rgba(15, 15, 15, 0.96));
  border: 1px solid rgba(255, 77, 109, 0.4);
  box-shadow: 0 0 48px rgba(255, 0, 51, 0.28), inset 0 0 34px rgba(140, 0, 28, 0.45);
  display: grid;
  place-items: center;
  padding: 7%;
}
@keyframes mist-spin { to { transform: rotate(360deg); } }
@keyframes ring-breathe {
  0%, 100% { opacity: 0.55; transform: scale(0.985); }
  50% { opacity: 1; transform: scale(1.015); }
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.progress-message { color: var(--muted); font-size: clamp(14px, 2.2vmin, 17px); margin: 2px 0 10px; }
.progress-pct {
  display: inline-block;
  margin: 0;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ff8095;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 0, 51, 0.35);
  border-radius: 999px;
  padding: 3px 14px;
}

/* kata-kata lucu pengisi loading — di tengah lingkaran, diputar bergantian */
.progress-funny {
  margin: 0;
  font-size: clamp(15px, 3.4vmin, 26px);
  font-style: italic;
  color: var(--amber);
  line-height: 1.45;
  text-align: center;
}
.progress-funny::before { content: "✨ "; font-style: normal; }
.funny-in { animation: funny-in 0.45s ease; }
@keyframes funny-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.progress-actions { display: flex; gap: 10px; margin-top: 18px; justify-content: center; }

/* ------------------------------------------------ results toolbar */
.results-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.results-title { flex: 1; min-width: 220px; }
.results-title h2 { margin: 0; font-size: 24px; }
.results-meta { color: var(--muted); font-size: 12.5px; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.results-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.banner {
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 14px;
  border: 1px solid;
}
.banner-warn { background: rgba(251, 191, 36, 0.09); border-color: rgba(251, 191, 36, 0.35); color: #ffd98a; }
.banner-error { background: rgba(251, 113, 133, 0.09); border-color: rgba(251, 113, 133, 0.35); color: #ffb3c0; }
.banner-info { background: rgba(56, 189, 248, 0.08); border-color: rgba(56, 189, 248, 0.3); color: #a5ddf7; }

/* ------------------------------------------------ KPI */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.kpi {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
}
.kpi:nth-child(2) { border-left-color: var(--cyan); }
.kpi:nth-child(3) { border-left-color: var(--emerald); }
.kpi:nth-child(4) { border-left-color: var(--amber); }
.kpi:nth-child(5) { border-left-color: var(--violet); }
.kpi-value { font-size: 27px; font-weight: 700; letter-spacing: -0.5px; }
.kpi-label { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi-sub { font-size: 11px; color: var(--muted-2); }

/* ------------------------------------------------ filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.filter-bar input[type="text"] {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13.5px;
  font-family: var(--font);
  outline: none;
  min-width: 180px;
  flex: 1;
}
.filter-bar input[type="text"]:focus { border-color: var(--accent); }
.chip-group { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  border-radius: 999px;
  padding: 5px 11px;
  cursor: pointer;
  transition: all 0.12s;
}
.chip:hover { color: var(--text); border-color: #33456b; }
.chip.active { background: var(--accent-soft); border-color: var(--accent); color: #ff8095; }
.sort-select {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.sort-select select {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  font-size: 12.5px;
  font-family: var(--font);
}
.filter-count { color: var(--muted-2); font-size: 12px; margin-left: auto; }

/* ------------------------------------------------ table */
.table-wrap { overflow-x: auto; }
.results-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 900px; }
.results-table th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted-2);
  font-weight: 700;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.results-table td { padding: 11px 12px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.results-table tr:last-child td { border-bottom: none; }
.results-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.016); }
.results-table tbody tr { cursor: pointer; transition: background 0.1s; }
.results-table tbody tr:hover { background: var(--panel-2); }

.kw-cell { min-width: 220px; }
.kw-text { font-weight: 600; display: inline; }
.kw-pattern { color: var(--violet); font-weight: 700; }
.kw-secondary { color: var(--text); font-weight: 600; }
.kw-mark { color: var(--muted-2); font-weight: 500; }

.copy-btn {
  background: none;
  border: none;
  color: var(--muted-2);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  vertical-align: middle;
}
.copy-btn:hover { color: var(--accent); background: var(--accent-soft); }

.rank-badge {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  background: var(--bg-2);
  border: 1px solid var(--border);
}
.rank-1 { color: var(--violet); border-color: rgba(255, 107, 129, 0.4); background: rgba(255, 107, 129, 0.08); }
.rank-2 { color: var(--cyan); border-color: rgba(34, 211, 238, 0.35); background: rgba(34, 211, 238, 0.07); }
.rank-3 { color: var(--amber); border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.07); }
.rank-4 { color: var(--slate); }

.score-cell { min-width: 175px; }
.score-row { display: flex; align-items: center; gap: 10px; }
.score-num { font-weight: 800; font-size: 18px; width: 40px; }
.score-bar {
  flex: 1;
  height: 10px;
  background: var(--bg-2);
  border-radius: 999px;
  overflow: hidden;
  min-width: 80px;
  box-shadow: inset 0 0 0 1px var(--border-soft);
}
.score-fill { display: block; height: 100%; border-radius: 999px; transition: width 0.5s ease; }
.tone-high { color: var(--emerald); }
.tone-good { color: var(--sky); }
.tone-mid { color: var(--amber); }
.tone-low { color: var(--rose); }
.tone-none { color: var(--muted-2); }
.fill-high { background: linear-gradient(90deg, var(--emerald), #6ee7b7); box-shadow: 0 0 10px rgba(16, 185, 129, 0.5); }
.fill-good { background: linear-gradient(90deg, var(--sky), #7dd3fc); box-shadow: 0 0 10px rgba(14, 165, 233, 0.5); }
.fill-mid { background: linear-gradient(90deg, var(--amber), #fcd34d); box-shadow: 0 0 10px rgba(245, 158, 11, 0.5); }
.fill-low { background: linear-gradient(90deg, var(--rose), #fda4af); box-shadow: 0 0 10px rgba(244, 63, 94, 0.45); }
.fill-none { background: var(--muted-2); }
.score-label-text { font-size: 11.5px; }

/* ------------------------------------------------ saran judul */
.suggest-cell { min-width: 200px; }
.suggest-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.suggest-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 4px 12px 4px 10px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.13s, background 0.13s, color 0.13s, transform 0.13s;
}
.suggest-item svg { flex: none; color: var(--muted-2); }
.suggest-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-item:hover {
  border-color: var(--accent);
  color: #ff8095;
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.suggest-item:hover svg { color: var(--accent); }

.muted { color: var(--muted-2); }
.na { color: var(--muted-2); font-style: italic; }

.results-empty { padding: 40px; text-align: center; color: var(--muted); }

/* ------------------------------------------------ modal */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 6, 10, 0.72); backdrop-filter: blur(3px); }
.modal-panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  width: min(880px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  padding: 24px;
}
.modal-panel-wide { width: min(760px, 100%); }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--muted);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
}
.modal-close:hover { color: var(--text); }

.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.12s;
}
.history-item:hover { border-color: var(--accent); }
.history-item .hi-main { flex: 1; min-width: 0; }
.hi-name { font-weight: 700; font-size: 14px; }
.hi-sub { font-size: 12px; color: var(--muted); }
.history-empty { text-align: center; color: var(--muted); padding: 30px 0; }

/* ------------------------------------------------ toasts / footer */
.toasts { position: fixed; bottom: 18px; right: 18px; z-index: 80; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  box-shadow: var(--shadow);
  max-width: 340px;
  animation: toast-in 0.18s ease;
}
.toast-ok { border-color: rgba(52, 211, 153, 0.4); }
.toast-err { border-color: rgba(251, 113, 133, 0.45); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.app-footer {
  border-top: 1px solid var(--border-soft);
  padding: 18px var(--gutter) 26px;
  text-align: center;
  color: var(--muted-2);
  font-size: 12px;
}
.app-footer p { margin: 3px 0; }

/* ------------------------------------------------ responsive */
@media (max-width: 900px) {
  .app-main { padding: 24px var(--gutter) 48px; }
  .results-toolbar { flex-direction: column; align-items: stretch; }
  .results-actions { width: 100%; justify-content: flex-end; }
  .results-title { text-align: center; }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .header-inner { padding: 10px 14px; }
  .app-main { padding: 18px 12px 40px; }
  .progress-head { flex-direction: column; align-items: center; gap: 6px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-count { margin-left: 0; }
  .modal-panel { padding: 18px; }
  .toasts { left: 12px; right: 12px; bottom: 12px; }
  .toast { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mystic-mist, .mystic-star, .mystic-ring, .mystic-glow, .progress-circle::before, .funny-in, .progress-head h2 { animation: none; }
}
