/* Screen-specific styles */
.ph { background: var(--t, var(--tile)); }
.h3 { font-size: 16px; font-weight: 700; }
.pts-t { color: var(--points-ink); font-weight: 700; }
.stars { display: inline-flex; align-items: center; gap: 3px; color: var(--points); }
.stars svg { fill: currentColor; }
.stars b { color: var(--text); font-size: 12.5px; }
.old { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); border-top-color: currentColor; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
mark { background: var(--accent); color: var(--accent-ink); border-radius: 4px; padding: 0 2px; }
.seg.sm button { padding: 5px 9px; }
.seg.on-dark { background: rgba(255, 255, 255, .16); }
.seg.on-dark button { color: rgba(255, 255, 255, .8); }
.seg.on-dark button.on { background: #fff; color: #075E6B; }
.icon-btn.glass { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); backdrop-filter: blur(8px); }
.icon-btn.glass .dot { box-shadow: 0 0 0 2px #0A8A99; }
.icon-btn.fav-on { color: var(--deal); }
.icon-btn.fav-on svg { fill: currentColor; }

/* brand dot */
.brand-dot { width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, var(--surface)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 35%, transparent); flex: none; }
.brand-dot b { font-size: calc(var(--s) * .3); color: var(--c); font-weight: 800; font-family: var(--font-display); }

/* Splash */
.splash { position: absolute; inset: 0; background: var(--grad-night); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; overflow: hidden; cursor: pointer; }
.splash::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(56, 194, 207, .35), transparent 65%); top: 18%; }
.sp-center { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: -40px; }
.sp-icon { position: relative; animation: spPop .9s var(--ease-spring) .15s both; }
.sp-icon svg { filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .35)); border-radius: 30px; }
.sp-icon .sb, .sp-icon .ss, .sp-icon .sk { transform-box: fill-box; transform-origin: center; animation: spBub .55s var(--ease-spring) both; }
.sp-icon .sb1, .sp-icon .ss1 { animation-delay: .65s; } .sp-icon .sb2, .sp-icon .ss2 { animation-delay: .82s; } .sp-icon .sb3, .sp-icon .ss3 { animation-delay: 1s; } .sp-icon .sk { animation-delay: 1.25s; }
.sp-ring { position: absolute; inset: -14px; border-radius: 40px; border: 2px solid rgba(201, 240, 107, .5); animation: spRing 1.6s ease-out 1.1s both; }
@keyframes spPop { from { transform: scale(.4) translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spBub { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes spRing { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.sp-word { position: relative; overflow: hidden; padding: 4px 14px; animation: spUp .7s var(--ease-out) 1.25s both; }
.sp-word b { font-family: var(--font-display); font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: -.01em; display: block; }
.sp-shine { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); animation: spShine 1.1s ease 2s both; mix-blend-mode: overlay; }
.sp-tag { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .82); animation: spUp .7s var(--ease-out) 1.5s both; }
@keyframes spUp { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spShine { to { transform: translateX(120%); } }
.sp-foot { position: absolute; bottom: 46px; display: flex; flex-direction: column; align-items: center; gap: 12px; color: rgba(255, 255, 255, .6); font-size: 12px; animation: spUp .6s ease 1.8s both; }
.sp-dots { display: flex; gap: 6px; } .sp-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: dot 1.2s infinite ease-in-out; } .sp-dots i:nth-child(2) { animation-delay: .15s; } .sp-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

/* Onboarding */
.ob-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ob-track::-webkit-scrollbar { display: none; }
.ob-slide { flex: none; width: 100%; scroll-snap-align: start; display: flex; flex-direction: column; padding: 0 26px; }
.ob-art { position: relative; height: 392px; margin: 6px 0 14px; }
.ob-blob { position: absolute; inset: 28px 6px 18px; border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%; background: var(--tint); animation: blob 9s ease-in-out infinite; }
:root[data-theme="dark"] .ob-blob { background: color-mix(in srgb, var(--tint) 14%, var(--surface)); }
@keyframes blob { 50% { border-radius: 54% 46% 44% 56% / 46% 56% 44% 54%; transform: rotate(4deg); } }
.ob-art .bubbles i { background: radial-gradient(circle at 32% 30%, #fff, rgba(11, 163, 179, .15) 60%); box-shadow: inset 0 0 0 1.5px rgba(11, 163, 179, .3); }
.ob-p { position: absolute; width: 150px; height: 150px; animation: float 5s ease-in-out infinite; }
.ob-p svg { width: 100%; height: 100%; }
.ob-p.a { left: 50%; top: 64px; transform: translateX(-50%); width: 200px; height: 200px; z-index: 2; }
.ob-p.b { left: 14px; top: 150px; animation-delay: -1.5s; } .ob-p.c { right: 10px; top: 160px; animation-delay: -3s; }
@keyframes float { 50% { translate: 0 -10px; } }
.ob-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; background: var(--surface); padding: 10px 14px; border-radius: 16px; box-shadow: var(--shadow); font-size: 13px; font-weight: 600; animation: float 6s ease-in-out infinite; }
.ob-chip svg { color: var(--primary); }
.ob-chip.c1 { top: 30px; inset-inline-start: 0; } .ob-chip.c2 { bottom: 30px; inset-inline-end: 6px; animation-delay: -2s; } .ob-chip.c3 { top: 36px; inset-inline-end: 4px; color: var(--points-ink); }
.ob-chip.c3 svg { color: var(--points); }
.ob-card { position: absolute; z-index: 3; bottom: 14px; inset-inline-start: 10px; background: var(--surface); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow); width: 210px; font-size: 12.5px; animation: float 6s ease-in-out infinite; }
.ob-card svg { color: var(--primary); }
.ob-big { font-size: 26px; font-weight: 700; margin: 4px 0 8px; }
.ob-mg { display: flex; justify-content: space-between; color: var(--muted); }
.ob-mg b { color: var(--ok); }
.ob-wallet { position: absolute; z-index: 3; bottom: 18px; inset-inline-start: 8px; width: 220px; padding: 14px 16px; border-radius: 18px; background: var(--grad-night); color: #fff; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; display: grid; gap: 6px; }
.ob-wallet small { opacity: .75; } .ob-wallet b { font-size: 22px; }
.ob-wallet .progress { background: rgba(255, 255, 255, .18); }
.ob-t { margin: 0; font-size: 27px; line-height: 1.35; font-weight: 700; text-wrap: balance; }
.ob-b { margin: 10px 0 0; color: var(--text-2); font-size: 14.5px; line-height: 1.8; }
.ob-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 26px 40px; }
.ob-dots { display: flex; gap: 6px; } .ob-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--surface-3); transition: all .35s var(--ease-out); } .ob-dots i.on { width: 28px; background: var(--primary-2); }
.ob-next { position: relative; width: 72px; height: 72px; display: grid; place-items: center; }
.ob-next > svg { position: absolute; inset: 0; }
.ob-next span { width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; box-shadow: var(--sh-brand); position: relative; z-index: 1; }

/* Welcome */
.wl-hero { position: relative; height: 47%; background: var(--grad-night); border-radius: 0 0 40px 40px; overflow: hidden; flex: none; }
.wl-top { display: flex; justify-content: flex-end; padding: 6px 18px; position: relative; z-index: 2; }
.wl-products span { position: absolute; width: 140px; height: 140px; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .3)); }
.wl-products svg { width: 100%; height: 100%; }
.wl-products .p1 { left: 50%; bottom: -14px; transform: translateX(-50%); width: 200px; height: 200px; z-index: 2; }
.wl-products .p2 { left: 8px; bottom: 30px; animation-delay: -2s; } .wl-products .p3 { right: 10px; bottom: 36px; animation-delay: -4s; } .wl-products .p4 { right: 70px; top: 70px; width: 90px; height: 90px; opacity: .85; animation-delay: -1s; }
.wl-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 24px 22px 34px; }
.wl-body h2 { margin: 6px 0 0; font-size: 26px; line-height: 1.35; }
.wl-body p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.75; }
.wl-stats { display: flex; gap: 8px; }
.wl-stats span { flex: 1; background: var(--primary-soft); border-radius: 14px; padding: 8px 10px; font-size: 11.5px; color: var(--primary-ink); display: flex; flex-direction: column; }
.wl-stats b { font-size: 16px; }
:root[data-theme="dark"] .safy-lockup-txt b { color: #7DDAE2; }

/* Auth */
.auth { display: flex; flex-direction: column; padding-top: 4px; padding-bottom: 30px; }
.auth-ic { margin: 6px 0 16px; }
.auth-t { margin: 0; font-size: 26px; font-weight: 700; }
.auth-s { margin: 8px 0 24px; color: var(--text-2); font-size: 14px; line-height: 1.75; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 20px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.bio-ic, .done-ic { width: 76px; height: 76px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.bio-ic { animation: pulseRing 1.4s infinite; }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(11, 163, 179, .5); } 100% { box-shadow: 0 0 0 22px rgba(11, 163, 179, 0); } }
.done-ic { background: var(--accent); color: #075E6B; animation: spBub .5s var(--ease-spring) both; }
.done-ic.warn { background: var(--warn-soft); color: var(--warn); } .done-ic.danger { background: var(--danger-soft); color: var(--danger); }
.pw-meter { display: flex; align-items: center; gap: 5px; margin-top: -6px; }
.pw-meter i { flex: 1; height: 5px; border-radius: 3px; background: var(--surface-3); }
.pw-meter i.on { background: var(--ok); }
.pw-meter span { font-size: 12px; color: var(--ok); font-weight: 600; margin-inline-start: 6px; }
.steps { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; }
.stp { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stp i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-style: normal; font-size: 12px; }
.stp.on { color: var(--text); } .stp.on i { background: var(--primary); color: var(--on-primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.stp.done i { background: var(--ok); color: #fff; }
.stp-line { flex: 1; height: 2px; background: var(--surface-3); border-radius: 2px; }
.type-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.type { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border); font-size: 11.5px; font-weight: 500; text-align: center; color: var(--text-2); }
.type.on { box-shadow: inset 0 0 0 2px var(--primary-2); background: var(--primary-soft); color: var(--primary-ink); font-weight: 600; }
.reg-sum b { font-size: 15px; }
.otp-art { position: relative; width: 120px; height: 120px; border-radius: 36px; background: var(--primary-soft); display: grid; place-items: center; margin: 8px 0 20px; color: var(--primary); overflow: hidden; }
.otp-art .msg { position: absolute; top: 14px; inset-inline-end: -4px; background: var(--surface); padding: 6px 10px; border-radius: 12px 12px 4px 12px; box-shadow: var(--shadow); display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--text); animation: float 4s ease-in-out infinite; }
.otp-art .bubbles i { background: radial-gradient(circle at 32% 30%, #fff, rgba(11, 163, 179, .2) 60%); }
.otp { display: flex; gap: 12px; justify-content: center; margin: 4px 0 14px; }
.otp input { width: 64px; height: 70px; border-radius: 18px; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border); text-align: center; font-size: 28px; font-weight: 700; outline: 0; transition: all .2s; }
.otp input:focus { box-shadow: inset 0 0 0 2px var(--primary-2), 0 0 0 4px var(--primary-soft); }
.otp input.f { box-shadow: inset 0 0 0 2px var(--primary-2); background: var(--primary-soft); animation: spBub .3s var(--ease-spring); }
.autofill { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 12px; background: var(--surface-2); font-size: 13px; color: var(--text-2); margin-bottom: 14px; }
.rv-art { position: relative; width: 140px; height: 140px; margin: 10px auto 20px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); overflow: hidden; }
.rv-badge { width: 84px; height: 84px; border-radius: 28px; background: var(--grad-brand); color: #fff; display: grid; place-items: center; box-shadow: var(--sh-brand); animation: spPop .7s var(--ease-spring) both; }
.timeline { display: flex; flex-direction: column; }
.tl { display: flex; gap: 12px; position: relative; padding-bottom: 18px; }
.tl:last-child { padding-bottom: 0; }
.tl > i { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--surface-3); position: relative; z-index: 1; font-style: normal; }
.tl:not(:last-child)::before { content: ""; position: absolute; top: 24px; bottom: 0; inset-inline-start: 11px; width: 2px; background: var(--surface-3); }
.tl.done > i { background: var(--ok); color: #fff; } .tl.done::before { background: var(--ok) !important; }
.tl.now > i { background: var(--primary-soft); }
.tl b { font-size: 14px; font-weight: 600; display: block; }
.tl small { font-size: 12px; color: var(--muted); }
.tl.next b { color: var(--muted); font-weight: 500; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--primary-2); animation: pulseRing 1.4s infinite; display: block; }
.rules { display: flex; flex-wrap: wrap; gap: 8px; }
.rules .ok { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ok); background: var(--ok-soft); padding: 5px 10px; border-radius: 10px; }

/* Home */
.home-hero { position: relative; background: var(--grad-brand); padding-bottom: 54px; border-radius: 0 0 34px 34px; overflow: hidden; color: #fff; }
.hh-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 18px 0; position: relative; z-index: 2; }
.hh-loc { display: flex; align-items: center; gap: 8px; color: #fff; text-align: start; }
.hh-loc span { display: flex; flex-direction: column; line-height: 1.3; }
.hh-loc small { font-size: 11px; opacity: .75; }
.hh-loc b { font-size: 14px; font-weight: 600; }
.hh-hi { margin: 14px 18px 12px; font-size: 22px; font-weight: 700; position: relative; z-index: 2; }
.search-bar { display: flex; align-items: center; gap: 10px; margin: 0 18px; height: 52px; padding: 0 8px 0 16px; border-radius: 16px; background: var(--surface); color: var(--muted); font-size: 14px; position: relative; z-index: 2; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .35); width: calc(100% - 36px); text-align: start; }
.viewport[dir="rtl"] .search-bar { padding: 0 16px 0 8px; }
.search-bar span { flex: 1; }
.search-bar i { width: 38px; height: 38px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.search-bar.slim { margin: 0; height: 44px; width: auto; box-shadow: inset 0 0 0 1.5px var(--border); color: var(--text); }
.money-strip { display: grid; grid-template-columns: 1.15fr 1fr .9fr; margin: -38px 18px 0; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); position: relative; z-index: 3; }
.money-strip button { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 12px; position: relative; text-align: start; min-width: 0; }
.money-strip button + button::before { content: ""; position: absolute; inset-inline-start: 0; top: 14px; bottom: 14px; width: 1px; background: var(--border); }
.money-strip small { font-size: 11px; color: var(--muted); }
.money-strip .num { font-size: 15px; font-weight: 700; white-space: nowrap; }
.money-strip .num small { font-size: 10px; }
.money-strip em { font-style: normal; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 6px; }
.money-strip em.deal { background: var(--deal-soft); color: var(--deal-ink); } .money-strip em.ok { background: var(--ok-soft); color: var(--ok); } .money-strip em.gold { background: var(--points-soft); color: var(--points-ink); }
.slider-wrap { margin-top: 18px; }
.slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider::-webkit-scrollbar { display: none; }
.slide { flex: none; width: 100%; padding: 0 18px; scroll-snap-align: center; }
.sl-dots { display: flex; justify-content: center; gap: 5px; margin-top: 10px; }
.sl-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--surface-3); transition: all .3s; }
.sl-dots i.on { width: 20px; background: var(--primary-2); }
.banner { position: relative; height: 172px; border-radius: 24px; overflow: hidden; background: linear-gradient(135deg, var(--b1), var(--b2)); color: var(--ink); display: flex; align-items: stretch; text-align: start; width: 100%; }
.banner .bn-txt { position: relative; z-index: 2; flex: 0 0 60%; padding: 18px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.banner .pill.ad { position: absolute; top: 12px; inset-inline-end: -66%; }
.banner .bn-eb { font-size: 11.5px; font-weight: 700; opacity: .85; background: rgba(255, 255, 255, .16); padding: 3px 9px; border-radius: 8px; }
.banner h3 { margin: 2px 0 0; font-size: 17px; line-height: 1.35; font-weight: 700; }
.banner p { margin: 0; font-size: 12px; opacity: .85; }
.banner .bn-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--b2); padding: 7px 12px; border-radius: 11px; font-size: 12.5px; font-weight: 700; }
.banner .bn-art { position: absolute; inset-inline-end: 0; top: 0; bottom: 0; width: 46%; z-index: 1; }
.banner .bn-p { position: absolute; width: 120px; height: 120px; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .3)); }
.banner .bn-p svg { width: 100%; height: 100%; }
.banner .bn-p0 { bottom: 4px; inset-inline-end: 34px; width: 140px; height: 140px; z-index: 2; }
.banner .bn-p1 { bottom: 20px; inset-inline-end: -10px; transform: rotate(10deg); opacity: .95; }
.bn-bub i { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .45), rgba(255, 255, 255, .06) 60%); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); }
.bn-bub i:nth-child(1) { width: 90px; height: 90px; inset-inline-end: 80px; top: -30px; } .bn-bub i:nth-child(2) { width: 40px; height: 40px; inset-inline-end: 20px; top: 20px; } .bn-bub i:nth-child(3) { width: 140px; height: 140px; inset-inline-start: -50px; bottom: -80px; }
.banner.wide { height: 132px; }
.banner.wide .bn-p0 { width: 116px; height: 116px; } .banner.wide .bn-p1 { width: 96px; height: 96px; }
.banner.mini { height: 124px; border-radius: 20px; }
.banner.mini h3 { font-size: 16px; }
.banner.mini .bn-p0 { width: 104px; height: 104px; inset-inline-end: 22px; } .banner.mini .bn-p1 { width: 84px; height: 84px; }
.banner.mini .pill.ad { inset-inline-end: -62%; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 18px 0; }
.quick button { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 4px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.quick button svg { width: 24px; height: 24px; color: var(--primary); padding: 8px; box-sizing: content-box; background: var(--primary-soft); border-radius: 14px; }
.cats { gap: 14px; }
.cat { width: 76px; display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 500; text-align: center; line-height: 1.35; color: var(--text-2); }
.cat-art { width: 72px; height: 72px; border-radius: 24px; background: var(--t); display: grid; place-items: center; transition: transform .2s; }
:root[data-theme="dark"] .cat-art, :root[data-theme="dark"] .r-art, :root[data-theme="dark"] .s-art { background: var(--tile); }
.cat-art svg { width: 62px; height: 62px; }
.cat:active .cat-art { transform: scale(.94); }
.flash { margin: 22px 18px 0; padding: 16px 16px 14px; border-radius: 24px; background: #0A2230; color: #fff; }
:root[data-theme="dark"] .flash { background: #0F2F3B; }
.flash h2 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 6px; color: var(--accent); }
.flash p { margin: 3px 0 12px; font-size: 12px; opacity: .7; }
.flash .pcard { color: var(--text); }
.cd { display: flex; align-items: center; gap: 3px; direction: ltr; }
.cd b { background: var(--accent); color: #0A2230; font-size: 13px; padding: 4px 6px; border-radius: 8px; font-variant-numeric: tabular-nums; min-width: 28px; text-align: center; }
.cd i { font-style: normal; color: var(--accent); font-weight: 700; }
.cd.light { margin-top: 10px; }
.smart { margin: 22px 18px 0; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(135deg, var(--surface) 60%, var(--accent-soft)); }
.smart h3 { margin: 8px 0 2px; font-size: 17px; }
.smart p { margin: 0; font-size: 12.5px; color: var(--muted); }
.smart-row { display: flex; align-items: center; }
.smart-row span { width: 58px; height: 58px; border-radius: 18px; background: var(--t); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--surface); margin-inline-end: -10px; }
:root[data-theme="dark"] .smart-row span { background: var(--tile); }
.smart-row span svg { width: 48px; height: 48px; }
.smart-row b { margin-inline-start: 20px; font-size: 13px; color: var(--muted); }
.smart-row.sm span { width: 46px; height: 46px; border-radius: 14px; } .smart-row.sm span svg { width: 38px; height: 38px; }
.h-ic { width: 28px; height: 28px; border-radius: 9px; background: var(--ok-soft); color: var(--ok); display: inline-grid; place-items: center; }
.brands button { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 66px; font-size: 11.5px; color: var(--text-2); }
.dialog-ad { padding: 0 !important; overflow: hidden; width: calc(100% - 56px) !important; }
.popad { position: relative; text-align: start; }
.pop-x { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; }
.popad-art { position: relative; height: 230px; background: var(--grad-night); overflow: hidden; }
.popad-art span { position: absolute; width: 130px; height: 130px; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .35)); animation: float 5s ease-in-out infinite; }
.popad-art svg { width: 100%; height: 100%; }
.popad-art .a { left: 50%; bottom: -6px; transform: translateX(-50%); width: 170px; height: 170px; z-index: 2; } .popad-art .b { left: 6px; bottom: 16px; animation-delay: -2s; } .popad-art .c { right: 6px; bottom: 20px; animation-delay: -3.5s; }
.popad-b { padding: 18px 20px 20px; }
.popad-b h3 { margin: 10px 0 6px; font-size: 22px; line-height: 1.35; }
.popad-b p { margin: 0 0 16px; color: var(--text-2); font-size: 13.5px; }
.scan { text-align: center; padding: 10px 0 10px; }
.scan h3 { margin: 18px 0 4px; }
.scan-box { position: relative; width: 220px; height: 220px; margin: 0 auto; border-radius: 26px; background: #0A2230; display: grid; place-items: center; overflow: hidden; }
.scan-box svg { width: 150px; height: 150px; opacity: .9; }
.scan-box span { position: absolute; inset: 22px; border-radius: 18px; border: 3px solid var(--accent); clip-path: polygon(0 0, 30% 0, 30% 4%, 4% 4%, 4% 30%, 0 30%, 0 70%, 4% 70%, 4% 96%, 30% 96%, 30% 100%, 70% 100%, 70% 96%, 96% 96%, 96% 70%, 100% 70%, 100% 30%, 96% 30%, 96% 4%, 70% 4%, 70% 0, 100% 0, 100% 100%, 0 100%); }
.scan-box i { position: absolute; left: 30px; right: 30px; height: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: scanl 2s ease-in-out infinite; }
@keyframes scanl { 0%, 100% { top: 34px; } 50% { top: 184px; } }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border); text-align: start; width: 100%; transition: all .2s; }
.opt.on { box-shadow: inset 0 0 0 2px var(--primary-2); background: color-mix(in srgb, var(--primary-soft) 55%, var(--surface)); }
.opt.dim { opacity: .65; }
.opt .lic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink); flex: none; }
.opt b { font-size: 14px; display: block; }
.opt small { font-size: 12px; color: var(--muted); display: block; margin-top: 2px; }

/* Categories */
.cat-layout { flex: 1; display: flex; min-height: 0; }
.rail { width: 92px; flex: none; overflow-y: auto; scrollbar-width: none; background: var(--surface); border-start-end-radius: 24px; padding: 8px 0; }
.rail::-webkit-scrollbar { display: none; }
.rail button { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 100%; padding: 10px 6px; font-size: 11px; line-height: 1.3; color: var(--muted); text-align: center; position: relative; }
.rail button.on { color: var(--primary-ink); font-weight: 700; }
.rail button.on::before { content: ""; position: absolute; inset-inline-start: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--primary-2); }
.viewport[dir="rtl"] .rail button.on::before { border-radius: 4px 0 0 4px; }
.r-art { width: 54px; height: 54px; border-radius: 18px; background: var(--t); display: grid; place-items: center; transition: transform .25s var(--ease-spring); }
.rail button.on .r-art { transform: scale(1.08); box-shadow: 0 0 0 2px var(--primary-2); }
.r-art svg { width: 46px; height: 46px; }
.cat-main { padding: 6px 14px 0; }
.sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sub-grid button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; text-align: center; line-height: 1.35; color: var(--text-2); }
.s-art { width: 100%; aspect-ratio: 1; border-radius: 18px; background: var(--t); display: grid; place-items: center; }
.s-art svg { width: 78%; height: 78%; }
.prow { display: flex; align-items: center; gap: 12px; padding: 8px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); text-align: start; }
.prow .ph { width: 72px; height: 72px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.prow .ph svg { width: 62px; height: 62px; }
.prow .nm { font-size: 13.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prow .bold { font-size: 14.5px; }

/* Listing / filters */
.chips-row { gap: 8px; padding-top: 2px; padding-bottom: 10px; }
.chips-row .chip { height: 36px; }
.fc { background: var(--primary); color: var(--on-primary); border-radius: 8px; padding: 0 6px; font-size: 11px; }
.sponsored .prow { box-shadow: inset 0 0 0 1.5px var(--border); }
.sheet.tall { height: 86%; }
.fsec { padding: 14px 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.fsec:last-child { border-bottom: 0; }
.fsec > b, .fsec .between b { font-size: 14.5px; }
.range { position: relative; height: 6px; border-radius: 3px; background: var(--surface-3); margin: 14px 10px 4px; }
.range i { position: absolute; top: 0; bottom: 0; background: var(--primary-2); border-radius: 3px; }
.range span { position: absolute; top: 50%; width: 24px; height: 24px; margin-inline-start: -12px; transform: translateY(-50%); border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .25), inset 0 0 0 6px var(--primary-2); }
.hist { display: flex; align-items: flex-end; gap: 4px; height: 44px; padding: 0 10px; order: -1; }
.hist i { flex: 1; background: var(--surface-3); border-radius: 3px 3px 0 0; }
.hist i.in { background: var(--primary-soft); box-shadow: inset 0 -2px 0 var(--primary-2); }
.li0 { padding: 6px 0; font-size: 14px; }
.flat-list { box-shadow: none; }

/* Search */
.search-in { height: 46px; }
.search-in button { color: var(--primary); }
.scan-cta { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: 18px; background: var(--grad-fresh); text-align: start; color: var(--text); }
:root[data-theme="dark"] .scan-cta { background: var(--surface); }
.scan-cta > svg:first-child { width: 42px; height: 42px; padding: 9px; box-sizing: border-box; border-radius: 14px; background: var(--primary); color: #fff; }
.scan-cta b { display: block; font-size: 14px; } .scan-cta small { font-size: 12px; color: var(--muted); }
.trend { display: flex; flex-direction: column; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); }
.trend button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; font-size: 14px; text-align: start; }
.trend button + button { border-top: 1px solid var(--border); }
.trend .n { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink); font-size: 12px; font-weight: 700; }
.trend svg { color: var(--ok); }
.sugg-all { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px; border-radius: 16px; background: var(--primary-soft); color: var(--primary-ink); text-align: start; margin-top: 8px; font-size: 14px; }
.sugg { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; background: var(--surface); text-align: start; width: 100%; }
.sugg .ph { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; }
.sugg .ph svg { width: 44px; height: 44px; }
.sugg b { display: block; font-size: 13.5px; font-weight: 600; } .sugg small { font-size: 12px; color: var(--muted); }
.voice { text-align: center; padding: 20px 0 30px; }
.mic { position: relative; width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; }
.mic i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--primary-2); animation: spRing 1.6s ease-out infinite; } .mic i + i { animation-delay: .8s; }

/* Product */
.pd { background: var(--bg); }
.pd-gal { position: relative; background: var(--t); padding-bottom: 46px; }
:root[data-theme="dark"] .pd-gal { background: var(--tile); }
.pd-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: 380px; }
.pd-track::-webkit-scrollbar { display: none; }
.pd-img { flex: none; width: 100%; scroll-snap-align: center; display: grid; place-items: center; padding: 90px 40px 10px; }
.pd-img > svg, .pd-img .life > svg.pack { width: 270px; height: 270px; filter: drop-shadow(0 20px 22px rgba(6, 40, 52, .18)); }
.life { position: relative; width: 300px; height: 280px; border-radius: 30px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 30%, #fff), color-mix(in srgb, var(--c) 70%, #062a31)); display: grid; place-items: center; overflow: hidden; }
.life svg.pack { width: 220px !important; height: 220px !important; position: relative; z-index: 1; }
.pd-top { position: absolute; top: 0; inset-inline: 0; z-index: 3; }
.pd-thumbs { position: absolute; bottom: 52px; inset-inline: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.pd-thumbs button { width: 46px; height: 46px; border-radius: 14px; background: var(--surface); display: grid; place-items: center; box-shadow: var(--shadow); opacity: .7; transition: all .25s; }
.pd-thumbs button.on { opacity: 1; box-shadow: 0 0 0 2px var(--primary-2), var(--shadow); transform: translateY(-3px); }
.pd-thumbs svg { width: 38px; height: 38px; }
.pd-body { position: relative; z-index: 2; margin-top: -30px; background: var(--bg); border-radius: 30px 30px 0 0; padding: 20px 18px 0; display: flex; flex-direction: column; gap: 14px; }
.pd-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.pd-name { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.4; }
.pd-price .big { font-size: 26px; font-weight: 700; }
.pd-price .big small { font-size: 13px; }
.pd-margin { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.pd-margin div { padding: 10px; border-radius: 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 3px; }
.pd-margin small { font-size: 11px; color: var(--muted); }
.pd-margin b { font-size: 14.5px; }
.pd-margin .hl { background: var(--ok-soft); } .pd-margin .hl b { color: var(--ok); font-size: 18px; }
.mg-bar { position: relative; height: 30px; border-radius: 10px; background: linear-gradient(90deg, var(--ok-soft), var(--ok-soft)); margin-top: 10px; overflow: hidden; display: flex; align-items: center; }
.mg-bar i { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--surface-3); }
.mg-bar span { position: relative; z-index: 1; margin-inline-start: auto; padding-inline-end: 10px; font-size: 12px; font-weight: 600; color: var(--ok); }
.pd-sec { display: flex; flex-direction: column; gap: 12px; }
.pd-sec > b, .pd-sec .between > b { font-size: 15px; }
.sizes { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.size { flex: none; padding: 10px 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border); text-align: start; display: flex; flex-direction: column; gap: 3px; transition: all .2s; }
.size b { font-size: 14.5px; } .size small { font-size: 11.5px; color: var(--muted); }
.size.on { box-shadow: inset 0 0 0 2px var(--primary-2); background: var(--primary-soft); }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tier { padding: 10px 6px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border); text-align: center; display: flex; flex-direction: column; gap: 4px; transition: all .3s; }
.tier small { font-size: 10.5px; color: var(--muted); } .tier b { font-size: 12.5px; } .tier span { font-size: 10.5px; font-weight: 700; color: var(--ok); }
.tier.on { background: var(--primary); box-shadow: none; transform: translateY(-3px); }
.tier.on small, .tier.on b, .tier.on span { color: var(--on-primary); }
.tier.on small { opacity: .8; }
.pd-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pd-perks > div { display: flex; flex-direction: column; gap: 6px; padding: 12px 10px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.pd-perks svg { color: var(--primary); }
.pd-perks b { font-size: 12.5px; display: block; } .pd-perks small { font-size: 10.5px; color: var(--muted); }
.desc { margin: 0; font-size: 14px; line-height: 1.85; color: var(--text-2); }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border-radius: 16px; overflow: hidden; }
.specs div { background: var(--surface); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.specs span { font-size: 11px; color: var(--muted); } .specs b { font-size: 13px; font-weight: 600; }
.pd-bar .btn { height: 54px; }
.added-h { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; }
.ok-ic { width: 32px; height: 32px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.prow-mini { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; background: var(--surface-2); }
.prow-mini .ph { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; } .prow-mini .ph svg { width: 48px; height: 48px; }
.prow-mini b { display: block; font-size: 13.5px; } .prow-mini small { font-size: 12px; color: var(--muted); }
.added .hscroll .pcard { width: 150px; }

/* Offers */
.flash-hero { position: relative; display: flex; align-items: center; gap: 8px; padding: 18px; border-radius: 24px; background: #0A2230; color: #fff; overflow: hidden; min-height: 168px; }
.flash-hero > div:not(.bubbles) { position: relative; z-index: 2; flex: 1; }
.flash-hero h3 { margin: 10px 0 6px; font-size: 18px; }
.flash-hero .big { font-size: 22px; font-weight: 700; color: var(--accent); }
.flash-hero .old { color: rgba(255, 255, 255, .5); }
.fh-art { width: 130px; height: 130px; position: relative; z-index: 1; } .fh-art svg { width: 100%; height: 100%; }
.flash-hero .btn { position: absolute; bottom: 16px; inset-inline-end: 16px; z-index: 3; }
.tier-ladder { display: flex; align-items: flex-end; gap: 10px; padding: 18px 16px 14px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); }
.tier-ladder div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tier-ladder i { width: 100%; height: var(--h); border-radius: 12px 12px 4px 4px; background: linear-gradient(180deg, var(--primary-2), var(--primary)); }
.tier-ladder b { font-size: 15px; color: var(--primary); } .tier-ladder small { font-size: 11px; color: var(--muted); }
.bundle { display: flex; overflow: hidden; }
.bd-art { width: 120px; flex: none; display: grid; grid-template-columns: 1fr 1fr; place-items: center; padding: 6px; background: color-mix(in srgb, var(--c) 14%, var(--surface)); }
.bd-art svg { width: 50px; height: 50px; }
.bd-b { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bd-b b { font-size: 15px; } .bd-b small { font-size: 12px; color: var(--muted); }
.ticket { width: 220px; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; position: relative; border-inline-start: 5px solid var(--deal); }
.ticket b { font-size: 16px; color: var(--deal); letter-spacing: .04em; } .ticket span { font-size: 12.5px; line-height: 1.5; } .ticket small { font-size: 11px; color: var(--muted); }

/* Cart */
.free-bar { padding: 14px; }
.free-bar svg { color: var(--primary); }
.citem { display: flex; gap: 12px; padding: 10px; align-items: flex-start; }
.citem .ph { width: 84px; height: 84px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.citem .ph svg { width: 72px; height: 72px; }
.citem .nm { font-size: 13.5px; line-height: 1.4; }
.citem .rm { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); background: var(--surface-2); flex: none; }
.citem .pill { width: fit-content; }
.sw-i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-inline: 4px 3px; vertical-align: middle; }
.promo-on { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--ok-soft); color: var(--ok); }
.promo-on b { display: block; } .promo-on small { color: var(--text-2); font-size: 12px; }

/* Auto-basket */
.ab-hero { position: relative; display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 22px; background: var(--grad-brand); color: #fff; overflow: hidden; }
.ab-hero > div:not(.bubbles) { position: relative; z-index: 1; }
.ab-ic { width: 60px; height: 60px; flex: none; border-radius: 20px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; }
.ab-hero b { font-size: 16px; } .ab-hero p { margin: 4px 0 0; font-size: 12.5px; opacity: .9; line-height: 1.6; }
.basket { padding: 16px; display: flex; flex-direction: column; gap: 14px; transition: opacity .3s; }
.basket.off { opacity: .6; }
.basket-f { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--text-2); padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.basket-f span { display: inline-flex; gap: 6px; align-items: center; }
.days { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.days button { height: 42px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--border); font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.days button.on { background: var(--primary); color: var(--on-primary); box-shadow: none; }
.days.lg { grid-template-columns: repeat(4, 1fr); }
.days.lg button { height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.days.lg small { font-size: 11px; opacity: .8; } .days.lg b { font-size: 15px; }

/* Checkout */
.co-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.co-h b { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.co-h b svg { color: var(--primary); }
.addr-card { display: flex; gap: 12px; align-items: center; }
.map-mini { width: 76px; height: 76px; border-radius: 16px; overflow: hidden; flex: none; }
.map-mini svg { width: 100%; height: 100%; display: block; }

/* Success */
.success { position: absolute; inset: 0; background: var(--grad-night); color: #fff; display: flex; flex-direction: column; overflow: hidden; }
.sc-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 26px; position: relative; z-index: 1; }
.sc-check { width: 128px; height: 128px; }
.sc-check svg circle { transform-origin: center; animation: spBub .6s var(--ease-spring) both; }
.sc-check svg path { stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw .5s ease .45s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h2 { margin: 20px 0 8px; font-size: 28px; animation: spUp .5s ease .5s both; }
.success p { margin: 0; opacity: .85; font-size: 14px; line-height: 1.7; animation: spUp .5s ease .6s both; }
.sc-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 24px; width: 100%; border-radius: 20px; overflow: hidden; background: rgba(255, 255, 255, .15); animation: spUp .5s ease .7s both; }
.sc-card div { padding: 14px 8px; background: rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 4px; }
.sc-card small { font-size: 11px; opacity: .7; } .sc-card b { font-size: 13.5px; }
.pts-on-dark { color: var(--accent); }
.sc-f { padding: 0 22px 36px; display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }

/* Orders */
.ocard { padding: 16px; display: flex; flex-direction: column; gap: 12px; text-align: start; }
.o-track { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: var(--primary-soft); color: var(--primary-ink); }
.o-track span { display: inline-flex; gap: 6px; align-items: center; }
.o-steps { display: flex; gap: 4px; } .o-steps i { flex: 1; height: 5px; border-radius: 3px; background: rgba(8, 112, 126, .18); } .o-steps i.on { background: var(--primary-2); }
.o-steps i.on:nth-child(3) { background: linear-gradient(90deg, var(--primary-2) 50%, rgba(8, 112, 126, .18) 50%); background-size: 200% 100%; animation: prog 1.6s linear infinite; }
@keyframes prog { from { background-position: 100% 0; } to { background-position: 0 0; } }
.ph-sm { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; flex: none; } .ph-sm svg { width: 40px; height: 40px; }
.live-map { position: relative; height: 170px; overflow: hidden; }
.live-map svg { width: 100%; height: 100%; display: block; }
.truck-dot { animation: truck 6s ease-in-out infinite alternate; }
@keyframes truck { to { transform: translate(230px, 66px); } }
.lm-eta { position: absolute; bottom: 12px; inset-inline-start: 12px; background: var(--surface); border-radius: 14px; padding: 8px 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.lm-eta small { font-size: 11px; color: var(--muted); } .lm-eta b { font-size: 15px; }
.driver { display: flex; align-items: center; gap: 10px; }
.dv-av { width: 46px; height: 46px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }

/* Wallet */
.w-hero { position: relative; background: var(--grad-night); color: #fff; padding-bottom: 20px; border-radius: 0 0 34px 34px; overflow: hidden; }
.w-bal { text-align: center; padding: 18px 0 6px; position: relative; z-index: 1; }
.w-bal small { opacity: .75; font-size: 13px; }
.w-amt .num { font-size: 38px; font-weight: 700; display: block; margin: 4px 0 8px; }
.w-amt .num small { font-size: 16px; }
.w-tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 10px; }
.w-tag.due { background: rgba(255, 92, 77, .22); color: #FFB1A8; } .w-tag.cr { background: rgba(201, 240, 107, .2); color: var(--accent); }
.w-limit { margin: 16px 18px 0; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .1); display: grid; gap: 8px; position: relative; z-index: 1; }
.w-limit .xs { opacity: .85; }
.w-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.w-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #FF9A8F, #FF5C4D); }
.w-bar.lime i { background: linear-gradient(90deg, #DDF79E, #B6E34A); }
.w-actions { display: grid; grid-template-columns: repeat(4, 1fr); margin: 16px 12px 0; position: relative; z-index: 1; }
.w-actions button { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; font-size: 11.5px; font-weight: 500; }
.w-actions span { width: 50px; height: 50px; border-radius: 17px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; }
.w-actions button:first-child span { background: var(--accent); color: #0A2230; }
.w-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.w-sum div { padding: 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 3px; }
.w-sum small { font-size: 11.5px; color: var(--muted); } .w-sum .num { font-size: 16px; font-weight: 700; }
.ledger { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: 4px 0; }
.lg-day { font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 12px 16px 4px; }
.lg-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; width: 100%; text-align: start; }
.lg-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.lg-ic.in { background: var(--ok-soft); color: var(--ok); } .lg-ic.out { background: var(--deal-soft); color: var(--deal); }
.lg-ic.big { width: 64px; height: 64px; border-radius: 22px; margin: 0 auto; }
.lg-row b { font-size: 13.5px; font-weight: 600; display: block; } .lg-row small { font-size: 11px; color: var(--muted); }
.lg-amt { text-align: end; display: flex; flex-direction: column; gap: 2px; }
.lg-amt b { font-size: 14px; white-space: nowrap; }
.lg-amt small { white-space: nowrap; }
.amt-in { display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 10px 0 16px; }
.amt-in span { font-size: 18px; color: var(--muted); font-weight: 600; }
.amt-in input { width: 190px; border: 0; outline: 0; background: transparent; font-size: 44px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.center-chips { justify-content: center; }

/* Points */
.pt-hero { position: relative; background: linear-gradient(160deg, #3A2A05, #6B4A06 40%, #0A2230 100%); color: #fff; padding-bottom: 22px; border-radius: 0 0 34px 34px; overflow: hidden; }
.pt-card { margin: 14px 18px 0; padding: 18px; border-radius: 24px; background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); position: relative; z-index: 1; backdrop-filter: blur(6px); }
.tier-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 10px; background: var(--c); color: #fff; font-size: 12px; font-weight: 700; }
.tier-badge.sm { margin-top: 6px; font-size: 11px; padding: 3px 9px; }
.pt-num { font-size: 46px; font-weight: 700; line-height: 1.1; margin: 14px 0 4px; font-variant-numeric: tabular-nums; }
.pt-num small { font-size: 16px; font-weight: 500; margin-inline-start: 6px; opacity: .8; }
.conv { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface-2); }
.conv div { display: flex; flex-direction: column; gap: 2px; } .conv small { font-size: 11.5px; color: var(--muted); } .conv b { font-size: 20px; }
.slider-in { width: 100%; margin-top: 14px; appearance: none; -webkit-appearance: none; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--points) var(--v, 60%), var(--surface-3) var(--v, 60%)); outline: none; }
.viewport[dir="rtl"] .slider-in { background: linear-gradient(-90deg, var(--points) var(--v, 60%), var(--surface-3) var(--v, 60%)); }
.slider-in::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .25), inset 0 0 0 7px var(--points); cursor: pointer; }
.slider-in::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 7px solid var(--points); }
.tiers-list { display: flex; flex-direction: column; gap: 8px; }
.tl-tier { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.tl-tier .tb { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.tl-tier b { display: block; font-size: 14px; } .tl-tier small { font-size: 12px; color: var(--muted); }
.tl-tier.on { box-shadow: inset 0 0 0 2px var(--c), var(--shadow); }
.earn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.earn .card { display: flex; flex-direction: column; gap: 6px; }
.earn .lic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--points-soft); color: var(--points-ink); }
.earn b { font-size: 14px; } .earn small { font-size: 12px; color: var(--muted); }

/* Notifications */
.notif { display: flex; gap: 12px; padding: 14px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); text-align: start; width: 100%; position: relative; align-items: flex-start; }
.notif.unread { background: color-mix(in srgb, var(--primary-soft) 45%, var(--surface)); }
.n-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.t-order { background: var(--primary-soft); color: var(--primary-ink); } .t-offer { background: var(--deal-soft); color: var(--deal); } .t-wallet { background: var(--ok-soft); color: var(--ok); } .t-points { background: var(--points-soft); color: var(--points-ink); } .t-basket { background: var(--accent-soft); color: #5E7F12; }
.notif b { display: block; font-size: 14px; }
.n-b { display: block; font-size: 12.5px; color: var(--text-2); margin: 3px 0 6px; line-height: 1.6; }
.notif small { font-size: 11px; color: var(--muted); }
.n-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary-2); flex: none; margin-top: 6px; }

/* Account */
.acc-head { display: flex; align-items: center; gap: 14px; padding-top: 6px; padding-bottom: 16px; }
.acc-head b { font-size: 18px; }
.acc-av { position: relative; width: 64px; height: 64px; border-radius: 22px; background: var(--grad-brand); color: #fff; display: grid; place-items: center; flex: none; }
.acc-av button { position: absolute; bottom: -4px; inset-inline-end: -4px; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); color: var(--primary); display: grid; place-items: center; box-shadow: var(--shadow); }
.acc-av.lg { width: 92px; height: 92px; border-radius: 30px; }
.acc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.acc-stats button { padding: 12px 6px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.acc-stats b { font-size: 17px; font-variant-numeric: tabular-nums; } .acc-stats small { font-size: 11px; color: var(--muted); }
.invite { position: relative; display: flex; align-items: center; gap: 10px; padding: 16px; background: #0A2230; color: #fff; overflow: hidden; }
:root[data-theme="dark"] .invite { background: #0F2F3B; }
.invite > div:not(.bubbles) { position: relative; z-index: 1; }
.invite b { display: block; font-size: 14.5px; } .invite small { font-size: 12px; opacity: .8; }
.invite .btn { position: relative; z-index: 1; }
.acc-g > small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 6px 8px; }
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.doc { padding: 12px 8px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1.5px dashed var(--border); border: 1.5px dashed var(--border); display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.doc span { color: var(--muted); } .doc b { font-size: 12px; } .doc small { font-size: 10.5px; color: var(--muted); }
.doc.ok { border-style: solid; border-color: var(--ok); } .doc.ok span, .doc.ok small { color: var(--ok); }
.big-map { position: relative; height: 140px; border-radius: 16px; overflow: hidden; margin-bottom: 12px; }
.big-map svg:first-child { width: 100%; height: 100%; }
.pin-drop { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -80%); color: var(--deal); animation: pinBounce 1.6s ease-in-out infinite; }
.pin-drop svg { fill: var(--deal); stroke: #fff; width: 38px; height: 38px; }
@keyframes pinBounce { 50% { transform: translate(-50%, -100%); } }
.add-addr b { font-size: 15px; }

/* Coupons */
.coupon { display: flex; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.coupon.exp { opacity: .55; filter: grayscale(.6); }
.cp-l { width: 104px; flex: none; background: var(--grad-deal); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; position: relative; }
.cp-l b { font-size: 26px; } .cp-l small { font-size: 11px; opacity: .9; text-align: center; }
.cp-l::after { content: ""; position: absolute; inset-inline-end: -1px; top: 8px; bottom: 8px; border-inline-end: 3px dotted var(--surface); }
.cp-r { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cp-r b { font-size: 16px; letter-spacing: .04em; } .cp-r span { font-size: 12.5px; color: var(--text-2); line-height: 1.5; } .cp-r small { font-size: 11px; color: var(--muted); }

/* Support / legal / about */
.sup-hero { position: relative; padding: 22px 18px; border-radius: 22px; background: var(--grad-brand); color: #fff; overflow: hidden; display: flex; flex-direction: column; gap: 4px; }
.sup-hero b { font-size: 19px; position: relative; } .sup-hero span { font-size: 13px; opacity: .9; position: relative; }
.sup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sup-grid .card { display: flex; flex-direction: column; gap: 6px; text-align: start; }
.sup-grid .lic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.sup-grid b { font-size: 14px; } .sup-grid small { font-size: 12px; color: var(--muted); }
.faq details summary { list-style: none; cursor: pointer; }
.faq details summary::-webkit-details-marker { display: none; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 16px 14px; font-size: 13px; color: var(--text-2); line-height: 1.8; }
.faq details + details { border-top: 1px solid var(--border); }
.legal { display: flex; flex-direction: column; gap: 18px; padding-top: 6px; }
.legal .pill { width: fit-content; }
.toc { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); }
.toc a { color: var(--primary); font-size: 13.5px; text-decoration: none; padding: 5px 0; }
.legal h3 { margin: 0 0 8px; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.legal h3 span { width: 26px; height: 26px; border-radius: 9px; background: var(--primary-soft); color: var(--primary-ink); display: grid; place-items: center; font-size: 13px; }
.legal p { margin: 0; font-size: 14px; line-height: 1.95; color: var(--text-2); }
.about-hero { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px; border-radius: 26px; background: var(--grad-night); color: #fff; overflow: hidden; }
.about-hero > *:not(.bubbles) { position: relative; z-index: 1; }
.about-hero b { font-family: var(--font-display); font-size: 34px; line-height: 1; } .about-hero span { font-size: 13px; opacity: .85; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.about-stats div { padding: 12px 4px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; }
.about-stats b { font-size: 17px; color: var(--primary); } .about-stats small { font-size: 11px; color: var(--muted); }

/* product card v2: price row + full-width stepper when in cart */
.pcard .mg { justify-content: space-between; margin: 6px 4px 0; font-size: 11px; }
.pcard .mg > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .mg b { display: inline-flex; align-items: center; gap: 3px; color: var(--ok); background: var(--ok-soft); padding: 2px 6px; border-radius: 7px; font-size: 11px; white-space: nowrap; }
.pcard .pr { flex-wrap: wrap; align-items: center; margin-top: 8px; row-gap: 8px; }
.pcard .pp { display: flex; flex-direction: column; min-width: 0; }
.pcard .price { font-size: 16px; font-weight: 700; white-space: nowrap; line-height: 1.15; }
.pcard .pp .old { white-space: nowrap; }
.pcard .pr.has-q .pp { flex-direction: row; align-items: baseline; gap: 6px; }
.pcard .pr.has-q .stepper { flex-basis: 100%; justify-content: space-between; }
.pcard .pr.has-q .stepper button { width: 40px; }
.num { white-space: nowrap; }
.brand-dot b { font-family: var(--font-ui); font-size: calc(var(--s) * .17); letter-spacing: .02em; }
.brand-dot.mono b { font-family: var(--font-display); font-size: calc(var(--s) * .5); }
.num small { display: inline !important; margin: 0 !important; padding: 0 !important; background: none !important; }

/* small phones (≤380px): give dense grids room to breathe */
@media (max-width: 380px) {
  .tiers { grid-template-columns: 1fr 1fr; }
  .days { grid-template-columns: repeat(3, 1fr); }
  .money-strip .num { font-size: 14px; }
  .money-strip button { padding: 11px 9px; }
  .pd-margin b { font-size: 13.5px; }
  .pd-margin .hl b { font-size: 16px; }
  .quick button { font-size: 11px; }
  .pcard .price { font-size: 15px; }
  .hscroll .pcard { width: 156px; }
  .type-grid { grid-template-columns: 1fr 1fr; }
}
