* { -webkit-tap-highlight-color: transparent; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  overscroll-behavior: none;
}
:root {
  --app-bg: #06080f;
  --app-text: #e8f4ff;
  --app-accent: #00f2ff;
  --app-accent-green: #39ff14;
  --app-accent-muted: rgba(0, 242, 255, 0.42);
  --app-surface: rgba(10, 20, 36, 0.94);
  --app-surface-elevated: rgba(14, 26, 44, 0.98);
  --app-border-warm: rgba(0, 242, 255, 0.22);
  --app-footer-bar: rgba(4, 8, 18, 0.97);
  --app-slider-letterbox: var(--app-bg);
  --app-text-muted: rgba(200, 220, 240, 0.72);
  --app-title-watermark: rgba(0, 242, 255, 0.08);
  --app-title-shadow: 0 0 24px rgba(0, 242, 255, 0.15);
  --app-heading-shadow: 0 0 12px rgba(57, 255, 20, 0.2);
  --app-text-shadow-ui: 0 1px 3px rgba(0, 0, 0, 0.6);
  --app-card-bg: rgba(10, 22, 40, 0.72);
  --app-card-bg-active: rgba(14, 30, 52, 0.88);
  --app-card-border: rgba(0, 242, 255, 0.18);
  --app-card-solid: rgba(10, 20, 36, 0.96);
  --app-card-solid-active: rgba(16, 30, 50, 1);
  --app-img-placeholder: rgba(6, 12, 22, 0.8);
  --app-footer-bg: rgba(4, 8, 18, 0.88);
  --app-footer-border: rgba(0, 242, 255, 0.2);
  --app-footer-glass-blur: 22px;
  --app-footer-active-pill: rgba(0, 242, 255, 0.14);
  --app-footer-text: rgba(160, 190, 220, 0.75);
  --app-footer-text-active: #e8f4ff;
  --app-info-box: rgba(10, 22, 40, 0.92);
  --app-info-text: #c8dcf0;
  --app-info-muted: rgba(140, 170, 200, 0.7);
  --app-link: #00f2ff;
  --app-modal-bg: rgba(8, 16, 30, 0.97);
  --app-modal-text: #c8dcf0;
  --app-modal-heading: #e8f4ff;
  --app-modal-border: rgba(0, 242, 255, 0.2);
  --app-modal-btn: rgba(12, 24, 42, 0.95);
  --app-slide-dot: rgba(0, 242, 255, 0.2);
  --app-slide-dot-active: rgba(57, 255, 20, 0.65);
  --app-nav-btn-bg: rgba(6, 14, 28, 0.85);
  --app-nav-btn-bg-active: rgba(10, 22, 40, 0.95);
  --app-nav-btn-color: #e8f4ff;
  --app-chat-secondary: rgba(12, 24, 42, 0.9);
  --app-chat-secondary-active: rgba(16, 32, 54, 1);
  --app-badge-bg: rgba(6, 14, 28, 0.9);
  --app-badge-text: #39ff14;
  --app-elev-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), 0 0 1px rgba(0, 242, 255, 0.12);
  --app-elev-shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.5);
  --app-modal-elev: 0 12px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 242, 255, 0.15);
  --app-topbar-bg: rgba(6, 12, 24, 0.98);
  --app-topbar-text: #39ff14;
  --app-topbar-border: rgba(0, 242, 255, 0.28);
  --app-glow-cyan: 0 0 18px rgba(0, 242, 255, 0.35);
  --app-glow-green: 0 0 16px rgba(57, 255, 20, 0.4);
  /* Outfit: обычный 0 без точки/перечёркивания (JetBrains/IBM Plex Mono — dotted/slashed zero) */
  --app-font-mono: 'Outfit', system-ui, sans-serif;
  /* Высота верхнего inset (safe-area; шапка Coder Master убрана) */
  --app-topbar-h: env(safe-area-inset-top, 0px);
  --app-footer-h: calc(88px + env(safe-area-inset-bottom, 0px));
  --clients-menu-edge-inset: 10px;
  --footer-fab-d: 58px;
  --footer-fab-r: calc(var(--footer-fab-d) / 2);
  /* Подъём FAB: 0 = линия футера проходит по центру круга */
  --footer-fab-lift: 0px;
}
html[data-app-theme="light"] {
  --app-bg: #ffffff;
  --app-text: #000000;
  --app-text-muted: rgba(17, 17, 17, 0.75);
  --app-title-watermark: rgba(0, 0, 0, 0.12);
  --app-title-shadow: none;
  --app-heading-shadow: none;
  --app-text-shadow-ui: none;
  --app-card-bg: rgba(240, 242, 246, 0.96);
  --app-card-bg-active: rgba(225, 228, 234, 0.98);
  --app-card-border: rgba(0, 0, 0, 0.1);
  --app-card-solid: rgba(245, 246, 248, 0.98);
  --app-card-solid-active: rgba(235, 237, 241, 1);
  --app-img-placeholder: rgba(0, 0, 0, 0.06);
  --app-footer-bg: rgba(255, 255, 255, 0.52);
  --app-footer-border: rgba(0, 0, 0, 0.1);
  --app-footer-glass-blur: 22px;
  --app-footer-active-pill: rgba(0, 0, 0, 0.08);
  --app-footer-text: #555555;
  --app-footer-text-active: #000000;
  --app-info-box: rgba(245, 246, 248, 0.98);
  --app-info-text: #333333;
  --app-info-muted: #777777;
  --app-link: #0066cc;
  --app-modal-bg: rgba(255, 255, 255, 0.98);
  --app-modal-text: #333333;
  --app-modal-heading: #000000;
  --app-modal-border: rgba(0, 0, 0, 0.1);
  --app-modal-btn: rgba(238, 240, 244, 1);
  --app-slide-dot: rgba(0, 0, 0, 0.2);
  --app-slide-dot-active: rgba(0, 0, 0, 0.5);
  --app-nav-btn-bg: rgba(255, 255, 255, 0.88);
  --app-nav-btn-bg-active: rgba(255, 255, 255, 1);
  --app-nav-btn-color: #000000;
  --app-chat-secondary: rgba(230, 232, 236, 0.96);
  --app-chat-secondary-active: rgba(215, 218, 224, 1);
  --app-badge-bg: rgba(255, 255, 255, 0.92);
  --app-badge-text: #000000;
  --app-elev-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  --app-elev-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.1);
  --app-modal-elev: 0 12px 40px rgba(0, 0, 0, 0.15);
  --app-topbar-bg: #ffffff;
  --app-topbar-text: #000000;
  --app-topbar-border: #000000;
}
body {
  background: linear-gradient(165deg, #04060c 0%, #081420 38%, #060c18 72%, #040810 100%);
  background-color: var(--app-bg);
  color: var(--app-text);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1, "zero" 0;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(0, 242, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 20%, transparent 85%);
}
html.app-main-locked,
body.app-main-locked {
  overflow: hidden;
  overscroll-behavior: none;
}
body.app-main-locked {
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
}
@supports (-webkit-touch-callout: none) {
  body {
    min-height: -webkit-fill-available;
  }
  body.app-main-locked {
    max-height: -webkit-fill-available;
  }
}
.bg-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12em;
  position: fixed;
  top: calc(50% - 23px + 38px);
  left: 50%;
  transform: translate(-50%, -50%) translateZ(0);
  -webkit-transform: translate(-50%, -50%) translateZ(0);
  z-index: 0;
  pointer-events: none;
  text-align: center;
  width: min(92vw, 520px);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background: transparent;
}
.bg-title-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  gap: 0.5em;
}
.bg-title-shop,
.bg-title-name {
  font-weight: 800;
  font-family: var(--app-font-mono);
  color: var(--app-title-watermark);
  text-shadow: var(--app-title-shadow);
  box-sizing: border-box;
}
.bg-title-shop {
  flex: 1;
  font-size: clamp(1.35em, 6.5vmin, 2.5em);
  letter-spacing: 0.28em;
  line-height: 1.1;
}
.bg-title-shop:first-child {
  text-align: left;
}
.bg-title-shop:last-child {
  text-align: right;
}
.bg-title-name {
  font-size: clamp(1.6em, 8vmin, 3em);
  letter-spacing: 0.12em;
  line-height: 1.15;
  width: 100%;
  text-align: center;
}
.app-pages-root {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}
.app-pages-root > .app-page-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.26s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.26s;
  z-index: 1;
  overflow: hidden;
}
.app-pages-root > .app-page-layer.page-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.26s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
  z-index: 10;
}
/* Скролл: каталог, отзывы, заказ, информация */
.app-pages-root > .app-page-layer.category-page-layer,
.app-pages-root > .app-page-layer.reviews-page,
.app-pages-root > .app-page-layer.order-page,
.app-pages-root > #info-page.app-page-layer {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.app-pages-root > .app-page-layer.reviews-page {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.app-pages-root > .app-page-layer.reviews-page::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
/* Шапка убрана — оставлен только safe-area через --app-topbar-h */
.app-top-bar {
  display: none !important;
}
.header {
  display: none;
}
.header h1 {
  font-size: 1.5em;
  font-weight: bold;
  letter-spacing: 1px;
  color: var(--app-text);
  text-shadow: var(--app-text-shadow-ui);
  margin: 0;
}
.product-grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 10px;
  padding-left: max(10px, env(safe-area-inset-left, 0px));
  padding-right: max(10px, env(safe-area-inset-right, 0px));
  flex: 1;
  min-height: 0;
  overflow: hidden;
  margin-top: calc(8px + env(safe-area-inset-top, 0px));
  margin-bottom: calc(94px + env(safe-area-inset-bottom, 0px));
  position: relative;
  z-index: 1;
  gap: clamp(12px, 3vw, 18px);
}
/* Верхний ряд с Weed и Hash */
.product-row-top {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 10px;
  margin-bottom: 0;
  margin-top: 15px;
}
/* Нижний ряд: клиенты 3 и 4 */
.product-row-bottom {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  gap: 10px;
  margin-top: 0;
  position: relative;
}
.product-row-bottom .product-card {
  width: calc(50% - 5px);
  max-width: calc(50% - 5px);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.product-card {
  background-color: var(--app-card-solid);
  border-radius: 12px;
  width: calc(50% - 5px);
  margin: 0;
  padding: 7px 5px;
  min-height: 100px;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  position: relative;
  border: 1px solid var(--app-card-border);
  box-shadow: var(--app-elev-shadow);
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}
/* Верхний ряд: карточки */
.product-row-top {
  align-items: stretch;
}
.product-row-top .product-card {
  width: calc(50% - 5px);
  max-width: calc(50% - 5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
#menu-page .product-row-top .product-card,
#menu-page .product-row-bottom .product-card {
  align-items: stretch;
  justify-content: flex-start;
}
#menu-page .product-card[data-product="usa"] h3 {
  font-size: 0.7em;
  line-height: 1.2;
}
#menu-page .product-card[data-product="usa"] h3 small {
  font-size: 0.85em;
  opacity: 0.9;
}
.product-card:active {
  transform: scale(0.97);
  background-color: var(--app-card-solid-active);
  box-shadow: 0 0 18px rgba(0, 242, 255, 0.1);
}
/* Баннер "Sold Out" */
.product-card {
  position: relative;
}
.sold-out-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.78);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
.sold-out-banner span {
  color: #fff;
  font-size: 1.5em;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.product-card.sold-out {
  cursor: not-allowed;
}
.product-card.sold-out:active {
  transform: none;
}
/* Модальное окно */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 10200;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.modal-overlay.show {
  display: flex;
}
#checkout-notice-modal.show {
  z-index: 10350;
}
#portfolio-lock-modal.show {
  z-index: 10360;
  display: block;
  overflow: hidden;
  touch-action: none;
}
#portfolio-lock-modal.show .portfolio-lock-modal-content {
  position: fixed;
  left: 50%;
  margin: 0;
  z-index: 10361;
  transform: translateX(-50%);
}
#portfolio-warn-modal.show {
  z-index: 10358;
}
#order-done-modal.show {
  z-index: 10340;
}
.review-form-modal {
  position: relative;
  text-align: center;
}
#review-feedback-modal[hidden] {
  display: none !important;
}
#review-feedback-modal.show {
  z-index: 10355;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: max(7vh, calc(env(safe-area-inset-top, 0px) + 32px));
  padding-bottom: max(18vh, env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#review-feedback-modal.keyboard-open.show {
  padding-top: max(3vh, calc(env(safe-area-inset-top, 0px) + 16px));
}
#review-feedback-modal .review-form-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--app-modal-border);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: var(--app-text-muted);
  font-size: 1.15em;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}
#review-feedback-modal .review-form-close:active {
  transform: scale(0.96);
}
#review-feedback-modal .review-form-intro {
  margin: 0 0 4px;
  font-size: 0.92em;
  line-height: 1.45;
}
#review-feedback-modal .review-form {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#review-feedback-modal .review-form-textarea,
#review-feedback-modal .review-form-rating-label,
#review-feedback-modal .review-form-stars,
#review-feedback-modal .review-form-error {
  width: 100%;
  align-self: stretch;
}
#review-feedback-modal .review-form-textarea {
  display: block;
  min-height: 104px;
  max-height: 160px;
  margin: 12px 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--app-modal-border);
  background: var(--app-card-bg) !important;
  color: var(--app-text) !important;
  -webkit-text-fill-color: var(--app-text) !important;
  font: inherit;
  font-size: 0.95em;
  line-height: 1.45;
  resize: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}
#review-feedback-modal .review-form-textarea::placeholder {
  color: var(--app-text-muted);
  opacity: 0.85;
}
#review-feedback-modal .review-form-textarea:focus {
  outline: none;
  border-color: rgba(0, 242, 255, 0.45);
  box-shadow: 0 0 0 2px rgba(0, 242, 255, 0.12);
}
#review-feedback-modal .review-form-rating-label {
  margin: 0 0 8px;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--app-text-muted);
}
#review-feedback-modal .review-form-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 14px;
  touch-action: manipulation;
}
#review-feedback-modal .review-form-star {
  all: unset;
  box-sizing: border-box;
  width: 46px;
  height: 46px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.35rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.28);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color 0.12s ease, transform 0.12s ease, text-shadow 0.12s ease;
}
#review-feedback-modal .review-form-star.is-active,
#review-feedback-modal .review-form-stars[data-rating="1"] .review-form-star:nth-child(-n+1),
#review-feedback-modal .review-form-stars[data-rating="2"] .review-form-star:nth-child(-n+2),
#review-feedback-modal .review-form-stars[data-rating="3"] .review-form-star:nth-child(-n+3),
#review-feedback-modal .review-form-stars[data-rating="4"] .review-form-star:nth-child(-n+4),
#review-feedback-modal .review-form-stars[data-rating="5"] .review-form-star:nth-child(-n+5) {
  color: #ffd700;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.55);
}
#review-feedback-modal .review-form-star:active {
  transform: scale(1.1);
}
#review-feedback-modal .review-form-error {
  margin: 0 0 10px;
  font-size: 0.82em;
  line-height: 1.35;
  color: #ff7b7b;
  text-align: center;
}
#review-feedback-modal .review-form-error[hidden] {
  display: none !important;
}
#review-feedback-modal .review-form-submit {
  display: block;
  width: auto;
  min-width: 148px;
  max-width: 72%;
  margin: 0 auto;
  min-height: 48px;
}
#review-feedback-modal .review-form-submit:disabled {
  opacity: 0.5;
  pointer-events: none;
}
.review-author-mode-step {
  margin-top: 14px;
  padding-top: 4px;
}
.review-author-mode-step[hidden] {
  display: none !important;
}
.review-author-mode-title {
  margin: 0 0 14px;
  font-size: 0.92em;
  line-height: 1.45;
  font-weight: 600;
  color: var(--app-text);
  text-align: center;
}
.review-author-mode-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.review-author-mode-btn {
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--app-card-border);
  background: var(--app-nav-btn-bg);
  color: var(--app-text);
  font-family: inherit;
  font-size: 0.92em;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.review-author-mode-btn:active {
  transform: scale(0.98);
  opacity: 0.9;
}
.review-author-mode-btn--public {
  border-color: rgba(0, 242, 255, 0.35);
  background: rgba(0, 242, 255, 0.1);
}
.review-author-mode-btn--anon {
  border-color: rgba(255, 255, 255, 0.12);
}
html.theme-light .review-author-mode-btn--public {
  border-color: rgba(0, 120, 180, 0.35);
  background: rgba(0, 120, 180, 0.08);
}
html.theme-light #review-feedback-modal .review-form-star {
  color: rgba(0, 0, 0, 0.22);
}
html.theme-light #review-feedback-modal .review-form-star.is-active,
html.theme-light #review-feedback-modal .review-form-stars[data-rating="1"] .review-form-star:nth-child(-n+1),
html.theme-light #review-feedback-modal .review-form-stars[data-rating="2"] .review-form-star:nth-child(-n+2),
html.theme-light #review-feedback-modal .review-form-stars[data-rating="3"] .review-form-star:nth-child(-n+3),
html.theme-light #review-feedback-modal .review-form-stars[data-rating="4"] .review-form-star:nth-child(-n+4),
html.theme-light #review-feedback-modal .review-form-stars[data-rating="5"] .review-form-star:nth-child(-n+5) {
  color: #d4a000;
  text-shadow: none;
}
.modal-content {
  background-color: var(--app-modal-bg);
  border-radius: 16px;
  padding: 30px 20px;
  max-width: 85%;
  text-align: center;
  box-shadow: var(--app-modal-elev);
  border: 1px solid var(--app-modal-border);
}
.modal-content h3 {
  color: var(--app-modal-heading);
  font-size: 1.3em;
  margin: 0 0 20px 0;
  text-shadow: var(--app-text-shadow-ui);
}
.modal-content p {
  color: var(--app-modal-text);
  font-size: 1em;
  line-height: 1.6;
  margin: 0;
  text-shadow: var(--app-text-shadow-ui);
}
.modal-close-btn {
  background-color: var(--app-modal-btn);
  color: var(--app-text);
  border: none;
  padding: 12px 30px;
  min-height: 44px;
  border-radius: 8px;
  margin-top: 20px;
  cursor: pointer;
  font-size: 1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  transition: all 0.2s ease;
}
.modal-close-btn:active {
  transform: scale(0.98);
  filter: brightness(0.95);
}
/* Окно Chat: одна строка Telegram (URL = CONFIG.chatUrl, как CHAT_URL в .env) */
.chat-modal-content {
  max-width: 92%;
  width: 100%;
  padding: 22px 18px 20px;
  text-align: left;
}
.chat-modal-content h3 {
  text-align: center;
  margin-bottom: 16px;
  font-size: 1.15em;
}
.chat-modal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 18px;
}
.chat-modal-row {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px 14px;
  border: none;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--app-text);
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease, transform 0.15s ease;
}
.chat-modal-row:active {
  transform: scale(0.99);
  background: rgba(0, 0, 0, 0.48);
}
.chat-modal-tg-ico {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2aabee;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-modal-tg-ico svg {
  width: 22px;
  height: 22px;
  display: block;
  margin-left: 2px;
}
.chat-modal-row-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  justify-content: center;
}
.chat-modal-row-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--app-text-muted);
  text-transform: uppercase;
}
.chat-modal-row-handle {
  font-size: 1rem;
  font-weight: 800;
  color: var(--app-text);
  word-break: break-all;
}
.chat-modal-row-flag {
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
}
.chat-modal-content .modal-close-btn {
  width: 100%;
  margin-top: 4px;
}
.social-modal-reviews-btn {
  width: 100%;
  margin: 0 0 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 242, 255, 0.38);
  background: rgba(0, 242, 255, 0.12);
  color: var(--app-text);
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease, transform 0.15s ease;
}
.social-modal-reviews-btn:active {
  transform: scale(0.99);
  background: rgba(0, 242, 255, 0.2);
}
.modal-accent-btn {
  width: 100%;
  margin: 0 0 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 242, 255, 0.45);
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.22), rgba(57, 255, 20, 0.1));
  color: var(--app-text);
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
.modal-accent-btn:active {
  transform: scale(0.99);
  filter: brightness(0.95);
}
html.theme-light .social-modal-reviews-btn {
  background: rgba(0, 160, 180, 0.1);
  border-color: rgba(0, 160, 180, 0.35);
}
html.theme-light .chat-modal-row {
  background: rgba(0, 0, 0, 0.06) !important;
}
html.theme-light .chat-modal-row:active {
  background: rgba(0, 0, 0, 0.1) !important;
}
.order-page .order-intro {
  font-size: 0.85em;
  color: var(--app-info-muted);
  margin: 0 0 14px;
  text-align: center;
}
.order-sections {
  padding: 0 4px 28px;
  overflow: visible;
}
.order-block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 12px;
  font-size: 0.72em;
  font-weight: 800;
  font-family: var(--app-font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--app-accent);
  text-shadow: var(--app-glow-cyan);
}
.order-block-title:first-child { margin-top: 4px; }
.order-block-hint {
  margin: -4px 2px 12px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--app-text-muted);
}
.order-block-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--app-card-border);
}
/* Заголовок со сворачиванием: линия — реальный span, кнопка справа от неё */
.order-block-title--toggle::after { display: none; }
.order-block-title--toggle .order-block-label { flex: 0 0 auto; }
.order-block-rule {
  flex: 1;
  height: 1px;
  background: var(--app-card-border);
}
.order-group-toggle {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--app-card-border);
  background: var(--app-card-solid);
  color: var(--app-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.order-group-toggle svg {
  width: 14px;
  height: 14px;
  display: block;
  transition: transform 0.25s ease;
}
.order-block-title--toggle.is-collapsed .order-group-toggle svg { transform: rotate(180deg); }
.order-group-toggle:active { transform: scale(0.9); }
/* Счётчик скрытых позиций (виден только когда группа свёрнута) */
.order-group-count {
  display: none;
  flex: 0 0 auto;
  font-family: var(--app-font-mono);
  font-size: 0.95em;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--app-info-muted);
  text-shadow: none;
}
.order-block-title--toggle.is-collapsed .order-group-count { display: inline-block; }
/* Плавное сворачивание: анимируем высоту контейнера (max-height ставит JS в px) */
.order-items { transition: max-height 0.34s ease; will-change: max-height; }
/* Версии витрины-бота — крупные карточки */
.order-versions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.order-version-card {
  width: 100%;
  margin: 0;
  padding: 16px 16px 16px 16px;
  border: 1px solid var(--app-card-border);
  border-radius: 14px;
  background: var(--app-card-solid);
  color: var(--app-text);
  text-align: left;
  cursor: pointer;
  position: relative;
  box-shadow: var(--app-elev-shadow);
  transition: transform 0.18s, background-color 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.order-version-card.is-premium {
  border-color: rgba(57, 255, 20, 0.45);
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.12), var(--app-elev-shadow);
}
.order-version-card:active {
  transform: scale(0.985);
  background: var(--app-card-solid-active);
}
.order-version-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.order-version-ico { font-size: 1.4em; line-height: 1; }
.order-version-name {
  margin: 0;
  font-size: 1.16em;
  font-weight: 800;
  color: var(--app-text);
}
.order-version-sub {
  margin: -2px 0 10px;
  padding-left: calc(1.4em + 10px);
  font-size: 0.78em;
  line-height: 1.35;
  color: var(--app-info-text);
}
.order-version-tag {
  margin-left: auto;
  font-size: 0.66em;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 242, 255, 0.12);
  color: var(--app-accent);
  white-space: nowrap;
}
.order-version-card ul {
  margin: 0;
  padding-left: 18px;
}
.order-version-card li {
  font-size: 0.9em;
  line-height: 1.5;
  color: var(--app-info-text);
}
/* Услуги — список строк */
.order-items {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.order-item {
  position: relative;
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid var(--app-card-border);
  border-radius: 12px;
  background: var(--app-card-solid);
  color: var(--app-text);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--app-elev-shadow-sm);
  transition: transform 0.16s, background-color 0.16s;
  -webkit-tap-highlight-color: transparent;
}
.order-item:active {
  transform: scale(0.985);
  background: var(--app-card-solid-active);
}
.order-item-ico {
  font-size: 1.25em;
  width: 1.5em;
  height: 1.5em;
  text-align: center;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* SVG-иконки каталога (line-icons наследуют currentColor, брендовые — свои цвета) */
.order-item-ico,
.order-version-ico,
.order-guarantee-ico { color: var(--app-accent); }
.order-version-card.is-premium .order-version-ico { color: var(--app-accent-green); }
.order-item-ico svg,
.order-version-ico svg {
  width: 1.5em;
  height: 1.5em;
  display: block;
  vertical-align: middle;
  flex-shrink: 0;
}
.order-item-ico svg.is-brand {
  width: 1.5em;
  height: 1.5em;
  display: block;
  border-radius: 5px;
}
.order-item-ico .brand-img {
  width: 1.5em;
  height: 1.5em;
  object-fit: contain;
  border-radius: 5px;
  display: block;
}
.order-guarantee-ico svg {
  width: 19px;
  height: 19px;
  display: block;
}
.order-block-title .brand-ico {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--app-accent);
}
.order-block-title .brand-ico svg {
  width: 18px;
  height: 18px;
  display: block;
}
.order-block-title .brand-ico .brand-img {
  width: 18px;
  height: 18px;
  display: block;
  border-radius: 4px;
  object-fit: cover;
}
.order-item-body { flex: 1; min-width: 0; }
.order-item-name {
  display: block;
  font-size: 0.98em;
  font-weight: 700;
  color: var(--app-text);
}
.order-item-sub {
  display: block;
  font-size: 0.8em;
  color: var(--app-info-muted);
  margin-top: 2px;
}
.order-item-arrow {
  color: var(--app-accent-muted);
  font-size: 1.1em;
  flex-shrink: 0;
}
/* Стриминг — 2 карточки в ряд, лого на всю кнопку, подпись внизу */
.order-items--streaming {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.order-stream-card {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  aspect-ratio: 1.05;
  border: 1px solid var(--app-card-border);
  border-radius: 14px;
  background: var(--app-card-solid);
  color: var(--app-text);
  text-align: center;
  cursor: pointer;
  box-shadow: var(--app-elev-shadow-sm);
  transition: transform 0.16s, background-color 0.16s;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
.order-stream-card:active {
  transform: scale(0.97);
}
.order-stream-card-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
}
.order-stream-card-bg svg {
  width: 52%;
  height: 52%;
  display: block;
}
.order-stream-card-bg .brand-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}
.order-stream-card-bg svg,
.order-device-card-visual img,
.client-menu-btn-thumb,
.review-media-thumb img,
.brand-img {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}
.order-device-card-visual img,
.client-menu-btn-thumb {
  pointer-events: none;
}
.order-stream-card-bg .brand-img.is-contain,
.order-modal-visual-brand .brand-img.is-contain,
.cart-item-visual .cart-item-brand .brand-img.is-contain {
  object-fit: contain;
  background: #f0f4f9;
}
.order-stream-card-name {
  position: static;
  padding: 0;
  font-size: 0.72em;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
  background: none;
  border-radius: 0;
}
.order-stream-card-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  padding: 8px 8px 7px;
  background: linear-gradient(180deg, rgba(6, 10, 18, 0) 0%, rgba(6, 10, 18, 0.88) 52%, rgba(6, 10, 18, 0.96) 100%);
  border-radius: 0 0 13px 13px;
  box-sizing: border-box;
  max-height: 32%;
  overflow: hidden;
}
.order-stream-card-price {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: auto;
  margin: 0;
  padding: 0;
  width: 100%;
  font-size: clamp(0.5rem, 2.1vw, 0.58em);
  font-weight: 600;
  line-height: 1.25;
  color: rgba(196, 228, 206, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.order-streaming-hint {
  margin: -4px 2px 12px;
  padding: 0 4px;
  font-size: 0.78em;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  color: var(--app-info-muted);
  font-family: var(--app-font-mono);
  letter-spacing: 0.03em;
}
/* Гарантии */
.order-guarantees {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.order-guarantee {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 11px 12px;
  border: 1px solid var(--app-card-border);
  border-radius: 11px;
  background: var(--app-card-solid);
  font-size: 0.82em;
  line-height: 1.35;
  color: var(--app-info-text);
}
.order-guarantee-ico { flex-shrink: 0; }
/* Модалка-форма заказа */
.order-modal-content {
  max-width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  text-align: center;
}
.order-modal-content h3,
.order-modal-desc,
.order-period-label,
.order-qty-label,
.order-qty-hint,
.order-qty-error,
.order-modal-price {
  text-align: center;
}
.order-tg-premium {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 12px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 242, 255, 0.22);
  border-radius: 12px;
  background: rgba(8, 16, 28, 0.55);
  cursor: pointer;
  user-select: none;
  text-align: left;
}
.order-tg-premium[hidden] { display: none !important; }
.order-tg-premium-check {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.order-tg-premium-box {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 6px;
  border: 1.5px solid rgba(0, 242, 255, 0.45);
  background: rgba(0, 0, 0, 0.25);
  position: relative;
}
.order-tg-premium-box::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #041018;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.order-tg-premium-check:checked + .order-tg-premium-box {
  border-color: var(--app-accent);
  background: var(--app-accent);
  box-shadow: 0 0 10px rgba(0, 242, 255, 0.25);
}
.order-tg-premium-check:checked + .order-tg-premium-box::after {
  opacity: 1;
  transform: scale(1);
}
.order-tg-premium-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.order-tg-premium-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--app-text);
  line-height: 1.25;
}
.order-tg-premium-sub {
  font-size: 0.75rem;
  color: rgba(180, 210, 230, 0.75);
  font-family: var(--app-font-mono);
}
.order-period-chips {
  justify-content: center;
}
.order-qty-input {
  text-align: center;
}
.order-modal-actions {
  justify-content: center;
}
.order-plain-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 2px 0 6px;
}
.order-plain-card {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed rgba(0, 242, 255, 0.28);
  border-radius: 12px;
  background: rgba(8, 16, 28, 0.55);
  color: var(--app-accent);
  font-family: var(--app-font-mono);
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
.order-plain-card:active {
  transform: scale(0.99);
  opacity: 0.9;
}
.order-device-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--app-card-border);
  border-radius: 14px;
  background: var(--app-card-solid);
  color: var(--app-text);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--app-elev-shadow);
  transition: transform 0.18s, background-color 0.18s;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
.order-device-card:active {
  transform: scale(0.985);
  background: var(--app-card-solid-active);
}
.order-device-card-visual {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(0, 242, 255, 0.2);
}
.order-device-card-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  box-sizing: border-box;
}
.order-device-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.order-device-card-name {
  font-size: 0.95em;
  font-weight: 800;
  color: var(--app-text);
  line-height: 1.25;
}
.order-device-card-sub {
  font-size: 0.74em;
  line-height: 1.35;
  color: var(--app-info-text);
}
.order-modal-content .order-modal-desc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin: 12px 0 16px;
  padding: 14px 14px;
  border: 1px solid var(--app-card-border);
  border-radius: 14px;
  background: rgba(0, 242, 255, 0.045);
}
.order-modal-content .order-modal-desc:empty {
  display: none;
}
.order-modal-content .order-modal-desc.is-plain {
  display: block;
  white-space: pre-line;
  font-size: 0.85em;
  line-height: 1.5;
  color: var(--app-info-text);
}
.order-modal-feats {
  margin: 0 0 14px;
}
.order-modal-feats[hidden] { display: none !important; }
.order-modal-feats-list {
  list-style: none;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(57, 255, 20, 0.22);
  border-radius: 14px;
  background: rgba(57, 255, 20, 0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.order-modal-feats-list li {
  position: relative;
  padding-left: 1.15em;
  font-size: 0.84em;
  line-height: 1.4;
  color: var(--app-info-text);
}
.order-modal-feats-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--app-accent-green);
  font-weight: 800;
}
#order-modal .order-price-tag:empty {
  display: none !important;
}
#order-modal .order-modal-price[hidden] {
  display: none !important;
}
#order-modal .order-desc-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#order-modal .order-desc-block + .order-desc-block {
  padding-top: 11px;
  border-top: 1px solid rgba(0, 242, 255, 0.1);
}
#order-modal .order-desc-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
#order-modal .order-desc-ico {
  flex-shrink: 0;
  font-size: 0.95em;
  line-height: 1.45;
}
#order-modal .order-desc-htext {
  font-family: var(--app-font-mono);
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.45;
  color: var(--app-accent);
}
#order-modal .order-desc-body {
  margin: 0;
  padding-left: 25px;
  font-size: 0.82em;
  line-height: 1.5;
  text-align: left;
  white-space: pre-line;
  color: var(--app-info-text);
  text-shadow: none;
}
#order-modal .order-desc-block:not(.has-head) .order-desc-body {
  padding-left: 0;
}
#order-modal .order-desc-footnote {
  margin: 6px 0 0;
  padding-left: 25px;
  font-size: 0.74em;
  line-height: 1.45;
  text-align: left;
  white-space: pre-line;
  color: var(--app-info-muted);
  opacity: 0.92;
}
#order-modal .order-desc-block--footnote {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 242, 255, 0.12);
}
#order-modal .order-desc-block--footnote .order-desc-footnote {
  margin: 0;
  padding-left: 0;
}
.tgpremium-compare {
  margin: 0 auto 14px;
  padding: 12px 14px;
  max-width: 360px;
  border: 1px solid rgba(0, 242, 255, 0.18);
  border-radius: 14px;
  background: rgba(0, 242, 255, 0.035);
  text-align: center;
}
.tgpremium-compare[hidden] { display: none !important; }
.tgpremium-compare-title {
  margin: 0 0 10px;
  font-size: 0.78em;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--app-accent);
  text-align: center;
}
.tgpremium-compare-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}
.tgpremium-compare-note {
  margin: 0;
  font-size: 0.74em;
  line-height: 1.45;
  text-align: center;
  color: var(--app-info-muted);
}
.order-modal-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: var(--app-card-solid);
  border: 1px solid var(--app-card-border);
  overflow: hidden;
  flex-shrink: 0;
}
.order-modal-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}
.order-modal-visual-bg,
.cart-item-visual-bg {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  -webkit-touch-callout: none;
  user-select: none;
}
.order-modal-visual-bg.is-contain,
.cart-item-visual-bg.is-contain {
  background-size: contain;
  background-color: #f0f4f9;
}
.order-modal-visual:has(.order-modal-visual-img--device) {
  background: #000;
}
.order-modal-visual-img--device {
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
}
.order-modal-visual-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.order-modal-visual-brand .ic,
.order-modal-visual-brand .brand-img {
  width: 44px;
  height: 44px;
}
.order-modal-visual-brand .ic.is-brand {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
}
.order-modal-visual-brand .brand-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.order-modal-visual-brand .brand-img.is-contain {
  object-fit: contain;
  background: #f0f4f9;
  padding: 8px;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}
.order-modal-visual-svg .ic {
  width: 40px;
  height: 40px;
  color: var(--app-accent);
}
.order-modal-visual-svg.is-premium .ic {
  color: var(--app-accent-green);
}
.order-modal-visual-emoji {
  font-size: 2.4em;
  line-height: 1;
}
.cart-modal-content {
  width: min(92vw, 380px);
  max-width: min(92vw, 380px);
  max-height: 88vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  text-align: center;
  padding: 26px 20px 20px;
}
.cart-modal-content h3 {
  margin: 0 0 12px;
  text-align: center;
}
.cart-empty {
  margin: 0 0 16px;
  font-size: 0.9em;
  color: var(--app-info-muted);
  text-align: center;
}
.cart-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 16px;
  max-height: 50vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  text-align: left;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--app-card-border);
  border-radius: 12px;
  background: var(--app-card-solid);
}
.cart-item-visual {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--app-img-placeholder);
  border: 1px solid var(--app-card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cart-item-visual .cart-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item-visual .cart-item-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.cart-item-visual .cart-item-brand .ic,
.cart-item-visual .cart-item-brand .brand-img {
  width: 32px;
  height: 32px;
}
.cart-item-visual .cart-item-brand .ic.is-brand {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
}
.cart-item-visual .cart-item-brand .brand-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}
.cart-item-visual .cart-item-brand .brand-img.is-contain {
  object-fit: contain;
  background: #f0f4f9;
  padding: 4px;
  box-sizing: border-box;
}
.cart-item-visual .cart-item-emoji {
  font-size: 1.6em;
  line-height: 1;
}
.cart-item-body {
  flex: 1;
  min-width: 0;
}
.cart-item-name {
  margin: 0;
  font-size: 0.95em;
  font-weight: 700;
  color: var(--app-modal-heading);
  line-height: 1.25;
}
.cart-item-sub {
  margin: 3px 0 0;
  font-size: 0.78em;
  color: var(--app-info-muted);
  line-height: 1.3;
}
.cart-item-price {
  display: block;
  margin: 4px 0 0;
  font-size: 0.82em;
  font-weight: 600;
  color: var(--app-modal-heading);
  line-height: 1.35;
}
.cart-item-price s {
  opacity: 0.55;
  font-weight: 500;
  margin-right: 4px;
}
.cart-item-price-flash {
  color: #ffb347;
  font-size: 0.92em;
  margin-right: 4px;
}
.cart-item-price-promo {
  color: var(--app-accent-green);
  margin-right: 4px;
}
.cart-item-price-user {
  color: #7eb8ff;
  margin-right: 4px;
}
.cart-item-price strong {
  color: var(--app-accent-green);
  font-weight: 800;
}
.cart-item-remove {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 59, 48, 0.12);
  color: #ff6b63;
  font-size: 1.2em;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cart-item-remove:active {
  transform: scale(0.94);
  opacity: 0.85;
}
.cart-modal-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  width: 100%;
  margin-top: 4px;
}
.cart-modal-actions .order-modal-submit {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.92em;
}
.cart-modal-actions .modal-close-btn {
  width: 100%;
  margin-top: 0;
  padding: 13px 20px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid var(--app-card-border);
  color: var(--app-info-muted);
  box-shadow: none;
  font-family: var(--app-font-mono);
  font-size: 0.82em;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.cart-modal-actions .modal-close-btn:active {
  transform: scale(0.98);
  filter: brightness(0.95);
}
.cart-modal-actions .order-modal-submit:disabled {
  opacity: 0.45;
  pointer-events: none;
}
.checkout-notice-modal-content {
  width: min(92vw, 380px);
  text-align: center;
  padding: 26px 20px 20px;
}
.checkout-notice-icon {
  font-size: 2.6em;
  line-height: 1;
  margin-bottom: 10px;
}
.checkout-notice-text {
  white-space: pre-line;
  text-align: center;
  margin-top: 8px;
}
.checkout-notice-ref {
  display: block;
  margin: 10px 0 4px;
  font-size: 1.15em;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--app-modal-heading);
}
.portfolio-lock-modal-content {
  width: min(92vw, 320px);
  text-align: center;
  padding: 24px 20px 20px;
}
.portfolio-warn-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(92vw, 340px);
  text-align: center;
  padding: 26px 24px 24px;
}
.portfolio-warn-emoji {
  font-size: 1.35em;
  line-height: 1;
  margin: 0 0 16px;
  letter-spacing: 4px;
}
.portfolio-warn-text {
  margin: 0 0 44px;
  max-width: 290px;
  font-size: 0.94em;
  line-height: 1.48;
  color: var(--app-text, #eef2f7);
}
.portfolio-warn-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 16px;
}
.portfolio-warn-chat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px; /* 0.2cm+0.15cm ≈ 14px */
  min-width: 128px;
  min-height: 40px;
  padding: 0 20px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #2ea6ff, #1b8be0);
  color: #fff;
  font-size: 0.92em;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(30, 140, 224, 0.3);
  -webkit-tap-highlight-color: transparent;
}
.portfolio-warn-chat-btn svg {
  width: 17px;
  height: 17px;
}
.portfolio-warn-chat-btn:active {
  transform: scale(0.97);
  filter: brightness(0.95);
}
.portfolio-warn-code-btn {
  display: block;
  margin: 0;
  padding: 4px 6px;
  border: none;
  background: transparent;
  color: var(--app-text-muted, rgba(255, 255, 255, 0.6));
  font-size: 0.86em;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.portfolio-warn-code-btn:active {
  opacity: 0.7;
}
.portfolio-request-sent-content {
  max-width: 320px;
  padding: 22px 18px 18px;
  text-align: center;
}
.portfolio-request-sent-emoji {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 12px;
}
.portfolio-request-sent-text {
  margin: 0 0 18px;
  font-size: 0.92em;
  line-height: 1.45;
  color: var(--app-text, #e8f4ff);
}
.portfolio-request-sent-btn {
  width: 100%;
  min-height: 46px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #00f2ff 0%, #39ff14 100%);
  color: #06080f;
  font-weight: 800;
  font-size: 0.95em;
  cursor: pointer;
}
.portfolio-request-sent-btn:active {
  opacity: 0.85;
}
.portfolio-lock-heading {
  margin: 0 0 8px;
  font-size: 1.1em;
  font-weight: 800;
  color: var(--app-modal-heading, #fff);
}
.portfolio-lock-input-hint {
  margin: 0 0 12px;
  font-size: 0.86em;
  line-height: 1.35;
  color: var(--app-text-muted, rgba(255, 255, 255, 0.62));
}
.portfolio-lock-request-ok {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.84em;
  line-height: 1.35;
  color: #39ff14;
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.22);
}
.portfolio-lock-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 50px;
  margin: 0 0 10px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 1.5em;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
  -webkit-appearance: none;
  appearance: none;
}
.portfolio-lock-input:placeholder-shown {
  font-size: 1.05em;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.42);
}
.portfolio-lock-input:focus {
  outline: none;
  border-color: var(--app-accent, #f5a623);
  box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.22);
  color: #fff;
}
.portfolio-lock-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.portfolio-lock-btn {
  flex: 1;
  min-height: 46px;
  border-radius: 14px;
  font-size: 0.95em;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.portfolio-lock-btn--primary {
  border: none;
  background: linear-gradient(135deg, #3ecf6e, #2da85a);
  color: #fff;
  box-shadow: 0 4px 14px rgba(46, 175, 90, 0.28);
}
.portfolio-lock-btn--primary:active {
  transform: scale(0.98);
  filter: brightness(0.96);
}
.portfolio-lock-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
}
.portfolio-lock-btn--ghost:active {
  background: rgba(255, 255, 255, 0.1);
}
.portfolio-lock-error {
  min-height: 1.15em;
  margin: 0 0 6px;
  font-size: 0.86em;
  color: #ff6b6b;
}
.portfolio-lock-shake {
  animation: portfolio-lock-shake 0.38s ease;
}
@keyframes portfolio-lock-shake {
  0%, 100% { margin-left: 0; }
  20% { margin-left: -8px; }
  40% { margin-left: 8px; }
  60% { margin-left: -6px; }
  80% { margin-left: 6px; }
}
.order-done-modal-content .order-done-review-btn {
  margin: 14px 0 10px;
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  font-size: 0.95em;
  font-weight: 800;
}
.order-done-modal-content .checkout-notice-text {
  margin-top: 4px;
}
.cart-summary {
  width: 100%;
  margin: 0;
  padding: 0 4px;
  font-size: 0.82em;
  line-height: 1.45;
  text-align: center;
  color: var(--app-info-muted);
}
.cart-summary-min,
.cart-summary-grand {
  display: block;
  font-size: 1.05em;
  font-weight: 700;
  color: var(--app-accent-green);
  margin-bottom: 4px;
  text-shadow: var(--app-glow-green);
}
.cart-summary-grand {
  margin-top: 2px;
}
.cart-summary-total {
  display: block;
  font-size: 1.05em;
  font-weight: 700;
  color: var(--app-accent-green);
  margin-bottom: 4px;
  text-shadow: var(--app-glow-green);
}
.cart-summary-warn {
  display: block;
  color: #ffb347;
  font-weight: 600;
  margin-top: 4px;
}
.cart-ref-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.82em;
  font-weight: 700;
  color: #2ecc71;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(39, 174, 96, 0.12));
  border: 1px solid rgba(46, 204, 113, 0.35);
}
.cart-ref-badge--compact {
  gap: 4px;
  padding: 6px 10px;
  font-size: 0.88em;
}
.cart-welcome-active {
  display: block;
  width: 100%;
  margin-top: 0;
  margin-bottom: 10px;
}
.cart-summary-discount {
  display: block;
  margin-top: 4px;
  font-size: 0.88em;
  color: #ff9f1a;
  font-weight: 700;
}
.cart-summary-discount strong {
  color: #ff9f1a;
}
.cart-summary-price-row {
  display: block;
  margin-top: 2px;
  font-size: 1.05em;
  font-weight: 600;
  color: var(--app-accent-green);
  text-shadow: var(--app-glow-green);
}
.cart-summary-strike {
  font-weight: 400;
  font-size: 0.88em;
  color: var(--app-info-muted);
  text-decoration: line-through;
}
.cart-summary-arrow {
  color: var(--app-info-muted);
  font-weight: 400;
}
.cart-discount-picker {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0;
  margin-bottom: 10px;
  box-sizing: border-box;
}
.cart-discount-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 10px;
  border: 1px solid rgba(46, 204, 113, 0.3);
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(39, 174, 96, 0.07));
  cursor: pointer;
  transition: opacity 0.18s, filter 0.18s, border-color 0.18s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.cart-discount-card:active { transform: scale(0.985); }
.cart-discount-card--selected {
  border-color: rgba(46, 204, 113, 0.7);
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.18), rgba(39, 174, 96, 0.13));
}
.cart-discount-card--dimmed {
  opacity: 0.4;
  filter: grayscale(55%);
}
.cart-discount-check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(46, 204, 113, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62em;
  font-weight: 700;
  color: transparent;
  background: transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cart-discount-card--selected .cart-discount-check {
  background: #2ecc71;
  border-color: #2ecc71;
  color: #fff;
}
.cart-discount-label {
  flex: 0 1 auto;
  font-size: 0.8em;
  font-weight: 700;
  color: #2ecc71;
  white-space: nowrap;
}
.cart-discount-count {
  flex-shrink: 0;
  font-size: 0.8em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cart-discount-count--green { color: #2ecc71; }
.cart-discount-count--yellow { color: #f1c40f; }
.cart-discount-count--red { color: #e74c3c; }
.order-modal-desc {
  margin: 6px 0 14px;
  font-size: 0.9em;
  line-height: 1.45;
  color: var(--app-modal-text);
}
.order-period { margin: 0 0 14px; }
.order-period-label {
  display: block;
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--app-info-muted);
  margin-bottom: 8px;
}
.order-period-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.order-period-chip {
  flex: 1 1 calc(25% - 8px);
  min-width: 56px;
  padding: 9px 4px;
  border: 1px solid var(--app-card-border);
  border-radius: 9px;
  background: var(--app-card-solid);
  color: var(--app-text);
  font-size: 0.88em;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s, background-color 0.15s;
}
.order-period-chip.is-active {
  border-color: var(--app-accent);
  background: rgba(0, 242, 255, 0.14);
  color: var(--app-accent);
}
.order-item.is-sold-out,
.order-item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.85);
}
.order-item-sold {
  display: block;
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-top: 4px;
  color: #e07070;
}
.order-period-chip.is-sold-out,
.order-period-chip:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.85);
  border-color: var(--app-card-border);
  background: rgba(80, 80, 80, 0.2);
  color: var(--app-info-muted);
}
.order-period-chip.is-sold-out.is-active {
  border-color: var(--app-card-border);
  background: rgba(80, 80, 80, 0.2);
  color: var(--app-info-muted);
}
.order-chip-sold {
  display: block;
  font-size: 0.62em;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-top: 3px;
  color: #e07070;
}
#order-modal .order-modal-submit:disabled,
.order-modal-submit.is-disabled {
  opacity: 0.42;
  pointer-events: none;
  cursor: not-allowed;
  filter: grayscale(0.65);
}
.order-qty {
  margin: 0 0 14px;
}
.order-smm-link {
  margin: 0 0 14px;
}
.order-smm-label {
  display: block;
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--app-info-muted);
  margin-bottom: 6px;
}
.order-smm-notice {
  margin: 8px 0 0;
  font-size: 0.82em;
  line-height: 1.35;
  color: #f0c674;
}
.order-smm-moderation {
  margin: 6px 0 0;
  font-size: 0.78em;
  line-height: 1.35;
  color: var(--app-info-muted);
}
.order-smm-hint {
  margin: 6px 0 0;
  font-size: 0.8em;
  line-height: 1.4;
  color: var(--app-info-muted);
}
.order-confirm-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
  max-height: min(42vh, 280px);
  overflow: auto;
  text-align: left;
}
.order-confirm-item {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--app-card-border);
  background: var(--app-card-solid);
  font-size: 0.88em;
  line-height: 1.35;
}
.order-confirm-link {
  display: block;
  margin-top: 4px;
  font-size: 0.82em;
  color: var(--app-accent);
  word-break: break-all;
}
.order-qty-label {
  display: block;
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--app-info-muted);
  margin-bottom: 6px;
}
.order-qty-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}
.order-qty-presets[hidden] { display: none !important; }
.order-qty--buttons-only .order-qty-input,
.order-qty--buttons-only .order-qty-hint {
  display: none !important;
}
.order-qty-preset {
  flex: 1 1 calc(25% - 8px);
  min-width: 52px;
  padding: 9px 4px;
  border: 1px solid var(--app-card-border);
  border-radius: 9px;
  background: var(--app-card-solid);
  color: var(--app-text);
  font-size: 0.86em;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.order-qty-preset.is-active {
  border-color: var(--app-accent);
  background: rgba(0, 242, 255, 0.14);
  color: var(--app-accent);
}
.order-qty-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid var(--app-card-border);
  border-radius: 9px;
  background: var(--app-card-solid);
  color: var(--app-text);
  font-size: 1em;
  font-weight: 600;
}
.order-qty-input:focus {
  outline: none;
  border-color: var(--app-accent);
}
.order-qty-hint {
  display: block;
  margin-top: 5px;
  font-size: 0.78em;
  color: var(--app-info-muted);
}
.order-qty-error {
  display: block;
  margin-top: 5px;
  font-size: 0.78em;
  color: #e07070;
  font-weight: 600;
}
.order-modal-price {
  margin: 0 0 10px;
}
.order-price-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.85em;
  font-weight: 800;
  color: var(--app-accent-green);
  background: rgba(57, 255, 20, 0.12);
  padding: 5px 12px;
  border-radius: 999px;
  text-shadow: var(--app-glow-green);
  line-height: 1.2;
}
.order-price-breakdown {
  margin: 4px 0 0;
  font-size: 0.68em;
  line-height: 1.3;
  color: var(--app-info-muted);
  white-space: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}
.order-price-discount-badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: 0.72em;
  font-weight: 800;
  font-family: var(--app-font-mono);
  letter-spacing: 0.03em;
  color: #ff9f1a;
  background: rgba(255, 159, 26, 0.16);
  border: 1px solid rgba(255, 159, 26, 0.42);
  border-radius: 6px;
  vertical-align: middle;
  line-height: 1.15;
  flex-shrink: 0;
}
.order-ladder-badge-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
.order-ladder-help {
  width: 22px;
  height: 22px;
  padding: 0;
  margin-left: 13px; /* 0.35cm ≈ 13px */
  border-radius: 999px;
  border: 1px solid rgba(255, 159, 26, 0.55);
  background: rgba(255, 159, 26, 0.12);
  color: #ffb347;
  font: 800 0.78rem/1 var(--app-font-mono);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.order-ladder-help:hover,
.order-ladder-help:focus-visible {
  background: rgba(255, 159, 26, 0.22);
  outline: none;
}
.volume-ladder-overlay {
  z-index: 12050;
  align-items: center;
}
.volume-ladder-overlay.show { display: flex; }
.volume-ladder-modal {
  width: min(440px, 94vw);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: linear-gradient(165deg, rgba(10, 18, 34, 0.98), rgba(6, 12, 24, 0.98)) !important;
  color: var(--app-text) !important;
  border: 1px solid rgba(0, 242, 255, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.volume-ladder-modal h3 {
  color: var(--app-accent);
  text-align: center;
  font: 800 0.95rem/1.2 var(--app-font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.volume-ladder-sub {
  margin: 0 0 14px;
  color: var(--app-text-muted) !important;
  font-size: 0.86rem;
  text-align: center;
}
.volume-ladder-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
.volume-ladder-grid.is-soon {
  display: block;
  padding: 28px 12px;
  text-align: center;
}
.volume-ladder-soon {
  margin: 0;
  font: 700 0.95rem/1.4 var(--app-font-mono);
  color: var(--app-accent);
}
.volume-ladder-soon-note {
  margin: 10px 0 0;
  font: 600 0.88rem/1.35 var(--app-font);
  color: var(--app-accent);
}
.volume-ladder-chip {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  border: 1px solid rgba(0, 242, 255, 0.2);
  border-radius: 14px;
  background: rgba(8, 16, 30, 0.9);
  overflow: hidden;
  cursor: pointer;
  color: var(--app-text);
}
.volume-ladder-chip-qty {
  padding: 12px 6px 8px;
  font: 800 0.98rem/1 var(--app-font-mono);
  text-align: center;
  color: var(--app-text);
}
.volume-ladder-chip-pct {
  padding: 7px 4px 9px;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  color: #7dffa8;
  background: rgba(0, 242, 255, 0.06);
  border-top: 1px solid rgba(0, 242, 255, 0.12);
}
.volume-ladder-chip-pct--zero {
  color: var(--app-info-muted);
}
.volume-ladder-chip.is-active {
  border-color: var(--app-accent);
  background: rgba(0, 242, 255, 0.14);
  box-shadow: 0 0 18px rgba(0, 242, 255, 0.18);
}
.volume-ladder-chip.is-active .volume-ladder-chip-qty {
  background: transparent;
  color: var(--app-accent);
}
.volume-ladder-chip.is-active .volume-ladder-chip-pct {
  background: rgba(0, 242, 255, 0.12);
  color: #9dffc0;
  border-radius: 0;
}
.volume-ladder-chip.is-next {
  border-color: rgba(0, 242, 255, 0.4);
}
.volume-ladder-footer {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  margin: 4px 0 14px;
  flex-wrap: wrap;
}
.volume-ladder-price-block { flex: 1 1 auto; min-width: 140px; }
.volume-ladder-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.volume-ladder-sale {
  font: 800 1.55rem/1 var(--app-font-mono);
  color: var(--app-text);
}
.volume-ladder-list {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: line-through;
}
.volume-ladder-save {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--app-text-muted);
}
.volume-ladder-save-amt {
  font: 800 1rem/1 var(--app-font-mono);
  color: #7dffa8;
}
@media (max-width: 420px) {
  .volume-ladder-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .volume-ladder-footer { flex-direction: column; align-items: stretch; }
}
.order-price-tag .order-price-discount-badge {
  display: none;
}
.order-item-price {
  display: block;
  margin-top: 3px;
  font-size: 0.72em;
  font-weight: 700;
  color: var(--app-accent-green);
  letter-spacing: 0.02em;
  line-height: 1.45;
}
@media (min-width: 520px) {
  .order-item-price--bot-project {
    font-size: 0.64em;
    letter-spacing: 0.01em;
    line-height: 1.35;
  }
}
@media (min-width: 900px) {
  .order-item-price--bot-project {
    font-size: 0.58em;
    line-height: 1.3;
  }
}
.catalog-price-compare s {
  color: rgba(255, 255, 255, 0.42);
  text-decoration: line-through;
  font-weight: 500;
  margin-right: 5px;
}
.catalog-price-sale {
  color: var(--app-accent-green);
  font-weight: 700;
}
.catalog-price-sale--flash {
  color: #ffb347;
  text-shadow: 0 0 10px rgba(255, 179, 71, 0.25);
}
.order-price-tag .catalog-price-compare s {
  color: rgba(255, 255, 255, 0.5);
}
.order-price-tag .catalog-price-sale {
  color: var(--app-accent-green);
}
.order-price-tag .catalog-price-sale--flash {
  color: #ffb347;
}
.order-modal-submit {
  flex: 0 1 auto;
  width: auto;
  min-width: 148px;
  max-width: 72%;
  margin: 0 auto;
  padding: 11px 22px;
  border: 1px solid rgba(72, 158, 98, 0.38);
  border-radius: 10px;
  background: linear-gradient(135deg, #3d9460 0%, #2a6b48 100%);
  color: #e8f6ee;
  font-family: var(--app-font-mono);
  font-size: 0.88em;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(42, 107, 72, 0.28);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s, opacity 0.15s;
}
.order-modal-submit:active { transform: scale(0.98); opacity: 0.9; }
.order-modal-actions {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  margin: 0 0 8px;
}
.order-modal-actions:not(.has-catalog) .order-modal-submit {
  width: auto;
  max-width: 68%;
  flex: 0 1 auto;
}
.order-modal-actions.has-catalog .order-modal-submit {
  flex: 1;
  max-width: none;
  min-width: 0;
  margin: 0;
}
.order-modal-catalog {
  flex: 1;
  margin: 0;
  padding: 13px 12px;
  border: 1px solid rgba(0, 242, 255, 0.45);
  border-radius: 11px;
  background: rgba(4, 14, 28, 0.85);
  color: var(--app-accent);
  font-family: var(--app-font-mono);
  font-size: 0.82em;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--app-glow-cyan);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s, opacity 0.15s;
}
.order-modal-catalog:active { transform: scale(0.98); opacity: 0.9; }
/* === Переоформление окна карточки товара (только #order-modal) === */
#order-modal .order-modal-content {
  width: min(92vw, 380px);
  max-width: min(92vw, 380px);
  padding: 26px 20px 20px;
  border-radius: 20px;
}
#order-modal .order-modal-content h3 {
  margin: 0 0 4px;
  font-family: var(--app-font-mono);
  font-size: 1.16em;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: var(--app-modal-heading);
}
#order-modal .order-modal-price {
  margin: 2px 0 16px;
}
#order-modal .order-price-tag {
  font-size: 0.9em;
  padding: 7px 16px;
}
#order-modal .order-period-chip {
  border-radius: 999px;
  padding: 9px 6px;
  font-size: 0.86em;
}
#order-modal .order-modal-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  margin: 4px 0 0;
}
#order-modal .order-modal-actions .order-modal-submit,
#order-modal .order-modal-actions.has-catalog .order-modal-submit {
  order: 0;
  flex: none;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 14px 20px;
  font-size: 0.92em;
  border-radius: 12px;
}
#order-modal .order-modal-catalog {
  order: 1;
  flex: none;
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
}
#order-modal .modal-close-btn {
  width: 100%;
  margin-top: 9px;
  padding: 13px 20px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid var(--app-card-border);
  color: var(--app-info-muted);
  box-shadow: none;
  font-family: var(--app-font-mono);
  font-size: 0.82em;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
#order-modal .modal-close-btn:active {
  transform: scale(0.985);
  background: rgba(255, 255, 255, 0.04);
  filter: none;
}
.menu-order-sections {
  position: relative;
  padding: 0 2px 24px;
  padding-right: clamp(8px, 2vw, 12px);
}
.clients-catalog-page > h2 {
  text-align: center;
  font-family: var(--app-font-mono);
  color: var(--app-accent-green);
  text-shadow: var(--app-glow-green);
  letter-spacing: 0.04em;
}
.clients-catalog-grid {
  padding-bottom: 12px;
}
#menu-page {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 1;
  overscroll-behavior: none;
}
/* Скролл клиентов: область до линий панелей; отступы на сетке — в покое, уезжают при прокрутке */
#menu-page .product-grid.clients-menu-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: var(--app-footer-h);
  width: auto;
  flex: none;
  min-height: 0;
  margin: 0;
  padding-top: max(10px, env(safe-area-inset-top, 0px));
  padding-bottom: 0;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  gap: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  z-index: 0;
  isolation: isolate;
}
#menu-page .product-grid.clients-menu-wrap::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.menu-home-scroll {
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
}
.menu-hero-wrap {
  position: relative;
  margin: 4px 0 18px;
  padding-top: 4px;
  z-index: 2;
  overflow: hidden;
}
.menu-bart-park {
  display: none;
}
/* Барт «сидит» на линии блока «Бот-витрина» (правый край) */
.order-block-title--bart {
  position: relative;
  overflow: visible;
  margin-top: clamp(78px, 22vw, 108px);
}
.order-block-title--bart::after {
  align-self: center;
}
.menu-hero-bart-sit {
  position: absolute;
  right: clamp(0px, 1.5vw, 10px);
  bottom: 50%;
  transform: translateY(calc(50% - 0.4cm));
  height: clamp(100px, 28vw, 138px);
  width: auto;
  z-index: 20;
  pointer-events: none;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.55));
}
.menu-hero {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  margin: 0;
  min-height: 188px;
  border-radius: 20px;
  overflow: hidden;
  background: #060c18;
  border: 1px solid rgba(0, 242, 255, 0.32);
  box-shadow: 0 0 28px rgba(0, 242, 255, 0.1), 0 12px 36px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(57, 255, 20, 0.06);
}
.menu-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 242, 255, 0.015) 2px, rgba(0, 242, 255, 0.015) 4px);
  opacity: 0.6;
}
.menu-hero-visual {
  flex: 0 0 46%;
  max-width: 50%;
  min-height: 188px;
  position: relative;
  overflow: hidden;
  background-color: #081018;
}
.menu-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% center;
  display: block;
}
.menu-hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, transparent 35%, rgba(6, 12, 24, 0.55) 72%, rgba(6, 12, 24, 0.98) 100%);
  pointer-events: none;
}
.menu-hero-circuit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  z-index: 4;
  background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.7) 20%, rgba(57, 255, 20, 0.8) 50%, rgba(0, 242, 255, 0.7) 80%, transparent);
  background-size: 200% 100%;
  box-shadow: 0 0 12px rgba(0, 242, 255, 0.45);
  pointer-events: none;
  animation: circuitFlow 3.2s linear infinite;
}
@keyframes circuitFlow {
  0% { background-position: 0% 0; box-shadow: 0 0 10px rgba(0, 242, 255, 0.35); }
  50% { box-shadow: 0 0 20px rgba(57, 255, 20, 0.65); }
  100% { background-position: 200% 0; box-shadow: 0 0 10px rgba(0, 242, 255, 0.35); }
}
@media (prefers-reduced-motion: reduce) {
  .menu-hero-terminal,
  .menu-hero-caret,
  .menu-hero-scan,
  .menu-hero-title,
  .menu-hero-circuit {
    animation: none !important;
  }
  .menu-hero-scan { opacity: 0; }
}
.menu-hero-text {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 3;
  padding: 14px 14px 16px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(8, 16, 30, 0.72) 0%, rgba(6, 12, 22, 0.96) 100%);
}
.menu-hero-terminal {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  align-self: center;
  padding: 3px 9px;
  margin-bottom: 2px;
  transform: translateY(-0.4cm);
  font-family: var(--app-font-mono);
  font-size: clamp(0.52rem, 2.2vw, 0.62rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--app-accent-green);
  border: 1px solid rgba(57, 255, 20, 0.45);
  border-radius: 4px;
  background: rgba(4, 12, 8, 0.65);
  text-shadow: var(--app-glow-green);
  box-shadow: 0 0 14px rgba(57, 255, 20, 0.12), inset 0 0 12px rgba(57, 255, 20, 0.06);
  animation: crtFlicker 5.5s linear infinite;
}
.menu-hero-caret {
  display: inline-block;
  animation: caretBlink 0.95s step-end infinite;
}
@keyframes caretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.12; }
}
/* CRT-мерцание терминала: редкие просадки яркости как у монитора */
@keyframes crtFlicker {
  0%, 100% { opacity: 1; }
  2% { opacity: 0.45; }
  3% { opacity: 1; }
  7% { opacity: 0.85; }
  8% { opacity: 1; }
  37% { opacity: 1; }
  38% { opacity: 0.55; }
  39% { opacity: 1; }
  62% { opacity: 0.9; }
  63% { opacity: 0.3; }
  64% { opacity: 1; }
  85% { opacity: 1; }
  86% { opacity: 0.6; }
  87% { opacity: 1; }
}
/* Бегущий световой луч-скан по баннеру */
.menu-hero-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 42px;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 242, 255, 0.10) 45%, rgba(57, 255, 20, 0.08) 55%, transparent 100%);
  mix-blend-mode: screen;
  animation: scanSweep 4.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@keyframes scanSweep {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { transform: translateY(200px); opacity: 0; }
}
.menu-hero-title {
  margin: 0;
  transform: translateY(-0.15cm);
  font-size: clamp(0.95rem, 3.8vw, 1.22rem);
  font-weight: 800;
  font-family: var(--app-font-mono);
  color: var(--app-accent-green);
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: var(--app-glow-green), 0 2px 8px rgba(0, 0, 0, 0.8);
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1;
  animation: neonBuzz 6s linear infinite;
}
/* Неоновый «гул» заголовка: лёгкие просадки + дрожание свечения */
@keyframes neonBuzz {
  0%, 100% { opacity: 1; text-shadow: var(--app-glow-green), 0 2px 8px rgba(0, 0, 0, 0.8); }
  18% { opacity: 1; }
  19% { opacity: 0.72; text-shadow: 0 0 3px rgba(57, 255, 20, 0.45), 0 2px 8px rgba(0, 0, 0, 0.8); }
  20% { opacity: 1; }
  54% { opacity: 1; text-shadow: var(--app-glow-green), 0 2px 8px rgba(0, 0, 0, 0.8); }
  55% { opacity: 0.85; text-shadow: 0 0 22px rgba(57, 255, 20, 0.6), 0 0 6px rgba(0, 242, 255, 0.5); }
  57% { opacity: 1; }
  78% { opacity: 0.9; }
  79% { opacity: 0.6; }
  80% { opacity: 1; }
}
.menu-hero-title .menu-hero-title-num {
  display: inline-block;
  font-variant-numeric: lining-nums;
  font-feature-settings: 'lnum' 1;
  vertical-align: baseline;
  position: relative;
  top: -0.07em;
}
.menu-hero-subtitle {
  margin: 0;
  transform: translateY(-0.1cm);
  font-size: clamp(0.5rem, 2vw, 0.58rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 242, 255, 0.65);
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.shop-pitch {
  margin: 10px 12px 14px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 242, 255, 0.22);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(6, 14, 26, 0.92) 0%, rgba(4, 10, 18, 0.98) 100%);
  box-shadow: 0 0 18px rgba(0, 242, 255, 0.06), inset 0 0 12px rgba(0, 242, 255, 0.04);
}
.shop-pitch-lead {
  margin: 0 0 10px;
  font-size: clamp(0.68rem, 2.8vw, 0.78rem);
  line-height: 1.45;
  color: var(--app-info-text);
  text-align: center;
}
.shop-pitch-lead strong {
  color: var(--app-accent-green);
  font-weight: 700;
}
.shop-pitch-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shop-pitch-list li {
  font-size: clamp(0.62rem, 2.5vw, 0.72rem);
  line-height: 1.4;
  color: rgba(0, 242, 255, 0.78);
  padding-left: 0;
  text-align: center;
}
.shop-pitch-list li strong {
  color: var(--app-accent-green);
}
.menu-hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin-top: 6px;
  width: 100%;
  transform: translateY(0.2cm);
}
.menu-hero-pill {
  flex: 1 1 calc(50% - 4px);
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  height: auto;
  padding: 5px 10px;
  box-sizing: border-box;
  border-radius: 999px;
  font-size: clamp(0.5rem, 2.2vw, 0.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #e8f4ff;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  overflow: hidden;
  border: 1px solid rgba(0, 242, 255, 0.28);
  background: rgba(4, 14, 28, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.menu-hero-pill--accent {
  border-color: rgba(57, 255, 20, 0.55);
  color: var(--app-accent-green);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.12);
}
.menu-hero-pill--bronze {
  border-color: rgba(0, 242, 255, 0.45);
  color: var(--app-accent);
}
.menu-hero-flash {
  margin-top: 8px;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--app-font-mono);
  line-height: 1.35;
  text-align: center;
  color: #ffb347;
  background: rgba(255, 179, 71, 0.12);
  border: 1px solid rgba(255, 179, 71, 0.38);
  box-shadow: 0 0 14px rgba(255, 179, 71, 0.08);
  animation: flashPulse 2.4s ease-in-out infinite;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-hero-flash:active {
  transform: scale(0.98);
}
@keyframes flashPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.82; }
}
.menu-catalog-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 2px 6px;
  box-sizing: border-box;
}
.menu-catalog-head--with-reviews {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-bottom: 10px;
  --menu-reviews-indent: 72px;
  --menu-reviews-extra: 56px;
}
.menu-catalog-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding-right: clamp(96px, 27vw, 132px);
}
.menu-catalog-head--with-reviews .menu-catalog-rule {
  flex: 1;
}
.menu-catalog-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  font-family: var(--app-font-mono);
  color: var(--app-accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
  text-shadow: var(--app-glow-cyan);
}
.menu-catalog-rule {
  flex: 1;
  height: 1px;
  min-width: 0;
  background: linear-gradient(90deg, rgba(0, 242, 255, 0.55), rgba(57, 255, 20, 0.35), transparent);
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(0, 242, 255, 0.2);
}
html.theme-light .menu-catalog-rule {
  background: rgba(0, 0, 0, 0.12) !important;
}
html.theme-light .menu-hero {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
}
html.theme-light .menu-hero-title {
  color: #6b5344 !important;
}
html.theme-light .menu-hero-subtitle {
  color: rgba(107, 83, 68, 0.75) !important;
}
html.theme-light .menu-hero-pill {
  background: rgba(0, 0, 0, 0.04) !important;
  color: #222 !important;
}
@media (max-width: 380px) {
  .menu-hero-wrap {
    padding-top: 4px;
  }
  .order-block-title--bart {
    margin-top: clamp(68px, 20vw, 92px);
  }
  .menu-hero-bart-sit {
    height: clamp(88px, 26vw, 112px);
    right: 2px;
  }
  /* Держим горизонтальный баннер 1в1 (не колонка) */
  .menu-hero {
    flex-direction: row;
    min-height: 188px;
  }
  .menu-hero-visual {
    flex: 0 0 46%;
    max-width: 50%;
    width: auto;
    min-height: 188px;
  }
  .menu-hero-visual::after {
    background: linear-gradient(90deg, transparent 35%, rgba(6, 12, 24, 0.55) 72%, rgba(6, 12, 24, 0.98) 100%);
  }
  .menu-hero-text {
    padding: 12px 10px 14px 8px;
  }
  .menu-catalog-head--with-reviews {
    --menu-reviews-indent: 66px;
  }
  .menu-reviews-trust {
    max-width: calc(100% - clamp(88px, 24vw, 120px));
    padding: 3px 7px;
  }
  .menu-reviews-stars {
    font-size: 0.68em;
    min-width: 3.8em;
  }
  .menu-reviews-label {
    font-size: 0.5em;
  }
}
html.theme-light .menu-catalog-title {
  color: #111 !important;
}
.clients-menu-grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: var(--clients-menu-edge-inset, 10px) 0;
  width: 100%;
  box-sizing: border-box;
}
.client-menu-btn {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  box-sizing: border-box;
  border: 1px solid var(--app-card-border);
  border-radius: 20px;
  background-color: var(--app-surface);
  color: var(--app-text);
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  box-shadow: var(--app-elev-shadow);
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
  text-align: left;
}
.client-menu-btn:active {
  transform: scale(0.985);
  background-color: var(--app-card-solid-active);
  border-color: rgba(0, 242, 255, 0.45);
  box-shadow: 0 0 16px rgba(0, 242, 255, 0.12);
}
.client-menu-btn-visual {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 14px;
  background: #081018;
  border: 1px solid rgba(0, 242, 255, 0.15);
  overflow: hidden;
}
.client-menu-btn-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.client-menu-btn-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.client-menu-btn-title {
  margin: 0;
  font-size: 1.16em;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--app-text);
}
.client-menu-btn-sub {
  margin: 0;
  font-size: 0.93em;
  font-weight: 500;
  line-height: 1.25;
  color: var(--app-accent-muted);
}
.client-menu-btn-sub-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.client-menu-btn-chevron {
  flex-shrink: 0;
  font-size: 1.55em;
  font-weight: 300;
  line-height: 1;
  color: var(--app-accent);
  opacity: 0.95;
  padding-right: 2px;
}
.client-tier-badge {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  flex-shrink: 0;
  pointer-events: none;
}
.client-tier-badge-label {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.62em;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
}
.client-tier-badge--premium .client-tier-badge-label {
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.95), rgba(0, 200, 80, 0.92));
  color: #041208;
  border: 1px solid rgba(180, 255, 160, 0.55);
}
.client-tier-badge--basico .client-tier-badge-label {
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.92), rgba(0, 160, 220, 0.88));
  color: #031018;
  border: 1px solid rgba(160, 240, 255, 0.5);
}
.client-tier-badge--custom .client-tier-badge-label {
  background: linear-gradient(135deg, rgba(218, 102, 255, 0.95), rgba(168, 85, 200, 0.92));
  color: #1a0820;
  border: 1px solid rgba(240, 180, 255, 0.55);
}
.client-tier-upgrade {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.58em;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff8e8;
  background: linear-gradient(135deg, rgba(255, 180, 0, 0.95), rgba(255, 120, 0, 0.92));
  border: 1px solid rgba(255, 220, 120, 0.55);
}
@media (max-width: 360px) {
  .clients-menu-grid { gap: 8px; }
  .client-menu-btn { padding: 10px 12px; gap: 10px; }
  .client-menu-btn-visual { width: 60px; height: 60px; }
  .client-menu-btn-title { font-size: 1.08em; }
  .client-menu-btn-sub { font-size: 0.88em; }
}
.client-video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 24px 16px;
  box-sizing: border-box;
  text-align: center;
  color: var(--app-text-muted);
  font-size: 0.95em;
  line-height: 1.4;
  font-weight: 600;
}
#info-page.info-page .info-content {
  display: block;
  flex: none;
  min-height: 0;
  overflow: visible;
}
/* Фоновая иконка за карточками меню — одинаковый размер для всех */
#menu-page .product-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 113px;
  height: 113px;
  min-width: 113px;
  min-height: 113px;
  max-width: 113px;
  max-height: 113px;
  background-size: 113px 113px;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}
/* Адаптивность: до 480px */
@media (max-width: 480px) {
  #menu-page .product-card::before {
    width: 94px;
    height: 94px;
    min-width: 94px;
    min-height: 94px;
    max-width: 94px;
    max-height: 94px;
    background-size: 94px 94px;
  }
  .product-row-top,
  .product-row-bottom {
    gap: 8px;
  }
  .product-card {
    padding: 10px 6px;
    width: calc(50% - 4px);
  }
  .sub-product-page .product-card {
    width: calc(50% - 4px);
    flex: 0 0 calc(50% - 4px);
    padding: 8px 6px;
  }
  .product-card img {
    max-width: 130px;
  }
  #category-product-grid.sub-product-grid {
    gap: 8px;
  }
  #category-product-grid .product-card {
    width: calc(50% - 4px);
    max-width: calc(50% - 4px);
    flex: 0 0 calc(50% - 4px);
    min-height: 290px;
  }
  #category-product-grid .product-card-thumb img {
    min-height: 175px;
    height: auto;
  }
  #category-product-grid .product-card-badge {
    top: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.62em;
    letter-spacing: 0.06em;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
  }
  #category-product-grid .product-card-badge--nuevo {
    left: 6px;
  }
  #category-product-grid .product-card-badge--oferta {
    right: 6px;
  }
  .sub-product-header h3 {
    font-size: 1.8em;
  }
}
/* Адаптивность: до 360px */
@media (max-width: 360px) {
  #menu-page .product-card::before {
    width: 75px;
    height: 75px;
    min-width: 75px;
    min-height: 75px;
    max-width: 75px;
    max-height: 75px;
    background-size: 75px 75px;
  }
  .product-row-top,
  .product-row-bottom {
    gap: 6px;
  }
  .product-card {
    padding: 8px 4px;
    width: calc(50% - 3px);
  }
  .sub-product-page .product-card {
    width: calc(50% - 4px);
    flex: 0 0 calc(50% - 4px);
    padding: 6px 4px;
  }
  .product-card img {
    max-width: 110px;
  }
  #category-product-grid.sub-product-grid {
    gap: 6px;
  }
  #category-product-grid .product-card {
    width: calc(50% - 3px);
    max-width: calc(50% - 3px);
    flex: 0 0 calc(50% - 3px);
    min-height: 270px;
  }
  #category-product-grid .product-card-thumb img {
    min-height: 155px;
  }
  .product-card h3 {
    font-size: 0.85em;
  }
  #category-product-grid .product-card h3 {
    font-size: 0.88em;
  }
  #category-product-grid .product-card-badge {
    top: 5px;
    padding: 3px 6px;
    border-radius: 5px;
    font-size: 0.56em;
    letter-spacing: 0.05em;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.38);
  }
  #category-product-grid .product-card-badge--nuevo {
    left: 4px;
  }
  #category-product-grid .product-card-badge--oferta {
    right: 4px;
  }
  .sub-product-header h3 {
    font-size: 1.6em;
  }
}
@media (min-width: 481px) and (max-width: 768px) {
  .product-card {
    width: calc(50% - 5px);
  }
  .sub-product-page .product-card {
    width: calc(50% - 4px);
    flex: 0 0 calc(50% - 4px);
  }
}
/* Фоновые изображения карточек меню (::before) */
#menu-page .product-card[data-product="weed"]::before {
  background-image: url('https://i.postimg.cc/L5fmmcTV/image.png');
}
#menu-page .product-card[data-product="hash"]::before {
  background-image: url('https://i.postimg.cc/L5fmmcTV/image.png');
}
#menu-page .product-card[data-product="extract"]::before {
  background-image: url('https://i.postimg.cc/7P1YfJ8M/image.png');
}
#menu-page .product-card[data-product="usa"]::before {
  background-image: url('https://my-bot.live/media/alcapone.jpg');
}
#menu-page .product-card {
  background-color: rgba(42, 42, 42, 0.9);
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}
#menu-page .product-card:active {
  background-color: rgba(42, 42, 42, 1);
}
#menu-page .menu-cat-thumb {
  position: relative;
  z-index: 1;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  height: auto;
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: none;
}
#menu-page .menu-cat-thumb-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  text-align: center;
  z-index: 0;
}
#menu-page .menu-cat-thumb-fallback--weed {
  background: linear-gradient(160deg, #1a3d28 0%, #142a1c 100%);
}
#menu-page .menu-cat-thumb-fallback--hash {
  background: linear-gradient(160deg, #3d3018 0%, #2a2212 100%);
}
#menu-page .menu-cat-thumb-fallback--extract {
  background: linear-gradient(160deg, #1a2840 0%, #121c2e 100%);
}
#menu-page .menu-cat-thumb-name {
  font-size: 1.35em;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
}
#menu-page .menu-cat-thumb-fallback--weed .menu-cat-thumb-name {
  color: #8fdf9a;
}
#menu-page .menu-cat-thumb-fallback--hash .menu-cat-thumb-name {
  color: #d4b87a;
}
#menu-page .menu-cat-thumb-fallback--extract .menu-cat-thumb-name {
  color: #9ec5ff;
}
#menu-page .menu-cat-thumb .menu-cat-hint {
  font-size: 0.72em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.02em;
  margin: 0;
}
#menu-page .menu-cat-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
#menu-page .menu-cat-thumb-img.menu-cat-thumb-img--loaded {
  opacity: 1;
  visibility: visible;
}
#menu-page .menu-cat-title-below {
  margin-top: 0;
  margin-bottom: 0;
  padding: 5px 5px 7px;
  text-align: center;
  font-weight: 800;
  font-size: 1em;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.sub-product-page .product-card {
  background-color: rgba(42, 42, 42, 0.85);
  width: calc(50% - 4px);
  flex: 0 0 calc(50% - 4px);
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.sub-product-page .product-card:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.product-card img {
  width: 100%;
  max-width: 150px;
  height: auto;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  margin: 0 auto 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  background-color: var(--app-img-placeholder);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: auto;
}
.slide img,
.slide video {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.product-card h3 {
  font-size: 0.95em;
  margin: 8px 0 0;
  text-shadow: var(--app-heading-shadow);
  color: var(--app-text);
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.sub-product-page {
  padding: 10px 15px;
  padding-left: max(15px, env(safe-area-inset-left, 0px));
  padding-right: max(15px, env(safe-area-inset-right, 0px));
  flex: 1;
  display: none;
  flex-direction: column;
  margin-top: calc(10px + env(safe-area-inset-top, 0px));
  margin-bottom: calc(50px + env(safe-area-inset-bottom, 0px));
  position: relative;
  z-index: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  transform: translateX(20px);
}
.sub-product-page.page-visible {
  opacity: 1;
  transform: translateX(0);
}
.hash-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
  padding: 0 10px;
}
.hash-filter-btn {
  background: rgba(51, 51, 51, 0.8);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 10px 14px;
  min-height: 44px;
  min-width: 44px;
  font-size: 0.8em;
  color: #ddd;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.hash-filter-btn.active {
  background: rgba(60, 90, 60, 0.9);
  color: #fff;
  border-color: rgba(100, 160, 100, 0.5);
}
.hash-filter-btn:active {
  transform: scale(0.97);
}
.tier-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
  padding: 0 10px;
}
.tier-filter-btn {
  background: rgba(51, 51, 51, 0.8);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 10px 14px;
  min-height: 44px;
  min-width: 44px;
  font-size: 0.8em;
  color: #ddd;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.tier-filter-btn.active {
  background: rgba(60, 90, 60, 0.9);
  color: #fff;
  border-color: rgba(100, 160, 100, 0.5);
}
.tier-filter-btn:active {
  transform: scale(0.97);
}

/* ─── Фильтры каталога (sticky, только тап) ─── */
.catalog-filter-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 -10px 14px;
  padding: 10px 0 8px;
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.catalog-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 10px;
  scroll-snap-type: x proximity;
}
.catalog-filter-row::-webkit-scrollbar { display: none; }
.catalog-price-row { padding-top: 2px; }
.catalog-filter-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(51, 51, 51, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 40px;
  font-size: 0.82em;
  font-weight: 600;
  color: #ddd;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.catalog-price-chip { min-height: 36px; padding: 6px 13px; font-weight: 500; }
.catalog-filter-chip.is-active {
  background: rgba(60, 90, 60, 0.95);
  color: #fff;
  border-color: rgba(100, 160, 100, 0.6);
}
.catalog-filter-chip:active { transform: scale(0.96); }
.catalog-chip-star { color: #ffcc4d; font-size: 1.05em; line-height: 1; }
.catalog-filter-chip.is-active .catalog-chip-star { color: #ffe08a; }
.catalog-chip-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}
.catalog-chip-ico svg,
.catalog-chip-ico img,
.catalog-chip-ico .ic {
  width: 18px !important;
  height: 18px !important;
}
.catalog-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 48px 20px;
  text-align: center;
}
.catalog-empty-text { color: #aaa; font-size: 0.95em; margin: 0; }
.catalog-reset-chip { align-self: center; }
.sub-product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
  align-content: flex-start;
  padding: 8px 6px;
  flex: 1;
  gap: 12px;
  margin-top: -10px;
  min-height: 0;
}
#category-product-grid.sub-product-grid {
  gap: 12px;
}
#category-product-grid .product-card {
  overflow: visible;
  width: calc(50% - 6px);
  max-width: calc(50% - 6px);
  flex: 0 0 calc(50% - 6px);
  padding: 10px 8px 12px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 280px;
}
#category-product-grid .product-card-thumb {
  position: relative;
  display: block;
  width: 100%;
  max-width: 220px;
  margin: 0 auto 10px;
  overflow: visible;
  z-index: 1;
}
#category-product-grid .product-card-thumb img {
  position: relative;
  margin: 0 auto;
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  min-height: 190px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
#category-product-grid .product-card h3 {
  font-size: 1.02em;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin: 8px 0 0;
  text-shadow: var(--app-heading-shadow);
  color: var(--app-text);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
#category-product-grid .product-card.sold-out h3 {
  color: rgba(255, 255, 255, 0.42);
  font-weight: 700;
}
#category-product-grid .product-card-sold-overlay {
  position: absolute;
  inset: 0;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.74);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8;
  pointer-events: none;
}
#category-product-grid .product-card-sold-overlay-text {
  color: #ffffff;
  font-weight: 800;
  font-size: clamp(0.85rem, 4.2vw, 1.2rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  padding: 0 6px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.product-card-badge {
  position: absolute;
  top: 8px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 0.68em;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.product-card-badge--nuevo {
  left: 6px;
  background: #2d7a3e;
  color: #fff;
}
.product-card-badge--oferta {
  right: 6px;
  background: #c76a1a;
  color: #fff;
}
#category-product-grid .product-card-thumb-photo {
  position: relative;
  z-index: 0;
}
#category-product-grid .product-card-badge {
  z-index: 5;
  top: 10px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.74em;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
#category-product-grid .product-card-badge--nuevo {
  left: 10px;
  background: #2a6b38;
  color: #fff;
}
#category-product-grid .product-card-badge--oferta {
  right: 10px;
  background: #e07018;
  color: #fff;
}
.menu-cards-grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 10px;
  flex: 1;
  min-height: 0;
  justify-content: flex-start;
}
.menu-main-top.product-row-top {
  margin-top: 0;
  flex-shrink: 0;
}
.menu-main-bottom.product-row-bottom {
  margin-top: auto;
  margin-bottom: 1cm;
  justify-content: center;
}
.menu-main-bottom .product-card {
  width: calc(50% - 5px);
  max-width: calc(50% - 5px);
  min-height: 140px;
}
.category-page-layer {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: calc(var(--app-topbar-h, 0px) + 8px) 10px 12px;
  padding-left: max(10px, env(safe-area-inset-left, 0px));
  padding-right: max(10px, env(safe-area-inset-right, 0px));
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  margin-bottom: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  text-align: center;
}
/* Сетка не flex:1 — иначе контент «запирается» внутри и страница категории не скроллится */
.category-page-layer #category-product-grid.sub-product-grid {
  flex: 0 0 auto;
  flex-grow: 0;
  min-height: 0;
}
.category-page-layer > .back-btn,
.category-page-layer > h2,
.category-page-layer > .tier-filters {
  flex-shrink: 0;
}
.category-page-layer h2 {
  margin: 6px 0 10px;
  font-size: 1.25em;
  color: var(--app-text);
}
.reviews-page h2 {
  margin: 12px 0 20px;
  color: var(--app-text);
  text-align: center;
  font-size: 1.35em;
  font-weight: 800;
}
.reviews-add-btn {
  display: block;
  width: calc(100% - 32px);
  max-width: 400px;
  margin: 0 auto 20px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid rgba(0, 242, 255, 0.35);
  background: rgba(0, 242, 255, 0.1);
  color: var(--app-text);
  font-size: 1.05em;
  font-weight: 700;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
.reviews-add-btn:active { transform: scale(0.98); }
#reviews-page.info-page.reviews-page {
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  margin-bottom: 0;
  padding-bottom: calc(var(--app-footer-h, 88px) + 56px + env(safe-area-inset-bottom, 0px));
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#reviews-page.info-page.reviews-page::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.reviews-panel {
  margin: 0 16px 24px;
  min-height: 0;
  padding: 16px 12px 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.42);
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.reviews-panel::-webkit-scrollbar {
  display: none;
}
html.theme-light .reviews-panel {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}
.reviews-list { text-align: left; padding: 0 0 12px; }
.review-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--app-info-text);
}
.review-item:last-child {
  margin-bottom: 8px;
}
.review-item--pending {
  border-color: rgba(255, 193, 7, 0.35);
  background: rgba(255, 193, 7, 0.06);
}
.review-pending-badge {
  margin: 0 0 8px;
  font-size: 0.78em;
  font-weight: 700;
  color: #ffc107;
  opacity: 0.95;
}
.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 6px;
  font-size: 1.08em;
  line-height: 1;
}
.review-star {
  color: rgba(255, 255, 255, 0.18);
}
.review-star.is-filled {
  color: #ffd700;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.35);
}
.review-stars-meter {
  position: relative;
  display: inline-block;
  line-height: 1;
  font-size: 1em;
  letter-spacing: 1px;
  white-space: nowrap;
}
.review-stars-meter-bg,
.review-stars-meter-fill {
  display: block;
  line-height: 1;
}
.review-stars-meter-bg {
  color: rgba(255, 255, 255, 0.18);
}
.review-stars-meter-fill {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  color: #ffd700;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.35);
  white-space: nowrap;
}
.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.review-author {
  font-weight: 700;
  font-size: 0.95em;
  text-align: left;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.review-author-link {
  color: #5eb3f6;
  text-decoration: none;
  cursor: pointer;
}
.review-author-link:active {
  opacity: 0.85;
}
.review-author-anon {
  opacity: 0.88;
  color: var(--app-info-text);
}
.review-author-id {
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.04em;
}
.review-purchase {
  margin: 0 0 8px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(200, 245, 66, 0.22);
  font-size: 0.82em;
  font-weight: 700;
  color: #c8f542;
  text-align: center;
}
.review-date {
  flex-shrink: 0;
  font-size: 0.78em;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
}
.review-body {
  padding-top: 8px;
}
.review-text {
  margin: 0;
  font-size: 0.88em;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(255, 255, 255, 0.92);
}
.review-media {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.review-media-thumb {
  position: relative;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  border: none;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.review-media-thumb--video {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}
.review-media-thumb--photo {
  display: block;
}
.review-media-thumb img,
.review-media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  background: transparent;
}
.review-media-thumb video {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}
.review-media-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}
.review-media-play::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
}
.review-media-thumb.is-playing .review-media-play {
  opacity: 0;
}
.review-media-thumb.is-playing video {
  pointer-events: auto;
}
.reviews-empty { opacity: 0.7; padding: 16px; text-align: center; color: var(--app-text-muted); }
.reviews-order-notice {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 193, 7, 0.35);
  background: rgba(255, 193, 7, 0.08);
  color: var(--app-text);
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.35;
}
.info-reviews-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: min(92vw, 360px);
  margin: calc(18px + 7cm) auto 0;
  padding: 16px 20px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 700;
  color: #fff;
  background: rgba(42, 42, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
.info-reviews-cta-btn .info-reviews-star {
  font-size: 1.35em;
  line-height: 1;
  color: #e6b422;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.info-reviews-cta-btn:active {
  transform: scale(0.98);
}
#info-page.info-page {
  display: block;
  height: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding-bottom: calc(var(--app-footer-h, 88px) + 32px);
  text-align: left;
}
.info-page-title {
  text-align: center;
  font-size: 1.2em;
  font-weight: 800;
  font-family: var(--app-font-mono);
  color: var(--app-accent-green);
  text-shadow: var(--app-glow-green);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 6px 0 16px;
}
.info-profile-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 14px;
}
.info-user-card {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--app-card-solid);
  border: 1px solid var(--app-card-border);
  box-shadow: var(--app-elev-shadow-sm);
}
.info-user-avatar-wrap {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.info-user-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.info-user-avatar-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;
  color: var(--app-text);
  background: rgba(255, 255, 255, 0.08);
}
.info-user-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.info-user-label {
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--app-info-muted);
}
.info-user-id {
  font-size: 1.2em;
  font-weight: 800;
  font-family: var(--app-font-mono);
  color: var(--app-accent-green);
  text-shadow: var(--app-glow-green);
  line-height: 1.1;
  word-break: break-all;
}
.info-settings-card {
  flex: 0 0 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  margin: 0;
  border-radius: 14px;
  cursor: pointer;
  font-size: 0.82em;
  font-weight: 700;
  color: var(--app-text);
  background: var(--app-card-solid);
  border: 1px solid var(--app-card-border);
  box-shadow: var(--app-elev-shadow-sm);
  -webkit-tap-highlight-color: transparent;
}
.info-settings-card .info-settings-ico {
  font-size: 1.5em;
  line-height: 1;
}
.info-settings-card:active {
  transform: scale(0.98);
  background: var(--app-card-solid-active);
}
/* Info Actions Row (Referral, Favorites, Reviews) */
.info-actions-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.info-action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  border-radius: 12px;
  background: var(--app-card-solid);
  border: 1px solid var(--app-card-border);
  box-shadow: var(--app-elev-shadow-sm);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.info-action-btn:active {
  transform: scale(0.96);
  background: var(--app-card-solid-active);
}
.info-action-ico {
  font-size: 1.4em;
  line-height: 1;
}
.info-action-star {
  font-size: 1.68em;
  line-height: 1;
  color: #ffd700;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}
.info-action-label {
  font-size: clamp(0.68em, 2.8vw, 0.82em);
  font-weight: 600;
  line-height: 1.15;
  color: var(--app-text);
  text-align: center;
  margin-top: 0.2cm;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.info-action-btn--ref .info-action-label {
  margin-top: 2px;
  margin-bottom: 0;
}
.info-action-ref-meta {
  display: block;
  margin-top: 2px;
  font-size: clamp(0.62em, 2.4vw, 0.72em);
  font-weight: 700;
  line-height: 1.2;
  color: var(--app-info-muted, #8a94a6);
  white-space: nowrap;
}
.info-action-btn--ref.is-ref-ready .info-action-ref-meta {
  color: var(--app-accent-green, #2ecc71);
}
.info-action-btn--ref.is-ref-pending .info-action-ref-meta {
  color: #f0ad4e;
}
.info-action-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 0.6em;
  font-weight: 700;
  color: #fff;
  background: #e74c3c;
  border-radius: 8px;
  line-height: 16px;
  text-align: center;
}
.ref-notice-overlay {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 16px;
  background: rgba(0, 0, 0, 0.78);
  border-radius: 20px 20px 0 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
.ref-notice-overlay[hidden] {
  display: none !important;
}
.ref-notice-overlay-card {
  width: 100%;
  max-width: 360px;
  max-height: 88%;
  overflow-y: auto;
  padding: 26px 20px 22px;
  background: var(--app-card-solid);
  border: 1px solid rgba(46, 204, 113, 0.35);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}
.ref-notice-overlay-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.ref-notice-overlay-item + .ref-notice-overlay-item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--app-card-border);
}
.ref-notice-overlay-ico {
  font-size: 2em;
  line-height: 1;
}
.ref-notice-overlay-text {
  margin: 0;
  font-size: 0.92em;
  line-height: 1.45;
  color: var(--app-text);
  font-weight: 600;
}
.info-content-box {
  border-radius: 14px;
  padding: 14px 16px 12px;
  margin-bottom: 18px;
  text-align: left;
  background: var(--app-card-solid);
  border: 1px solid var(--app-card-border);
  box-shadow: var(--app-elev-shadow-sm);
  max-width: 100%;
  box-sizing: border-box;
}
.info-text-inner {
  font-size: 0.82em;
  line-height: 1.5;
  color: var(--app-info-text);
  word-break: break-word;
  overflow-wrap: anywhere;
}
.info-text-inner strong {
  display: block;
  margin: 0 0 6px;
}
.info-text-inner a.info-link {
  color: var(--app-link);
  text-decoration: none;
}
.info-made-by {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--app-card-border);
  font-size: 0.72em;
  color: var(--app-info-muted);
  text-align: right;
}
.info-made-by a.info-link {
  color: var(--app-link);
  text-decoration: none;
  font-weight: 700;
}
.info-support-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(46, 204, 113, 0.45);
  background: linear-gradient(180deg, rgba(46, 204, 113, 0.18), rgba(46, 204, 113, 0.08));
  color: var(--app-text);
  font-size: 0.95em;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
.info-support-btn:active {
  transform: scale(0.98);
  background: rgba(46, 204, 113, 0.22);
}
.info-support-ico {
  font-size: 1.15em;
  line-height: 1;
}
.info-loyalty-card {
  margin: 0 0 14px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 242, 255, 0.22);
  background: rgba(8, 16, 28, 0.72);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}
.info-loyalty-title {
  margin: 0 0 10px;
  font-size: 1.05em;
  font-weight: 800;
  color: var(--app-text);
}
.info-loyalty-card .loyalty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.info-loyalty-card .loyalty-badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 242, 255, 0.12);
  border: 1px solid rgba(0, 242, 255, 0.35);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--app-accent);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.info-loyalty-card .loyalty-badge.is-new {
  background: rgba(0, 242, 255, 0.12);
  border-color: rgba(0, 242, 255, 0.35);
  color: #7ef9ff;
}
.info-loyalty-card .loyalty-badge.is-silver {
  background: rgba(192, 197, 206, 0.16);
  border-color: rgba(210, 218, 228, 0.55);
  color: #e8eef5;
}
.info-loyalty-card .loyalty-badge.is-gold {
  background: rgba(255, 193, 7, 0.16);
  border-color: rgba(255, 200, 40, 0.55);
  color: #ffd86b;
}
.info-loyalty-card .loyalty-badge.is-platinum {
  background: rgba(180, 120, 255, 0.16);
  border-color: rgba(200, 150, 255, 0.55);
  color: #e0c4ff;
}
.info-loyalty-card .loyalty-badge.is-special {
  background: linear-gradient(135deg, rgba(255, 215, 80, 0.2), rgba(180, 120, 255, 0.22));
  border-color: rgba(255, 210, 100, 0.65);
  color: #ffe29a;
  letter-spacing: 0.02em;
  text-transform: none;
}
.info-loyalty-card .loyalty-pct {
  font-family: var(--app-font-mono);
  color: #39ff14;
  font-weight: 800;
  font-size: 1.15rem;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.info-loyalty-card .loyalty-pct.is-updating {
  transform: scale(1.12);
  opacity: 0.85;
}
.info-loyalty-card .loyalty-perk {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 242, 255, 0.28);
  background: rgba(0, 242, 255, 0.07);
}
.info-loyalty-card .loyalty-perk[hidden] { display: none !important; }
.info-loyalty-card .loyalty-perk.is-silver {
  border-color: rgba(210, 218, 228, 0.45);
  background: rgba(192, 197, 206, 0.1);
}
.info-loyalty-card .loyalty-perk.is-gold {
  border-color: rgba(255, 200, 40, 0.45);
  background: rgba(255, 193, 7, 0.1);
}
.info-loyalty-card .loyalty-perk.is-platinum {
  border-color: rgba(200, 150, 255, 0.45);
  background: rgba(180, 120, 255, 0.1);
}
.info-loyalty-card .loyalty-perk.is-special {
  border-color: rgba(255, 210, 100, 0.5);
  background: linear-gradient(135deg, rgba(255, 215, 80, 0.12), rgba(180, 120, 255, 0.12));
}
.info-loyalty-card .loyalty-perk.is-special .loyalty-perk-badge {
  color: #ffe29a;
  border-color: rgba(255, 210, 100, 0.55);
  text-transform: none;
  letter-spacing: 0.02em;
}
.info-loyalty-card .loyalty-perk.is-levelup {
  animation: loyaltyLevelUp 0.7s ease;
  box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.25);
}
.info-loyalty-card .loyalty-perk-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.info-loyalty-card .loyalty-perk.is-silver .loyalty-perk-badge { color: #e8eef5; border-color: rgba(210, 218, 228, 0.5); }
.info-loyalty-card .loyalty-perk.is-gold .loyalty-perk-badge { color: #ffd86b; border-color: rgba(255, 200, 40, 0.5); }
.info-loyalty-card .loyalty-perk.is-platinum .loyalty-perk-badge { color: #e0c4ff; border-color: rgba(200, 150, 255, 0.5); }
.info-loyalty-card .loyalty-perk-text {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--app-text);
  line-height: 1.3;
}
@keyframes loyaltyLevelUp {
  0% { transform: scale(0.96); }
  40% { transform: scale(1.03); }
  100% { transform: none; }
}
.loyalty-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(16px);
  z-index: 1400;
  max-width: min(92vw, 420px);
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(12, 22, 36, 0.96);
  border: 1px solid rgba(57, 255, 20, 0.45);
  color: #e8fff0;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.35;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.loyalty-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.info-loyalty-spend {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(200, 220, 235, 0.85);
}
.info-loyalty-card .loyalty-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin: 10px 0 6px;
}
.info-loyalty-card .loyalty-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #00f2ff, #39ff14);
  border-radius: inherit;
  transition: width 0.45s ease;
}
.info-loyalty-next {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: rgba(160, 190, 220, 0.75);
}
.info-loyalty-card .loyalty-tiers {
  margin: 0;
  padding-left: 18px;
  color: rgba(170, 195, 215, 0.78);
  font-size: 0.84rem;
  line-height: 1.45;
}
.info-block-section {
  margin: 0 0 16px;
}
.info-block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 1.05em;
  font-weight: 800;
  color: var(--app-text);
}
.info-block-ico {
  font-size: 1.05em;
  line-height: 1;
}
.info-howto-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.info-howto-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--app-card-solid);
  border: 1px solid var(--app-card-border);
  box-shadow: var(--app-elev-shadow-sm);
  font-size: 0.86em;
  line-height: 1.4;
  color: var(--app-info-text);
}
.info-howto-note {
  margin: 10px 2px 0;
  padding: 0 2px;
  font-size: 0.82em;
  line-height: 1.45;
  color: var(--app-info-muted, #8a94a6);
}
.info-howto-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78em;
  font-weight: 800;
  color: #0b1a12;
  background: var(--app-accent-green, #2ecc71);
}
.info-guarantees-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.info-guarantees-list li {
  padding: 10px 11px;
  border-radius: 11px;
  background: var(--app-card-solid);
  border: 1px solid var(--app-card-border);
  font-size: 0.78em;
  line-height: 1.35;
  color: var(--app-info-text);
}
.info-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.info-faq-item {
  border-radius: 12px;
  background: var(--app-card-solid);
  border: 1px solid var(--app-card-border);
  box-shadow: var(--app-elev-shadow-sm);
  overflow: hidden;
}
.info-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 36px 11px 12px;
  font-size: 0.86em;
  font-weight: 700;
  line-height: 1.35;
  color: var(--app-text);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.info-faq-item summary::-webkit-details-marker {
  display: none;
}
.info-faq-item summary::after {
  content: '›';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: 1.15em;
  color: var(--app-info-muted, #8a94a6);
  transition: transform 0.15s ease;
}
.info-faq-item[open] summary::after {
  transform: translateY(-50%) rotate(-90deg);
}
.info-faq-item p {
  margin: 0;
  padding: 0 12px 12px;
  font-size: 0.82em;
  line-height: 1.45;
  color: var(--app-info-text);
}
.info-orders-section {
  display: block;
  position: relative;
  margin-top: 4px;
  padding-bottom: 8px;
}
.info-orders-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 1.05em;
  font-weight: 800;
  color: var(--app-text);
}
.info-orders-ico {
  font-size: 1.1em;
  line-height: 1;
}
.info-orders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.info-order-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--app-card-solid);
  border: 1px solid var(--app-card-border);
  box-shadow: var(--app-elev-shadow-sm);
  position: relative;
}
.info-order-card.has-review-prompt {
  border-color: rgba(250, 204, 21, 0.85);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.35), var(--app-elev-shadow-sm);
}
.info-order-review-corner {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  max-width: calc(100% - 88px);
}
.info-order-review-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border: 1.5px solid #facc15;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.12);
  color: #facc15;
  font-size: 0.68em;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.2);
}
.info-order-review-btn:active {
  transform: scale(0.97);
  background: rgba(250, 204, 21, 0.22);
}
.info-order-card.has-review-prompt .info-order-head {
  padding-right: 7.5em;
}
.info-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 0;
}
.info-order-ref {
  font-size: 0.75em;
  font-weight: 800;
  color: var(--app-info-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.info-order-title {
  margin: 0;
  font-size: 0.86em;
  font-weight: 700;
  line-height: 1.3;
  color: var(--app-text);
  overflow-wrap: break-word;
}
.info-order-meta {
  margin: 0;
  font-size: 0.72em;
  line-height: 1.35;
  color: var(--app-info-muted);
  overflow-wrap: break-word;
}
.info-order-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  padding-top: 4px;
  border-top: 1px solid var(--app-card-border);
}
.info-order-desc {
  font-size: 0.8em;
  line-height: 1.4;
  color: var(--app-info-text);
  overflow-wrap: break-word;
}
.info-order-side {
  text-align: right;
  min-width: 72px;
}
.info-order-price {
  font-size: 0.8em;
  font-weight: 800;
  color: var(--app-text);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.info-order-price.is-cancelled {
  text-decoration: line-through;
  color: var(--app-text-muted);
  font-weight: 700;
  opacity: 0.9;
}
.info-order-date {
  font-size: 0.7em;
  color: var(--app-info-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.info-order-reorder-btn {
  align-self: flex-start;
  margin-top: 2px;
  padding: 5px 10px;
  border: 1px solid rgba(46, 204, 113, 0.35);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.12), rgba(39, 174, 96, 0.08));
  color: #2ecc71;
  font-size: 0.72em;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.info-order-reorder-btn:active {
  transform: scale(0.98);
}
.info-order-status {
  font-size: 0.72em;
  font-weight: 700;
  color: var(--app-accent);
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
}
.info-order-status.is-done {
  color: #22c55e;
}
.info-order-status.is-cancelled {
  color: #ef4444;
}
.info-orders-empty {
  margin: 0;
  padding: 18px 14px;
  text-align: center;
  font-size: 0.85em;
  color: var(--app-info-muted);
  border-radius: 14px;
  background: var(--app-card-solid);
  border: 1px dashed var(--app-card-border);
}
.info-orders-empty[hidden] {
  display: none !important;
}
#settings-modal.modal-overlay {
  background-color: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#settings-modal .settings-modal-content {
  width: min(94vw, 400px);
  max-width: 400px;
  max-height: min(88vh, 560px);
  overflow: visible;
  padding: 22px 18px 20px;
  text-align: left;
  box-sizing: border-box;
  background: linear-gradient(165deg, #1e2638 0%, #141a26 55%, #10141c 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.55);
}
#settings-modal .settings-modal-content h3 {
  margin: 0 0 20px;
  padding: 0;
  font-size: 1.55em;
  font-weight: 800;
  line-height: 1.15;
  text-align: left;
  color: #fff;
  text-shadow: none;
}
#settings-modal .settings-section-label {
  display: block;
  margin: 0 0 10px;
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
}
#settings-modal .settings-section-label + .lang-picker,
#settings-modal .lang-picker + .settings-section-label {
  margin-top: 18px;
}
#settings-modal .settings-fx-note {
  margin: 8px 2px 0;
  font-size: 0.72em;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.42);
  text-align: left;
}
#settings-modal .settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 12, 20, 0.55);
  color: #fff;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
#settings-modal .settings-toggle-row:active {
  opacity: 0.92;
}
#settings-modal .settings-toggle-label {
  font-size: 0.95em;
  font-weight: 600;
  text-align: left;
}
#settings-modal .settings-toggle-track {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: background-color 0.2s ease;
}
#settings-modal .settings-toggle-row.is-on .settings-toggle-track {
  background: rgba(57, 255, 20, 0.45);
}
#settings-modal .settings-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}
#settings-modal .settings-toggle-row.is-on .settings-toggle-thumb {
  transform: translateX(20px);
}
#settings-modal .settings-section-label--orders {
  margin-top: 18px;
}
#settings-modal .settings-danger-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 90, 90, 0.45);
  background: rgba(180, 40, 40, 0.22);
  color: #ffb4b4;
  font-family: inherit;
  font-size: 0.92em;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
#settings-modal .settings-danger-btn:active {
  background: rgba(200, 50, 50, 0.35);
  border-color: rgba(255, 120, 120, 0.6);
}
#settings-modal .lang-picker {
  position: relative;
  width: 100%;
  margin: 0;
  max-width: none;
}
#settings-modal .lang-picker-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 12, 20, 0.55);
  color: #fff;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s ease, border-radius 0.2s ease;
}
#settings-modal .lang-picker.is-open .lang-picker-trigger {
  border-color: rgba(96, 148, 255, 0.95);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: rgba(96, 148, 255, 0.35);
  background: rgba(12, 18, 30, 0.85);
}
#settings-modal .lang-picker-trigger-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
#settings-modal .lang-picker-flag {
  font-size: 1.2em;
  line-height: 1;
  flex-shrink: 0;
}
#settings-modal .lang-picker-label {
  font-size: 1.02em;
  font-weight: 600;
  color: #fff;
}
#settings-modal .lang-picker-chevron {
  flex-shrink: 0;
  font-size: 1.05em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.75);
  transition: transform 0.2s ease;
}
#settings-modal .lang-picker.is-open .lang-picker-chevron {
  transform: rotate(180deg);
}
#settings-modal .lang-picker-list {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 50;
  max-height: min(48vh, 280px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  padding: 4px 0;
  border-radius: 0 0 11px 11px;
  border: 1px solid rgba(96, 148, 255, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 22, 0.98);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
}
#settings-modal .lang-picker-list::-webkit-scrollbar {
  width: 5px;
}
#settings-modal .lang-picker-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 4px;
}
#settings-modal .lang-picker.is-open .lang-picker-list {
  display: block;
}
#settings-modal .lang-picker-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
#settings-modal .lang-picker-option + .lang-picker-option {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
#settings-modal .lang-picker-option.is-active {
  background: rgba(72, 118, 220, 0.28);
}
#settings-modal .lang-picker-option:active {
  background: rgba(255, 255, 255, 0.08);
}
#settings-modal .lang-picker-option-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
#settings-modal .lang-picker-check {
  flex-shrink: 0;
  width: 1.15em;
  text-align: center;
  font-weight: 700;
  font-size: 0.95em;
  color: #fff;
  opacity: 0;
}
#settings-modal .lang-picker-option.is-active .lang-picker-check {
  opacity: 1;
}
.settings-section-label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--app-info-muted);
  text-transform: uppercase;
}
.sub-product-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 0 15px;
}
.sub-product-header h3:first-child {
  margin-left: 0;
}
.sub-product-header h3:last-child {
  margin-right: 0;
}
.sub-product-header h3 {
  font-size: 2.2em;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.sub-product-page h2 {
  text-align: center;
  font-size: 1.2em;
  margin: 4px 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.back-btn {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--app-text);
  border: none;
  box-shadow: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85), 0 0 12px rgba(0, 0, 0, 0.45);
  padding: 6px 10px;
  min-height: 36px;
  min-width: 36px;
  border-radius: 6px;
  width: 30%;
  min-width: 100px;
  margin: 4px;
  margin-top: calc(10px + env(safe-area-inset-top, 0px));
  cursor: pointer;
  font-size: 0.8em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.category-page-layer .back-btn,
.info-page .back-btn,
.reviews-page .back-btn {
  margin-top: 4px;
}
.sub-product-page .back-btn,
.product-detail-page .back-btn {
  margin-top: 2px;
}
.product-detail-page .back-btn {
  margin-top: calc(10px + env(safe-area-inset-top, 0px));
}
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 10150;
  overflow: visible;
  box-sizing: border-box;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: max(0px, env(safe-area-inset-left, 0px));
  padding-right: max(0px, env(safe-area-inset-right, 0px));
  background-color: var(--app-footer-bar);
  border-top: none;
  pointer-events: auto;
  touch-action: manipulation;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  isolation: isolate;
}
/* Линия на всю ширину экрана (вылет из safe-area padding футера), разрыв под FAB */
.footer-gold-line {
  position: absolute;
  left: 50%;
  right: auto;
  width: 100vw;
  max-width: none;
  transform: translateX(-50%);
  top: 0;
  height: 1px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--app-accent-muted) 0%,
    var(--app-accent-muted) calc(50% - var(--footer-fab-r)),
    transparent calc(50% - var(--footer-fab-r)),
    transparent calc(50% + var(--footer-fab-r)),
    var(--app-accent-muted) calc(50% + var(--footer-fab-r)),
    var(--app-accent-muted) 100%
  );
}
.footer.footer--dock-fab {
  padding-top: 0;
}
.footer-tabs .footer-nav-btn {
  flex: none;
  min-width: 0;
}
.footer-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(72px, 86px) 1fr 1fr;
  align-items: start;
  justify-items: center;
  width: 100%;
  padding: 0 0 8px;
  box-sizing: border-box;
  position: relative;
  z-index: 5;
  pointer-events: auto;
}
.footer-fab-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 0;
  z-index: 3;
  pointer-events: none;
}
/* Спецификация выше, чем у .footer button.footer-fab { margin:0 } — иначе подъём не применяется */
.footer .footer-fab-col .footer-fab {
  pointer-events: auto;
  margin: 0;
  margin-top: calc(-1 * var(--footer-fab-r) - var(--footer-fab-lift));
  position: relative;
  z-index: 4;
}
.footer-fab {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  -webkit-tap-highlight-color: transparent;
}
.footer-fab:active {
  transform: scale(0.96);
}
.footer-fab.active .footer-fab-circle {
  box-shadow: 0 0 28px rgba(57, 255, 20, 0.55), 0 10px 28px rgba(0, 0, 0, 0.4);
  filter: brightness(1.08);
}
.footer-fab.active .footer-fab-label {
  color: var(--app-accent-green);
  opacity: 1;
  text-shadow: var(--app-glow-green);
}
.footer-fab-circle {
  width: var(--footer-fab-d);
  height: var(--footer-fab-d);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 28%, #7dff9a 0%, #39ff14 42%, #1a9a4a 88%);
  border: 1.5px solid rgba(57, 255, 20, 0.55);
  box-shadow: 0 0 22px rgba(57, 255, 20, 0.38), 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.2s ease, filter 0.2s ease, transform 0.15s ease;
  position: relative;
  z-index: 1;
}
.footer-fab-circle svg {
  width: 26px;
  height: 26px;
  display: block;
  color: #041008;
}
.footer-fab-badge {
  position: absolute;
  top: -2px;
  right: -7px;
  left: auto;
  transform: none;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #7dff9a 0%, #39ff14 55%, #1a9a4a 100%);
  color: #041008;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.45), 0 2px 6px rgba(0, 0, 0, 0.35);
  border: 2px solid var(--app-footer-bar, rgba(4, 8, 18, 0.97));
  z-index: 3;
  pointer-events: none;
}
#cart-welcome-plaque,
.footer-fab-welcome {
  display: none !important;
}
.menu-reviews-trust {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  max-width: calc(100% - clamp(96px, 27vw, 132px));
  margin: 0;
  margin-inline-start: calc(var(--menu-reviews-indent, 72px) + var(--menu-reviews-extra, 32px));
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 0, 0.22);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 165, 0, 0.04));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  color: var(--app-text);
  position: relative;
  z-index: 25;
}
/* display:flex выше перебивает UA [hidden] → пустая «таблетка» без звёзд */
.menu-reviews-trust[hidden] {
  display: none !important;
}
.menu-reviews-trust:active { transform: scale(0.98); }
.menu-reviews-trust-inner {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  white-space: nowrap;
  min-width: 0;
}
.menu-reviews-stars {
  display: inline-flex;
  flex: 0 0 auto;
  flex-shrink: 0;
  align-items: center;
  font-size: 0.82em;
  line-height: 1;
  min-width: 4.6em;
}
.menu-reviews-trust .review-stars-meter {
  font-size: 1em;
  letter-spacing: 0.5px;
}
.menu-reviews-count {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--app-text-muted);
  opacity: 0.9;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu-reviews-count::before {
  content: "·";
  margin: 0 4px;
  opacity: 0.45;
}
.footer-fab-label {
  display: block;
  font-size: clamp(0.58em, 2vw, 0.68em);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--app-accent-green);
  white-space: nowrap;
  max-width: 100%;
  padding: 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: none;
}
.footer-nav-ico--svg {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-nav-ico--svg svg {
  width: 22px;
  height: 22px;
  display: block;
}
.footer button {
  background: none;
  border: none;
  color: #bbb;
  font-size: clamp(0.65em, 2.5vw, 0.75em);
  cursor: pointer;
  padding: 10px 6px;
  min-height: 44px;
  min-width: 44px;
  transition: color 0.2s ease, transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.15s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1001;
  pointer-events: auto;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.footer button.footer-nav-btn {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 12px;
  padding: 4px 2px 10px;
  min-width: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0);
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
}
.footer button.footer-nav-btn:focus {
  outline: none;
}
.footer button.footer-nav-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}
/* FAB «Заказ»: не наследовать общий tap-highlight и min 44px — иначе полупрозрачный квадрат */
.footer button.footer-fab {
  flex: none;
  min-width: 0;
  min-height: 0;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  -webkit-tap-highlight-color: transparent;
  text-shadow: none;
  background: transparent !important;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}
.footer button.footer-fab:focus,
.footer button.footer-fab:focus-visible {
  outline: none;
}
.footer button.footer-fab::-moz-focus-inner {
  border: 0;
  padding: 0;
}
.footer .footer-nav-ico {
  font-size: 1.22em;
  line-height: 1;
  display: block;
  transition: transform 0.2s ease, filter 0.2s ease, color 0.2s ease;
}
.footer button.footer-nav-btn.active .footer-nav-ico--svg {
  color: var(--app-accent-green);
}
.footer .footer-nav-label {
  display: block;
  font-size: clamp(0.68em, 2.45vw, 0.82em);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0.02em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (hover: hover) {
  .footer button.footer-nav-btn:hover { color: var(--app-accent); }
}
.footer button.footer-nav-btn:active {
  transform: none;
  opacity: 0.88;
}
.footer button.footer-nav-btn {
  color: var(--app-accent-muted);
}
.footer button.footer-nav-btn.active {
  color: var(--app-accent-green);
  font-weight: 700;
  background: transparent;
  box-shadow: none;
  text-shadow: var(--app-glow-green);
}
.footer button.footer-nav-btn.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--app-accent-green);
  box-shadow: var(--app-glow-green);
}
.footer button.footer-nav-btn.active .footer-nav-ico {
  transform: scale(1.05);
  filter: none;
}
.footer button.footer-nav-btn.active .footer-nav-label {
  opacity: 1;
}
#info-btn.footer-nav-btn--hint {
  position: relative;
  overflow: visible;
  z-index: 1;
}
#info-btn.footer-nav-btn--hint .footer-nav-label {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.1;
  max-width: none;
  opacity: 1;
}
#info-btn.footer-nav-btn--hint::before {
  content: '';
  position: absolute;
  inset: -1px 0 0;
  border-radius: 12px;
  background:
    conic-gradient(
      from 210deg at 50% 50%,
      rgba(0, 242, 255, 0) 0deg,
      rgba(0, 242, 255, 0.35) 70deg,
      rgba(147, 112, 255, 0.3) 140deg,
      rgba(0, 242, 255, 0.35) 210deg,
      rgba(147, 112, 255, 0.3) 280deg,
      rgba(0, 242, 255, 0) 360deg
    ),
    radial-gradient(
      ellipse 78% 82% at 50% 48%,
      rgba(0, 242, 255, 0.4) 0%,
      rgba(120, 90, 255, 0.22) 42%,
      rgba(0, 242, 255, 0.1) 58%,
      transparent 64%
    );
  opacity: 0.22;
  filter: blur(3px);
  transform: scale(0.98);
  animation: info-btn-halo 2s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}
#info-btn.footer-nav-btn--hint .footer-nav-ico,
#info-btn.footer-nav-btn--hint .footer-nav-label {
  position: relative;
  z-index: 1;
  animation: info-btn-label-glow 2s ease-in-out infinite;
}
#info-btn.footer-nav-btn--hint .footer-nav-ico {
  animation: info-btn-icon-glow 2s ease-in-out infinite;
}
#info-btn.footer-nav-btn--hint.active::before {
  animation: none;
  opacity: 0;
}
#info-btn.footer-nav-btn--hint.active .footer-nav-ico,
#info-btn.footer-nav-btn--hint.active .footer-nav-label {
  animation: none;
}
@keyframes info-btn-halo {
  0%, 100% {
    opacity: 0.1;
    transform: scale(0.97) rotate(0deg);
    filter: blur(2px);
  }
  50% {
    opacity: 0.38;
    transform: scale(1.01) rotate(8deg);
    filter: blur(5px);
  }
}
@keyframes info-btn-label-glow {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 4px rgba(0, 242, 255, 0.35);
  }
  50% {
    opacity: 1;
    text-shadow:
      0 0 8px rgba(0, 242, 255, 1),
      0 0 18px rgba(0, 242, 255, 0.85),
      0 0 32px rgba(147, 112, 255, 0.55);
  }
}
@keyframes info-btn-icon-glow {
  0%, 100% {
    opacity: 0.6;
    filter: drop-shadow(0 0 2px rgba(0, 242, 255, 0.4));
  }
  50% {
    opacity: 1;
    filter:
      drop-shadow(0 0 6px rgba(0, 242, 255, 1))
      drop-shadow(0 0 14px rgba(0, 242, 255, 0.75))
      drop-shadow(0 0 24px rgba(147, 112, 255, 0.5));
  }
}
@media (prefers-reduced-motion: reduce) {
  #info-btn.footer-nav-btn--hint::before {
    animation: none;
    opacity: 0;
  }
  #info-btn.footer-nav-btn--hint .footer-nav-ico,
  #info-btn.footer-nav-btn--hint .footer-nav-label {
    animation: none;
    opacity: 1;
  }
}
.info-page {
  padding: 15px;
  padding-top: calc(var(--app-topbar-h, 0px) + 8px);
  padding-left: max(15px, env(safe-area-inset-left, 0px));
  padding-right: max(15px, env(safe-area-inset-right, 0px));
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
  margin-top: 0;
  margin-bottom: calc(50px + env(safe-area-inset-bottom, 0px));
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: hidden;
}
.info-page.reviews-page {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
/* Страница заказа: обычный блочный скролл с запасом под футер (иначе «Por qué nosotros» обрезается) */
#order-page.info-page.order-page {
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  text-align: left;
  padding-bottom: calc(var(--app-footer-h, 88px) + 32px);
}
#order-page.order-page > h2 {
  text-align: center;
}
/* Info: перекрытие из-за display:flex у .info-page — только для #info-page блочный скролл */
#info-page.info-page.app-page-layer {
  display: block;
  overflow-y: auto;
  margin-bottom: 0;
}
.info-page h2 {
  font-size: 1.2em;
  margin: 8px 0;
  color: var(--app-text);
  text-shadow: var(--app-heading-shadow);
}
.info-page .info-content {
  background-color: var(--app-info-box);
  border-radius: 8px;
  padding: 10px;
}
.info-page .info-content a.info-link {
  color: var(--app-link);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(126, 184, 255, 0.3);
}
.info-page .info-content a.info-link:active {
  opacity: 0.8;
}
.info-page p {
  font-size: 0.8em;
  color: var(--app-info-text);
  text-shadow: var(--app-text-shadow-ui);
  margin: 5px 0;
}
.product-detail-page {
  padding: calc(12px + env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) calc(80px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
  justify-content: flex-start;
  background-color: var(--app-bg);
  min-height: 0;
}
.product-detail-page h2 {
  text-align: center;
  font-size: 1.2em;
  margin: 2px 0 4px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.slider-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 95%;
  overflow: hidden;
  border-radius: 8px;
  margin: 0 auto 8px;
  box-sizing: border-box;
}
/* Страница клиента: видео на весь экран в рамках mini app (не под нижней панелью) */
.product-detail-page .slider-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--app-footer-h, 88px);
  width: 100%;
  height: auto;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px);
  margin: 0;
  border-radius: 0;
  background: #000;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.product-detail-page .slider-container .slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.product-detail-page .slider-container .slide {
  min-height: 100%;
  height: 100%;
  width: 100%;
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-detail-page .slider-container .slide .video-wrapper {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  overflow: hidden;
}
.product-detail-page .slider-container .slide .video-wrapper img,
.product-detail-page .slider-container .slide .video-wrapper video,
.product-detail-page .slider-container .slide video,
.product-detail-page .slider-container .slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--app-slider-letterbox);
}
.product-detail-page .slider-container video.client-slide-video {
  pointer-events: auto;
  z-index: 2;
}
.product-detail-page .back-btn {
  position: fixed;
  top: calc(6px + env(safe-area-inset-top, 0px));
  left: max(10px, env(safe-area-inset-left, 0px));
  width: auto;
  min-width: 72px;
  z-index: 10050;
  margin: 0;
  padding: 8px 12px;
  min-height: 40px;
  background: transparent;
  box-shadow: none;
  pointer-events: auto;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95), 0 0 12px rgba(0, 0, 0, 0.75);
}
.product-detail-page h2 {
  display: none;
}
.product-detail-page .slide-dots {
  bottom: calc(var(--app-footer-h, 88px) + 10px);
}
.slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.3s ease;
}
.slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.slider-container.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  background: #000;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  box-sizing: border-box;
}
.slider-container.fullscreen .slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.slider-container.fullscreen .slide {
  min-height: 100%;
}
.slider-container.fullscreen .slide-indicator,
.slider-container.fullscreen .slider-nav-btn,
.slider-container.fullscreen .slide-dots {
  display: none;
}
.slide-dots {
  position: fixed;
  bottom: calc(60px - 2cm + env(safe-area-inset-bottom, 0px));
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2600;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.slide-dots.dots-hidden {
  opacity: 0;
  pointer-events: none;
}
.slide-dots.dot-interactive {
  pointer-events: auto;
}
.slide-dots.dots-hidden.dot-interactive {
  pointer-events: none;
}
.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--app-slide-dot);
  transition: background 0.2s;
}
.slide-dot.active {
  background: var(--app-slide-dot-active);
}
.slider-container.fullscreen .slide video,
.slider-container.fullscreen .slide.full video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--app-slider-letterbox);
}
.slide.full video,
video:fullscreen,
video:-webkit-full-screen,
video:-moz-full-screen,
video:-ms-fullscreen {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  background: var(--app-slider-letterbox);
}
.product-detail-page .chat-btn {
  position: relative;
  z-index: 4000;
}
.client-detail-bar {
  display: none;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--app-footer-h, 88px) + var(--footer-fab-r) + var(--footer-fab-lift) + 14px);
  z-index: 10155;
  width: min(360px, calc(100% - 28px));
  gap: 10px;
  align-items: stretch;
  justify-content: center;
  box-sizing: border-box;
}
.client-detail-bar.is-visible {
  display: flex;
}
.client-review-btn,
.client-cart-btn {
  min-height: 44px;
  border: 1px solid var(--app-border-warm);
  border-radius: 12px;
  background: var(--app-surface);
  color: var(--app-accent);
  font-size: 0.92em;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: var(--app-elev-shadow);
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: transform 0.12s ease, background-color 0.12s ease;
}
.client-review-btn {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
}
.client-cart-btn {
  flex: none;
  width: 52px;
  padding: 0;
  border-color: rgba(57, 255, 20, 0.35);
  color: var(--app-accent-green);
}
.client-cart-btn svg {
  width: 22px;
  height: 22px;
  display: block;
}
.client-review-btn:active,
.client-cart-btn:active {
  transform: scale(0.98);
  background: var(--app-card-solid-active);
}
.client-review-modal-content {
  max-width: 94%;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 14px 16px;
  text-align: center;
}
.client-review-modal-content h3 {
  margin: 0 0 12px;
  font-size: 1.1em;
}
.client-review-modal-content img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 10px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.25);
}
.client-review-modal-empty {
  margin: 8px 0 4px;
  font-size: 0.9em;
  color: var(--app-info-muted);
  line-height: 1.4;
}
.client-review-modal-content .modal-close-btn {
  width: 100%;
  margin-top: 14px;
}
.chat-btn {
  background-color: var(--app-chat-secondary);
  color: var(--app-text);
  border: 1px solid var(--app-card-border);
  padding: 14px 16px;
  min-height: 44px;
  border-radius: 8px;
  margin-top: 0;
  cursor: pointer;
  font-size: 1.2em;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 150px;
  position: relative;
  z-index: 100;
  pointer-events: auto;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s, transform 0.1s;
  box-sizing: border-box;
}
.chat-btn:active {
  background-color: var(--app-chat-secondary-active);
  transform: scale(0.98);
}
.product-info {
  text-align: center;
  margin-top: auto;
  padding-top: 10px;
  width: 100%;
  flex-shrink: 0;
}
.product-info-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.product-info-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
  transition: background 0.2s, transform 0.1s;
}
.product-info-btn:active {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0.95);
}
/* Индикатор слайдов */
.slide-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--app-badge-bg);
  color: var(--app-badge-text);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.85em;
  z-index: 100;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
/* Кнопки навигации */
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--app-nav-btn-bg);
  border: 1px solid var(--app-card-border);
  color: var(--app-nav-btn-color);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  font-size: 1.2em;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: background 0.2s, transform 0.2s;
}
.slider-nav-btn:active {
  transform: translateY(-50%) scale(0.9);
  background: var(--app-nav-btn-bg-active);
}
.slider-nav-btn.prev {
  left: 10px;
}
.slider-nav-btn.next {
  right: 10px;
}
.slider-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
/* Индикатор загрузки */
.video-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}
@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
/* Улучшенные стили для видео */
.slide video {
  position: relative;
}
.video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}
/* ═══════════════════════════════════════════════════════════════ */
/* Long-Press Preview Modal */
/* ═══════════════════════════════════════════════════════════════ */
.longpress-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.longpress-preview-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.longpress-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.longpress-preview-content {
  position: relative;
  width: 85%;
  max-width: 320px;
  padding: 20px;
  background: var(--app-card-solid);
  border: 1px solid var(--app-card-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transform: scale(0.9);
  transition: transform 0.2s ease;
}
.longpress-preview-modal.is-visible .longpress-preview-content {
  transform: scale(1);
}
.longpress-preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.longpress-preview-ico {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 1.5em;
  line-height: 1;
}
.longpress-preview-ico img,
.longpress-preview-ico svg,
.longpress-preview-ico .brand-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 48px !important;
  max-height: 48px !important;
  object-fit: contain !important;
  display: block;
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}
.longpress-preview-ico svg {
  width: 32px !important;
  height: 32px !important;
}
.longpress-preview-name {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--app-text);
  margin: 0;
}
.longpress-preview-desc {
  font-size: 0.85em;
  color: var(--app-info-muted);
  margin: 0 0 12px;
}
.longpress-preview-price {
  font-size: 1em;
  font-weight: 600;
  color: var(--app-accent);
  margin-bottom: 16px;
}
.longpress-preview-actions {
  display: flex;
  gap: 10px;
}
.longpress-preview-btn {
  flex: 1;
  padding: 12px 16px;
  font-size: 0.9em;
  font-weight: 600;
  color: #fff;
  background: var(--app-accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.longpress-preview-btn--fav {
  flex: 0 0 auto;
  background: var(--app-card-border);
  color: var(--app-text);
}
.longpress-preview-btn--fav.is-fav {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}
.longpress-preview-btn:active {
  opacity: 0.85;
}
/* ═══════════════════════════════════════════════════════════════ */
/* Favorites Modal */
/* ═══════════════════════════════════════════════════════════════ */
.fav-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
  box-sizing: border-box;
}
.fav-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.fav-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.fav-modal-content {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: 80vh;
  background: var(--app-card-solid);
  border-radius: 20px;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.25s ease;
}
.fav-modal.is-visible .fav-modal-content {
  transform: scale(1);
}
.fav-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--app-card-border);
}
.fav-modal-header h3 {
  margin: 0;
  font-size: 1.1em;
  color: var(--app-text);
}
.fav-modal-close {
  width: 32px;
  height: 32px;
  font-size: 1.2em;
  color: var(--app-info-muted);
  background: none;
  border: none;
  cursor: pointer;
}
.fav-modal-list {
  padding: 12px 16px 24px;
  overflow-y: auto;
  max-height: calc(70vh - 60px);
}
.fav-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--app-info-muted);
  font-size: 0.9em;
}
.fav-empty-title {
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--app-text);
}
.fav-empty-hint {
  margin: 0;
  font-size: 0.88em;
  line-height: 1.45;
  color: var(--app-info-muted);
}
.fav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 8px;
  background: var(--app-bg);
  border-radius: 12px;
  cursor: pointer;
}
.fav-item:active {
  opacity: 0.8;
}
.fav-item-ico {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.15);
  font-size: 1.25em;
  line-height: 1;
}
.fav-item-ico img,
.fav-item-ico svg,
.fav-item-ico .brand-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 40px !important;
  max-height: 40px !important;
  object-fit: contain !important;
  display: block;
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
}
.fav-item-ico svg {
  width: 28px !important;
  height: 28px !important;
}
.fav-item-body {
  flex: 1;
  min-width: 0;
}
.fav-item-name {
  display: block;
  font-weight: 600;
  color: var(--app-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fav-item-price {
  font-size: 0.85em;
  color: var(--app-accent);
}
.fav-item-remove {
  width: 28px;
  height: 28px;
  font-size: 0.9em;
  color: var(--app-info-muted);
  background: none;
  border: none;
  cursor: pointer;
}
.order-stream-card { position: relative; }
.order-item { position: relative; }
.order-device-card { position: relative; }
.flash-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 3px 8px;
  font-size: 0.68em;
  font-weight: 800;
  font-family: var(--app-font-mono);
  color: #ffb347;
  background: rgba(255, 179, 71, 0.18);
  border: 1px solid rgba(255, 179, 71, 0.45);
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(255, 179, 71, 0.2);
  z-index: 2;
  animation: flashPulse 2.4s ease-in-out infinite;
}
.order-item.is-flash-active,
.order-device-card.is-flash-active,
.cart-item.is-flash-active {
  border-color: rgba(255, 179, 71, 0.55) !important;
  box-shadow: 0 0 16px rgba(255, 179, 71, 0.12);
}
.flash-card-timer--corner {
  position: absolute;
  top: 6px;
  right: 26px;
  padding: 2px 6px;
  font-size: 0.62rem;
  font-weight: 700;
  font-family: var(--app-font-mono);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffb347;
  background: rgba(255, 179, 71, 0.18);
  border: 1px solid rgba(255, 179, 71, 0.45);
  border-radius: 6px;
  white-space: nowrap;
  z-index: 2;
  pointer-events: none;
}
.order-item.is-flash-active .order-item-body,
.order-device-card.is-flash-active .order-device-card-body {
  padding-right: 2.2em;
}
.order-item.is-flash-active .order-item-name,
.order-device-card.is-flash-active .order-device-card-name {
  padding-right: 3.2em;
}
.order-flash-banner {
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--app-font-mono);
  line-height: 1.35;
  text-align: center;
  color: #ffb347;
  background: rgba(255, 179, 71, 0.12);
  border: 1px solid rgba(255, 179, 71, 0.38);
  animation: flashPulse 2.4s ease-in-out infinite;
}
.order-item-price .catalog-price-compare s {
  opacity: 0.65;
}
/* ═══════════════════════════════════════════════════════════════ */
/* Referral Modal */
/* ═══════════════════════════════════════════════════════════════ */
.ref-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 0;
  box-sizing: border-box;
}
.ref-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.ref-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.ref-modal-content {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 88vh;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  background: var(--app-card-solid);
  border: 1px solid var(--app-card-border);
  border-radius: 20px 20px 0 0;
  text-align: left;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}
.ref-modal.is-visible .ref-modal-content {
  transform: translateY(0);
}
body.ref-modal-open {
  overflow: hidden;
}
body.ref-modal-open .footer,
html.app-boot-ready body.ref-modal-open .footer {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
.ref-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  font-size: 1.1em;
  line-height: 1;
  color: var(--app-info-muted);
  background: var(--app-bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}
.ref-modal-title {
  font-size: 1.15em;
  font-weight: 700;
  margin: 0 36px 10px 0;
  color: var(--app-text);
  text-align: left;
}
.ref-pitch {
  font-size: 0.88em;
  line-height: 1.45;
  color: var(--app-info-muted);
  margin: 0 0 14px;
}
.ref-pitch strong {
  color: var(--app-text);
  font-weight: 600;
}
.ref-pitch .ref-progress {
  color: #2ecc71;
  font-weight: 700;
}
.ref-invite-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
  background: var(--app-bg);
  border: 1px solid var(--app-card-border);
  border-radius: 14px;
}
.ref-link-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ref-invite-label {
  display: block;
  font-size: 0.92em;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0;
  text-transform: none;
  color: var(--app-text);
  margin: 0;
}
.ref-link-text {
  display: block;
  font-size: 0.86em;
  line-height: 1.35;
  font-weight: 500;
  color: var(--app-text);
  word-break: break-all;
  text-align: left;
}
.ref-icon-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--app-accent);
  background: rgba(0, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 255, 0.25);
  border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ref-icon-btn svg {
  width: 26px;
  height: 26px;
  display: block;
}
.ref-icon-btn svg rect:last-child {
  fill: currentColor;
}
.ref-icon-btn svg rect:first-child {
  fill: currentColor;
  opacity: 0.45;
}
.ref-icon-btn:active {
  opacity: 0.75;
  transform: none;
}
.ref-copy-notice {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  font-size: 0.88em;
  font-weight: 700;
  color: #2ecc71;
  text-align: center;
  background: rgba(12, 12, 14, 0.92);
  border-radius: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.ref-copy-notice.is-visible {
  opacity: 1;
}
.ref-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.ref-stat {
  padding: 12px;
  text-align: center;
  background: var(--app-bg);
  border: 1px solid var(--app-card-border);
  border-radius: 12px;
}
.ref-stat-value {
  display: block;
  font-size: 1.35em;
  font-weight: 700;
  color: var(--app-text);
  line-height: 1.2;
}
.ref-stat-label {
  display: block;
  margin-top: 2px;
  font-size: 0.72em;
  color: var(--app-info-muted);
}
.ref-share-btn {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 10px;
  font-size: 0.95em;
  font-weight: 700;
  color: #0a0a0a;
  background: linear-gradient(135deg, var(--app-accent), #00c8c8);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 255, 255, 0.25);
}
.ref-share-btn:active {
  transform: scale(0.98);
}
.ref-share-btn:disabled {
  opacity: 0.45;
  pointer-events: none;
  box-shadow: none;
}
.ref-withdraw-btn {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 0;
  font-size: 0.9em;
  font-weight: 600;
  color: var(--app-text);
  background: transparent;
  border: 1px solid var(--app-card-border);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ref-withdraw-ico {
  font-size: 1.15em;
  line-height: 1;
  flex-shrink: 0;
}
.ref-withdraw-label {
  line-height: 1.2;
}
.ref-withdraw-btn:active:not(:disabled) {
  background: var(--app-bg);
}
.ref-withdraw-btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}
.ref-toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 10001;
  padding: 10px 18px;
  font-size: 0.84em;
  font-weight: 600;
  color: #fff;
  background: rgba(20, 20, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.ref-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.ref-toast.is-success {
  border-color: rgba(46, 204, 113, 0.35);
}
.ref-toast.is-error {
  border-color: rgba(231, 76, 60, 0.35);
}
.ref-alert {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.62);
  border-radius: 20px 20px 0 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.ref-alert.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.ref-alert-box {
  width: 100%;
  padding: 20px 18px 16px;
  background: var(--app-card-solid);
  border: 1px solid var(--app-card-border);
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.ref-alert-text {
  margin: 0 0 16px;
  font-size: 0.92em;
  line-height: 1.45;
  color: var(--app-text);
}
.ref-alert-btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9em;
  font-weight: 700;
  color: #0a0a0a;
  background: linear-gradient(135deg, var(--app-accent), #00c8c8);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.ref-alert-btn:active {
  transform: scale(0.98);
}

/* Светлая тема Telegram: дублирует паттерн Alcaponetg (html.theme-light). */
html.theme-light body {
  background-color: #ffffff !important;
  color: #000000 !important;
}
html.theme-light .app-top-bar {
  background-color: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15) !important;
  color: #000000 !important;
  text-shadow: none !important;
}
html.theme-light .header h1 {
  color: #000000 !important;
  text-shadow: none !important;
}
html.theme-light .bg-title-shop,
html.theme-light .bg-title-name {
  color: rgba(0, 0, 0, 0.3) !important;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.85) !important;
}
html.theme-light .sub-product-page h2,
html.theme-light .product-detail-page h2,
html.theme-light .sub-product-header h3,
html.theme-light .category-page-layer h2 {
  color: #000000 !important;
  text-shadow: none !important;
}
html.theme-light .back-btn,
html.theme-light .sub-product-page .back-btn {
  background: transparent !important;
  color: #000000 !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.95), 0 1px 3px rgba(255, 255, 255, 0.9) !important;
  box-shadow: none !important;
}
html.theme-light .product-detail-page .back-btn {
  background: transparent !important;
  color: #ffffff !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95), 0 0 12px rgba(0, 0, 0, 0.75) !important;
  box-shadow: none !important;
}
html.theme-light .footer {
  background-color: rgba(255, 255, 255, 0.92) !important;
  border-top: none !important;
}
html.theme-light .footer-gold-line {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.18) calc(50% - var(--footer-fab-r)),
    transparent calc(50% - var(--footer-fab-r)),
    transparent calc(50% + var(--footer-fab-r)),
    rgba(0, 0, 0, 0.18) calc(50% + var(--footer-fab-r)),
    rgba(0, 0, 0, 0.18) 100%
  ) !important;
}
html.theme-light .footer button {
  color: #000000 !important;
  text-shadow: none !important;
}
html.theme-light .footer button.footer-nav-btn {
  background: rgba(0, 0, 0, 0) !important;
  box-shadow: 0 0 0 0 transparent !important;
}
html.theme-light .footer button.footer-nav-btn:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.35) !important;
  outline-offset: 2px;
}
html.theme-light .footer .footer-nav-label {
  font-weight: 700 !important;
}
html.theme-light .hash-filter-btn,
html.theme-light .tier-filter-btn {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: #111 !important;
}
html.theme-light .hash-filter-btn.active,
html.theme-light .tier-filter-btn.active {
  background: rgba(60, 90, 60, 0.9) !important;
  color: #fff !important;
  border-color: rgba(100, 160, 100, 0.5) !important;
}
html.theme-light .catalog-filter-bar {
  background: rgba(245, 245, 247, 0.94) !important;
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}
html.theme-light .catalog-filter-chip {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: #111 !important;
}
html.theme-light .catalog-filter-chip.is-active {
  background: rgba(60, 90, 60, 0.92) !important;
  color: #fff !important;
  border-color: rgba(100, 160, 100, 0.5) !important;
}
html.theme-light .catalog-chip-star { color: #e6a700 !important; }
html.theme-light .product-card {
  background-color: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
}
html.theme-light .product-card:active {
  background-color: rgba(255, 255, 255, 1) !important;
}
html.theme-light .product-card h3 {
  color: #000000 !important;
  text-shadow: none !important;
}
html.theme-light #category-product-grid .product-card-badge--nuevo {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
html.theme-light #category-product-grid .product-card-badge--oferta {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
html.theme-light #category-product-grid .product-card {
  border-color: rgba(0, 0, 0, 0.12);
}
html.theme-light #category-product-grid .product-card.sold-out h3 {
  color: rgba(0, 0, 0, 0.42);
}
html.theme-light #menu-page .product-card {
  background-color: rgba(255, 255, 255, 0.92) !important;
}
html.theme-light #menu-page .product-card:active {
  background-color: rgba(255, 255, 255, 1) !important;
}
html.theme-light .modal-content {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}
html.theme-light .modal-content h3 {
  color: #000000 !important;
  text-shadow: none !important;
}
html.theme-light .modal-content p {
  color: #111111 !important;
  text-shadow: none !important;
}
html.theme-light .modal-close-btn {
  background-color: rgba(0, 0, 0, 0.08) !important;
  color: #000000 !important;
}
html.theme-light #settings-modal .settings-modal-content {
  background: linear-gradient(165deg, #f4f6fa 0%, #e8ecf2 100%) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}
html.theme-light #settings-modal .settings-modal-content h3,
html.theme-light #settings-modal .lang-picker-label,
html.theme-light #settings-modal .lang-picker-option {
  color: #111 !important;
}
html.theme-light #settings-modal .settings-section-label {
  color: rgba(0, 0, 0, 0.45) !important;
}
html.theme-light #settings-modal .settings-fx-note {
  color: rgba(0, 0, 0, 0.45) !important;
}
html.theme-light #settings-modal .settings-toggle-row {
  border-color: rgba(0, 0, 0, 0.12) !important;
  background: rgba(255, 255, 255, 0.88) !important;
  color: #111 !important;
}
html.theme-light #settings-modal .settings-toggle-row.is-on .settings-toggle-track {
  background: rgba(40, 170, 70, 0.55) !important;
}
html.theme-light #settings-modal .settings-danger-btn {
  background: rgba(220, 60, 60, 0.1) !important;
  border-color: rgba(200, 50, 50, 0.35) !important;
  color: #b32626 !important;
}
html.theme-light #settings-modal .lang-picker-trigger {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(0, 0, 0, 0.14) !important;
  color: #111 !important;
}
html.theme-light #settings-modal .lang-picker.is-open .lang-picker-trigger,
html.theme-light #settings-modal .lang-picker.is-open .lang-picker-list {
  border-color: rgba(50, 110, 220, 0.85) !important;
}
html.theme-light #settings-modal .lang-picker-list {
  background: #fff !important;
}
html.theme-light #settings-modal .lang-picker-option.is-active {
  background: rgba(50, 110, 220, 0.14) !important;
}
html.theme-light .review-item {
  background: rgba(245, 246, 248, 0.96) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: #333 !important;
}
html.theme-light .review-star {
  color: rgba(0, 0, 0, 0.12) !important;
}
html.theme-light .review-star.is-filled {
  color: #e6a800 !important;
  text-shadow: none !important;
}
html.theme-light .review-stars-meter-bg {
  color: rgba(0, 0, 0, 0.14) !important;
}
html.theme-light .review-stars-meter-fill {
  color: #e6a800 !important;
  text-shadow: none !important;
}
html.theme-light .review-head {
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}
html.theme-light .review-date {
  color: rgba(0, 0, 0, 0.45) !important;
}
html.theme-light .review-text {
  color: rgba(0, 0, 0, 0.88) !important;
}
html.theme-light .review-author-link {
  color: #0088cc !important;
}
html.theme-light .review-media-thumb {
  background: rgba(0, 0, 0, 0.06) !important;
}
html.theme-light .reviews-empty {
  color: rgba(0, 0, 0, 0.68) !important;
}
html.theme-light .footer button.footer-nav-btn.active {
  color: #111 !important;
  background: rgba(0, 0, 0, 0.07) !important;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 2px 10px rgba(0, 0, 0, 0.08) !important;
  text-shadow: none !important;
}
html.theme-light .footer button.footer-nav-btn.active::after {
  background: #111 !important;
}
html.theme-light .footer-fab-circle {
  background: linear-gradient(155deg, #333 0%, #111 100%) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}
html.theme-light .footer-fab-label {
  color: #111 !important;
}
html.theme-light .client-menu-btn {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}
html.theme-light .client-menu-btn-sub {
  color: rgba(0, 0, 0, 0.5) !important;
}
html.theme-light .client-menu-btn-chevron {
  color: #111 !important;
}
html.theme-light .info-reviews-cta-btn {
  color: #111 !important;
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1) !important;
}
html.theme-light .menu-reviews-trust {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.14), rgba(255, 165, 0, 0.08));
  border-color: rgba(180, 140, 0, 0.28);
}

.app-update-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--app-bg, #06080f);
  color: var(--app-text, #e8f4ff);
  font-family: Outfit, system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}
.app-update-overlay[hidden] {
  display: none !important;
}

.app-update-hint {
  margin: 10px 0 4px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--app-text-dim, #9fb3c8);
  opacity: 0.85;
}

/* ═══════════════════════════════════════════════════════════
   Экран предзагрузки (3 варианта, циклично при перезагрузке)
   ═══════════════════════════════════════════════════════════ */
.app-preloader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 90% at 50% 12%, rgba(0, 242, 255, 0.10), transparent 60%),
    radial-gradient(120% 90% at 50% 100%, rgba(57, 255, 20, 0.08), transparent 55%),
    #06080f;
  color: var(--app-text, #e8f4ff);
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  -webkit-user-select: none;
  user-select: none;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.app-preloader.app-preloader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* Пока грузимся — оболочка под splash с opacity:0 (как AlcaponeBOT app-boot-pending) */
html.app-boot-pending { overflow: hidden !important; }
html.app-boot-pending body {
  background: #06080f !important;
  background-image: none !important;
}
html.app-boot-pending body::before,
html.app-boot-pending body::after {
  display: none !important;
  content: none !important;
}
html.app-boot-pending #app-pages-root,
html.app-boot-pending .app-header,
html.app-boot-pending .bg-title,
html.app-boot-pending .footer,
html.app-boot-pending body > *:not(#app-preloader):not(#access-denied-screen):not(#app-icon-sprite) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
html.app-boot-ready #app-pages-root,
html.app-boot-ready .app-header,
html.app-boot-ready .footer,
html.app-boot-ready .bg-title {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
html.app-boot-ready .bg-title { pointer-events: none; }

html.access-denied-active #app-pages-root,
html.access-denied-active .app-header,
html.access-denied-active .footer,
html.access-denied-active .bg-title,
html.access-denied-active #app-preloader {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.access-denied-screen {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  background: #06080f;
  text-align: center;
}
.access-denied-screen[hidden] {
  display: none !important;
}
.access-denied-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: min(88vw, 360px);
}
.access-denied-image {
  width: min(72vw, 280px);
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.access-denied-text {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.45;
  font-weight: 600;
  color: #f3f4f8;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: min(82vw, 340px);
  text-align: center;
  padding: 24px;
}
.preloader-bart-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 168px;
}
.preloader-bart {
  width: 150px;
  height: 150px;
  object-fit: contain;
  display: block;
}
.preloader-ring { display: none; }
.preloader-title {
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.5px;
  line-height: 1.15;
}
.preloader-title span {
  color: var(--app-accent-green, #39ff14);
  text-shadow: 0 0 14px rgba(57, 255, 20, 0.5);
}
.preloader-sub {
  font-size: 13px;
  letter-spacing: 0.4px;
  color: var(--app-text-muted, rgba(200, 220, 240, 0.72));
}
.preloader-pct { display: none; }
.preloader-terminal { display: none; }
.preloader-bar {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.preloader-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 6%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--app-accent, #00f2ff), var(--app-accent-green, #39ff14));
  box-shadow: 0 0 12px rgba(0, 242, 255, 0.6);
  transition: width 0.25s ease;
}
.preloader-variant-tag {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(160, 190, 220, 0.42);
  font-family: var(--app-font-mono);
}

/* ── Вариант 1: Neon minimal ── */
.app-preloader[data-variant="1"] .preloader-bart {
  filter: drop-shadow(0 0 22px rgba(0, 242, 255, 0.45));
  animation: pre-bob 2.4s ease-in-out infinite;
}
@keyframes pre-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Вариант 2: Tech ring ── */
.app-preloader[data-variant="2"] .preloader-ring {
  display: block;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--app-accent, #00f2ff), var(--app-accent-green, #39ff14), rgba(0, 242, 255, 0) 72%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  animation: pre-spin 1.1s linear infinite;
}
@keyframes pre-spin { to { transform: rotate(360deg); } }
.app-preloader[data-variant="2"] .preloader-bart {
  width: 118px;
  height: 118px;
  filter: drop-shadow(0 0 16px rgba(57, 255, 20, 0.4));
}
.app-preloader[data-variant="2"] .preloader-pct {
  display: block;
  font-family: var(--app-font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--app-accent-green, #39ff14);
  text-shadow: 0 0 12px rgba(57, 255, 20, 0.4);
}
.app-preloader[data-variant="2"] .preloader-bar { display: none; }

/* ── Вариант 3: Terminal boot ── */
.app-preloader[data-variant="3"] {
  background:
    repeating-linear-gradient(0deg, rgba(57, 255, 20, 0.03) 0 1px, transparent 1px 3px),
    radial-gradient(120% 90% at 50% 20%, rgba(57, 255, 20, 0.08), transparent 60%),
    #04070d;
}
.app-preloader[data-variant="3"] .preloader-title,
.app-preloader[data-variant="3"] .preloader-sub,
.app-preloader[data-variant="3"] .preloader-pct { display: none; }
.app-preloader[data-variant="3"] .preloader-inner {
  width: min(90vw, 380px);
  gap: 20px;
  padding: 26px;
}
.app-preloader[data-variant="3"] .preloader-bart-wrap {
  width: 118px;
  height: 118px;
}
.app-preloader[data-variant="3"] .preloader-bart {
  width: 112px;
  height: 112px;
  opacity: 0.92;
  filter: drop-shadow(0 0 14px rgba(57, 255, 20, 0.5));
}
.app-preloader[data-variant="3"] .preloader-terminal {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--app-font-mono);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--app-accent-green, #39ff14);
  background: rgba(0, 22, 10, 0.35);
  border: 1px solid rgba(57, 255, 20, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: inset 0 0 22px rgba(57, 255, 20, 0.12);
}
.app-preloader[data-variant="3"] .preloader-terminal .tline {
  opacity: 0;
  animation: pre-typ 0.35s ease forwards;
}
.app-preloader[data-variant="3"] .preloader-terminal .tline:nth-child(1) { animation-delay: 0.15s; }
.app-preloader[data-variant="3"] .preloader-terminal .tline:nth-child(2) { animation-delay: 0.55s; }
.app-preloader[data-variant="3"] .preloader-terminal .tline:nth-child(3) { animation-delay: 0.95s; }
.app-preloader[data-variant="3"] .preloader-terminal .tline:nth-child(4) { animation-delay: 1.4s; }
.app-preloader[data-variant="3"] .preloader-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--app-accent-green, #39ff14);
  vertical-align: middle;
  animation: pre-blink 1s steps(1) infinite;
}
@keyframes pre-typ { to { opacity: 1; } }
@keyframes pre-blink { 50% { opacity: 0; } }
.app-preloader[data-variant="3"] .preloader-bar-fill {
  background: var(--app-accent-green, #39ff14);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.7);
}

@media (prefers-reduced-motion: reduce) {
  .app-preloader .preloader-bart,
  .app-preloader .preloader-ring,
  .app-preloader .preloader-cursor,
  .app-preloader .preloader-terminal .tline { animation: none !important; }
  .app-preloader[data-variant="3"] .preloader-terminal .tline { opacity: 1; }
}

/* Web checkout modal */
.web-checkout-modal-content { max-width: 420px; width: min(92vw, 420px); text-align: left; }
.web-checkout-hint { color: var(--app-info-muted); font-size: 0.92rem; margin: 0 0 14px; line-height: 1.45; }
.web-checkout-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 10px;
}
.web-checkout-ch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.web-checkout-login {
  margin: 14px 0 4px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 242, 255, 0.22);
  background: rgba(0, 242, 255, 0.06);
}
.web-checkout-login-title { margin: 0 0 10px; font-weight: 800; font-size: 0.95rem; }
.web-checkout-login-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.web-checkout-label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--app-accent); margin: 10px 0 6px; }
.web-checkout-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,242,255,0.22);
  background: rgba(6, 12, 22, 0.9);
  color: var(--app-text);
  font-size: 1rem;
  font-family: inherit;
}
.web-checkout-note { resize: vertical; min-height: 64px; }
.web-checkout-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.web-checkout-error { color: #ff6b6b; font-size: 0.88rem; margin: 10px 0 0; }
.web-checkout-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
#web-checkout-modal.show { display: flex; }
