/* ─── Icons (Lucide-style) ─── */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  display: block;
}

.icon--sm { width: 1rem; height: 1rem; }
.icon--lg { width: 1.5rem; height: 1.5rem; }

.icon-btn .icon,
.header-bot-btn__icon .icon,
.nav-bot__icon .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.btn-add .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.pay-option__icon .icon {
  width: 1.35rem;
  height: 1.35rem;
}

.hero-chip .icon {
  width: 1rem;
  height: 1rem;
}

.icon--step {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--sage-500);
}

.icon--price-star,
.price-stars .icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  color: inherit;
  vertical-align: -0.1em;
}

.price-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.price-inline-sep {
  margin: 0 5px;
  opacity: 0.35;
  user-select: none;
}

.price-alt .price-stars {
  font-size: inherit;
}

.logo__mark.icon {
  width: 32px;
  height: 32px;
  stroke-width: 1.6;
}

/* ─── ggloxxy · dark theme tokens ─── */
:root {
  --sage-50:  #1a1f1c;
  --sage-100: #222822;
  --sage-200: #2e362e;
  --sage-300: #3d4a3d;
  --sage-400: #5a6e56;
  --sage-500: #7d9a6e;
  --sage-600: #8fad7f;
  --sage-700: #a8c498;
  --sage-800: #c5ddb8;

  --cream:    #0c0f0d;
  --sand:     #2a2620;
  --clay:     #8a7a62;
  --moss:     #6b8f5e;
  --ink:      #e8ebe4;
  --ink-soft: #8a9488;

  --success:  #6daa7a;
  --warning:  #c4a86a;
  --danger:   #c47a6a;
  --info:     #6a9ec4;

  --grad-card: linear-gradient(145deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.02) 100%);
  --grad-shimmer: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,.07) 48%,
    rgba(255,255,255,.03) 52%,
    transparent 70%
  );
  --grad-brand: linear-gradient(120deg, var(--sage-600), var(--moss), var(--clay));

  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', 'Noto Serif', serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-soft: 0 4px 24px rgba(0, 0, 0, .35);
  --shadow-card: 0 8px 40px rgba(0, 0, 0, .45);
  --glass: rgba(255, 255, 255, .04);
  --glass-hover: rgba(255, 255, 255, .07);
  --glass-border: rgba(255, 255, 255, .08);
  --glass-border-hover: rgba(125, 154, 110, .35);

  --header-h: 72px;
  --sidebar-w: 240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
}

.ambient {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}

.ambient__orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .35;
  animation: drift 18s ease-in-out infinite alternate;
}

.ambient__orb--1 {
  width: 55vw; height: 55vw; top: -15%; right: -10%;
  background: radial-gradient(circle, #1e3020 0%, transparent 70%);
}

.ambient__orb--2 {
  width: 40vw; height: 40vw; bottom: 10%; left: -12%;
  background: radial-gradient(circle, #1a2818 0%, transparent 70%);
  animation-delay: -6s; animation-duration: 22s;
}

.ambient__orb--3 {
  width: 30vw; height: 30vw; top: 45%; right: 20%;
  background: radial-gradient(circle, #2a2218 0%, transparent 70%);
  opacity: .25; animation-delay: -12s; animation-duration: 16s;
}

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3%, 5%) scale(1.08); }
}

.leaf-pattern {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 10c-8 6-14 14-14 22 0 6 3 11 7 12 1.5-4 4-7.5 8-10.5 2 3.5 3 7 3 10.5 4-1 7-4 7-11 0-8-6-16-14-23z' fill='none' stroke='%237d9a6e' stroke-width='.8'/%3E%3C/svg%3E");
  background-size: 80px 80px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}

.logo__mark { width: 28px; height: 28px; color: var(--sage-500); }

.logo__text {
  font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em;
  background: var(--grad-brand);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  position: relative; overflow: hidden;
  background: var(--grad-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
}

.shimmer {
  position: absolute; inset: 0;
  background: var(--grad-shimmer); background-size: 200% 100%;
  animation: shimmer 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.pill {
  font-size: .75rem; font-weight: 600;
  padding: 4px 12px; border-radius: 99px; white-space: nowrap;
}

.pill--success { color: var(--success); background: rgba(109, 170, 122, .12); }
.pill--warning { color: var(--warning); background: rgba(196, 168, 106, .12); }
.pill--danger  { color: var(--danger);  background: rgba(196, 122, 106, .12); }
.pill--info    { color: var(--info);    background: rgba(106, 158, 196, .12); }

.icon-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: var(--glass); color: var(--ink-soft);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.icon-btn svg { width: 18px; height: 18px; }

.icon-btn:hover {
  background: var(--glass-hover); color: var(--ink);
  border-color: var(--glass-border-hover);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; font-family: inherit;
  font-size: .9rem; font-weight: 500;
  border: none; border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .2s, transform .15s, border-color .2s;
}

.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--sage-500); color: #0c0f0d; }
.btn--primary:hover { background: var(--sage-600); transform: translateY(-1px); }
.btn--ghost { background: var(--glass); color: var(--ink-soft); border: 1px solid var(--glass-border); }
.btn--ghost:hover { background: var(--glass-hover); color: var(--ink); border-color: var(--glass-border-hover); }
.btn--danger { background: rgba(196, 122, 106, .15); color: var(--danger); border: 1px solid rgba(196, 122, 106, .25); }
.btn--sm { padding: 6px 12px; font-size: .8rem; }

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 400; margin-bottom: 8px;
}

.section-head p { color: var(--ink-soft); max-width: 480px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--sage-500);
}

.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.85); }
}

/* header, hero, catalog — same as root styles + cart & order */

.header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(20px, 5vw, 48px);
  background: rgba(12, 15, 13, .78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.header__nav { display: flex; gap: 32px; }

.nav-link {
  font-size: .9rem; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; transition: color .2s; position: relative;
}

.nav-link:hover, .nav-link--active { color: var(--ink); }

.header__actions { display: flex; align-items: center; gap: 8px; }

.header__menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}

.header__menu-btn svg { width: 22px; height: 22px; }

/* Telegram-бот в шапке */
.header-bot-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 14px;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(122, 168, 138, .18), rgba(90, 122, 82, .1));
  border: 1px solid rgba(122, 168, 138, .35);
  color: var(--ink);
  transition: transform .2s, border-color .2s, background .2s;
  max-width: min(240px, 38vw);
}

.header-bot-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(122, 168, 138, .55);
  background: linear-gradient(135deg, rgba(122, 168, 138, .28), rgba(90, 122, 82, .14));
}

.header-bot-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(122, 168, 138, .2);
  color: var(--sage-400);
  flex-shrink: 0;
}

.header-bot-btn__icon svg { width: 20px; height: 20px; }

.header-bot-btn__stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.header-bot-btn__title {
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-bot-btn__hint {
  font-size: .68rem;
  color: var(--sage-400);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-orders-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  color: var(--ink-soft);
  text-decoration: none;
  flex-shrink: 0;
  transition: background .2s, color .2s, border-color .2s;
}

.header-orders-btn .icon {
  width: 20px;
  height: 20px;
}

.header-orders-btn:hover {
  background: var(--glass-hover);
  color: var(--ink);
  border-color: var(--glass-border-hover);
}

.nav-bot {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-top: 12px;
  border-radius: 14px;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(122, 168, 138, .14), rgba(90, 122, 82, .08));
  border: 1px solid rgba(122, 168, 138, .3);
  color: var(--ink);
  transition: background .2s, border-color .2s;
}

.nav-bot__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(122, 168, 138, .18);
  color: var(--sage-400);
  flex-shrink: 0;
}

.nav-bot__icon svg { width: 22px; height: 22px; }

.nav-bot__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.nav-bot__title {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
}

.nav-bot__hint {
  font-size: .78rem;
  color: var(--ink-soft);
  line-height: 1.3;
}

.nav-bot__chevron {
  width: 18px;
  height: 18px;
  color: var(--sage-500);
  flex-shrink: 0;
  opacity: .7;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.nav-overlay--open {
  opacity: 1;
  pointer-events: auto;
}

body.nav-open { overflow: hidden; }

.btn--lg {
  min-height: 48px;
  padding: 14px 22px;
  font-size: 1rem;
}

.cart-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  font-size: .65rem; font-weight: 600; line-height: 18px; text-align: center;
  color: #0c0f0d; background: var(--sage-500); border-radius: 99px;
}

main {
  position: relative; z-index: 1;
  min-height: calc(100vh - var(--header-h) - 80px);
}

.page-section {
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 48px);
  max-width: 1200px;
  margin: 0 auto;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 18px;
}

.hero__cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero__cta .btn .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.hero {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 5vw, 48px) clamp(36px, 5vw, 56px);
  max-width: 1240px;
  margin: 0 auto;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(125, 154, 110, .12) 0%, transparent 55%),
    var(--grad-card);
}

.hero-panel__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 0;
  align-items: stretch;
}

.hero-panel__main {
  padding: clamp(28px, 4vw, 40px);
}

.hero-panel__feed {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 32px);
  border-left: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, .15);
  min-height: 0;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--sage-600);
  background: rgba(125, 154, 110, .1);
  border: 1px solid rgba(125, 154, 110, .18);
  border-radius: 99px;
}

.hero-chip svg { width: 14px; height: 14px; flex-shrink: 0; }

.hero-chip--muted {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .03);
  border-color: var(--glass-border);
}

.hero-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, .12);
  overflow-x: auto;
}

.hero-step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: background .2s;
}

.hero-step:hover { background: rgba(255, 255, 255, .04); }

.hero-step__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 600;
  color: var(--sage-600);
  background: rgba(125, 154, 110, .15);
  border: 1px solid rgba(125, 154, 110, .25);
  border-radius: 50%;
}

.hero-step__text {
  font-size: .82rem;
  color: var(--ink-soft);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-step__text strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-step__arrow {
  flex-shrink: 0;
  color: var(--sage-400);
  font-size: .9rem;
  opacity: .6;
}

.site-section {
  position: relative;
  z-index: 1;
  padding: clamp(56px, 8vw, 88px) clamp(20px, 5vw, 48px);
  max-width: 1240px;
  margin: 0 auto;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.site-section + .site-section {
  border-top: 1px solid rgba(255, 255, 255, .04);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage-500);
}

.section-eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, var(--sage-500), transparent);
}

.section-head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.section-head--row .section-head p { max-width: 520px; }

.hero .eyebrow { margin-bottom: 14px; }

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}

.hero__title em {
  font-style: italic;
  background: var(--grad-brand);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: .98rem;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 0;
  line-height: 1.55;
}

.payment-badges { display: flex; gap: 10px; flex-wrap: wrap; }

.payment-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; font-size: .8rem; font-weight: 500;
  color: var(--sage-600);
  background: rgba(125, 154, 110, .1);
  border: 1px solid rgba(125, 154, 110, .2);
  border-radius: var(--radius-sm);
}

.payment-badge svg { width: 16px; height: 16px; }

/* Live feed */
.hero-panel__feed .live-feed__list,
.live-feed__list {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  min-height: 200px;
  max-height: 340px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--sage-400) transparent;
}

.live-feed {
  padding: 28px 24px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.hero-panel__feed .live-feed__head {
  margin-bottom: 14px;
}

.live-feed__head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.live-feed__head h2 {
  font-size: .95rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink);
}

.live-feed__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-in-out infinite;
}

.live-feed__list::-webkit-scrollbar { width: 5px; }
.live-feed__list::-webkit-scrollbar-thumb {
  background: var(--sage-400);
  border-radius: 99px;
}

.live-feed__item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--glass-border);
}

.live-feed__item:last-child { border-bottom: none; }

.live-feed__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(125, 154, 110, .12);
  border: 1px solid rgba(125, 154, 110, .2);
  color: var(--sage-600);
  flex-shrink: 0;
}

.live-feed__icon svg { width: 18px; height: 18px; }

.live-feed__body { min-width: 0; }

.live-feed__product {
  display: block;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-feed__price {
  display: block;
  font-size: .8rem;
  color: var(--sage-600);
  margin-top: 2px;
}

.live-feed__meta {
  font-size: .75rem;
  color: var(--ink-soft);
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}

.live-feed__empty {
  color: var(--ink-soft); font-size: .9rem;
  text-align: center; padding: 48px 16px;
  grid-column: 1 / -1;
}

@keyframes feedIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-head { margin-bottom: 36px; }

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.catalog__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: var(--ink-soft);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.catalog__empty--error {
  color: var(--ink);
  border-color: rgba(180, 80, 60, 0.35);
  background: rgba(180, 80, 60, 0.06);
  line-height: 1.55;
  font-size: 0.95rem;
}

.catalog__empty--error p {
  margin: 0;
}

.product-card {
  display: flex; flex-direction: column;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--glass-border-hover);
}

.product-card--disabled { opacity: .55; pointer-events: none; }

.product-card__visual {
  position: relative;
  height: 180px;
  background: linear-gradient(160deg, var(--sage-100) 0%, var(--sage-50) 100%);
  overflow: hidden;
}

.product-card__img-btn {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  padding: 0; border: none; background: none;
  cursor: zoom-in;
}

.product-card__zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(12, 15, 13, 0.72);
  border: 1px solid var(--glass-border);
  color: var(--sage-400);
  pointer-events: none;
}

.product-card__zoom .icon {
  width: 16px;
  height: 16px;
}

.product-card__title-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  color: inherit;
  cursor: pointer;
  margin-bottom: 6px;
}

.product-card__title-btn:hover {
  color: var(--sage-400);
}

.product-card__more {
  padding: 6px 10px;
  font-size: .75rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.product-card__more:hover {
  color: var(--ink);
  border-color: var(--glass-border-hover);
  background: var(--glass-hover);
}

.product-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Photo lightbox */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}

.photo-lightbox[hidden] {
  display: none !important;
}

.photo-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
}

.photo-lightbox__close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 2;
}

.photo-lightbox__frame {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(78dvh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: #141816;
}

.photo-lightbox__frame img {
  display: block;
  max-width: 100%;
  max-height: min(78dvh, 720px);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.04) brightness(0.9);
}

.photo-lightbox__wm {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 6vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.28);
  transform: rotate(-22deg);
  pointer-events: none;
  user-select: none;
}

.photo-lightbox__caption {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  font-size: .9rem;
  color: var(--ink-soft);
  text-align: center;
  max-width: 520px;
}

.product-photo {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #141816;
}

.product-photo__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04) brightness(0.88);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.product-card__img-btn:hover .product-photo__img {
  transform: scale(1.04);
  filter: grayscale(1) contrast(1.06) brightness(0.92);
}

.product-photo__wm {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 5.5vw, 1.85rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.32);
  transform: rotate(-22deg);
  pointer-events: none;
  user-select: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.product-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.12) 0%, transparent 45%, rgba(0, 0, 0, 0.2) 100%),
    repeating-linear-gradient(
      -28deg,
      transparent,
      transparent 52px,
      rgba(255, 255, 255, 0.025) 52px,
      rgba(255, 255, 255, 0.025) 104px
    );
}

.product-photo--modal .product-photo__wm {
  font-size: clamp(1.35rem, 6vw, 2.1rem);
}

.product-img-fallback {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 100%;
  color: var(--ink-soft);
  font-size: .75rem;
}

.product-img-fallback svg { width: 40px; height: 40px; opacity: .5; }

.product-card__desc {
  font-size: .85rem; color: var(--ink-soft);
  flex: 1; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

.product-card__shimmer {
  position: absolute; inset: 0;
  background: var(--grad-shimmer); background-size: 200% 100%;
  animation: shimmer 8s ease-in-out infinite; opacity: .4;
  pointer-events: none;
}

.product-card__body {
  padding: 20px; flex: 1;
  display: flex; flex-direction: column;
}

.product-card__meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}

.product-card__tag {
  font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--success);
}

.product-card__tag--muted { color: var(--warning); }
.product-card__tag--danger { color: var(--danger); }

.product-card__title { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }

.product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  text-align: right;
  min-width: 0;
}

.price-main {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sage-600);
  line-height: 1.15;
  white-space: nowrap;
}

.price-alt {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 4px 6px;
  font-size: .72rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.2;
}

.price-alt__sep {
  opacity: .35;
  user-select: none;
}

.checkout-pay__amount .price-block,
.order-total .price-block {
  align-items: flex-end;
}

.product-modal__price .price-block {
  align-items: flex-start;
  text-align: left;
  margin-top: 6px;
}

.price { font-weight: 600; font-size: 1rem; color: var(--sage-600); }

.btn-add {
  position: relative;
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: none;
  border-radius: var(--radius-sm);
  background: var(--sage-500); color: #0c0f0d;
  cursor: pointer; transition: background .2s, transform .15s;
}

.btn-add svg { width: 16px; height: 16px; }
.btn-add:hover { background: var(--sage-600); transform: scale(1.05); }

.btn-add:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none;
}

.btn-add--loading {
  opacity: 0.65;
  pointer-events: none;
}

.shop-toast {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #fff;
  background: rgba(180, 60, 50, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}

.shop-toast--warn {
  background: rgba(160, 120, 40, 0.95);
}

.shop-toast--show {
  transform: translateY(0);
  opacity: 1;
}

/* Reviews marquee */
.reviews { overflow: hidden; }

.reviews-marquee {
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.reviews-marquee__track {
  display: flex; gap: 20px;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.reviews-marquee__track:hover { animation-play-state: paused; }

.reviews-marquee__item {
  flex-shrink: 0;
  width: 300px;
  height: 220px;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  cursor: zoom-in;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.reviews-marquee__item:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}

.reviews-marquee__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.reviews-empty {
  text-align: center; color: var(--ink-soft);
  padding: 40px; background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.review-modal {
  position: fixed;
  z-index: 302;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.96);
  width: min(720px, calc(100vw - 32px));
  max-height: 90vh;
  padding: 0;
  border: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, transform .25s, visibility .25s;
}

.review-modal[open] {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.review-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.review-modal__image {
  display: block;
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
  background: #0a0a0a;
  border-radius: var(--radius-lg);
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Product modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0, 0, 0, .6);
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
}

.modal-overlay--open { opacity: 1; visibility: visible; }

.product-modal {
  position: fixed; z-index: 301;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.96);
  width: min(520px, calc(100vw - 32px));
  max-height: 90vh; overflow-y: auto;
  padding: 0; border: none;
  opacity: 0; visibility: hidden;
  transition: opacity .25s, transform .25s, visibility .25s;
}

.product-modal[open], .product-modal--open {
  opacity: 1; visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.product-modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
}

.product-modal__image-wrap {
  height: 220px;
  background: #141816;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
}

.product-modal__image-wrap:focus-visible {
  outline: 2px solid var(--sage-500);
  outline-offset: -2px;
}

.product-modal__image-wrap .product-photo {
  width: 100%;
  height: 100%;
}

.product-modal__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-modal__body { padding: 24px; }

.product-modal__body h2 {
  font-size: 1.3rem; font-weight: 600; margin-bottom: 8px;
  padding-right: 40px;
}

.product-modal__price {
  font-size: 1.1rem; font-weight: 600;
  color: var(--sage-600); margin-bottom: 16px;
}

.product-modal__desc {
  font-size: .9rem; color: var(--ink-soft);
  line-height: 1.65; margin-bottom: 20px;
  white-space: pre-line;
}

/* ─── Checkout / payment (order page) ─── */
.order-summary {
  padding: 20px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.order-summary .order-items { margin-bottom: 16px; }
.order-summary .order-total { margin-bottom: 0; padding-top: 12px; border-top: 1px solid var(--glass-border); }

.checkout-pay {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
}

.checkout-pay__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.checkout-pay__head h3 {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.checkout-pay__amount {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sage-600);
  text-align: right;
  line-height: 1.35;
}

.order-total span:last-child,
.cart-total span:last-child {
  color: var(--sage-600);
  font-weight: 600;
  text-align: right;
  line-height: 1.35;
}

.payment-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.pay-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--ink);
  transition: border-color .2s, background .2s, box-shadow .2s;
}

.pay-option:hover {
  border-color: var(--glass-border-hover);
  background: rgba(255, 255, 255, .04);
}

.pay-option--active {
  border-color: rgba(125, 154, 110, .45);
  background: rgba(125, 154, 110, .07);
  box-shadow: 0 0 0 1px rgba(125, 154, 110, .12);
}

.pay-option--cryptobot.pay-option--active {
  border-color: rgba(106, 158, 196, .4);
  background: rgba(106, 158, 196, .06);
  box-shadow: 0 0 0 1px rgba(106, 158, 196, .1);
}

.pay-option--crypto.pay-option--active {
  border-color: rgba(106, 158, 196, .4);
  background: rgba(106, 158, 196, .06);
  box-shadow: 0 0 0 1px rgba(106, 158, 196, .1);
}

.pay-option__main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.pay-option__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--glass-border);
  color: var(--sage-500);
}

.pay-option--cryptobot .pay-option__icon {
  color: var(--info);
  background: rgba(106, 158, 196, .08);
  border-color: rgba(106, 158, 196, .15);
}

.pay-option--crypto .pay-option__icon {
  color: var(--info);
  background: rgba(106, 158, 196, .08);
  border-color: rgba(106, 158, 196, .15);
}

.pay-option__icon svg { width: 22px; height: 22px; }

.pay-option__text { min-width: 0; }

.pay-option__name {
  display: block;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
}

.pay-option__desc {
  display: block;
  font-size: .78rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.pay-option__radio {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--sage-300);
  position: relative;
  transition: border-color .2s;
}

.pay-option--active .pay-option__radio {
  border-color: var(--sage-500);
}

.pay-option--active .pay-option__radio::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--sage-500);
}

.pay-option--cryptobot.pay-option--active .pay-option__radio {
  border-color: var(--info);
}

.pay-option--cryptobot.pay-option--active .pay-option__radio::after {
  background: var(--info);
}

.pay-option--crypto.pay-option--active .pay-option__radio {
  border-color: var(--info);
}

.pay-option--crypto.pay-option--active .pay-option__radio::after {
  background: var(--info);
}

.pay-instruction {
  margin-bottom: 16px;
}

.pay-instruction__inner {
  padding: 14px 16px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  max-height: 280px;
  overflow-y: auto;
}

.pay-instruction__text {
  margin: 0;
  font-family: inherit;
  font-size: .82rem;
  line-height: 1.6;
  color: var(--ink-soft);
  white-space: pre-wrap;
  word-break: break-word;
}

.pay-proof {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .03);
  border: 1px dashed var(--glass-border-hover);
  border-radius: var(--radius-sm);
}

.pay-proof__label {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.pay-proof__req {
  color: var(--danger);
  font-weight: 600;
}

.pay-proof__input {
  width: 100%;
  font-size: .8rem;
  color: var(--ink-soft);
}

.pay-proof__preview {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pay-proof__preview img {
  max-width: 160px;
  max-height: 120px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  object-fit: cover;
}

.pay-proof__remove {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: .78rem;
  cursor: pointer;
  padding: 4px 0;
}

.pay-proof__remove:hover { color: var(--danger); }

/* ─── Free tasks ─── */
.free-tasks__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.free-task-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}

.free-task-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-soft);
}

.free-task-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--glass-border);
  color: var(--sage-500);
}

.free-task-card__icon svg {
  width: 22px;
  height: 22px;
}

.free-task-card__title {
  font-size: 1rem;
  font-weight: 600;
}

.free-task-card__reward {
  font-size: .85rem;
  color: var(--sage-600);
  flex: 1;
}

.task-instructions {
  margin: 0 0 16px;
  padding-left: 20px;
  font-size: .88rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.task-template {
  margin-bottom: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}

.task-template__label {
  display: block;
  font-size: .75rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.task-template code {
  font-size: .82rem;
  color: var(--sage-600);
  word-break: break-all;
}

.product-modal::backdrop,
.review-modal::backdrop {
  background: rgba(0, 0, 0, .6);
}

.checkout-pay__hint {
  font-size: .8rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .02);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--sage-500);
}

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-actions__secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkout-actions__secondary[hidden] { display: none; }

.btn--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--glass-border-hover);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.btn--outline:hover {
  background: var(--glass-hover);
  border-color: var(--info);
}

.order-cancel {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}

.order-cancel__hint {
  margin-top: 8px;
  font-size: .82rem;
  color: var(--ink-soft);
  text-align: center;
}

.order-card__back {
  margin-top: 24px;
  font-size: .8rem;
}

.order-card__back a {
  color: var(--sage-500);
  text-decoration: none;
  transition: color .2s;
}

.order-card__back a:hover { color: var(--sage-600); }

.access-key { margin: 0 0 20px; }

.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.step-card {
  position: relative;
  padding: 28px 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: border-color .25s, transform .25s;
}

.step-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

.step-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  background: rgba(125, 154, 110, .1);
  border: 1px solid rgba(125, 154, 110, .22);
  color: var(--sage-600);
}

.step-card__icon svg,
.step-card__icon .icon { width: 22px; height: 22px; }

.step-card__num {
  font-family: var(--font-serif);
  font-size: 2.5rem; color: var(--sage-300);
  line-height: 1; margin-bottom: 16px;
}

.step-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.step-card p { font-size: .85rem; color: var(--ink-soft); line-height: 1.55; }

.footer {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px clamp(20px, 5vw, 48px);
  border-top: 1px solid var(--glass-border);
  font-size: .8rem; color: var(--ink-soft);
}

.footer__brand {
  font-weight: 600; font-size: 1rem;
  background: var(--grad-brand);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Cart drawer ─── */
.cart-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0, 0, 0, .65);
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
}

.cart-overlay--open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 501;
  width: min(400px, 100%);
  max-width: 100%;
  height: 100dvh;
  background: var(--sage-50);
  border-left: 1px solid var(--glass-border);
  transform: translate3d(100%, 0, 0);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0, 0, 0, .5);
  box-sizing: border-box;
}

body.cart-open,
body.lightbox-open { overflow: hidden; }

.cart-drawer--open { transform: translate3d(0, 0, 0); }

.cart-drawer__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--glass-border);
}

.cart-drawer__head h2 { font-size: 1.1rem; font-weight: 600; }

.cart-drawer__body {
  flex: 1; overflow-y: auto;
  padding: 16px 24px;
}

.cart-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--glass-border);
}

.cart-item__name { font-weight: 500; font-size: .9rem; }
.cart-item__price { font-size: .85rem; color: var(--sage-600); font-weight: 600; }

.cart-item__remove {
  background: none; border: none;
  color: var(--ink-soft); cursor: pointer;
  font-size: .75rem; margin-top: 4px;
}

.cart-item__remove:hover { color: var(--danger); }

.cart-empty { text-align: center; color: var(--ink-soft); padding: 40px 0; }

.cart-drawer__foot {
  padding: 20px 24px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.cart-total {
  display: flex; justify-content: space-between;
  margin-bottom: 16px; font-weight: 600;
}

.cart-total span:last-child { color: var(--sage-600); font-weight: 600; text-align: right; line-height: 1.35; }

.cart-notice {
  margin-bottom: 12px;
  padding: 10px 12px;
  font-size: .8rem;
  line-height: 1.45;
  color: var(--warning);
  background: rgba(196, 168, 106, .1);
  border: 1px solid rgba(196, 168, 106, .22);
  border-radius: var(--radius-sm);
}

.cart-notice a {
  color: var(--sage-400);
  font-weight: 600;
}

.cart-notice[hidden] { display: none !important; }

.btn--block { width: 100%; }

/* ─── Order page ─── */
.order-page {
  position: relative; z-index: 1;
  max-width: 560px; margin: 0 auto;
  padding: clamp(48px, 8vw, 80px) 24px;
}

.order-card { padding: 32px; }

.order-card h1 {
  font-family: var(--font-serif);
  font-size: 1.8rem; font-weight: 400;
  margin-bottom: 8px;
}

.order-card__meta {
  font-size: .85rem; color: var(--ink-soft);
  margin-bottom: 24px;
}

.order-items { margin-bottom: 24px; }

.order-item {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--glass-border);
  font-size: .9rem;
}

.order-item__price { color: var(--sage-600); font-weight: 600; }

.order-total {
  display: flex; justify-content: space-between;
  font-size: 1.1rem; font-weight: 600;
  margin-bottom: 24px;
}

.order-total span:last-child { color: var(--sage-600); }

.access-key {
  margin: 20px 0;
  padding: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: .8rem;
}

.access-key code {
  display: block; margin-top: 6px;
  word-break: break-all;
  color: var(--sage-600);
  font-size: .75rem;
}

.delivery-links { margin-top: 24px; }

.delivery-link {
  display: block;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: rgba(109, 170, 122, .08);
  border: 1px solid rgba(109, 170, 122, .2);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .2s;
}

.delivery-link:hover { border-color: var(--success); }

.delivery-link__name { font-weight: 600; font-size: .9rem; display: block; }
.delivery-link__url { font-size: .75rem; color: var(--sage-600); margin-top: 4px; word-break: break-all; }

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  margin-bottom: 16px;
}

.alert--warn {
  background: rgba(196, 168, 106, .1);
  border: 1px solid rgba(196, 168, 106, .25);
  color: var(--warning);
}

.alert--error {
  background: rgba(196, 122, 106, .1);
  border: 1px solid rgba(196, 122, 106, .25);
  color: var(--danger);
}

/* ─── Login ─── */
.login-page {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%; max-width: 400px;
  padding: 36px 32px;
}

.login-card h1 {
  font-family: var(--font-serif);
  font-size: 1.6rem; font-weight: 400;
  margin: 16px 0 8px;
}

.login-card p { color: var(--ink-soft); font-size: .9rem; margin-bottom: 24px; }

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block; font-size: .8rem;
  font-weight: 500; color: var(--ink-soft);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit; font-size: .9rem;
  color: var(--ink);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  outline: none;
}

.form-input:focus { border-color: var(--glass-border-hover); }

.login-error {
  color: var(--danger);
  font-size: .85rem;
  margin-bottom: 12px;
  min-height: 1.2em;
}

/* ─── Auth page (отдельная страница /login) ─── */
.auth-page {
  width: 100%;
  max-width: 420px;
}

.auth-page__back {
  margin-top: 20px;
  text-align: center;
  font-size: .9rem;
}

.auth-page__back a {
  color: var(--ink-soft);
  text-decoration: none;
}

.auth-page__back a:hover {
  color: var(--ink);
}

.header--minimal {
  justify-content: center;
}

.auth-gate__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.auth-gate__tab {
  flex: 1;
  padding: 10px 12px;
  font-family: inherit;
  font-size: .85rem;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.auth-gate__tab--active {
  color: var(--ink);
  border-color: var(--glass-border-hover);
  background: rgba(255, 255, 255, .08);
}

.auth-gate__template {
  margin-bottom: 12px;
}

.admin-login-page .leaf-pattern { display: none; }

.login-card--admin {
  max-width: 440px;
}

.form-label {
  display: block;
  font-size: .8rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.captcha-box {
  padding: 14px 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}

.captcha-question {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
  min-height: 1.4em;
}

.captcha-question--loading {
  color: var(--ink-soft);
  font-weight: 400;
}

.my-apps__grid {
  display: grid;
  gap: 16px;
}

.my-app-card {
  padding: 20px 22px;
}

.my-app-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.my-app-card__type {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft);
}

.my-app-card__title {
  font-size: 1.05rem;
  margin: 0 0 6px;
}

.my-app-card__meta {
  font-size: .85rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.my-app-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.my-apps__hint {
  margin-top: 24px;
  font-size: .85rem;
  color: var(--ink-soft);
  text-align: center;
}

.delivery-link--inline {
  display: inline-flex;
  padding: 8px 14px;
  font-size: .85rem;
}

.captcha-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.captcha-row .form-input {
  flex: 1;
}

.captcha-refresh {
  flex-shrink: 0;
  min-width: 44px;
  padding: 0 12px;
  font-size: 1.1rem;
}

.header__user {
  font-size: .85rem;
  color: var(--ink-soft);
  margin-right: 8px;
}

/* ─── 404 page ─── */
.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.page-404__deco {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.page-404__float {
  position: absolute;
  opacity: .85;
}

.page-404__float--2 {
  width: 48px;
  top: 22%;
  right: 10%;
  animation: float-drift 11s ease-in-out infinite reverse;
}

.page-404__float--4 {
  width: 56px;
  bottom: 18%;
  right: 12%;
  animation: float-drift 13s ease-in-out infinite .5s reverse;
}

@keyframes float-drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(8px, -12px) rotate(4deg); }
  66% { transform: translate(-6px, 8px) rotate(-3deg); }
}

.page-404__header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px clamp(20px, 5vw, 48px);
}

.page-404__main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 48px) clamp(20px, 5vw, 48px) clamp(40px, 8vw, 64px);
}

.page-404__hero {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
  text-align: left;
}

.page-404__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 40px);
  background: linear-gradient(160deg, rgba(122, 168, 138, .12), rgba(12, 15, 13, 0));
  border-right: 1px solid var(--glass-border);
}

.page-404__digits {
  width: 100%;
  max-width: 280px;
  height: auto;
}

.page-404__code-label {
  margin-top: 8px;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sage-500);
  text-align: center;
}

.page-404__content {
  padding: clamp(28px, 5vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-404__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 12px;
}

.page-404__title em {
  font-style: italic;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-404__desc {
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.page-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-404__actions .btn svg {
  width: 18px;
  height: 18px;
}

.page-404__footer {
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .page-404__hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .page-404__visual {
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 20px;
  }

  .page-404__content {
    align-items: center;
  }

  .page-404__actions {
    justify-content: center;
    width: 100%;
  }

  .page-404__actions .btn {
    flex: 1 1 140px;
    justify-content: center;
  }

  .page-404__float--4 { display: none; }
}

.totp-input {
  font-size: 1.25rem;
  letter-spacing: .25em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

#totp-form { margin-top: 4px; }
#totp-form .btn--ghost { margin-top: 10px; }

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }

  .hero-panel__grid {
    grid-template-columns: 1fr;
  }

  .hero-panel__feed {
    border-left: none;
    border-top: 1px solid var(--glass-border);
  }

  .hero-panel__feed .live-feed__list,
  .live-feed__list {
    min-height: 180px;
    max-height: 280px;
  }

  .hero-steps {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .hero-step__arrow { display: none; }

  .hero-step {
    white-space: normal;
  }

  .hero-step__text { white-space: normal; }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }

  .header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-rows: auto;
    align-items: center;
    height: auto;
    min-height: 64px;
    padding: 10px 16px;
    gap: 10px;
  }

  .header__menu-btn { display: inline-flex; }

  .header__actions {
    position: relative;
    z-index: 120;
  }

  .icon-btn--cart {
    width: 44px;
    height: 44px;
  }

  .header-bot-btn { display: none; }

  .header-orders-btn { display: inline-flex; }

  .nav-bot { display: flex; }

  .nav-overlay { display: block; }

  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 110;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: min(300px, 88vw);
    height: 100dvh;
    margin: 0;
    padding: 72px 20px 24px;
    background: rgba(12, 15, 13, .97);
    border-left: 1px solid var(--glass-border);
    transform: translateX(100%);
    transition: transform .28s ease;
    overflow-y: auto;
    order: unset;
    pointer-events: none;
    visibility: hidden;
  }

  .header__nav--open {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
  }

  .header__nav .nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 14px;
    font-size: 1rem;
    border-radius: 12px;
    white-space: normal;
    flex-shrink: 0;
  }

  .header__nav .nav-link:hover,
  .header__nav .nav-link--active {
    background: rgba(255, 255, 255, .06);
  }

  .header__nav .nav-link--active {
    background: rgba(255, 255, 255, .06);
  }

  .header__nav .nav-bot {
    margin-top: 16px;
  }

  .product-card__actions .btn,
  .product-card__actions .btn-add,
  .catalog-card .btn {
    min-width: 48px;
    min-height: 48px;
  }

  .btn-add {
    width: 48px;
    height: 48px;
    touch-action: manipulation;
  }

  .pay-option {
    min-height: 56px;
  }

  .steps__grid { grid-template-columns: 1fr; }

  .site-section {
    padding-left: 16px;
    padding-right: 16px;
    scroll-margin-top: calc(var(--header-h) + 20px);
  }

  .section-head--row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .section-head--row > .btn {
    align-self: flex-start;
  }

  .my-orders .my-app-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .my-orders .my-app-card__actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .cart-drawer {
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: min(88dvh, 100dvh);
    min-height: 280px;
    border-left: none;
    border-top: 1px solid var(--glass-border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: translate3d(0, 100%, 0);
    box-shadow: 0 -16px 48px rgba(0, 0, 0, .5);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .cart-drawer--open {
    transform: translate3d(0, 0, 0);
  }

  .cart-drawer__head {
    padding: 16px 20px;
  }

  .cart-drawer__body {
    padding: 12px 20px;
  }

  .cart-drawer__foot {
    padding: 16px 20px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
}
