/* Customer website. Loaded after admin.css (shared forms, buttons, pills, panels). */

body.site { background: var(--surface-2); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 66px; }
.site-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; flex: none; }
.site-brand img { width: 36px; height: 36px; border-radius: 9px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.site-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 99px; text-decoration: none; color: var(--ink-2); font-weight: 550; white-space: nowrap; }
.site-nav a:hover { background: var(--line-soft); color: var(--ink); }
.site-nav a.is-current { background: var(--brand-soft); color: var(--brand-ink); }
.site-nav .icon { width: 17px; height: 17px; }
.site-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.cart-btn { position: relative; }
.cart-btn .dot-count { position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; border-radius: 99px; background: var(--accent); color: var(--accent-contrast); font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center; padding: 0 4px; }
.site-menu-btn { display: none; }
.site-header details.profile .profile-menu { width: 230px; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 70%, black) 100%); color: var(--brand-contrast); overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; right: -140px; top: -120px; width: 520px; height: 520px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 35%, transparent); filter: blur(10px); opacity: .55; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.025em; margin-bottom: 16px; }
.hero p.lead { font-size: 18px; opacity: .92; max-width: 520px; margin-bottom: 26px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn { min-height: 50px; padding: 14px 22px; font-size: 16px; border-radius: 12px; }
.hero .btn-white { background: #fff; color: color-mix(in srgb, var(--brand) 80%, black); }
.hero .btn-white:hover { background: #F1F5F4; color: color-mix(in srgb, var(--brand) 80%, black); }
.hero-card { background: var(--surface); color: var(--ink); border-radius: 18px; padding: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.hero-card h2 { font-size: 18px; margin-bottom: 4px; }
.hero-badges { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 28px; font-size: 14px; opacity: .92; }
.hero-badges span { display: inline-flex; align-items: center; gap: 7px; }

.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; }
.section-head p { margin: 6px 0 0; color: var(--ink-3); max-width: 620px; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.feature .ficon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; }
.feature .ficon .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--ink-2); margin: 0; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.steps li { list-style: none; position: relative; padding-top: 48px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-contrast); font-weight: 800; display: grid; place-items: center; }
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--ink-2); margin: 0; }
ol.steps { padding: 0; margin: 0; }

/* Shop cards */
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 550; }
.cat-chip:hover, .cat-chip.is-current { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.shop-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform .12s, box-shadow .12s; }
.shop-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(22,32,42,.10); color: var(--ink); }
.shop-cover { aspect-ratio: 16 / 8; background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, var(--accent) 25%, var(--surface))); position: relative; display: grid; place-items: center; color: var(--brand); }
.shop-cover img { width: 100%; height: 100%; object-fit: cover; }
.shop-cover .icon { width: 36px; height: 36px; opacity: .6; }
.shop-cover .closed { position: absolute; inset: 0; background: rgba(22,32,42,.55); color: #fff; display: grid; place-items: center; font-weight: 700; }
.shop-body { padding: 14px 16px 16px; display: flex; gap: 12px; align-items: flex-start; }
.shop-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; background: var(--line-soft); margin-top: -34px; border: 3px solid var(--surface); position: relative; }
.shop-body h3 { font-size: 16px; margin-bottom: 2px; }
.shop-meta { font-size: 13px; color: var(--ink-3); display: flex; gap: 10px; flex-wrap: wrap; }

/* Shop page */
.shop-hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.shop-hero .cover { height: 200px; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 60%, var(--accent))); }
.shop-hero .cover img { width: 100%; height: 100%; object-fit: cover; }
.shop-hero .info { display: flex; gap: 18px; align-items: flex-end; padding-bottom: 20px; flex-wrap: wrap; }
.shop-hero .info > .logo { margin-top: -44px; flex: none; }
.shop-hero .info img.logo { width: 88px; height: 88px; border-radius: 18px; border: 4px solid var(--surface); background: var(--surface); object-fit: cover; box-shadow: var(--shadow); }
.menu-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; padding: 24px 0 64px; }
.menu-section h2 { font-size: 18px; margin: 18px 0 12px; }
.product-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; gap: 12px; }
.product img, .product .ph { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; flex: none; background: var(--line-soft); display: grid; place-items: center; color: var(--ink-3); }
.product .body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.product h3 { font-size: 15px; margin-bottom: 2px; }
.product p { font-size: 13px; color: var(--ink-3); margin: 0 0 8px; }
.product .row { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.product.is-out { opacity: .55; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.qty button { width: 32px; height: 32px; border: 0; background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.qty button:hover { background: var(--line-soft); }
.qty span { min-width: 24px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-panel { position: sticky; top: 86px; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-lines li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.mobile-cart-bar { display: none; }

/* Booking form */
.book-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; padding: 28px 0 64px; }
.stop-block { border-left: 3px solid var(--brand); padding-left: 16px; margin-bottom: 18px; }
.stop-block.dropoff { border-left-color: var(--accent); }
.stop-block h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { display: block; margin: 0; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; background: var(--surface); font-weight: 500; color: var(--ink); height: 100%; }
.choice label strong { display: block; }
.choice label small { display: block; color: var(--ink-3); font-weight: 400; font-size: 12.5px; }
.choice input:checked + label { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.choice input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; }
.choice .price { font-weight: 700; color: var(--brand-ink); margin-top: 4px; }
.summary-panel { position: sticky; top: 86px; }
.saved-addr { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.saved-addr button { font: inherit; font-size: 12.5px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.saved-addr button:hover { border-color: var(--brand); color: var(--brand-ink); }

/* Payment box */
.pay-box { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--surface); }
.pay-status { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 10px; background: var(--info-soft); color: var(--info); margin-top: 12px; }
.pay-status.is-good { background: var(--good-soft); color: var(--good); }
.pay-status.is-bad { background: var(--bad-soft); color: var(--bad); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; flex: none; margin-top: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Status page */
.status-hero { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.code-pill { display: inline-block; font-size: 26px; font-weight: 800; letter-spacing: .25em; padding: 6px 16px; border-radius: 12px; background: var(--accent); color: var(--accent-contrast); font-variant-numeric: tabular-nums; }
.live-map { height: 320px; border-radius: 14px; border: 1px solid var(--line); z-index: 0; }

/* Auth */
.auth-card { max-width: 440px; margin: 48px auto; }

/* Footer */
.site-footer { background: #10181F; color: #C9D3DC; padding: 48px 0 28px; margin-top: 0; }
.site-footer a { color: #E6EDF3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-grid h4 { color: #fff; margin: 0 0 10px; font-size: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 18px; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.page-title { padding: 32px 0 8px; }
.page-title h1 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; }
.page-title p { color: var(--ink-3); margin: 6px 0 0; }
.content-narrow { max-width: 820px; }
.list-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.list-card a.row { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line-soft); text-decoration: none; color: var(--ink); }
.list-card a.row:first-child { border-top: 0; }
.list-card a.row:hover { background: var(--surface-2); }
.list-card .grow { flex: 1; min-width: 0; }
.list-card .sub { display: block; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Responsive */
@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 52px; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .menu-layout, .book-layout { grid-template-columns: 1fr; }
  .cart-panel, .summary-panel { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .site-menu-btn { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 66px; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 16px 16px; box-shadow: var(--shadow-pop); }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav a { border-radius: 10px; padding: 12px; }
  .site-header .profile-text { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 44px 0; }
  .features, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-header .wrap { gap: 10px; }
  .site-brand span { display: none; }
  .hero .btn { width: 100%; }
  .shop-hero .cover { height: 140px; }
  .mobile-cart-bar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--brand); color: var(--brand-contrast); text-decoration: none; font-weight: 700; box-shadow: var(--shadow-pop); }
  .mobile-cart-bar[hidden] { display: none; }
  .product-list { grid-template-columns: 1fr; }
}

/* v0.0.4: announcement bar, footer extras, promotions, help, chat, steps */
.announce { background: var(--accent); color: var(--accent-contrast); font-size: 14px; font-weight: 600; }
.announce .wrap { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; text-align: center; }
.announce a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.announce a:hover { text-decoration: underline; }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.social a { font-size: 13px; padding: 5px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 99px; }
.social a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.store-badges a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 10px; background: #000; border: 1px solid rgba(255,255,255,.25); color: #fff; font-weight: 700; line-height: 1.1; }
.store-badges small { display: block; font-size: 10.5px; font-weight: 500; opacity: .8; }
.footer-grid ul li { display: flex; align-items: center; gap: 6px; }

.promo-strip { padding: 28px 0 0; }
.promo-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.promo-track::-webkit-scrollbar { display: none; }
.promo { position: relative; min-height: 170px; border-radius: 18px; overflow: hidden; color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; gap: 4px; background-size: cover; background-position: center; scroll-snap-align: start; transition: transform .15s, box-shadow .15s; }
.promo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.6), rgba(0,0,0,.08)); }
.promo > * { position: relative; }
.promo:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(22,32,42,.18); color: #fff; }
.promo strong { font-size: 21px; letter-spacing: -.01em; line-height: 1.2; }
.promo span { opacity: .92; font-size: 14.5px; }
.promo em { font-style: normal; align-self: flex-start; margin-top: 8px; background: var(--accent); color: var(--accent-contrast); font-weight: 700; font-size: 13.5px; padding: 7px 14px; border-radius: 99px; display: inline-flex; gap: 6px; align-items: center; }
.promo .code-tag { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.95); color: #16202A; font-weight: 800; font-size: 12.5px; letter-spacing: .06em; padding: 4px 10px; border-radius: 8px; border: 1.5px dashed #16202A; }
.promo .ad-tag { position: absolute; top: 14px; left: 14px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(0,0,0,.35); padding: 3px 8px; border-radius: 6px; }
.featured-badge { position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; background: var(--accent); color: var(--accent-contrast); font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 99px; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.shop-card.is-featured { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.popup-ad { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(13,19,24,.55); animation: kdFade .25s ease both; }
.popup-ad .promo { width: min(480px, 100%); min-height: 300px; animation: kdUp .35s ease both; }
.popup-ad .close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #16202A; cursor: pointer; display: grid; place-items: center; }
@keyframes kdFade { from { opacity: 0; } }

.steps2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; position: relative; }
.step2 { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; transition: transform .15s, box-shadow .15s; }
.step2:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(22,32,42,.08); }
.step2 .num { counter-increment: s; position: absolute; top: 16px; right: 16px; font-size: 13px; font-weight: 800; color: var(--ink-3); }
.step2 .num::before { content: "0" counter(s); }
.step2 .ficon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--accent-contrast); margin-bottom: 14px; }
.step2 .ficon .icon { width: 22px; height: 22px; }
.step2 h3 { margin-bottom: 4px; font-size: 16px; }
.step2 p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

.faq-list details { border-bottom: 1px solid var(--line-soft); }
.faq-list summary { list-style: none; cursor: pointer; padding: 16px 4px; font-weight: 650; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { transition: transform .2s; color: var(--ink-3); flex: none; }
.faq-list details[open] summary .icon { transform: rotate(45deg); color: var(--brand); }
.faq-list details p { margin: 0 4px 16px; color: var(--ink-2); }
.help-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.help-card { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-decoration: none; color: var(--ink); }
.help-card:hover { border-color: var(--brand); color: var(--ink); }
.help-card .ficon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.help-card small { display: block; color: var(--ink-3); }

@media (max-width: 1000px) { .steps2 { grid-template-columns: 1fr 1fr; } .help-cards { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .steps2 { grid-template-columns: 1fr; gap: 12px; }
  .step2 { display: grid; grid-template-columns: 46px 1fr; gap: 0 14px; align-items: start; padding: 16px; }
  .step2 .ficon { margin: 0; grid-row: span 2; }
  .promo-track { grid-auto-columns: 86%; }
  .promo { min-height: 150px; }
}

/* Payment window */
.pay-methods { text-align: center; margin: 8px 0 0; }
.pay-direct { margin-top: 14px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.pay-direct summary { cursor: pointer; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.pay-direct form { margin-top: 12px; }
.fake-pop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(13,19,24,.6); animation: kdFade .2s ease both; }
.fake-pop-card { width: min(400px, 100%); background: var(--surface); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-pop); animation: kdUp .3s ease both; text-align: center; }
.fake-pop-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.fake-pop-head span { margin-left: auto; font-size: 20px; }

/* ---- v0.0.5 ---------------------------------------------------------------- */
.seg-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--line-soft); padding: 4px; border-radius: 12px; }
.seg-choice label { margin: 0; cursor: pointer; }
.seg-choice input { position: absolute; opacity: 0; pointer-events: none; }
.seg-choice span { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 10px; border-radius: 9px; font-weight: 600; color: var(--ink-2); }
.seg-choice input:checked + span { background: var(--surface); color: var(--brand-ink); box-shadow: var(--shadow); }
.seg-choice input:focus-visible + span { outline: 2px solid var(--brand); }

.approval-bar { background: var(--attention-soft); color: var(--attention-ink); border-bottom: 1px solid color-mix(in srgb, var(--attention) 30%, transparent); font-size: 14px; }
.approval-bar.is-bad { background: var(--bad-soft, #FBEAE6); color: var(--bad); }
.approval-bar .wrap { display: flex; gap: 10px; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.approval-bar a { color: inherit; font-weight: 650; }

.bell-btn { position: relative; }
.bell-btn .dot-count { position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center; padding: 0 4px; }

.stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { margin: 0; cursor: pointer; color: var(--line); }
.stars label .icon { width: 30px; height: 30px; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #F5A524; }
.stars input:checked ~ label .icon, .stars label:hover .icon, .stars label:hover ~ label .icon { fill: currentColor; }
.stars input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 6px; }
.rated { display: inline-flex; gap: 2px; color: #F5A524; }
.rated .icon { width: 18px; height: 18px; fill: currentColor; }
.rated .icon.off { color: var(--line); fill: none; }

.action-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.addr-list { list-style: none; margin: 0; padding: 0; }
.addr-list li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.addr-list li:first-child { border-top: 0; }
.addr-list .grow { flex: 1; min-width: 0; }
.addr-list .grow span { display: block; color: var(--ink-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sched-note { display: flex; gap: 10px; align-items: center; background: var(--info-soft); color: var(--info); border-radius: 12px; padding: 12px 14px; margin-bottom: 20px; }


/* ===== v0.2.0 Marketplace: search, categories, product cards, product page ===== */
.crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; color: var(--ink-3); margin-bottom: 6px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs .icon { width: 13px; height: 13px; opacity: .7; }
s.was { color: var(--ink-3); font-weight: 500; font-size: .88em; }
.sale-badge, .out-badge { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 99px; font-size: 12px; font-weight: 750; background: var(--bad); color: #fff; }
.out-badge { left: auto; right: 8px; background: rgba(22,32,42,.78); }
.swatch-dots { display: inline-flex; gap: 4px; align-items: center; }
.swatch-dots i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); display: inline-block; }
.variant-chip { display: inline-block; padding: 0 7px; border-radius: 99px; background: var(--line-soft); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink-2); vertical-align: 1px; }

/* Shop menu products now open their own page */
.product .product-img { position: relative; flex: none; display: block; }
.product .product-img .sale-badge { top: 4px; left: 4px; font-size: 10.5px; padding: 1px 6px; }
.product h3 a { color: inherit; text-decoration: none; }
.product h3 a:hover { color: var(--brand); }
.product .swatch-dots { margin: -2px 0 8px; }

/* Search band */
.market-top { background: var(--surface); border-bottom: 1px solid var(--line); padding: 22px 0 6px; }
.market-search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 14px; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.market-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.market-search > .icon { color: var(--ink-3); flex: none; }
.market-search input[type=search] { flex: 1; min-width: 0; border: 0; box-shadow: none; background: transparent; font-size: 16px; padding: 10px 4px; outline: none; }
.market-search .btn { min-height: 44px; border-radius: 10px; }
.btn-ai { background: linear-gradient(135deg, #6D4AFF, #0E7C66); color: #fff; border: 0; }
.btn-ai:hover { filter: brightness(1.08); color: #fff; }
.btn-ai .icon { animation: ai-twinkle 2.4s ease-in-out infinite; }
@keyframes ai-twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.18) rotate(12deg); } }
.cat-rail { display: flex; gap: 6px; overflow-x: auto; padding: 16px 0 12px; scrollbar-width: thin; }
.cat-tile { flex: none; width: 92px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink-2); font-size: 12.5px; font-weight: 600; text-align: center; padding: 6px 4px; border-radius: 12px; line-height: 1.25; }
.cat-tile .ci { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--line-soft); color: var(--ink-2); transition: transform .15s, background .15s; overflow: hidden; }
.cat-tile .ci img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile:hover .ci { transform: translateY(-2px); background: var(--brand-soft); color: var(--brand); }
.cat-tile.is-current { color: var(--brand-ink); }
.cat-tile.is-current .ci { background: var(--brand); color: var(--brand-contrast); }

.browse-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 22px 0 16px; }
.browse-head h1 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.02em; }
.sort-form { display: flex; align-items: center; gap: 8px; }
.sort-form select { min-width: 190px; }
.browse-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.filters-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; position: sticky; top: 86px; }
.filters-box summary { display: flex; align-items: center; gap: 8px; padding: 14px 16px; font-weight: 700; cursor: pointer; list-style: none; }
.filters-box summary::-webkit-details-marker { display: none; }
.filters-box summary .count { background: var(--brand); color: var(--brand-contrast); border-radius: 99px; font-size: 11px; padding: 1px 7px; }
@media (min-width: 1001px) { .filters-box summary { pointer-events: none; } }
.filters-form { display: flex; flex-direction: column; gap: 16px; padding: 0 16px 16px; }
.filters-form fieldset { border: 0; padding: 0; margin: 0; }
.filters-form legend { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.price-row { display: flex; align-items: center; gap: 6px; }
.price-row input { width: 100%; min-width: 0; }
.colour-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.colour-pick label { cursor: pointer; position: relative; }
.colour-pick input { position: absolute; opacity: 0; }
.colour-pick i { display: block; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); box-shadow: inset 0 0 0 2px var(--surface); transition: transform .12s; }
.colour-pick label:hover i { transform: scale(1.08); }
.colour-pick input:checked + i { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.colour-pick input:focus-visible + i { outline: 2.5px solid var(--info); outline-offset: 2px; }
.filters-form .check { display: flex; gap: 8px; align-items: center; font-weight: 550; }
.filter-actions { display: flex; flex-direction: column; gap: 8px; }
.shops-found { margin-bottom: 22px; }
.small-head { font-size: 15px; margin-bottom: 10px; color: var(--ink-2); }
.shop-grid-sm { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.shop-grid-sm .shop-cover { aspect-ratio: 16 / 6; }

.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.p-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; animation: card-in .35s ease both; }
.p-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(22,32,42,.10); color: var(--ink); }
.p-grid .p-card:nth-child(2) { animation-delay: .03s; } .p-grid .p-card:nth-child(3) { animation-delay: .06s; } .p-grid .p-card:nth-child(4) { animation-delay: .09s; } .p-grid .p-card:nth-child(n+5) { animation-delay: .12s; }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.p-img { position: relative; aspect-ratio: 1; background: var(--line-soft); display: grid; place-items: center; color: var(--ink-3); overflow: hidden; }
.p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.p-card:hover .p-img img { transform: scale(1.04); }
.p-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.p-brand { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--ink-3); }
.p-name { font-weight: 600; font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-price { font-size: 15px; }
.p-shop { margin-top: auto; padding-top: 4px; font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-shop .icon { width: 13px; height: 13px; flex: none; }
.p-card.is-out .p-img img { filter: grayscale(.6); opacity: .7; }
.p-grid-row { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

/* Product page */
.product-page { padding: 18px 20px 72px; }
.pd-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 36px; align-items: start; margin-top: 8px; }
.pd-gallery { position: sticky; top: 86px; }
.pd-main { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; }
.pd-main img { width: 100%; height: 100%; object-fit: contain; animation: fade-in .25s ease; }
.pd-main .sale-badge { top: 14px; left: 14px; font-size: 13px; padding: 4px 10px; }
.pd-noimg { color: var(--ink-3); }
.pd-noimg .icon { width: 56px; height: 56px; }
@keyframes fade-in { from { opacity: .3; } to { opacity: 1; } }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.pd-thumbs button { flex: none; width: 68px; height: 68px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--line-soft); cursor: pointer; }
.pd-thumbs button.is-current { border-color: var(--brand); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; line-height: 1.15; margin: 2px 0 10px; }
.pd-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.pd-price strong { font-size: 28px; letter-spacing: -0.01em; }
.pd-price s { font-size: 17px; }
.pd-shop { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--surface); margin-bottom: 18px; }
.pd-shop:hover { border-color: var(--brand); color: var(--ink); }
.pd-shop img, .pd-shop .ph { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; background: var(--line-soft); display: grid; place-items: center; }
.pd-shop > span { flex: 1; display: flex; flex-direction: column; }
.pd-shop .icon-sm { width: 13px; height: 13px; vertical-align: -2px; color: var(--accent); }
.pd-option { border: 0; padding: 0; margin: 0 0 16px; }
.pd-option legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.pd-chosen { font-weight: 500; color: var(--ink-2); }
.swatches, .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 40px; height: 40px; border-radius: 50%; padding: 3px; border: 2px solid transparent; background: transparent; cursor: pointer; position: relative; transition: transform .12s; }
.swatch i { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); }
.swatch:hover { transform: scale(1.06); }
.swatch.is-current { border-color: var(--brand); }
.chip { min-width: 48px; padding: 9px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; cursor: pointer; transition: border-color .12s, background .12s; }
.chip:hover { border-color: var(--ink-3); }
.chip.is-current { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.swatch.is-off::after, .chip.is-off::after { content: ""; position: absolute; left: 12%; right: 12%; top: 50%; height: 1.5px; background: var(--ink-3); transform: rotate(-35deg); }
.chip { position: relative; }
.chip.is-off { color: var(--ink-3); border-style: dashed; }
.swatch.is-off { opacity: .55; }
.pd-stock { margin: 0 0 14px; font-weight: 600; min-height: 1.4em; }
.pd-stock.good { color: var(--good); } .pd-stock.warn { color: var(--attention-ink); } .pd-stock.bad { color: var(--bad); }
.pd-buy { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.pd-buy .btn { flex: 1 1 150px; min-height: 50px; }
.qty-lg button { width: 44px; height: 48px; }
.qty-lg span { min-width: 32px; font-size: 16px; }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.pd-added { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--good-soft); color: var(--good); font-size: 14px; }
.pd-added span { flex: 1; color: var(--ink); }
.pd-added a { font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; }
.pd-added.pop { animation: pop-in .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop-in { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.pd-perks { list-style: none; margin: 22px 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.pd-perks li { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.pd-perks li:last-child { border-bottom: 0; }
.pd-perks li > .icon { color: var(--brand); flex: none; margin-top: 2px; }
.pd-perks li > span { display: flex; flex-direction: column; font-size: 14px; }
.pd-perks .muted { font-size: 13px; }
.pd-desc h2 { font-size: 17px; margin-bottom: 8px; }
.pd-desc div { color: var(--ink-2); line-height: 1.65; }
.pd-related { margin-top: 48px; }
.pd-related .section-head { margin-bottom: 14px; }
.pd-related h2 { font-size: 22px; }
.pd-mobile-bar { display: none; }

/* Ask ChaleGo */
.ai-answer { background: linear-gradient(135deg, color-mix(in srgb, #6D4AFF 9%, var(--surface)), color-mix(in srgb, var(--brand) 9%, var(--surface))); border: 1px solid color-mix(in srgb, #6D4AFF 25%, var(--line)); border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; display: flex; gap: 12px; animation: pop-in .3s ease; }
.ai-answer > .icon { color: #6D4AFF; flex: none; margin-top: 2px; }
.ai-answer .ai-text { flex: 1; min-width: 0; }
.ai-answer .ai-text p { margin: 0 0 6px; }
.ai-answer .ai-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ai-answer .ai-chips span { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.ai-answer .ai-note { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.ai-thinking { display: inline-flex; gap: 4px; }
.ai-thinking i { width: 7px; height: 7px; border-radius: 50%; background: #6D4AFF; animation: ai-dot 1s infinite ease-in-out; }
.ai-thinking i:nth-child(2) { animation-delay: .15s; } .ai-thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes ai-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* Home: shop by category + popular products */
.home-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.home-cat { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; text-align: center; transition: transform .15s, border-color .15s; }
.home-cat:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--ink); }
.home-cat .ci { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }

/* Checkout choices */
.choice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 18px; }
.choice { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface); transition: border-color .12s, background .12s; }
.choice input { position: absolute; opacity: 0; }
.choice .icon { color: var(--ink-3); flex: none; margin-top: 2px; }
.choice strong { display: block; font-size: 15px; }
.choice span.muted { font-size: 13px; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice:has(input:checked) .icon { color: var(--brand); }
.choice:has(input:focus-visible) { outline: 2px solid var(--info); outline-offset: 2px; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.coupon-ok { display: flex; align-items: center; gap: 6px; color: var(--good); font-size: 13.5px; font-weight: 600; margin-top: 6px; }
.coupon-ok button { margin-left: auto; }
.co-section-title { font-size: 15px; margin: 0 0 10px; }
.pickup-box { padding: 14px; border-radius: 12px; background: var(--line-soft); display: flex; gap: 10px; }
.pickup-box .icon { color: var(--brand); flex: none; }

@media (max-width: 1000px) {
  .browse-layout { grid-template-columns: 1fr; }
  .filters-box { position: static; }
  .pd-layout { grid-template-columns: 1fr; gap: 20px; }
  .pd-gallery { position: static; }
}
@media (max-width: 640px) {
  .market-search .btn-ai span { display: none; }
  .market-search > .btn[type=submit] { display: none; }
  .cat-tile { width: 78px; }
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sort-form select { min-width: 0; }
  .pd-buy { display: none; }
  .pd-mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(22,32,42,.08); }
  .pd-mobile-bar strong { font-size: 19px; }
  .pd-mobile-bar .btn { min-height: 46px; flex: 1; max-width: 240px; }
  .product-page { padding-bottom: 96px; }
}

/* v0.2.1 filters built from what shops set */
.facet-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.facet-chips label { cursor: pointer; }
.facet-chips input { position: absolute; opacity: 0; pointer-events: none; }
.facet-chips span { display: inline-block; min-width: 40px; text-align: center; padding: 6px 10px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 600; transition: border-color .12s, background .12s; }
.facet-chips label:hover span { border-color: var(--ink-3); }
.facet-chips input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.facet-chips input:focus-visible + span { outline: 2px solid var(--info); outline-offset: 2px; }
.facet-list { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow: auto; }
.facet-list .check { font-weight: 500; }
.browse-layout.no-filters { grid-template-columns: 1fr; }

/* ===== v0.3.0 ChaleGo Rides ===== */
.ride-types { display: flex; flex-direction: column; gap: 8px; }
.ride-type { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--surface); transition: border-color .12s, background .12s, transform .12s; }
.ride-type input { position: absolute; opacity: 0; }
.ride-type:hover { border-color: var(--ink-3); }
.ride-type.is-current { border-color: var(--brand); background: var(--brand-soft); }
.ride-type.is-off { opacity: .5; cursor: not-allowed; }
.ride-type.is-skeleton { height: 64px; background: linear-gradient(90deg, var(--line-soft), var(--surface), var(--line-soft)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-color: var(--line-soft); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.rt-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--line-soft); color: var(--ink-2); flex: none; }
.ride-type.is-current .rt-icon { background: var(--brand); color: var(--brand-contrast); }
.rt-icon.big { width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 14px; background: var(--brand-soft); color: var(--brand); }
.rt-icon.big .icon { width: 34px; height: 34px; }
.rt-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.rt-body .icon { width: 13px; height: 13px; vertical-align: -2px; }
.rt-fare { font-weight: 750; font-size: 16px; }
.ride-promises { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); }
.ride-promises .icon { color: var(--brand); width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; }
.ride-soon { text-align: center; }
.ride-soon h1 { font-size: 26px; margin-bottom: 8px; }
.finding { display: flex; gap: 22px; padding-left: 8px; align-items: center; margin-top: 18px; }
.finding-pulse { position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: var(--brand-contrast); display: grid; place-items: center; flex: none; }
.finding-pulse::before, .finding-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand); animation: ring 1.8s ease-out infinite; }
.finding-pulse::after { animation-delay: .9s; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(2.1); opacity: 0; } }
.pin-card { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; padding: 18px 20px; border-radius: 16px; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, black)); color: var(--brand-contrast); }
.pin-card p { margin: 0; flex: 1; min-width: 220px; opacity: .95; }
.pin-digits { display: flex; gap: 6px; margin-top: 4px; }
.pin-digits span { width: 46px; height: 56px; border-radius: 12px; background: rgba(255,255,255,.16); display: grid; place-items: center; font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.driver-panel .panel-body { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.avatar-lg { width: 52px; height: 52px; font-size: 18px; border-radius: 50%; object-fit: cover; }
.dp-main { flex: 1; min-width: 160px; }
.dp-main .icon-sm { width: 13px; height: 13px; color: var(--accent); vertical-align: -2px; }
.plate { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; letter-spacing: .06em; padding: 6px 12px; border-radius: 8px; border: 2px solid var(--ink); background: #FFD84D; color: #16202A; }
.safety-panel .panel-body { display: flex; flex-direction: column; gap: 14px; }
.share-row, .sos-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sos-row { justify-content: flex-start; padding: 12px; border-radius: 12px; background: var(--bad-soft); }
.sos-row .btn { min-width: 110px; font-weight: 800; letter-spacing: .04em; }
.sos-row .small { flex: 1; min-width: 200px; }
.emergency summary { cursor: pointer; }
.em-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.em-form input { flex: 1 1 160px; min-width: 0; }
.report-panel summary { cursor: pointer; list-style: none; font-weight: 600; }
.report-panel summary::-webkit-details-marker { display: none; }

/* Cart page */
.cart-shop { margin-bottom: 18px; }
.cart-shop h2 a { color: inherit; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.cart-items { list-style: none; margin: 0; padding: 0; }
.cart-items li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line-soft); }
.ci-img { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--line-soft); display: grid; place-items: center; color: var(--ink-3); flex: none; }
.ci-img img { width: 100%; height: 100%; object-fit: cover; }
.ci-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ci-total { min-width: 90px; text-align: right; }
.cart-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line-soft); }
@media (max-width: 640px) { .cart-items li { flex-wrap: wrap; } .ci-total { min-width: 0; margin-left: auto; } }

/* ---- Appointments ------------------------------------------------------ */
.shop-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-top: 8px; overflow-x: auto; }
.shop-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; font-weight: 600; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.shop-tabs a:hover { color: var(--ink); }
.shop-tabs a.is-current { color: var(--brand-ink); border-bottom-color: var(--brand); }
.service-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 14px; padding-top: 20px; }
.service-card { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.service-card:hover { border-color: var(--brand); box-shadow: var(--shadow-pop); }
.service-img { width: 88px; height: 88px; border-radius: 10px; overflow: hidden; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.service-img img { width: 100%; height: 100%; object-fit: cover; }
.service-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.service-desc { font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.service-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--ink-3); }
.service-meta span { display: inline-flex; align-items: center; gap: 4px; }
.service-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.service-intro { overflow: hidden; }
.service-intro img { width: 100%; max-height: 260px; object-fit: cover; display: block; }
.service-intro p { margin: 0; padding: 16px 18px; color: var(--ink-2); }
.staff-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.staff-opt { font: inherit; display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; min-width: 0; }
.staff-opt .avatar { width: 38px; height: 38px; flex: none; object-fit: cover; display: grid; place-items: center; }
.staff-opt .sub { display: block; font-size: 12.5px; color: var(--ink-3); }
.staff-opt.is-current { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.date-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.date-opt { font: inherit; flex: none; width: 62px; padding: 8px 0; display: flex; flex-direction: column; align-items: center; gap: 1px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; scroll-snap-align: start; }
.date-opt span { font-size: 12px; color: var(--ink-3); }
.date-opt strong { font-size: 20px; line-height: 1.2; }
.date-opt:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.date-opt.is-current { background: var(--brand); border-color: var(--brand); color: var(--brand-contrast); }
.date-opt.is-current span { color: inherit; opacity: .85; }
.slot-group { margin-bottom: 14px; }
.slot-group:last-child { margin-bottom: 0; }
.slot-group > .small { display: block; margin-bottom: 6px; }
.book-summary { position: sticky; top: 84px; }
.coupon-row { display: flex; gap: 8px; margin: 14px 0 10px; }
.coupon-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.book-summary .breakdown { margin-bottom: 14px; }
.book-rules { margin: 14px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.date-badge { flex: none; width: 46px; height: 50px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.date-badge span { font-size: 11px; text-transform: uppercase; font-weight: 700; letter-spacing: .04em; }
.date-badge strong { font-size: 19px; }
.date-badge-lg { width: 60px; height: 64px; }
.date-badge-lg strong { font-size: 24px; }
.booking-when { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 20px; }
.booking-when > div { display: flex; flex-direction: column; gap: 2px; }
.booking-when strong { font-size: 17px; }
.grid-2-site { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.grid-2-site > .panel { margin: 0; }
.change-box { margin-bottom: 10px; }
.change-box summary { list-style: none; display: inline-flex; }
.change-box summary::-webkit-details-marker { display: none; }
@media (max-width: 720px) {
  .service-card { grid-template-columns: 64px minmax(0, 1fr); }
  .service-img { width: 64px; height: 64px; }
  .service-cta { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .grid-2-site { grid-template-columns: 1fr; }
  .book-summary { position: static; }
}
.book-layout > *, .book-layout .stack, .book-layout .panel { min-width: 0; }
@media (max-width: 900px) { .book-layout { grid-template-columns: minmax(0, 1fr); } }

/* ---- Digital store, reseller stores, Earn ---------------------------------- */
.dg-hero { background: linear-gradient(120deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 60%, #0B3B5C) 100%); color: #fff; padding: 32px 0 26px; }
.dg-hero .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.dg-hero-main { display: flex; gap: 16px; align-items: center; min-width: 0; flex: 1; }
.dg-hero h1 { margin: 0; font-size: 28px; color: #fff; }
.dg-hero p { margin: 4px 0 0; color: rgba(255,255,255,.88); max-width: 640px; }
.dg-logo { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; flex: none; border: 3px solid rgba(255,255,255,.9); background: #fff; }
.dg-logo-ph { display: grid; place-items: center; font-size: 26px; font-weight: 800; color: var(--brand); }
.dg-logo-ph .icon { width: 30px; height: 30px; }
.dg-share { display: flex; gap: 8px; flex-wrap: wrap; }
.dg-share .btn { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); }
.dg-share .btn:hover { background: rgba(255,255,255,.24); }
.dg-hero .badge-chip { background: rgba(255,255,255,.95); }
.dg-group { font-size: 18px; margin: 26px 0 12px; }
.dg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; align-items: start; }
.dg-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--net); text-decoration: none; color: var(--ink); transition: box-shadow .15s, border-color .15s; min-width: 0; }
.dg-card:hover { box-shadow: var(--shadow-pop); border-color: color-mix(in srgb, var(--net) 50%, var(--line)); }
.dg-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.dg-net { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.dg-name { font-size: 17px; line-height: 1.25; }
.dg-desc { font-size: 13px; color: var(--ink-3); }
.dg-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; }
.dg-card-foot strong { font-size: 17px; }
.dg-earn { margin-top: 32px; padding: 20px 22px; border-radius: 16px; background: var(--brand-soft); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.dg-earn h2 { margin: 0 0 4px; font-size: 19px; }
.dg-earn p { margin: 0; color: var(--ink-2); }
.earn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.earn-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.earn-card h2 { margin: 0; font-size: 18px; }
.earn-card p { margin: 0; color: var(--ink-2); }
.earn-card .btn { margin-top: auto; }
.earn-card-main { grid-column: 1 / -1; border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.earn-card-main .btn { margin-top: 4px; }
.earn-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.earn-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.earn-list li { display: flex; gap: 8px; align-items: center; }
.earn-list .icon { color: var(--good); }
.earn-form { width: 100%; max-width: 520px; }
.earn-levels { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
@media (max-width: 860px) { .earn-grid { grid-template-columns: 1fr; } .dg-hero h1 { font-size: 23px; } }

/* ---- Sponsored placements ------------------------------------------------------- */
.ad-badge { position: absolute; top: 8px; right: 8px; z-index: 2; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(22,32,42,.72); color: #fff; padding: 2px 7px; border-radius: 6px; }
.p-card.is-sponsored { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.p-card .p-img { position: relative; }
.sp-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; margin-top: 16px; }
.sp-service { position: relative; display: flex; gap: 12px; align-items: center; padding: 12px; padding-top: 26px; border-radius: 14px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); text-decoration: none; color: var(--ink); }
.sp-ic { width: 52px; height: 52px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; overflow: hidden; flex: none; }
.sp-ic img { width: 100%; height: 100%; object-fit: cover; }
.sp-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.fs-row { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.fs-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); text-align: center; }
.fs-card img, .fs-ph { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; }
.fs-ph { display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 22px; }
.fs-card strong { font-size: 14px; line-height: 1.25; }
.fs-more { justify-content: center; color: var(--brand-ink); }
.inline-search { display: flex; gap: 8px; }
.inline-search input { width: 240px; max-width: 100%; }
/* Invite friends */
.invite-link { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.invite-link .code { font-size: 16px; font-weight: 700; letter-spacing: .08em; }
.invite-hero { text-align: center; background: linear-gradient(160deg, var(--brand-soft), var(--surface) 70%); }
.invite-code { font-size: 34px; font-weight: 800; letter-spacing: .14em; margin: 4px 0 6px; color: var(--brand); font-variant-numeric: tabular-nums; }
.invite-hero .share-btns { justify-content: center; }
/* Digital store: search and quick filters */
.dg-tools { position: sticky; top: var(--header-h, 64px); z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); margin: 18px -4px 0; padding: 12px 4px 10px; display: grid; gap: 10px; border-bottom: 1px solid var(--line-soft); }
.dg-search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; min-height: 48px; }
.dg-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.dg-search .icon { color: var(--ink-3); flex: none; }
.dg-search input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; font-size: 16px; padding: 12px 0; box-shadow: none; }
.dg-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.dg-chips::-webkit-scrollbar { display: none; }
.dg-chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.dg-chip:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); color: var(--ink); }
.dg-chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.dg-chip.is-on .net-dot { box-shadow: 0 0 0 2px #fff; }
.dg-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.dg-count { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-left: 4px; }
.dg-none { margin: 28px 0; text-align: center; color: var(--ink-3); }
@media (max-width: 700px) {
  .dg-hero { padding: 22px 0 18px; }
  .dg-hero .wrap { flex-direction: column; align-items: stretch; gap: 14px; }
  .dg-hero-main { align-items: flex-start; gap: 12px; }
  .dg-logo { width: 48px; height: 48px; border-radius: 12px; }
  .dg-logo-ph .icon { width: 24px; height: 24px; }
  .dg-hero h1 { font-size: 22px; line-height: 1.2; }
  .dg-hero p { font-size: 14.5px; }
  .dg-share { display: grid; grid-template-columns: 1fr 1fr; }
  .dg-share .btn { justify-content: center; }
  .dg-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dg-card { padding: 12px; }
  .dg-name { font-size: 15.5px; }
  .dg-card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .dg-card-foot .btn { justify-content: center; }
}

/* ===== Homepage hero: one slide per service ===== */
.hx { position: relative; overflow: hidden; color: #fff; background: color-mix(in srgb, var(--brand) 78%, #062B24); isolation: isolate; }
.hx-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 480px at 85% 15%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, color-mix(in srgb, var(--brand) 60%, #000) , transparent 70%),
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 92%, #fff 0%), color-mix(in srgb, var(--brand) 55%, #04211C)); }
/* faint street grid: the city the riders cross */
.hx-bg::after { content: ""; position: absolute; inset: 0; opacity: .09;
  background-image: linear-gradient(rgba(255,255,255,.9) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.9) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 70%); }
.hx-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 88px; min-height: 520px; }
.hx-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; }
.hx-tab { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: rgba(255,255,255,.88); font: inherit; font-size: 14.5px; font-weight: 650; cursor: pointer; overflow: hidden; transition: background .2s, color .2s, border-color .2s; }
.hx-tab:hover { background: rgba(255,255,255,.16); color: #fff; }
.hx-tab.is-on { background: #fff; color: var(--brand-ink); border-color: #fff; }
.hx-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hx-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); }
.hx-tab.is-on .hx-bar { animation: hx-fill 7s linear forwards; }
.hx.is-held .hx-tab.is-on .hx-bar, .hx.is-paused .hx-tab.is-on .hx-bar { animation: none; width: 0; }
@keyframes hx-fill { to { width: 100%; } }
.hx-slides { position: relative; min-height: 270px; }
.hx-slide h1, .hx-h { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; color: #fff; margin: 0 0 18px; max-width: 13ch; text-wrap: balance; }
.hx-lead { font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.88); max-width: 46ch; margin: 0 0 28px; }
.hx-slide.is-on > * { animation: hx-in .55s cubic-bezier(.2,.7,.2,1) both; }
.hx-slide.is-on > :nth-child(2) { animation-delay: .06s; }
.hx-slide.is-on > :nth-child(3) { animation-delay: .12s; }
@keyframes hx-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hx-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hx-cta .btn { min-height: 52px; padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.hx-btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.hx-btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.hx-badges { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 30px; font-size: 14px; color: rgba(255,255,255,.85); }
.hx-badges span { display: inline-flex; align-items: center; gap: 7px; }

/* The stage on the right: a live-looking piece of the service */
.hx-stage { position: relative; height: 400px; }
.hx-scene { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.hx-scene.is-on { opacity: 1; transform: none; pointer-events: auto; }
.sc-card { background: var(--surface); color: var(--ink); border-radius: 22px; box-shadow: 0 30px 70px rgba(0,0,0,.28), 0 2px 0 rgba(255,255,255,.4) inset; width: min(400px, 100%); }
.sc-route { padding: 22px 22px 18px; }
.sc-row { display: flex; gap: 14px; align-items: center; }
.sc-row small { display: block; color: var(--ink-3); font-size: 12.5px; }
.sc-row strong { font-size: 16px; }
.sc-pin { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.sc-pin-a { background: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }
.sc-pin-b { background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent); }
.sc-path { display: block; width: 100%; height: 120px; margin: 4px 0; overflow: visible; }
.sc-path path { fill: none; stroke: color-mix(in srgb, var(--brand) 45%, var(--line)); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sc-rider { fill: var(--brand); stroke: #fff; stroke-width: 3; }
.sc-foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.sc-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; padding: 6px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); }
.sc-chip-code { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); color: var(--attention-ink); }
.sc-stack { position: relative; width: min(400px, 100%); display: grid; gap: 12px; }
.sc-prod { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; transform: translateX(calc(var(--k) * 18px)); }
.hx-scene.is-on .sc-prod { animation: hx-in .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--k) * .09s + .1s); }
.sc-img { width: 58px; height: 58px; border-radius: 14px; overflow: hidden; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.sc-img img { width: 100%; height: 100%; object-fit: cover; }
.sc-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sc-info strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-info small { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-price { font-weight: 750; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sc-list { padding: 8px; }
.sc-list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 12px 10px; }
.sc-list-head small { color: var(--ink-3); }
.sc-li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1.5px solid transparent; }
.sc-li + .sc-li { margin-top: 2px; }
.sc-li.is-pick { border-color: var(--brand); background: var(--brand-soft); }
.sc-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--paper); display: grid; place-items: center; color: var(--brand); flex: none; }
.sc-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; margin: 0 6px; }
.sc-slots { display: flex; gap: 8px; padding: 10px 12px 12px; }
.sc-slots span { flex: 1; text-align: center; padding: 8px 0; border-radius: 10px; border: 1px solid var(--line); font-weight: 650; font-size: 14px; }
.sc-slots .is-pick { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Quick tracking strip that overlaps the hero */
.qt { position: relative; z-index: 2; margin-top: -44px; }
.qt-card { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: 0 18px 40px rgba(22,32,42,.12); }
.qt-title { display: flex; gap: 12px; align-items: center; padding-right: 8px; }
.qt-title strong { display: block; font-size: 15.5px; }
.qt-title small { color: var(--ink-3); font-size: 12.5px; }
.qt-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.qt-field { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--surface-2); min-height: 48px; color: var(--ink-3); }
.qt-field:focus-within { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
.qt-field input { border: 0; background: transparent; outline: 0; box-shadow: none; flex: 1; min-width: 0; font-size: 16px; padding: 12px 0; color: var(--ink); }
.qt-card > .btn { min-height: 48px; padding: 0 22px; border-radius: 12px; }
.qt-result { grid-column: 1 / -1; display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--paper); animation: hx-in .35s ease both; }
.qt-result.is-bad { display: flex; align-items: center; gap: 10px; background: var(--bad-soft); color: var(--bad); }
.qt-status { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.qt-status strong { font-size: 17px; }
.qt-status span { color: var(--ink-3); }
.qt-meter { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.qt-meter i { display: block; height: 100%; background: var(--brand); border-radius: 6px; transition: width .6s ease; }
.qt-route { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--ink-2); }
.qt-route span:last-child { text-align: right; }
.qt-result .btn { justify-self: start; }
.qt-cities { margin: 12px 4px 0; font-size: 13.5px; color: var(--ink-3); display: flex; gap: 6px; align-items: flex-start; }

@media (max-width: 980px) {
  .hx-wrap { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; padding-bottom: 76px; min-height: 0; }
  .hx-stage { height: 300px; }
  .hx-slides { min-height: 0; }
  .qt-card { grid-template-columns: 1fr 1fr; }
  .qt-title { grid-column: 1 / -1; }
  .qt-card > .btn { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .hx-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 20px; padding: 0 16px; }
  .hx-tabs::-webkit-scrollbar { display: none; }
  .hx-tab { flex: none; padding: 8px 14px; }
  .hx-slide h1, .hx-h { font-size: 34px; max-width: none; }
  .hx-lead { font-size: 16px; margin-bottom: 22px; }
  .hx-cta .btn { flex: 1 1 auto; justify-content: center; }
  .hx-badges { gap: 10px 16px; margin-top: 22px; font-size: 13px; }
  .hx-stage { height: 270px; }
  .sc-card { border-radius: 18px; }
  .sc-route { padding: 16px; }
  .sc-path { height: 84px; }
  .sc-prod { transform: none; padding: 10px; }
  .sc-img { width: 48px; height: 48px; }
  .qt { margin-top: -40px; }
  .qt-card { grid-template-columns: 1fr; padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-slide.is-on > *, .hx-scene.is-on .sc-prod, .qt-result { animation: none; }
  .hx-scene { transition: none; }
  .sc-rider { display: none; }
}
.promo:has(.ad-tag), .promo:has(.code-tag) { padding-top: 52px; }
.p-price { overflow-wrap: anywhere; }
@media (max-width: 480px) { .p-price { font-size: 14px; } .p-body { padding: 9px 10px 11px; } }
