/* ================= CarSpa — Client app ================= */
body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
body.auth-mode { padding-bottom: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 28px; } }
section { margin-top: 36px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.sec-head p { margin: 6px 0 0; color: var(--muted); }

/* ---------- Header ---------- */
.app-header { position: sticky; top: 0; z-index: var(--z-nav); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.hdr-inner { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
@media (min-width: 768px) { .hdr-inner { padding: 12px 28px; } }
.profile-btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; justify-self: start; min-height: 44px; border-radius: 14px; padding-right: 8px; }
.avatar { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--pink), var(--cyan)); color: #fff; border: 2px solid var(--accent); flex: none; transition: transform var(--dur-2) var(--ease-spring); }
.profile-btn:hover .avatar { transform: rotate(-6deg) scale(1.05); }
.hdr-hello { display: none; line-height: 1.15; }
.hdr-hello small { display: block; color: var(--muted); font-size: .75rem; }
@media (min-width: 900px) { .hdr-hello { display: block; } }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: .18em; font-size: .9rem; }
.brand img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 18px rgba(255, 62, 165, .35); }
.brand span { display: none; }
@media (min-width: 600px) { .brand span { display: inline; } }
.hdr-right { justify-self: end; display: flex; align-items: center; gap: 8px; }
.coins { display: grid; justify-items: end; gap: 1px; background: none; border: 1px solid var(--border); border-radius: 14px; padding: 4px 10px 5px; min-height: 44px; transition: border-color var(--dur-2), box-shadow var(--dur-2); }
.coins:hover { border-color: var(--gold); box-shadow: 0 0 18px rgba(245, 183, 0, .25); }
.coins-row { display: inline-flex; align-items: center; gap: 6px; }
.coins-count { font-weight: 800; font-size: .95rem; color: var(--gold); }
[data-theme="light"] .coins-count { color: #8a5e00; }
.coins-desc { font-size: .66rem; color: var(--muted); white-space: nowrap; line-height: 1.2; }
.coins-desc b { color: var(--accent-text); }
@media (max-width: 420px) { .coins-desc { font-size: .6rem; white-space: normal; max-width: 118px; text-align: right; } }

/* ---------- Bottom nav ---------- */
.bottom-nav { position: fixed; z-index: var(--z-nav); left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); width: min(460px, calc(100% - 24px)); display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px; border-radius: 22px; background: color-mix(in srgb, var(--bg-elev) 88%, transparent); backdrop-filter: blur(16px); border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.bottom-nav a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 4px; min-height: 54px; border-radius: 16px; text-decoration: none; color: var(--muted); font-size: .72rem; font-weight: 700; transition: color var(--dur-2), background-color var(--dur-2); }
.bottom-nav a i { font-size: 1.4rem; transition: transform var(--dur-2) var(--ease-spring); }
.bottom-nav a:hover { color: var(--text); }
.bottom-nav a.active { background: var(--accent); color: var(--on-accent); }
.bottom-nav a.active i { transform: translateY(-1px) scale(1.08); }
.nav-badge { position: absolute; top: 4px; right: calc(50% - 22px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--pink); color: #fff; font-style: normal; font-size: .65rem; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }

/* ---------- Auth ---------- */
.auth { min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 960px) { .auth { grid-template-columns: 1.1fr 1fr; } }
.auth-visual { position: relative; min-height: 300px; overflow: hidden; background: radial-gradient(circle at 30% 20%, rgba(255, 62, 165, .25), transparent 50%), radial-gradient(circle at 70% 80%, rgba(56, 198, 255, .25), transparent 50%), #050507; color: #f5f5f4; display: grid; align-content: end; padding: 28px; }
.auth-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-visual .copy { position: relative; max-width: 520px; }
.auth-visual .copy .display em { color: #d8ff2f; }
.auth-visual .copy p { color: #c9c9d1; }
.auth-form { display: grid; place-items: center; padding: 32px 16px 48px; }
.auth-card { width: min(440px, 100%); }
.auth-card .brandline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.auth-card .brandline img { width: 56px; height: 56px; border-radius: 16px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); margin: 18px 0 22px; }
.seg button { min-height: 44px; border: 0; border-radius: 12px; background: transparent; font-weight: 700; color: var(--muted); transition: background-color var(--dur-2), color var(--dur-2); }
.seg button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .grid-2 { grid-template-columns: 1fr; } }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: .8rem; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- Hero (3D) ---------- */
.hero { position: relative; margin-top: 18px; border-radius: 28px; overflow: hidden; border: 1px solid var(--border); background: radial-gradient(ellipse at 70% 40%, rgba(56, 198, 255, .18), transparent 55%), radial-gradient(ellipse at 20% 80%, rgba(255, 62, 165, .18), transparent 55%), #060609; color: #f5f5f4; display: grid; grid-template-columns: 1fr; min-height: 420px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1.1fr; min-height: 440px; } }
.hero-copy { position: relative; z-index: 2; padding: 28px 24px 0; align-self: center; }
@media (min-width: 900px) { .hero-copy { padding: 40px 44px; } }
.hero-copy .display em { color: #d8ff2f; }
.hero-copy p { color: #c9c9d1; max-width: 460px; }
.hero-canvas { position: relative; min-height: 280px; cursor: grab; }
.hero-canvas:active { cursor: grabbing; }
.hero-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.hero-hint { position: absolute; bottom: 14px; right: 16px; font-size: .75rem; color: #a3a3ad; display: flex; align-items: center; gap: 6px; }
.hero-stats { display: flex; gap: 22px; margin-top: 20px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-tech); font-size: 1.3rem; color: #d8ff2f; }
.hero-stats div span { font-size: .8rem; color: #a3a3ad; }

/* ---------- Loyalty card ---------- */
.loyalty { position: relative; overflow: hidden; padding: 20px; border-radius: 24px; border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--border)); background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 10%, var(--surface)), var(--surface)); display: grid; gap: 14px; }
.loyalty-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.loyalty h3 { margin: 0; font-size: 1.1rem; }
.loyalty p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.coin-track { display: grid; grid-template-columns: repeat(11, 1fr); gap: 6px; align-items: center; }
.coin-slot { aspect-ratio: 1.4; display: grid; place-items: center; border-radius: 12px; background: var(--bg-elev); border: 1px dashed var(--border-strong); }
.coin-slot.on { border-style: solid; border-color: color-mix(in srgb, var(--gold) 60%, transparent); }
.coin-slot.free { background: var(--accent); border: 0; color: var(--on-accent); font-weight: 900; font-size: .7rem; text-align: center; line-height: 1; }
.coin-slot svg { width: 80%; height: auto; }
@media (max-width: 520px) { .coin-track { grid-template-columns: repeat(6, 1fr); } }
.free-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--accent); color: var(--on-accent); font-weight: 700; }

/* ---------- Snap map ---------- */
.map-card { isolation: isolate; position: relative; border-radius: 26px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
#snapMap { height: 420px; width: 100%; background: var(--surface-2); }
@media (max-width: 600px) { #snapMap { height: 360px; } }
.map-overlay { position: absolute; z-index: 500; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; pointer-events: none; }
.map-overlay > * { pointer-events: auto; }
.nearest-card { flex: 1 1 260px; display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; background: color-mix(in srgb, var(--bg-elev) 92%, transparent); backdrop-filter: blur(12px); border: 1px solid var(--border-strong); box-shadow: var(--shadow); text-decoration: none; }
.nearest-card img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.nearest-card .nc-body { flex: 1; min-width: 0; }
.nearest-card .nc-body strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nearest-card .nc-body span { font-size: .8rem; color: var(--muted); }
.map-tools { position: absolute; z-index: 500; top: 12px; right: 12px; display: grid; gap: 8px; }
.map-chip { position: absolute; z-index: 500; top: 12px; left: 12px; }
.snap-marker { position: relative; display: grid; justify-items: center; }
.snap-marker .ring { width: 54px; height: 54px; border-radius: 50%; padding: 3px; background: conic-gradient(from 0deg, #ff3ea5, #38c6ff, #d8ff2f, #ff3ea5); box-shadow: 0 6px 18px rgba(0, 0, 0, .5); transition: transform var(--dur-2) var(--ease-spring); }
.snap-marker .ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #0a0a0b; background: #222; }
.snap-marker:hover .ring { transform: scale(1.12) translateY(-3px); }
.snap-marker .chip { margin-top: -10px; background: #0a0a0b; color: #fff; font: 800 11px var(--font-body); padding: 2px 7px; border-radius: 999px; border: 1px solid #d8ff2f; white-space: nowrap; display: flex; gap: 3px; align-items: center; }
.snap-marker .chip i { color: #f5b700; }
.snap-marker.nearest .ring { width: 64px; height: 64px; box-shadow: 0 0 0 4px rgba(216, 255, 47, .35), 0 6px 18px rgba(0, 0, 0, .5); }
.me-marker { width: 22px; height: 22px; border-radius: 50%; background: #38c6ff; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(56, 198, 255, .3); position: relative; }
.me-marker::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #38c6ff; animation: pulseRing 1.8s ease-out infinite; }
.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--bg-elev); color: var(--text); border: 1px solid var(--border-strong); }
.leaflet-popup-content { margin: 12px 14px; }
.leaflet-control-zoom a { background: var(--bg-elev) !important; color: var(--text) !important; border-color: var(--border) !important; }
.leaflet-control-attribution { background: color-mix(in srgb, var(--bg) 70%, transparent) !important; color: var(--muted) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--muted) !important; }

/* ---------- Toolbar ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.search { position: relative; flex: 1 1 260px; }
.search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.1rem; }
.search .input { padding-left: 46px; border-radius: 16px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 700; font-size: .85rem; color: var(--muted); transition: all var(--dur-2); }
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: transparent; }

/* ---------- Shop cards (inspired by reference) ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.shop-card { position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: inherit; }
.shop-card:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); box-shadow: 0 18px 40px rgba(0, 0, 0, .35), var(--glow); }
.shop-card .media { position: relative; aspect-ratio: 16/11; overflow: hidden; background: var(--surface-2); }
.shop-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.shop-card:hover .media img { transform: scale(1.07); }
.shop-card .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 55%); }
.shop-card .badge-tl { position: absolute; z-index: 1; top: 12px; left: 12px; }
.shop-card .badge-tr { position: absolute; z-index: 1; top: 12px; right: 12px; }
.shop-card .dist { position: absolute; z-index: 1; bottom: 10px; left: 12px; color: #fff; font-size: .8rem; font-weight: 700; display: flex; gap: 5px; align-items: center; }
.shop-card .body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.shop-card h3 { margin: 0; font-size: 1.02rem; line-height: 1.25; }
.shop-card .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--muted); }
.shop-card .from { color: var(--muted); font-size: .8rem; }
.shop-card .from b { color: var(--text); }
.shop-card .btn { margin-top: auto; }

/* ---------- Shop detail ---------- */
.shop-hero { position: relative; margin-top: 16px; border-radius: 28px; overflow: hidden; min-height: 280px; display: grid; align-content: end; color: #fff; border: 1px solid var(--border); }
.shop-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shop-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .9), rgba(0, 0, 0, .15) 70%); }
.shop-hero .inner { position: relative; z-index: 1; padding: 22px; display: grid; gap: 10px; }
.shop-hero .display em { color: #d8ff2f; }
.shop-hero .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.shop-hero .pill { background: rgba(0, 0, 0, .55); border-color: rgba(255, 255, 255, .2); color: #fff; }
.back-btn { position: absolute; z-index: 2; top: 14px; left: 14px; background: rgba(0, 0, 0, .55); border-color: rgba(255, 255, 255, .2); color: #fff; }
.booking-layout { display: grid; gap: 22px; grid-template-columns: 1fr; margin-top: 22px; }
@media (min-width: 1000px) { .booking-layout { grid-template-columns: 1fr 360px; align-items: start; } }
.step { padding: 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 18px; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.step-num { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-tech); font-weight: 800; background: var(--surface-3); color: var(--muted); flex: none; transition: all var(--dur-2); }
.step.done .step-num { background: var(--accent); color: var(--on-accent); }
.step-head h2 { margin: 0; font-size: 1.1rem; }
.step-head p { margin: 0; font-size: .82rem; color: var(--muted); }
.svc-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.svc { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--bg-elev); cursor: pointer; transition: border-color var(--dur-2), background-color var(--dur-2), transform var(--dur-1); min-height: 64px; }
.svc:hover { border-color: var(--border-strong); }
.svc:active { transform: scale(.99); }
.svc input { position: absolute; opacity: 0; pointer-events: none; }
.svc .svc-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); font-size: 1.3rem; color: var(--accent-text); flex: none; }
.svc .svc-body { flex: 1; min-width: 0; }
.svc .svc-body strong { display: block; font-size: .92rem; }
.svc .svc-body span { font-size: .78rem; color: var(--muted); }
.svc .price { font-weight: 800; white-space: nowrap; }
.svc .check { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--border-strong); display: grid; place-items: center; flex: none; transition: all var(--dur-2) var(--ease-spring); color: transparent; }
.svc:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.svc:has(input:checked) .check { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: scale(1.08); }
.svc:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(74px, 1fr); gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.day { display: grid; justify-items: center; gap: 2px; padding: 12px 6px; border-radius: 16px; border: 1px solid var(--border); background: var(--bg-elev); font-weight: 700; transition: all var(--dur-2); }
.day small { font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.day b { font-family: var(--font-tech); font-size: 1.3rem; }
.day:hover { border-color: var(--border-strong); }
.day[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: transparent; box-shadow: var(--glow); }
.day[aria-pressed="true"] small { color: var(--on-accent); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot { min-height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-elev); font-weight: 700; font-size: .88rem; transition: all var(--dur-2); }
.slot:hover:not(:disabled) { border-color: var(--accent); }
.slot[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.slot:disabled { opacity: .38; text-decoration: line-through; cursor: not-allowed; }
.slot-legend { display: flex; gap: 14px; font-size: .78rem; color: var(--muted); margin-top: 10px; flex-wrap: wrap; }
.summary { position: sticky; top: 90px; padding: 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.summary h2 { margin: 0 0 12px; font-size: 1.1rem; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; padding: 6px 0; }
.sum-row.total { font-size: 1.05rem; font-weight: 800; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 12px; }
.sum-row.deposit { color: var(--accent-text); font-weight: 800; }
.sum-empty { color: var(--muted); font-size: .9rem; }
.mobile-bar { position: fixed; z-index: calc(var(--z-nav) + 1); left: 12px; right: 12px; bottom: calc(92px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 20px; background: var(--bg-elev); border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.mobile-bar .mb-sum { flex: 1; min-width: 0; line-height: 1.2; }
.mobile-bar .mb-sum strong { display: block; }
.mobile-bar .mb-sum span { font-size: .78rem; color: var(--muted); }
@media (min-width: 1000px) { .mobile-bar { display: none; } }
@media (max-width: 999px) { .summary { position: static; } body.has-mobile-bar { padding-bottom: 180px; } }

/* ---------- Booking status ---------- */
.status-wrap { max-width: 640px; margin: 24px auto 0; }
.status-card { padding: 26px 22px; border-radius: 28px; background: var(--surface); border: 1px solid var(--border); text-align: center; position: relative; overflow: hidden; }
.status-icon { width: 92px; height: 92px; margin: 4px auto 14px; border-radius: 28px; display: grid; place-items: center; font-size: 2.6rem; background: var(--accent-soft); color: var(--accent-text); position: relative; }
.status-icon.pending::before, .status-icon.pending::after { content: ""; position: absolute; inset: 0; border-radius: 28px; border: 2px solid var(--accent); animation: pulseRing 2s ease-out infinite; }
.status-icon.pending::after { animation-delay: 1s; }
.status-icon.ok { background: var(--success-soft); color: var(--success); }
.status-icon.bad { background: var(--danger-soft); color: var(--danger); }
.status-card h1 { margin: 0 0 6px; }
.status-card .loading-line { margin: 20px auto 8px; max-width: 360px; height: 2px; }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 26px 0 8px; text-align: center; }
.tl-step { display: grid; justify-items: center; gap: 6px; font-size: .7rem; font-weight: 700; color: var(--faint); position: relative; }
.tl-step .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--faint); font-size: .9rem; position: relative; z-index: 1; transition: all var(--dur-3); }
.tl-step::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--surface-3); }
.tl-step:first-child::before { display: none; }
.tl-step.done { color: var(--text); }
.tl-step.done .dot { background: var(--accent); color: var(--on-accent); }
.tl-step.done::before { background: var(--accent); }
.tl-step.current .dot { box-shadow: 0 0 0 5px var(--accent-soft); }
.detail-list { text-align: left; margin-top: 18px; display: grid; gap: 2px; }
.detail-list .dl-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.detail-list .dl-row:last-child { border-bottom: 0; }
.detail-list .dl-row span:first-child { color: var(--muted); }
.detail-list .dl-row span:last-child { text-align: right; font-weight: 700; }
.actions-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Checkout ---------- */
.checkout { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 22px; }
@media (min-width: 960px) { .checkout { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 18px; }
.pay-method { display: grid; justify-items: center; gap: 6px; padding: 14px 8px; border-radius: 16px; border: 1px solid var(--border); background: var(--bg-elev); font-weight: 700; font-size: .82rem; transition: all var(--dur-2); }
.pay-method i { font-size: 1.6rem; }
.pay-method[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: var(--glow); }
.card-preview { position: relative; aspect-ratio: 1.586; max-width: 380px; border-radius: 20px; padding: 20px; color: #fff; overflow: hidden; background: radial-gradient(circle at 20% 10%, rgba(255, 62, 165, .9), transparent 50%), radial-gradient(circle at 90% 90%, rgba(56, 198, 255, .9), transparent 50%), #111; box-shadow: 0 20px 40px rgba(0, 0, 0, .4); margin-bottom: 18px; display: grid; align-content: space-between; transition: transform 600ms var(--ease-out); transform-style: preserve-3d; }
.card-preview .cp-top { display: flex; justify-content: space-between; align-items: center; }
.card-preview .chip-ic { width: 44px; height: 32px; border-radius: 6px; background: linear-gradient(135deg, #f5d97a, #b58a1d); }
.card-preview .cp-num { font-family: var(--font-tech); font-size: clamp(1rem, 4.5vw, 1.25rem); letter-spacing: .12em; }
.card-preview .cp-bottom { display: flex; justify-content: space-between; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.card-preview .cp-bottom b { display: block; font-size: .9rem; letter-spacing: .04em; }
.apple-pay-btn { background: #000; color: #fff; border: 1px solid #333; font-size: 1.05rem; }
[data-theme="light"] .apple-pay-btn { background: #000; color: #fff; }
.apple-pay-btn:hover { background: #111; }
.secure-note { display: flex; align-items: center; gap: 8px; justify-content: center; color: var(--muted); font-size: .8rem; margin-top: 12px; }

/* ---------- Ticket / QR ---------- */
.ticket { max-width: 460px; margin: 22px auto 0; border-radius: 28px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); position: relative; }
.ticket-head { padding: 22px; text-align: center; background: linear-gradient(135deg, rgba(255, 62, 165, .18), rgba(56, 198, 255, .18)); }
.ticket-head h1 { margin: 6px 0 2px; }
.qr-box { width: 236px; height: 236px; margin: 18px auto 8px; padding: 14px; background: #fff; border-radius: 22px; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--accent), 0 0 40px rgba(216, 255, 47, .35); animation: modalIn 700ms var(--ease-spring); }
.qr-box img, .qr-box canvas { width: 208px !important; height: 208px !important; }
.qr-code-text { text-align: center; font-family: var(--font-tech); font-weight: 800; letter-spacing: .2em; font-size: 1.1rem; }
.ticket-cut { position: relative; height: 24px; margin: 8px 0; }
.ticket-cut::before { content: ""; position: absolute; left: 22px; right: 22px; top: 50%; border-top: 2px dashed var(--border-strong); }
.ticket-cut span { position: absolute; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border); }
.ticket-cut span:first-child { left: -12px; }
.ticket-cut span:last-child { right: -12px; }
.ticket-body { padding: 0 22px 22px; }
.live-timer { font-family: var(--font-tech); font-size: 2rem; font-weight: 800; color: var(--accent-text); }

/* ---------- Finished overlay (klaxon) ---------- */
.finished-overlay { position: fixed; inset: 0; z-index: calc(var(--z-modal) + 10); display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 50% 40%, rgba(216, 255, 47, .25), rgba(0, 0, 0, .9) 60%); backdrop-filter: blur(8px); animation: fadeIn 300ms; }
.finished-card { width: min(460px, 100%); text-align: center; padding: 30px 22px; border-radius: 30px; background: var(--bg-elev); border: 2px solid var(--accent); box-shadow: 0 0 60px rgba(216, 255, 47, .35); animation: modalIn 500ms var(--ease-spring); }
.horn { position: relative; width: 140px; height: 140px; margin: 0 auto 10px; display: grid; place-items: center; }
.horn .car-ic { font-size: 4.4rem; color: var(--accent-text); animation: shake .6s ease-in-out infinite; }
.horn .wave { position: absolute; inset: 10px; border-radius: 50%; border: 3px solid var(--accent); animation: pulseRing 1.2s ease-out infinite; }
.horn .wave:nth-child(2) { animation-delay: .4s; border-color: var(--pink); }
.horn .wave:nth-child(3) { animation-delay: .8s; border-color: var(--cyan); }
.beep-text { font-family: var(--font-tech); font-weight: 900; font-size: 1.4rem; letter-spacing: .2em; color: var(--pink); animation: blink .85s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- Bookings list ---------- */
.bk-list { display: grid; gap: 12px; }
.bk-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; transition: border-color var(--dur-2), transform var(--dur-1); }
.bk-item:hover { border-color: var(--border-strong); }
.bk-item img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.bk-item strong { display: block; }
.bk-item .sub { font-size: .82rem; color: var(--muted); }
.bk-item .cta-strip { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--accent-soft); font-size: .85rem; font-weight: 700; flex-wrap: wrap; }
@media (max-width: 480px) { .bk-item { grid-template-columns: 52px 1fr; } .bk-item img { width: 52px; height: 52px; } .bk-item > .pill { grid-column: 2; justify-self: start; } }

/* ---------- Marketplace ---------- */
.market-head { margin-top: 26px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.market-head p { color: var(--muted); margin: 10px 0 0; }
.prod-card { position: relative; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.prod-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.prod-card .media { position: relative; aspect-ratio: 1.07; background: var(--surface-2); overflow: hidden; }
.prod-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.prod-card:hover .media img { transform: scale(1.06); }
.prod-card .fav { position: absolute; top: 10px; left: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; font-size: 1.05rem; }
.prod-card .fav[aria-pressed="true"] { color: var(--pink); }
.prod-card .stock { position: absolute; top: 10px; right: 10px; }
.stock-out { background: #1b1b20; color: #fff; border-color: #3a3a45; }
.prod-card .body { padding: 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prod-card h3 { margin: 0; font-size: .98rem; line-height: 1.3; min-height: 2.6em; }
.prod-card .brand-row { padding-top: 10px; border-top: 1px solid var(--border); font-size: .82rem; color: var(--muted); display: grid; gap: 6px; }
.prod-card .price { font-family: var(--font-tech); font-weight: 800; font-size: 1.05rem; }
.prod-card .btn { margin-top: auto; justify-content: flex-start; }
.cart-fab { position: fixed; z-index: var(--z-nav); right: 16px; bottom: calc(100px + env(safe-area-inset-bottom)); height: 56px; padding: 0 20px; border-radius: 18px; }
.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); display: flex; justify-content: flex-end; background: rgba(0, 0, 0, .55); animation: fadeIn 200ms; }
.drawer-panel { width: min(420px, 100%); height: 100%; background: var(--bg-elev); border-left: 1px solid var(--border-strong); padding: 20px; display: flex; flex-direction: column; animation: slideIn 380ms var(--ease-out); }
@keyframes slideIn { from { transform: translateX(100%); } }
.cart-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cart-line img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 12px; }
.qty button { width: 36px; height: 36px; border: 0; background: none; font-size: 1rem; }
.qty span { min-width: 22px; text-align: center; font-weight: 700; }

/* ---------- Profile ---------- */
.profile-card { margin-top: 22px; padding: 24px; border-radius: 28px; background: linear-gradient(135deg, rgba(255, 62, 165, .14), rgba(56, 198, 255, .14)), var(--surface); border: 1px solid var(--border); display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.profile-card .avatar { width: 84px; height: 84px; border-radius: 26px; font-size: 1.8rem; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 16px; }
.info-item { padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); display: flex; gap: 12px; align-items: center; }
.info-item i { font-size: 1.4rem; color: var(--accent-text); width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; flex: none; }
.info-item small { display: block; color: var(--muted); font-size: .75rem; }
.info-item strong { word-break: break-word; }
.wa-thread { display: grid; gap: 10px; padding: 16px; border-radius: 20px; background: #0b141a; border: 1px solid #1f2c33; }
[data-theme="light"] .wa-thread { background: #efeae2; border-color: #d9d3c7; }
.wa-msg { justify-self: start; max-width: 88%; padding: 10px 12px 6px; border-radius: 4px 14px 14px 14px; background: #202c33; color: #e9edef; font-size: .88rem; white-space: pre-line; }
[data-theme="light"] .wa-msg { background: #fff; color: #111b21; }
.wa-msg time { display: block; text-align: right; font-size: .68rem; opacity: .6; margin-top: 4px; }
.wa-head { display: flex; align-items: center; gap: 10px; color: #25d366; font-weight: 800; margin-bottom: 4px; }

/* ---------- Product art (reference-style colour tiles) ---------- */
.prod-art, .prod-card .media.prod-art { display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .25), transparent 45%), linear-gradient(135deg, var(--c1), var(--c2)); color: var(--fg); }
.prod-art > i { font-size: 5.2rem; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35)); transition: transform 700ms var(--ease-spring); }
.prod-card:hover .prod-art > i { transform: scale(1.12) rotate(-6deg); }
.prod-art .prod-brand { position: absolute; bottom: 12px; left: 14px; font-weight: 800; font-size: .95rem; letter-spacing: .02em; opacity: .9; }
.prod-art.mini { width: 56px; height: 56px; border-radius: 12px; }
.prod-art.mini i { font-size: 1.8rem; }

/* Map: OpenStreetMap tiles, neon-dark in dark mode */
:root:not([data-theme="light"]) #snapMap .leaflet-tile-pane, :root:not([data-theme="light"]) #locMap .leaflet-tile-pane { filter: invert(1) hue-rotate(185deg) brightness(.85) contrast(.95) saturate(.6); }

/* Overflow guards (grid children must be allowed to shrink on phones) */
.booking-layout > *, .checkout > *, .hero > *, .step { min-width: 0; }
.svc-list { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
html, body { overflow-x: clip; }
.prod-card .price { white-space: nowrap; font-size: .98rem; }
.prod-card .brand-row > span:last-child { flex-wrap: wrap; }

/* ---------- Self-drawn Cairo map (no tile service) ---------- */
#snapMap, #locMap { background: radial-gradient(ellipse at 45% 45%, #121826 0%, #0a0c12 60%, #07070a 100%); }
[data-theme="light"] #snapMap, [data-theme="light"] #locMap { background: radial-gradient(ellipse at 45% 45%, #f3f6ea 0%, #e9ede0 70%, #e2e6d8 100%); }
.leaflet-container path.m-nile { stroke: #38c6ff; stroke-opacity: .95; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.leaflet-container path.m-nile-glow { stroke: #38c6ff; stroke-opacity: .18; stroke-linecap: round; fill: none; }
.leaflet-container path.m-road { stroke: #d8ff2f; stroke-opacity: .28; fill: none; }
.leaflet-container path.m-ring { stroke: #ff3ea5; stroke-opacity: .45; stroke-dasharray: 6 8; fill: none; }
[data-theme="light"] .leaflet-container path.m-road { stroke: #6b8f00; stroke-opacity: .45; }
[data-theme="light"] .leaflet-container path.m-nile { stroke: #0a8fd6; }
.m-label { display: block; text-align: center; white-space: nowrap; font: 700 11px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: rgba(245, 245, 244, .42); pointer-events: none; }
[lang="ar"] .m-label { font-family: 'IBM Plex Sans Arabic', sans-serif; letter-spacing: 0; font-size: 12px; }
[data-theme="light"] .m-label { color: rgba(10, 10, 11, .45); }
.m-river { color: rgba(56, 198, 255, .75); font-style: italic; }
.m-landmark { display: grid; justify-items: center; gap: 2px; color: #f5b700; font-size: 18px; }
.m-landmark .m-label { color: rgba(245, 183, 0, .8); }

/* ---------- RTL mirroring ---------- */
[dir="rtl"] .search i { left: auto; right: 16px; }
[dir="rtl"] .search .input { padding-left: 16px; padding-right: 46px; }
[dir="rtl"] .coins { justify-items: start; }
[dir="rtl"] .coins-desc { text-align: left; }
[dir="rtl"] .profile-btn { padding-right: 0; padding-left: 8px; }
[dir="rtl"] .shop-card .badge-tl, [dir="rtl"] .prod-card .fav { left: auto; right: 12px; }
[dir="rtl"] .shop-card .badge-tr, [dir="rtl"] .prod-card .stock { right: auto; left: 12px; }
[dir="rtl"] .shop-card .dist, [dir="rtl"] .prod-art .prod-brand { left: auto; right: 14px; }
[dir="rtl"] .back-btn { left: auto; right: 14px; }
[dir="rtl"] .back-btn i { transform: scaleX(-1); }
[dir="rtl"] .map-tools { right: auto; left: 12px; }
[dir="rtl"] .map-chip { left: auto; right: 12px; }
[dir="rtl"] .cart-fab { right: auto; left: 16px; }
[dir="rtl"] .drawer-panel { border-left: 0; border-right: 1px solid var(--border-strong); animation-name: slideInRtl; }
@keyframes slideInRtl { from { transform: translateX(-100%); } }
[dir="rtl"] .tl-step::before { left: auto; right: -50%; }
[dir="rtl"] .detail-list { text-align: right; }
[dir="rtl"] .detail-list .dl-row span:last-child { text-align: left; }
[dir="rtl"] .nav-badge { right: auto; left: calc(50% - 22px); }
[dir="rtl"] .card-preview { direction: ltr; }
[dir="rtl"] .wa-msg { justify-self: end; border-radius: 14px 4px 14px 14px; }

/* ================= v3 layout ================= */
/* ---------- Auth: split 55/45 on desktop, stacked on phones ---------- */
@media (min-width: 960px) { .auth { grid-template-columns: 55fr 45fr; } }
@media (max-width: 959px) { .auth-form { padding: 20px 16px 40px; align-items: start; } .auth-card .brandline { margin-bottom: 8px; } }
.auth-card .brandline { justify-content: space-between; }

/* ---------- Header: mobile = profile · logo · actions; desktop adds nav links around the logo ---------- */
.hdr-inner { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; }
.top-nav { display: none; }
.brand-lockup .brand-word { display: none; }
@media (min-width: 520px) { .brand-lockup .brand-word { display: block; } }
.coins { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; justify-items: initial; }
.coins-count { font-family: var(--font-body); font-weight: 800; font-size: 1rem; letter-spacing: 0; }
.coin-big { font-size: 1.8rem; font-weight: 800; color: var(--gold); line-height: 1.1; }
[data-theme="light"] .coin-big { color: #8a5e00; }
.top-nav a { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; font-weight: 600; font-size: .92rem; color: var(--muted); text-decoration: none; border-radius: 10px; transition: color var(--dur-2); }
.top-nav a:hover { color: var(--text); }
.top-nav a.active { color: var(--accent-text); }
.top-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform var(--dur-3) var(--ease-out); }
.top-nav a.active::after { transform: scaleX(1); }
.nav-dot { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pink); color: #fff; font-style: normal; font-size: .65rem; font-weight: 800; display: grid; place-items: center; }
@media (min-width: 1024px) {
  .hdr-inner { grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 12px; }
  .top-nav { display: flex; gap: 4px; }
  .top-nav-start { justify-content: flex-end; }
  .top-nav-end { justify-content: flex-start; }
  .bottom-nav { display: none !important; }
  body { padding-bottom: 48px; }
  .cart-fab { bottom: 28px; }
}
@media (max-width: 380px) { .hdr-right { gap: 6px; } .coins { padding: 0 8px; } .hdr-right .icon-btn { width: 40px; height: 40px; } }

/* ---------- Home hero: copy + stats left, brand video right (stacks copy → video → stats on phones) ---------- */
.hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "media" "stats"; gap: 20px; padding: 22px 18px 22px; min-height: 0; border-radius: 26px;
  background: radial-gradient(ellipse at 85% 20%, rgba(216, 255, 47, .07), transparent 55%), #060607; border-color: rgba(255, 255, 255, .08); }
.hero-copy { grid-area: copy; padding: 0; align-self: auto; }
.hero-copy .display { margin: 14px 0 12px; font-size: clamp(2rem, 7vw, 3.6rem); }
.hero-copy p { color: #b9b9c2; max-width: 46ch; margin: 0; }
.hero-greet { background: rgba(216, 255, 47, .1); color: #d8ff2f; border-color: rgba(216, 255, 47, .35); }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
@media (max-width: 480px) { .hero-ctas .btn { flex: 1 1 100%; } }
.btn-glass { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #fff; }
.btn-glass:hover { background: rgba(255, 255, 255, .1); border-color: rgba(216, 255, 47, .45); }
.hero-media { grid-area: media; position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; background: #000; box-shadow: 0 0 0 1px rgba(216, 255, 47, .14), 0 18px 50px rgba(0, 0, 0, .45); }
.hero-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(6, 6, 7, .6)), radial-gradient(ellipse at 50% 115%, rgba(216, 255, 47, .16), transparent 60%); }
.hero-stats { grid-area: stats; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hero-stats li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hero-stats i { font-size: 1.35rem; color: #d8ff2f; flex: none; }
.hero-stats strong { display: block; font-size: 1.15rem; font-weight: 800; color: #fff; line-height: 1.15; }
.hero-stats span { display: block; font-size: .75rem; color: #a3a3ad; line-height: 1.3; }
@media (max-width: 360px) { .hero-stats { grid-template-columns: 1fr; } }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); grid-template-areas: "copy media" "stats media"; padding: 0; gap: 0 28px; min-height: 470px; }
  .hero-copy { padding: 48px 0 0 44px; align-self: end; }
  .hero-stats { padding: 30px 0 44px 44px; align-self: start; }
  .hero-media { border-radius: 0; aspect-ratio: auto; height: 100%; box-shadow: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20%); mask-image: linear-gradient(90deg, transparent 0, #000 20%); }
  [dir="rtl"] .hero-copy { padding: 48px 44px 0 0; }
  [dir="rtl"] .hero-stats { padding: 30px 44px 44px 0; }
  [dir="rtl"] .hero-media { -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 20%); mask-image: linear-gradient(270deg, transparent 0, #000 20%); }
}

/* ---------- Cards: lift + border highlight ---------- */
.shop-card, .prod-card { transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2), box-shadow var(--dur-2); }
@media (hover: hover) { .prod-card:hover { transform: translateY(-3px); } }

/* ---------- Checkout: progress, reusable summary, mobile accordion + sticky pay bar ---------- */
.checkout-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); text-decoration: none; font-weight: 600; border-radius: 10px; }
.back-link:hover { color: var(--text); }
[dir="rtl"] .back-link i { transform: scaleX(-1); }
.steps-bar { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.steps-bar li { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--faint); padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--border); }
[dir="rtl"] .steps-bar li { padding: 5px 5px 5px 12px; }
.steps-bar .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: .75rem; font-weight: 800; flex: none; }
.steps-bar li.done { color: var(--text); }
.steps-bar li.done .n { background: var(--accent); color: var(--on-accent); }
.steps-bar li.current { color: var(--text); border-color: var(--accent); box-shadow: var(--glow); }
.steps-bar li.current .n { background: var(--text); color: var(--bg); }
@media (max-width: 640px) {
  .steps-bar { width: 100%; flex-wrap: nowrap; }
  .steps-bar li, [dir="rtl"] .steps-bar li { flex: 1 1 0; flex-direction: column; gap: 4px; padding: 0; border: 0; font-size: .68rem; text-align: center; box-shadow: none !important; }
}
.checkout-head { margin-top: 16px; display: grid; gap: 8px; justify-items: start; }
.checkout-head h1 { margin: 0; }
.checkout-head p { margin: 0; max-width: 60ch; }
.checkout { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 18px; }
.pay-title { margin: 0 0 12px; font-size: 1.05rem; }
.sum-shop { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.sum-shop img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; flex: none; }
.sum-shop span { display: block; color: var(--muted); font-size: .85rem; }
.sum-row.due { font-size: 1.2rem; }
.sum-row.due span:last-child { color: var(--accent-text); }
.sum-mobile { margin-top: 16px; border-radius: 18px; overflow: hidden; }
.sum-mobile summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 54px; padding: 0 16px; cursor: pointer; font-weight: 700; }
.sum-mobile summary::-webkit-details-marker { display: none; }
.sum-mobile summary > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.sum-mobile summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform var(--dur-2); margin-inline-start: 4px; }
.sum-mobile[open] summary::after { transform: rotate(-135deg); }
.sum-mobile .due-inline { margin-inline-start: auto; color: var(--accent-text); }
.sum-mobile .sum-body { padding: 0 16px 16px; }
.pay-bar .mb-sum span { display: block; font-size: .75rem; color: var(--muted); }
.pay-bar .mb-sum strong { font-size: 1.1rem; }
@media (min-width: 1000px) {
  .checkout { grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); align-items: start; }
  .sum-card { position: sticky; top: 96px; }
  .sum-mobile { display: none; }
}
@media (max-width: 999px) { .sum-card { display: none; } }
/* phone header: avatar + logo on the start side, actions on the end side (never overlapping) */
@media (max-width: 1023px) {
  .hdr-inner { display: flex; align-items: center; gap: 8px; }
  .hdr-inner .hdr-right { margin-inline-start: auto; }
}
.hero-stats li strong { color: #fff; font-family: var(--font-body); font-size: 1.15rem; }
.hero-stats { grid-template-columns: 1.3fr 1fr 1fr; }
@media (max-width: 360px) { .hero-stats { grid-template-columns: 1fr; } }
.brand.brand-lockup img { height: auto; box-shadow: none; border-radius: 0; object-fit: contain; }
.brand.brand-lockup .brand-icon { width: 46px; }
.brand.brand-lockup .brand-word { width: 104px; }
@media (max-width: 1023px) { .brand.brand-lockup .brand-icon { width: 40px; } }

/* ================= v4: QR pass, profile banner, shop orders, fluorescent badges ================= */
/* Booking badge: fluorescent, not pink */
.nav-badge, .nav-dot { background: var(--accent) !important; color: var(--on-accent) !important; }
.nav-badge { border: 2px solid var(--bg-elev); }
.bottom-nav a.active .nav-badge { background: #0a0a0b !important; color: var(--accent) !important; border-color: var(--accent); }

/* QR pass: photo background + glass card */
.pass { position: relative; isolation: isolate; width: min(480px, 100%); margin: 22px auto 0; border-radius: 30px; overflow: hidden; padding: clamp(28px, 9vw, 56px) clamp(16px, 6vw, 40px); background: #050506; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 30px 70px rgba(0, 0, 0, .55); }
.pass-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.pass-card { position: relative; display: grid; justify-items: center; text-align: center; gap: 6px; padding: 26px 18px 24px; border-radius: 24px; background: linear-gradient(180deg, rgba(8, 10, 8, .78), rgba(6, 7, 6, .7)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(216, 255, 47, .28); box-shadow: inset 0 1px 0 rgba(216, 255, 47, .35), 0 0 40px rgba(216, 255, 47, .12); color: #f5f5f4; }
.pass-eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: #d8ff2f; }
[lang="ar"] .pass-eyebrow { letter-spacing: 0; font-size: .9rem; }
.pass-title { margin: 2px 0 0; font-size: clamp(1.8rem, 7vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: #fff; text-wrap: balance; }
.pass-when { color: #c9c9d1; font-size: .98rem; }
.pass .qr-box { width: min(260px, 72vw); height: auto; aspect-ratio: 1; margin: 16px auto 8px; padding: 18px; border-radius: 26px; background: #fff; border: 5px solid #d8ff2f; box-shadow: 0 0 0 1px rgba(216, 255, 47, .6), 0 0 36px rgba(216, 255, 47, .45); }
.pass .qr-box img, .pass .qr-box canvas { width: 100% !important; height: 100% !important; }
.pass .qr-code-text { color: #fff; font-size: 1.35rem; font-weight: 800; letter-spacing: .22em; }
.pass-state { margin-top: 10px; display: grid; justify-items: center; gap: 10px; }
.pass-pill { height: 38px; padding: 0 16px; font-size: .95rem; background: rgba(34, 197, 94, .12); color: #4ade80; border-color: rgba(74, 222, 128, .45); }
.pass-hint { margin: 0; color: #d4d4d8; font-size: .92rem; }
.pass .live-timer { color: #d8ff2f; }
.receipt { width: min(480px, 100%); margin: 16px auto 0; padding: 6px 20px 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }

/* Profile banner (dark in both themes) */
.profile-card { position: relative; isolation: isolate; overflow: hidden; background: #07090a; color: #f5f5f4; border: 1.5px solid rgba(216, 255, 47, .6); border-radius: 22px; padding: 22px clamp(16px, 3vw, 28px); box-shadow: 0 0 26px rgba(216, 255, 47, .16), inset 0 0 34px rgba(216, 255, 47, .05); display: flex; align-items: center; gap: clamp(12px, 3vw, 22px); flex-wrap: wrap; }
.profile-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 220' preserveAspectRatio='xMaxYMid slice'><defs><linearGradient id='a' x1='0' x2='1'><stop offset='0' stop-color='%23d8ff2f' stop-opacity='0'/><stop offset='.75' stop-color='%23d8ff2f' stop-opacity='.95'/><stop offset='1' stop-color='%23d8ff2f' stop-opacity='0'/></linearGradient><linearGradient id='b' x1='0' x2='1' y1='1' y2='0'><stop offset='0' stop-color='%236f8f9c' stop-opacity='0'/><stop offset='1' stop-color='%236f8f9c' stop-opacity='.28'/></linearGradient><filter id='g' x='-20%25' y='-50%25' width='140%25' height='200%25'><feGaussianBlur stdDeviation='4'/></filter><pattern id='d' width='14' height='14' patternUnits='userSpaceOnUse'><circle cx='2' cy='2' r='1' fill='%23ffffff' fill-opacity='.07'/></pattern></defs><rect x='780' width='220' height='220' fill='url(%23d)'/><path d='M360 205 C600 175 700 70 1000 8 L1000 34 C730 90 640 180 360 214Z' fill='url(%23b)'/><path d='M330 172 C560 160 690 70 770 12' stroke='url(%23a)' stroke-width='5' fill='none' filter='url(%23g)'/><path d='M330 172 C560 160 690 70 770 12' stroke='url(%23a)' stroke-width='1.4' fill='none'/><path d='M640 220 C720 150 770 80 830 22 L1000 22' stroke='%23d8ff2f' stroke-opacity='.45' stroke-width='1.4' fill='none'/><path d='M420 150 L1000 162' stroke='url(%23a)' stroke-opacity='.6' stroke-width='1' fill='none'/></svg>") right center / cover no-repeat, radial-gradient(ellipse at 0% 50%, rgba(216, 255, 47, .12), transparent 45%), radial-gradient(ellipse at 100% 50%, rgba(216, 255, 47, .12), transparent 40%); }
[dir="rtl"] .profile-card::before { transform: scaleX(-1); }
.profile-card .avatar { width: 84px; height: 84px; border-radius: 22px; font-size: 1.9rem; border-width: 2px; }
.pc-id { flex: 1 1 200px; min-width: 0; }
.pc-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #a3a3ad; }
[lang="ar"] .pc-eyebrow { letter-spacing: 0; }
.pc-name { margin: 4px 0; font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: #fff; overflow-wrap: anywhere; }
.pc-since { color: #b9b9c2; font-size: .9rem; }
.pc-coins { display: flex; align-items: center; gap: 10px; }
.pc-coin-n { font-weight: 800; font-size: 1.5rem; color: #f5b700; line-height: 1.1; }
@media (max-width: 480px) { .pc-coins { width: 100%; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); } }

/* Shop orders */
.sec-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.orders { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.order-card { padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); display: grid; gap: 12px; }
.order-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.order-top strong { display: block; }
.order-top .muted { font-size: .8rem; }
.order-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.order-lines li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; font-size: .88rem; }
.order-lines .prod-art.mini { width: 40px; height: 40px; border-radius: 10px; }
.order-lines .prod-art.mini i { font-size: 1.2rem; }
.ol-name { overflow-wrap: anywhere; }
.order-total { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--border); font-weight: 700; }

/* ---------- hero: phones stack (text -> video -> stats); side by side from 600px ---------- */
@media (min-width: 600px) {
  .hero { grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); grid-template-areas: "copy media" "stats media"; padding: 0; gap: 0 24px; min-height: 420px; }
  .hero-copy { padding: 44px 0 0 36px; align-self: end; }
  .hero-stats { padding: 28px 0 40px 36px; align-self: start; }
  .hero-media { border-radius: 0; aspect-ratio: auto; height: 100%; box-shadow: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20%); mask-image: linear-gradient(90deg, transparent 0, #000 20%); }
  [dir="rtl"] .hero-copy { padding: 44px 36px 0 0; }
  [dir="rtl"] .hero-stats { padding: 28px 36px 40px 0; }
  [dir="rtl"] .hero-media { -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 20%); mask-image: linear-gradient(270deg, transparent 0, #000 20%); }
}
@media (min-width: 900px) { .hero { min-height: 470px; } .hero-copy { padding-left: 44px; } .hero-stats { padding-left: 44px; } [dir="rtl"] .hero-copy { padding: 48px 44px 0 0; } [dir="rtl"] .hero-stats { padding: 30px 44px 44px 0; } }

.auto-note { display: inline-flex; align-items: center; gap: 6px; margin: 10px auto 0; padding: 6px 12px; border-radius: 999px; font-size: .8rem; color: var(--accent-text); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent-text) 30%, transparent); }
.pass .auto-note { color: #d8ff2f; background: rgba(216, 255, 47, .1); border-color: rgba(216, 255, 47, .3); }
