:root {
  --ink: #111312;
  --paper: #f6f4ee;
  --panel: #fff;
  --orange: #f36c21;
  --orange-dark: #c94b0c;
  --lime: #c9ff4a;
  --mint: #bcefd4;
  --yellow: #ffd75e;
  --red: #ff6b5f;
  --muted: #6f746f;
  --line: #deddd7;
  --shadow: 0 18px 45px rgba(17,19,18,.09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, .ghost, .primary { cursor: pointer; }
.topbar { height: 72px; padding: 0 max(20px, calc((100vw - 1120px)/2)); display: flex; align-items: center; justify-content: space-between; background: rgba(246,244,238,.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.12; }
.brand small { color: var(--muted); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }
.coin { width: 44px; height: 44px; display: grid; place-items: center; background: var(--orange); color: white; border-radius: 50%; font-weight: 950; box-shadow: inset 0 0 0 3px rgba(255,255,255,.35), 0 6px 18px rgba(243,108,33,.25); }
main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 70px; }
.hero { min-height: 410px; display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: 60px; padding: 65px 0 45px; }
.kicker { margin: 0 0 8px; color: var(--orange-dark); font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3.4rem, 8vw, 7.2rem); line-height: .88; letter-spacing: -.065em; margin-bottom: 26px; }
h1 em { font-family: Georgia, serif; color: var(--orange); font-weight: 500; }
.hero p:not(.kicker) { max-width: 670px; color: #515752; font-size: 1.08rem; }
.radar { width: min(310px, 70vw); aspect-ratio: 1; justify-self: center; border: 1px solid #cfd3ca; border-radius: 50%; position: relative; display: grid; place-items: center; background: radial-gradient(circle, rgba(201,255,74,.7) 0 4%, transparent 5% 25%, rgba(243,108,33,.08) 26% 27%, transparent 28% 50%, rgba(17,19,18,.08) 51% 52%, transparent 53%); overflow: hidden; }
.radar::before, .radar::after { content: ""; position: absolute; background: #cfd3ca; }
.radar::before { width: 100%; height: 1px; }
.radar::after { height: 100%; width: 1px; }
.radar span { position: absolute; inset: 0; background: conic-gradient(from 20deg, rgba(201,255,74,.5), transparent 22%); animation: sweep 5s linear infinite; }
.radar i { position: absolute; width: 12px; height: 12px; background: var(--orange); border-radius: 50%; transform: translate(62px, -40px); box-shadow: 0 0 0 8px rgba(243,108,33,.12); }
.radar b { z-index: 2; background: var(--ink); color: var(--lime); width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; font-size: 1.4rem; }
@keyframes sweep { to { transform: rotate(360deg); } }
.warning { border: 1px solid #efc86b; background: #fff5cc; border-radius: 16px; padding: 18px 22px; font-size: .9rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0 85px; }
.stats article { background: var(--ink); color: white; border-radius: 16px; padding: 22px; }
.stats span { display: block; color: var(--lime); font-size: 2rem; font-weight: 950; }
.stats small { color: #c9ccc9; }
.view { display: none; min-height: 500px; }
.view.active { display: block; animation: reveal .2s ease-out; }
@keyframes reveal { from { opacity: .4; transform: translateY(5px); } }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; letter-spacing: -.045em; margin-bottom: 0; }
.filters { display: grid; grid-template-columns: 1fr 220px; gap: 12px; margin-bottom: 22px; }
input, select, textarea { width: 100%; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(243,108,33,.2); border-color: var(--orange); }
textarea { min-height: 90px; resize: vertical; }
button, .ghost, .primary { border: 0; border-radius: 11px; padding: 13px 17px; font-weight: 850; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.primary { background: var(--orange); color: white; box-shadow: 0 7px 20px rgba(243,108,33,.2); }
.ghost { background: white; color: var(--ink); border: 1px solid var(--line); }
.small { padding: 9px 12px; font-size: .8rem; }
.deal-list { display: grid; gap: 16px; }
.empty { text-align: center; padding: 65px 25px; background: white; border: 1px dashed #c8c9c5; border-radius: 22px; }
.empty .empty-coin { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; background: var(--lime); font-weight: 950; font-size: 1.5rem; }
.deal-card { display: grid; grid-template-columns: 90px 1fr auto; gap: 22px; align-items: center; background: white; border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: 0 7px 26px rgba(17,19,18,.045); }
.score-ring { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; font-weight: 950; font-size: 1.45rem; background: conic-gradient(var(--score-color) calc(var(--score) * 1%), #ecece8 0); position: relative; }
.score-ring::after { content: ""; position: absolute; inset: 7px; background: white; border-radius: 50%; }
.score-ring span { z-index: 1; }
.deal-main h3 { margin: 0 0 5px; }
.meta { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: .78rem; }
.pill { border-radius: 999px; padding: 4px 9px; background: #eee; font-size: .7rem; font-weight: 850; }
.pill.hot { background: var(--lime); }
.pill.possible { background: var(--yellow); }
.pill.weak { background: #e8e4d7; }
.pill.stale { background: #eee; color: #777; }
.card-actions { display: flex; flex-direction: column; gap: 7px; min-width: 130px; }
.card-actions a, .card-actions button { font-size: .75rem; padding: 9px 11px; }
.card-actions .delete { background: transparent; color: #a13a31; }
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.store-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.store-number { color: var(--orange-dark); font-weight: 900; font-size: .72rem; letter-spacing: .08em; }
.store-card h3 { margin: 5px 0 8px; }
.store-card address { color: var(--muted); font-style: normal; min-height: 48px; font-size: .85rem; }
.distance { font-size: 1.5rem; font-weight: 950; margin: 18px 0; }
.store-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.store-actions a { font-size: .72rem; padding: 8px 10px; }
.source-note { color: var(--muted); font-size: .8rem; margin-bottom: 22px; }
.report-form, .import-card, .how-score { max-width: 760px; background: white; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.report-form { display: grid; gap: 17px; }
.report-form label { font-size: .78rem; font-weight: 850; color: #454b46; }
.report-form input, .report-form select, .report-form textarea { margin-top: 6px; font-weight: 500; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.check { display: flex; gap: 10px; align-items: center; }
.check input { width: auto; margin: 0; accent-color: var(--orange); }
.form-message { min-height: 20px; margin: 0; font-size: .82rem; color: var(--orange-dark); }
.file-drop { display: block; border: 2px dashed #c7c8c4; border-radius: 15px; padding: 28px; text-align: center; font-weight: 850; margin: 20px 0 12px; }
.file-drop input { margin-top: 12px; }
.template-link { margin-top: 5px; }
.how-score { margin-top: 20px; box-shadow: none; background: #f1ffe0; }
.how-score ul { margin-bottom: 0; padding-left: 20px; }
.bottom-nav { display: none; }
footer { max-width: 1120px; margin: 80px auto 0; border-top: 1px solid var(--line); padding: 32px 20px 110px; color: var(--muted); font-size: .74rem; }

@media (max-width: 850px) {
  main { width: min(100% - 26px, 1120px); }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 45px 0 30px; }
  .radar { display: none; }
  .stats { margin-bottom: 55px; }
  .store-grid { grid-template-columns: repeat(2, 1fr); }
  .deal-card { grid-template-columns: 72px 1fr; }
  .score-ring { width: 66px; height: 66px; }
  .card-actions { grid-column: 1 / -1; flex-direction: row; }
  .card-actions > * { flex: 1; }
}
@media (max-width: 600px) {
  body { padding-bottom: 70px; }
  .topbar { padding: 0 14px; }
  h1 { font-size: 3.55rem; }
  .warning { font-size: .78rem; }
  .stats { gap: 7px; }
  .stats article { padding: 15px 11px; }
  .stats span { font-size: 1.45rem; }
  .stats small { font-size: .66rem; }
  .filters, .store-grid, .two-up { grid-template-columns: 1fr; }
  .section-head { align-items: start; }
  .section-head h2 { font-size: 2.35rem; }
  .report-form, .import-card, .how-score { padding: 20px; }
  .bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(17,19,18,.96); backdrop-filter: blur(15px); padding: 8px 7px max(8px, env(safe-area-inset-bottom)); }
  .bottom-nav a { color: #aeb2ae; text-decoration: none; text-align: center; font-size: .62rem; font-weight: 800; display: flex; flex-direction: column; gap: 1px; }
  .bottom-nav a span { font-size: 1.2rem; line-height: 1; }
  .bottom-nav a.active { color: var(--lime); }
}
