/* ==========================================================================
   DigiBorj 6 — resident app
   Depends on core.css. Mobile-first; tablet/desktop adapt at 760 / 1080px.
   ========================================================================== */

html { scroll-padding-top: calc(var(--topbar-h) + var(--safe-top) + 8px); }
body.app { background: var(--bg); overflow-x: hidden; }
body.app.is-locked { overflow: hidden; }

/* ------------------------------------------------------------------ shell */
.shell { min-height: 100dvh; display: flex; }
.shell__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.view {
  flex: 1; width: 100%; max-width: 640px; margin: 0 auto;
  padding: var(--s3) var(--gutter) calc(var(--tabbar-h) + var(--safe-bottom) + 28px);
  outline: none;
}
.view.has-cartbar { padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 96px); }
.view-enter { animation: view-in var(--d-3) var(--ease-out) backwards; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
::view-transition-old(root) { animation: 160ms var(--ease-in) both vt-out; }
::view-transition-new(root) { animation: 280ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: var(--z-header);
  padding-top: var(--safe-top);
  background: rgba(var(--topbar-rgb, 243, 245, 250), 0.82);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--d-2), background-color var(--d-2), box-shadow var(--d-2);
}
:root[data-theme="dark"] .topbar { --topbar-rgb: 10, 14, 25; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .topbar { --topbar-rgb: 10, 14, 25; } }
.topbar.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(15, 23, 42, 0.4); }
.topbar__in { height: var(--topbar-h); max-width: 640px; margin: 0 auto; padding: 0 calc(var(--gutter) - 6px); display: flex; align-items: center; gap: var(--s2); }
.topbar__title { flex: 1; min-width: 0; font-size: var(--fs-lg); font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__brand { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 4px; border-radius: var(--r-sm); text-align: start; }
.topbar__logo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--brand), var(--brand-strong)); color: #fff; box-shadow: var(--sh-brand); flex: none; }
.topbar__logo img { width: 100%; height: 100%; object-fit: cover; }
.topbar__name { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.topbar__name b { font-size: var(--fs-md); font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__name small { font-size: var(--fs-2xs); color: var(--text-3); font-weight: 600; }
.topbar__actions { display: flex; align-items: center; gap: 2px; }
.topbar .login-btn { min-height: 40px; padding: 0 14px; border-radius: var(--r-full); font-size: var(--fs-sm); }

/* tab bar */
.tabbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: var(--z-tabbar);
  padding: 6px 10px calc(6px + var(--safe-bottom));
  background: rgba(var(--tabbar-rgb, 255, 255, 255), 0.9);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-top: 1px solid var(--line);
}
:root[data-theme="dark"] .tabbar { --tabbar-rgb: 18, 24, 39; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .tabbar { --tabbar-rgb: 18, 24, 39; } }
.tabbar__in { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(var(--tabs, 5), 1fr); align-items: end; }
.tab {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 52px; border: 0; background: transparent; color: var(--text-3);
  font-size: 11.5px; font-weight: 700; border-radius: var(--r-md);
  transition: color var(--d-2);
}
.tab .i { width: 24px; height: 24px; transition: transform var(--d-2) var(--ease-spring); }
.tab[aria-current="page"] { color: var(--brand-ink); }
.tab[aria-current="page"] .i { transform: translateY(-1px); stroke-width: 2.2; }
.tab[aria-current="page"]::before { content: ""; position: absolute; top: -7px; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--brand); }
.tab__badge { position: absolute; top: 2px; inset-inline-start: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: #fff; border: 2px solid var(--surface); font-size: 10px; font-weight: 800; line-height: 14px; }
.tab--center .tab__fab {
  width: 56px; height: 56px; margin-top: -26px; border-radius: 20px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--brand), var(--brand-strong)); color: #fff; box-shadow: var(--sh-brand), 0 0 0 5px var(--bg);
  transition: transform var(--d-2) var(--ease-spring);
}
.tab--center:active .tab__fab { transform: scale(0.92); }
.tab--center .tab__fab .i { width: 26px; height: 26px; }
.tab--center[aria-current="page"]::before { display: none; }

/* side nav (large screens) */
.sidenav { display: none; }
@media (min-width: 1080px) {
  .tabbar { display: none; }
  .sidenav {
    display: flex; flex-direction: column; gap: var(--s4); position: sticky; top: 0; height: 100dvh; flex: none;
    width: 272px; padding: var(--s5) var(--s4); border-inline-start: 1px solid var(--line); background: var(--surface); overflow-y: auto;
  }
  .sidenav__brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 12px; border-bottom: 1px solid var(--line); }
  .sidenav__group { display: flex; flex-direction: column; gap: 2px; }
  .sidenav__label { font-size: var(--fs-2xs); font-weight: 800; color: var(--text-3); padding: 8px 12px 4px; }
  .sidenav__link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--r-sm); color: var(--text-2); font-weight: 650; font-size: var(--fs-sm); border: 0; background: none; text-align: start; transition: background-color var(--d-1), color var(--d-1); }
  .sidenav__link:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
  .sidenav__link[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); }
  .sidenav__link .i { width: 20px; height: 20px; }
  .sidenav__link .count { margin-inline-start: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
  .view { max-width: 1080px; padding: var(--s6) var(--s8) var(--s12); }
  .view.has-cartbar { padding-bottom: 120px; }
  .topbar__in { max-width: 1080px; padding: 0 var(--s6); }
  .topbar .topbar__brand { visibility: hidden; }
}
@media (min-width: 760px) and (max-width: 1079.98px) {
  .view { max-width: 760px; }
  .topbar__in { max-width: 760px; }
}

/* --------------------------------------------------------------- page head */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); margin: var(--s2) 0 var(--s4); }
.page-head h1 { font-size: var(--fs-2xl); font-weight: 850; }
.page-head p { color: var(--text-3); font-size: var(--fs-sm); margin-top: 4px; }

/* ---------------------------------------------------------------- home hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-xl); padding: var(--s5) var(--s5) var(--s4); min-height: 196px;
  background: radial-gradient(120% 120% at 100% 0%, var(--hero-b) 0%, var(--hero-a) 62%);
  color: #fff; box-shadow: var(--sh-3);
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 10% 100%, rgba(var(--accent-rgb), 0.28), transparent 70%), radial-gradient(40% 50% at 90% 10%, rgba(255, 255, 255, 0.12), transparent 70%); }
.hero__bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: 0.35; mix-blend-mode: luminosity; }
.hero__art { position: absolute; inset-inline-end: 2px; top: 8px; z-index: -1; width: 46%; max-width: 236px; height: auto; opacity: 0.92; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 96%); mask-image: linear-gradient(180deg, #000 58%, transparent 96%); }
.hero__art .float { animation: float 6s var(--ease-in-out) infinite; transform-origin: center; }
.hero__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.hero__place { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; font-size: var(--fs-xs); font-weight: 700; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
button.hero__place { cursor: pointer; }
.hero__place .i { width: 16px; height: 16px; }
.hero__greet { margin-top: var(--s4); max-width: 60%; }
.hero__hello { font-size: var(--fs-sm); opacity: 0.82; font-weight: 600; }
.hero__name { font-size: calc(26px * var(--font-scale)); font-weight: 850; line-height: 1.3; margin-top: 2px; text-wrap: balance; }
.hero__sub { font-size: var(--fs-sm); opacity: 0.8; margin-top: 6px; line-height: 1.7; }
.hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: var(--s5); }
.hero__stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.1); color: #fff; text-align: start; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background-color var(--d-2), transform var(--d-1); }
button.hero__stat:hover { background: rgba(255, 255, 255, 0.16); }
button.hero__stat:active { transform: scale(0.97); }
.hero__stat small { font-size: 11px; opacity: 0.8; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__stat b { font-size: var(--fs-lg); font-weight: 850; font-variant-numeric: tabular-nums; }
.hero__stat.is-alert b { color: #fde68a; }
.hero--guest .hero__greet { max-width: 62%; }
.hero__cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); gap: 8px; margin-top: var(--s5); }
.hero__cta .btn { min-height: 46px; min-width: 0; }
.hero__cta .btn:first-child { --btn-bg: #fff; --btn-fg: #0f172a; --btn-bd: transparent; }
.hero__notice { margin-top: var(--s4); display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-md); background: rgba(0, 0, 0, 0.22); font-size: var(--fs-xs); line-height: 1.7; }
.hero__notice .i { flex: none; color: #fde68a; }
.hero__notice b { display: block; font-size: var(--fs-sm); }

/* attention cards */
.attn { width: min(78vw, 300px); display: flex; flex-direction: column; gap: 10px; padding: var(--s4); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); text-align: start; color: inherit; transition: transform var(--d-2) var(--ease-out), box-shadow var(--d-2); }
.attn:hover { box-shadow: var(--sh-2); text-decoration: none; }
.attn:active { transform: scale(0.98); }
.attn__top { display: flex; align-items: center; gap: 10px; }
.attn__title { font-weight: 800; font-size: var(--fs-md); line-height: 1.45; }
.attn__meta { font-size: var(--fs-xs); color: var(--text-3); }
.attn__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.attn__value { font-weight: 850; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.attn--live { border-color: var(--brand-line); background: linear-gradient(180deg, var(--brand-soft), var(--surface) 70%); }

/* quick access */
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 6px; }
.quick__item { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding: 4px 0; border: 0; background: none; color: var(--text); text-align: center; border-radius: var(--r-md); }
.quick__icon { width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; background: var(--tile-soft); color: var(--tile); transition: transform var(--d-2) var(--ease-spring), box-shadow var(--d-2); }
.quick__icon .i { width: 27px; height: 27px; stroke-width: 1.8; }
.quick__item:hover .quick__icon { box-shadow: 0 8px 18px -10px var(--tile); }
.quick__item:active .quick__icon { transform: scale(0.9); }
.quick__label { font-size: 12.5px; font-weight: 700; line-height: 1.45; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (min-width: 560px) { .quick { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 900px) { .quick { grid-template-columns: repeat(8, minmax(0, 1fr)); } }

/* slider */
.slider { position: relative; }
.slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-lg); gap: 10px; }
.slider__track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; min-height: 150px; scroll-snap-align: center; border-radius: var(--r-lg); overflow: hidden; padding: var(--s5); display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; color: #fff; text-align: start; border: 0; background: linear-gradient(135deg, var(--slide-a, var(--brand)), var(--slide-b, var(--brand-strong))); isolation: isolate; }
.slide__img { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.slide::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.05) 70%); }
.slide--plain::after { background: radial-gradient(80% 90% at 0% 100%, rgba(255, 255, 255, 0.14), transparent 60%); }
.slide__title { font-size: var(--fs-xl); font-weight: 850; line-height: 1.35; text-wrap: balance; }
.slide__sub { font-size: var(--fs-sm); opacity: 0.9; }
.slide__cta { align-self: flex-start; margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; background: rgba(255, 255, 255, 0.95); color: #0f172a; font-size: var(--fs-xs); font-weight: 800; }
.slide__deco { position: absolute; inset-inline-end: -14px; bottom: -22px; width: 136px; height: 136px; z-index: -1; opacity: 0.16; pointer-events: none; }
.slide__deco .i { width: 100%; height: 100%; color: #fff; stroke-width: 1.3; }
.slide__title, .slide__sub { padding-inline-end: 36px; }
.slider__dots { position: absolute; bottom: 10px; inset-inline-end: 16px; display: flex; gap: 5px; }
.slider__dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, 0.5); transition: width var(--d-3) var(--ease-out), background-color var(--d-2); }
.slider__dot[aria-current="true"] { width: 20px; background: #fff; }
.slider__pause { position: absolute; top: 10px; inset-inline-end: 10px; width: 32px; height: 32px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.28); color: #fff; }
.slider__pause .i { width: 14px; height: 14px; }

/* sponsored / ads */
.ad { position: relative; display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); color: inherit; text-align: start; width: 100%; overflow: hidden; }
.ad:hover { text-decoration: none; box-shadow: var(--sh-2); }
.ad__img { width: 84px; height: 84px; flex: none; border-radius: var(--r-md); background: var(--surface-3) center / cover no-repeat; display: grid; place-items: center; color: var(--text-3); }
.ad__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ad__title { font-weight: 800; font-size: var(--fs-md); line-height: 1.45; }
.ad__desc { font-size: var(--fs-xs); color: var(--text-2); }
.ad__by { font-size: var(--fs-2xs); color: var(--text-3); font-weight: 650; }
.ad__cta { align-self: flex-start; margin-top: 4px; font-size: var(--fs-xs); font-weight: 800; color: var(--brand-ink); display: inline-flex; gap: 4px; align-items: center; }
.ad__badge { position: absolute; top: 8px; inset-inline-end: 8px; padding: 2px 8px; border-radius: 6px; font-size: 10px; font-weight: 800; background: var(--surface-3); color: var(--text-3); }
.ad--banner { display: block; padding: 0; min-height: 132px; border: 0; color: #fff; background: linear-gradient(135deg, var(--ad-bg, var(--hero-b)), var(--hero-a)); }
.ad--banner .ad__img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; opacity: 1; }
.ad--banner .ad__body { position: relative; justify-content: flex-end; min-height: 132px; padding: 16px; background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), transparent 80%); }
.ad--banner .ad__desc, .ad--banner .ad__by { color: rgba(255, 255, 255, 0.85); }
.ad--banner .ad__cta { color: #fff; }
.ad--banner .ad__badge { background: rgba(0, 0, 0, 0.35); color: #fff; }
.ad--compact { padding: 10px 12px; }
.ad--compact .ad__img { width: 48px; height: 48px; border-radius: 14px; }
.ads-rail .ad { width: min(84vw, 360px); }

/* generic media card (amenity / community / service) */
.mcard { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); color: inherit; text-align: start; transition: transform var(--d-2) var(--ease-out), box-shadow var(--d-2); }
.mcard:hover { box-shadow: var(--sh-2); text-decoration: none; }
.mcard:active { transform: scale(0.985); }
.mcard__media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--tile-soft, var(--brand-soft)), var(--surface-3)); display: grid; place-items: center; color: var(--tile, var(--brand-ink)); overflow: hidden; }
.mcard__media img { width: 100%; height: 100%; object-fit: cover; }
.mcard__media .i { width: 44px; height: 44px; stroke-width: 1.4; opacity: 0.9; }
.mcard__media:has(> .pattern) { aspect-ratio: 2 / 1; }
.rail .mcard__media:has(> .pattern) { aspect-ratio: 16 / 9; }
.mcard__media .pattern { position: absolute; inset: 0; opacity: 0.5; background-image: radial-gradient(currentColor 1px, transparent 1.5px); background-size: 16px 16px; color: var(--tile, var(--brand-ink)); opacity: 0.12; }
.mcard__tag { position: absolute; top: 10px; inset-inline-end: 10px; }
.mcard__tag-start { position: absolute; top: 10px; inset-inline-start: 10px; }
.mcard__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.mcard__title { font-weight: 800; font-size: var(--fs-md); line-height: 1.5; }
.mcard__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--text-3); font-size: var(--fs-xs); font-weight: 600; }
.mcard__meta span { display: inline-flex; align-items: center; gap: 4px; }
.mcard__meta .i { width: 15px; height: 15px; }
.mcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.mcard__price { font-weight: 850; font-size: var(--fs-md); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mcard__price small { font-weight: 600; font-size: var(--fs-2xs); color: var(--text-3); }
.mcard--row { flex-direction: row; }
.mcard--row .mcard__media { width: 108px; aspect-ratio: auto; flex: none; }
.rail .mcard { width: min(66vw, 250px); }
.cards { display: grid; gap: var(--s3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* service tiles */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .svc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.svc { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px; min-height: 132px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); color: inherit; text-align: start; transition: transform var(--d-2) var(--ease-out), box-shadow var(--d-2), border-color var(--d-2); }
.svc:hover { box-shadow: var(--sh-2); border-color: var(--line-strong); }
.svc:active { transform: scale(0.97); }
.svc__img { width: 52px; height: 52px; border-radius: 16px; background: center / cover no-repeat; }
.svc__title { font-weight: 800; font-size: var(--fs-sm); line-height: 1.55; }
.svc__desc { font-size: var(--fs-2xs); color: var(--text-3); line-height: 1.6; }
.svc--img { padding: 0; gap: 0; overflow: hidden; }
.svc--img .svc__img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
.svc--img .svc__text { display: block; padding: 10px 12px 12px; }

/* request / booking cards */
.req-card { display: flex; flex-direction: column; gap: 12px; }
.req-card__code { font-size: var(--fs-2xs); color: var(--text-3); font-weight: 700; letter-spacing: 0.02em; }
.quote { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.quote--pending { background: var(--warning-soft); border-color: transparent; }
.quote--accepted { background: var(--success-soft); border-color: transparent; }
.quote__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--fs-sm); font-weight: 700; }
.quote__row b { font-size: var(--fs-lg); font-weight: 850; font-variant-numeric: tabular-nums; }

/* date strip & slots */
.dstrip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px var(--s4) 6px; margin: 0 calc(var(--s4) * -1); scroll-snap-type: x proximity; }
.dstrip::-webkit-scrollbar { display: none; }
.dday { flex: none; width: 62px; min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); color: var(--text-2); scroll-snap-align: start; transition: border-color var(--d-2), background-color var(--d-2), color var(--d-2), transform var(--d-1); }
.dday small { font-size: 11px; font-weight: 650; color: var(--text-3); }
.dday b { font-size: var(--fs-xl); font-weight: 850; line-height: 1.2; color: var(--text); }
.dday span { font-size: 10.5px; font-weight: 650; color: var(--text-3); }
.dday[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: var(--sh-brand); }
.dday[aria-pressed="true"] small, .dday[aria-pressed="true"] b, .dday[aria-pressed="true"] span { color: #fff; }
.dday:disabled { opacity: 0.4; }
.dday:active { transform: scale(0.95); }
.dday--more { justify-content: center; color: var(--brand-ink); font-weight: 750; font-size: var(--fs-xs); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot { display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 58px; justify-content: center; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; transition: border-color var(--d-2), background-color var(--d-2), color var(--d-2), transform var(--d-1); }
.slot small { font-size: 10.5px; font-weight: 650; color: var(--text-3); }
.slot[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: #fff; }
.slot[aria-pressed="true"] small { color: rgba(255, 255, 255, 0.85); }
.slot:disabled { opacity: 0.45; background: var(--surface-3); border-style: dashed; cursor: not-allowed; text-decoration: line-through; text-decoration-color: var(--text-3); }
.slot:active:not(:disabled) { transform: scale(0.95); }
.slot--male { box-shadow: inset 0 -3px 0 var(--hue-blue); }
.slot--female { box-shadow: inset 0 -3px 0 var(--hue-pink); }

/* price bar in sheets */
.pricebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: var(--fs-sm); }
.pricebar b { font-size: var(--fs-lg); font-weight: 850; font-variant-numeric: tabular-nums; }

/* ================================================================ STORE */
.store-hero { position: relative; margin: calc(var(--s3) * -1) calc(var(--gutter) * -1) 0; }
.store-hero__cover { height: 168px; background: radial-gradient(90% 120% at 100% 0%, var(--store-b, var(--hero-b)), var(--store-a, var(--hero-a))); background-size: cover; background-position: center; position: relative; }
.store-hero__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.35)); }
.store-hero__cover .pattern { position: absolute; inset: 0; opacity: 0.16; background-image: radial-gradient(#fff 1.2px, transparent 1.6px); background-size: 18px 18px; }
.store-hero__card { position: relative; z-index: 1; margin: -58px var(--gutter) 0; padding: 14px 16px 16px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--sh-3); border: 1px solid var(--line); }
.store-hero__row { display: flex; align-items: center; gap: 12px; }
.store-hero__logo { width: 64px; height: 64px; margin-top: -40px; border-radius: 20px; background: var(--surface); border: 4px solid var(--surface); box-shadow: var(--sh-2); display: grid; place-items: center; overflow: hidden; color: var(--tile); flex: none; }
.store-hero__logo > span { width: 100%; height: 100%; display: grid; place-items: center; background: var(--tile-soft); border-radius: 14px; }
.store-hero__logo img { width: 100%; height: 100%; object-fit: cover; }
.store-hero__name { font-size: var(--fs-xl); font-weight: 850; line-height: 1.3; }
.store-hero__tag { font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; }
.store-hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.store-fact { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); text-align: center; min-width: 0; }
.store-fact small { font-size: 10.5px; color: var(--text-3); font-weight: 650; white-space: nowrap; }
.store-fact b { font-size: var(--fs-xs); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.open-state { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: var(--fs-2xs); font-weight: 800; background: var(--success-soft); color: var(--success-ink); }
.open-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(14, 138, 95, 0.2); }
.open-state.is-closed { background: var(--danger-soft); color: var(--danger-ink); }
.store-bar { position: sticky; top: calc(var(--topbar-h) + var(--safe-top)); z-index: 5; margin: 0 calc(var(--gutter) * -1); padding: 10px var(--gutter) 8px; background: var(--bg); display: flex; flex-direction: column; gap: 8px; transition: box-shadow var(--d-2); }
.store-bar.is-stuck { box-shadow: 0 10px 16px -14px rgba(15, 23, 42, 0.35); }
.cat-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 var(--gutter); margin: 0 calc(var(--gutter) * -1); scroll-padding-inline: var(--gutter); }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text-2); font-size: var(--fs-sm); font-weight: 700; transition: background-color var(--d-2), color var(--d-2), border-color var(--d-2); }
.cat-tab img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.cat-tab[aria-current="true"] { background: var(--surface-inverse); border-color: var(--surface-inverse); color: var(--text-inverse); }
.menu-sec { padding-top: var(--s4); }
.menu-sec__title { font-size: var(--fs-lg); font-weight: 850; margin-bottom: 10px; display: flex; align-items: baseline; gap: 8px; }
.menu-sec__title small { font-size: var(--fs-2xs); color: var(--text-3); font-weight: 650; }
.products { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.prod { position: relative; display: flex; gap: 12px; padding: 12px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); cursor: pointer; transition: box-shadow var(--d-2), border-color var(--d-2); min-width: 0; }
.prod:hover { box-shadow: var(--sh-2); border-color: var(--line-strong); }
.prod__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.prod__title { font-weight: 800; font-size: var(--fs-md); line-height: 1.5; }
.prod__desc { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.7; }
.prod__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.prod__price { display: flex; flex-direction: column; line-height: 1.3; }
.prod__price b { font-weight: 850; font-size: var(--fs-md); font-variant-numeric: tabular-nums; }
.prod__price del { font-size: var(--fs-2xs); color: var(--text-3); font-variant-numeric: tabular-nums; }
.prod__media { position: relative; width: 112px; height: 112px; flex: none; border-radius: var(--r-md); overflow: hidden; background: linear-gradient(135deg, var(--tile-soft), var(--surface-3)); display: grid; place-items: center; color: var(--tile); }
.prod__media img { width: 100%; height: 100%; object-fit: cover; }
.prod__media .i { width: 36px; height: 36px; stroke-width: 1.4; opacity: 0.8; }
.prod__off { position: absolute; top: 6px; inset-inline-start: 6px; padding: 2px 7px; border-radius: 7px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 850; }
.prod.is-out { opacity: 0.6; }
.prod__out { font-size: var(--fs-xs); font-weight: 800; color: var(--text-3); }
.add-btn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 13px; border: 1.5px solid var(--brand-line); background: var(--surface); color: var(--brand-ink); box-shadow: var(--sh-1); transition: transform var(--d-1) var(--ease-out), background-color var(--d-2); }
.add-btn:hover { background: var(--brand-soft); }
.add-btn:active { transform: scale(0.88); }
.add-btn .i { width: 20px; height: 20px; stroke-width: 2.4; }
.prod .stepper { height: 40px; }
.cartbar { position: fixed; z-index: var(--z-cartbar); inset-inline: 12px; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 12px); max-width: 616px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 20px; background: var(--brand); color: #fff; box-shadow: var(--sh-3), var(--sh-brand); border: 0; font-weight: 800; transform: translateY(0); transition: transform var(--d-3) var(--ease-spring), opacity var(--d-2); }
.cartbar.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
.cartbar.bump { animation: pop 380ms var(--ease-out); }
.cartbar__count { min-width: 36px; height: 36px; padding: 0 8px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.2); font-size: var(--fs-md); }
.cartbar__label { flex: 1; text-align: start; font-size: var(--fs-md); }
.cartbar__total { font-variant-numeric: tabular-nums; padding-inline-end: 8px; }
@media (min-width: 1080px) { .cartbar { bottom: 24px; inset-inline-start: calc(272px + 24px); } }

/* product sheet */
.psheet__media { margin: 0 calc(var(--s4) * -1); aspect-ratio: 4 / 3; max-height: 300px; width: calc(100% + 2 * var(--s4)); background: linear-gradient(135deg, var(--tile-soft), var(--surface-3)); display: grid; place-items: center; color: var(--tile); overflow: hidden; }
.psheet__media img { width: 100%; height: 100%; object-fit: cover; }
.psheet__media .i { width: 64px; height: 64px; stroke-width: 1.2; }

/* cart */
.cart-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.cart-item + .cart-item { border-top: 1px solid var(--line); }
.cart-item__img { width: 56px; height: 56px; flex: none; border-radius: 14px; background: var(--surface-3) center / cover no-repeat; display: grid; place-items: center; color: var(--text-3); }
.cart-item__body { flex: 1; min-width: 0; }
.cart-item__title { font-weight: 750; font-size: var(--fs-sm); line-height: 1.5; }
.cart-item__price { font-size: var(--fs-xs); color: var(--text-3); font-variant-numeric: tabular-nums; }
.cart-steps { display: flex; align-items: center; gap: 6px; margin-bottom: var(--s4); }
.cart-steps span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: var(--fs-2xs); font-weight: 700; color: var(--text-3); }
.cart-steps span::before { content: attr(data-n); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-3); font-size: 12px; font-weight: 850; }
.cart-steps span.is-on { color: var(--brand-ink); }
.cart-steps span.is-on::before { background: var(--brand); color: #fff; }
.cart-steps i { flex: 1; height: 2px; background: var(--line); margin-top: -18px; }
.cart-steps i.is-on { background: var(--brand); }
.pay-options { display: grid; gap: 10px; }
.pay-opt { position: relative; display: flex; }
.pay-opt input { position: absolute; opacity: 0; }
.pay-opt span { flex: 1; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-md); border: 1.5px solid var(--line-strong); background: var(--surface); transition: border-color var(--d-2), background-color var(--d-2); }
.pay-opt span b { display: block; font-weight: 800; }
.pay-opt span small { display: block; color: var(--text-3); font-size: var(--fs-xs); }
.pay-opt input:checked + span { border-color: var(--brand); background: var(--brand-soft); }
.pay-opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.addr-card { display: flex; gap: 12px; padding: 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }

/* orders */
.order-card .steps { margin-top: 6px; }
.order-items { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-sm); }
.order-items div { display: flex; justify-content: space-between; gap: 8px; }
.order-items span { color: var(--text-2); }

/* ================================================================ misc */
.plate { direction: ltr; display: inline-flex; align-items: stretch; height: 44px; border: 2px solid #0f172a; border-radius: 8px; overflow: hidden; background: #fff; color: #0f172a; font-weight: 850; font-size: 18px; font-variant-numeric: tabular-nums; box-shadow: var(--sh-1); }
.plate__flag { width: 22px; background: linear-gradient(180deg, #16a34a 0 33%, #fff 33% 66%, #dc2626 66%); display: flex; align-items: flex-end; justify-content: center; font-size: 6px; font-weight: 800; color: #0f172a; padding-bottom: 2px; border-inline-end: 1px solid #0f172a; }
.plate__main { display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.plate__main .l { font-family: var(--font); font-size: 16px; }
.plate__iran { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 8px; border-inline-start: 2px solid #0f172a; line-height: 1; }
.plate__iran small { font-size: 8px; font-weight: 700; font-family: var(--font); }
.plate--raw .plate__main { padding: 0 14px; }
.plate-input { direction: ltr; display: grid; grid-template-columns: 1.1fr 1.2fr 1.3fr auto 1fr; align-items: center; gap: 6px; }
.plate-input .input, .plate-input .select { text-align: center; padding: 10px 6px; font-weight: 800; }
.plate-input__sep { font-weight: 800; color: var(--text-3); }
.code-card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: var(--s5); border-radius: var(--r-xl); color: #fff; background: radial-gradient(120% 120% at 100% 0%, var(--hero-b), var(--hero-a)); text-align: center; }
.code-card__code { direction: ltr; font-size: 40px; font-weight: 900; letter-spacing: 0.14em; font-variant-numeric: tabular-nums; }
.code-card small { opacity: 0.8; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: var(--fs-sm); line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble--me { align-self: flex-start; background: var(--brand); color: #fff; border-end-start-radius: 6px; }
.bubble--them { align-self: flex-end; background: var(--surface-3); color: var(--text); border-end-end-radius: 6px; }
.bubble small { display: block; margin-top: 4px; font-size: 10.5px; opacity: 0.75; }
.thread { display: flex; flex-direction: column; gap: 10px; }
.notif { display: flex; gap: 12px; padding: 14px 16px; align-items: flex-start; }
.notif.is-unread { background: linear-gradient(90deg, transparent, var(--brand-soft)); }
.notif__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); margin-top: 8px; flex: none; }
.notif__title { font-weight: 800; font-size: var(--fs-sm); line-height: 1.55; }
.notif__text { font-size: var(--fs-xs); color: var(--text-2); line-height: 1.8; margin-top: 2px; }
.notif__time { font-size: 10.5px; color: var(--text-3); margin-top: 4px; }
.day-label { font-size: var(--fs-xs); font-weight: 800; color: var(--text-3); margin: var(--s4) 4px var(--s2); }

/* account */
.profile-head { display: flex; align-items: center; gap: 14px; padding: var(--s5); border-radius: var(--r-xl); background: radial-gradient(120% 120% at 100% 0%, var(--hero-b), var(--hero-a)); color: #fff; box-shadow: var(--sh-3); }
.profile-head .avatar { border: 3px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.16); color: #fff; }
.profile-head__name { font-size: var(--fs-xl); font-weight: 850; }
.profile-head__meta { font-size: var(--fs-xs); opacity: 0.85; }
.theme-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

/* community */
.comm-hero { position: relative; overflow: hidden; padding: var(--s5); border-radius: var(--r-xl); color: #fff; background: radial-gradient(120% 140% at 0% 0%, #be185d 0%, #7c3aed 55%, #312e81 100%); box-shadow: var(--sh-3); isolation: isolate; }
.comm-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1.2px, transparent 1.6px); background-size: 20px 20px; mask-image: linear-gradient(90deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); }
.comm-hero h1 { font-size: var(--fs-2xl); font-weight: 850; }
.comm-hero p { opacity: 0.88; font-size: var(--fs-sm); margin-top: 6px; max-width: 46ch; }
.comm-hero__cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: var(--s5); }
.comm-hero__cta .btn { min-height: 46px; min-width: 0; }
.comm-hero__cta .btn:first-child { --btn-bg: #fff; --btn-fg: #4c1d95; --btn-bd: transparent; }
.seat-bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.seat-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.provider { display: flex; align-items: center; gap: 10px; }
.provider b { font-size: var(--fs-sm); font-weight: 750; }
.provider small { display: block; font-size: var(--fs-2xs); color: var(--text-3); }
.att-grid { display: grid; gap: 8px; }
.att-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); }
.att-row .segmented { padding: 3px; flex: 1 1 240px; }
.att-row .segmented button { min-height: 36px; padding: 0 8px; font-size: var(--fs-xs); }
.att-row .segmented button[data-st="present"][aria-selected="true"] { background: var(--success-soft); color: var(--success-ink); box-shadow: inset 0 0 0 1.5px var(--success); }
.att-row .segmented button[data-st="absent"][aria-selected="true"] { background: var(--danger-soft); color: var(--danger-ink); box-shadow: inset 0 0 0 1.5px var(--danger); }
.att-row .segmented button[data-st="late"][aria-selected="true"] { background: var(--warning-soft); color: var(--warning-ink); box-shadow: inset 0 0 0 1.5px var(--warning); }

/* listing detail */
.lhero { position: relative; margin: calc(var(--s3) * -1) calc(var(--gutter) * -1) 0; aspect-ratio: 16 / 9; max-height: 340px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--tile-soft, var(--brand-soft)), var(--surface-3)); color: var(--tile, var(--brand-ink)); }
.lhero img { width: 100%; height: 100%; object-fit: cover; }
.lhero > .i { width: 76px; height: 76px; stroke-width: 1.2; }
.lhero .pattern { position: absolute; inset: 0; background-image: radial-gradient(currentColor 1px, transparent 1.6px); background-size: 18px 18px; opacity: 0.14; }
@media (min-width: 760px) { .lhero { margin: 0; border-radius: var(--r-xl); } }

/* sticky action bar on detail pages */
.actionbar { position: fixed; z-index: var(--z-cartbar); inset-inline: 12px; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 12px); max-width: 616px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding-block: 10px; padding-inline: 16px 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); animation: fade-up var(--d-3) var(--ease-out) both; }
.actionbar__info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.45; }
.actionbar__info small { font-size: var(--fs-2xs); color: var(--text-3); font-weight: 650; }
.actionbar__info b { font-size: var(--fs-md); font-weight: 850; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actionbar__info b small { font-size: var(--fs-2xs); }
.actionbar .btn { flex: none; }
.view:has(.actionbar) { padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 104px); }
@media (min-width: 1080px) { .actionbar { bottom: 24px; inset-inline-start: calc(272px + 24px); } .view:has(.actionbar) { padding-bottom: 128px; } }

/* listing editor */
.climg { display: flex; align-items: center; gap: 12px; }
.climg__preview { flex: none; width: 116px; aspect-ratio: 4 / 3; border-radius: var(--r-md); display: grid; place-items: center; overflow: hidden; background: var(--surface-3); color: var(--text-3); border: 1px dashed var(--line-strong); }
.climg__preview img { width: 100%; height: 100%; object-fit: cover; }
.qb { background: var(--surface-2); }
.qb .input, .qb .select { min-height: 44px; }
.qb .check { min-height: 44px; }

/* auth */
.auth-logo { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto var(--s3); display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--brand), var(--brand-strong)); color: #fff; box-shadow: var(--sh-brand); }
.auth-logo img { width: 100%; height: 100%; object-fit: cover; }
.auth-title { text-align: center; font-size: var(--fs-xl); font-weight: 850; }
.auth-sub { text-align: center; color: var(--text-3); font-size: var(--fs-sm); margin-top: 4px; }

/* install / push offer */
.offer { position: fixed; z-index: var(--z-cartbar); inset-inline: 12px; bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 12px); max-width: 560px; margin: 0 auto; display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); animation: fade-up var(--d-3) var(--ease-out) both; }
.offer__text { flex: 1; min-width: 0; }
.offer__text b { display: block; font-size: var(--fs-sm); font-weight: 800; }
.offer__text small { display: block; font-size: var(--fs-xs); color: var(--text-3); line-height: 1.7; }
.offer__actions { display: flex; flex-direction: column; gap: 6px; }

/* jalali calendar */
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.cal__head b { font-size: var(--fs-md); font-weight: 850; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal__wd { font-size: 11px; color: var(--text-3); font-weight: 750; padding: 4px 0; }
.cal__day { aspect-ratio: 1; max-height: 48px; border-radius: 12px; border: 0; background: transparent; font-weight: 750; font-variant-numeric: tabular-nums; transition: background-color var(--d-1); }
.cal__day:hover:not(:disabled) { background: var(--surface-3); }
.cal__day.is-today { box-shadow: inset 0 0 0 1.5px var(--brand-line); color: var(--brand-ink); }
.cal__day[aria-pressed="true"] { background: var(--brand); color: #fff; }
.cal__day:disabled { opacity: 0.3; }

/* hub */
.hub-group + .hub-group { margin-top: var(--s5); }
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hub-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); color: inherit; text-align: start; min-height: 68px; transition: box-shadow var(--d-2), transform var(--d-1); }
.hub-item:hover { box-shadow: var(--sh-2); text-decoration: none; }
.hub-item:active { transform: scale(0.98); }
.hub-item b { font-size: var(--fs-sm); font-weight: 800; line-height: 1.5; }
.hub-item small { display: block; font-size: var(--fs-2xs); color: var(--text-3); line-height: 1.5; }

/* contacts */
.contact-row { display: flex; align-items: center; gap: 12px; }
.contact-row a { margin-inline-start: auto; }

/* stat mini */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { padding: 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.stat small { display: block; font-size: var(--fs-2xs); color: var(--text-3); font-weight: 650; }
.stat b { font-size: var(--fs-lg); font-weight: 850; font-variant-numeric: tabular-nums; }

/* print friendly */
@media print { .topbar, .tabbar, .cartbar, .sidenav, .offer { display: none !important; } .view { padding: 0; max-width: none; } }
