    :root {
      --bg: #0b0f17;
      --panel: #121a29;
      --panel2: #0f1624;
      --text: #eaf0ff;
      --muted: #a9b4d0;
      --line: #22304d;
      --good: #6ee7b7;
      --bad: #fda4af;
      --warn: #fde68a;
      --accent: #93c5fd;
      --orange: #fb923c;
      --btn: #1f2a44;
      --btn2: #2a3a61;
      --shadow: 0 10px 30px rgba(0,0,0,.35);
      --radius: 16px;
      --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: var(--sans);
      background:
        radial-gradient(1200px 700px at 20% 10%, rgba(251,146,60,.12), transparent 60%),
        radial-gradient(900px 600px at 80% 20%, rgba(147,197,253,.10), transparent 55%),
        radial-gradient(600px 400px at 50% 80%, rgba(110,231,183,.06), transparent 50%),
        var(--bg);
      color: var(--text);
      line-height: 1.5;
      min-height: 100vh;
    }
    a { color: var(--accent); text-decoration: none; }
    a:hover { text-decoration: underline; }

    .wrap {
      max-width: 1140px;
      margin: 0 auto;
      padding: 0 16px 60px;
    }

    /* ---- NAV ---- */
    nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 0;
      border-bottom: 1px solid rgba(34,48,77,.5);
      margin-bottom: 24px;
    }
    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 20px;
      font-weight: 700;
      letter-spacing: .3px;
    }
    .logo-icon { font-size: 28px; line-height: 1; }
    .nav-links {
      display: flex;
      gap: 20px;
      list-style: none;
    }
    .nav-links a {
      color: var(--muted);
      font-size: 14px;
      font-weight: 500;
      transition: color .15s;
    }
    .nav-links a:hover { color: var(--text); text-decoration: none; }
    .nav-links a.active { color: var(--orange); }

    /* ---- HERO ---- */
    .hero {
      text-align: center;
      padding: 32px 0 28px;
    }
    .hero h1 {
      font-size: clamp(28px, 5vw, 42px);
      font-weight: 800;
      letter-spacing: -.5px;
      line-height: 1.15;
    }
    .hero h1 .hl { color: var(--orange); }
    .hero p {
      margin-top: 12px;
      color: var(--muted);
      font-size: 16px;
      max-width: 60ch;
      margin-left: auto;
      margin-right: auto;
    }

    /* ---- MAIN GRID ---- */
    main {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px;
      margin-top: 24px;
    }
    @media (max-width: 860px) {
      main { grid-template-columns: 1fr; }
    }

    /* ---- CARD ---- */
    .card {
      background: rgba(18,26,41,.75);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow: hidden;
    }
    .card.full { grid-column: 1 / -1; }
    .card .hd {
      padding: 14px 18px;
      border-bottom: 1px solid var(--line);
      background: rgba(15,22,36,.7);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    .card .hd h2 {
      font-size: 13px;
      letter-spacing: .5px;
      text-transform: uppercase;
      color: var(--muted);
    }
    .card .bd { padding: 18px; }

    .pill {
      font-size: 11px;
      padding: 5px 10px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(11,15,23,.6);
      color: var(--muted);
      font-family: var(--mono);
    }

    /* ---- SIZE CARD ---- */
    .size-card {
      padding: 16px;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: rgba(11,15,23,.4);
    }
    .size-card.a { border-color: rgba(110,231,183,.25); }
    .size-card.b { border-color: rgba(147,197,253,.25); }
    .size-label {
      font-size: 13px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .5px;
      margin-bottom: 14px;
    }
    .size-card.a .size-label { color: var(--good); }
    .size-card.b .size-label { color: var(--accent); }

    .fields {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
    @media (max-width: 500px) {
      .fields { grid-template-columns: 1fr; }
    }
    .field {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }
    .field.full { grid-column: 1 / -1; }
    label {
      font-size: 12px;
      color: var(--muted);
      font-weight: 500;
    }
    select {
      width: 100%;
      padding: 10px 12px;
      border-radius: 10px;
      border: 1px solid var(--line);
      background: rgba(11,15,23,.7);
      color: var(--text);
      outline: none;
      font-size: 15px;
      font-family: var(--mono);
      transition: border-color .15s, box-shadow .15s;
      cursor: pointer;
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a9b4d0' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      padding-right: 32px;
    }
    select:focus {
      border-color: rgba(147,197,253,.65);
      box-shadow: 0 0 0 3px rgba(147,197,253,.12);
    }
    select option {
      background: #121a29;
      color: var(--text);
      padding: 8px;
    }

    /* ---- SHARED OPTIONS ROW ---- */
    .opts {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 12px;
      margin-top: 14px;
    }
    @media (max-width: 500px) {
      .opts { grid-template-columns: 1fr; }
    }
    .fine {
      color: var(--muted);
      font-size: 11px;
      margin-top: 4px;
    }

    /* ---- BUTTONS ---- */
    .actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 16px;
    }
    button {
      cursor: pointer;
      border: none;
      padding: 11px 20px;
      border-radius: 12px;
      color: var(--text);
      font-size: 14px;
      font-weight: 600;
      font-family: var(--sans);
      letter-spacing: .2px;
      transition: filter .1s, transform .1s;
    }
    button:hover { filter: brightness(1.08); }
    button:active { transform: translateY(1px); }
    .btn-primary {
      background: linear-gradient(180deg, var(--orange), #e67e22);
      color: #fff;
      border: 1px solid rgba(255,255,255,.1);
    }
    .btn-ghost {
      background: rgba(15,22,36,.6);
      border: 1px solid var(--line);
      color: var(--muted);
    }

    /* ---- RESULTS ---- */
    .results { display: none; }
    .results.show { display: block; }

    .result-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }
    @media (max-width: 500px) {
      .result-grid { grid-template-columns: 1fr; }
    }
    .stat {
      padding: 14px;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: rgba(11,15,23,.5);
    }
    .stat.winner { border-color: rgba(110,231,183,.3); background: rgba(110,231,183,.04); }
    .k { font-size: 12px; color: var(--muted); }
    .v {
      margin-top: 5px;
      font-size: 20px;
      font-family: var(--mono);
      font-weight: 600;
    }

    /* ---- VERDICT ---- */
    .verdict {
      margin-top: 16px;
      padding: 18px;
      border-radius: 16px;
      border: 1px solid var(--line);
    }
    .verdict.good {
      background: linear-gradient(180deg, rgba(110,231,183,.10), rgba(15,22,36,.55));
      border-color: rgba(110,231,183,.2);
    }
    .verdict.bad {
      background: linear-gradient(180deg, rgba(253,164,175,.10), rgba(15,22,36,.55));
      border-color: rgba(253,164,175,.15);
    }
    .verdict.tie {
      background: linear-gradient(180deg, rgba(253,230,138,.08), rgba(15,22,36,.55));
      border-color: rgba(253,230,138,.15);
    }
    .verdict h3 { font-size: 18px; }
    .verdict p { color: var(--muted); font-size: 14px; margin-top: 6px; }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 7px 12px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: rgba(11,15,23,.6);
      font-size: 12px;
      color: var(--muted);
      margin-top: 10px;
      font-family: var(--mono);
    }
    .dot {
      width: 10px; height: 10px; border-radius: 999px;
      background: var(--warn);
      box-shadow: 0 0 0 3px rgba(253,230,138,.15);
    }
    .dot.good { background: var(--good); box-shadow: 0 0 0 3px rgba(110,231,183,.15); }
    .dot.bad { background: var(--bad); box-shadow: 0 0 0 3px rgba(253,164,175,.12); }

    /* ---- VISUAL COMPARISON ---- */
    .viz {
      display: flex;
      gap: 14px;
      align-items: center;
      margin-top: 16px;
      padding: 16px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: rgba(11,15,23,.45);
      min-height: 200px;
    }
    @media (max-width: 600px) {
      .viz { flex-direction: column; }
    }
    .circleWrap {
      flex: 1;
      min-width: 180px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      aspect-ratio: 1;
      max-height: 260px;
    }
    .circle {
      border-radius: 999px;
      position: absolute;
      left: 50%; top: 50%;
      transform: translate(-50%,-50%);
      transition: width .4s ease, height .4s ease;
    }
    .circle.a {
      border: 2px solid rgba(110,231,183,.5);
      background: rgba(110,231,183,.07);
    }
    .circle.b {
      border: 2px solid rgba(147,197,253,.5);
      background: rgba(147,197,253,.07);
    }

    .legend {
      flex: 1;
      min-width: 200px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .leg-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 10px 12px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: rgba(15,22,36,.55);
    }
    .leg-left {
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--muted);
      font-size: 13px;
    }
    .swatch {
      width: 12px; height: 12px; border-radius: 4px;
      flex-shrink: 0;
    }
    .swatch.a { background: rgba(110,231,183,.55); }
    .swatch.b { background: rgba(147,197,253,.55); }
    .mono { font-family: var(--mono); }

    /* ---- TIPS ---- */
    .tips-list {
      list-style: none;
      padding: 0;
    }
    .tips-list li {
      padding: 12px 0;
      border-bottom: 1px solid rgba(34,48,77,.4);
      display: flex;
      gap: 10px;
      align-items: flex-start;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.5;
    }
    .tips-list li:last-child { border-bottom: none; }
    .tip-icon {
      flex-shrink: 0;
      width: 28px; height: 28px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      background: rgba(15,22,36,.8);
      border: 1px solid var(--line);
    }
    .tip-label { font-weight: 600; color: var(--text); }

    /* ---- FORMULA ---- */
    .formula-box {
      margin-top: 14px;
      padding: 14px 16px;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: rgba(11,15,23,.5);
      font-family: var(--mono);
      font-size: 13px;
      color: var(--accent);
      line-height: 1.8;
    }
    .formula-box .dim { color: var(--muted); }

    /* ---- HOW IT WORKS ---- */
    .steps {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
    }
    @media (max-width: 700px) {
      .steps { grid-template-columns: 1fr; }
    }
    .step {
      padding: 18px;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: rgba(11,15,23,.4);
      text-align: center;
    }
    .step-num {
      width: 36px; height: 36px;
      border-radius: 999px;
      background: rgba(251,146,60,.12);
      border: 1px solid rgba(251,146,60,.25);
      color: var(--orange);
      font-weight: 700;
      font-size: 16px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 10px;
    }
    .step h4 { font-size: 15px; margin-bottom: 6px; }
    .step p { font-size: 13px; color: var(--muted); }

    /* ---- FOOTER ---- */
    footer {
      margin-top: 40px;
      padding: 20px 0;
      border-top: 1px solid rgba(34,48,77,.4);
      text-align: center;
      color: var(--muted);
      font-size: 12px;
    }
    footer a { color: var(--muted); }
    footer a:hover { color: var(--text); }

    /* ---- SHARE BAR ---- */
    .share-bar {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 10px;
      margin-top: 24px;
      padding: 18px;
      border-radius: var(--radius);
      border: 1px solid var(--line);
      background: rgba(18,26,41,.75);
      box-shadow: var(--shadow);
    }
    .share-bar span {
      font-size: 13px;
      color: var(--muted);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: .5px;
    }
    .share-btn {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 9px 16px;
      border-radius: 10px;
      border: 1px solid var(--line);
      background: rgba(15,22,36,.7);
      color: var(--muted);
      font-size: 13px;
      font-weight: 500;
      font-family: var(--sans);
      cursor: pointer;
      text-decoration: none;
      transition: all .15s;
    }
    .share-btn:hover { color: var(--text); border-color: rgba(147,197,253,.4); text-decoration: none; }
    .share-btn svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
    .share-btn.x:hover { border-color: rgba(255,255,255,.3); color: #fff; }
    .share-btn.fb:hover { border-color: #1877f2; color: #60a5fa; }
    .share-btn.reddit:hover { border-color: #ff4500; color: #ff6b35; }
    .share-btn.linkedin:hover { border-color: #0a66c2; color: #60a5fa; }
    .share-btn.email:hover { border-color: var(--good); color: var(--good); }
    .share-btn.copy:hover { border-color: var(--warn); color: var(--warn); }
    .bmc-btn {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 9px 16px;
      border-radius: 10px;
      border: 1px solid rgba(255,221,0,.3);
      background: rgba(255,221,0,.08);
      color: #ffdd00;
      font-size: 13px;
      font-weight: 600;
      font-family: var(--sans);
      cursor: pointer;
      text-decoration: none;
      transition: all .15s;
    }
    .bmc-btn:hover { background: rgba(255,221,0,.15); border-color: rgba(255,221,0,.5); text-decoration: none; }
    /* Favorite star button */
.fav-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--line);
  cursor: pointer;
  padding: 0 6px 0 0;
  transition: color 0.15s, transform 0.15s;
  line-height: 1;
  flex-shrink: 0;
}
.fav-btn:hover { color: var(--warn); transform: scale(1.15); }
.fav-btn.active { color: var(--warn); }

/* Favorites panel */
.favorites-panel {
  margin-bottom: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  animation: radar-in 0.3s ease-out;
}
.fav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  border-bottom: 1px solid var(--line);
  font-family: 'Chakra Petch', var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--warn);
}
.fav-count {
  font-size: 10px;
  color: var(--muted);
  background: var(--btn);
  padding: 1px 7px;
  border-radius: 10px;
}
.fav-list {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 6px;
}
.fav-list::-webkit-scrollbar { height: 0; }
.fav-item {
  display: flex;
  flex-direction: column;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}
.fav-item:hover { background: var(--btn); text-decoration: none; }
.fav-item-name { font-weight: 600; }
.fav-item-addr { font-size: 10px; color: var(--muted); margin-top: 1px; }

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  padding: 10px 20px;
  border-radius: 10px;
  background: rgba(110,231,183,0.15);
  border: 1px solid var(--good);
  color: var(--good);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 500;
  backdrop-filter: blur(8px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-error {
  background: rgba(253,164,175,0.15);
  border-color: var(--bad);
  color: var(--bad);
}

/* Submit success */
.submit-success {
  text-align: center;
  padding: 48px 20px;
  animation: radar-in 0.4s ease-out;
}
.submit-success-icon {
  font-size: 48px;
  margin-bottom: 12px;
  animation: success-bounce 0.5s ease-out;
}
@keyframes success-bounce {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.submit-success h2 {
  font-size: 22px;
  font-weight: 700;
}
.submit-success-value {
  font-family: 'Chakra Petch', var(--mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--good);
  margin-top: 8px;
}
.submit-success-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.copied-toast {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%) translateY(20px);
      padding: 10px 20px;
      border-radius: 10px;
      background: rgba(110,231,183,.15);
      border: 1px solid var(--good);
      color: var(--good);
      font-size: 13px;
      font-weight: 600;
      font-family: var(--sans);
      opacity: 0;
      pointer-events: none;
      transition: opacity .2s, transform .2s;
      z-index: 100;
    }
    .copied-toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    /* ---- MODAL ---- */
    .overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,.6);
      backdrop-filter: blur(4px);
      z-index: 200;
      justify-content: center;
      align-items: flex-start;
      padding: 40px 16px;
      overflow-y: auto;
    }
    .overlay.open { display: flex; }
    .modal {
      width: 100%;
      max-width: 600px;
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: 0 20px 60px rgba(0,0,0,.5);
    }
    .modal .hd {
      padding: 16px 18px;
      border-bottom: 1px solid var(--line);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .modal .hd h2 {
      font-size: 16px;
      font-weight: 700;
    }
    .modal .bd { padding: 18px; }
    .close-btn {
      background: none;
      border: 1px solid var(--line);
      color: var(--muted);
      width: 32px; height: 32px;
      border-radius: 8px;
      font-size: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
    }
    .close-btn:hover { color: var(--text); border-color: var(--bad); }

    /* ---- MY PIZZERIAS LIST ---- */
    .my-list { list-style: none; padding: 0; }
    .my-list li {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 14px;
      border: 1px solid var(--line);
      border-radius: 12px;
      margin-bottom: 8px;
      background: rgba(11,15,23,.5);
    }
    .my-list .name { font-weight: 600; font-size: 14px; }
    .my-list .meta { color: var(--muted); font-size: 12px; }
    .my-list .btns { display: flex; gap: 6px; }
    .my-list .btns button {
      padding: 6px 10px;
      font-size: 12px;
      border-radius: 8px;
    }
    .my-empty {
      text-align: center;
      padding: 24px;
      color: var(--muted);
      font-size: 14px;
    }
    .add-form {
      border: 1px solid rgba(251,146,60,.25);
      border-radius: 14px;
      padding: 16px;
      background: rgba(251,146,60,.04);
      margin-top: 12px;
    }
    .add-form h3 {
      font-size: 14px;
      color: var(--orange);
      margin-bottom: 12px;
    }
    .add-form input {
      width: 100%;
      padding: 9px 12px;
      border-radius: 10px;
      border: 1px solid var(--line);
      background: rgba(11,15,23,.7);
      color: var(--text);
      outline: none;
      font-size: 14px;
      font-family: var(--sans);
    }
    .add-form input:focus {
      border-color: rgba(147,197,253,.65);
      box-shadow: 0 0 0 3px rgba(147,197,253,.12);
    }
    .add-form input::placeholder { color: rgba(169,180,208,.4); }
    .size-rows { margin-top: 10px; }
    .size-row {
      display: grid;
      grid-template-columns: 1fr 80px 100px 36px;
      gap: 8px;
      align-items: center;
      margin-bottom: 8px;
    }
    @media (max-width: 500px) {
      .size-row { grid-template-columns: 1fr 70px 80px 36px; }
    }
    .size-row input { font-family: var(--mono); font-size: 13px; }
    .rm-size {
      width: 32px; height: 32px;
      padding: 0;
      border-radius: 8px;
      background: rgba(253,164,175,.1);
      border: 1px solid rgba(253,164,175,.2);
      color: var(--bad);
      font-size: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .rm-size:hover { background: rgba(253,164,175,.2); }

    html { scroll-behavior: smooth; }

/* Auth UI */
#authContainer {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Install banner */
.install-banner {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(251,146,60,0.1);
  border: 1px solid rgba(251,146,60,0.25);
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text);
  animation: radar-in 0.3s ease-out;
}
.install-banner.show { display: flex; }
.install-banner button {
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 8px;
}
.install-banner .install-dismiss {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 16px;
  padding: 0 4px;
  cursor: pointer;
}

/* Hero tagline */
.hero-tagline {
  text-align: center;
  font-size: clamp(20px, 4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 16px 0 4px;
  line-height: 1.2;
}
.hero-tagline .hl { color: var(--orange); }
.hero-sub {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}

/* Compact search bar */
.search-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.search-bar-label {
  position: absolute;
  left: 0; right: 0;
  bottom: -20px;
}
.search-bar { position: relative; margin-bottom: 28px; }
.search-bar-btn { font-size: 13px; padding: 8px 16px; }
.search-bar-or { color: var(--muted); font-size: 12px; }
.search-bar-input {
  width: 140px; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel2);
  color: var(--text); font-size: 13px;
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.search-bar-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(147,197,253,0.15);
}
.search-bar-input::placeholder { color: rgba(169,180,208,0.5); }
.search-bar-go { font-size: 12px; padding: 8px 12px; }
.search-bar-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100px;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.search-bar-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--panel);
  box-shadow: 0 0 6px rgba(147,197,253,0.4);
  cursor: pointer;
}
.search-bar-range::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--panel);
  box-shadow: 0 0 6px rgba(147,197,253,0.4);
  cursor: pointer;
}
.search-bar-range-label {
  font-family: 'Chakra Petch', var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.5px;
  white-space: nowrap;
  min-width: 36px;
}
.search-bar-label {
  text-align: center;
  color: var(--muted); font-size: 12px;
}
.search-bar-label:empty { display: none; }

/* Empty radar state */
.radar-empty-state {
  text-align: center;
  padding: 40px 20px;
}
.radar-empty-state p {
  color: var(--muted);
  font-size: 14px;
  font-family: 'Chakra Petch', var(--sans);
  letter-spacing: 1px;
  margin-top: 16px;
}
.radar-empty-scope {
  width: 160px; height: 160px;
  margin: 0 auto;
  position: relative;
  border-radius: 50%;
  background: #060a14;
  border: 1px solid rgba(147,197,253,0.1);
  overflow: hidden;
}
.radar-empty-scope svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.radar-empty-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: empty-pulse 3s ease-in-out infinite;
}
@keyframes empty-pulse {
  0%, 100% { opacity: 0.4; } 50% { opacity: 1; }
}

/* Compact footer */
.compact-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
.compact-footer a { color: var(--accent); text-decoration: none; }
.compact-footer a:hover { text-decoration: underline; }
.footer-sep { opacity: 0.3; }

/* Policy page */
.policy-text { font-size: 14px; line-height: 1.7; color: var(--muted); }
.policy-text h3 { color: var(--text); font-size: 16px; margin: 20px 0 6px; }
.policy-text p { margin-bottom: 10px; }
.policy-text ul { margin: 0 0 12px 20px; }
.policy-text li { margin-bottom: 4px; }
.policy-text strong { color: var(--text); }

/* Search Results */
.search-results { display: flex; flex-direction: column; gap: 8px; }
.empty-results {
  text-align: center;
  padding: 60px 20px;
  animation: radar-in 0.3s ease-out;
}
.empty-results p { line-height: 1.6; }
.loading {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-family: 'Chakra Petch', var(--sans);
  letter-spacing: 0.5px;
}
.loading-spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.result-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.result-card:hover {
  border-color: var(--accent);
  background: var(--panel2);
}
.result-card-unpriced {
  opacity: 0.7;
  border-style: dashed;
}
.result-card-unpriced:hover {
  opacity: 1;
}

.result-rank {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--btn);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}

.result-info { flex: 1; min-width: 0; }
.result-name {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.result-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.chain-tag {
  display: inline-block;
  background: var(--btn2);
  color: var(--accent);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  margin-right: 6px;
  font-weight: 600;
  vertical-align: middle;
}

.result-value {
  text-align: right;
  flex-shrink: 0;
}
.result-cpi {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
}
.result-label {
  font-size: 11px;
  margin-top: 2px;
  font-weight: 600;
}
.result-value.great .result-cpi { color: var(--good); }
.result-value.great .result-label { color: var(--good); }
.result-value.good .result-cpi { color: var(--accent); }
.result-value.good .result-label { color: var(--accent); }
.result-value.avg .result-cpi { color: var(--warn); }
.result-value.avg .result-label { color: var(--warn); }
.result-value.pricey .result-cpi { color: var(--bad); }
.result-value.pricey .result-label { color: var(--bad); }

.ad-card {
  background: var(--panel2);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin: 4px 0;
}

/* Ad slots */
.ad-slot {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 12px 0;
}
.ad-slot-banner { min-height: 60px; }
.ad-slot-rect { min-height: 100px; }
.ad-bmc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(255,221,0,0.06);
  border: 1px solid rgba(255,221,0,0.15);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.ad-bmc:hover {
  background: rgba(255,221,0,0.12);
  border-color: rgba(255,221,0,0.3);
  text-decoration: none;
}
.ad-bmc-label {
  font-size: 13px;
  color: var(--muted);
}
.ad-bmc-btn {
  font-size: 13px;
  font-weight: 600;
  color: #ffdd00;
  background: rgba(255,221,0,0.1);
  padding: 5px 14px;
  border-radius: 8px;
}
/* Order button */
.order-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(251,146,60,0.12);
  border: 1px solid rgba(251,146,60,0.25);
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.order-btn:hover {
  background: rgba(251,146,60,0.2);
  text-decoration: none;
}

@media (max-width: 600px) {
  .result-card { padding: 12px 14px; gap: 10px; }
  .result-rank { width: 30px; height: 30px; font-size: 12px; }
  .result-cpi { font-size: 13px; }
}

/* Location Detail */
.price-table { width: 100%; }
.price-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.price-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr 1fr;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  font-size: 14px;
}
.price-row.best-value {
  background: rgba(110, 231, 183, 0.05);
  border-radius: 8px;
  padding: 12px 8px;
}
.size-col strong { display: block; }
.conf-col { font-size: 13px; }
.action-col { display: flex; gap: 6px; }
.action-col .btn-ghost { font-size: 12px; padding: 4px 10px; }

@media (max-width: 600px) {
  .price-header { display: none; }
  .price-row {
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }
  .action-col { grid-column: 1 / -1; justify-content: flex-end; }
}

/* Profile */
.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.rep-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}
.rep-badge.new { background: var(--btn); color: var(--muted); }
.rep-badge.contributor { background: rgba(147, 197, 253, 0.15); color: var(--accent); }
.rep-badge.trusted { background: rgba(110, 231, 183, 0.15); color: var(--good); }
.rep-badge.local-expert { background: rgba(251, 146, 60, 0.15); color: var(--orange); }

.submission-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.submission-row:last-child { border-bottom: none; }

/* Submit Page */
.location-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  margin-top: 4px;
  font-size: 14px;
}
.location-option:hover {
  border-color: var(--accent);
  background: var(--btn);
}

.value-preview.great { color: var(--good); }
.value-preview.good { color: var(--accent); }
.value-preview.avg { color: var(--warn); }
.value-preview.pricey { color: var(--bad); }

/* Shared Navigation */
.main-nav {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 16px;
}
.nav-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.main-nav .nav-links {
  display: flex;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover { background: var(--btn); color: var(--text); }
.nav-link.active { background: var(--btn2); color: var(--text); }

@media (max-width: 600px) {
  .main-nav {
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    border-bottom: none;
    border-top: 1px solid var(--line);
  }
  .nav-inner { justify-content: center; gap: 4px; }
  .nav-logo { display: none; }
  #authContainer { display: flex; }
  #authContainer .nav-link { padding: 8px 10px; font-size: 13px; }
  #authContainer .btn-primary,
  #authContainer .btn-ghost { font-size: 12px !important; padding: 6px 10px !important; }
  body { padding-bottom: 60px; }
}

/* Scan progress */
.scan-progress {
  width: 200px;
  height: 4px;
  background: var(--btn);
  border-radius: 2px;
  margin: 16px auto 0;
  overflow: hidden;
}
.scan-bar {
  width: 40%;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  animation: scanMove 1.5s ease-in-out infinite;
}
@keyframes scanMove {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ===== PIZZA RADAR ===== */
.radar-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  animation: radar-in 0.4s ease-out;
}
@keyframes radar-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.radar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  font-family: 'Chakra Petch', var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}
.radar-title { font-weight: 700; font-size: 12px; }
.radar-status { color: var(--muted); font-size: 10px; }
.radar-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.5px;
}
.rl-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-left: 6px;
}

/* Layout */
.radar-body { display: flex; height: 320px; }
.radar-map-col {
  flex: 1;
  position: relative;
  background: #060a14;
}
.radar-map {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Leaflet dark theme overrides */
.radar-map .leaflet-control-zoom a {
  background: var(--panel) !important;
  color: var(--accent) !important;
  border-color: var(--line) !important;
  font-family: 'Chakra Petch', var(--mono);
  width: 28px !important;
  height: 28px !important;
  line-height: 28px !important;
  font-size: 16px !important;
}
.radar-map .leaflet-control-zoom a:hover {
  background: var(--btn2) !important;
}
.radar-map .leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
}

/* Sweep overlay on map */
.radar-sweep-overlay {
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg, transparent 340deg,
    rgba(147,197,253,0.03) 348deg,
    rgba(147,197,253,0.06) 356deg,
    rgba(110,231,183,0.12) 360deg
  );
  animation: sweep 6s linear infinite;
  pointer-events: none;
  z-index: 2;
  opacity: 0.6;
}
@keyframes sweep { to { transform: rotate(360deg); } }

/* CRT scanlines on map */
.radar-scanlines-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.04) 2px, rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
  z-index: 3;
}

/* Map blip markers */
.map-blip-wrap {
  background: none !important;
  border: none !important;
}
.map-blip {
  border-radius: 50%;
  transition: transform 0.15s;
  position: relative;
}
.map-blip.blip-pulse {
  animation: top-pulse 2s ease-in-out infinite;
}
.map-blip-ping {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid;
  opacity: 0;
  animation: ping-ring 2s cubic-bezier(0,0,0.2,1) infinite;
}
@keyframes top-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3); } }
@keyframes ping-ring { 0% { transform: scale(0.8); opacity: 0.6; } 100% { transform: scale(2.5); opacity: 0; } }
.map-blip-rank {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Chakra Petch', var(--mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  text-shadow: 0 0 4px rgba(0,0,0,0.8);
  letter-spacing: 0.5px;
}

/* Your location marker */
.map-you-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent), 0 0 16px rgba(147,197,253,0.3);
  animation: you-pulse 3s ease-in-out infinite;
}
@keyframes you-pulse { 0%, 100% { box-shadow: 0 0 8px var(--accent); } 50% { box-shadow: 0 0 14px var(--accent), 0 0 24px rgba(147,197,253,0.4); } }
.map-you-label {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Chakra Petch', var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  text-shadow: 0 0 4px rgba(0,0,0,0.9);
}

/* List */
.radar-list-col {
  display: flex; flex-direction: column;
  width: 340px; flex-shrink: 0;
  border-left: 1px solid var(--line);
  background: var(--panel);
}
.radar-list {
  overflow-y: auto;
  flex: 1;
}
.radar-list::-webkit-scrollbar { width: 3px; }
.radar-list::-webkit-scrollbar-track { background: var(--panel2); }
.radar-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }
.radar-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.2s;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid rgba(34,48,77,0.4);
  font-size: 13px;
  animation: list-in 0.3s ease-out both;
}
@keyframes list-in {
  from { opacity: 0; transform: translateX(6px); }
  to { opacity: 1; transform: translateX(0); }
}
.radar-list-item:last-child { border-bottom: none; }
.radar-list-item:hover { background: var(--btn); }
.radar-list-item.selected { background: var(--btn); box-shadow: inset 3px 0 0 var(--accent); }
.rli-rank {
  font-family: 'Chakra Petch', var(--mono);
  font-size: 11px; color: var(--muted);
  width: 24px; text-align: center; flex-shrink: 0;
}
.rli-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.rli-dot.great { background: var(--good); box-shadow: 0 0 4px var(--good); }
.rli-dot.good { background: var(--accent); }
.rli-dot.avg { background: var(--warn); }
.rli-dot.pricey { background: var(--bad); }
.rli-dot.unpriced { background: var(--muted); opacity: 0.4; }
.rli-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.4; }
.rli-addr { display: block; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.rli-chain {
  font-size: 9px; color: var(--accent);
  background: rgba(147,197,253,0.08);
  padding: 1px 5px; border-radius: 3px; margin-right: 3px;
}
.rli-dist { font-size: 11px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.rli-value {
  font-family: var(--mono); font-size: 11px;
  white-space: nowrap; flex-shrink: 0; min-width: 62px; text-align: right;
}
.rli-value.great { color: var(--good); }
.rli-value.good { color: var(--accent); }
.rli-value.avg { color: var(--warn); }
.rli-value.pricey { color: var(--bad); }
.rli-value.unpriced {
  color: var(--accent); font-style: normal; font-family: var(--sans);
  font-size: 10px; opacity: 0.7;
}
.rli-value.unpriced:hover { opacity: 1; text-decoration: underline; }

/* Detail panel — sits between header and body */
.radar-detail {
  padding: 0; max-height: 0; overflow: hidden;
  border-bottom: 0 solid var(--line);
  transition: max-height 0.25s ease, padding 0.25s ease;
  background: var(--panel2);
}
.radar-detail.active {
  max-height: 120px;
  padding: 10px 14px;
  border-bottom-width: 1px;
}
.radar-detail-inner { display: flex; align-items: center; gap: 12px; }
.radar-detail-text { flex: 1; min-width: 0; }
.radar-detail-name {
  font-family: 'Chakra Petch', var(--sans);
  font-size: 14px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.radar-detail-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.radar-detail-value {
  font-family: 'Chakra Petch', var(--mono);
  font-size: 18px; font-weight: 700; flex-shrink: 0;
}
.radar-detail-actions { display: flex; gap: 6px; margin-top: 6px; }
.radar-detail-actions a {
  font-size: 11px; padding: 4px 10px; border-radius: 6px;
  text-decoration: none; font-family: 'Chakra Petch', var(--sans); letter-spacing: 0.5px;
}
.rda-primary { background: var(--accent); color: var(--bg); font-weight: 600; }
.rda-ghost { background: var(--btn); color: var(--text); border: 1px solid var(--line); }

/* Footer bar */
.radar-footer {
  display: flex; justify-content: center;
  padding: 6px; border-top: 1px solid var(--line);
}
.radar-footer {
  gap: 8px;
}
.radar-footer button {
  font-family: 'Chakra Petch', var(--mono);
  font-size: 10px; letter-spacing: 1px;
  padding: 4px 12px;
}

@media (max-width: 768px) {
  .radar-body { flex-direction: column; height: auto; }
  .radar-map-col { min-height: 260px; height: 260px; flex: none; }
  .radar-list-col { width: 100%; border-left: none; border-top: 1px solid var(--line); }
  .radar-list { max-height: 240px; }
  .rli-value { display: none; }
}
@media (max-width: 600px) {
  .radar-map-col { min-height: 220px; height: 220px; }
  .radar-list { max-height: 200px; }
  .search-bar { gap: 6px; padding: 8px 10px; flex-wrap: wrap; }
  .search-bar-btn { font-size: 12px; padding: 7px 12px; }
  .search-bar-input { width: 80px; }
  .search-bar-label { position: static; width: 100%; }
  .compact-footer { flex-wrap: wrap; font-size: 11px; }
}
