:root {
  --bg: #03050d;
  --panel: #071221;
  --line: #1b4660;
  --text: #f6fbff;
  --muted: #8ca2b9;
  --cyan: #00eaff;
  --pink: #ff2bb4;
  --green: #4dffb0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.flyer-modal { width: min(920px, 100%); }
.flyer-area-bar { display: flex; align-items: end; gap: 10px; padding: 14px; background: #091a2a; border: 1px solid var(--line); }
.flyer-area-bar .form-field { flex: 1; }
.flyer-area-bar .primary-btn, .flyer-area-bar .ghost-btn { height: 39px; white-space: nowrap; }
.flyer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 18px 0; }
.flyer-tile { background: linear-gradient(145deg, #0d1728, #07111d); border: 1px solid var(--line); overflow: hidden; }
.flyer-tile:hover { border-color: var(--pink); }
.flyer-tile > img, .flyer-placeholder { width: 100%; height: 130px; object-fit: cover; display: grid; place-items: center; background: linear-gradient(135deg, #102b3e, #25103b); color: var(--cyan); font-size: 42px; }
.flyer-tile > div:last-child { padding: 12px; }.flyer-tile h3 { margin: 7px 0 3px; font-size: 15px; }.flyer-tile p { color: var(--muted); margin: 0 0 10px; font-size: 10px; }.flyer-open { color: var(--cyan); font-size: 10px; font-weight: 800; text-decoration: none; }.flyer-tile.discovered { border-color: #745080; }.flyer-tile.discovered .flyer-placeholder { color: var(--pink); }
.manual-upload { border-top: 1px solid var(--line); padding-top: 15px; color: var(--cyan); font-size: 11px; }.manual-upload summary { cursor: pointer; }.manual-upload form { padding-top: 12px; }
.composer-modal { width: min(720px, 100%); }.post-author { display: flex; align-items: center; gap: 10px; padding: 12px 0; }.post-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--cyan); background: #162c44; border: 1px solid var(--pink); font-size: 23px; }.post-author strong, .post-author small { display: block; }.post-author small { color: var(--muted); font-size: 10px; margin-top: 3px; }.composer-prompt textarea { width: 100%; min-height: 105px; resize: vertical; background: #081526; color: var(--text); border: 1px solid var(--line); padding: 15px; outline: none; }.composer-prompt textarea:focus { border-color: var(--pink); box-shadow: 0 0 15px #ff2bb422; }.composer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; padding: 14px 0; border-block: 1px solid var(--line); }.composer-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 14px; }.composer-action { border: 1px dashed var(--cyan); color: var(--cyan); padding: 10px 13px; font-size: 11px; cursor: pointer; }.composer-action input { display: none; }.composer-note { color: var(--muted); font-size: 10px; }
@media (max-width: 650px) { .flyer-area-bar { display: grid; grid-template-columns: 1fr 1fr; }.flyer-area-bar .form-field { grid-column: 1 / -1; }.flyer-grid { grid-template-columns: 1fr 1fr; }.composer-grid { grid-template-columns: 1fr; }.composer-tools { align-items: start; flex-direction: column; } }

* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(circle at 70% 10%, #15204f 0, transparent 32rem), linear-gradient(120deg, #03050d, #071321 45%, #080313);
  color: var(--text);
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.scanlines { position: fixed; inset: 0; pointer-events: none; opacity: .05; background: repeating-linear-gradient(0deg, #fff 0, #fff 1px, transparent 1px, transparent 4px); z-index: 5; }

.topbar { height: 62px; border-bottom: 1px solid var(--cyan); display: flex; align-items: center; padding: 0 clamp(14px, 2.5vw, 42px); gap: 18px; position: sticky; top: 0; background: #03050dee; backdrop-filter: blur(16px); z-index: 4; box-shadow: 0 0 28px #ff2bb422; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 900; font-size: 20px; font-style: italic; letter-spacing: -.04em; }
.brand-name > span { color: var(--cyan); }
.brand small { display: block; color: var(--muted); font-style: normal; font-size: 6px; letter-spacing: .18em; margin-top: 2px; }
.brand-cart { font-size: 24px; filter: drop-shadow(0 0 7px var(--cyan)); }
.desktop-nav { display: flex; align-items: center; gap: 5px; }
.desktop-nav a { color: var(--text); font-size: 10px; padding: 11px 13px; text-decoration: none; cursor: pointer; }
.desktop-nav a.active, .desktop-nav a:hover { color: #fff; background: #421047; box-shadow: 0 8px 15px #ff2bb455; border-bottom: 2px solid var(--pink); }
.desktop-search { display: flex; align-items: center; flex: 1; max-width: 325px; background: #0b1626; border: 1px solid #426079; border-radius: 8px; padding-left: 10px; }
.desktop-search > span { color: var(--cyan); font-size: 20px; }
.desktop-search input { width: 100%; background: transparent; border: 0; padding: 9px; color: var(--text); outline: none; font-size: 10px; }
.icon-btn { background: var(--pink); border: 0; width: 38px; height: 31px; font-size: 18px; color: #fff; }
.top-location { border: 0; background: none; color: var(--text); font-size: 10px; white-space: nowrap; }
.avatar { border: 1px solid var(--pink); border-radius: 50%; background: #25334b; color: #fff; width: 29px; height: 29px; }

.hero { max-width: 1450px; margin: auto; padding: 18px clamp(14px, 2.5vw, 42px) 20px; display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(255px, .55fr); gap: 12px; }
.hero-art, .nearby-panel, .quick-strip, .deal-card, .side-card { border: 1px solid var(--cyan); box-shadow: inset 0 0 0 1px #ff2bb444, 0 0 19px #00eaff18; position: relative; overflow: hidden; }
.hero-art { min-height: 395px; background: linear-gradient(90deg, #0a1627d8 0%, #0b1020b8 35%, #11103188), radial-gradient(ellipse at 70% 60%, #f92b9caa 0 3%, transparent 30%), linear-gradient(140deg, #121b45, #17051f 54%, #072136); }
.hero-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, transparent 15%, #ff2bb426 16% 18%, transparent 19% 43%, #00eaff22 44% 46%, transparent 47%), repeating-linear-gradient(90deg, transparent 0 58px, #00eaff2b 59px 60px); opacity: .6; }
.city-glow { position: absolute; right: 14%; bottom: 0; width: 50%; height: 70%; background: linear-gradient(160deg, transparent 18%, #34225c 19% 72%, #080c18 73%); clip-path: polygon(15% 48%, 25% 0, 42% 35%, 56% 16%, 75% 45%, 100% 30%, 100% 100%, 0 100%); filter: drop-shadow(0 -12px 14px #ff2bb488); }
.grocery-sign { position: absolute; right: 17%; top: 70px; color: #ff68c9; font-size: 26px; font-weight: 900; letter-spacing: .06em; text-shadow: 0 0 10px #ff2bb4; transform: skew(-10deg); }
.cart-art { position: absolute; right: 9%; bottom: 18px; font-size: 105px; filter: drop-shadow(0 0 12px #00eaff88); }
.hero-copy { position: relative; padding: 38px 28px; }
.hero-logo { font-size: clamp(38px, 5vw, 74px); font-weight: 950; font-style: italic; letter-spacing: -.06em; text-shadow: 0 0 16px #fff8; }
.hero-logo span { color: var(--cyan); text-shadow: 0 0 14px var(--cyan); }
.hero-kicker { font-size: clamp(19px, 2.1vw, 31px); color: var(--pink); font-weight: 950; font-style: italic; line-height: 1.1; margin: 10px 0; text-shadow: 0 0 12px #ff2bb4; }
.hero-kicker i { color: var(--cyan); font-style: italic; }
.lede { color: #e1f6ff; max-width: 530px; line-height: 1.7; }
.hero-search { display: flex; width: min(570px, 100%); height: 46px; border: 2px solid var(--pink); background: #101428d9; box-shadow: 0 0 15px #ff2bb477; margin-top: 18px; }
.hero-search span { font-size: 28px; padding: 4px 11px; color: var(--pink); }
.hero-search input { flex: 1; background: transparent; border: 0; color: #fff; outline: 0; padding: 0 8px; }
.hero-search button { width: 52px; background: var(--pink); border: 0; color: #fff; font-size: 23px; }
.hero-controls { display: flex; gap: 10px; margin-top: 12px; }
.hero-controls button, .hero-controls select { background: #071726e8; border: 1px solid var(--cyan); color: #fff; padding: 10px 14px; font-size: 11px; }

.nearby-panel { padding: 12px; background: #06101c; }
.panel-title { color: var(--cyan); font-weight: 900; font-size: 11px; letter-spacing: .14em; padding: 4px 5px; }
.panel-title span { float: right; }
.map-art { height: 312px; margin: 9px 0; background: linear-gradient(145deg, #0c102d, #041925); position: relative; overflow: hidden; background-image: linear-gradient(35deg, transparent 48%, #00eaff3d 49% 50%, transparent 51%), linear-gradient(120deg, transparent 48%, #ff2bb444 49% 50%, transparent 51%), linear-gradient(#00eaff19 1px, transparent 1px), linear-gradient(90deg, #00eaff19 1px, transparent 1px); background-size: auto, auto, 31px 31px, 31px 31px; }
.map-center { position: absolute; left: 47%; top: 48%; background: #fff; color: #0865c7; border-radius: 50%; padding: 4px 8px; box-shadow: 0 0 16px #fff; }
.map-dot { position: absolute; border-radius: 50%; padding: 7px; background: #00a6ff; color: #fff; border: 1px solid #fff; box-shadow: 0 0 15px currentColor; font-size: 9px; text-align: center; }
.map-dot small { font-size: 8px; }
.d1 { left: 52%; top: 20%; }.d2 { right: 10%; top: 35%; background: #ffd600; color: #111; }.d3 { left: 9%; top: 50%; background: #2bcc8c; }.d4 { right: 32%; bottom: 20%; background: #dbed11; color: #111; }
.panel-link { width: 100%; padding: 10px; background: #1d0a26; border: 1px solid var(--pink); color: #fff; font-weight: 900; }

.quick-strip { max-width: 1450px; margin: 0 auto 12px; display: grid; grid-template-columns: repeat(4, 1fr); background: #06101a; }
.quick-strip button { display: flex; align-items: center; gap: 12px; background: transparent; border: 0; border-right: 1px solid var(--line); color: #fff; padding: 13px; text-align: left; }
.quick-strip button:hover { background: #111d34; }
.quick-strip b { display: grid; place-items: center; width: 40px; height: 40px; color: var(--pink); font-size: 24px; background: #25103b; border: 1px solid var(--pink); }
.quick-strip strong, .quick-strip small { display: block; }.quick-strip strong { font-size: 12px; }.quick-strip small { color: var(--muted); font-size: 9px; margin-top: 4px; }

.signal-bar { border-block: 1px solid var(--line); background: #070f19; min-height: 43px; display: flex; align-items: center; gap: 26px; padding: 8px clamp(20px, 5vw, 80px); font-size: 10px; letter-spacing: .1em; }
.signal-bar label { margin-left: auto; color: var(--muted); font-size: 10px; }.signal-bar select, #sort { background: var(--panel); color: var(--text); border: 1px solid var(--line); padding: 8px; }
.location-btn, .text-btn { background: none; border: 0; color: var(--cyan); font-size: 11px; font-weight: 800; }.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); margin-right: 7px; }
.layout { display: grid; grid-template-columns: 180px 1fr; gap: 24px; max-width: 1450px; margin: auto; padding: 30px clamp(20px, 2.5vw, 42px); }
.sidebar nav { display: grid; gap: 6px; margin: 15px 0 22px; }.filter { background: none; border: 0; color: var(--muted); text-align: left; padding: 11px; font-size: 10px; }.filter.active, .filter:hover { color: var(--cyan); background: #102234; }.filter b { float: right; color: var(--green); font-size: 8px; }
.side-card { border-color: var(--line); padding: 16px 10px; margin-top: 18px; }.side-card strong { font-size: 16px; display: block; margin: 10px 0; }.quick { display: block; background: none; border: 0; color: var(--muted); padding: 8px 0; font-size: 11px; }
.content-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 13px; }.content-head h2 { margin: 8px 0; font-size: 25px; }.content-head h2 span { font-size: 14px; color: var(--muted); font-weight: 400; }
.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 13px; }.deal-card { background: linear-gradient(145deg, #0d1728, #07111d); border-color: #356a8d; }.deal-card:hover { border-color: var(--pink); transform: translateY(-2px); transition: .2s; }
.deal-photo { height: 132px; background: linear-gradient(135deg, #132c3a, #101728); display: grid; place-items: center; color: #55768a; font-size: 13px; overflow: hidden; }.deal-photo img { width: 100%; height: 100%; object-fit: cover; }.deal-body { padding: 13px; }.tag { font-size: 9px; color: var(--pink); letter-spacing: .13em; font-weight: 900; }.deal-body h3 { margin: 7px 0 3px; font-size: 16px; }.deal-store { color: var(--muted); font-size: 10px; }.price-row { display: flex; align-items: end; gap: 10px; margin: 12px 0; }.price { font-size: 24px; color: #fff; font-weight: 900; }.regular { text-decoration: line-through; color: #6b7784; font-size: 12px; }.deal-foot { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; color: var(--muted); font-size: 9px; }.deal-actions { display: flex; gap: 5px; }.deal-actions button { background: none; border: 0; color: var(--muted); }.deal-actions button:hover { color: var(--cyan); }.loading { color: var(--muted); padding: 40px; }

.modal-backdrop { position: fixed; inset: 0; background: #02060dcc; z-index: 8; display: grid; place-items: center; padding: 20px; }.modal { width: min(600px, 100%); max-height: 90vh; overflow: auto; background: var(--panel); border: 1px solid var(--cyan); box-shadow: 0 0 40px #24e8ff22; padding: 26px; }.modal h2 { margin-top: 0; }.modal-head { display: flex; justify-content: space-between; }.close { background: none; border: 0; color: var(--muted); font-size: 25px; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.form-grid .wide { grid-column: 1 / -1; }.form-field { display: grid; gap: 5px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }.form-field input, .form-field textarea, .form-field select { background: #07101c; color: var(--text); border: 1px solid var(--line); padding: 11px; }.form-field textarea { min-height: 90px; resize: vertical; }.form-submit { margin-top: 18px; width: 100%; background: var(--cyan); border: 0; padding: 13px; font-weight: 900; }.tabs { display: flex; gap: 10px; margin-bottom: 18px; }.tabs button { background: none; border: 0; color: var(--muted); padding: 8px; }.tabs button.active { color: var(--cyan); border-bottom: 1px solid var(--cyan); }
.flyer-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }.flyer-view-button, .flyer-item-button { background: transparent; border: 0; padding: 0; cursor: pointer; font: inherit; }.flyer-item-button { color: var(--pink); }.flyer-viewer { width: min(1120px, 100%); height: min(92vh, 900px); display: flex; flex-direction: column; }.viewer-subtitle { margin: -8px 0 0; color: var(--muted); font-size: 11px; }.flyer-pdf { width: 100%; flex: 1; min-height: 420px; border: 1px solid var(--line); background: #02060d; margin-top: 14px; }.viewer-actions { display: flex; gap: 10px; align-items: center; padding-top: 14px; }.viewer-download { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: #021018; }.viewer-actions .ghost-btn { text-decoration: none; }
.source-results { margin-top: 18px; padding-top: 4px; }.source-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }.source-row strong, .source-row small { display: block; }.source-row small { color: var(--muted); font-size: 9px; word-break: break-all; margin-top: 4px; }.source-status { color: var(--green); font-size: 9px; white-space: nowrap; }.source-status.bad { color: var(--pink); }
.toast { position: fixed; right: 20px; bottom: 25px; background: var(--green); color: #04100b; padding: 13px 18px; font-weight: 800; z-index: 20; transform: translateY(100px); transition: .25s; }.toast.show { transform: translateY(0); }.mobile-nav { display: none; }

@media (max-width: 980px) { .desktop-nav { display: none; }.hero { grid-template-columns: 1fr; }.nearby-panel { display: none; } }
@media (max-width: 650px) {
  .topbar { padding: 0 13px; height: 58px; }.desktop-search, .top-location { display: none; }.hero { padding: 10px 10px 14px; }.hero-art { min-height: 410px; }.hero-copy { padding: 29px 17px; }.hero-logo { font-size: 43px; }.grocery-sign { right: 8%; top: 35px; font-size: 18px; }.cart-art { font-size: 74px; right: 5%; bottom: 13px; }
  .quick-strip { margin: 0 10px 10px; grid-template-columns: repeat(2, 1fr); }.quick-strip button { padding: 9px; }.quick-strip button:nth-child(2) { border-right: 0; }.quick-strip strong { font-size: 10px; }.quick-strip small { font-size: 8px; }.signal-bar { padding: 8px 14px; gap: 10px; flex-wrap: wrap; }.signal-bar label { margin-left: 0; }.location-btn { margin-left: auto; }
  .layout { display: block; padding: 23px 13px 80px; }.sidebar { display: none; }.content-head h2 { font-size: 20px; }.deal-grid { grid-template-columns: 1fr 1fr; gap: 8px; }.deal-photo { height: 100px; }.deal-body { padding: 9px; }.deal-body h3 { font-size: 13px; }.price { font-size: 19px; }.deal-foot { font-size: 8px; }
  .mobile-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; height: 61px; background: #08111ef2; border-top: 1px solid var(--line); z-index: 7; justify-content: space-around; }.mobile-nav button { background: none; border: 0; color: var(--muted); font-size: 20px; display: grid; place-items: center; gap: 1px; }.mobile-nav span { font-size: 7px; letter-spacing: .1em; }.mobile-nav .mobile-post { background: var(--cyan); color: #03111c; width: 46px; height: 46px; border-radius: 50%; align-self: -10px; font-size: 27px; box-shadow: 0 0 20px #24e8ff66; }.form-grid { grid-template-columns: 1fr; }.form-grid .wide { grid-column: auto; }
}
