:root {
  color-scheme: dark;
  --bg: #050609;
  --bg-elevated: #0a0c11;
  --panel: #0e1118;
  --panel-2: #121620;
  --line: rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.14);
  --text: #f7f7fb;
  --muted: #989cab;
  --accent: #7656ff;
  --accent-2: #996cff;
  --accent-soft: rgba(118,86,255,.14);
  --success: #63d785;
  --warning: #ffb340;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --max: 1440px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: radial-gradient(circle at 80% -20%, rgba(118,86,255,.12), transparent 34%), var(--bg); color: var(--text); min-width: 320px; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.app-shell { max-width: var(--max); margin: 0 auto; min-height: 100vh; }
.desktop-sidebar { display: none; }
.main-content { padding: 0 16px 110px; min-width: 0; }
.topbar { height: 72px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; position: relative; z-index: 30; }
.brand { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.brand-word { font-size: 24px; font-weight: 760; letter-spacing: -.8px; }
.brand-product { font-size: 14px; color: var(--accent-2); font-weight: 700; }
.location-button, .account-button, .icon-button, .side-link, .text-button, .filter-trigger { border: 0; background: transparent; cursor: pointer; }
.location-button { justify-self: center; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 650; padding: 10px; border-radius: 999px; }
.location-button:hover { background: rgba(255,255,255,.04); }
.chevron { color: var(--muted); }
.account-button { width: 38px; height: 38px; border-radius: 50%; padding: 0; overflow: hidden; border: 1px solid var(--line); }
.account-button img { width: 100%; height: 100%; object-fit: cover; }
.account-copy, .account-button > .chevron, .notifications, .desktop-search-wrap { display: none; }

.mobile-intro { margin-top: 4px; }
.mobile-intro p { color: var(--muted); margin: 0 0 3px; font-size: 14px; }
h1 { margin: 0 0 16px; font-size: clamp(24px, 7vw, 34px); line-height: 1.08; letter-spacing: -.9px; }
h2 { font-size: clamp(20px, 4vw, 28px); letter-spacing: -.5px; margin: 0; }
h3 { margin: 0; }
.search-box { min-height: 48px; width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 15px; padding: 0 14px; color: var(--muted); }
.search-box:focus-within { border-color: rgba(118,86,255,.66); box-shadow: 0 0 0 3px rgba(118,86,255,.11); }
.search-box input { border: 0; outline: 0; background: transparent; color: var(--text); min-width: 0; width: 100%; }
.search-box input::placeholder { color: #747986; }
.filter-trigger { color: var(--muted); font-size: 18px; }

.hero { position: relative; min-height: 170px; overflow: hidden; border-radius: var(--radius); margin: 18px 0 24px; border: 1px solid var(--line); background: #130d24; }
.hero img { width: 100%; height: 100%; min-height: 170px; object-fit: cover; position: absolute; inset: 0; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,5,12,.95) 0%, rgba(7,6,13,.65) 48%, rgba(7,6,13,.1) 100%); }
.hero-copy { position: relative; max-width: 70%; padding: 24px 20px 32px; z-index: 1; }
.eyebrow { color: var(--accent-2); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 800; }
.hero h2 { margin-top: 5px; font-size: clamp(24px, 7vw, 38px); max-width: 500px; }
.hero p { color: #c9cad2; max-width: 430px; font-size: 13px; line-height: 1.45; display: none; }
.primary-button, .secondary-button { border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 750; cursor: pointer; }
.primary-button { background: linear-gradient(135deg, #5a2bd4, #7c39df); color: #fff; }
.secondary-button { background: rgba(255,255,255,.08); color: #fff; border: 1px solid var(--line); }
.primary-button:hover, .secondary-button:hover { filter: brightness(1.1); }
.hero-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.hero-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.35); }
.hero-dots i.is-active { width: 16px; border-radius: 99px; background: #fff; }

.section { margin: 30px 0; }
.section-heading { display: flex; justify-content: space-between; gap: 14px; align-items: end; margin-bottom: 14px; }
.section-heading.compact { align-items: center; margin-bottom: 12px; }
.section-heading.compact span { color: var(--muted); font-size: 12px; }
.text-button { color: var(--accent-2); font-weight: 700; white-space: nowrap; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.feature-card { min-height: 138px; padding: 16px; display: flex; justify-content: space-between; align-items: flex-end; background: linear-gradient(145deg, #11131a, #0c0e14); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.feature-card:before { content:""; position: absolute; inset: 0; background: radial-gradient(circle at 100% 0%, rgba(118,86,255,.19), transparent 42%); pointer-events: none; }
.feature-club:before { background: radial-gradient(circle at 100% 0%, rgba(118,86,255,.33), transparent 48%); }
.feature-card small { color: var(--muted); }
.feature-card h3 { font-size: 16px; margin: 5px 0; }
.feature-card p { color: var(--muted); font-size: 12px; line-height: 1.4; margin: 0; }
.feature-icon { font-size: 28px; color: var(--accent-2); position: relative; }

.featured-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.featured-strip::-webkit-scrollbar, .category-scroller::-webkit-scrollbar { display: none; }
.business-card { background: linear-gradient(180deg, #10131a, #0c0f15); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; min-width: 0; scroll-snap-align: start; cursor: pointer; transition: transform .18s ease, border-color .18s ease; }
.business-card:hover { transform: translateY(-2px); border-color: rgba(118,86,255,.42); }
.business-image { position: relative; aspect-ratio: 1.55; overflow: hidden; background: #171a20; }
.business-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.business-card:hover .business-image img { transform: scale(1.025); }
.favorite { position: absolute; right: 9px; top: 9px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.17); background: rgba(5,6,9,.72); display: grid; place-items: center; font-size: 18px; cursor: pointer; }
.favorite.is-active { color: #fff; background: var(--accent); }
.status-badge { display: inline-flex; align-items: center; width: max-content; padding: 4px 8px; border-radius: 99px; background: rgba(56,184,91,.18); color: #75e696; font-size: 10px; font-weight: 800; }
.business-image .status-badge { position: absolute; left: 9px; bottom: 9px; backdrop-filter: blur(8px); }
.business-body { padding: 12px; }
.business-body h3 { font-size: 15px; line-height: 1.25; margin-bottom: 4px; }
.business-category { color: var(--muted); font-size: 11px; margin: 0 0 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.business-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 11px; }
.rating { color: var(--text); }
.rating b { color: var(--warning); }
.club-chip { margin-top: 9px; color: #beaaff; font-size: 10px; background: var(--accent-soft); width: max-content; padding: 5px 8px; border-radius: 99px; }

.categories-anchor { margin: 30px -16px 0; min-height: 110px; position: relative; }
.category-sticky-inner { position: sticky; top: 0; z-index: 25; padding: 13px 16px 14px; background: rgba(5,6,9,.94); backdrop-filter: blur(18px); border-top: 1px solid transparent; border-bottom: 1px solid transparent; }
.category-sticky-inner.is-stuck { border-color: var(--line); }
.category-scroller { display: flex; gap: 9px; overflow-x: auto; scrollbar-width: none; }
.category-tab { flex: 0 0 auto; min-height: 42px; border-radius: 14px; border: 1px solid var(--line); background: #0b0e14; color: #c4c6cf; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.category-tab span { color: #967cff; }
.category-tab.is-active { border-color: var(--accent); background: var(--accent-soft); color: #fff; }
.businesses-section { margin-top: 18px; }
.business-actions { display: flex; align-items: center; gap: 8px; }
.business-actions select { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; max-width: 140px; }
.business-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.empty-state { text-align: center; padding: 48px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.empty-state > span { font-size: 34px; color: var(--accent-2); }
.empty-state p { color: var(--muted); }
.site-footer { display: none; }

.bottom-nav { position: fixed; z-index: 40; bottom: 0; left: 0; right: 0; padding: 8px max(12px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5,1fr); background: rgba(7,8,12,.94); backdrop-filter: blur(20px); border-top: 1px solid var(--line); }
.bottom-nav button { border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; gap: 2px; cursor: pointer; min-height: 52px; }
.bottom-nav button span { font-size: 20px; }
.bottom-nav button small { font-size: 10px; }
.bottom-nav button.is-active { color: var(--accent-2); }
.bottom-nav .ecosystem-trigger { width: 58px; height: 58px; min-height: 58px; justify-self: center; margin-top: -24px; border-radius: 50%; background: linear-gradient(145deg,#6031d4,#7c41dd); color: #fff; box-shadow: 0 10px 30px rgba(69,35,147,.4); border: 5px solid var(--bg); }
.bottom-nav .ecosystem-trigger small { display: none; }

.modal-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.68); backdrop-filter: blur(4px); }
.sheet { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; background: #0b0e14; border: 1px solid var(--line-strong); border-radius: 26px 26px 0 0; padding: 10px 18px max(26px,env(safe-area-inset-bottom)); box-shadow: 0 -25px 80px rgba(0,0,0,.6); }
.sheet[hidden], .modal-backdrop[hidden] { display: none; }
.sheet-handle { width: 38px; height: 4px; border-radius: 99px; background: #454955; margin: 0 auto 16px; }
.sheet-header { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 18px; }
.icon-button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.05); }
.city-list { display: grid; gap: 8px; margin-top: 14px; }
.location-option { border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 15px; min-height: 62px; padding: 11px 14px; display: flex; align-items: center; gap: 13px; cursor: pointer; text-align: left; }
.location-option:hover { border-color: rgba(118,86,255,.45); }
.location-option > span:first-child { color: var(--accent-2); font-size: 20px; }
.location-option span:last-child { display: grid; gap: 3px; }
.location-option small { color: var(--muted); }
.use-location { width: 100%; margin-top: 14px; }
.ecosystem-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.ecosystem-grid button { min-height: 130px; display: grid; place-items: start; align-content: center; gap: 6px; text-align: left; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(145deg,#10131c,#0c0e14); padding: 18px; cursor: pointer; }
.ecosystem-grid button > span { color: var(--accent-2); font-size: 28px; }
.ecosystem-grid small { color: var(--muted); }
.account-profile { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.account-profile img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.account-profile div { display: grid; gap: 4px; }
.account-profile small { color: var(--muted); }
.account-menu { display: grid; margin-top: 12px; }
.account-menu button { text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); padding: 16px 4px; cursor: pointer; }
.business-sheet-image { width: calc(100% + 36px); max-width: none; height: 220px; object-fit: cover; margin: -10px -18px 0; }
.floating-close { position: absolute; right: 14px; top: 14px; z-index: 2; }
.business-sheet-content { padding-top: 18px; }
.business-sheet-title { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.business-sheet-title h2 { margin-top: 8px; }
.favorite-large { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: #fff; font-size: 20px; }
.rating-line { color: var(--muted); font-size: 13px; margin: 10px 0 18px; }
.business-sheet-content > p { color: #c2c5cf; line-height: 1.6; }
.action-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin: 22px 0; }
.action-row button { border: 1px solid var(--line); background: var(--panel); min-height: 70px; border-radius: 15px; color: var(--accent-2); font-size: 19px; display: grid; place-items: center; gap: 3px; }
.action-row small { color: var(--muted); font-size: 10px; }
.full { width: 100%; border-radius: 14px; min-height: 48px; }
.external-note { display: block; color: var(--muted); line-height: 1.45; margin-top: 10px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 90px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .22s; padding: 11px 15px; border-radius: 999px; background: #f4f4f7; color: #16171b; font-weight: 700; font-size: 13px; white-space: nowrap; max-width: calc(100vw - 30px); overflow: hidden; text-overflow: ellipsis; }
.toast.is-visible { opacity: 1; transform: translate(-50%,0); }

@media (min-width: 720px) {
  .main-content { padding: 0 28px 110px; }
  .topbar { grid-template-columns: auto auto 1fr auto auto; gap: 15px; }
  .desktop-search-wrap { display: block; max-width: 520px; width: 100%; justify-self: center; }
  .notifications { display: grid; background: transparent; }
  .account-button { width: auto; height: auto; overflow: visible; border: 0; display: flex; align-items: center; gap: 9px; }
  .account-button img { width: 38px; height: 38px; border-radius: 50%; }
  .account-copy { display: grid; text-align: left; line-height: 1.1; }
  .account-copy small { color: var(--muted); margin-top: 4px; }
  .account-button > .chevron { display: inline; }
  .mobile-intro { display: none; }
  .hero { min-height: 230px; margin-top: 20px; }
  .hero img { min-height: 230px; }
  .hero-copy { padding: 38px; }
  .hero p { display: block; }
  .feature-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .featured-strip { grid-auto-columns: 31%; }
  .business-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
  .categories-anchor { margin-inline: -28px; }
  .category-sticky-inner { padding-inline: 28px; }
  .sheet { left: auto; right: 22px; bottom: 22px; width: min(480px, calc(100vw - 44px)); border-radius: 26px; max-height: calc(100vh - 44px); }
  .business-sheet-image { border-radius: 20px 20px 0 0; }
}

@media (min-width: 1080px) {
  .app-shell { display: grid; grid-template-columns: 235px minmax(0,1fr); }
  .desktop-sidebar { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 28px 18px; border-right: 1px solid var(--line); background: rgba(6,7,10,.86); backdrop-filter: blur(18px); }
  .desktop-sidebar .brand { padding: 4px 10px 28px; }
  .side-nav { display: grid; gap: 5px; }
  .side-link { min-height: 46px; display: flex; align-items: center; gap: 12px; border-radius: 13px; text-align: left; padding: 0 13px; color: #c2c4cd; }
  .side-link.is-active, .side-link:hover { background: var(--accent-soft); color: #fff; }
  .side-link span { color: var(--accent-2); width: 18px; }
  .partner-card { margin-top: 22px; padding: 17px; border-radius: 16px; border: 1px solid rgba(118,86,255,.2); background: radial-gradient(circle at 100% 0%, rgba(118,86,255,.3), transparent 46%), #11101b; }
  .partner-card strong { display: block; font-size: 18px; margin: 4px 0 8px; }
  .partner-card p { color: var(--muted); font-size: 12px; line-height: 1.45; }
  .partner-card .secondary-button { font-size: 11px; padding: 9px 12px; }
  .ecosystem-mini { margin-top: auto; padding: 12px 6px; border-top: 1px solid var(--line); }
  .ecosystem-mini > p { color: var(--muted); font-size: 11px; }
  .ecosystem-mini button { width: 100%; display: flex; align-items: center; gap: 10px; background: transparent; border: 0; color: var(--accent-2); padding: 9px 4px; text-align: left; }
  .ecosystem-mini button span { display: grid; color: var(--text); }
  .ecosystem-mini small { color: var(--muted); }
  .main-content { padding: 0 34px 50px; }
  .mobile-brand { display: none; }
  .topbar { grid-template-columns: auto minmax(360px, 620px) auto auto; height: 86px; }
  .location-button { justify-self: start; }
  .hero { min-height: 260px; }
  .hero img { min-height: 260px; }
  .feature-grid { gap: 14px; }
  .feature-card { min-height: 148px; }
  .featured-strip { grid-auto-columns: 23%; }
  .categories-anchor { margin-inline: -34px; }
  .category-sticky-inner { padding-inline: 34px; top: 0; }
  .business-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
  .bottom-nav { display: none; }
  .site-footer { margin: 55px -34px -50px; padding: 42px 34px 24px; border-top: 1px solid var(--line); background: #080a0f; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
  .site-footer p { color: var(--muted); max-width: 360px; }
  .site-footer > div { display: grid; align-content: start; gap: 10px; }
  .site-footer a:not(.brand) { color: var(--muted); font-size: 13px; }
  .site-footer small { grid-column: 1/-1; color: #6f7380; text-align: center; padding-top: 20px; border-top: 1px solid var(--line); }
}

@media (min-width: 1380px) {
  .app-shell { grid-template-columns: 250px minmax(0,1fr); }
  .business-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .featured-strip { grid-auto-columns: 19%; }
}
