:root{
  --bg:#f4f7f5;
  --surface:#ffffff;
  --surface-2:#f8fafc;
  --ink:#0f172a;
  --muted:#64748b;
  --muted-2:#94a3b8;
  --line:#e2e8f0;
  --line-2:#eef2f7;
  --brand:#047857;
  --brand-2:#059669;
  --brand-dark:#064e3b;
  --brand-soft:#d1fae5;
  --danger:#b42318;
  --ok:#067647;
  --warn:#b45309;
  --shadow-sm:0 1px 2px rgba(15,23,42,.06);
  --shadow:0 18px 50px rgba(15,23,42,.08);
  --shadow-lg:0 26px 80px rgba(15,23,42,.14);
  --radius:24px;
  --safe-top:env(safe-area-inset-top,0px);
  --safe-bottom:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{touch-action:manipulation}
img,svg,video{max-width:100%;display:block}
.container,.wrap{width:min(1180px,100%);margin-inline:auto;padding-inline:clamp(14px,4vw,22px)}
.hidden{display:none!important}.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;padding:0;margin:-1px}

/* Public header */
.site-header,.header{position:sticky;top:0;z-index:60;background:rgba(255,255,255,.92);border-bottom:1px solid rgba(226,232,240,.9);backdrop-filter:blur(18px);padding-top:var(--safe-top)}
.header-inner{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;align-items:center;gap:12px;min-width:0}.brand-mark,.logo{width:46px;height:46px;display:grid;place-items:center;border-radius:18px;background:linear-gradient(135deg,var(--brand),#16a34a);color:white;font-size:23px;box-shadow:0 12px 24px rgba(4,120,87,.22);flex:0 0 auto}.brand-text{display:grid;min-width:0}.brand-text strong,.header .brand h1{font-size:18px;line-height:1.1;letter-spacing:-.02em;margin:0;white-space:nowrap}.brand-text small,.header .brand p{color:var(--muted);font-size:12px;margin:2px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top-nav{display:flex;align-items:center;gap:8px;font-size:14px;color:#334155;overflow-x:auto;scrollbar-width:none;max-width:100%}.top-nav::-webkit-scrollbar{display:none}.top-nav a{white-space:nowrap;padding:9px 11px;border-radius:999px}.top-nav a:hover{background:#ecfdf5;color:var(--brand-dark)}.top-nav .admin-link{background:white;border:1px solid var(--line);box-shadow:var(--shadow-sm)}

/* Hero/search */
.hero-section{background:radial-gradient(circle at top left,#d1fae5 0,#ecfdf5 22%,#f4f7f5 52%,#f4f7f5 100%);padding:clamp(24px,5vw,54px) 0 28px}.hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,450px);gap:clamp(18px,4vw,36px);align-items:center}.eyebrow,.eyebrow-mini{display:inline-flex;width:max-content;max-width:100%;border-radius:999px;padding:8px 12px;background:var(--brand-soft);color:var(--brand-dark);font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.hero-copy h1{max-width:720px;margin:18px 0 16px;font-size:clamp(38px,6vw,72px);line-height:.94;letter-spacing:-.065em}.hero-lead{max-width:640px;margin:0;color:#475569;font-size:clamp(16px,2vw,19px);line-height:1.55}.trust-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.trust-row span{border:1px solid rgba(4,120,87,.18);background:rgba(255,255,255,.75);border-radius:999px;padding:9px 12px;color:#334155;font-size:14px;box-shadow:0 8px 20px rgba(15,23,42,.04)}
.search-card,.card{background:rgba(255,255,255,.96);border:1px solid rgba(226,232,240,.95);border-radius:32px;box-shadow:var(--shadow)}.search-card{padding:18px}.location-status{display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:22px;background:#f8fafc;padding:14px 15px;margin-bottom:14px;min-width:0}.location-status>div{min-width:0}.location-status .label{display:block;color:var(--muted);font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.location-status strong{display:block;font-size:14px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.link-button,.manual-toggle{border:0;background:transparent;color:var(--brand-dark);font-weight:900;cursor:pointer;padding:8px 0}.search-box{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;border:2px solid transparent;background:white;border-radius:24px;padding:8px 8px 8px 15px;box-shadow:0 1px 2px rgba(15,23,42,.04),0 0 0 1px var(--line)}.search-box:focus-within{box-shadow:0 0 0 4px rgba(4,120,87,.14),0 0 0 1px var(--brand)}.search-icon{font-size:18px;color:var(--muted)}#q{height:48px;border:0;outline:0;min-width:0;font-size:17px;background:transparent}.primary-button,.secondary-button,.route-button,.btn{min-height:46px;border:0;border-radius:18px;padding:0 18px;font-weight:900;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:transform .15s ease,filter .15s ease,box-shadow .15s ease;text-align:center}.primary-button,.btn{background:var(--brand);color:white;box-shadow:0 12px 24px rgba(4,120,87,.20)}.primary-button:hover,.secondary-button:hover,.route-button:hover,.btn:hover{transform:translateY(-1px);filter:brightness(.98)}.primary-button:disabled,.btn:disabled{opacity:.62;cursor:not-allowed;transform:none}.secondary-button,.btn.secondary{background:white;color:var(--ink);border:1px solid var(--line);box-shadow:none}.quick-search{display:flex;gap:8px;overflow-x:auto;padding:14px 2px 4px;scrollbar-width:none;-webkit-overflow-scrolling:touch}.quick-search::-webkit-scrollbar{display:none}.quick-search button{flex:0 0 auto;border:1px solid #bbf7d0;background:#f0fdf4;color:#166534;border-radius:999px;padding:9px 13px;font-size:14px;font-weight:900;cursor:pointer}.filter-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}.filter-grid label,.manual-location label,.field{display:grid;gap:7px}.filter-grid span,.manual-location span,.field label{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.05em;font-weight:900}.filter-grid select,.manual-location input,.input{width:100%;height:48px;border:1px solid var(--line);border-radius:16px;background:white;padding:0 13px;outline:none;color:var(--ink)}.filter-grid select:focus,.manual-location input:focus,.input:focus{border-color:var(--brand);box-shadow:0 0 0 4px rgba(4,120,87,.12)}.manual-toggle{margin-top:14px}.manual-location{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end;margin-top:10px;padding-top:14px;border-top:1px solid var(--line)}
.suggest-list{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:40;list-style:none;margin:0;padding:7px;background:white;border:1px solid var(--line);border-radius:20px;box-shadow:0 20px 50px rgba(15,23,42,.15);max-height:300px;overflow:auto}.suggest-item{padding:11px 13px;border-radius:14px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px;color:#334155}.suggest-item:hover,.suggest-item.is-active{background:#ecfdf5;color:var(--brand-dark)}.suggest-item small,.suggest-item span{color:#94a3b8;font-size:12px;font-weight:700}

/* Results */
.results-section{padding-top:28px;padding-bottom:36px}.alert,.notice{border-radius:20px;padding:15px 17px;margin-bottom:16px;font-size:14px;line-height:1.45}.alert-warning,.notice.warn{background:#fffbeb;border:1px solid #fde68a;color:#92400e}.alert-info,.notice.info{background:#eff6ff;border:1px solid #bfdbfe;color:#1e40af}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:24px}.stat-card,.metric-card,.analytics-card,.how-grid article,.card.pad{background:white;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow-sm)}.stat-card{padding:19px}.stat-card span,.stat-card small,.metric-card span,.metric-card small{display:block;color:var(--muted);font-size:13px}.stat-card strong,.metric-card strong{display:block;margin:5px 0 3px;font-size:clamp(24px,5vw,30px);letter-spacing:-.04em;line-height:1}.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:16px}.section-head h2,.analytics-head h2{margin:0;font-size:clamp(24px,5vw,30px);letter-spacing:-.04em}.section-head p,.analytics-head p{margin:4px 0 0;color:var(--muted);line-height:1.45}.location-pill{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;background:white;padding:8px 12px;color:#475569;font-size:13px;white-space:nowrap;box-shadow:var(--shadow-sm)}.offers-list{display:grid;gap:12px}.offer-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:stretch;background:white;border:1px solid var(--line);border-radius:26px;padding:18px;box-shadow:var(--shadow-sm);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;min-width:0}.offer-card:hover{transform:translateY(-2px);box-shadow:0 16px 36px rgba(15,23,42,.08);border-color:#cbd5e1}.offer-card.featured{border-color:rgba(4,120,87,.34);box-shadow:0 16px 38px rgba(4,120,87,.11)}.offer-main{min-width:0}.badges{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:10px}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:900;line-height:1.1}.badge.best{background:var(--brand);color:white}.badge.source{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}.badge.promo{background:#fffbeb;color:#92400e;border:1px solid #fde68a}.badge.merchant{background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0}.badge.variation{border:1px solid #e2e8f0}.offer-main h3{margin:0;font-size:18px;letter-spacing:-.02em;line-height:1.25;overflow-wrap:anywhere}.product-meta{margin:4px 0 12px;color:var(--muted);font-size:14px;line-height:1.35;overflow-wrap:anywhere}.store-line{display:grid;gap:3px;margin:10px 0 12px}.store-line strong{font-size:15px;overflow-wrap:anywhere}.store-line span{color:#667085;font-size:14px;line-height:1.35;overflow-wrap:anywhere}.offer-meta{display:flex;flex-wrap:wrap;gap:8px}.offer-meta span{border-radius:999px;background:#f8fafc;border:1px solid #eef2f7;padding:6px 9px;color:#475569;font-size:12px}.offer-price{text-align:right;min-width:176px;display:flex;flex-direction:column;align-items:flex-end;gap:4px}.offer-price strong{font-size:clamp(30px,7vw,36px);letter-spacing:-.05em;line-height:1;color:#0f172a}.offer-price small{color:#667085;font-size:12px;line-height:1.35}.promo-text{max-width:230px}.route-button{min-height:40px;margin-top:10px;background:white;color:var(--brand-dark);border:1px solid #bbf7d0;padding:0 13px;font-size:14px;box-shadow:none}.offer-card.group-card{border-color:rgba(4,120,87,.18);background:linear-gradient(180deg,#ffffff,#f6fefb)}.offer-card.group-card .offer-price strong{color:var(--brand-dark)}.empty-state{background:white;border:1px dashed #cbd5e1;border-radius:26px;text-align:center;padding:42px 22px}.empty-state span{font-size:38px}.empty-state h3{margin:10px 0 6px}.empty-state p{margin:0 auto;color:var(--muted);max-width:520px;line-height:1.5}
.category-chips{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 22px}.chip{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);background:white;border-radius:999px;padding:8px 13px;font-size:13px;font-weight:900;color:#334155;cursor:pointer;transition:all .15s ease}.chip:hover{border-color:var(--brand);color:var(--brand-dark)}.chip.active{background:var(--brand);color:white;border-color:var(--brand);box-shadow:0 8px 18px rgba(4,120,87,.22)}.chip-count{background:rgba(0,0,0,.08);color:inherit;border-radius:999px;padding:1px 7px;font-size:11px;font-weight:900}.chip.active .chip-count{background:rgba(255,255,255,.22);color:#fff}

/* Analytics */
.analytics-panel{background:#fff;border:1px solid var(--line);border-radius:30px;padding:22px;margin:0 0 26px;box-shadow:var(--shadow-sm)}.analytics-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:16px}.metric-select{height:46px;border:1px solid var(--line);border-radius:16px;background:white;padding:0 12px;font-weight:900;color:#334155;min-width:160px}.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:14px}.metric-card{padding:17px}.metric-card strong.up,.change-pill.up,.badge.variation.up{color:#b42318;background:#fef3f2;border-color:#fecdc9}.metric-card strong.down,.change-pill.down,.badge.variation.down{color:#067647;background:#ecfdf3;border-color:#abefc6}.metric-card strong.flat,.change-pill.flat,.badge.variation.flat{color:#475467;background:#f2f4f7;border-color:#e4e7ec}.metric-card strong.neutral,.change-pill.neutral{color:#475467;background:#f8fafc;border-color:#e2e8f0}.analytics-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.analytics-card{padding:17px;min-width:0}.mini-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.mini-head h3{margin:0;font-size:17px;letter-spacing:-.02em}.mini-head span{font-size:12px;color:#667085;background:#f8fafc;border:1px solid #eef2f7;border-radius:999px;padding:6px 9px;white-space:nowrap}.history-list,.category-list,.nearby-list{display:grid;gap:9px;max-height:460px;overflow:auto;padding-right:2px}.history-row,.category-row{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:center;border:1px solid #eef2f7;background:#fcfcfd;border-radius:17px;padding:12px}.category-row{grid-template-columns:minmax(0,1fr) auto}.history-row strong,.category-row strong{display:block;font-size:14px}.history-row span,.category-row span{display:block;color:#667085;font-size:12px;margin-top:2px}.category-values{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.category-values>span:first-child{font-weight:900;color:var(--ink);font-size:14px}.change-pill{display:inline-flex!important;align-items:center;justify-content:center;border:1px solid #e2e8f0;border-radius:999px;padding:5px 8px;font-weight:900;font-size:12px!important;white-space:nowrap}.muted-box{border:1px dashed #cbd5e1;border-radius:18px;background:#f8fafc;color:#667085;padding:16px;text-align:center;font-size:14px;line-height:1.45}

/* Nearby / business / how */
.business-cta-section{padding:8px 0 32px}.business-cta-card{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(135deg,#063f31,#047857);color:white;border-radius:30px;padding:26px;box-shadow:var(--shadow)}.business-cta-card h2{margin:9px 0 8px;font-size:clamp(25px,5vw,34px);letter-spacing:-.04em;line-height:1.08}.business-cta-card p{margin:0;color:#d1fae5;max-width:700px;line-height:1.5}.business-cta-card .eyebrow{background:rgba(255,255,255,.12);color:#bbf7d0}.business-cta-card .primary-button{background:#fff;color:#064e3b;white-space:nowrap;box-shadow:none}.nearby-stores-card{margin-top:16px;margin-bottom:16px}.nearby-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #eef2f7;background:#fcfcfd;border-radius:18px;padding:13px 14px}.nearby-card strong{display:block;font-size:15px;letter-spacing:-.01em}.nearby-card p{margin:3px 0 4px;color:#667085;font-size:13px;line-height:1.35}.nearby-card small{color:#475467;font-size:12px;font-weight:700}.nearby-card .route-button{min-height:38px;padding:0 12px;font-size:13px;margin:0}.how-section{padding:20px 0 56px}.how-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.how-grid article{padding:22px}.step-number{width:34px;height:34px;display:grid;place-items:center;border-radius:13px;background:var(--brand-soft);color:var(--brand-dark);font-weight:900}.how-grid h3{margin:14px 0 6px}.how-grid p{margin:0;color:var(--muted);line-height:1.55}.site-footer{border-top:1px solid var(--line);background:white;padding:24px 0 calc(24px + var(--safe-bottom))}.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;color:#475569;font-size:14px}.footer-inner p{margin:4px 0 0}.fine-print{max-width:560px;text-align:right}.is-loading{cursor:progress}

/* Skeletons */
.skeleton-card{display:block}.skeleton-line{height:14px;border-radius:999px;background:linear-gradient(90deg,#eef2f7,#f8fafc,#eef2f7);background-size:200% 100%;animation:pulse 1.2s infinite;margin-bottom:12px}.skeleton-line.w-40{width:40%}.skeleton-line.w-80{width:80%;height:22px}.skeleton-line.w-60{width:60%}.skeleton-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}.skeleton-grid span{height:28px;border-radius:999px;background:#f1f5f9}@keyframes pulse{0%{background-position:200% 0}100%{background-position:-200% 0}}

/* Admin and merchant */
.auth-page{min-height:100vh;background:radial-gradient(circle at top,#d1fae5 0,#f5f7f4 38%,#f5f7f4 100%);display:grid;place-items:center;padding:24px}.auth-shell{width:min(460px,100%)}.auth-card{background:white;border:1px solid var(--line);border-radius:30px;padding:26px;box-shadow:var(--shadow)}.auth-brand{margin-bottom:20px}.auth-brand h1{margin:0;font-size:22px;letter-spacing:-.03em}.auth-brand p{margin:3px 0 0;color:var(--muted)}.grid{display:grid;grid-template-columns:1.35fr .65fr;gap:20px;padding-top:22px;padding-bottom:34px}.space{display:grid;gap:16px}.side{display:grid;gap:16px;align-content:start}.card.pad{padding:20px}.sub{color:var(--muted);line-height:1.5}.field{margin-bottom:12px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.btn.small{min-height:36px;border-radius:13px;font-size:13px}.summary p{margin:0 0 10px;color:#475467}.admin-log,.codebox{white-space:pre-wrap;line-height:1.5;max-height:420px;overflow:auto;background:#020617;color:#e2e8f0;border-radius:18px;padding:18px}.codebox{font-size:12px}.admin-list{display:grid;gap:10px}.admin-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;border:1px solid #eef2f7;background:#fcfcfd;border-radius:18px;padding:14px}.admin-item h3{margin:0 0 4px;font-size:16px}.admin-item p{margin:2px 0;color:#667085;font-size:14px}.admin-item small{color:#667085}.admin-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.test-ok{color:#067647}.test-fail{color:#b42318}.merchant-layout{padding-top:26px;padding-bottom:44px}.merchant-hero{margin-bottom:18px}.merchant-hero h1{font-size:clamp(34px,5vw,56px);line-height:1;letter-spacing:-.05em;margin:14px 0}.merchant-auth-grid,.merchant-dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}.merchant-dashboard-grid{margin-bottom:18px}.merchant-auth-grid h2,.merchant-dashboard-grid h2{margin-top:0}.merchant-auth-grid .btn,.merchant-dashboard-grid .btn{width:100%;margin-top:4px}

/* Responsive */
@media(max-width:1024px){
  .hero-grid{grid-template-columns:1fr}.search-card{max-width:760px}.analytics-grid,.metric-grid{grid-template-columns:1fr}.analytics-head{align-items:stretch;flex-direction:column}.metric-select{width:100%}.grid,.merchant-auth-grid,.merchant-dashboard-grid{grid-template-columns:1fr}.how-grid{grid-template-columns:1fr}.nearby-card{grid-template-columns:1fr}.nearby-card .route-button{width:100%}.admin-item{grid-template-columns:1fr}.admin-actions{justify-content:flex-start}.business-cta-card{align-items:flex-start;flex-direction:column}.business-cta-card .primary-button{width:100%}.footer-inner{align-items:flex-start;flex-direction:column}.fine-print{text-align:left}.history-row{grid-template-columns:1fr}.category-row{grid-template-columns:1fr}.category-values{justify-content:flex-start}.analytics-panel{padding:16px;border-radius:24px}
}
@media(max-width:760px){
  .container,.wrap{padding-inline:14px}.site-header .header-inner,.header .header-inner{min-height:auto;padding-block:10px;align-items:flex-start;flex-direction:column;gap:10px}.brand-mark,.logo{width:42px;height:42px;border-radius:16px}.brand-text strong,.header .brand h1{font-size:17px}.top-nav{width:100%;padding-bottom:2px}.top-nav a{padding:8px 10px;background:#f8fafc;border:1px solid #eef2f7}.hero-section{padding-top:22px}.hero-copy h1{font-size:42px;line-height:.98;letter-spacing:-.055em}.hero-lead{font-size:16px}.trust-row{display:grid;grid-template-columns:1fr;gap:8px}.search-card{border-radius:26px;padding:14px}.location-status{align-items:flex-start}.location-status strong{white-space:normal}.search-box{grid-template-columns:auto minmax(0,1fr);padding:8px 10px 10px 14px}.search-box .primary-button{grid-column:1/-1;width:100%;margin-top:2px}.filter-grid{grid-template-columns:1fr}.manual-location{grid-template-columns:1fr}.manual-location .secondary-button{width:100%}.quick-search{margin-inline:-4px;padding-inline:4px}.stats-grid{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:20px}.stat-card{padding:15px;border-radius:20px}.stat-card strong{font-size:24px}.stat-card:first-child{grid-column:1/-1}.section-head{align-items:flex-start;flex-direction:column;gap:10px}.location-pill{white-space:normal;line-height:1.35}.offer-card{grid-template-columns:1fr;gap:14px;border-radius:22px;padding:15px}.offer-card:hover{transform:none}.offer-price{width:100%;min-width:0;text-align:left;align-items:stretch;border-top:1px solid #eef2f7;padding-top:13px}.offer-price strong{font-size:34px}.offer-price small{text-align:left}.route-button{width:100%;min-height:44px}.offer-meta{display:grid;grid-template-columns:1fr;gap:7px}.offer-meta span{border-radius:14px}.badges{gap:6px}.badge{font-size:11px;padding:5px 8px}.category-chips{flex-wrap:nowrap;overflow:auto;margin-inline:-14px;padding-inline:14px;padding-bottom:4px;scrollbar-width:none}.category-chips::-webkit-scrollbar{display:none}.chip{flex:0 0 auto}.analytics-panel{margin-inline:-2px}.mini-head{align-items:flex-start;flex-direction:column}.history-list,.category-list,.nearby-list{max-height:none;overflow:visible}.business-cta-card{border-radius:24px;padding:20px}.how-section{padding-bottom:34px}.field-row{grid-template-columns:1fr}.card.pad{padding:16px}.admin-log,.codebox{max-height:300px;font-size:12px;padding:14px;border-radius:16px}
}
@media(max-width:420px){
  .hero-copy h1{font-size:36px}.eyebrow{font-size:11px;padding:7px 10px}.search-card{padding:12px}.search-box{border-radius:20px}.primary-button,.secondary-button,.btn{width:100%}.stats-grid{grid-template-columns:1fr}.stat-card:first-child{grid-column:auto}.offer-main h3{font-size:17px}.offer-price strong{font-size:31px}.business-cta-card h2{font-size:25px}.merchant-hero h1{font-size:34px}.auth-card{padding:20px;border-radius:24px}
}


/* =========================================================
   v31 MOBILE HARDENING
   Purpose: force a true mobile-first layout even on older
   mobile browsers and avoid any horizontal overflow.
   ========================================================= */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  min-width: 0;
}

input,
select,
textarea,
button {
  max-width: 100%;
  font: inherit;
}

pre,
code,
.admin-log,
.codebox {
  max-width: 100%;
  overflow-x: auto;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

.container,
.wrap,
.header-inner,
.hero-grid,
.results-section,
.business-cta-card,
.search-card,
.card,
.offer-card,
.analytics-panel,
.admin-item,
.merchant-layout {
  max-width: 100%;
}

.brand,
.brand-text,
.top-nav,
.hero-copy,
.offer-main,
.offer-price,
.store-line,
.product-meta,
.section-head,
.analytics-head,
.mini-head,
.admin-item,
.nearby-card,
.business-cta-card {
  min-width: 0;
}

.offer-main h3,
.store-line strong,
.store-line span,
.product-meta,
.location-pill,
.badge,
.notice,
.alert,
.admin-item h3,
.admin-item p,
.category-row,
.history-row,
.business-cta-card p {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Tablet and below: one column, larger touch targets */
@media (max-width: 900px) {
  .container,
  .wrap {
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .site-header,
  .header {
    position: sticky;
    top: 0;
    z-index: 30;
  }

  .header-inner,
  .site-header .header-inner,
  .header .header-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand {
    width: 100%;
  }

  .brand-text strong,
  .brand-text small {
    white-space: normal;
  }

  .top-nav {
    width: 100%;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .top-nav a {
    flex: 0 0 auto;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-section {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .hero-grid,
  .analytics-grid,
  .metric-grid,
  .how-grid,
  .grid,
  .merchant-auth-grid,
  .merchant-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 11vw, 44px);
    line-height: 0.98;
    letter-spacing: -0.055em;
  }

  .hero-lead,
  .business-cta-card p {
    font-size: 15px;
    line-height: 1.45;
  }

  .trust-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .trust-row span {
    width: 100%;
    border-radius: 16px;
  }

  .search-card {
    width: 100%;
    padding: 14px;
    border-radius: 24px;
  }

  .location-status {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: stretch;
  }

  .location-status strong {
    white-space: normal;
  }

  .location-status .link-button,
  .link-button,
  .manual-toggle {
    min-height: 42px;
    text-align: left;
  }

  .search-box {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
    border-radius: 20px;
  }

  .search-box #q,
  #q {
    width: 100%;
    min-width: 0;
    height: 50px;
    font-size: 16px;
  }

  .search-box .primary-button,
  .search-box button,
  #searchBtn {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 48px;
    margin-top: 0;
  }

  .suggest-list {
    left: 0;
    right: 0;
    max-width: 100%;
  }

  .quick-search,
  .category-chips {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .quick-search::-webkit-scrollbar,
  .category-chips::-webkit-scrollbar {
    display: none;
  }

  .quick-search button,
  .chip {
    flex: 0 0 auto;
    min-height: 40px;
  }

  .filter-grid,
  .manual-location,
  .field-row {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .filter-grid select,
  .manual-location input,
  .input,
  .field input,
  .field select,
  .field textarea {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
  }

  .primary-button,
  .secondary-button,
  .route-button,
  .btn,
  button[type="submit"] {
    width: 100%;
    min-height: 48px;
  }

  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .stat-card,
  .metric-card,
  .analytics-card,
  .card.pad {
    border-radius: 20px;
    padding: 15px;
  }

  .section-head,
  .analytics-head,
  .mini-head,
  .business-cta-card,
  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .location-pill,
  .mini-head span {
    width: 100%;
    justify-content: flex-start;
    white-space: normal;
    border-radius: 16px;
  }

  .analytics-panel {
    padding: 14px;
    border-radius: 22px;
  }

  .metric-select {
    width: 100%;
  }

  .history-list,
  .category-list,
  .nearby-list {
    max-height: none;
    overflow: visible;
  }

  .history-row,
  .category-row,
  .nearby-card,
  .admin-item {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 10px;
    border-radius: 16px;
  }

  .category-values,
  .admin-actions {
    justify-content: stretch;
  }

  .category-values > *,
  .admin-actions > *,
  .admin-actions form,
  .admin-actions .btn {
    width: 100%;
  }

  .offer-card,
  .offer-card.group-card {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 12px;
    width: 100%;
    padding: 14px;
    border-radius: 20px;
  }

  .offer-card:hover {
    transform: none;
  }

  .badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .badge {
    max-width: 100%;
    white-space: normal;
    text-align: left;
    border-radius: 12px;
  }

  .offer-main h3 {
    font-size: 17px;
    line-height: 1.24;
  }

  .product-meta,
  .store-line span {
    font-size: 13px;
  }

  .offer-meta {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 7px;
  }

  .offer-meta span {
    width: 100%;
    border-radius: 13px;
    line-height: 1.3;
  }

  .offer-price {
    width: 100%;
    min-width: 0;
    align-items: stretch;
    text-align: left;
    border-top: 1px solid #eef2f7;
    padding-top: 12px;
  }

  .offer-price strong {
    font-size: clamp(28px, 10vw, 36px);
    line-height: 1;
  }

  .offer-price small {
    text-align: left;
  }

  .route-button {
    margin-top: 8px;
  }

  .business-cta-section,
  .how-section {
    padding-top: 16px;
    padding-bottom: 28px;
  }

  .business-cta-card {
    padding: 18px;
    border-radius: 22px;
  }

  .business-cta-card h2,
  .merchant-hero h1 {
    font-size: clamp(25px, 9vw, 34px);
    line-height: 1.05;
  }

  .empty-state {
    padding: 28px 16px;
    border-radius: 20px;
  }

  .auth-page {
    padding: 14px;
    align-items: start;
  }

  .auth-card {
    padding: 18px;
    border-radius: 22px;
  }
}

/* Very small phones */
@media (max-width: 420px) {
  .container,
  .wrap {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .brand-mark,
  .logo {
    width: 40px;
    height: 40px;
  }

  .brand-text strong,
  .header .brand h1 {
    font-size: 16px;
  }

  .brand-text small,
  .header .brand p {
    font-size: 11px;
  }

  .search-card,
  .analytics-panel,
  .card.pad,
  .offer-card,
  .business-cta-card {
    border-radius: 18px;
  }

  .stat-card strong,
  .metric-card strong {
    font-size: 24px;
  }

  .offer-price strong {
    font-size: 30px;
  }

  .admin-log,
  .codebox {
    font-size: 11px;
    padding: 12px;
  }
}

/* v36: modal para ver todos los precios de un negocio */
body.modal-open {
  overflow: hidden;
}

.offer-actions,
.nearby-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  width: 100%;
}

.route-button.ghost {
  background: #ffffff;
  color: #047857;
  border: 1px solid #a7f3d0;
  cursor: pointer;
}

.route-button.ghost:hover {
  background: #ecfdf5;
}

.store-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(4px);
}

.store-modal-backdrop.hidden {
  display: none;
}

.store-modal {
  width: min(920px, 100%);
  max-height: min(86vh, 900px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.35);
}

.store-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid #e2e8f0;
}

.store-modal-head h2 {
  margin: 4px 0 4px;
  font-size: clamp(22px, 5vw, 34px);
  line-height: 1.08;
}

.store-modal-head p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.modal-close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 14px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: #e2e8f0;
}

.store-modal-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px 22px;
  border-bottom: 1px solid #e2e8f0;
}

.store-modal-toolbar input {
  width: 100%;
  min-width: 0;
  height: 46px;
  border-radius: 16px;
  border: 1px solid #cbd5e1;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
}

.store-modal-toolbar input:focus {
  border-color: #047857;
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.12);
}

#storeModalStatus {
  margin: 16px 22px;
}

.store-prices-list {
  overflow: auto;
  padding: 12px 22px 22px;
}

.store-price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #eef2f7;
}

.store-price-row:last-child {
  border-bottom: 0;
}

.store-price-row strong {
  display: block;
  color: #0f172a;
}

.store-price-row span,
.store-price-row small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
}

.store-price-value {
  text-align: right;
  min-width: 120px;
}

.store-price-value strong {
  font-size: 20px;
  color: #047857;
}

@media (max-width: 760px) {
  .offer-actions,
  .nearby-actions {
    justify-content: stretch;
  }

  .offer-actions .route-button,
  .nearby-actions .route-button,
  .offer-actions button,
  .nearby-actions button {
    flex: 1 1 100%;
    width: 100%;
  }

  .store-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .store-modal {
    width: 100%;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
  }

  .store-modal-head {
    padding: 18px;
  }

  .store-modal-toolbar {
    grid-template-columns: 1fr;
    padding: 14px 18px;
  }

  #storeModalStatus {
    margin: 14px 18px;
  }

  .store-prices-list {
    padding: 8px 18px 20px;
  }

  .store-price-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .store-price-value {
    text-align: left;
    min-width: 0;
  }
}

.hp-field{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none;}

/* v45 CART SEARCH */
.search-mode-toggle{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px;background:#f8fafc;border:1px solid var(--line);border-radius:18px;padding:5px}.mode-pill{min-height:42px;border:0;border-radius:14px;background:transparent;color:#475569;font-weight:900;cursor:pointer}.mode-pill.active{background:white;color:var(--brand-dark);box-shadow:var(--shadow-sm);border:1px solid #dcfce7}.cart-help{margin-top:10px;border:1px solid #bbf7d0;background:#f0fdf4;color:#14532d;border-radius:18px;padding:12px 14px;font-size:14px;line-height:1.45}.cart-card{align-items:start}.cart-card.cart-partial{opacity:.94}.cart-total small:first-child{text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:900}.cart-lines{display:grid;gap:8px;margin-top:15px}.cart-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #eef2f7;background:#fcfcfd;border-radius:16px;padding:10px 12px}.cart-line strong{display:block;font-size:13px;color:#334155;text-transform:uppercase;letter-spacing:.04em}.cart-line span{display:block;margin-top:2px;color:#667085;font-size:13px;line-height:1.35}.cart-line b{font-size:15px;color:var(--ink);white-space:nowrap}.cart-line.missing{background:#fff7ed;border-color:#fed7aa}.cart-line.missing strong,.cart-line.missing b{color:#9a3412}.cart-line.missing span{color:#b45309}.offer-card.cart-complete.featured{border-color:#86efac}.offer-card.cart-partial .offer-price strong{color:#b45309}
@media(max-width:760px){.search-mode-toggle{grid-template-columns:1fr}.cart-line{grid-template-columns:1fr}.cart-line b{justify-self:start}.cart-help{font-size:13px}}
