/* ═══════════════════════════════════════════════════════════════════
   CHEF NETWORK — Premium minimal design system
   ─ Жарық: ақ фон, алтын акцент, минимал типографика
   ─ Қараңғы: премиум көмір + жылы алтын
═══════════════════════════════════════════════════════════════════ */

/* ─── Design tokens ─────────────────────────────────────── */
:root {
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: "Lora", Georgia, serif;

  --color-gold: #d4a857;
  --color-gold-light: #e8c98a;
  --color-gold-deep: #a67c3d;
  --color-gold-dark: #7c5d2e;

  --ease-app: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;

  --tier-1: 18-25;
  --tier-2: 25-40;
  --tier-3: 40plus;
}

/* ─── Light theme (default) ─────────────────────────────── */
:root,
[data-theme="light"] {
  color-scheme: light;

  --bg-app: #ffffff;
  --bg-card: #ffffff;
  --bg-elevated: #f7f7f8;
  --bg-subtle: #fafafa;
  --bg-tint: #fef9ef;

  --text-primary: #14110d;
  --text-secondary: #4b4842;
  --text-muted: #767068;
  --text-on-gold: #1a0f06;
  --hero-text: #ffffff;

  --color-border: rgba(20, 17, 13, 0.045);
  --color-border-strong: rgba(20, 17, 13, 0.09);
  --color-divider: rgba(20, 17, 13, 0.04);

  --overlay-backdrop: rgba(20, 17, 13, 0.55);
  --header-bg: rgba(255, 255, 255, 0.92);

  --shadow-xs: 0 1px 2px rgba(20, 17, 13, 0.03);
  --shadow-sm: 0 4px 12px rgba(20, 17, 13, 0.05);
  --shadow-md: 0 10px 26px rgba(20, 17, 13, 0.07);
  --shadow-lg: 0 20px 48px rgba(20, 17, 13, 0.1);
  --shadow-xl: 0 32px 80px rgba(20, 17, 13, 0.14);
  --shadow-glow: 0 0 0 4px rgba(212, 168, 87, 0.14);

  --hero-scrim: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.62) 100%);
}

/* ─── Dark theme — premium ──────────────────────────────── */
[data-theme="dark"] {
  color-scheme: dark;

  --bg-app: #0a0807;
  --bg-card: #16120e;
  --bg-elevated: #1f1a14;
  --bg-subtle: #110d0a;
  --bg-tint: rgba(212, 168, 87, 0.08);

  --text-primary: #f5efe6;
  --text-secondary: rgba(245, 239, 230, 0.78);
  --text-muted: rgba(245, 239, 230, 0.55);
  --text-on-gold: #1a0f06;
  --hero-text: #fff8e8;

  --color-gold-deep: #e8c992;
  --color-border: rgba(212, 168, 87, 0.16);
  --color-border-strong: rgba(212, 168, 87, 0.32);
  --color-divider: rgba(245, 239, 230, 0.06);

  --overlay-backdrop: rgba(0, 0, 0, 0.78);
  --header-bg: rgba(10, 8, 7, 0.85);

  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.65);
  --shadow-xl: 0 36px 100px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 0 0 4px rgba(212, 168, 87, 0.22);

  --hero-scrim: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.82) 100%);
}

/* ═══ Reset & base ═══════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

html.theme-ready * {
  transition:
    background-color 0.4s var(--ease-app),
    border-color 0.4s var(--ease-app),
    color 0.35s var(--ease-app);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--bg-app);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.is-anchor-highlight {
  animation: anchor-highlight 1.1s var(--ease-app);
}

@keyframes anchor-highlight {
  0% {
    filter: drop-shadow(0 0 0 rgba(212, 168, 87, 0));
  }
  35% {
    filter: drop-shadow(0 18px 42px rgba(212, 168, 87, 0.18));
  }
  100% {
    filter: drop-shadow(0 0 0 rgba(212, 168, 87, 0));
  }
}

img,
svg,
video {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-gold-deep);
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(212, 168, 87, 0.32);
  color: var(--text-primary);
}

/* ═══ Layout primitives ══════════════════════════════════ */

.wrap {
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .wrap {
    padding: 0 1.5rem;
  }
}

.page-main {
  position: relative;
  min-height: calc(100vh - 78px);
  padding-top: 78px;
}

body[data-page="home"] .page-main {
  padding-top: calc(78px + 44px);
}

@media (max-width: 1023px) {
  body[data-page="home"] .page-main {
    padding-top: calc(78px + 40px);
  }
}

.section-pad {
  padding-block: 3rem;
}

@media (min-width: 768px) {
  .section-pad {
    padding-block: 4.5rem;
  }
}

.section-pad--alt {
  background: var(--bg-subtle);
}

.section-pad--tight {
  padding-block: 2rem;
}

.cabinet-main {
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.font-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.empty-state {
  padding: 3rem 1.25rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  color: var(--text-muted);
}


.empty-state__title {
  margin: 0;
  color: var(--text-primary);
  font-weight: 600;
}

.empty-state__desc {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
}

.empty-state > .btn-ghost,
.empty-state > .btn-gold,
.empty-state > a.btn-ghost,
.empty-state > a.btn-gold {
  margin-top: 1rem;
}

/* ═══ Section heading ════════════════════════════════════ */

.section-head {
  margin-bottom: 2rem;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.6vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.section-head p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-head .badge {
  margin-bottom: 0.75rem;
}

.section-head__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gold-deep);
  white-space: nowrap;
}

.section-head__link:hover {
  color: var(--color-gold);
}

/* ═══ Buttons ════════════════════════════════════════════ */

.btn-gold,
.btn-ghost,
.btn-soft {
  --btn-pad-y: 0.75rem;
  --btn-pad-x: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.18s var(--ease-app),
    box-shadow 0.22s var(--ease-app),
    background 0.22s var(--ease-app),
    border-color 0.22s var(--ease-app),
    color 0.22s var(--ease-app);
}

.btn-gold {
  background: linear-gradient(135deg, #f3d382 0%, #d7aa52 58%, #bd9146 100%);
  color: var(--text-on-gold);
  border-color: rgba(166, 124, 61, 0.18);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 6px 14px rgba(166, 124, 61, 0.22);
}

.btn-gold:hover {
  filter: brightness(1.035);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 10px 20px rgba(166, 124, 61, 0.28);
  color: var(--text-on-gold);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-gold:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

.btn-ghost {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  background: var(--bg-card);
  border-color: var(--color-gold);
  color: var(--color-gold-deep);
  transform: translateY(-1px);
}

.btn-soft {
  background: var(--bg-tint);
  color: var(--color-gold-deep);
  border-color: rgba(212, 168, 87, 0.25);
}

.btn-soft:hover {
  background: rgba(212, 168, 87, 0.16);
  border-color: var(--color-gold);
}

.btn-gold--sm,
.btn-ghost--sm,
.btn-soft--sm {
  --btn-pad-y: 0.5rem;
  --btn-pad-x: 0.875rem;
  font-size: 0.8125rem;
}

.btn-gold--lg,
.btn-ghost--lg {
  --btn-pad-y: 0.95rem;
  --btn-pad-x: 1.5rem;
  font-size: 0.9375rem;
}

.btn-block {
  width: 100%;
}

/* Icon buttons */
.icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--bg-card);
  color: var(--text-primary);
  position: relative;
  transition:
    background 0.2s var(--ease-app),
    border-color 0.2s var(--ease-app),
    color 0.2s var(--ease-app),
    transform 0.18s var(--ease-app);
}

.icon-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-deep);
  transform: translateY(-1px);
}

.icon-btn:active {
  transform: translateY(0) scale(0.97);
}

/* ═══ Header ═════════════════════════════════════════════ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-divider);
}

.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}

.site-header__brand-col {
  flex: 1;
  min-width: 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
}

.site-brand:hover {
  color: var(--text-primary);
}

.site-brand__logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
}

.site-brand__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

@media (max-width: 480px) {
  .site-brand__name {
    display: none;
  }
}

.site-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--color-border);
  transition: all 0.2s var(--ease-app);
}

.site-back-link:hover {
  color: var(--text-primary);
  border-color: var(--color-gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-actions .btn-gold {
  box-shadow: none;
}

.header-actions .btn-gold:hover {
  box-shadow: var(--shadow-sm);
}

.site-header__nav-bar {
  border-top: 1px solid var(--color-divider);
  background: var(--bg-card);
}

.site-nav--bar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-block: 0.5rem;
}

.site-nav--bar::-webkit-scrollbar {
  display: none;
}

.site-nav__link {
  position: relative;
  flex-shrink: 0;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.2s var(--ease-app);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0.25rem;
  height: 2px;
  border-radius: 999px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease-app);
}

.site-nav__link:hover {
  color: var(--text-primary);
}

.site-nav__link.is-active {
  color: var(--text-primary);
}

.site-nav__link.is-active::after,
.site-nav__link:hover::after {
  transform: scaleX(1);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--color-gold);
  color: var(--text-on-gold);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-card);
  animation: badge-pop 0.35s var(--ease-bounce);
}

@keyframes badge-pop {
  0% {
    transform: scale(0);
  }
  60% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@media (min-width: 1024px) {
  .site-drawer-btn {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .site-header__nav-bar {
    display: none !important;
  }
}

@media (max-width: 720px) {
  .site-auth-register {
    display: none !important;
  }
}

@media (max-width: 520px) {
  .site-auth-login {
    display: none !important;
  }
}

/* ═══ Drawer (mobile menu) ═══════════════════════════════ */

body.is-drawer-open {
  overflow: hidden;
}

body.is-overlay-open {
  overflow: hidden;
  touch-action: none;
}

.site-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s var(--ease-app),
    visibility 0.28s var(--ease-app);
}

.site-drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-drawer__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(16, 18, 24, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.28s var(--ease-app);
}

.site-drawer.is-open .site-drawer__backdrop {
  opacity: 1;
}

.site-drawer__panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(92vw, 360px);
  background: #ffffff;
  border-left: 1px solid rgba(20, 17, 13, 0.06);
  padding:
    max(0.75rem, env(safe-area-inset-top))
    1rem
    max(1rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transform: translateX(100%);
  transition: transform 0.34s var(--ease-app);
  box-shadow: -20px 0 50px rgba(20, 17, 13, 0.14);
  overflow: hidden;
}

.site-drawer.is-open .site-drawer__panel {
  transform: translateX(0);
}

.site-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(20, 17, 13, 0.06);
  flex-shrink: 0;
}

.site-drawer__brand {
  min-width: 0;
}

.site-drawer__head .site-brand__logo-wrap {
  width: 104px;
  height: 48px;
  box-shadow: none;
}

.site-drawer__close {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid rgba(20, 17, 13, 0.08);
  border-radius: 999px;
  background: #f7f7f8;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s var(--ease-app),
    background 0.2s var(--ease-app),
    border-color 0.2s var(--ease-app),
    color 0.2s var(--ease-app);
}

.site-drawer__close:active {
  transform: scale(0.94);
}

.site-drawer__close:hover {
  background: rgba(212, 168, 87, 0.14);
  border-color: rgba(212, 168, 87, 0.38);
  color: var(--color-gold-deep);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 0.1rem;
}

.drawer-nav__link {
  min-height: 52px;
  padding: 0.62rem 0.72rem;
  border-radius: 16px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid transparent;
  text-align: left;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 0.7rem;
  transition:
    background 0.2s var(--ease-app),
    border-color 0.2s var(--ease-app),
    color 0.2s var(--ease-app);
}

.drawer-nav__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-deep);
  background: rgba(212, 168, 87, 0.1);
}

.drawer-nav__text {
  min-width: 0;
  line-height: 1.2;
}

.drawer-nav__link > .cn-icon:last-child {
  color: var(--text-muted);
  justify-self: end;
  opacity: 0.55;
  transition:
    transform 0.2s var(--ease-app),
    opacity 0.2s var(--ease-app);
}

.drawer-nav__link:hover,
.drawer-nav__link.is-active {
  background: rgba(212, 168, 87, 0.08);
  border-color: rgba(212, 168, 87, 0.18);
  color: var(--text-primary);
}

.drawer-nav__link.is-active {
  background: linear-gradient(135deg, rgba(212, 168, 87, 0.14), rgba(212, 168, 87, 0.05));
  border-color: rgba(212, 168, 87, 0.26);
}

.drawer-nav__link.is-active .drawer-nav__icon {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  color: var(--text-on-gold);
}

.drawer-nav__link:hover > .cn-icon:last-child,
.drawer-nav__link.is-active > .cn-icon:last-child {
  opacity: 1;
  transform: translateX(2px);
}

.drawer-nav__foot {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(20, 17, 13, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

.drawer-nav__cta {
  min-height: 46px !important;
  border-radius: 14px !important;
  justify-content: center !important;
}

@media (max-width: 1023px) {
  .site-drawer-btn {
    background: linear-gradient(135deg, #ffe59a 0%, #d7aa52 65%, #b88435 100%) !important;
    color: var(--text-on-gold) !important;
    border: 0 !important;
    box-shadow: 0 6px 16px rgba(212, 168, 87, 0.22) !important;
  }

  .site-drawer-btn:hover {
    box-shadow: 0 8px 20px rgba(212, 168, 87, 0.3) !important;
  }
}

[data-theme="dark"] .site-drawer__panel {
  background: #14110e;
  border-left-color: rgba(212, 168, 87, 0.14);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.48);
}

[data-theme="dark"] .site-drawer__head {
  border-bottom-color: rgba(212, 168, 87, 0.12);
}

[data-theme="dark"] .site-drawer__close {
  background: rgba(245, 239, 230, 0.07);
  border-color: rgba(245, 239, 230, 0.1);
  color: var(--text-primary);
}

[data-theme="dark"] .drawer-nav__link {
  color: rgba(245, 239, 230, 0.92);
}

[data-theme="dark"] .drawer-nav__icon {
  background: rgba(212, 168, 87, 0.14);
  color: var(--color-gold);
}

[data-theme="dark"] .drawer-nav__link:hover,
[data-theme="dark"] .drawer-nav__link.is-active {
  background: rgba(212, 168, 87, 0.12);
  border-color: rgba(212, 168, 87, 0.22);
}

[data-theme="dark"] .drawer-nav__foot {
  border-top-color: rgba(212, 168, 87, 0.12);
}

@media (max-width: 420px) {
  .site-drawer__panel {
    width: min(94vw, 340px);
    padding-inline: 0.85rem;
  }

  .site-drawer__head .site-brand__logo-wrap {
    width: 92px;
    height: 42px;
  }

  .drawer-nav__link {
    min-height: 50px;
    padding: 0.55rem 0.62rem;
    border-radius: 14px;
    font-size: 0.9rem;
  }

  .drawer-nav__icon {
    width: 36px;
    height: 36px;
  }
}

/* ═══ Hero ═══════════════════════════════════════════════ */

.hero-wrap {
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .hero-wrap {
    padding-top: 2rem;
  }
}

.hero-banner {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #2a221a 0%, #14110d 100%);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.hero-banner__media {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: min(64vw, 360px);
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-banner__media {
    aspect-ratio: 21 / 9;
    max-height: 480px;
  }
}

@media (min-width: 1280px) {
  .hero-banner__media {
    aspect-ratio: 24 / 9;
    max-height: 560px;
  }
}

.hero-banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-banner__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--hero-scrim);
}

.hero-banner__panel {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.5rem 1.5rem 1.75rem;
  color: var(--hero-text);
}

@media (min-width: 768px) {
  .hero-banner__panel {
    padding: 2.5rem 3rem 2.75rem;
  }
}

.hero-banner__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hero-text);
  backdrop-filter: blur(6px);
}

.hero-banner__eyebrow .cn-icon {
  color: var(--color-gold-light);
}

.hero-banner__title {
  margin: 0;
  max-width: 38rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--hero-text);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-banner__title .hero-accent {
  color: var(--color-gold-light);
  font-style: italic;
}

.hero-banner__desc {
  margin: 0.85rem 0 0;
  max-width: 32rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.hero-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-banner__ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--hero-text);
  backdrop-filter: blur(8px);
}

.hero-banner__ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--color-gold);
  color: #fff;
}

.hero-banner__dots {
  position: absolute;
  bottom: 0.875rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

@media (min-width: 768px) {
  .hero-banner__dots {
    bottom: 1.25rem;
  }
}

.hero-dot {
  height: 6px;
  width: 6px;
  border-radius: 999px;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition:
    width 0.32s var(--ease-app),
    background 0.32s var(--ease-app);
}

.hero-dot.is-active {
  width: 24px;
  background: var(--color-gold);
}

.hero-dot:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.7);
}

/* ═══ Cards ══════════════════════════════════════════════ */

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition:
    transform 0.28s var(--ease-app),
    box-shadow 0.28s var(--ease-app),
    border-color 0.28s var(--ease-app);
}

.card--hover {
  cursor: pointer;
}

.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}

/* Glass panel (modals, overlays) */
.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Feature cards (home → clients) */
.feature-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition:
    transform 0.26s var(--ease-app),
    box-shadow 0.26s var(--ease-app),
    border-color 0.26s var(--ease-app);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--color-border-strong);
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  background: var(--bg-tint);
  color: var(--color-gold-deep);
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ═══ Forms ══════════════════════════════════════════════ */

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-label .cn-icon {
  color: var(--color-gold-deep);
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 0.9375rem;
  outline: none;
  transition:
    border-color 0.22s var(--ease-app),
    background 0.22s var(--ease-app),
    box-shadow 0.22s var(--ease-app);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:hover {
  background: var(--bg-card);
}

.form-input:focus {
  background: var(--bg-card);
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 87, 0.12);
}

.form-input[type="password"] {
  font-family: monospace;
  letter-spacing: 0.1em;
}

.form-input[type="password"]:placeholder-shown {
  font-family: inherit;
  letter-spacing: normal;
}

.form-input[type="search"] {
  padding-right: 2.7rem;
}

.form-input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 17, 13, 0.14);
  background-color: #6b6b6b;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6 6 18' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.72rem;
  cursor: pointer;
  opacity: 0.9;
  transition: transform 0.16s var(--ease-app), opacity 0.16s var(--ease-app), background-color 0.16s var(--ease-app);
}

.form-input[type="search"]::-webkit-search-cancel-button:hover {
  opacity: 1;
  background-color: #545454;
  transform: scale(1.04);
}

.form-input[type="search"]::-webkit-search-cancel-button:active {
  transform: scale(0.92);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-error {
  font-size: 0.8125rem;
  color: #d44a3a;
  padding: 0.65rem 0.85rem;
  background: rgba(212, 74, 58, 0.08);
  border: 1px solid rgba(212, 74, 58, 0.22);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.form-error.hidden {
  display: none;
}

.link-muted {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
  padding: 0.5rem;
  transition: color 0.2s;
}

.link-muted:hover {
  color: var(--color-gold-deep);
}

/* Auth modal — special premium look */
.auth-modal {
  max-width: 26rem;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xl);
}

.auth-modal__hero {
  position: relative;
  padding: 1.5rem;
  background: linear-gradient(135deg, #2a221a 0%, #14110d 100%);
  color: var(--hero-text);
  text-align: center;
  overflow: hidden;
}

.auth-modal__hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 87, 0.22) 0%, transparent 65%);
  pointer-events: none;
  animation: auth-hero-glow-a 6s ease-in-out infinite;
}

.auth-modal__hero::after {
  content: "";
  position: absolute;
  left: -18%;
  bottom: -35%;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 87, 0.16) 0%, transparent 68%);
  pointer-events: none;
  animation: auth-hero-glow-b 7.5s ease-in-out infinite;
}

.auth-modal__logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 70px;
  border-radius: 0 150px 0 150px;
  background: transparent;
  margin-bottom: 0.85rem;
}

.auth-modal__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0 150px 0 150px;
}

.auth-modal__title {
  position: relative;
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--hero-text);
}

.auth-modal__subtitle {
  position: relative;
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

.auth-modal__body {
  padding: 1.75rem 1.5rem;
  background: var(--bg-card);
  position: relative;
}

.auth-modal__body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 87, 0.28), transparent);
  pointer-events: none;
}

.auth-modal--standalone .auth-modal__body .form-field {
  animation: auth-field-in 0.45s var(--ease-app) both;
}

.auth-modal--standalone .auth-modal__body .form-field:nth-child(1) { animation-delay: 0.12s; }
.auth-modal--standalone .auth-modal__body .form-field:nth-child(2) { animation-delay: 0.18s; }
.auth-modal--standalone .auth-modal__body .form-field:nth-child(3) { animation-delay: 0.24s; }
.auth-modal--standalone .auth-modal__body .form-field:nth-child(4) { animation-delay: 0.3s; }
.auth-modal--standalone .auth-modal__body .form-field:nth-child(5) { animation-delay: 0.36s; }

.auth-modal--standalone .auth-modal__body .form-error,
.auth-modal--standalone .auth-modal__body .btn-gold,
.auth-modal--standalone .auth-modal__body .auth-modal__divider,
.auth-modal--standalone .auth-modal__body .btn-ghost {
  animation: auth-field-in 0.45s var(--ease-app) both;
  animation-delay: 0.42s;
}

.auth-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.9);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: all 0.2s var(--ease-app);
}

.auth-modal__close:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.auth-page__topbar {
  display: none;
  flex-shrink: 0;
  padding: max(0.55rem, env(safe-area-inset-top)) 0.85rem 0.55rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--color-divider);
}

.auth-page__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.18s var(--ease-app),
    border-color 0.18s var(--ease-app),
    color 0.18s var(--ease-app),
    background 0.18s var(--ease-app);
}

.auth-page__back:hover {
  color: var(--text-primary);
  border-color: var(--color-gold);
  background: var(--bg-card);
}

.auth-modal__close--desktop {
  display: inline-flex;
}

/* Standalone auth pages (/login, /register) */
.auth-standalone {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--bg-app);
}

.auth-modal--standalone {
  width: min(100%, 28rem);
}

.auth-modal--standalone .auth-page__topbar {
  display: block;
}

.auth-modal--standalone .auth-modal__close--desktop {
  display: none;
}

@media (max-width: 768px) {
  body[data-page="auth-login"],
  body[data-page="auth-register"] {
    overflow: hidden;
    height: 100svh;
    max-height: 100svh;
  }

  body[data-page="auth-login"] #app.cabinet-main,
  body[data-page="auth-register"] #app.cabinet-main {
    min-height: 0;
    height: 100svh;
    max-height: 100svh;
    overflow: hidden;
    padding: 0;
  }

  .auth-standalone {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
    min-height: 100svh;
    height: 100%;
    overflow: hidden;
    background: var(--bg-card);
    animation: auth-page-bg-in 0.35s var(--ease-app) both;
  }

  .auth-modal--standalone {
    width: 100vw;
    max-width: 100vw;
    height: 100svh;
    max-height: 100svh;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    display: grid;
    grid-template-rows: auto auto 1fr;
    animation: auth-page-shell-in 0.48s var(--ease-bounce) both;
  }

  .auth-modal--standalone .auth-page__topbar {
    animation: auth-part-slide-in 0.4s var(--ease-app) 0.06s both;
  }

  .auth-modal--standalone .auth-modal__hero {
    animation: auth-part-slide-in 0.45s var(--ease-app) 0.1s both;
  }

  .auth-modal--standalone .auth-modal__body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: max(1.75rem, env(safe-area-inset-bottom));
  }

  #auth-login .auth-page__topbar,
  #auth-register .auth-page__topbar {
    display: block;
  }

  #auth-login .auth-modal__close--desktop,
  #auth-register .auth-modal__close--desktop {
    display: none;
  }

  #auth-login .auth-modal,
  #auth-register .auth-modal {
    grid-template-rows: auto auto 1fr;
  }
}

.auth-modal__divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.auth-modal__divider::before,
.auth-modal__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-divider);
}

/* ═══ Modal ══════════════════════════════════════════════ */

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-root.is-closing {
  pointer-events: none;
}

.modal-root[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: var(--overlay-backdrop);
  backdrop-filter: blur(6px);
  cursor: pointer;
  animation: backdrop-in 0.32s var(--ease-app);
}

.modal-root.is-closing .modal-backdrop {
  opacity: 0;
  transition: opacity 0.26s var(--ease-app);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 32rem;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  animation: modal-in 0.4s var(--ease-app);
}

.modal-root.is-closing .modal-panel,
.modal-root.is-closing .auth-modal,
.modal-root.is-closing .image-viewer,
.modal-root.is-closing .cart-confirm {
  opacity: 0;
  transform: translateY(34px) scale(0.98);
  transition:
    opacity 0.26s var(--ease-app),
    transform 0.26s var(--ease-app);
}

.modal-panel--wide {
  max-width: 48rem;
}

.top3-profile-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--bg-card);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-app),
    border-color 0.2s var(--ease-app),
    box-shadow 0.2s var(--ease-app),
    background 0.2s var(--ease-app);
}

.top3-profile-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 168, 87, 0.38);
  background: linear-gradient(135deg, rgba(212, 168, 87, 0.08), var(--bg-card) 62%);
  box-shadow: 0 16px 36px rgba(36, 25, 5, 0.08);
}

.top3-profile-card:active {
  transform: translateY(0) scale(0.99);
}

.top3-profile-card__arrow {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-deep);
  background: rgba(212, 168, 87, 0.12);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-app);
}

.top3-profile-card:hover .top3-profile-card__arrow {
  transform: translateX(3px);
}

@keyframes backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--color-divider);
}

.modal-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-head p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.modal-body {
  overflow-y: auto;
  padding: 1.25rem 1.5rem 1.5rem;
}

.modal-close {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s var(--ease-app);
}

.modal-close:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-deep);
}

/* Product detail popup */
.product-modal {
  max-width: min(920px, calc(100vw - 2rem));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  padding: 0;
  overflow: hidden;
}

.product-modal__close {
  top: 1rem;
  right: 1rem;
  position: absolute;
  z-index: 8;
  background: rgba(20, 17, 13, 0.72);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.product-modal__close:hover {
  background: rgba(20, 17, 13, 0.9);
  color: #fff;
  border-color: rgba(212, 168, 87, 0.75);
}

.product-modal__media {
  min-height: 420px;
  background: var(--bg-elevated);
  overflow: hidden;
  cursor: zoom-in;
}

.product-modal__media img,
.product-modal__placeholder {
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.product-modal__media img {
  object-fit: cover;
}

/* Fullscreen image preview (Kaspi-like) */
.image-viewer-root {
  z-index: 320;
}

.image-viewer__backdrop {
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.image-viewer {
  position: relative;
  z-index: 1;
  width: min(96vw, 980px);
  height: min(88vh, 760px);
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.image-viewer img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.image-viewer p {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  margin: 0;
  max-width: min(90vw, 640px);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  font-size: 0.875rem;
  text-align: center;
  backdrop-filter: blur(8px);
}

.image-viewer__close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: all 0.2s var(--ease-app);
}

.image-viewer__close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.04);
}

.product-modal__placeholder {
  display: grid;
  place-items: center;
  color: var(--text-muted);
  background:
    radial-gradient(circle at 50% 20%, rgba(212, 168, 87, 0.14), transparent 42%),
    var(--bg-elevated);
}

.product-modal__body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.product-modal__desc {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.product-modal__meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem;
  border-radius: 18px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.product-modal__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.product-modal__meta .cn-icon {
  color: var(--color-gold-deep);
}

.product-modal__bottom {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr minmax(210px, 0.95fr);
  gap: 1rem;
  align-items: end;
  padding-top: 1rem;
}

.product-modal__label {
  margin: 0 0 0.15rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-modal__price {
  margin: 0;
  color: var(--color-gold-deep);
  font-size: 1.7rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.product-modal__prices {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.product-modal__old-price {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  font-variant-numeric: tabular-nums;
}

.product-modal__cta .btn-gold,
.product-modal__cta .product-card__qty {
  min-height: 50px;
}

@media (max-width: 760px) {
  .product-modal {
    grid-template-columns: 1fr;
    max-height: 92vh;
  }

  .product-modal__media,
  .product-modal__media img,
  .product-modal__placeholder {
    min-height: 260px;
    max-height: 320px;
  }

  .product-modal__body {
    padding: 1.35rem;
  }

  .product-modal__bottom {
    grid-template-columns: 1fr;
  }
}

/* ═══ Cart modal ═════════════════════════════════════════ */

.cart-modal-anchor {
  pointer-events: none;
  display: none;
  position: fixed;
  inset: 0;
  z-index: 240;
  align-items: flex-end;
  justify-content: center;
}

.cart-modal-anchor.is-open {
  pointer-events: auto;
  display: flex;
  padding: 1rem;
}

@media (min-width: 640px) {
  .cart-modal-anchor.is-open {
    align-items: center;
  }
}

@media (max-width: 520px) {
  .cart-modal-anchor.is-open {
    align-items: flex-end;
    padding: 0.75rem;
  }

  .cart-modal {
    max-height: calc(100vh - 1.5rem);
    border-radius: 24px;
  }
}

.cart-modal {
  pointer-events: auto;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid rgba(20, 17, 13, 0.06);
  border-radius: 26px;
  box-shadow: 0 32px 90px rgba(20, 17, 13, 0.22);
  animation: cart-slide-in 0.42s var(--ease-app);
  overflow: hidden;
}

@media (min-width: 640px) {
  .cart-modal {
    animation-name: modal-in;
  }
}

@keyframes cart-slide-in {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.35rem 1rem;
  border-bottom: none;
  flex-shrink: 0;
}

.cart-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.cart-head p {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.2rem 1rem 0.85rem;
  min-height: 0;
}

.cart-empty {
  padding: 2.75rem 1.5rem 3rem;
  text-align: center;
  color: var(--text-muted);
}

.cart-empty .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.cart-line {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bg-elevated) 72%, var(--bg-card));
  margin-bottom: 0.6rem;
}

.cart-line:last-child {
  margin-bottom: 0;
}

.cart-line__media {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-elevated);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.cart-line__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-line__info strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
}

.cart-line__price {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.cart-line__qty {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.qty-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--bg-elevated);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease-app);
}

.qty-btn:hover {
  background: var(--bg-card);
  color: var(--color-gold-deep);
}

.qty-btn:active {
  transform: scale(0.92);
}

.cart-line__count {
  min-width: 2rem;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cart-foot {
  padding: 1rem 1.35rem 1.25rem;
  border-top: 1px solid var(--color-divider);
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg-card) 100%);
  flex-shrink: 0;
}

.cart-foot__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 0.85rem;
  font-size: 1rem;
}

.cart-foot .btn-gold {
  min-height: 46px;
  border-radius: 16px;
  box-shadow: none;
}

/* Cart page (separate route /cart) */
.cart-page__panel {
  border: 1px solid rgba(20, 17, 13, 0.08);
  border-radius: 24px;
  background: var(--bg-card);
  box-shadow: 0 22px 60px rgba(20, 17, 13, 0.08);
  overflow: hidden;
}

.cart-page__body {
  max-height: min(64vh, 680px);
}

.cart-page__foot {
  border-top: 1px solid var(--color-divider);
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

/* Cart page: no transform ancestors so checkout bar can pin to viewport */
body[data-page="cart"] #app {
  transform: none !important;
  filter: none !important;
  animation: none !important;
}

body[data-page="cart"] .page-main {
  padding-bottom: calc(8.5rem + env(safe-area-inset-bottom, 0px));
}

.section-pad--cart {
  padding-block: 1.25rem 0.5rem;
}

@media (max-width: 768px) {
  body[data-page="cart"] #site-footer {
    display: none !important;
  }

  body[data-page="cart"] .section-pad--cart {
    padding-block: 0.85rem 0;
  }

  .cart-page__panel {
    border-radius: 18px;
  }

  .cart-page__body {
    max-height: none;
    padding-bottom: 0.5rem;
  }

  .cart-page__foot {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 220 !important;
    margin: 0 !important;
    border-top: 1px solid var(--color-divider) !important;
    border-radius: 18px 18px 0 0 !important;
    box-shadow: 0 -10px 28px rgba(20, 17, 13, 0.1) !important;
    padding: 0.85rem 1rem max(0.9rem, env(safe-area-inset-bottom)) !important;
    background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg-card) 100%) !important;
  }

  [data-theme="dark"] .cart-page__foot {
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.35) !important;
  }
}

.cart-line__media img {
  cursor: zoom-in;
  transition: transform 0.22s var(--ease-app);
}

.cart-line__media:hover img {
  transform: scale(1.06);
}

.cart-confirm {
  max-width: 28rem;
  padding: 1.6rem 1.5rem 1.5rem;
  align-items: stretch;
  border-radius: 26px;
  overflow: hidden;
}

.cart-confirm__icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.9rem;
  color: var(--color-gold-deep);
  background: var(--bg-tint);
}

.cart-confirm h2 {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.cart-confirm > p {
  margin: 0.45rem 0 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cart-confirm__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cart-confirm__item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: var(--bg-subtle);
}

.cart-confirm__item span {
  min-width: 0;
  color: var(--text-secondary);
}

.cart-confirm__item strong {
  white-space: nowrap;
  font-size: 0.875rem;
}

.cart-confirm__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-divider);
}

.cart-confirm__total strong {
  color: var(--color-gold-deep);
  font-size: 1.25rem;
}

.cart-confirm__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

@media (max-width: 420px) {
  .cart-confirm__actions {
    grid-template-columns: 1fr;
  }
}

.cart-foot__total strong {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gold-deep);
}

/* ═══ Toast ══════════════════════════════════════════════ */

.toast-root {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: min(100vw - 2rem, 380px);
}

.toast {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  animation: toast-in 0.4s var(--ease-app);
}

.toast strong {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.toast p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.toast.is-leaving {
  animation: toast-out 0.28s var(--ease-app) forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

/* ═══ Badge ══════════════════════════════════════════════ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--bg-tint);
  color: var(--color-gold-deep);
  border: 1px solid rgba(212, 168, 87, 0.25);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-theme="dark"] .badge {
  background: rgba(212, 168, 87, 0.1);
  color: var(--color-gold);
}

/* ═══ Footer ═════════════════════════════════════════════ */

.site-footer {
  position: relative;
  z-index: 10;
  margin-top: 5rem;
  padding-top: 1.5rem;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(212, 168, 87, 0.08), transparent 65%),
    var(--bg-app);
}

.site-footer__panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(320px, 1fr);
  gap: 1rem;
  padding: 1rem;
  border-radius: 30px;
  background: linear-gradient(135deg, #1d1711 0%, #0f0c09 100%);
  border: 1px solid rgba(212, 168, 87, 0.18);
  box-shadow: 0 26px 70px rgba(20, 17, 13, 0.12);
}

.site-footer__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(212, 168, 87, 0.22), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(212, 168, 87, 0.1), transparent 36%);
  pointer-events: none;
}

.site-footer__brand-card,
.site-footer__grid {
  position: relative;
  z-index: 1;
}

.site-footer__brand-card {
  padding: 1.5rem;
  color: #fff8e8;
}

.site-footer__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 768px) {
  .site-footer__panel {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

.site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.site-footer__brand-row img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.site-footer__brand-row .site-footer__brand {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
}

.site-footer__desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 248, 232, 0.7);
  max-width: 22rem;
  margin: 0 0 1.25rem;
}

.site-footer__social {
  display: flex;
  gap: 0.5rem;
}

.site-footer__social .icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff8e8;
}

.site-footer__social .icon-btn:hover {
  background: rgba(212, 168, 87, 0.18);
  border-color: rgba(212, 168, 87, 0.5);
  color: var(--color-gold-light);
}

.site-footer__mini-card {
  padding: 1.25rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-heading {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 248, 232, 0.66);
  margin: 0 0 1rem;
}

.site-footer__nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-link {
  font-size: 0.9rem;
  color: rgba(255, 248, 232, 0.82);
  transition:
    color 0.2s var(--ease-app),
    transform 0.2s var(--ease-app);
}

.footer-link:hover {
  color: var(--color-gold-light);
}

.site-footer__credit {
  padding: 1.25rem 1rem;
  text-align: center;
  background: transparent;
}

.footer-credit__made {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-credit__made + .footer-credit__made {
  margin-top: 0.35rem;
}

.footer-credit__made--team strong {
  color: var(--color-gold-deep);
  font-weight: 700;
}

/* ═══ Home: Clients section ══════════════════════════════ */

.clients-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 900px) {
  .clients-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 3.5rem;
  }
}

.clients-title {
  margin: 0.75rem 0 1rem;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  line-height: 1.2;
}

.clients-title em {
  color: var(--color-gold-deep);
  font-style: italic;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.feature-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ═══ Stats ══════════════════════════════════════════════ */

.site-live-stats {
  margin-top: 2.5rem;
}

.site-live-stats__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 580px) {
  .site-live-stats__grid {
    grid-template-columns: 1fr;
  }
}

.site-live-stats__card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: all 0.28s var(--ease-app);
}

.site-live-stats__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(212, 168, 87, 0.12), transparent 46%);
  opacity: 0;
  transition: opacity 0.28s var(--ease-app);
}

.site-live-stats__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--color-gold);
}

.site-live-stats__card:hover::before {
  opacity: 1;
}

.site-live-stats__icon {
  position: relative;
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  color: var(--color-gold-deep);
  background: linear-gradient(135deg, rgba(212, 168, 87, 0.16), rgba(255, 248, 230, 0.92));
  border: 1px solid rgba(212, 168, 87, 0.18);
}

.site-live-stats__value {
  position: relative;
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  background: linear-gradient(120deg, var(--color-gold-deep), var(--color-gold) 60%, var(--text-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.25rem;
}

.site-live-stats__title {
  position: relative;
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.site-live-stats__desc {
  position: relative;
  display: block;
  margin-top: 0.55rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

/* ═══ Podium (Diamond) ═══════════════════════════════════ */

.podium-block {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #1f1812 0%, #0d0a08 100%);
  border: 1px solid rgba(212, 168, 87, 0.22);
  box-shadow: var(--shadow-lg);
  color: var(--hero-text);
}

.podium-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(212, 168, 87, 0.16) 0%, transparent 60%);
  pointer-events: none;
}

.podium-block__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

.podium-block__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(13, 10, 8, 0.6) 100%);
}

.podium-block__inner {
  position: relative;
  z-index: 1;
  padding: 2.25rem 1rem 2.5rem;
}

.podium-block__eyebrow {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.podium-block__title {
  text-align: center;
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  margin: 0 0 2rem;
  color: var(--hero-text);
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  align-items: end;
  max-width: 52rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .podium-grid {
    gap: 1.5rem;
  }
}

.podium-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.5rem;
}

.podium-slot--center {
  background: linear-gradient(180deg, rgba(212, 168, 87, 0.12) 0%, transparent 100%);
  border-radius: var(--radius-md);
  padding: 1.25rem 0.5rem 1.5rem;
  margin-top: -1.5rem;
}

.podium-slot__place {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold-light);
  margin: 0 0 0.75rem;
}

.podium-slot__name {
  margin: 0.85rem 0 0.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--hero-text);
}

.podium-slot__pts {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-gold-light);
}

.podium-block__actions {
  text-align: center;
  margin-top: 2rem;
}

/* ═══ Avatar ═════════════════════════════════════════════ */

.avatar {
  display: inline-block;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(212, 168, 87, 0.32);
}

.avatar--lg {
  width: 4rem;
  height: 4rem;
}

.avatar--xl {
  width: 5.5rem;
  height: 5.5rem;
  border-width: 3px;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 4px rgba(212, 168, 87, 0.15);
}

.avatar-fallback {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.95) 0 8%, transparent 28%),
    linear-gradient(180deg, #eef0f2 0%, #d9dde1 100%);
  color: rgba(122, 130, 137, 0.9);
  border: 2px solid rgba(212, 168, 87, 0.28);
}

.avatar-fallback__person {
  position: absolute;
  inset: 0;
  color: currentColor;
}

.avatar-fallback__person::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 24%;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
}

.avatar-fallback__person::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8%;
  width: 68%;
  height: 45%;
  border-radius: 999px 999px 42% 42%;
  background: currentColor;
  transform: translateX(-50%);
}

/* ═══ Leagues ════════════════════════════════════════════ */

.leagues-stack {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .leagues-stack {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .leagues-stack {
    grid-template-columns: repeat(3, 1fr);
  }
}

.league-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-subtle) 100%);
  border: 1px solid rgba(20, 17, 13, 0.04);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(20, 17, 13, 0.04);
  transition:
    transform 0.28s var(--ease-app),
    box-shadow 0.28s var(--ease-app),
    border-color 0.28s var(--ease-app);
}

.league-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(20, 17, 13, 0.065);
  border-color: rgba(20, 17, 13, 0.075);
}

.league-card__head {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--color-divider);
  background: linear-gradient(135deg, color-mix(in srgb, var(--league-accent, var(--color-gold)) 10%, transparent), transparent);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.league-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--league-accent, var(--color-gold)) 16%, transparent);
  color: var(--league-accent, var(--color-gold-deep));
  flex-shrink: 0;
}

.league-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.league-card__sub {
  margin: 0.1rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.league-card__body {
  overflow-x: auto;
}

.league-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.league-table thead tr {
  background: var(--bg-subtle);
}

.league-table th {
  padding: 0.65rem 1.25rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--color-divider);
}

.league-table td {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--color-divider);
}

.league-table tbody tr:last-child td {
  border-bottom: none;
}

.league-table tbody tr:hover {
  background: var(--bg-subtle);
}

.league-table td:first-child {
  font-weight: 700;
  color: var(--color-gold-deep);
  font-variant-numeric: tabular-nums;
  width: 2.5rem;
}

.league-table td:last-child {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.league-table__empty {
  text-align: center !important;
  padding: 2.5rem 1rem !important;
  color: var(--text-muted);
}

/* ═══ Chef cards (catalog) ═══════════════════════════════ */

.chefs-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin-top: 1.5rem;
}

.chef-card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-subtle) 100%);
  border: 1px solid rgba(20, 17, 13, 0.04);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 7px 20px rgba(20, 17, 13, 0.04);
  cursor: pointer;
  text-align: left;
  transition:
    transform 0.28s var(--ease-app),
    box-shadow 0.28s var(--ease-app),
    border-color 0.28s var(--ease-app);
}

.chef-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 28px rgba(20, 17, 13, 0.065);
  border-color: rgba(20, 17, 13, 0.075);
}

.chef-card__accent-bar {
  display: block;
  height: 2px;
  background: var(--accent, var(--color-gold));
  opacity: 0.75;
}

.chef-card__inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
}

.chef-card__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-xs);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.chef-card__avatar-wrap {
  flex-shrink: 0;
}

.chef-card__info {
  flex: 1;
  min-width: 0;
}

.chef-card__name {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chef-card__meta {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.chef-card__points {
  text-align: right;
  flex-shrink: 0;
}

.chef-card__points-num {
  display: block;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-gold-deep);
  font-variant-numeric: tabular-nums;
}

.chef-card__points-word {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Filter panel */
.chefs-filter-panel {
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  margin: 1rem 0 1.5rem;
}

@media (min-width: 640px) {
  .chefs-filter-panel {
    grid-template-columns: 1fr 220px;
  }
}

/* ═══ Shop / product cards ═══════════════════════════════ */

.product-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.product-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-subtle) 100%);
  border: 1px solid rgba(20, 17, 13, 0.035);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(20, 17, 13, 0.045);
  cursor: pointer;
  transition:
    transform 0.28s var(--ease-app),
    box-shadow 0.28s var(--ease-app),
    border-color 0.28s var(--ease-app);
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(20, 17, 13, 0.07);
  border-color: rgba(20, 17, 13, 0.07);
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0.65rem 0.65rem 0;
  border-radius: 18px;
  background: var(--bg-elevated);
  overflow: hidden;
}

.product-card__category {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  max-width: calc(100% - 1.5rem);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--color-gold-deep);
  border: 1px solid rgba(212, 168, 87, 0.22);
  box-shadow: 0 6px 16px rgba(20, 17, 13, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease-app);
}

.product-card:hover .product-card__media img {
  transform: scale(1.05);
}

.product-card__body {
  flex: 1;
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.product-card__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.product-card__desc {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__price {
  margin: 0.45rem 0 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-gold-deep);
  font-variant-numeric: tabular-nums;
}

.product-card__prices {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.45rem 0 0;
}

.product-card__prices .product-card__price {
  margin: 0;
}

.product-card__old-price {
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  opacity: 0.78;
  font-variant-numeric: tabular-nums;
}

.product-card__cta {
  margin-top: auto;
  padding-top: 0.85rem;
}

.product-card__cta .btn-gold {
  border-radius: 16px;
  box-shadow: none;
  min-height: 46px;
}

.product-card__qty {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 0.45rem;
  min-height: 46px;
  border-radius: 16px;
  background: var(--bg-elevated);
  padding: 0.35rem;
}

.product-card__qty .qty-btn {
  width: 38px;
  height: 38px;
  background: var(--bg-card);
}

.product-card__qty .cart-line__count {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.shop-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 1.5rem;
}

.shop-tabs button {
  --btn-pad-y: 0.55rem;
  --btn-pad-x: 1rem;
  font-size: 0.8125rem;
}

.shop-tabs button.is-active {
  background: var(--text-primary);
  color: var(--bg-card);
  border-color: var(--text-primary);
}

[data-theme="dark"] .shop-tabs button.is-active {
  background: var(--color-gold);
  color: var(--text-on-gold);
  border-color: var(--color-gold);
}

/* ═══ Rules page ═════════════════════════════════════════ */

.rules-wrap {
  max-width: 48rem;
  margin: 0 auto;
}

.rules-title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.rules-panel {
  padding: 2rem;
}

.rules-list {
  margin: 1.5rem 0 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.rules-list li {
  position: relative;
  padding-left: 2rem;
  line-height: 1.65;
}

.rules-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: var(--bg-tint);
  border: 1.5px solid var(--color-gold);
}

.rules-list li::after {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.85rem;
  width: 0.4rem;
  height: 0.2rem;
  border-left: 2px solid var(--color-gold-deep);
  border-bottom: 2px solid var(--color-gold-deep);
  transform: rotate(-45deg);
}

/* ═══ Loading skeleton ═══════════════════════════════════ */

.skel {
  background: linear-gradient(90deg, var(--bg-elevated) 0%, var(--bg-card) 50%, var(--bg-elevated) 100%);
  background-size: 200% 100%;
  animation: skel-pulse 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skel-pulse {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

/* ═══ Page fade transitions ══════════════════════════════ */

.page-main {
  transition: opacity 0.32s var(--ease-app);
}

.page-main.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.page-main.is-entering {
  animation: page-enter 0.5s var(--ease-app);
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══ Scroll reveal ══════════════════════════════════════ */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease-app),
    transform 0.7s var(--ease-app);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
}

.reveal-stagger.is-revealed > *,
.reveal-on-scroll.is-revealed .reveal-stagger > *,
.reveal-stagger > *.is-revealed {
  animation: reveal-up 0.55s var(--ease-app) forwards;
}

.reveal-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.reveal-stagger > *:nth-child(2) { animation-delay: 0.11s; }
.reveal-stagger > *:nth-child(3) { animation-delay: 0.17s; }
.reveal-stagger > *:nth-child(4) { animation-delay: 0.23s; }
.reveal-stagger > *:nth-child(5) { animation-delay: 0.29s; }
.reveal-stagger > *:nth-child(6) { animation-delay: 0.35s; }

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══ Dark theme premium tweaks ══════════════════════════ */

[data-theme="dark"] body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(212, 168, 87, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(166, 124, 61, 0.05) 0%, transparent 60%),
    var(--bg-app);
  background-attachment: fixed;
}

[data-theme="dark"] .hero-banner {
  background: linear-gradient(135deg, #1f1812 0%, #0d0a08 100%);
  border-color: rgba(212, 168, 87, 0.28);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(212, 168, 87, 0.12);
}

[data-theme="dark"] .feature-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-subtle) 100%);
}

[data-theme="dark"] .feature-card__icon {
  background: rgba(212, 168, 87, 0.1);
  color: var(--color-gold);
  border: 1px solid rgba(212, 168, 87, 0.18);
}

[data-theme="dark"] .feature-card:hover {
  border-color: rgba(212, 168, 87, 0.3);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .chef-card,
[data-theme="dark"] .product-card,
[data-theme="dark"] .league-card,
[data-theme="dark"] .site-live-stats__card {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-subtle) 100%);
  border-color: rgba(212, 168, 87, 0.1);
}

[data-theme="dark"] .chef-card:hover,
[data-theme="dark"] .product-card:hover {
  border-color: rgba(212, 168, 87, 0.18);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .league-card:hover {
  border-color: rgba(212, 168, 87, 0.26);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .site-live-stats__value {
  background: linear-gradient(120deg, #f5d68a 0%, #e8c98a 60%, #f5efe6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="dark"] .product-card__price,
[data-theme="dark"] .chef-card__points-num {
  color: var(--color-gold);
}

[data-theme="dark"] .product-card__category {
  background: rgba(22, 18, 14, 0.82);
  color: var(--color-gold);
  border-color: rgba(212, 168, 87, 0.24);
}

[data-theme="dark"] .avatar-fallback {
  background:
    radial-gradient(circle at 35% 22%, rgba(245, 239, 230, 0.16) 0 8%, transparent 28%),
    linear-gradient(180deg, rgba(245, 239, 230, 0.12) 0%, rgba(245, 239, 230, 0.055) 100%);
  color: rgba(245, 239, 230, 0.46);
  border-color: rgba(212, 168, 87, 0.2);
}

[data-theme="dark"] .form-input {
  background: rgba(245, 239, 230, 0.04);
  border-color: rgba(212, 168, 87, 0.18);
}

[data-theme="dark"] .form-input[type="search"]::-webkit-search-cancel-button {
  border-color: rgba(212, 168, 87, 0.32);
  background-color: rgba(212, 168, 87, 0.58);
}

[data-theme="dark"] .form-input[type="search"]::-webkit-search-cancel-button:hover {
  background-color: rgba(212, 168, 87, 0.72);
}

[data-theme="dark"] .form-input:focus {
  background: rgba(245, 239, 230, 0.06);
  border-color: var(--color-gold);
}

[data-theme="dark"] .site-back-link {
  background: rgba(245, 239, 230, 0.03);
}

[data-theme="dark"] .site-back-link:hover {
  background: rgba(212, 168, 87, 0.08);
  border-color: rgba(212, 168, 87, 0.4);
  color: var(--color-gold);
}

[data-theme="dark"] .icon-btn {
  background: rgba(245, 239, 230, 0.03);
}

[data-theme="dark"] .icon-btn:hover {
  background: rgba(212, 168, 87, 0.08);
  color: var(--color-gold);
}

[data-theme="dark"] .btn-ghost {
  background: rgba(245, 239, 230, 0.04);
  color: var(--text-primary);
  border-color: rgba(212, 168, 87, 0.2);
}

[data-theme="dark"] .btn-ghost:hover {
  background: rgba(212, 168, 87, 0.1);
  border-color: var(--color-gold);
  color: var(--color-gold);
}

[data-theme="dark"] .btn-soft {
  background: rgba(212, 168, 87, 0.08);
  color: var(--color-gold);
  border-color: rgba(212, 168, 87, 0.22);
}

[data-theme="dark"] .btn-soft:hover {
  background: rgba(212, 168, 87, 0.14);
  border-color: var(--color-gold);
}

[data-theme="dark"] .site-footer {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(212, 168, 87, 0.1), transparent 65%),
    var(--bg-app);
}

[data-theme="dark"] .site-footer__credit {
  background: transparent;
}

[data-theme="dark"] .auth-modal__hero {
  background: linear-gradient(135deg, #2a221a 0%, #0d0a08 100%);
}

[data-theme="dark"] .auth-modal__hero::before {
  background: radial-gradient(circle, rgba(212, 168, 87, 0.32) 0%, transparent 65%);
}

[data-theme="dark"] .glass-panel,
[data-theme="dark"] .modal-panel,
[data-theme="dark"] .cart-modal {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-subtle) 100%);
  border-color: rgba(212, 168, 87, 0.18);
}

[data-theme="dark"] .cart-foot {
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg-card) 100%);
}

[data-theme="dark"] .cart-line {
  background: rgba(245, 239, 230, 0.035);
}

[data-theme="dark"] .site-header {
  border-bottom-color: rgba(212, 168, 87, 0.1);
}

[data-theme="dark"] .site-header__nav-bar {
  background: rgba(245, 239, 230, 0.02);
}

[data-theme="dark"] .site-nav__link.is-active {
  color: var(--color-gold);
}

[data-theme="dark"] .league-table thead tr {
  background: rgba(212, 168, 87, 0.05);
}

[data-theme="dark"] .league-table tbody tr:hover {
  background: rgba(212, 168, 87, 0.04);
}

[data-theme="dark"] .league-table td:first-child {
  color: var(--color-gold);
}

[data-theme="dark"] ::selection {
  background: rgba(212, 168, 87, 0.4);
  color: var(--hero-text);
}

/* ═══ Minimal Retail Refresh ═════════════════════════════ */

[data-theme="light"] body {
  background:
    linear-gradient(180deg, #ffffff 0%, #fffdf9 42%, #ffffff 100%),
    var(--bg-app);
}

.wrap {
  max-width: 72rem;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(20, 17, 13, 0.035);
  box-shadow: 0 8px 30px rgba(20, 17, 13, 0.035);
}

.site-header__top {
  height: 78px;
}

.site-brand__name {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.site-header__nav-bar {
  border-top: 0;
  background: rgba(255, 255, 255, 0.96);
}

.site-nav--bar {
  gap: 0.45rem;
  padding-block: 0.4rem 0.7rem;
}

.site-nav__link {
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  background: transparent;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.site-nav__link::after {
  display: none;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  background: #f7f7f8;
  color: var(--color-gold-deep);
}

.icon-btn,
.btn-ghost,
.site-back-link {
  background: #f7f7f8;
  border-color: rgba(20, 17, 13, 0.035);
  box-shadow: none;
}

.btn-gold {
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe59a 0%, #d7aa52 65%, #b88435 100%);
  box-shadow: 0 8px 20px rgba(212, 168, 87, 0.18);
}

.btn-ghost,
.btn-soft {
  border-radius: 999px;
}

.hero-wrap {
  padding-top: 1.15rem;
  padding-bottom: 1.25rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(220px, 0.78fr);
  gap: 1.25rem;
  align-items: stretch;
}

.hero-banner,
.hero-side-card {
  border-radius: 24px;
  border: 0;
  box-shadow: 0 16px 45px rgba(20, 17, 13, 0.075);
}

.hero-banner__media {
  aspect-ratio: 2.35 / 1;
  max-height: 360px;
}

.hero-banner__scrim {
  background:
    linear-gradient(90deg, rgba(20, 17, 13, 0.68) 0%, rgba(20, 17, 13, 0.24) 52%, rgba(20, 17, 13, 0.06) 100%),
    linear-gradient(180deg, rgba(20, 17, 13, 0) 0%, rgba(20, 17, 13, 0.28) 100%);
}

.hero-banner__panel {
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 34rem;
  padding: clamp(1.35rem, 4vw, 3.5rem);
}

.hero-banner__eyebrow {
  width: fit-content;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.22);
  margin-bottom: 0.8rem;
  letter-spacing: 0.12em;
}

.hero-banner__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.06;
  text-shadow: none;
}

.hero-banner__desc {
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.86);
}

.hero-side-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  background: #f8f2e7;
}

.hero-side-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-side-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 17, 13, 0.04) 0%, rgba(20, 17, 13, 0.72) 100%);
}

.hero-side-card__body {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 1.2rem;
  color: #fff;
}

.hero-side-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.7rem;
  font-weight: 700;
}

.hero-side-card h2 {
  margin: 0;
  max-width: 12rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.hero-side-card__link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.85rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
}

.section-pad {
  padding-block: 3.75rem;
}

.section-head h2,
.clients-title {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.badge {
  border: 0;
  background: #f7f7f8;
  color: var(--color-gold-deep);
}

.feature-card,
.site-live-stats__card,
.league-card,
.chef-card,
.product-card,
.card,
.glass-panel {
  border-color: rgba(20, 17, 13, 0.035);
  box-shadow: 0 10px 30px rgba(20, 17, 13, 0.045);
}

.feature-card:hover,
.site-live-stats__card:hover,
.league-card:hover,
.chef-card:hover,
.product-card:hover,
.card--hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(20, 17, 13, 0.075);
}

.league-card,
.chef-card,
.product-card {
  background: #fff;
}

.league-card__accent-bar,
.chef-card__accent-bar {
  height: 3px;
  opacity: 0.9;
}

.league-table thead tr,
.chef-card__rank,
.product-card__media,
.form-input {
  background: #f8f8f9;
}

.product-card {
  border-radius: 24px;
  overflow: hidden;
}

.product-card__media {
  margin: 0.7rem 0.7rem 0;
  border-radius: 18px;
  overflow: hidden;
}

.product-card__category {
  border: 0;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 20px rgba(20, 17, 13, 0.08);
}

.site-live-stats__icon,
.feature-card__icon {
  border-radius: 999px;
  background: #fff8e7;
  border-color: rgba(212, 168, 87, 0.16);
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-side-card {
    min-height: 190px;
  }
}

@media (max-width: 640px) {
  .site-header__top {
    height: 72px;
  }

  .hero-banner__media {
    aspect-ratio: 1 / 1.05;
    max-height: none;
  }

  .hero-banner__panel {
    justify-content: flex-end;
  }

  .hero-banner__title {
    font-size: clamp(1.75rem, 8vw, 2.45rem);
  }
}

[data-theme="dark"] .site-header,
[data-theme="dark"] .site-header__nav-bar {
  background: rgba(10, 8, 7, 0.88);
  border-color: rgba(212, 168, 87, 0.12);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.38);
}

[data-theme="dark"] .site-nav__link:hover,
[data-theme="dark"] .site-nav__link.is-active,
[data-theme="dark"] .icon-btn,
[data-theme="dark"] .btn-ghost,
[data-theme="dark"] .site-back-link,
[data-theme="dark"] .badge,
[data-theme="dark"] .league-table thead tr,
[data-theme="dark"] .chef-card__rank,
[data-theme="dark"] .product-card__media,
[data-theme="dark"] .form-input {
  background: rgba(245, 239, 230, 0.055);
}

[data-theme="dark"] .league-card,
[data-theme="dark"] .chef-card,
[data-theme="dark"] .product-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .site-live-stats__card {
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(245, 239, 230, 0.025) 100%);
  border-color: rgba(212, 168, 87, 0.12);
}

/* Full minimal footer */

.site-footer {
  margin-top: 5.5rem;
  padding: 3.25rem 0 1.2rem;
  background: #fff;
  border-top: 1px solid rgba(20, 17, 13, 0.055);
}

.site-footer__panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 2.6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.site-footer__panel::before {
  display: none;
}

.site-footer__brand-card {
  padding: 0;
  color: var(--text-primary);
}

.site-footer__brand-row {
  align-items: flex-start;
  margin-bottom: 1.35rem;
}

.site-footer__brand-row .site-brand__logo-wrap {
  margin-top: 0.1rem;
}

.site-footer__brand-row .site-footer__brand {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.06em;
  color: var(--color-gold-deep);
}

.site-footer__tagline {
  margin: 0.35rem 0 0;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer__desc {
  max-width: 18rem;
  margin: 0 0 1.35rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.site-footer__social {
  display: flex;
  gap: 0.65rem;
}

.footer-social {
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--color-gold-deep);
  color: #fff;
  transition:
    transform 0.2s var(--ease-app),
    background 0.2s var(--ease-app),
    box-shadow 0.2s var(--ease-app);
}

.footer-social:hover {
  transform: translateY(-2px);
  background: var(--color-gold);
  color: var(--text-on-gold);
  box-shadow: 0 10px 22px rgba(212, 168, 87, 0.22);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.7rem);
}

.site-footer__mini-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.footer-heading {
  display: block;
  margin: 0 0 0.9rem;
  color: #9a9690;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
}

.site-footer__nav {
  gap: 0.62rem;
}

.footer-link,
.footer-link--button {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  white-space: normal;
}

.footer-link:hover,
.footer-link--button:hover {
  color: var(--color-gold-deep);
  transform: translateX(2px);
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.footer-contact span {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--color-gold-deep);
  color: #fff;
}

.footer-contact strong {
  font-weight: 700;
}

.footer-contact:hover {
  color: var(--color-gold-deep);
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.8rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(20, 17, 13, 0.055);
}

.site-footer__credit {
  display: none;
}

.footer-credit__made {
  color: var(--text-muted);
}

.footer-credit__made--team strong {
  color: var(--color-gold-deep);
}

@media (max-width: 980px) {
  .site-footer__panel {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-footer {
    margin-top: 3.25rem;
    padding: 2rem 0 1rem;
    background:
      linear-gradient(180deg, #fff 0%, #faf8f3 100%);
    border-top: 1px solid rgba(20, 17, 13, 0.045);
  }

  .site-footer__panel {
    gap: 1rem;
  }

  .site-footer__brand-card {
    padding: 1.1rem;
    border: 1px solid rgba(20, 17, 13, 0.05);
    border-radius: 24px;
    background:
      radial-gradient(circle at 100% 0%, rgba(212, 168, 87, 0.12), transparent 12rem),
      #fff;
    box-shadow: 0 16px 42px rgba(20, 17, 13, 0.055);
    text-align: center;
  }

  .site-footer__brand-row {
    justify-content: center;
    margin-bottom: 0.8rem;
  }

  .site-footer__brand-row .site-brand__logo-wrap {
    width: 122px;
    height: 58px;
  }

  .site-footer__desc {
    max-width: 22rem;
    margin: 0 auto 1rem;
    font-size: 0.84rem;
    line-height: 1.55;
  }

  .site-footer__social {
    justify-content: center;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .site-footer__mini-card {
    padding: 0.95rem;
    border: 1px solid rgba(20, 17, 13, 0.05);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 28px rgba(20, 17, 13, 0.04);
  }

  .site-footer__contact-card {
    grid-column: 1 / -1;
  }

  .footer-heading {
    margin-bottom: 0.65rem;
    color: var(--color-gold-deep);
    font-size: 0.82rem;
  }

  .site-footer__nav {
    gap: 0.46rem;
  }

  .footer-link,
  .footer-link--button {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .footer-contact {
    width: 100%;
    min-height: 2.65rem;
    padding: 0.35rem 0.45rem;
    border-radius: 999px;
    background: var(--bg-subtle);
    font-size: 0.82rem;
  }

  .footer-contact span {
    width: 1.85rem;
    height: 1.85rem;
  }

  .footer-social {
    width: 2.25rem;
    height: 2.25rem;
  }

  .site-footer__bottom {
    align-items: center;
    text-align: center;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 1.3rem;
    padding-top: 1rem;
  }

  .footer-credit__made {
    font-size: 0.74rem;
  }
}

@media (max-width: 360px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

[data-theme="dark"] .site-footer {
  background: #0a0807;
  border-top-color: rgba(212, 168, 87, 0.14);
}

[data-theme="dark"] .site-footer__panel,
[data-theme="dark"] .site-footer__brand-card,
[data-theme="dark"] .site-footer__mini-card {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

[data-theme="dark"] .site-footer__brand-row .site-footer__brand,
[data-theme="dark"] .footer-link:hover,
[data-theme="dark"] .footer-link--button:hover,
[data-theme="dark"] .footer-contact:hover {
  color: var(--color-gold);
}

[data-theme="dark"] .footer-heading {
  color: rgba(245, 239, 230, 0.56);
}

[data-theme="dark"] .footer-link,
[data-theme="dark"] .footer-link--button,
[data-theme="dark"] .footer-contact {
  color: rgba(245, 239, 230, 0.78);
}

[data-theme="dark"] .site-footer__bottom {
  border-top-color: rgba(245, 239, 230, 0.08);
}

@media (max-width: 560px) {
  [data-theme="dark"] .site-footer {
    background:
      linear-gradient(180deg, #0a0807 0%, #110d0a 100%);
  }

  [data-theme="dark"] .site-footer__brand-card,
  [data-theme="dark"] .site-footer__mini-card {
    background: rgba(22, 18, 14, 0.82);
    border-color: rgba(212, 168, 87, 0.13);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24);
  }

  [data-theme="dark"] .footer-contact {
    background: rgba(245, 239, 230, 0.055);
  }
}

/* Clean button polish */

.btn-gold,
.btn-ghost,
.btn-soft,
.icon-btn,
.qty-btn,
.site-back-link {
  border: 0 !important;
  outline: none;
}

.btn-gold,
.btn-ghost,
.btn-soft {
  min-height: 42px;
  border-radius: 999px !important;
  font-weight: 700;
  line-height: 1;
  align-items: center;
  justify-content: center;
}

.btn-gold {
  background: linear-gradient(135deg, #ffe9a9 0%, #dfb253 58%, #c1913d 100%) !important;
  color: #1c1308 !important;
  box-shadow: 0 8px 20px rgba(191, 140, 48, 0.18) !important;
}

.btn-gold:hover {
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(191, 140, 48, 0.24) !important;
}

.btn-gold:active,
.btn-ghost:active,
.btn-soft:active,
.icon-btn:active,
.qty-btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-ghost {
  background: #f6f6f7 !important;
  color: var(--text-primary) !important;
  box-shadow: none !important;
}

.btn-ghost:hover {
  background: #efeff1 !important;
  color: var(--color-gold-deep) !important;
  transform: translateY(-1px);
}

.btn-soft {
  background: #fff7e6 !important;
  color: var(--color-gold-deep) !important;
  box-shadow: none !important;
}

.btn-soft:hover {
  background: #ffefc7 !important;
  color: var(--color-gold-dark) !important;
}

.icon-btn,
.qty-btn {
  background: #f6f6f7 !important;
  color: var(--text-primary);
  border-radius: 999px !important;
  box-shadow: none !important;
}

.icon-btn:hover,
.qty-btn:hover {
  background: #efeff1 !important;
  color: var(--color-gold-deep);
  transform: translateY(-1px);
}

.hero-banner__ghost {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  backdrop-filter: blur(10px);
}

.hero-banner__ghost:hover {
  background: rgba(255, 255, 255, 0.26) !important;
  color: #fff !important;
}

.product-card__qty {
  border: 0;
  background: #f6f6f7;
  border-radius: 999px;
  padding: 0.25rem;
}

.product-card__cta .btn-gold,
.cart-foot .btn-gold,
.product-modal__cta .btn-gold {
  border-radius: 999px !important;
}

[data-theme="dark"] .btn-ghost,
[data-theme="dark"] .icon-btn,
[data-theme="dark"] .qty-btn,
[data-theme="dark"] .product-card__qty {
  background: rgba(245, 239, 230, 0.07) !important;
  color: var(--text-primary) !important;
}

[data-theme="dark"] .btn-ghost:hover,
[data-theme="dark"] .icon-btn:hover,
[data-theme="dark"] .qty-btn:hover {
  background: rgba(212, 168, 87, 0.14) !important;
  color: var(--color-gold) !important;
}

[data-theme="dark"] .btn-soft {
  background: rgba(212, 168, 87, 0.1) !important;
  color: var(--color-gold) !important;
}

.auth-modal__logo img,
.site-brand__logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ═══ Reduced motion ═════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-on-scroll,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
}

/* ═══ Additional mobile & tablet polish ═══════════════════════════════ */

@media (max-width: 768px) {
  .site-header__top {
    height: 64px;
    padding: 0 0.65rem;
    gap: 0.55rem;
  }

  .site-header .site-brand__logo-wrap {
    width: 86px;
    height: 40px;
  }

  .site-header__brand-col {
    flex: 0 1 auto;
  }

  .header-actions {
    gap: 0.35rem;
    margin-left: auto;
  }

  .header-actions .icon-btn {
    width: 2.35rem;
    height: 2.35rem;
  }

  .header-actions .btn-gold,
  .header-actions .btn-ghost {
    min-height: 2.35rem;
    padding-inline: 0.85rem;
    font-size: 0.82rem;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .league-grid,
  .chef-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .site-footer__brand-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .site-header__top {
    height: 58px;
  }

  .site-header .site-brand__logo-wrap {
    width: 76px;
    height: 36px;
  }

  .header-actions .icon-btn {
    width: 2.2rem;
    height: 2.2rem;
  }

  .header-actions .btn-gold,
  .header-actions .btn-ghost {
    min-height: 2.2rem;
    padding-inline: 0.72rem;
  }

  .league-grid,
  .chef-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .product-card {
    border-radius: 18px;
  }

  .product-card__media {
    margin: 0.45rem 0.45rem 0;
    border-radius: 14px;
  }

  .product-card__category {
    top: 0.45rem;
    left: 0.45rem;
    max-width: calc(100% - 0.9rem);
    padding: 0.25rem 0.45rem;
    font-size: 0.58rem;
  }

  .product-card__body {
    padding: 0.7rem 0.65rem 0.75rem;
    gap: 0.38rem;
  }

  .product-card__title {
    font-size: 0.8rem;
    line-height: 1.25;
  }

  .product-card__desc {
    display: none;
  }

  .product-card__price {
    font-size: 0.92rem;
  }

  .product-card__old-price {
    font-size: 0.72rem;
  }

  .product-card__cta {
    padding-top: 0.55rem;
  }

  .product-card__cta .btn-gold {
    min-height: 38px;
    font-size: 0.76rem;
    padding-inline: 0.65rem;
  }

  .product-card__qty {
    min-height: 38px;
    grid-template-columns: 34px 1fr 34px;
    gap: 0.25rem;
  }

  .product-card__qty .qty-btn {
    width: 30px;
    height: 30px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .auth-modal {
    width: 94vw;
    margin: 1rem;
  }
}

/* ═══ Final responsive polish: phone + tablet ═══════════════════════ */

@media (max-width: 1023px) {
  .wrap {
    max-width: 100%;
    padding-inline: clamp(0.9rem, 3vw, 1.4rem);
  }

  body[data-page="home"] .page-main,
  .page-main {
    padding-top: 76px;
  }

  .site-header__top {
    height: 68px;
  }

  .site-header__brand-col {
    flex: 0 0 auto;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero-wrap {
    padding-top: 0.85rem;
    padding-bottom: 0.6rem;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .hero-banner,
  .hero-side-card {
    border-radius: 22px;
  }

  .hero-banner__media {
    aspect-ratio: 16 / 10;
    max-height: 460px;
  }

  .hero-banner__panel {
    max-width: 100%;
    padding: clamp(1.1rem, 4vw, 2rem);
    justify-content: flex-end;
  }

  .hero-banner__title {
    max-width: 34rem;
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .hero-side-card {
    min-height: 190px;
  }

  .section-pad {
    padding-block: clamp(2.4rem, 6vw, 3.4rem);
  }

  .section-head {
    margin-bottom: 1.35rem;
  }

  .section-head--row {
    align-items: flex-start;
  }

  .clients-grid {
    gap: 1.6rem;
  }

  .site-live-stats__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .league-grid,
  .chef-grid,
  .chefs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .modal-root {
    padding: 0.85rem;
  }

  .modal-panel,
  .modal-panel--wide {
    max-width: min(94vw, 42rem);
  }
}

@media (max-width: 768px) {
  .wrap {
    padding-inline: 0.95rem;
  }

  body[data-page="home"] .page-main,
  .page-main {
    padding-top: 66px;
  }

  .site-header__top {
    height: 62px;
    padding: 0;
  }

  .site-header .site-brand__logo-wrap {
    width: 82px;
    height: 38px;
  }

  .header-actions {
    gap: 0.32rem;
  }

  .header-actions .btn-gold,
  .header-actions .btn-ghost,
  .site-auth-login,
  .site-auth-register {
    display: none !important;
  }

  .header-actions .icon-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 13px;
  }

  .hero-banner__media {
    aspect-ratio: 1.12 / 1;
  }

  .hero-banner__scrim {
    background:
      linear-gradient(180deg, rgba(20, 17, 13, 0.04) 0%, rgba(20, 17, 13, 0.76) 78%),
      linear-gradient(90deg, rgba(20, 17, 13, 0.2), rgba(20, 17, 13, 0.04));
  }

  .hero-banner__panel {
    padding: 1.1rem;
  }

  .hero-banner__eyebrow {
    margin-bottom: 0.6rem;
    padding: 0.26rem 0.55rem;
    font-size: 0.62rem;
  }

  .hero-banner__title {
    font-size: clamp(1.65rem, 8vw, 2.35rem);
    line-height: 1.08;
  }

  .hero-banner__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin-top: 1rem;
  }

  .hero-banner__actions .btn-gold,
  .hero-banner__actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .hero-side-card {
    min-height: 160px;
    border-radius: 20px;
  }

  .hero-side-card__body {
    padding: 1rem;
  }

  .hero-side-card h2 {
    max-width: 16rem;
    font-size: 1.15rem;
  }

  .section-pad {
    padding-block: 2.25rem;
  }

  .section-head h1,
  .section-head h2 {
    font-size: clamp(1.35rem, 6vw, 1.85rem);
  }

  .section-head p {
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .section-head__link {
    width: 100%;
    justify-content: space-between;
    padding: 0.72rem 0.9rem;
    border-radius: 16px;
    background: var(--bg-elevated);
  }

  .feature-card,
  .site-live-stats__card,
  .league-card,
  .chef-card,
  .rules-card {
    border-radius: 20px;
  }

  .feature-card,
  .site-live-stats__card {
    padding: 1rem;
  }

  .site-live-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .league-grid,
  .chef-grid {
    grid-template-columns: 1fr;
  }

  .chefs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .chefs-grid .chef-card {
    border-radius: 16px;
  }

  .chefs-grid .chef-card__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.55rem;
    align-items: center;
    padding: 0.7rem 0.62rem;
  }

  .chefs-grid .chef-card__rank {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 10px;
    font-size: 0.72rem;
  }

  .chefs-grid .chef-card__avatar-wrap {
    order: -1;
  }

  .chefs-grid .avatar--lg {
    width: 3rem;
    height: 3rem;
  }

  .chefs-grid .chef-card__info {
    min-width: 0;
  }

  .chefs-grid .chef-card__name {
    font-size: 0.78rem;
    line-height: 1.2;
  }

  .chefs-grid .chef-card__meta {
    font-size: 0.7rem;
  }

  .chefs-grid .chef-card__points {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    text-align: left;
    padding-top: 0.35rem;
    border-top: 1px solid var(--color-divider);
  }

  .chefs-grid .chef-card__points-num {
    font-size: 0.86rem;
  }

  .chefs-grid .chef-card__points-word {
    font-size: 0.58rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .shop-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    margin-inline: -0.95rem;
    padding-inline: 0.95rem;
    scrollbar-width: none;
  }

  .shop-tabs::-webkit-scrollbar {
    display: none;
  }

  .shop-tabs button {
    flex: 0 0 auto;
  }

  .modal-root {
    align-items: flex-end;
    padding: 0;
  }

  .modal-panel,
  .modal-panel--wide,
  .auth-modal {
    width: 100%;
    max-width: 100%;
    max-height: 92svh;
    border-radius: 24px 24px 0 0;
  }

  .auth-modal__hero {
    padding: 1.2rem 1rem;
  }

  .auth-modal__body {
    padding: 1.15rem;
  }

  .auth-modal__logo {
    width: 118px;
    height: 56px;
  }

  .modal-body {
    overflow-y: auto;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding-inline: 0.82rem;
  }

  .site-header__top {
    height: 58px;
  }

  body[data-page="home"] .page-main,
  .page-main {
    padding-top: 60px;
  }

  .site-header .site-brand__logo-wrap {
    width: 74px;
    height: 34px;
  }

  .hero-wrap {
    padding-top: 0.65rem;
  }

  .hero-banner,
  .hero-side-card {
    border-radius: 18px;
  }

  .hero-banner__media {
    aspect-ratio: 0.9 / 1;
    min-height: 385px;
  }

  .hero-banner__panel {
    padding: 0.95rem;
  }

  .hero-banner__title {
    font-size: clamp(1.45rem, 8.5vw, 2.05rem);
  }

  .hero-banner__dots {
    bottom: 0.65rem;
  }

  .hero-side-card {
    min-height: 140px;
  }

  .section-pad {
    padding-block: 1.9rem;
  }

  .clients-grid,
  .feature-stack {
    gap: 0.85rem;
  }

  .site-live-stats__grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .product-card {
    border-radius: 16px;
  }

  .product-card__media {
    aspect-ratio: 1 / 0.92;
    margin: 0.4rem 0.4rem 0;
    border-radius: 13px;
  }

  .product-card__body {
    padding: 0.62rem 0.55rem 0.65rem;
  }

  .product-card__title {
    font-size: 0.78rem;
    min-height: 2.2em;
  }

  .product-card__prices {
    gap: 0.28rem;
  }

  .product-card__prices .product-card__price,
  .product-card__price {
    font-size: 0.88rem;
  }

  .product-card__old-price {
    font-size: 0.68rem;
  }

  .product-card__cta .btn-gold,
  .product-card__cta .btn-ghost,
  .product-card__cta .btn-soft {
    min-height: 36px;
    padding-inline: 0.5rem;
    font-size: 0.7rem;
  }

  .chef-card__inner {
    gap: 0.7rem;
  }

  .chef-card__name {
    font-size: 0.9rem;
  }

  .site-footer {
    margin-top: 2.4rem;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .footer-heading {
    font-size: 0.82rem;
  }

  .footer-link,
  .footer-link--button,
  .footer-contact {
    font-size: 0.78rem;
  }
}

@media (max-width: 380px) {
  .wrap {
    padding-inline: 0.7rem;
  }

  .header-actions .icon-btn {
    width: 2.05rem;
    height: 2.05rem;
  }

  .site-header .site-brand__logo-wrap {
    width: 68px;
    height: 32px;
  }

  .hero-banner__media {
    min-height: 350px;
  }

  .product-grid {
    gap: 0.55rem;
  }

  .chefs-grid {
    gap: 0.5rem;
  }

  .chefs-grid .chef-card__inner {
    padding: 0.6rem 0.5rem;
    gap: 0.45rem;
  }

  .chefs-grid .avatar--lg {
    width: 2.65rem;
    height: 2.65rem;
  }

  .chefs-grid .chef-card__rank {
    width: 1.45rem;
    height: 1.45rem;
    font-size: 0.66rem;
  }

  .chefs-grid .chef-card__name {
    font-size: 0.72rem;
  }

  .chefs-grid .chef-card__points-num {
    font-size: 0.78rem;
  }

  .product-card__category {
    font-size: 0.54rem;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ═══ Home clients section: compact phone layout ═════════════════════ */
@media (max-width: 768px) {
  #clients .clients-grid {
    gap: 0.95rem !important;
  }

  #clients .badge {
    font-size: 0.64rem !important;
    padding: 0.26rem 0.52rem !important;
  }

  #clients .clients-title {
    margin: 0.5rem 0 0.6rem !important;
    font-size: clamp(1.28rem, 5.8vw, 1.55rem) !important;
    line-height: 1.14 !important;
    letter-spacing: -0.03em !important;
  }

  #clients .text-muted {
    margin: 0 !important;
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #clients .actions-row {
    margin-top: 0.75rem !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.45rem !important;
  }

  #clients .actions-row .btn-gold,
  #clients .actions-row .btn-ghost {
    min-height: 40px !important;
    padding: 0.52rem 0.65rem !important;
    border-radius: 13px !important;
    font-size: 0.76rem !important;
  }

  #clients .site-live-stats {
    margin-top: 1rem !important;
  }

  #clients .site-live-stats__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.48rem !important;
  }

  #clients .site-live-stats__card {
    padding: 0.62rem 0.5rem !important;
    border-radius: 14px !important;
    min-height: 0 !important;
  }

  #clients .site-live-stats__icon {
    width: 1.65rem !important;
    height: 1.65rem !important;
    margin-bottom: 0.3rem !important;
  }

  #clients .site-live-stats__value {
    font-size: 1.62rem !important;
    line-height: 0.95 !important;
  }

  #clients .site-live-stats__title {
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
  }

  #clients .site-live-stats__desc {
    display: none !important;
  }

  #clients .feature-stack {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.48rem !important;
  }

  #clients .feature-card {
    padding: 0.7rem !important;
    border-radius: 14px !important;
    min-height: 0 !important;
  }

  #clients .feature-card__icon {
    width: 1.85rem !important;
    height: 1.85rem !important;
    margin-bottom: 0.35rem !important;
  }

  #clients .feature-card h3 {
    font-size: 0.82rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0 !important;
  }

  #clients .feature-card p {
    display: none !important;
  }
}

@media (max-width: 560px) {
  #clients .actions-row {
    grid-template-columns: 1fr !important;
  }

  #clients .site-live-stats__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  #clients .feature-stack {
    grid-template-columns: 1fr !important;
  }

  #clients .feature-card {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    align-items: center !important;
    gap: 0.55rem !important;
  }

  #clients .feature-card__icon {
    margin-bottom: 0 !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   AUTHORITATIVE MOBILE LAYER — единая адаптация телефона/планшета
═══════════════════════════════════════════════════════════════════ */

@media (max-width: 1023px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Навбар скрыт — отступ только под шапку */
  body[data-page="home"] .page-main,
  .page-main {
    padding-top: calc(68px + env(safe-area-inset-top)) !important;
  }

  .site-header__top {
    height: 68px !important;
    padding-inline: clamp(0.85rem, 3.2vw, 1.15rem) !important;
  }

  .site-header__brand-col {
    flex: 0 1 auto !important;
  }

  .site-header .site-brand__logo-wrap {
    width: 128px !important;
    height: 58px !important;
  }

  .header-actions {
    gap: 0.5rem !important;
    margin-left: auto !important;
  }

  .header-actions .btn-gold,
  .header-actions .btn-ghost,
  .header-actions .site-auth-login,
  .header-actions .site-auth-register {
    display: none !important;
  }

  .header-actions .icon-btn {
    width: 2.75rem !important;
    height: 2.75rem !important;
    border-radius: 999px !important;
    border: 1px solid rgba(20, 17, 13, 0.08) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 241, 236, 0.92)) !important;
    box-shadow:
      0 8px 22px rgba(20, 17, 13, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  }

  .header-actions .icon-btn .cn-icon {
    width: 21px !important;
    height: 21px !important;
    stroke-width: 1.9 !important;
  }

  [data-theme="dark"] .header-actions .icon-btn {
    border-color: rgba(212, 168, 87, 0.18) !important;
    background: linear-gradient(180deg, rgba(34, 28, 21, 0.94), rgba(20, 16, 12, 0.92)) !important;
    box-shadow:
      0 10px 24px rgba(0, 0, 0, 0.38),
      inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  }

  .wrap {
    max-width: 100% !important;
    padding-inline: clamp(0.85rem, 3.2vw, 1.25rem) !important;
  }

  .hero-wrap {
    padding-top: 0.75rem !important;
    padding-bottom: 0.5rem !important;
  }

  .hero-layout {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  .hero-banner,
  .hero-side-card {
    border-radius: 20px !important;
  }

  .hero-banner__media {
    aspect-ratio: 16 / 11 !important;
    max-height: min(72vw, 420px) !important;
    min-height: 0 !important;
  }

  .hero-banner__panel {
    padding: clamp(1rem, 4vw, 1.5rem) !important;
  }

  .hero-banner__title {
    font-size: clamp(1.65rem, 5.8vw, 2.6rem) !important;
    line-height: 1.08 !important;
  }

  .hero-banner__actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
    margin-top: 0.9rem !important;
  }

  .hero-banner__actions .btn-gold,
  .hero-banner__actions .btn-ghost {
    width: 100% !important;
    justify-content: center !important;
    min-height: 44px !important;
  }

  .hero-side-card {
    min-height: 150px !important;
  }

  .section-pad {
    padding-block: clamp(2rem, 5vw, 3rem) !important;
  }

  .section-head {
    margin-bottom: 1.2rem !important;
  }

  .section-head h1,
  .section-head h2 {
    font-size: clamp(1.3rem, 5vw, 1.85rem) !important;
  }

  .section-head p {
    font-size: 0.86rem !important;
    line-height: 1.55 !important;
  }

  .section-head__link {
    width: 100% !important;
    justify-content: space-between !important;
    min-height: 44px !important;
    padding: 0.7rem 0.9rem !important;
    border-radius: 16px !important;
    background: var(--bg-elevated) !important;
  }

  .clients-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .actions-row {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  .actions-row .btn-gold,
  .actions-row .btn-ghost {
    width: 100% !important;
    justify-content: center !important;
    min-height: 44px !important;
  }

  .site-live-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.7rem !important;
  }

  .league-grid,
  .chef-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  .chefs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem !important;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.7rem !important;
  }

  .shop-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    margin-inline: calc(-1 * clamp(0.85rem, 3.2vw, 1.25rem)) !important;
    padding-inline: clamp(0.85rem, 3.2vw, 1.25rem) !important;
    padding-bottom: 0.3rem !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
  }

  .shop-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .shop-tabs button {
    flex: 0 0 auto !important;
    min-height: 40px !important;
  }

  .chefs-filter-panel {
    grid-template-columns: 1fr !important;
    padding: 1rem !important;
    margin: 0.75rem 0 1.1rem !important;
  }

  .podium-block__inner {
    padding: 1.5rem 0.75rem 1.75rem !important;
  }

  .podium-block__title {
    font-size: clamp(1.15rem, 4.5vw, 1.55rem) !important;
    margin-bottom: 1.25rem !important;
  }

  .podium-grid {
    gap: 0.45rem !important;
  }

  .podium-slot {
    padding: 0.65rem 0.25rem !important;
  }

  .podium-slot--center {
    margin-top: 0 !important;
    padding: 0.75rem 0.25rem 0.85rem !important;
  }

  .podium-slot .avatar--lg {
    width: 2.75rem !important;
    height: 2.75rem !important;
  }

  .podium-slot__name {
    font-size: 0.72rem !important;
    margin-top: 0.55rem !important;
  }

  .podium-slot__pts {
    font-size: 0.68rem !important;
  }

  .podium-slot__place {
    font-size: 0.58rem !important;
    margin-bottom: 0.45rem !important;
  }

  .league-card__head {
    padding: 0.9rem 1rem !important;
  }

  .league-table th,
  .league-table td {
    padding: 0.55rem 0.75rem !important;
    font-size: 0.78rem !important;
  }

  .rules-panel {
    padding: 1.25rem !important;
  }

  .rules-title {
    font-size: clamp(1.45rem, 6vw, 2rem) !important;
  }

  .rules-list {
    gap: 0.7rem !important;
  }

  .rules-list li {
    padding-left: 1.65rem !important;
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
  }

  /* Модалки — bottom sheet */
  .modal-root {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .modal-panel,
  .modal-panel--wide,
  .auth-modal {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92svh !important;
    margin: 0 !important;
    border-radius: 24px 24px 0 0 !important;
  }

  .modal-head {
    padding: 1rem 1.1rem !important;
  }

  .modal-body {
    padding: 0 1.1rem 1.1rem !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .auth-modal__hero {
    padding: 1.15rem 1rem !important;
  }

  .auth-modal__body {
    padding: 1.1rem !important;
  }

  .auth-modal__logo {
    width: 110px !important;
    height: 52px !important;
  }

  .product-modal {
    grid-template-columns: 1fr !important;
  }

  .product-modal__media,
  .product-modal__media img,
  .product-modal__placeholder {
    min-height: 220px !important;
    max-height: 280px !important;
  }

  .product-modal__body {
    padding: 1.1rem !important;
  }

  .product-modal__bottom {
    grid-template-columns: 1fr !important;
    gap: 0.55rem !important;
  }

  .cart-modal-anchor.is-open {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .cart-modal {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92svh !important;
    border-radius: 24px 24px 0 0 !important;
  }

  .cart-line {
    gap: 0.65rem !important;
    padding: 0.75rem 0 !important;
  }

  .cart-line__media {
    width: 3.5rem !important;
    height: 3.5rem !important;
  }

  .top3-profile-card {
    gap: 0.75rem !important;
    padding: 0.85rem !important;
    border-radius: 16px !important;
  }

  /* Футер */
  .site-footer {
    margin-top: 2.5rem !important;
    padding: 2rem 0 max(1rem, env(safe-area-inset-bottom)) !important;
  }

  .site-footer__panel {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .site-footer__brand-card {
    padding: 1.1rem !important;
    border: 1px solid rgba(20, 17, 13, 0.05) !important;
    border-radius: 22px !important;
    background:
      radial-gradient(circle at 100% 0%, rgba(212, 168, 87, 0.12), transparent 12rem),
      #fff !important;
    box-shadow: 0 14px 36px rgba(20, 17, 13, 0.055) !important;
    text-align: center !important;
  }

  .site-footer__brand-row {
    justify-content: center !important;
    margin-bottom: 0.75rem !important;
  }

  .site-footer__brand-row .site-brand__logo-wrap {
    width: 108px !important;
    height: 50px !important;
  }

  .site-footer__desc {
    max-width: 22rem !important;
    margin: 0 auto 0.9rem !important;
    font-size: 0.84rem !important;
  }

  .site-footer__social {
    justify-content: center !important;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.7rem !important;
  }

  .site-footer__mini-card {
    padding: 0.9rem !important;
    border: 1px solid rgba(20, 17, 13, 0.05) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.88) !important;
    box-shadow: 0 8px 22px rgba(20, 17, 13, 0.04) !important;
  }

  .site-footer__contact-card {
    grid-column: 1 / -1 !important;
  }

  .footer-heading {
    margin-bottom: 0.55rem !important;
    color: var(--color-gold-deep) !important;
    font-size: 0.8rem !important;
  }

  .footer-link,
  .footer-link--button {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
  }

  .footer-contact {
    width: 100% !important;
    min-height: 2.6rem !important;
    padding: 0.35rem 0.45rem !important;
    border-radius: 999px !important;
    background: var(--bg-subtle) !important;
    font-size: 0.8rem !important;
  }

  .site-footer__bottom {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.3rem !important;
    margin-top: 1.2rem !important;
    padding-top: 0.9rem !important;
  }

  .footer-credit__made {
    font-size: 0.74rem !important;
  }

  [data-theme="dark"] .site-footer__brand-card,
  [data-theme="dark"] .site-footer__mini-card {
    background: rgba(22, 18, 14, 0.88) !important;
    border-color: rgba(212, 168, 87, 0.13) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24) !important;
  }
}

@media (max-width: 560px) {
  body[data-page="home"] .page-main,
  .page-main {
    padding-top: calc(64px + env(safe-area-inset-top)) !important;
  }

  .site-header__top {
    height: 64px !important;
  }

  .site-header .site-brand__logo-wrap {
    width: 112px !important;
    height: 52px !important;
  }

  .header-actions .icon-btn {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }

  .header-actions .icon-btn .cn-icon {
    width: 19px !important;
    height: 19px !important;
  }

  .hero-banner__media {
    aspect-ratio: 1 / 1.02 !important;
    max-height: min(88vw, 380px) !important;
  }

  .hero-banner__eyebrow {
    font-size: 0.6rem !important;
    padding: 0.22rem 0.5rem !important;
  }

  .hero-banner__title {
    font-size: clamp(1.4rem, 7.5vw, 2rem) !important;
  }

  .hero-side-card {
    min-height: 130px !important;
    border-radius: 18px !important;
  }

  .hero-side-card h2 {
    font-size: 1.05rem !important;
  }

  .section-pad {
    padding-block: 1.85rem !important;
  }

  .site-live-stats__grid {
    grid-template-columns: 1fr !important;
  }

  .site-live-stats__card,
  .feature-card {
    padding: 0.95rem !important;
    border-radius: 18px !important;
  }

  .product-card {
    border-radius: 16px !important;
  }

  .product-card__media {
    aspect-ratio: 1 / 0.95 !important;
    margin: 0.4rem 0.4rem 0 !important;
    border-radius: 13px !important;
  }

  .product-card__body {
    padding: 0.6rem 0.55rem 0.65rem !important;
    gap: 0.35rem !important;
  }

  .product-card__title {
    font-size: 0.76rem !important;
    min-height: 2.2em !important;
    line-height: 1.25 !important;
  }

  .product-card__desc {
    display: none !important;
  }

  .product-card__prices .product-card__price,
  .product-card__price {
    font-size: 0.86rem !important;
  }

  .product-card__old-price {
    font-size: 0.66rem !important;
  }

  .product-card__cta .btn-gold,
  .product-card__cta .btn-ghost,
  .product-card__cta .btn-soft {
    min-height: 36px !important;
    padding-inline: 0.45rem !important;
    font-size: 0.68rem !important;
  }

  .product-card__qty {
    min-height: 36px !important;
    grid-template-columns: 32px 1fr 32px !important;
  }

  .product-card__qty .qty-btn {
    width: 28px !important;
    height: 28px !important;
  }

  .chefs-grid .chef-card__inner {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    gap: 0.5rem !important;
    align-items: center !important;
    padding: 0.65rem 0.58rem !important;
  }

  .chefs-grid .chef-card__rank {
    width: 1.55rem !important;
    height: 1.55rem !important;
    font-size: 0.68rem !important;
    border-radius: 9px !important;
  }

  .chefs-grid .chef-card__avatar-wrap {
    order: -1 !important;
  }

  .chefs-grid .avatar--lg {
    width: 2.85rem !important;
    height: 2.85rem !important;
  }

  .chefs-grid .chef-card__name {
    font-size: 0.74rem !important;
  }

  .chefs-grid .chef-card__meta {
    font-size: 0.66rem !important;
  }

  .chefs-grid .chef-card__points {
    grid-column: 1 / -1 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    padding-top: 0.3rem !important;
    border-top: 1px solid var(--color-divider) !important;
    text-align: left !important;
  }

  .chefs-grid .chef-card__points-num {
    font-size: 0.8rem !important;
  }

  .chefs-grid .chef-card__points-word {
    font-size: 0.56rem !important;
  }

  .podium-slot .avatar--lg {
    width: 2.45rem !important;
    height: 2.45rem !important;
  }

  .podium-slot__name {
    font-size: 0.66rem !important;
  }

  .site-footer__grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 380px) {
  .wrap {
    padding-inline: 0.7rem !important;
  }

  .site-header .site-brand__logo-wrap {
    width: 98px !important;
    height: 46px !important;
  }

  .product-grid,
  .chefs-grid {
    gap: 0.5rem !important;
  }

  .chefs-grid .avatar--lg {
    width: 2.55rem !important;
    height: 2.55rem !important;
  }

  .chefs-grid .chef-card__name {
    font-size: 0.7rem !important;
  }

  .product-card__category {
    font-size: 0.52rem !important;
    padding: 0.2rem 0.38rem !important;
  }
}

/* Popups centered on phone */
@media (max-width: 768px) {
  .modal-root {
    align-items: center !important;
    justify-content: center !important;
    padding: 0.75rem !important;
  }

  .modal-panel,
  .modal-panel--wide,
  .cart-confirm,
  .cab-confirm,
  .admin-confirm {
    width: min(92vw, 34rem) !important;
    max-width: min(92vw, 34rem) !important;
    max-height: 88svh !important;
    margin: 0 auto !important;
    border-radius: 26px !important;
    overflow: hidden !important;
  }

  .cart-confirm,
  .cab-confirm {
    max-width: min(92vw, 24rem) !important;
  }

  /* Auth popup: full-screen page-like on phone */
  #auth-login.modal-root,
  #auth-register.modal-root {
    align-items: stretch !important;
    justify-content: stretch !important;
    padding: 0 !important;
  }

  #auth-login .auth-modal,
  #auth-register .auth-modal {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100svh !important;
    max-height: 100svh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    display: grid !important;
    grid-template-rows: auto auto 1fr !important;
  }

  #auth-login.modal-root,
  #auth-register.modal-root {
    background: var(--bg-card) !important;
  }

  #auth-login .modal-backdrop,
  #auth-register .modal-backdrop {
    display: none !important;
  }

  #auth-login .auth-modal__body,
  #auth-register .auth-modal__body {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Image viewer should open centered, not bottom-sheet */
  .image-viewer-root.modal-root {
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }

  .image-viewer {
    width: min(90vw, 34rem) !important;
    height: auto !important;
    max-height: 86svh !important;
    padding: 0.5rem !important;
  }

  .image-viewer img {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 78svh !important;
    object-fit: contain !important;
    border-radius: 16px !important;
  }

  /* Cart on phone: full-screen like separate page */
  .cart-modal-anchor.is-open {
    align-items: stretch !important;
    justify-content: stretch !important;
    padding: 0 !important;
  }

  .cart-modal-anchor.is-open .modal-backdrop {
    display: none !important;
  }

  .cart-modal {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100svh !important;
    max-height: 100svh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .cart-head {
    padding: max(0.85rem, env(safe-area-inset-top)) 1rem 0.85rem !important;
    border-bottom: 1px solid var(--color-divider) !important;
  }

  .cart-body {
    padding: 0.65rem 0.8rem 0.7rem !important;
  }

  .cart-foot {
    padding: 0.85rem 0.9rem max(0.9rem, env(safe-area-inset-bottom)) !important;
    border-top: 1px solid var(--color-divider) !important;
    background: var(--bg-card) !important;
  }
}

@media (max-width: 560px) {
  .modal-panel,
  .modal-panel--wide,
  .auth-modal:not(.auth-modal--standalone) {
    width: 94vw !important;
    max-width: 94vw !important;
  }

  #auth-login .auth-modal,
  #auth-register .auth-modal,
  .auth-modal--standalone {
    width: 100vw !important;
    max-width: 100vw !important;
  }
}

/* Hero CTA buttons — final polish */
.hero-banner__actions .btn-gold,
.hero-banner__actions .hero-banner__ghost {
  min-height: 50px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  padding-inline: 1.2rem;
  justify-content: center;
  gap: 0.5rem;
}

.hero-banner__actions .btn-gold {
  color: #1f1405;
  background: linear-gradient(135deg, #f4d98f 0%, #d4a857 55%, #b7842f 100%);
  border-color: rgba(212, 168, 87, 0.75);
  box-shadow:
    0 12px 30px rgba(212, 168, 87, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.hero-banner__actions .btn-gold:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 36px rgba(212, 168, 87, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hero-banner__actions .hero-banner__ghost {
  color: rgba(255, 255, 255, 0.96);
  background: rgba(10, 12, 16, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.hero-banner__actions .hero-banner__ghost:hover {
  background: rgba(10, 12, 16, 0.52);
  border-color: rgba(212, 168, 87, 0.72);
  color: #fff;
}

@media (max-width: 1023px) {
  .hero-banner__actions .btn-gold,
  .hero-banner__actions .hero-banner__ghost {
    min-height: 48px !important;
    font-size: 0.94rem !important;
    padding-inline: 1rem !important;
  }
}

/* ═══ Ad slots ═══════════════════════════════════════════ */

.ad-slot-host {
  margin-block: 1.25rem;
}

.ad-slot-host:first-child {
  margin-top: 0.85rem;
}

.ad-slot-wrap {
  margin: 0;
}

.ad-slot {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(20, 17, 13, 0.06);
  background: linear-gradient(135deg, rgba(212, 168, 87, 0.06) 0%, var(--bg-card) 100%);
  box-shadow: 0 10px 28px rgba(20, 17, 13, 0.05);
  animation: ad-slot-in 0.55s var(--ease-app) both;
}

.ad-slot--leaderboard {
  min-height: 90px;
}

.ad-slot--rectangle {
  min-height: 120px;
  max-width: 22rem;
  margin-inline: auto;
}

.ad-slot__label {
  position: absolute;
  top: 0.55rem;
  left: 0.65rem;
  z-index: 2;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-deep);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(212, 168, 87, 0.22);
  backdrop-filter: blur(6px);
}

.ad-slot__link {
  display: block;
  transition: transform 0.28s var(--ease-app), filter 0.28s var(--ease-app);
}

.ad-slot__link:hover {
  transform: scale(1.01);
  filter: saturate(1.04);
}

.ad-slot__img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 90px;
  max-height: 180px;
  object-fit: cover;
}

.ad-slot--rectangle .ad-slot__img {
  max-height: 220px;
}

.ad-slot__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 90px;
  padding: 1.25rem 1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1.5px dashed rgba(212, 168, 87, 0.28);
  border-radius: 18px;
  margin: 0.55rem;
  background: rgba(255, 255, 255, 0.55);
}

.ad-slot--empty .ad-slot__placeholder .cn-icon {
  color: var(--color-gold-deep);
  opacity: 0.55;
}

@keyframes ad-slot-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-theme="dark"] .ad-slot {
  border-color: rgba(212, 168, 87, 0.14);
  background: linear-gradient(135deg, rgba(212, 168, 87, 0.08) 0%, rgba(22, 18, 14, 0.92) 100%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .ad-slot__label {
  background: rgba(22, 18, 14, 0.82);
  border-color: rgba(212, 168, 87, 0.2);
}

[data-theme="dark"] .ad-slot__placeholder {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(212, 168, 87, 0.22);
}

@media (max-width: 768px) {
  .ad-slot-host {
    margin-block: 1rem;
  }

  .ad-slot {
    border-radius: 16px;
  }

  .ad-slot--rectangle {
    max-width: 100%;
  }

  .ad-slot__img {
    max-height: 140px;
  }
}
