/* Pineapple Original — Apple Dark Mode (pineapple-6 design system) */

html, body { margin: 0; padding: 0; touch-action: manipulation; -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  background: #000000;
  color: #F5F5F7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
button:focus-visible { outline: 2px solid #0A84FF; outline-offset: 2px; }
a:focus-visible { outline: 2px solid #0A84FF; outline-offset: 2px; border-radius: 4px; }
input { font-family: inherit; }
img, svg { display: block; max-width: 100%; }
a { color: #0A84FF; text-decoration: none; }

/* ─── DARK TOKENS ──────────────────────────────────────────── */
:root {
  --bg-base:        #000000;
  --bg-elevated:    #1C1C1E;
  --bg-tertiary:    #2C2C2E;
  --bg-grouped:     #1C1C1E;
  --bg-deeper:      #0F0F10;
  --text-primary:   #F5F5F7;
  --text-secondary: #A1A1A6;
  --text-tertiary:  #86868B;
  --text-quat:      #6E6E73;
  --accent:         #0A84FF;
  --accent-hover:   #409CFF;
  --warn:           #FF9F0A;
  --success:        #30D158;
  --error:          #FF453A;
  --border-subtle:  rgba(255,255,255,0.08);
  --border-card:    rgba(255,255,255,0.06);
  --border-input:   rgba(255,255,255,0.15);
  --modal-glow:     0 0 60px rgba(10,132,255,0.15);
}

/* ─── TYPOGRAPHY ───────────────────────────────────────────── */
.tight   { letter-spacing: -0.022em; }
.tighter { letter-spacing: -0.04em; }
.truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── HOVER / TRANSITIONS ──────────────────────────────────── */
.card-hover {
  transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.card-hover:hover {
  background-color: var(--bg-tertiary) !important;
  transform: translateY(-2px);
}
.btn-blue { transition: background-color .15s ease; }
.btn-blue:hover:not(:disabled) { background-color: var(--accent-hover) !important; }

/* ─── HEADER ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 46px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.header-inner .header-logo-link {
  justify-self: center;
  grid-column: 2;
}
.header-inner .header-nav {
  justify-self: end;
  grid-column: 3;
}
.header-logo-link {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--text-primary);
}
.header-logo-link .brand-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.022em;
}
.header-logo-link .brand-sub {
  font-size: 12px;
  color: var(--text-tertiary);
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.header-nav a {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
}

/* ─── HERO ─────────────────────────────────────────────────── */
.hero {
  background: var(--bg-base);
  padding: 16px 0 14px;
  text-align: center;
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.022em;
}
.hero p {
  margin: 5px auto 0;
  max-width: 540px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  font-weight: 500;
}
.hero-cta {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero .btn-pill {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
}

/* ─── FILTER BAR ───────────────────────────────────────────── */
.filter-bar {
  position: sticky;
  top: 46px;
  z-index: 10;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
}
.filter-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
/* GhostPill */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.022em;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-input);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.filter-pill:hover { background: var(--bg-elevated); }
.flag-icon {
  width: 16px;
  height: 12px;
  border-radius: 2px;
  display: block;
  flex-shrink: 0;
}
.filter-pill.active {
  background: var(--text-primary);
  color: #000000;
  border-color: var(--text-primary);
}

/* ─── CATALOG SECTION ──────────────────────────────────────── */
.catalog-section {
  background: var(--bg-base);
  padding: 8px 32px 64px;
}
.catalog-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.section-heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 32px 0 16px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

/* ─── PRODUCT CARD ─────────────────────────────────────────── */
.product-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-radius: 22px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.product-card[data-oos="true"] { opacity: 0.4; pointer-events: none; }

/* DarkB3Waves — 5:4 aspect, deep blue gradient */
.card-visual {
  width: 100%;
  aspect-ratio: 5/4;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(160deg, #0066CC 0%, #003E92 55%, #001E54 100%);
  color: #FFFFFF;
  padding: 6%;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.card-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.card-value {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(20px, 10cqi, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #FFFFFF;
}
.card-region-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-region-flag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
}
.card-apple-id {
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
}
/* ─── TILT PREVIEW (one test card) ──────────────────────────── */
.card-visual--tilt {
  transform:
    perspective(600px)
    rotateY(-8deg)
    rotateX(4deg)
    scale(1.03);
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow:
    -6px 10px 24px rgba(0, 102, 204, 0.22),
    -10px 18px 48px rgba(0, 0, 0, 0.55);
  overflow: visible;
}
.card-visual--tilt:hover {
  transform:
    perspective(600px)
    rotateY(-3deg)
    rotateX(1deg)
    scale(1.06);
  box-shadow:
    -4px 14px 32px rgba(0, 102, 204, 0.28),
    -8px 24px 60px rgba(0, 0, 0, 0.6);
}
.product-card:has(.card-visual--tilt) {
  overflow: visible;
}

.card-name {
  margin: 2px 4px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.022em;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.card-price {
  padding: 0 4px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.04em;
}

/* ─── BUTTONS ──────────────────────────────────────────────── */
/* PrimaryPill */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: -0.022em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  background: var(--accent);
  color: #FFFFFF;
  transition: background-color .15s ease;
}
.btn-pill:disabled {
  background: #3A3A3C;
  color: var(--text-tertiary);
  cursor: not-allowed;
}
.btn-pill.btn-md { padding: 11px 20px; font-size: 14px; width: 100%; }
.product-card .btn-pill { margin-top: auto; }
.btn-pill.btn-sm { padding: 6px 14px; font-size: 12px; width: auto; }
.btn-pill.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-pill:hover:not(:disabled) { background: var(--accent-hover); }
.btn-pill.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-pill.btn-outline:hover:not(:disabled) {
  background: rgba(10,132,255,0.12);
}

/* ghost pill (back link) */
.btn-ghost-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-input);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background-color .2s ease;
}
.btn-ghost-pill:hover { background: var(--bg-elevated); }

/* Telegram OIDC login button */
.tg-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #0A84FF;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease;
  white-space: nowrap;
}
.tg-login-btn:hover { background: #409CFF; }
.tg-login-btn:active { background: #0060C7; }

.tg-not-linked {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 0 6px;
  text-align: center;
}
.tg-not-linked-hint {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}
.tg-not-linked-dim {
  font-size: 11px;
  color: var(--text-tertiary, #636366);
  margin: 0;
}
.tg-open-bot-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: #1C1C1E;
  color: #fff;
  border: 1.5px solid rgba(10,132,255,0.5);
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  white-space: nowrap;
}
.tg-open-bot-btn:hover:not(:disabled) { border-color: var(--accent); background: rgba(10,132,255,0.08); }
.tg-open-bot-btn:disabled { opacity: 0.5; cursor: default; }

.back-to-top {
  display: block;
  margin: 32px auto 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 20px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}
.back-to-top:hover { background: var(--bg-tertiary); }

/* ─── MODAL OVERLAY ────────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
}
.overlay.visible { opacity: 1; pointer-events: auto; }

.modal {
  width: 100%;
  max-width: 480px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-radius: 22px;
  box-shadow: var(--modal-glow);
  padding: 22px 24px 24px;
  color: var(--text-primary);
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(16px);
  transition: transform .22s;
}
.overlay.visible .modal { transform: none; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.modal-product-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.modal-product-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-base);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal-product-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.022em;
}
.modal-product-region {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 2px;
  font-weight: 500;
}
.modal-product-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
.modal-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.modal-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  border: none;
  transition: background-color .15s ease;
}
.modal-close:hover { background: #3A3A3C; }

.modal-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0 -24px 18px;
}
.modal-section-label {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* ─── DELIVERY OPTIONS ─────────────────────────────────────── */
.delivery-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.delivery-btn {
  position: relative;
  text-align: left;
  padding: 14px 16px 14px 18px;
  border-radius: 14px;
  background: transparent;
  border: 1px solid var(--border-input);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  transition: background-color .15s ease;
}
.delivery-btn:hover { background: var(--bg-deeper); }
.delivery-btn.active { background: var(--bg-deeper); }
.delivery-btn.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}
.delivery-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.delivery-text { flex: 1; }
.delivery-label { font-size: 15px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.022em; }
.delivery-sub { font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; font-weight: 500; }
.delivery-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border-input);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color .15s ease;
}
.delivery-radio.checked { border: 2px solid var(--accent); }
.delivery-radio.checked::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ─── FORM ─────────────────────────────────────────────────── */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.field input {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border-input);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
  transition: border-color .2s ease;
  -webkit-appearance: none;
}
.field input::placeholder { color: var(--text-tertiary); }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10,132,255,.18); }
.field input.error-field { border-color: var(--error); }
.field-hint { font-size: 12px; color: var(--text-tertiary); margin-top: 5px; line-height: 1.5; }
.field-error { font-size: 12px; color: var(--error); margin-top: 5px; display: none; font-weight: 500; }
.field-error.visible { display: block; }

.tg-note {
  padding: 12px 14px;
  background: var(--bg-base);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 500;
  margin-bottom: 14px;
}

/* ─── ORDER PAGE ───────────────────────────────────────────── */
.order-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-radius: 22px;
  padding: 28px;
  max-width: 520px;
  margin: 32px auto;
  box-shadow: 0 0 40px rgba(10,132,255,.06);
}
.order-status-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.status-dot.pending   { background: var(--warn);    box-shadow: 0 0 0 3px rgba(255,159,10,.2); }
.status-dot.paid      { background: var(--success); box-shadow: 0 0 0 3px rgba(48,209,88,.2); }
.status-dot.delivered { background: var(--success); box-shadow: 0 0 0 4px rgba(48,209,88,.25); }
.status-dot.expired   { background: var(--error); }
.status-dot.cancelled { background: var(--text-tertiary); }
.status-label { font-weight: 700; font-size: 17px; letter-spacing: -0.022em; }
.status-label.pending   { color: var(--warn); }
.status-label.paid      { color: var(--success); }
.status-label.delivered { color: var(--success); }
.status-label.expired   { color: var(--error); }
.status-label.cancelled { color: var(--text-tertiary); }
.order-meta-row {
  display: flex; justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px; gap: 12px;
}
.order-meta-row:last-of-type { border-bottom: none; }
.order-meta-row .label { color: var(--text-secondary); white-space: nowrap; }
.order-meta-row .value { font-weight: 600; text-align: right; }
.payment-box {
  margin-top: 22px;
  background: var(--bg-deeper);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 20px;
}
.payment-box-title {
  font-size: 12px; font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.6px;
  margin-bottom: 14px;
}
.payment-detail { font-size: 14px; margin-bottom: 10px; color: var(--text-primary); }
.payment-detail .key { color: var(--text-secondary); font-size: 12px; font-weight: 500; }
.payment-amount-big {
  font-size: 32px; font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px;
  letter-spacing: -0.04em;
}
.payment-note {
  font-size: 13px; color: var(--text-secondary);
  margin-top: 14px; line-height: 1.65;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.timer-row { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-top: 14px; }
.timer-badge {
  background: rgba(255,69,58,.12); color: var(--error);
  padding: 4px 12px; border-radius: 8px;
  font-weight: 700; font-size: 15px;
  font-variant-numeric: tabular-nums;
  min-width: 56px; text-align: center;
}
.timer-badge.ok { background: rgba(255,159,10,.12); color: var(--warn); }
.delivered-box {
  margin-top: 22px;
  background: rgba(48,209,88,.06);
  border: 1px solid rgba(48,209,88,.2);
  border-radius: 14px; padding: 24px; text-align: center;
}
.delivered-title { font-size: 16px; font-weight: 700; color: var(--success); margin-bottom: 12px; }
.key-code {
  font-size: 20px; font-weight: 700;
  letter-spacing: 2.5px; color: var(--text-primary);
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  word-break: break-all; margin: 10px 0 16px;
}

/* ─── TOAST ────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
  border-radius: 12px; padding: 11px 22px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
  opacity: 0; transition: opacity .2s, transform .2s;
  pointer-events: none; z-index: 200;
  box-shadow: 0 4px 20px rgba(0,0,0,.40);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── VIEWS ────────────────────────────────────────────────── */
.view { display: block; }
.view[hidden] { display: none; }

/* BUG-047 pattern: class-level display overrides [hidden] by specificity.
   Same fix applied to filter pills — inline-flex (0,1,0) beats [hidden] (0,0,0). */
.filter-pill[hidden] { display: none; }

/* ─── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border-subtle);
  padding: 28px 32px;
}
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-nav { display: flex; gap: 22px; align-items: center; }
.footer-nav a { font-size: 12px; color: var(--text-secondary); text-decoration: none; }
.footer-nav a:hover { color: var(--text-primary); }
.footer-copy { font-size: 12px; color: var(--text-quat); }

/* ─── ACTIVATION PAGE ──────────────────────────────────────── */
.activation-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}
.region-warning {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 22px 24px 22px 28px;
  overflow: hidden;
  margin-top: 32px;
}
.region-warning::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--warn);
}
.region-warning-inner { display: flex; align-items: flex-start; gap: 12px; }
.region-warning-title {
  font-size: 18px; font-weight: 600;
  color: var(--text-primary); line-height: 1.3;
  letter-spacing: -0.022em;
}
.region-warning p {
  margin: 8px 0 0;
  font-size: 14px; color: var(--text-secondary);
  line-height: 1.5; font-weight: 500;
}
.step-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 22px;
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 10px;
}
.step-number {
  flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.step-title { font-size: 16px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.022em; }
.step-desc { margin: 6px 0 0; font-size: 14px; color: var(--text-secondary); line-height: 1.5; font-weight: 500; }
.activation-section-title {
  margin: 40px 0 16px;
  font-size: 22px; font-weight: 600;
  color: var(--text-primary); letter-spacing: -0.022em;
}
.region-change-block {
  position: relative;
  background: var(--bg-deeper);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 22px 24px 22px 28px;
  overflow: hidden;
  margin-top: 40px;
}
.region-change-block::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
}
.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 8px;
}
.faq-q-btn {
  width: 100%;
  padding: 18px 22px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  text-align: left; cursor: pointer; background: none; border: none;
  font-family: inherit;
}
.faq-q-text { font-size: 16px; font-weight: 500; color: var(--text-primary); letter-spacing: -0.022em; }
.faq-toggle { color: var(--accent); font-size: 22px; line-height: 1; font-weight: 300; transition: transform .2s ease; }
.faq-toggle.open { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 20px; font-size: 14px; color: var(--text-secondary); line-height: 1.55; font-weight: 500; }

/* ─── GUIDE (смена региона) ────────────────────────────────── */
.guide-intro {
  margin: 14px 0 0;
  font-size: 17px; color: var(--text-secondary);
  line-height: 1.55; font-weight: 500; max-width: 620px;
}
.guide-toc {
  margin: 28px 0 8px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.guide-toc a {
  font-size: 13px; font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  padding: 8px 14px; border-radius: 999px;
  text-decoration: none; transition: all .15s ease;
}
.guide-toc a:hover { color: var(--text-primary); border-color: var(--accent); }

.guide-step {
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 22px;
  display: flex; gap: 20px; align-items: flex-start;
  margin-bottom: 14px;
}
.guide-step-body { flex: 1; min-width: 0; }
.guide-step-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.guide-step .step-number { width: 30px; height: 30px; font-size: 14px; }
.guide-step-title { font-size: 17px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.022em; }
.guide-step-desc { font-size: 14.5px; color: var(--text-secondary); line-height: 1.55; font-weight: 500; }
.guide-step-desc strong { color: var(--text-primary); font-weight: 600; }
.guide-shot {
  flex-shrink: 0;
  width: 168px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border-card);
  background: #000;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
}
.guide-shot img { display: block; width: 100%; height: auto; }

@media (max-width: 560px) {
  .guide-step { flex-direction: column; gap: 16px; }
  .guide-shot { width: 200px; align-self: center; }
}

.guide-note {
  background: var(--bg-deeper);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 6px 0 28px;
  font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; font-weight: 500;
}
.guide-note strong { color: var(--text-primary); font-weight: 600; }

.guide-cta {
  margin-top: 44px;
  background: linear-gradient(135deg, rgba(10,132,255,0.14), rgba(10,132,255,0.04));
  border: 1px solid rgba(10,132,255,0.3);
  border-radius: 20px;
  padding: 32px 28px; text-align: center;
}
.guide-cta h3 { margin: 0 0 8px; font-size: 22px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.022em; }
.guide-cta p { margin: 0 0 20px; font-size: 15px; color: var(--text-secondary); font-weight: 500; }

/* ─── STATE BLOCKS ─────────────────────────────────────────── */
.state-block { padding: 60px 20px; text-align: center; color: var(--text-secondary); }
.state-block .big { font-size: 40px; margin-bottom: 16px; }

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .catalog-section { padding: 8px 20px 48px; }
  .filter-bar { padding: 10px 0; }
  .filter-bar-inner { padding: 0 20px; }
  .header-inner { padding: 0 20px; }
  .hero-inner { padding: 0 20px; }
}
@media (max-width: 640px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .header-nav { display: none; }
  .catalog-section { padding: 8px 16px 40px; }
  .hero { padding: 28px 0 20px; }
  .hero-inner { padding: 0 16px; }
  .header-inner { padding: 0 16px; }
  .filter-bar-inner { padding: 0 16px; }
  .order-card { margin: 20px 16px; }
}
@media (max-width: 380px) {
  .catalog-grid { grid-template-columns: 1fr; }
}

/* ─── CART FAB ─────────────────────────────────────────────── */
.cart-fab {
  position: fixed;
  bottom: 48px;
  right: max(16px, calc((100vw - 1180px) / 2 - 60px));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cart-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.5); }
.cart-fab:active { transform: scale(0.96); }
.cart-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--warn);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s ease;
  border: 2px solid var(--bg-base);
  pointer-events: none;
}
.cart-fab-badge.visible { opacity: 1; }
@media (max-width: 540px) {
  .cart-fab { bottom: 84px; right: 16px; width: 52px; height: 52px; }
}

/* ─── CART OVERLAY ─────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease-out;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

/* ─── CART DRAWER ──────────────────────────────────────────── */
.cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: min(420px, 100vw);
  background: var(--bg-elevated);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -4px 0 40px rgba(0,0,0,.5);
  z-index: 160;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease-out;
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 18px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.cart-drawer-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.cart-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background-color .15s ease;
  flex-shrink: 0;
}
.cart-close:hover { background: #3A3A3C; }

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.cart-drawer-footer {
  padding: 18px 22px env(safe-area-inset-bottom, 20px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
  padding-bottom: max(20px, env(safe-area-inset-bottom, 20px));
}
.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-total-label { font-size: 15px; color: var(--text-secondary); font-weight: 500; }
.cart-total-amount { font-size: 22px; color: var(--text-primary); letter-spacing: -0.04em; }

/* ─── CART ITEM ────────────────────────────────────────────── */
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--border-subtle);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-thumb {
  width: 52px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(160deg, #0066CC 0%, #003E92 55%, #001E54 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.04em;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.022em;
}
.cart-item-price {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 3px;
  font-weight: 500;
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background-color .15s ease;
  line-height: 1;
  flex-shrink: 0;
}
.qty-btn:hover { background: #3A3A3C; }
.qty-display {
  width: 30px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.cart-item-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  margin-left: 6px;
  transition: color .15s ease, background-color .15s ease;
  flex-shrink: 0;
}
.cart-item-remove:hover { color: var(--error); background: rgba(255,69,58,.1); }

/* ─── CART EMPTY STATE ─────────────────────────────────────── */
.cart-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-secondary);
}
.cart-empty-icon { font-size: 40px; margin-bottom: 16px; }
.cart-empty-title { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; letter-spacing: -0.022em; }
.cart-empty-sub { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 22px; line-height: 1.5; }

/* ─── CARD QUANTITY SELECTOR (on product card) ─────────────── */
.card-qty-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: auto;
}
.card-qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background-color .15s ease;
  line-height: 1;
  flex-shrink: 0;
}
.card-qty-btn:hover { background: #3A3A3C; }
.card-qty-display {
  width: 36px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.022em;
}

/* ─── CART RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 640px) {
  .cart-drawer { width: 100vw; border-left: none; }
}

/* ─── CHECKOUT FORM (in cart drawer footer) ────────────────── */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.checkout-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.checkout-delivery-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.checkout-del-btn {
  flex: 1;
  padding: 10px 8px;
  border-radius: 12px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color .15s, border-color .15s, color .15s;
}
.checkout-del-btn.active {
  background: rgba(10, 132, 255, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}
.checkout-del-icon { margin-right: 4px; }
.checkout-email-input {
  background: var(--bg-tertiary);
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  padding: 11px 14px;
  color: var(--text-primary);
  font-size: 16px;
  outline: none;
  transition: border-color .15s;
}
.checkout-email-input:focus {
  border-color: var(--accent);
}
.checkout-email-input::placeholder {
  color: var(--text-secondary);
}

/* ─── INLINE CHECKOUT (in cart-drawer-body) ────────────────── */
.cart-inline-checkout {
  padding: 0 22px 24px;
}
.checkout-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 0 16px;
}
/* Cart drawer body must scroll all content including inline checkout form.
   On mobile, when keyboard opens the viewport shrinks — body flex:1 + overflow-y:auto
   ensures the form scrolls rather than being clipped behind the keyboard. */
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0 0;
  -webkit-overflow-scrolling: touch;
}
/* Footer in one-screen mode: just total + pay button, no overflow */
.cart-drawer-footer {
  flex-shrink: 0;
}

/* ─── DOCUMENTS PAGE ───────────────────────────────────────── */
.docs-page {
  max-width: 520px;
  margin: 32px auto;
  padding: 0 24px 64px;
}
.docs-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.docs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.docs-link {
  display: block;
  padding: 16px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: background-color .15s ease;
}
.docs-link:hover { background: var(--bg-tertiary); }
.docs-link[aria-disabled="true"] {
  color: var(--text-tertiary);
  cursor: default;
  pointer-events: none;
}
.docs-note {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ─── MINI APP (Telegram WebApp) ───────────────────────────── */
body.mini-app .site-header { display: none; }
body.mini-app .hero { display: none; }
body.mini-app #filter-bar { top: 0; }
body.mini-app .hero-tg-btn { display: none; }
/* In Mini App the pay button is Telegram.MainButton (always above keyboard).
   Hide the HTML pay button so it does not duplicate. */
body.mini-app #co-pay-btn { display: none; }
/* Hide cart FAB in Mini App — replaced by tab-bar cart tab */
body.mini-app .cart-fab { display: none; }
/* Push main content up from tab-bar */
body.mini-app main { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
/* Hide back-to-top on Cart and Help tabs (only show on Catalog) */
body.mini-app:not(.view-catalog-active) .back-to-top { display: none; }

/* ─── TABBAR (Mini App only) ─────────────────────────────── */
.tabbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(52px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(28,28,30,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--border-subtle);
  z-index: 40;
  align-items: stretch;
}
body.mini-app .tabbar { display: flex; }

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0;
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color .15s ease;
  -webkit-tap-highlight-color: transparent;
  min-height: 52px;
}
.tab-item.active { color: var(--accent); }
.tab-item:active { opacity: 0.7; }

.tab-icon { flex-shrink: 0; }

.tab-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}
.tab-badge.visible { display: flex; }

.tab-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
}

/* ─── HELP PAGE ─────────────────────────────────────────── */
.help-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 16px;
}
.help-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 20px;
}
.help-section {
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 10px;
}
.help-section-btn {
  width: 100%;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}
.help-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.022em;
}
.help-section-arrow {
  color: var(--text-tertiary);
  font-size: 20px;
  line-height: 1;
  font-weight: 300;
  transition: transform .2s ease;
  flex-shrink: 0;
}
.help-section-btn[aria-expanded="true"] .help-section-arrow { transform: rotate(90deg); }
.help-section-body {
  padding: 0 20px 20px;
  border-top: 1px solid var(--border-subtle);
}
.help-sub-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 16px 0 8px;
}
.help-full-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}
.help-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 8px 0 14px;
}
.help-docs-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 10px;
}
.help-docs-link {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px solid var(--border-subtle);
}
.help-docs-link:last-child { border-bottom: none; }
.help-docs-link[aria-disabled="true"] {
  color: var(--text-tertiary);
  cursor: default;
  pointer-events: none;
}
.help-docs-note {
  font-size: 12px;
  color: var(--text-tertiary);
  margin: 0;
  line-height: 1.5;
}
.help-support-btn { cursor: pointer; }
.help-back-row { margin-bottom: 16px; }

/* Step cards in help page */
.help-page .step-card {
  margin-bottom: 8px;
}
.help-page .region-warning {
  margin-top: 8px;
}

/* ─── CART VIEW (Mini App tab) ───────────────────────────── */
/* #view-cart is a .view (display:block). Inner structure handles layout. */
.cart-view-inner {
  overflow-y: auto;
  padding: 12px 0 0;
  -webkit-overflow-scrolling: touch;
}
.cart-view-footer {
  position: sticky;
  bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  padding: 18px 22px;
  padding-bottom: max(18px, env(safe-area-inset-bottom, 18px));
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-base);
  z-index: 5;
}

/* ─── FEEDBACK MODAL ─────────────────────────────────────── */
.feedback-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}
.feedback-modal {
  width: 100%;
  max-width: 480px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-radius: 22px;
  box-shadow: var(--modal-glow);
  padding: 22px 24px 24px;
  color: var(--text-primary);
  max-height: 90vh;
  overflow-y: auto;
}
.feedback-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.feedback-modal-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.022em;
}
.feedback-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
  transition: background-color .15s ease;
}
.feedback-close:hover { background: #3A3A3C; }
.feedback-textarea {
  width: 100%;
  min-height: 120px;
  background: var(--bg-base);
  border: 1px solid var(--border-input);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
  resize: vertical;
  transition: border-color .2s ease;
  -webkit-appearance: none;
}
.feedback-textarea::placeholder { color: var(--text-tertiary); }
.feedback-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10,132,255,.18); }
.feedback-char-hint {
  font-size: 11.5px;
  color: var(--text-tertiary);
  text-align: right;
  margin: 4px 0 12px;
}
.feedback-contact-input {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border-input);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
  transition: border-color .2s ease;
  -webkit-appearance: none;
  margin-bottom: 16px;
}
.feedback-contact-input::placeholder { color: var(--text-tertiary); }
.feedback-contact-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10,132,255,.18); }
.feedback-actions {
  display: flex;
  justify-content: flex-end;
}
.feedback-success {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(48,209,88,.1);
  border: 1px solid rgba(48,209,88,.25);
  border-radius: 12px;
  font-size: 14px;
  color: var(--success);
  font-weight: 600;
  text-align: center;
}

/* ─── INLINE FEEDBACK (view-help) ───────────────────────── */
.help-feedback-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 10px;
}
.help-feedback-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.022em;
  margin-bottom: 6px;
}
.help-feedback-hint {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 12px;
}
.help-feedback-textarea {
  width: 100%;
  min-height: 90px;
  background: var(--bg-base);
  border: 1px solid var(--border-input);
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
  resize: vertical;
  transition: border-color .2s ease;
  -webkit-appearance: none;
  box-sizing: border-box;
}
.help-feedback-textarea::placeholder { color: var(--text-tertiary); }
.help-feedback-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10,132,255,.18); }
.help-feedback-char {
  font-size: 11.5px;
  color: var(--text-tertiary);
  text-align: right;
  margin: 4px 0 12px;
}
.help-feedback-success {
  margin-top: 12px;
  padding: 11px 14px;
  background: rgba(48,209,88,.1);
  border: 1px solid rgba(48,209,88,.25);
  border-radius: 12px;
  font-size: 14px;
  color: var(--success);
  font-weight: 600;
  text-align: center;
}

/* ─── MINI-APP OVERRIDES ─────────────────────────────────── */
/* Правка A: поднять тост выше tab-bar (52px) + safe area + 8px зазор */
body.mini-app .toast {
  bottom: calc(52px + env(safe-area-inset-bottom, 0px) + 8px);
}
/* Правка B: скрывать site-footer в mini-app — навигация через tab-bar */
body.mini-app .site-footer { display: none; }
/* Правка C: предотвратить вертикальный bounce/swipe-dismiss (fallback для TG < 7.7) */
body.mini-app { overscroll-behavior-y: none; }

/* ─── LEGAL PAGES (oferta, privacy, returns) ───────────────── */
.legal-body {
  margin-top: 32px;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.7;
}
.legal-body h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 10px;
  letter-spacing: -0.01em;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p {
  margin: 0 0 12px;
  color: var(--text-secondary);
}
.legal-body ul {
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--text-secondary);
}
.legal-body ul li { margin-bottom: 4px; }
.legal-body a {
  color: var(--accent);
  text-decoration: none;
}
.legal-body a:hover { text-decoration: underline; }
.legal-body strong { color: var(--text-primary); }
