:root {
  --bg-color: #0c0707;
  --card-bg: rgba(255, 255, 255, 0.07);
  --text-main: #FFFFFF;
  --text-muted: #8E8E93;
  --accent: #DA0505;
  --font-family: 'Geologica', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif;
  --status-bar-unscrolled: max(44px, env(safe-area-inset-top));
  --status-bar-scrolled: env(safe-area-inset-top, 0px);
  --header-unscrolled: calc(var(--status-bar-unscrolled) + 74px);
  --header-scrolled: calc(var(--status-bar-scrolled) + 56px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::-webkit-scrollbar {
  display: none;
}

#root {
  display: contents;
}

.app-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 10%, #3a0e0e 0%, #180804 55%, #0a0302 100%) !important;
  background-attachment: fixed !important;
  position: relative;
  overflow-x: clip;
}

/* ── Liquid Blobs Background ── */
.liquid-blobs-bg {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.6;
  mix-blend-mode: screen;
  animation: floatBlob 20s infinite ease-in-out;
  will-change: transform, border-radius;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(218, 5, 5, 0.7) 0%, transparent 70%);
  top: -100px;
  right: -150px;
  animation-duration: 25s;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(242, 166, 90, 0.6) 0%, transparent 70%);
  top: 35%;
  left: -180px;
  animation-duration: 20s;
  animation-delay: -5s;
}

.blob-3 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(232, 85, 32, 0.55) 0%, transparent 70%);
  bottom: 20%;
  right: -180px;
  animation-duration: 22s;
  animation-delay: -10s;
}

.blob-4 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.45) 0%, transparent 70%);
  bottom: -80px;
  left: -120px;
  animation-duration: 16s;
  animation-delay: -2s;
}

@keyframes floatBlob {

  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    border-radius: 50%;
  }

  33% {
    transform: translate(40px, -60px) scale(1.18) rotate(120deg);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }

  66% {
    transform: translate(-30px, 40px) scale(0.92) rotate(240deg);
    border-radius: 60% 40% 30% 70% / 50% 60% 40% 60%;
  }
}

/* Status bar spacer */
.status-bar-space {
  height: var(--status-bar-unscrolled);
  transition: height 0.3s ease;
}

.sticky-header-wrapper.scrolled .status-bar-space {
  height: var(--status-bar-scrolled);
}

/* ── Hero Background Video ── */
.hero {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* Set to 83vh to let video extend slightly under categories bar for a glass effect */
  height: 80vh;
  min-height: 660px;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(10, 5, 5, 0.75) 0%,
      rgba(10, 5, 5, 0.30) 15%,
      rgba(10, 5, 5, 0.0) 30%,
      rgba(10, 5, 5, 0.10) 55%,
      rgba(10, 5, 5, 0.60) 80%,
      var(--bg-color) 98%,
      var(--bg-color) 100%);
  z-index: 1;
}

/* ── Hero Foreground Content ──
       Drinkit: header ~68px + spacer pushes title to ~50% of 844px = 422px
       hero-content height = 422 - 68 = 354px → 42vh (at 844px = 354px) ✓  */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 20px 72px;
  height: 68vh;
  min-height: 560px;
  justify-content: flex-end;
}

.hero-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
}

/* ── Header Sticky Wrapper ── */
.sticky-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 30;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.sticky-header-wrapper.scrolled {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* ── Header ── */
.header {
  padding: 18px 20px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 74px;
  transition: height 0.3s ease, padding 0.3s ease;
}

.sticky-header-wrapper.scrolled .header {
  height: 56px;
  padding: 8px 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.header-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
}

.header-time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1;
}

.header-profile {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-header-wrapper.scrolled .header-profile {
  width: 32px;
  height: 32px;
}

.header-profile svg {
  width: 22px;
  height: 22px;
  transition: width 0.3s ease, height 0.3s ease;
}

.sticky-header-wrapper.scrolled .header-profile svg {
  width: 16px;
  height: 16px;
}

.header-profile .bell-badge-dot {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: #ff3b30;
  border-radius: 50%;
  border: 1.5px solid #1c0809;
  box-shadow: 0 0 6px #ff3b30;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-header-wrapper.scrolled .header-profile .bell-badge-dot {
  top: 5px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-width: 1px;
}

/* ── Tabs ──
       Drinkit: thin tab bar, 10px vertical padding, 17px text  */
.tabs-wrapper {
  position: sticky;
  top: var(--header-unscrolled);
  z-index: 20;
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.18);
  transition: top 0.3s ease;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.sticky-header-wrapper.scrolled~.tabs-wrapper {
  top: var(--header-scrolled);
  border-bottom-color: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 8px 16px rgba(255, 255, 255, 0.04);
}

.tabs {
  display: flex;
  gap: 0;
  /* no gap — tabs control their own padding */
  padding: 0 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.tab {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  padding: 6px 16px;
  border-radius: 12px;
  position: relative;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin: 0 4px;
}

.tab:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.03);
}

.tab.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: scale(1.02);
}

/* Sections */
.section {
  padding: 0 0 28px 0;
  position: relative;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding: 0 20px;
  letter-spacing: -0.015em;
}

.scroll-row {
  display: flex;
  gap: 10px;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.scroll-row::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.scroll-row::after {
  content: '';
  padding-right: 8px;
}

/* Burger Card — premium style */
.drink-card {
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(30px) saturate(140%);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
  border-radius: 24px;
  min-width: 150px;
  width: 150px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s, background-color 0.4s;
  overflow: hidden;
}

.drink-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.08) 40%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0.08) 60%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 3;
}

.drink-card:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.drink-card:hover::after {
  transform: translateX(100%);
}

.drink-card:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2) !important;
}

.drink-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 12px;
  border-radius: 16px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
}

.drink-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  /* тень у фото товара убрана по просьбе владельца */
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.drink-card:hover .drink-image {
  transform: scale(1.15) translateY(-8px);
}

.drink-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  flex-grow: 1;
  color: rgba(255, 255, 255, 0.95);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.drink-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.drink-price {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.drink-arrow {
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.drink-card:hover .drink-arrow {
  background: var(--accent);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(218, 5, 5, 0.5);
}

/* Banners */
.promo-banner {
  border-radius: 24px;
  margin: 0 20px;
  display: flex;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 140px;
}

.promo-banner::before,
.combo-banner::before {
  display: none;
}

@keyframes sweepShimmer {
  0% {
    left: -150%;
  }

  35% {
    left: 150%;
  }

  100% {
    left: 150%;
  }
}

.promo-banner:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.promo-banner:active,
.combo-banner:active {
  transform: translateY(-2px) scale(0.98);
}

.promo-banner video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
  filter: brightness(0.9) contrast(1.1);
}

.promo-overlay {
  position: absolute;
  inset: 0;
  /* затемнение и размытие убраны по просьбе владельца */
  background: none;
  z-index: 1;
}

.promo-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  width: 100%;
}

.promo-text {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  max-width: 75%;
}

.promo-text span {
  color: #fff;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes floatGift {

  0%,
  100% {
    transform: translateY(0) rotate(-3deg) scale(1.05);
  }

  50% {
    transform: translateY(-8px) rotate(3deg) scale(1.05);
  }
}

.promo-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.7));
  animation: floatGift 6s ease-in-out infinite;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.promo-banner:hover .promo-img {
  transform: scale(1.18) rotate(8deg) translateY(-4px);
  filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.5));
}

/* Combo Banner */
.combo-banner {
  border-radius: 22px;
  margin: 0 20px;
  display: flex;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 120px;
}

.combo-banner:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.combo-banner video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
  filter: brightness(0.85) contrast(1.15);
}

.combo-overlay {
  position: absolute;
  inset: 0;
  /* затемнение и размытие убраны по просьбе владельца */
  background: none;
  z-index: 1;
}

.combo-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  width: 100%;
}

@keyframes floatCombo {

  0%,
  100% {
    transform: translateY(0) rotate(2deg) scale(1.03);
  }

  50% {
    transform: translateY(-6px) rotate(-2deg) scale(1.03);
  }
}

.combo-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
  animation: floatCombo 5.5s ease-in-out infinite;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.combo-banner:hover .combo-img {
  transform: scale(1.16) rotate(-6deg) translateY(-4px);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.5));
}

.combo-info {
  flex: 1;
}

.combo-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  letter-spacing: -0.02em;
}

.combo-price {
  font-size: 15px;
  font-weight: 700;
  color: white;
  background: var(--accent);
  display: inline-block;
  padding: 6px 14px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(218, 5, 5, 0.4);
  transition: all 0.3s ease;
}

.combo-banner:hover .combo-price {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transform: scale(1.05);
}

.new-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff3535 100%);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(218, 5, 5, 0.4);
  z-index: 5;
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(218, 5, 5, 0.6);
  }
}

/* Generic Category view */
.featured-video-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin: 0 20px 20px;
  aspect-ratio: 21 / 9;
  background: rgba(255, 255, 255, 0.03);
}

.featured-video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.featured-video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 16px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.featured-video-title {
  font-size: 14px;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.featured-video-price {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
}

.items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 20px 6px;
}

.items-grid .drink-card {
  min-width: unset;
  width: 100%;
  margin: 0;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 5, 5, 0.85);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 64px rgba(0, 0, 0, 0.55);
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-overlay.closing {
  animation: modalSlideDown 0.38s cubic-bezier(0.4, 0, 0.8, 1) forwards !important;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes modalSlideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

.modal-header {
  padding: 24px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 17px;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 8px 20px;
  border-radius: 20px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, background 0.2s;
}

.modal-close:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  transform: scale(1.08);
}

.modal-stats {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 12px 24px;
  margin: 0 auto 16px;
  width: max-content;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.2);
}

.stat-item {
  text-align: center;
}

.stat-val {
  font-size: 15px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

.modal-more {
  align-self: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-image-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 20px;
}

.modal-main-img {
  width: 280px;
  height: 280px;
  object-fit: contain;
  border-radius: 24px;
  /* тень убрана по просьбе владельца */
}

.modal-options {
  display: flex;
  gap: 12px;
  padding: 0 20px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.modal-options::after {
  content: '';
  padding-right: 8px;
}

.option-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  border-radius: 18px;
  padding: 14px 10px 12px;
  min-width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 8px 12px rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.option-card:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 8px 12px rgba(255, 255, 255, 0.08);
}

.option-card:active {
  transform: scale(0.94);
  background: rgba(255, 255, 255, 0.04);
}

.option-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.option-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.option-text {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
}

.modal-footer {
  padding: 20px;
  display: flex;
  gap: 16px;
  padding-bottom: 40px;
}

.volume-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.2);
}

.add-btn {
  flex: 1;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 30px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(218, 5, 5, 0.3);
  transition: transform 0.2s;
}

.add-btn:active {
  transform: scale(0.96);
}

/* ── Cart Bar ── */
.cart-bar {
  position: fixed;
  bottom: 88px;
  /* над нижним меню */
  left: 50%;
  width: 100%;
  max-width: 100%;
  padding: 10px 16px 10px;
  z-index: 40;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease,
    bottom 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

/* Меню спряталось при скролле вниз — корзина занимает его место, не исчезая */
.cart-bar.nav-down {
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}

.cart-bar.visible {
  pointer-events: all;
}

.cart-bar-inner {
  /* Плотный красный фон с «объёмом»: блики и тень — статичные градиенты */
  background:
    radial-gradient(circle at 88% 135%, rgba(255, 255, 255, 0.18) 0%, transparent 42%),
    radial-gradient(circle at -2% -60%, rgba(255, 255, 255, 0.14) 0%, transparent 48%),
    radial-gradient(circle at 55% -90%, rgba(0, 0, 0, 0.2) 0%, transparent 55%),
    linear-gradient(135deg, #ff4949 0%, #DA0505 55%, #b40404 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  padding: 16px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  color: #ffffff;
  /* текст всегда белый, независимо от темы */
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(218, 5, 5, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -10px 18px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s;
}

.cart-bar-inner .cart-bar-label,
.cart-bar-inner .cart-bar-badge {
  color: #ffffff;
}

.cart-bar-inner:active {
  transform: scale(0.97);
}

.cart-bar-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
  animation: cartBadgePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cartBadgePop {
  from {
    transform: scale(0.4);
  }

  60% {
    transform: scale(1.18);
  }

  to {
    transform: scale(1);
  }
}

.cart-bar-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0 12px;
  min-width: 0;
}

.cart-bar-label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cart-bar-sub {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-bar-thumbs {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

.cart-bar-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid rgba(200, 30, 30, 0.9);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cartThumbIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-bar-thumb+.cart-bar-thumb {
  margin-left: -12px;
}

.cart-bar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.cart-bar-thumb-dot {
  width: 60%;
  height: 60%;
  border-radius: 50%;
  display: block;
}

.cart-bar-thumb-more {
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
}

@keyframes cartThumbIn {
  from {
    transform: scale(0) translateX(8px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateX(0);
    opacity: 1;
  }
}

@keyframes cartSlideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

@keyframes checkoutGlow {

  0%,
  100% {
    box-shadow: 0 8px 24px rgba(218, 5, 5, 0.4), 0 0 0px rgba(218, 5, 5, 0);
  }

  50% {
    box-shadow: 0 12px 48px rgba(218, 5, 5, 0.7), 0 0 32px rgba(218, 5, 5, 0.3);
  }
}

@keyframes checkoutShimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

/* ── Cart Screen ── */
.cart-screen {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 100%;
  margin: 0 auto;
  background: #000;
  z-index: 100;
  display: flex;
  flex-direction: column;
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 64px rgba(0, 0, 0, 0.55);
  animation: modalSlideUp 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cart-screen.closing {
  animation: cartSlideDown 0.34s cubic-bezier(0.4, 0, 0.8, 1) forwards;
}

.cart-header {
  padding: 44px 20px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.cart-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cart-trash {
  color: var(--accent);
}

.cart-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 500;
}

/* ── Delivery address in cart (label + address on its own line) ── */
.cart-location-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0 12px;
  align-items: center;
  text-align: center;
}

.cart-location-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cart-location-address {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  max-width: 100%;
}

.cart-location-address>span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cart-location-chevron {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.25s ease;
}

.cart-location-chevron.open {
  transform: rotate(180deg);
}

.cart-address-picker {
  margin: 0 20px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: cartAddrFade 0.25s ease;
}

@keyframes cartAddrFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cart-address-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cart-address-option:hover {
  background: rgba(255, 255, 255, 0.04);
}

.cart-address-option.active {
  background: rgba(218, 5, 5, 0.12);
}

.cart-address-option.active .address-radio {
  border-color: var(--accent);
}

.cart-address-option.active .address-radio-inner {
  transform: scale(1);
}

.cart-address-option .address-text {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  white-space: normal;
}

.cart-address-option.active .address-text {
  color: #fff;
}

.cart-delivery-pill {
  margin: 0 20px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* ── Заказ другу: переключатель получателя и форма ── */
.cart-recipient-toggle {
  margin: 0 20px 12px;
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 4px;
}

.cart-recipient-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 8px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cart-recipient-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(218, 5, 5, 0.35);
}

.cart-friend-card {
  margin: 0 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  animation: cartAddrFade 0.25s ease;
}

.cart-friend-input {
  width: 100%;
}

.cart-friend-addr-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.cart-friend-addr-btn:hover {
  border-color: rgba(218, 5, 5, 0.5);
  background: rgba(218, 5, 5, 0.08);
}

.cart-friend-addr-btn svg:first-child {
  color: var(--accent);
  flex-shrink: 0;
}

.cart-friend-addr-btn svg:last-child {
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0.5;
  transform: rotate(-90deg);
}

.cart-friend-addr-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-friend-addr-text.empty {
  color: rgba(255, 255, 255, 0.5);
}

/* Незаполненное обязательное поле получателя */
.cart-friend-card .field-error {
  border-color: rgba(218, 5, 5, 0.65) !important;
  box-shadow: 0 0 0 3px rgba(218, 5, 5, 0.14);
}

/* Подсказка «заполните поля» (появляется по нажатию Оплатить) */
.cart-friend-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 4px 0;
  color: #ff5f5f;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  animation: friendHintShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.cart-friend-hint svg {
  flex-shrink: 0;
}

@keyframes friendHintShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

/* Кнопки оплаты, пока данные получателя не заполнены: приглушены, но кликабельны (клик показывает подсказку) */
.checkout-btn.needs-info,
.test-checkout-btn.needs-info {
  opacity: 0.5;
  filter: saturate(0.55);
}

[data-theme="light"] .cart-recipient-toggle,
[data-theme="light"] .cart-friend-card {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .cart-recipient-btn {
  color: rgba(20, 17, 15, 0.55);
}

[data-theme="light"] .cart-recipient-btn.active {
  color: #fff;
}

[data-theme="light"] .cart-friend-addr-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: #14110f;
}

[data-theme="light"] .cart-friend-addr-text.empty {
  color: rgba(20, 17, 15, 0.5);
}

.cart-items-container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  margin: 0 20px;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.5),
    inset 0 10px 16px rgba(255, 255, 255, 0.08),
    inset 0 -8px 16px rgba(0, 0, 0, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

.cart-scroll {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 240px;
  /* запас под фиксированный футер (Total + Pay + Test pay) */
}

/* Скролл внутри оверлеев не «выливается» на страницу под ними */
.cart-scroll,
.ostat-body,
.settings-body,
.addr-editor-body,
.modal-overlay {
  overscroll-behavior: contain;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-img-box {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-weight {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.cart-item-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.cart-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.cart-item-price {
  font-size: 15px;
  font-weight: 600;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: white;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.2s;
}

.qty-btn:active {
  transform: scale(0.9);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.qty-val {
  font-size: 14px;
  font-weight: 600;
}

.cart-section-title {
  font-size: 16px;
  font-weight: 700;
  padding: 24px 20px 14px;
  letter-spacing: -0.01em;
}

.cart-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px 32px;
  background: #111;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.cart-summary {
  /* «чековая» вёрстка: строки на всю ширину, «Итого» — отдельной строкой */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 18px;
}

.cart-payment-box {
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.payment-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.payment-value {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Разбивка суммы: товары + доставка (появляется, когда доставка платная) */
.cart-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cart-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

/* «Считаем доставку»: три прыгающие точки вместо пустоты */
.cart-line-muted { opacity: 0.55; font-weight: 400; }
.cart-line-discount { color: #1f9d55; font-weight: 600; }

.fee-dots {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  height: 12px;
}

.fee-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: feeDot 0.9s ease-in-out infinite;
}

.fee-dots i:nth-child(2) { animation-delay: 0.15s; }
.fee-dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes feeDot {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

.cart-line span:last-child {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.cart-total-box {
  text-align: right;
}

/* Подсказка о минимальной сумме заказа (товары < 50 000 сум) — одна строка, без рамок */
.cart-min-hint {
  margin: 0 0 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--accent);
  opacity: 0.9;
}
.cart-min-hint.attn { animation: cart-min-shake 0.45s ease; }

/* Смена номера телефона в настройках */
.phone-row { display: flex; gap: 8px; align-items: center; }
.phone-row .settings-input { flex: 1; min-width: 0; }
.phone-change-btn, .phone-ok-btn, .phone-cancel-btn {
  border: 0; border-radius: 12px; padding: 0 16px; height: 46px;
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.phone-change-btn { background: var(--accent); color: #fff; }
.phone-edit { display: flex; flex-direction: column; gap: 10px; }
.phone-actions { display: flex; gap: 8px; }
.phone-actions button { flex: 1; }
.phone-ok-btn { background: var(--accent); color: #fff; }
.phone-ok-btn:disabled { opacity: 0.45; cursor: default; }
.phone-cancel-btn { background: rgba(255, 255, 255, 0.08); color: inherit; }
[data-theme="light"] .phone-cancel-btn { background: rgba(0, 0, 0, 0.06); }
.phone-hint { font-size: 13px; opacity: 0.8; }
.phone-err { font-size: 13px; color: var(--accent); }
.phone-code { letter-spacing: 6px; text-align: center; font-size: 20px; }

/* Баннер под шапкой: филиал выключен в админке */
.branch-notice {
  margin: 0 16px 8px;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  background: var(--accent);
}

/* Филиал закрыт — предупреждение перед оплатой */
.cart-closed-hint {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 10px;
  padding: 10px 14px;
  border-radius: 12px;
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
  color: var(--accent);
  background: rgba(218, 5, 5, 0.08);
}
.cart-closed-hint b { font-size: 14px; }
.cart-closed-hint span { opacity: 0.85; }
.cart-closed-hint.attn { animation: cart-min-shake 0.45s ease; }
@keyframes cart-min-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.cart-total-box.full {
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  text-align: left;
}

.total-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.total-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.checkout-btn {
  width: 100%;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(218, 5, 5, 0.3);
  transition: transform 0.15s;
}

.checkout-btn:active {
  transform: scale(0.97);
}

.test-checkout-btn {
  width: 100%;
  margin-top: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  height: 46px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.test-checkout-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.test-checkout-btn:active {
  transform: scale(0.98);
}

.test-checkout-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ── Responsive Styling for Tablets and Desktop (Larger Screens) ── */
@media (min-width: 600px) {
  .app-container {
    max-width: 768px;
    border-left: 0.5px solid rgba(255, 255, 255, 0.18);
    border-right: 0.5px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.85);
  }

  /* Grid items layout - 3 columns for desktop/tablet */
  .items-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px;
    padding: 0 20px 80px;
  }

  .items-grid .drink-card {
    padding: 16px;
  }

  /* Modal and Cart overlay scaling */
  .modal-overlay,
  .cart-screen {
    max-width: 768px !important;
    left: 50% !important;
    right: auto !important;
    width: 100% !important;
    transform: translateX(-50%) !important;
    border-left: 0.5px solid rgba(255, 255, 255, 0.18);
    border-right: 0.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 0px;
    /* fills container width and fits perfectly */
  }

  /* Centered Modal / Cart animations for desktop */
  .modal-overlay,
  .cart-screen {
    animation: modalSlideUpDesktop 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }

  .modal-overlay.closing {
    animation: modalSlideDownDesktop 0.38s cubic-bezier(0.4, 0, 0.8, 1) forwards !important;
  }

  .cart-screen.closing {
    animation: cartSlideDownDesktop 0.34s cubic-bezier(0.4, 0, 0.8, 1) forwards !important;
  }

  /* Cart Bar width scaling */
  .cart-bar {
    max-width: 768px;
  }

  /* Hero section video aspect ratios and banner layouts on slightly wider layouts */
  .hero {
    height: 68vh;
    /* match hero-content plus some padding */
  }

  .hero-content {
    height: 55vh;
  }

  /* Increase some font sizes for premium look on larger screens */
  .hero-title {
    font-size: 36px;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 20px;
  }
}

@keyframes modalSlideUpDesktop {
  from {
    transform: translateY(100%) translateX(-50%);
    opacity: 0;
  }

  to {
    transform: translateY(0) translateX(-50%);
    opacity: 1;
  }
}

@keyframes cartSlideDownDesktop {
  from {
    transform: translateY(0) translateX(-50%);
    opacity: 1;
  }

  to {
    transform: translateY(100%) translateX(-50%);
    opacity: 0;
  }
}

@keyframes modalSlideDownDesktop {
  from {
    transform: translateY(0) translateX(-50%);
    opacity: 1;
  }

  to {
    transform: translateY(100%) translateX(-50%);
    opacity: 0;
  }
}

/* ── Responsive Styling for Large Desktop Screens ── */
@media (min-width: 1024px) {
  .app-container {
    max-width: 1200px;
  }

  /* Grid items layout - 4 columns for large desktops */
  .items-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px;
  }

  .items-grid .drink-card {
    padding: 18px;
  }

  /* Modal and Cart overlay scaling */
  .modal-overlay,
  .cart-screen {
    max-width: 1200px !important;
  }

  /* Cart Bar width scaling */
  .cart-bar {
    max-width: 1200px;
  }

  /* Limit Hero section height on large screens to keep categories visible immediately */
  .hero {
    height: 500px !important;
    /* match hero-content plus some padding */
  }

  .hero-content {
    height: 420px !important;
  }
}

/* ── SVG Icons styling & transitions ── */
svg {
  vertical-align: middle;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.tab svg {
  color: rgba(255, 255, 255, 0.45);
}

.tab:hover svg {
  color: rgba(255, 255, 255, 0.85);
  transform: scale(1.05);
}

.tab.active svg {
  color: var(--accent);
  filter: drop-shadow(0 0 6px rgba(218, 5, 5, 0.7));
}

/* ── Settings Modal (Red & Dark Theme) ── */
:root {
  --gold-accent: #DA0505;
  --gold-dark: #A50303;
  --gold-light: #FF3B30;
  --gold-glow: rgba(218, 5, 5, 0.2);
  --gold-border: rgba(218, 5, 5, 0.3);
}

.settings-body {
  padding: 10px 24px 40px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: radial-gradient(circle at 50% 0%, #150f0f 0%, #0c0707 100%);
}

.settings-section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(218, 5, 5, 0.25) 20%, rgba(218, 5, 5, 0.25) 80%, transparent);
  margin: 4px 0;
}

.settings-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.settings-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.settings-input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 16px rgba(218, 5, 5, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.settings-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.01);
  box-shadow: none;
}

.settings-city-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* 6 языков: названия длинные (Azərbaycanca) — шрифт чуть меньше */
.lang-grid .settings-city-btn,
.settings-city-grid .settings-city-btn {
  white-space: nowrap;
}

.lang-grid .settings-city-btn {
  font-size: 12px;
  padding-left: 4px;
  padding-right: 4px;
}

.settings-city-btn {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.settings-city-btn:hover {
  background: rgba(218, 5, 5, 0.08);
  border-color: rgba(218, 5, 5, 0.3);
  color: #fff;
}

.settings-city-btn.active {
  background: linear-gradient(135deg, rgba(218, 5, 5, 0.22) 0%, rgba(218, 5, 5, 0.06) 100%);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(218, 5, 5, 0.25);
  transform: scale(1.02);
}

.settings-save-btn {
  width: 100%;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent) 0%, #a50303 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(218, 5, 5, 0.3);
  margin-top: 15px;
}

.settings-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(218, 5, 5, 0.45);
  background: linear-gradient(135deg, #ff1a1a 0%, var(--accent) 100%);
}

.settings-save-btn:active {
  transform: translateY(0) scale(0.98);
}

/* ── Settings Modal Skin (Red & Dark Theme) ── */
:root {
  --burgundy: #DA0505;
  --burgundy-dark: #3A0202;
  --burgundy-glow: rgba(218, 5, 5, 0.18);
  --wine-bg: radial-gradient(circle at 50% 0%, #170d0d 0%, #0c0707 100%);
}

.modal-overlay.settings-modal {
  background: radial-gradient(circle at 50% 10%, #3a0e0e 0%, #180804 55%, #0a0302 100%) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 64px rgba(0, 0, 0, 0.75);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 80;
  animation: none !important;
  overflow: hidden;
}

/* Background animated mesh glows */
.profile-bg-glows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.profile-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  will-change: transform;
}

.profile-glow.glow-1 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(218, 5, 5, 0.35) 0%, transparent 70%);
  top: -50px;
  left: -50px;
}

.profile-glow.glow-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.3) 0%, transparent 70%);
  top: 50px;
  right: -80px;
}

.profile-glow.glow-3 {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.22) 0%, transparent 70%);
  bottom: 20%;
  left: -60px;
  animation-duration: 16s;
  animation-delay: -8s;
}

@keyframes profileFloatGlow {

  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }

  33% {
    transform: translate(30px, -20px) scale(1.08) rotate(45deg);
  }

  66% {
    transform: translate(-20px, 40px) scale(0.95) rotate(-45deg);
  }
}

/* Redesigned Premium Topbar */
.profile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px 20px 4px;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.profile-topbar-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.015em;
  text-align: center;
  flex: 1;
}

.profile-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-nav-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.12);
}

.profile-nav-btn.back-btn svg {
  transform: translateX(-1px);
}

.profile-nav-btn.bell-btn .bell-badge-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: #ff3b30;
  border-radius: 50%;
  border: 1.5px solid #140809;
  box-shadow: 0 0 6px #ff3b30;
}

/* Hero profile */
.profile-hero {
  text-align: center;
  padding: 16px 0 20px;
  position: relative;
  z-index: 5;
}

.profile-avatar-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 16px;
}

.profile-avatar-svg-container {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.profile-avatar-svg {
  color: rgba(255, 255, 255, 0.8);
  transition: transform 0.3s ease;
}

/* Фото профиля из Telegram (если есть) */
.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.profile-avatar-wrapper:hover .profile-avatar-svg-container {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.profile-avatar-wrapper:hover .profile-avatar-svg {
  transform: scale(1.06);
}

.profile-avatar-glow {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #ff7b00 100%);
  z-index: -1;
  opacity: 0.6;
  filter: blur(8px);
  animation: avatarGlowRotate 8s linear infinite;
}

@keyframes avatarGlowRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.profile-hero-name {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.profile-hero-phone {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 5px;
  letter-spacing: 0.04em;
}

/* Redesigned the BURGER Club Loyalty Card */
.profile-dashboard-card {
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 12px;
  position: relative;
  z-index: 5;
  overflow: hidden;
  /* settings-body — flex-колонка: без этого overflow:hidden позволяет flex сжать карточку в полоску */
  flex-shrink: 0;
  /* стеклянная карта с тёплой засветкой в углах (статичные градиенты — дёшево для GPU) */
  background:
    radial-gradient(120% 90% at 88% -10%, rgba(218, 5, 5, 0.28) 0%, transparent 55%),
    radial-gradient(90% 80% at 0% 110%, rgba(255, 123, 0, 0.10) 0%, transparent 55%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 14px 34px rgba(0, 0, 0, 0.38);
}

/* Градиентная рамка-кольцо */
.profile-dashboard-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(160deg,
      rgba(255, 128, 64, 0.55) 0%,
      rgba(218, 5, 5, 0.4) 28%,
      rgba(255, 255, 255, 0.10) 55%,
      rgba(218, 5, 5, 0.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.dashboard-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dashboard-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(90deg, rgba(218, 5, 5, 0.28) 0%, rgba(218, 5, 5, 0.08) 100%);
  border: 1px solid rgba(255, 90, 60, 0.4);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ff6a4d;
  width: fit-content;
  box-shadow:
    0 0 18px rgba(218, 5, 5, 0.35),
    inset 0 0 12px rgba(218, 5, 5, 0.22);
}

.dashboard-card-badge svg {
  color: #ffb03a;
  filter: drop-shadow(0 0 5px rgba(255, 176, 58, 0.6));
  flex-shrink: 0;
}

.club-member-chip {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 20px;
}

.dashboard-card-badge .sparkle-icon {
  font-size: 12px;
  filter: drop-shadow(0 0 4px rgba(218, 5, 5, 0.8));
}

.dashboard-card-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  margin-left: 2px;
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  text-align: center;
  margin: 22px 0 16px;
}

.stat-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 20%, #ffd2b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Центральная метрика (скидка) — фирменный акцент */
.dashboard-stats-grid .stat-column:nth-child(3) .stat-value {
  background: linear-gradient(180deg, #ff8a4d 0%, #DA0505 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(218, 5, 5, 0.35));
}

.stat-label {
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.42);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 7px;
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.16), transparent);
}

/* ── Путь по уровням скидки (3 → 7 → 15 заказов) ── */
.club-journey {
  margin-top: 16px;
  padding: 0 6px;
}

.club-journey-track {
  position: relative;
  height: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
  margin-bottom: 26px;
}

.club-journey-fill {
  position: relative;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #8f0303 0%, #DA0505 55%, #ff7b00 100%);
  box-shadow: 0 0 14px rgba(218, 5, 5, 0.45);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

/* Лёгкий блик, пробегающий по заполненной части */
.club-journey-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: journeyShine 3.2s ease-in-out infinite;
}

@keyframes journeyShine {
  0%, 55% { transform: translateX(-60px); }
  100% { transform: translateX(420px); }
}

/* Контрольные точки уровней на треке */
.club-tier {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.club-tier-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #241412;
  border: 2px solid rgba(255, 255, 255, 0.22);
  transition: all 0.35s ease;
}

.club-tier.reached .club-tier-dot {
  background: radial-gradient(circle at 35% 30%, #ff9d5c, #DA0505);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 10px rgba(218, 5, 5, 0.65);
}

.club-tier-label {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.38);
  transition: color 0.35s ease;
}

.club-tier.reached .club-tier-label {
  color: #ff8a4d;
  text-shadow: 0 0 10px rgba(218, 5, 5, 0.4);
}

.progress-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
  font-weight: 450;
}

.progress-note.maximum {
  color: #34c759;
  font-weight: 600;
  text-shadow: 0 0 12px rgba(52, 199, 89, 0.2);
}

/* Twin side-by-side quick-stats cards */
.profile-tile-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
  position: relative;
  z-index: 5;
}

.profile-tile-mini {
  border-radius: 20px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-tile-mini:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.05);
}

.tile-mini-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tile-mini-icon-circle.accent-glow {
  background: rgba(218, 5, 5, 0.15);
  color: #ff3b30;
  box-shadow: 0 4px 12px rgba(218, 5, 5, 0.15);
}

.tile-mini-icon-circle.heart-glow {
  background: rgba(255, 75, 145, 0.15);
  color: #ff4b91;
  box-shadow: 0 4px 12px rgba(255, 75, 145, 0.15);
}

.tile-mini-content {
  display: flex;
  flex-direction: column;
}

.tile-mini-title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tile-mini-value {
  font-size: 15px;
  font-weight: 750;
  color: #fff;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-overlay.settings-modal.closing {
  animation: none !important;
}

.settings-modal .settings-body {
  padding-bottom: 130px;
  /* контент не прячется за нижним меню */
  background: transparent !important;
}

.settings-modal .modal-title {
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.02) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.settings-modal .modal-close {
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.02) !important;
}

.settings-modal .modal-close:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

/* Category menu list */
.settings-menu-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.settings-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.settings-menu-item:hover {
  background: rgba(218, 5, 5, 0.08);
  border-color: rgba(218, 5, 5, 0.3);
  transform: translateY(-2px);
}

.settings-menu-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.settings-menu-item-icon {
  color: var(--accent);
  display: flex;
  align-items: center;
}

.settings-menu-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.settings-menu-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.settings-menu-item-subtitle {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

.settings-menu-item-arrow {
  color: rgba(255, 255, 255, 0.25);
  transition: transform 0.2s, color 0.2s;
  display: flex;
  align-items: center;
}

.settings-menu-item:hover .settings-menu-item-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* Premium Profile Card */
.premium-profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(218, 5, 5, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(218, 5, 5, 0.15);
  border-radius: 24px;
  margin-bottom: 8px;
}

.avatar-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #a50303 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(218, 5, 5, 0.3);
}

.profile-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.profile-card-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.profile-card-phone {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* Sub-page headers */
.settings-subpage-header {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 0 16px;
  width: max-content;
  transition: color 0.2s;
}

.settings-subpage-header:hover {
  color: #fff;
}

.settings-input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 16px rgba(218, 5, 5, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.settings-city-btn.active {
  background: linear-gradient(135deg, rgba(218, 5, 5, 0.22) 0%, rgba(218, 5, 5, 0.06) 100%);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(218, 5, 5, 0.25);
  transform: scale(1.02);
}

.settings-save-btn {
  background: linear-gradient(135deg, var(--accent) 0%, #a50303 100%);
  box-shadow: 0 8px 24px rgba(218, 5, 5, 0.35);
}

.settings-save-btn:hover {
  background: linear-gradient(135deg, #ff1a1a 0%, var(--accent) 100%);
  box-shadow: 0 12px 32px rgba(218, 5, 5, 0.5);
}

/* ── Delivery Addresses List Styles ── */
.address-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.address-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.address-item.active {
  background: linear-gradient(135deg, rgba(218, 5, 5, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(218, 5, 5, 0.4);
  box-shadow: 0 4px 12px rgba(218, 5, 5, 0.1);
}

.address-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.address-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.address-item.active .address-radio {
  border-color: var(--accent);
}

.address-radio-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.2s ease;
}

.address-item.active .address-radio-inner {
  transform: scale(1);
}

.address-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.address-item.active .address-text {
  color: #fff;
  font-weight: 500;
}

.address-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.address-action-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.address-action-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.address-action-btn.delete:hover {
  background: rgba(218, 5, 5, 0.15);
  color: var(--accent);
}

.address-form-inline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  margin-top: 10px;
}

.address-form-buttons {
  display: flex;
  gap: 8px;
}

.address-form-btn {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.address-form-btn.cancel {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
}

.address-form-btn.cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.address-form-btn.save {
  background: var(--accent);
  color: #fff;
}

.address-form-btn.save:hover {
  background: #ff1a1a;
}

.add-address-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
}

.add-address-trigger:hover {
  background: rgba(218, 5, 5, 0.04);
  border-color: rgba(218, 5, 5, 0.3);
  color: #fff;
}

/* ── Mobile Performance Optimization Media Queries ── */
@media (max-width: 768px) {

  /* Replace animated GPU-heavy blobs with a rich, static, multi-color radial gradient */
  .app-container {
    background: var(--bg-color) !important;
  }

  /* Disable animated background blur blobs which consume heavy GPU rasterization */
  .liquid-blobs-bg,
  .blob {
    display: none !important;
    animation: none !important;
  }

  /* Simplify backdrop-filters on mobile to save GPU cycles */
  .sticky-header-wrapper.scrolled,
  .tabs-wrapper,
  .drink-card,
  .option-card,
  .modal-card {
    backdrop-filter: blur(8px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(8px) saturate(130%) !important;
  }

  .cart-screen {
    background: #000 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Use solid background fallbacks for elements to avoid overlay overlap lag */
  .drink-card,
  .option-card {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
  }

  /* Светлая тема — перекрываем мобильные !important-фоллбэки */
  [data-theme="light"] .cart-screen {
    background: #f3f3f5 !important;
  }

  [data-theme="light"] .drink-card,
  [data-theme="light"] .option-card {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.07) !important;
  }
}

/* ── Address Map Editor ── */
.addr-editor {
  z-index: 110;
  background: #0c0707;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.addr-editor-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: radial-gradient(circle at 50% 0%, #150f0f 0%, #0c0707 100%);
}

.addr-map-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  flex: 0 0 260px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #14100f;
  transition: all 0.35s ease;
}

.addr-map-wrap.full-screen {
  flex: 1 1 auto;
  height: auto;
}

.addr-map {
  width: 100%;
  height: 100%;
}

/* Центральный пин (CSS-оверлей, всегда по центру карты; остриё SVG — точно в центре) */
.addr-map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-100% + 3px));
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
  z-index: 2;
}

.addr-map-pin svg {
  display: block;
}

.addr-map-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(12, 7, 7, 0.85);
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

/* ── Баннер зоны доставки (ближайший филиал / вне зоны 5 км) ── */
.addr-zone-banner {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 24px);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  color: #fff;
  background: rgba(12, 7, 7, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 3;
  animation: zoneBannerIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.addr-zone-banner.ok {
  border-color: rgba(74, 201, 126, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 14px rgba(74, 201, 126, 0.18);
}

.addr-zone-banner.ok b {
  color: #4ac97e;
  font-weight: 700;
}

.addr-zone-banner.bad {
  border-color: rgba(218, 5, 5, 0.55);
  background: rgba(46, 8, 8, 0.92);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 14px rgba(218, 5, 5, 0.25);
}

.addr-zone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.addr-zone-icon svg {
  display: block;
}

.addr-zone-banner.ok .addr-zone-icon {
  color: #4ac97e;
  filter: drop-shadow(0 0 6px rgba(74, 201, 126, 0.45));
}

.addr-zone-banner.bad .addr-zone-icon {
  color: #ff5f5f;
  filter: drop-shadow(0 0 6px rgba(218, 5, 5, 0.5));
}

.addr-zone-km {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
}

@keyframes zoneBannerIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.addr-map-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.addr-geo-loading {
  color: var(--accent);
  font-weight: 500;
}

.addr-type-row {
  display: flex;
  gap: 8px;
}

.addr-type-btn {
  flex: 1;
  padding: 11px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.addr-type-btn.active {
  background: rgba(218, 5, 5, 0.14);
  border-color: var(--accent);
  color: #fff;
}

.addr-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.addr-comment {
  resize: none;
  line-height: 1.4;
}

.addr-editor-footer {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c0707;
  flex-shrink: 0;
}

.addr-editor-footer .address-form-btn.cancel {
  flex: 0 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

.addr-editor-footer .addr-save {
  flex: 1;
  margin: 0;
}

.addr-editor-footer .addr-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Payment success screen ── */
.pay-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 4, 4, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: paySuccessFade 0.3s ease;
}

@keyframes paySuccessFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.pay-success-card {
  width: 100%;
  max-width: 340px;
  background: linear-gradient(160deg, #1a1212 0%, #0c0707 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  padding: 34px 26px 26px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  animation: paySuccessPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes paySuccessPop {
  from {
    transform: scale(0.9) translateY(12px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.pay-success-check {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, #16a34a, #15803d);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(22, 163, 74, 0.45);
  animation: payCheckPop 0.45s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes payCheckPop {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

.pay-success-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.pay-success-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}

.pay-success-amount {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  margin: 10px 0 22px;
}

.pay-success-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.pay-success-btn:hover {
  opacity: 0.92;
}

.pay-success-btn:active {
  transform: scale(0.98);
}

.pay-success-btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 10px;
}

/* ── Постер карточки товара: фото + спиннер, пока видео грузится ── */
.modal-video-poster {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 24%, #1c1313 0%, #0c0707 72%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-video-poster img {
  width: min(72vw, 320px);
  max-height: 46vh;
  object-fit: contain;
  animation: paySuccessFade 0.3s ease;
}

.modal-video-poster-spinner {
  position: absolute;
  left: 50%;
  bottom: 24vh;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--accent);
  animation: posterSpin 0.8s linear infinite;
}

@keyframes posterSpin {
  to { transform: rotate(360deg); }
}

[data-theme="light"] .modal-video-poster {
  background: radial-gradient(circle at 50% 24%, #ffffff 0%, #f3f3f5 72%);
}

[data-theme="light"] .modal-video-poster-spinner {
  border-color: rgba(0, 0, 0, 0.1);
  border-top-color: var(--accent);
}

/* ── Подтверждение адреса при входе («Это ваш адрес?») ── */
.addr-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(8, 4, 4, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: paySuccessFade 0.3s ease;
}

.addr-confirm-card {
  width: 100%;
  max-width: 340px;
  background: linear-gradient(160deg, #1a1212 0%, #0c0707 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  padding: 30px 26px 26px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  animation: paySuccessPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.addr-confirm-pin {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(145deg, #DA0505, #9B0404);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(218, 5, 5, 0.4);
}

.addr-confirm-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.addr-confirm-text {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 6px;
}

.addr-confirm-branch {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}

.addr-confirm-branch b {
  color: rgba(255, 255, 255, 0.75);
}

.addr-confirm-card .pay-success-btn {
  margin-top: 16px;
}

.addr-confirm-card .pay-success-btn.secondary {
  margin-top: 10px;
}

/* ── Order Status Screen ── */
.order-status-screen {
  position: fixed;
  inset: 0;
  z-index: 160;
  /* Переносим градиент на весь экран, чтобы шапка и тело были единым целым */
  background: radial-gradient(circle at 50% 0%, #150f0f 0%, #0c0707 100%);
  display: flex;
  flex-direction: column;
  animation: modalSlideUp 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ostat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 44px 20px 16px;
  flex-shrink: 0;
}

.ostat-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.ostat-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
}

.ostat-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 20px 40px;
  background: transparent;
}

.ostat-loading {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  padding: 60px 0;
}

.ostat-cancelled {
  text-align: center;
  padding: 60px 20px;
}

.ostat-cancel-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(218, 5, 5, 0.15);
  color: var(--accent);
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ostat-cancel-text {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.ostat-current {
  text-align: center;
  padding: 16px 0 24px;
}

.ostat-current-label {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.ostat-current-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 6px;
}

/* Степпер */
.ostat-steps {
  display: flex;
  margin: 4px 0 28px;
}

.ostat-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.ostat-step-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.ostat-step.done .ostat-step-dot,
.ostat-step.active .ostat-step-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(218, 5, 5, 0.4);
}

.ostat-step-label {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 8px;
  text-align: center;
}

.ostat-step.done .ostat-step-label,
.ostat-step.active .ostat-step-label {
  color: #fff;
  font-weight: 600;
}

.ostat-step-line {
  position: absolute;
  top: 16px;
  left: calc(50% + 17px);
  width: calc(100% - 34px);
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 0;
}

.ostat-step-line.done {
  background: var(--accent);
}

.ostat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}

.ostat-card-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 12px;
}

.ostat-item {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  padding: 5px 0;
}

.ostat-qty {
  color: rgba(255, 255, 255, 0.45);
}

.ostat-item-sum {
  font-weight: 600;
  white-space: nowrap;
}

.ostat-total {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 800;
  font-size: 15px;
  color: #fff;
}

.ostat-detail {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  padding: 5px 0;
}

.ostat-detail-label {
  color: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

.ostat-detail span:last-child {
  text-align: right;
}

.ostat-refresh-note {
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 14px;
}

/* ── News Screen ── */
.news-screen {
  position: fixed;
  inset: 0;
  z-index: 165;
  /* Градиентный фон: желто-оранжевый посильнее для акцента */
  background: radial-gradient(circle at top left, rgba(80, 20, 15, 0.8) 0%, transparent 50%),
    radial-gradient(circle at bottom right, rgba(120, 70, 0, 0.75) 0%, transparent 55%),
    #0c0707;
  display: flex;
  flex-direction: column;
  animation: modalSlideUp 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.news-empty {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13.5px;
}

.news-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-empty-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 6px;
}

.news-card {
  position: relative;
  width: 100%;
  height: 310px;
  /* Сделал карточки ниже (было 380px) */
  border-radius: 36px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #111;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.news-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.news-card-top-tags {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.news-card-date-badge {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 11.5px;
  padding: 8px 16px;
  border-radius: 24px;
}

.news-card-badge-accent {
  background: #dcf836;
  /* The neon green from the reference! */
  color: #1a1e12;
  font-size: 11.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(220, 248, 54, 0.3);
}

.news-card-badge-accent.promo {
  background: #ffcc00;
  color: #1a1e12;
  box-shadow: 0 4px 16px rgba(255, 204, 0, 0.5);
}

.news-card-heart {
  margin-left: auto;
  /* push to the right */
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.news-card-glass-panel {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.01);
  /* Максимальная прозрачность */
  backdrop-filter: blur(8px) saturate(110%);
  /* Уменьшен блюр */
  -webkit-backdrop-filter: blur(8px) saturate(110%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Тонкая рамка */
  border-radius: 28px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
}

.news-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.news-card-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.news-card-meta-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-card-meta-item {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.news-card-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

/* ── Bottom Navigation ── */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  padding: 8px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-nav.nav-hidden {
  transform: translateY(130%);
}

.bottom-nav-inner {
  pointer-events: all;
  display: flex;
  gap: 4px;
  background: rgba(20, 12, 12, 0.72);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 6px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 78px;
  padding: 8px 14px;
  border: none;
  border-radius: 18px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item svg {
  width: 21px;
  height: 21px;
}

.bottom-nav-item:active {
  transform: scale(0.94);
}

.bottom-nav-item.active {
  background: linear-gradient(135deg, #ff4646 0%, #DA0505 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(218, 5, 5, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ── Locations Screen ── */
.locations-screen {
  position: fixed;
  inset: 0;
  z-index: 85;
  /* под нижним меню (90), чтобы навигация оставалась доступной */
  background: radial-gradient(circle at 50% 10%, #3a0e0e 0%, #180804 55%, #0a0302 100%) !important;
  display: flex;
  flex-direction: column;
  animation: locScreenIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes locScreenIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Кнопка "назад" на карте — возврат на страницу "О нас" */
.loc-back-btn {
  position: absolute;
  top: 18px;
  left: 14px;
  z-index: 11;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(20, 10, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.loc-back-btn:active {
  transform: scale(0.92);
}

[data-theme="light"] .loc-back-btn {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.1);
  color: #14110f;
}

/* ── Locations Map Integration ── */
.locations-map-container {
  height: 260px;
  margin: 12px 16px 16px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

[data-theme="light"] .locations-map-container {
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px rgba(31, 27, 45, 0.05);
}

.locations-map {
  width: 100%;
  height: 100%;
  background: #140b0c;
  z-index: 0;
}

[data-theme="light"] .locations-map {
  background: #f4f3f5;
}

.locations-map-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 11, 12, 0.9);
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  padding: 20px;
  text-align: center;
  z-index: 10;
}

[data-theme="light"] .locations-map-error {
  background: rgba(243, 243, 245, 0.9);
  color: rgba(0, 0, 0, 0.5);
}

.branch-map-marker {
  position: relative;
  width: 40px;
  height: 48px;
  cursor: pointer;
}

.branch-map-marker .marker-pulse {
  position: absolute;
  width: 48px;
  height: 48px;
  background: rgba(218, 5, 5, 0.35);
  border-radius: 50%;
  animation: markerPulse 2s infinite ease-out;
  top: 10px;
  left: -4px;
  pointer-events: none;
}

.branch-map-marker .marker-pin {
  position: absolute;
  width: 40px;
  height: 40px;
  background: #DA0505;
  border: 3px solid #ffffff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(218, 5, 5, 0.5);
  transition: transform 0.2s ease, background 0.2s ease;
  left: 0;
  top: 0;
}

.branch-map-marker .marker-pin svg {
  transform: rotate(45deg);
  width: 20px;
  height: 20px;
  color: #ffffff;
  margin-top: -2px;
  margin-left: -2px;
}

.branch-map-marker:hover .marker-pin {
  transform: rotate(-45deg) scale(1.1);
  background: #ff1919;
}

@keyframes markerPulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Филиалы: полоса городов поверх карты */
.loc-city-strip {
  position: absolute; left: 0; right: 0; bottom: 100px; z-index: 19;
  display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 4px;
  scrollbar-width: none;
}
.loc-city-strip::-webkit-scrollbar { display: none; }
.loc-city-chip {
  flex: 0 0 auto; border: 0; border-radius: 999px; padding: 10px 16px;
  font-size: 14px; font-weight: 600; color: #fff; cursor: pointer;
  background: rgba(20, 10, 10, 0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.loc-city-chip:active { transform: scale(0.97); }

.loc-floating-card {
  position: absolute;
  bottom: 100px; /* Вернули вниз, так как логотип ушел наверх */
  left: 16px;
  right: 16px;
  z-index: 20;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.loc-floating-card.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Переносим логотип Яндекса и контролы наверх */
.locations-map [class*="-copyrights-pane"],
.locations-map [class*="-controls__bottom"] {
  bottom: auto !important;
  top: 120px !important;
  padding-right: 15px !important;
}

.loc-floating-card .loc-card {
  margin: 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  background: rgba(20, 11, 12, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

[data-theme="light"] .loc-floating-card .loc-card {
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.loc-card {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.loc-card.active {
  border-color: #DA0505 !important;
  background: rgba(218, 5, 5, 0.08) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 24px rgba(218, 5, 5, 0.15) !important;
}

[data-theme="light"] .loc-card.active {
  border-color: #DA0505 !important;
  background: rgba(218, 5, 5, 0.05) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 24px rgba(218, 5, 5, 0.08) !important;
}

.loc-body {
  padding-bottom: 120px !important;
  background: transparent !important;
}

.locations-screen .ostat-body {
  background: transparent !important;
}

.loc-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.04) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 10px 28px rgba(0, 0, 0, 0.32);
}

[data-theme="light"] .loc-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

.loc-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
}

.loc-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(218, 5, 5, 0.14);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="light"] .loc-icon {
  background: rgba(218, 5, 5, 0.08);
}

.loc-icon svg {
  width: 19px;
  height: 19px;
}

.loc-info {
  flex: 1;
  min-width: 0;
}

.loc-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

[data-theme="light"] .loc-name {
  color: #14110f;
}

.loc-addr {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
  line-height: 1.45;
}

[data-theme="light"] .loc-addr {
  color: #6b6b70;
}

.loc-addr-muted {
  color: rgba(255, 255, 255, 0.35);
}

[data-theme="light"] .loc-addr-muted {
  color: rgba(0, 0, 0, 0.3);
}

.loc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.loc-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 5px 10px;
  text-decoration: none;
}

[data-theme="light"] .loc-chip {
  background: rgba(0, 0, 0, 0.04);
  color: #14110f;
  border-color: transparent;
}

/* ── My Orders ── */
.menu-category-section {
  margin-bottom: 22px;
}

/* Видео-блок категории (как баннеры по ширине, но выше; без оверлеев и блюра) */
/* До готовности видео блок схлопнут — никакой тёмной заглушки.
   Класс .ready вешает onCanPlay, и блок плавно раскрывается. */
.category-video {
  margin: 0 20px;
  height: 0;
  border-radius: 22px;
  overflow: hidden;
  opacity: 0;
  transition: height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease, margin 0.45s ease;
}

.category-video.ready {
  margin: 0 20px 16px;
  height: 240px;
  opacity: 1;
  background: #14100f;
}

.category-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Menu footer ── */
.menu-footer {
  text-align: center;
  padding: 28px 20px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 8px;
}

.menu-footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.mf-logo {
  height: 26px;
  width: auto;
  display: block;
}

.mf-logo.mf-logo-light {
  display: none;
}

[data-theme="light"] .mf-logo.mf-logo-dark {
  display: none;
}

[data-theme="light"] .mf-logo.mf-logo-light {
  display: block;
}

/* Лого в hero-блоке главной */
.hero-logo-img {
  width: min(72vw, 340px);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 32px rgba(218, 5, 5, 0.25));
}

.hero-logo-img.hero-logo-light {
  display: none;
}

[data-theme="light"] .hero-logo-img.hero-logo-dark {
  display: none;
}

[data-theme="light"] .hero-logo-img.hero-logo-light {
  display: block;
  filter: none;
}

.menu-footer-row {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.8;
}

.settings-autosave-note {
  text-align: center;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 8px;
  font-style: italic;
}

.menu-footer-copy {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.22);
  margin-top: 12px;
}

.product-ingredients {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

[data-theme="light"] .product-ingredients {
  color: rgba(0, 0, 0, 0.6);
}

/* ── Locations Map Header Title ── */
.loc-header-title {
  background: rgba(18, 10, 10, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .loc-header-title {
  background: rgba(255, 255, 255, 0.85);
  color: #14110f;
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.settings-autosave-note {
  text-align: center;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.35);
  padding: 8px 0 4px;
  letter-spacing: 0.01em;
}

.my-orders-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.my-orders-empty {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

.my-order-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.my-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.my-order-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.my-order-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 8px;
}

.my-order-items {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

/* Пометка «заказ другу» / «подарок от друга» в карточке заказа */
.my-order-friend {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  color: #FF9500;
  background: rgba(255, 149, 0, 0.12);
  border: 1px solid rgba(255, 149, 0, 0.25);
  padding: 3px 9px;
  border-radius: 999px;
  line-height: 1.3;
}

[data-theme="light"] .my-order-friend {
  color: #C77700;
  background: rgba(255, 149, 0, 0.1);
  border-color: rgba(255, 149, 0, 0.3);
}

.my-order-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
}

.my-order-date {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.my-order-sum {
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
}

/* ============================================================
   СВЕТЛАЯ ТЕМА  [data-theme="light"]
   Тёмная — по умолчанию (:root). Здесь переопределяем
   переменные + ключевые «тёмные» поверхности на светлые.
   ============================================================ */
[data-theme="light"] {
  --bg-color: #f3f3f5;
  --card-bg: #ffffff;
  --text-main: #14110f;
  --text-muted: #6b6b70;
}

/* Шапка в проскролленном состоянии */
[data-theme="light"] .sticky-header-wrapper.scrolled {
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Иконка профиля: белая над фото, чёрная — когда появилась белая плашка */
[data-theme="light"] .header-profile svg {
  color: #ffffff;
  transition: color 0.3s ease;
}

[data-theme="light"] .sticky-header-wrapper.scrolled .header-title,
[data-theme="light"] .sticky-header-wrapper.scrolled .header-time,
[data-theme="light"] .sticky-header-wrapper.scrolled .header-profile svg {
  color: #14110f;
}

[data-theme="light"] .sticky-header-wrapper.scrolled .header-profile {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.02));
  border-color: rgba(0, 0, 0, 0.12);
}

/* Карточки товаров */
[data-theme="light"] .drink-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .drink-card:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .drink-name {
  color: #14110f;
  text-shadow: none;
}

[data-theme="light"] .drink-price {
  color: #14110f;
}

[data-theme="light"] .drink-arrow {
  color: #14110f;
  background: rgba(0, 0, 0, 0.06);
  box-shadow: none;
}

[data-theme="light"] .drink-card:hover .drink-arrow {
  color: #fff;
  background: var(--accent);
}

/* Вкладки (если где-то остались) */
[data-theme="light"] .tabs-wrapper {
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .tab {
  color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .tab.active {
  color: #14110f;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.12);
}

/* Панели-экраны: корзина / статус заказа / редактор адреса */
[data-theme="light"] .cart-screen,
[data-theme="light"] .order-status-screen,
[data-theme="light"] .addr-editor {
  background: radial-gradient(circle at 50% 0%, #ffffff 0%, #f3f3f5 100%);
  border-color: rgba(0, 0, 0, 0.08);
  color: #14110f;
}

[data-theme="light"] .ostat-body {
  background: transparent;
}

/* Модалка товара / настроек — светлый фон вместо тёмного блюра */
[data-theme="light"] .modal-overlay {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 64px rgba(0, 0, 0, 0.18);
}

/* Общие тексты внутри панелей (наследуемые) */
[data-theme="light"] .cart-screen,
[data-theme="light"] .order-status-screen,
[data-theme="light"] .addr-editor,
[data-theme="light"] .modal-overlay,
[data-theme="light"] .settings-body {
  color: #14110f;
  background: radial-gradient(circle at 50% 0%, #ffffff 0%, #f3f3f5 100%);
}

[data-theme="light"] .settings-section-title {
  color: #14110f;
}

/* Заголовки/кнопки закрытия модалок */
[data-theme="light"] .modal-title,
[data-theme="light"] .ostat-title,
[data-theme="light"] .settings-modal .modal-title {
  color: #14110f;
  text-shadow: none !important;
}

[data-theme="light"] .modal-title {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .modal-close,
[data-theme="light"] .ostat-close,
[data-theme="light"] .settings-modal .modal-close {
  color: #14110f;
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Характеристики товара */
[data-theme="light"] .stat-val {
  color: #14110f;
}

[data-theme="light"] .stat-label {
  color: #6b6b70;
}

[data-theme="light"] .volume-btn {
  color: #14110f;
}

/* Корзина — тексты */
[data-theme="light"] .cart-location-label {
  color: #6b6b70;
}

[data-theme="light"] .cart-location-address,
[data-theme="light"] .cart-item-name,
[data-theme="light"] .cart-item-price,
[data-theme="light"] .qty-val,
[data-theme="light"] .cart-section-title,
[data-theme="light"] .total-value {
  color: #14110f;
}

[data-theme="light"] .cart-item-weight,
[data-theme="light"] .total-label {
  color: #6b6b70;
}

/* Разбивка суммы в светлой теме (была невидимой: белый текст на белом) */
[data-theme="light"] .cart-lines {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .cart-line {
  color: #6b6b70;
}

[data-theme="light"] .cart-line span:last-child {
  color: #14110f;
}

/* Корзина — поверхности/контейнеры */
[data-theme="light"] .cart-action-btn {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .cart-items-container {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .cart-item {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .qty-btn {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #14110f;
  box-shadow: none;
}

[data-theme="light"] .cart-delivery-pill {
  background: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .cart-address-picker {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .cart-address-option:hover {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .cart-address-option.active {
  background: rgba(218, 5, 5, 0.1);
}

[data-theme="light"] .cart-footer {
  background: #ffffff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .cart-payment-box {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .payment-label {
  color: #6b6b70;
}

[data-theme="light"] .payment-value {
  color: #14110f;
}

[data-theme="light"] .test-checkout-btn {
  color: rgba(0, 0, 0, 0.6);
  border: 1px dashed rgba(0, 0, 0, 0.22);
}

[data-theme="light"] .test-checkout-btn:hover {
  color: #14110f;
  border-color: rgba(0, 0, 0, 0.4);
}

/* Настройки */
[data-theme="light"] .settings-label {
  color: #6b6b70;
}

[data-theme="light"] .settings-menu-item-title,
[data-theme="light"] .settings-subpage-header {
  color: #14110f;
}

[data-theme="light"] .settings-menu-item-subtitle {
  color: #6b6b70;
}

/* Любые поля ввода в светлой теме — тёмный текст (надёжно, через text-fill-color) */
[data-theme="light"] input,
[data-theme="light"] textarea {
  color: #14110f;
  -webkit-text-fill-color: #14110f;
}

[data-theme="light"] input:disabled,
[data-theme="light"] textarea:disabled {
  -webkit-text-fill-color: rgba(0, 0, 0, 0.5);
  opacity: 1;
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
  color: rgba(0, 0, 0, 0.35);
  -webkit-text-fill-color: rgba(0, 0, 0, 0.35);
}

/* Тёмный фон редактора адреса */
[data-theme="light"] .addr-editor-body {
  background: radial-gradient(circle at 50% 0%, #ffffff 0%, #f3f3f5 100%);
}

[data-theme="light"] .addr-map-wrap {
  background: #e6e3e1;
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .addr-map-error {
  color: rgba(0, 0, 0, 0.55);
}

[data-theme="light"] .addr-map-hint {
  background: rgba(255, 255, 255, 0.9);
  color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .settings-input {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #14110f;
  -webkit-text-fill-color: #14110f;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .settings-input::placeholder {
  color: rgba(0, 0, 0, 0.35);
  -webkit-text-fill-color: rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .settings-input:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(218, 5, 5, 0.12);
}

/* Текст адресов в списке */
[data-theme="light"] .address-text {
  color: rgba(0, 0, 0, 0.8);
}

[data-theme="light"] .address-item.active .address-text {
  color: #14110f;
}

[data-theme="light"] .cart-address-option .address-text {
  color: rgba(0, 0, 0, 0.8);
}

[data-theme="light"] .cart-address-option.active .address-text {
  color: #14110f;
}

[data-theme="light"] .settings-city-btn {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #14110f;
}

[data-theme="light"] .settings-city-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* Карточки/строки в настройках (профиль, адреса, пункты меню) */
[data-theme="light"] .premium-profile-card,
[data-theme="light"] .address-item,
[data-theme="light"] .settings-menu-item,
[data-theme="light"] .my-order-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
}

/* Имя и телефон в карточке профиля */
[data-theme="light"] .profile-card-name {
  color: #14110f;
}

[data-theme="light"] .profile-card-phone {
  color: rgba(0, 0, 0, 0.5);
}

/* Кнопка «Добавить адрес» */
[data-theme="light"] .add-address-trigger {
  background: #ffffff;
  border: 1px dashed rgba(0, 0, 0, 0.2);
  color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .add-address-trigger:hover {
  background: rgba(218, 5, 5, 0.05);
  border-color: rgba(218, 5, 5, 0.4);
}

/* Футер редактора адреса */
[data-theme="light"] .addr-editor-footer {
  background: #f3f3f5;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Кнопки типа адреса (Квартира / Дом / Офис) */
[data-theme="light"] .addr-type-btn {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.65);
}

[data-theme="light"] .addr-type-btn.active {
  background: rgba(218, 5, 5, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

/* Мои заказы */
[data-theme="light"] .my-order-num {
  color: #14110f;
}

[data-theme="light"] .my-order-items {
  color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .my-order-date {
  color: #6b6b70;
}

[data-theme="light"] .my-order-bottom {
  border-top-color: rgba(0, 0, 0, 0.06);
}

/* Футер */
[data-theme="light"] .menu-footer {
  border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .menu-footer-row {
  color: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .menu-footer-copy {
  color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .settings-autosave-note {
  color: rgba(0, 0, 0, 0.4);
}

/* Видеоблок категории — фон-заглушка */
[data-theme="light"] .category-video.ready {
  background: #e6e3e1;
}

/* Логотип в шапке: белый над фото, чёрный — когда появилась белая плашка (скролл) */
.brand-logo-img {
  height: 30px;
  width: auto;
  display: block;
}

.brand-logo .logo-on-light {
  display: none;
}

[data-theme="light"] .sticky-header-wrapper.scrolled .brand-logo .logo-on-dark,
[data-theme="light"] .sticky-header-wrapper.on-light .brand-logo .logo-on-dark {
  display: none;
}

[data-theme="light"] .sticky-header-wrapper.scrolled .brand-logo .logo-on-light,
[data-theme="light"] .sticky-header-wrapper.on-light .brand-logo .logo-on-light {
  display: block;
}

/* На странице меню фон светлый сразу — шапка тёмная и без скролла */
[data-theme="light"] .sticky-header-wrapper.on-light .header-title,
[data-theme="light"] .sticky-header-wrapper.on-light .header-time,
[data-theme="light"] .sticky-header-wrapper.on-light .header-profile svg {
  color: #14110f;
}

[data-theme="light"] .sticky-header-wrapper.on-light .header-profile {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.02));
  border-color: rgba(0, 0, 0, 0.12);
}

/* Переход фото → белый в светлой теме: ниже и плавнее (без тёмной полосы) */
[data-theme="light"] .hero-overlay {
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 74%,
      rgba(243, 243, 245, 0.25) 86%,
      rgba(243, 243, 245, 0.8) 95%,
      var(--bg-color) 100%);
}

/* Хиро-логотип (по центру) — тёмный в светлой теме */
[data-theme="light"] .hero-moments {
  color: rgba(0, 0, 0, 0.5) !important;
}

/* Модалка «Профиль / Настройки» — единый слабый градиент на белом */
[data-theme="light"] .modal-overlay.settings-modal {
  background: linear-gradient(185deg, #fff2f2 0%, #fff8f0 60%, #fffdfa 100%) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 12px 64px rgba(31, 27, 45, 0.04);
}

[data-theme="light"] .profile-glow.glow-1 {
  background: radial-gradient(circle, rgba(218, 5, 5, 0.14) 0%, transparent 70%);
}

[data-theme="light"] .profile-glow.glow-2 {
  background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, transparent 70%);
}

[data-theme="light"] .profile-glow.glow-3 {
  background: radial-gradient(circle, rgba(254, 237, 222, 0.1) 0%, transparent 70%);
}

[data-theme="light"] .profile-topbar-title {
  color: #14110f;
}

[data-theme="light"] .profile-nav-btn {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #14110f;
  box-shadow: 0 4px 10px rgba(31, 27, 45, 0.05);
}

[data-theme="light"] .profile-nav-btn:active {
  background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .profile-nav-btn.bell-btn .bell-badge-dot {
  border-color: #f7f6fa;
}

[data-theme="light"] .profile-avatar-svg-container {
  background: rgba(255, 255, 255, 0.55) !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 10px 24px rgba(31, 27, 45, 0.08) !important;
}

[data-theme="light"] .profile-avatar-svg {
  color: #14110f !important;
}

[data-theme="light"] .profile-hero-name {
  color: #14110f;
  text-shadow: none;
}

[data-theme="light"] .profile-hero-phone {
  color: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .dashboard-card-subtitle {
  color: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .profile-dashboard-card {
  background:
    radial-gradient(120% 90% at 88% -10%, rgba(218, 5, 5, 0.10) 0%, transparent 55%),
    radial-gradient(90% 80% at 0% 110%, rgba(255, 123, 0, 0.07) 0%, transparent 55%),
    rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 12px 32px rgba(31, 27, 45, 0.08);
}

[data-theme="light"] .stat-value {
  background: linear-gradient(180deg, #14110f 30%, #6b3a20 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .stat-label {
  color: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .stat-divider {
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.14), transparent);
}

[data-theme="light"] .club-member-chip {
  color: rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .club-journey-track {
  background: rgba(0, 0, 0, 0.07);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .club-tier-dot {
  background: #f2ece8;
  border-color: rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .club-tier-label {
  color: rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .progress-note {
  color: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .tile-mini-title {
  color: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .tile-mini-value {
  color: #14110f;
}

/* ── Liquid glass в профиле ──
   Полупрозрачные карточки поверх статичного градиента: эффект стекла
   даёт прозрачность + блик сверху, без backdrop-filter — дёшево для GPU */
.settings-modal .profile-tile-mini,
.settings-modal .settings-menu-item,
.settings-modal .theme-switch,
.settings-modal .premium-profile-card,
.settings-modal .address-item,
.settings-modal .my-order-card,
.settings-modal .add-address-trigger {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 10px 28px rgba(0, 0, 0, 0.32);
}

.settings-modal .theme-switch {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 2px 6px rgba(0, 0, 0, 0.28);
}

[data-theme="light"] .settings-modal .profile-tile-mini,
[data-theme="light"] .settings-modal .settings-menu-item,
[data-theme="light"] .settings-modal .theme-switch,
[data-theme="light"] .settings-modal .premium-profile-card,
[data-theme="light"] .settings-modal .address-item,
[data-theme="light"] .settings-modal .my-order-card,
[data-theme="light"] .settings-modal .add-address-trigger {
  background: rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(25px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 12px 36px rgba(31, 27, 45, 0.04) !important;
}

[data-theme="light"] .settings-modal .theme-switch {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 2px 6px rgba(31, 27, 45, 0.07);
}

/* Инфо-страницы профиля (мерч / о нас / карьера / соц. ответственность) */
.settings-modal .info-page-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 28px rgba(0, 0, 0, 0.32);
  border-radius: 18px;
  padding: 18px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  white-space: pre-line;
}

[data-theme="light"] .settings-modal .info-page-card {
  background: rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(25px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 12px 36px rgba(31, 27, 45, 0.04) !important;
  color: #14110f;
}

[data-theme="light"] .settings-modal .modal-title {
  color: #14110f !important;
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .settings-modal .modal-close {
  color: #14110f !important;
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .settings-modal .modal-close:hover {
  background: rgba(0, 0, 0, 0.08) !important;
}

/* Экран статуса заказа */
[data-theme="light"] .ostat-loading {
  color: #6b6b70;
}

[data-theme="light"] .ostat-cancel-text {
  color: #14110f;
}

[data-theme="light"] .ostat-current-label {
  color: #14110f;
}

[data-theme="light"] .ostat-current-sub {
  color: #6b6b70;
}

[data-theme="light"] .ostat-step-dot {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .ostat-step.done .ostat-step-dot,
[data-theme="light"] .ostat-step.active .ostat-step-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

[data-theme="light"] .ostat-step-label {
  color: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .ostat-step.done .ostat-step-label,
[data-theme="light"] .ostat-step.active .ostat-step-label {
  color: #14110f;
}

[data-theme="light"] .ostat-step-line {
  background: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .ostat-step-line.done {
  background: var(--accent);
}

[data-theme="light"] .ostat-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.07);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .ostat-card-title {
  color: #6b6b70;
}

[data-theme="light"] .ostat-item,
[data-theme="light"] .ostat-detail {
  color: rgba(0, 0, 0, 0.85);
}

[data-theme="light"] .ostat-qty,
[data-theme="light"] .ostat-detail-label {
  color: #6b6b70;
}

[data-theme="light"] .ostat-total {
  border-top-color: rgba(0, 0, 0, 0.08);
  color: #14110f;
}

[data-theme="light"] .ostat-refresh-note {
  color: rgba(0, 0, 0, 0.35);
}

/* Плашка «Оплата прошла успешно» */
[data-theme="light"] .pay-success-overlay {
  background: rgba(20, 17, 15, 0.35);
}

[data-theme="light"] .pay-success-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .pay-success-title {
  color: #14110f;
}

[data-theme="light"] .pay-success-sub {
  color: #6b6b70;
}

[data-theme="light"] .pay-success-btn.secondary {
  background: rgba(0, 0, 0, 0.05);
  color: #14110f;
}

/* Подтверждение адреса при входе */
[data-theme="light"] .addr-confirm-overlay {
  background: rgba(20, 17, 15, 0.35);
}

[data-theme="light"] .addr-confirm-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .addr-confirm-title {
  color: #14110f;
}

[data-theme="light"] .addr-confirm-text {
  color: #3c3a38;
}

[data-theme="light"] .addr-confirm-branch {
  color: #6b6b70;
}

[data-theme="light"] .addr-confirm-branch b {
  color: #14110f;
}

/* Модалка товара: опции, объём, «подробнее» */
[data-theme="light"] .option-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .option-card:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .option-card:active {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .option-icon {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .modal-more {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: none;
  color: #14110f;
}

[data-theme="light"] .volume-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: none;
}

/* Мои заказы — пустое состояние */
[data-theme="light"] .my-orders-empty {
  color: rgba(0, 0, 0, 0.45);
}

/* Нижнее меню */
[data-theme="light"] .bottom-nav-inner {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .bottom-nav-item {
  color: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .bottom-nav-item.active {
  background: linear-gradient(135deg, #ff4646 0%, #DA0505 100%);
  color: #ffffff;
}

/* Экран локаций */
[data-theme="light"] .locations-screen {
  background: linear-gradient(185deg, #fff2f2 0%, #fff8f0 60%, #fffdfa 100%) !important;
  color: #14110f;
}

[data-theme="light"] .loc-card {
  background: rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(25px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(25px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 12px 36px rgba(31, 27, 45, 0.04) !important;
}

[data-theme="light"] .loc-name {
  color: #14110f;
}

[data-theme="light"] .loc-addr {
  color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .loc-addr-muted {
  color: rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .loc-chip {
  color: rgba(0, 0, 0, 0.7);
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

/* Экран новостей */
[data-theme="light"] .news-screen {
  /* Градиентный фон: желто-оранжевый посильнее на светлой основе */
  background: radial-gradient(circle at top left, rgba(255, 120, 120, 0.25) 0%, transparent 50%),
    radial-gradient(circle at bottom right, rgba(255, 180, 40, 0.25) 0%, transparent 50%),
    #fbfbfb;
  color: #14110f;
}

[data-theme="light"] .news-empty {
  color: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .news-empty-icon {
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .news-empty-sub {
  color: rgba(0, 0, 0, 0.3);
}



/* ── Современный переключатель темы ── */
.theme-switch {
  position: relative;
  display: flex;
  width: 100%;
  height: 54px;
  border-radius: 16px;
  padding: 5px;
  gap: 5px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25);
  -webkit-tap-highlight-color: transparent;
}

.theme-switch-thumb {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 7px);
  height: calc(100% - 10px);
  border-radius: 12px;
  background: linear-gradient(135deg, #ff4646 0%, #DA0505 100%);
  box-shadow: 0 8px 20px rgba(218, 5, 5, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}

.theme-switch.is-dark .theme-switch-thumb {
  transform: translateX(calc(100% + 4px));
}

.theme-switch-opt {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.theme-switch-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-switch.is-light .light-opt,
.theme-switch.is-dark .dark-opt {
  color: #ffffff;
}

.theme-switch.is-light .light-opt .theme-switch-ico {
  transform: rotate(0deg);
}

.theme-switch.is-dark .dark-opt .theme-switch-ico {
  transform: rotate(-18deg);
}

.theme-switch:active .theme-switch-thumb {
  filter: brightness(0.96);
}

[data-theme="light"] .theme-switch {
  background: rgba(0, 0, 0, 0.045);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .theme-switch-opt {
  color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .theme-switch.is-light .light-opt,
[data-theme="light"] .theme-switch.is-dark .dark-opt {
  color: #ffffff;
}

.lang-switch .theme-switch-thumb {
  width: calc(33.333% - 6px);
}
.lang-switch.is-ru .theme-switch-thumb { transform: translateX(0); }
.lang-switch.is-uz .theme-switch-thumb { transform: translateX(calc(100% + 4px)); }
.lang-switch.is-en .theme-switch-thumb { transform: translateX(calc(200% + 8px)); }

.lang-switch.is-ru .ru-opt,
.lang-switch.is-uz .uz-opt,
.lang-switch.is-en .en-opt {
  color: #ffffff;
}
[data-theme="light"] .lang-switch.is-ru .ru-opt,
[data-theme="light"] .lang-switch.is-uz .uz-opt,
[data-theme="light"] .lang-switch.is-en .en-opt {
  color: #ffffff;
}

[data-theme="light"] .app-container {
  background: linear-gradient(185deg, #fff2f2 0%, #fff8f0 60%, #fffdfa 100%) !important;
  background-attachment: fixed !important;
}

/* ── Redesigned About Us Screen (Trip Details Style Reference) ── */
.about-us-container {
  margin: -10px -24px -130px;
  position: relative;
  height: 0;
  /* Страница "О нас" не участвует в скролле body: всё рисуется fixed-слоями */
  overflow: visible;
}

.about-bg-image-wrap {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none;
  background: #150809;
}

.about-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 1. ЗАПОЛНЕНИЕ: cover гарантирует, что фото закроет весь экран на 100% без пустых полос */
  object-position: 10%;
  /* 2. ПОЗИЦИЯ (КУДА СМОТРИТ КАМЕРА): center top (самый верх), center 20% (чуть ниже верха), center center (ровно по центру). Меняйте проценты, чтобы сдвинуть фокус! */
  transform: scale(1);
  /* 3. МАСШТАБ (ЗУМ): 1 — стандартный размер; 1.1 — приблизить на 10%; 0.95 — чуть отдалить */
}

.about-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}



.about-scroll-wrapper {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.about-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

/* Отступ до плашки: на высоких экранах ~300px, на низких плашка поднимается
   (34vh), но не выше 140px — чтобы контент был виден без скролла */
.about-top-spacer {
  height: clamp(140px, 34vh, 300px);
  flex-shrink: 0;
}

.about-content-card {
  background: rgba(15, 7, 7, 0.28) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.16) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 24px 20px 108px;
  min-height: calc(100vh - clamp(140px, 34vh, 300px));
  display: flex;
  flex-direction: column;
  box-shadow:
    0 -15px 35px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Специфичные фиксы для новостей */
.news-detail-screen .about-content-card {
  padding-bottom: 40px !important; /* Убираем лишний отступ под навбар */
}
.news-detail-screen .news-desc {
  overflow: visible !important;
  flex: none !important;
}



.about-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.about-avatars-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack-item {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #1c0809;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-left: -8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}

.avatar-stack-item:first-child {
  margin-left: 0;
  background: linear-gradient(135deg, #DA0505 0%, #ff4646 100%);
  border-color: #240c0d;
}

.avatar-stack-item:nth-child(2) {
  background: linear-gradient(135deg, #ff9500 0%, #ff5e00 100%);
  border-color: #240c0d;
}

.avatar-stack-item:nth-child(3) {
  background: linear-gradient(135deg, #3a0e0e 0%, #681818 100%);
  border-color: #240c0d;
}



.about-stats-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}



.about-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.about-rating .star-icon {
  font-size: 14px;
}

.rating-value {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}



.about-title-section {
  margin-bottom: 22px;
}

.about-main-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
}



.about-subtitle {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.5);
  margin: 4px 0 0 0;
  font-weight: 500;
}



/* Tabs */
.about-tabs-row {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 22px;
  gap: 4px;
}



.about-tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 10px;
  padding: 8px 0;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: all 0.25s ease;
}



.about-tab-btn.active {
  background: #DA0505;
  color: #fff;
  box-shadow: 0 4px 12px rgba(218, 5, 5, 0.35);
}

/* Низкие экраны: плашка выше + ужатые отступы, чтобы текст был виден сразу */
@media (max-height: 740px) {
  .about-content-card {
    padding-top: 16px;
  }
  .about-meta-row {
    margin-bottom: 12px;
  }
  .about-title-section {
    margin-bottom: 14px;
  }
  .about-main-title {
    font-size: 26px;
  }
  .about-tabs-row {
    margin-bottom: 14px;
  }
}
@media (max-height: 620px) {
  .about-top-spacer {
    height: clamp(110px, 26vh, 200px);
  }
  .about-content-card {
    min-height: calc(100vh - clamp(110px, 26vh, 200px));
  }
  .about-main-title {
    font-size: 22px;
  }
  .about-subtitle {
    font-size: 12px;
  }
}



/* Description Section — скроллится только эта внутренняя часть, и только при переполнении */
.about-description-section {
  margin-bottom: 0;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.about-description-section::-webkit-scrollbar {
  display: none;
}

.about-section-heading {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px 0;
}



.about-description-text {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
  margin: 0;
  white-space: pre-line;
}



/* Actions */
.about-action-bar {
  display: flex;
  gap: 12px;
  align-items: center;
}

.about-round-btn {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.about-round-btn:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.1);
}



.about-pill-btn {
  flex: 1;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff4646 0%, #DA0505 100%);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(218, 5, 5, 0.35);
  transition: all 0.25s ease;
}

.about-pill-btn:active {
  transform: scale(0.98);
  box-shadow: 0 4px 10px rgba(218, 5, 5, 0.2);
}

.about-pill-btn .btn-arrows {
  font-size: 16px;
  opacity: 0.9;
}

/* Force dark text for specific headers in light mode */
[data-theme="light"] .force-dark .profile-topbar-title,
[data-theme="light"] .force-dark .ostat-title {
  color: #fff !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
}

[data-theme="light"] .force-dark .profile-nav-btn,
[data-theme="light"] .force-dark .ostat-close {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  box-shadow: none !important;
}

[data-theme="light"] .force-dark .profile-nav-btn:active,
[data-theme="light"] .force-dark .ostat-close:active {
  background: rgba(255, 255, 255, 0.25) !important;
}

[data-theme="light"] .force-dark .profile-nav-btn.bell-btn .bell-badge-dot {
  border-color: transparent !important;
}
/* ============================================================
   MERCH PAGE — полноширинные градиентные карточки
   ============================================================ */
.merch-page {
  padding: 24px 20px 0;
  position: relative;
  z-index: 3;
}

.merch-hero {
  padding: 6px 2px 24px;
}

.merch-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 42px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: #fff;
}

.merch-drop-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.merch-drop-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rojo, #DA0505);
  box-shadow: 0 0 10px rgba(218, 5, 5, 0.9);
  animation: tb-pulse 1.8s infinite ease-in-out;
}

.merch-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.merch-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  background: transparent;
  box-shadow: 
    0 18px 40px rgba(0, 0, 0, 0.4),
    inset 0 8px 16px -6px var(--c1, transparent),
    inset 0 45px 100px -25px var(--c1, transparent),
    inset 0 -8px 16px -6px var(--c2, transparent),
    inset 0 -45px 100px -25px var(--c2, transparent);
  animation: tb-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* чёткий glassmorphism-ободок по периметру (как в референсе):
   градиентная рамка 1.5px — яркая сверху, мягче по бокам, заметная снизу */
.merch-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 1.5px;
  background: linear-gradient(180deg,
      var(--c1, rgba(255, 255, 255, 0.65)) 0%,
      rgba(255, 255, 255, 0.1) 35%,
      rgba(255, 255, 255, 0.1) 65%,
      var(--c2, rgba(255, 255, 255, 0.30)) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}

.merch-card:active {
  transform: scale(0.97);
  filter: brightness(1.08);
}

/* мягкий световой блик сверху, как на карточках референса */
.merch-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 55% at 50% 0%, rgba(255, 255, 255, 0.16), transparent 62%);
  pointer-events: none;
}

.merch-card-brand {
  position: absolute;
  top: 18px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
}

.merch-card-reg {
  font-size: 8px;
  vertical-align: super;
  margin-left: 2px;
}

.merch-card-dots {
  position: absolute;
  top: 18px;
  right: 20px;
  display: grid;
  grid-template-columns: repeat(2, 4px);
  gap: 5px;
  opacity: 0.55;
}

.merch-card-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.merch-card-watermark {
  position: absolute;
  right: 6px;
  bottom: -18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 110px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
  user-select: none;
}

.merch-card-label {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* — карточка реального товара мерча (большая витрина с фото) — */
.merch-card-photo {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: 68%;
  height: 60%;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.35));
  filter: drop-shadow(0 22px 34px color-mix(in srgb, var(--c2, #000) 60%, transparent));
}

.merch-card--product .merch-card-label {
  bottom: 44px;
  z-index: 2;
}

.merch-card-price {
  position: absolute;
  left: 50%;
  bottom: 13px;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  z-index: 2;
}

[data-theme="light"] .merch-card-price {
  color: #14110f;
  text-shadow: none;
}

/* — светлая тема — */
[data-theme="light"] .merch-title {
  color: #14110f;
}

[data-theme="light"] .merch-drop-chip {
  color: rgba(0, 0, 0, 0.65);
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .merch-card {
  background: #ffffff;
  box-shadow: 
    0 18px 40px rgba(218, 5, 5, 0.06),
    inset 0 8px 16px -6px var(--c1, transparent),
    inset 0 45px 100px -25px var(--c1, transparent),
    inset 0 -8px 16px -6px var(--c2, transparent),
    inset 0 -45px 100px -25px var(--c2, transparent);
}

[data-theme="light"] .merch-card-label {
  color: #1a0a0a;
  text-shadow: none;
  font-weight: 800;
}

[data-theme="light"] .merch-card-brand,
[data-theme="light"] .merch-card-dots {
  color: #1a0a0a !important;
  opacity: 0.6;
}

[data-theme="light"] .merch-card-watermark {
  color: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .merch-card::before {
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.1) 0%,
      rgba(0, 0, 0, 0.02) 35%,
      rgba(0, 0, 0, 0.0) 70%,
      rgba(0, 0, 0, 0.05) 100%);
}

/* — ambient-сияние на странице мерча (вместо фонового видео) — */
.merch-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 65% at 50% -12%, rgba(218, 5, 5, 0.32) 0%, rgba(218, 5, 5, 0.10) 40%, transparent 68%),
    radial-gradient(70% 45% at 88% 66%, rgba(242, 166, 90, 0.10) 0%, transparent 60%),
    radial-gradient(80% 50% at 6% 92%, rgba(180, 4, 4, 0.18) 0%, transparent 60%);
  animation: merch-ambient-breathe 7s ease-in-out infinite;
}

@keyframes merch-ambient-breathe {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

[data-theme="light"] .merch-ambient {
  background:
    radial-gradient(120% 60% at 50% -12%, rgba(218, 5, 5, 0.14) 0%, transparent 65%),
    radial-gradient(70% 45% at 88% 66%, rgba(242, 166, 90, 0.14) 0%, transparent 60%),
    radial-gradient(80% 50% at 6% 92%, rgba(218, 5, 5, 0.08) 0%, transparent 60%);
}

/* — Dark Theme Maps — */
[data-theme="dark"] .addr-map,
[data-theme="dark"] .locations-map {
  background-color: #fff !important; /* Will be inverted to dark */
  filter: invert(100%) hue-rotate(180deg) brightness(0.85) contrast(1.1);
}

/* ────────────────────────────────────────────
   Активный заказ в профиле (над картой the BURGER Club).
   Анимации только transform/opacity — дёшево для CPU/GPU.
   ──────────────────────────────────────────── */
.active-order-card {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  animation: aoc-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.active-order-card:active {
  transform: scale(0.985);
  transition: transform 0.12s ease;
}

@keyframes aoc-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.aoc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 13px;
}

.aoc-live {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #4fdd83;
}

.aoc-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35d06a;
  position: relative;
  flex-shrink: 0;
}

.aoc-live-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid rgba(53, 208, 106, 0.65);
  animation: aoc-ping 1.8s ease-out infinite;
}

@keyframes aoc-ping {
  0% { transform: scale(0.55); opacity: 1; }
  70%, 100% { transform: scale(1.6); opacity: 0; }
}

.aoc-num {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
}

.aoc-stage-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.aoc-stage-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
  animation: aoc-float 2.6s ease-in-out infinite;
}

@keyframes aoc-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.aoc-stage-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.aoc-stage-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

.aoc-chevron {
  margin-left: auto;
  font-size: 24px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 300;
}

.aoc-track {
  position: relative;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.10);
  margin: 15px 2px 8px;
}

.aoc-fill {
  position: relative;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #ff7b00, var(--accent));
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.aoc-shimmer {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: aoc-shimmer 2.4s linear infinite;
}

@keyframes aoc-shimmer {
  from { transform: translateX(-60px); }
  to { transform: translateX(340px); }
}

.aoc-step-dot {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(0, 0, 0, 0.25);
}

.aoc-step-dot.done {
  background: #fff;
  border-color: var(--accent);
}

.aoc-step-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.35);
}

.aoc-step-labels span.on {
  color: rgba(255, 255, 255, 0.85);
}

/* Светлая тема */
[data-theme="light"] .aoc-num {
  color: rgba(0, 0, 0, 0.55);
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .aoc-stage-icon {
  background: rgba(0, 0, 0, 0.05);
  box-shadow: none;
}

[data-theme="light"] .aoc-stage-sub {
  color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .aoc-chevron {
  color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .aoc-track {
  background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .aoc-step-dot {
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .aoc-step-dot.done {
  background: #fff;
  border-color: var(--accent);
}

[data-theme="light"] .aoc-step-labels {
  color: rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .aoc-step-labels span.on {
  color: rgba(0, 0, 0, 0.75);
}

/* Экономим батарею: без анимаций при reduce-motion */
@media (prefers-reduced-motion: reduce) {
  .active-order-card,
  .aoc-live-dot::after,
  .aoc-stage-icon,
  .aoc-shimmer {
    animation: none;
  }
}

/* ============================================================
   МОДАЛКА ТОВАРА С ФОНОВЫМ ВИДЕО
   Видео не затемняем — вместо этого делаем сами плашки
   тёмным стеклом, чтобы белый текст читался на любом кадре
   (в т.ч. на светлом студийном фоне ролика).
   ============================================================ */
.modal-overlay.has-video .modal-title,
.modal-overlay.has-video .modal-close,
.modal-overlay.has-video .modal-stats,
.modal-overlay.has-video .modal-more,
.modal-overlay.has-video .volume-btn {
  background: linear-gradient(135deg, rgba(12, 7, 7, 0.74) 0%, rgba(12, 7, 7, 0.58) 100%) !important;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 6px 20px rgba(0, 0, 0, 0.38) !important;
}

.modal-overlay.has-video .modal-title,
.modal-overlay.has-video .stat-val,
.modal-overlay.has-video .volume-btn {
  color: #fff !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.modal-overlay.has-video .stat-label {
  color: rgba(255, 255, 255, 0.82) !important;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.modal-overlay.has-video .modal-close svg {
  color: #fff;
}

/* Красная кнопка цены и так контрастна — добавляем только отрыв от фона */
.modal-overlay.has-video .add-btn {
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.42), 0 4px 18px rgba(218, 5, 5, 0.45);
}


/* Кнопка «моё местоположение» на карте адреса */
.addr-locate-btn {
  position: absolute;
  right: 12px;
  bottom: 88px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #14110f;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.addr-locate-btn:active {
  transform: scale(0.94);
}

.addr-locate-btn.locating svg {
  animation: posterSpin 1s linear infinite;
}


/* ── Лента быстрого доступа к категориям (страница меню) ── */
.cat-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 20px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cat-chips::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cat-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

[data-theme="light"] .cat-chip {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.045);
  color: #3c3a38;
}

[data-theme="light"] .cat-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}


/* Фон баннера — картинка вместо видео */
.promo-banner .banner-bg-img,
.combo-banner .banner-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Неоновая рамка баннера — цветом, которого больше всего на его картинке
   (доминанта вычисляется в браузере из фоновой картинки, см. applyBannerNeon) */
.promo-banner,
.combo-banner {
  border: 1.5px solid var(--banner-neon, rgba(255, 255, 255, 0.1));
  box-shadow: 0 0 18px var(--banner-neon-soft, transparent);
  transition: border-color 0.6s ease, box-shadow 0.6s ease;
}


/* ── «О нас» → Оставить отзыв ── */
.about-review-btn {
  width: 100%;
  margin-top: 18px;
  height: 52px;
  border: none;
  border-radius: 16px;
  background: #DA0505;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.about-review-btn:active { transform: scale(0.97); }

.about-review-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(8, 4, 3, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  animation: arvFade 0.2s ease;
}

@keyframes arvFade { from { opacity: 0; } to { opacity: 1; } }

.about-review-card {
  width: 100%;
  max-width: 360px;
  background: rgba(24, 14, 12, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  padding: 24px 20px 18px;
  text-align: center;
  animation: arvPop 0.25s cubic-bezier(0.2, 1.3, 0.4, 1);
}

@keyframes arvPop { from { opacity: 0; transform: scale(0.92) translateY(12px); } to { opacity: 1; transform: none; } }

.arv-title { margin: 0 0 6px; font-size: 20px; font-weight: 800; color: #fff; }
.arv-sub { margin: 0 0 16px; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, 0.55); }

.arv-stars { display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; }

.arv-star {
  width: 46px;
  height: 46px;
  border: none;
  background: none;
  padding: 5px;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.arv-star:active { transform: scale(1.2); }
.arv-star svg { width: 100%; height: 100%; fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 1.6; transition: fill 0.15s ease, stroke 0.15s ease; }
.arv-star.on svg { fill: #FFC107; stroke: #FFC107; }

.arv-text {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  padding: 12px 14px;
  resize: none;
  outline: none;
  margin-bottom: 14px;
}

.arv-text::placeholder { color: rgba(255, 255, 255, 0.35); }
.arv-text:focus { border-color: rgba(218, 5, 5, 0.55); }

.arv-err { font-size: 12.5px; color: #ff6b57; margin-bottom: 10px; }

.arv-send {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 15px;
  background: #DA0505;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.15s ease;
}

.arv-send:disabled { opacity: 0.35; }
.arv-send:active:not(:disabled) { transform: scale(0.97); }

.arv-cancel {
  width: 100%;
  height: 42px;
  margin-top: 6px;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.5);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.arv-done { color: #2ecc71; margin-bottom: 10px; display: flex; justify-content: center; }


/* Светлая тема: белая карточка отзыва с тёмным текстом (все цвета явные,
   чтобы ничего не наследовалось от темы Telegram) */
[data-theme="light"] .about-review-overlay { background: rgba(40, 24, 14, 0.45); }

[data-theme="light"] .about-review-card {
  background: #ffffff;
  border-color: rgba(30, 17, 10, 0.08);
  box-shadow: 0 24px 70px rgba(30, 17, 10, 0.25);
}

[data-theme="light"] .arv-title { color: #1c110a; }
[data-theme="light"] .arv-sub { color: rgba(28, 17, 10, 0.55); }
[data-theme="light"] .arv-star svg { stroke: rgba(28, 17, 10, 0.28); }
[data-theme="light"] .arv-star.on svg { fill: #FFB800; stroke: #FFB800; }

[data-theme="light"] .arv-text {
  background: rgba(28, 17, 10, 0.045);
  border-color: rgba(28, 17, 10, 0.14);
  color: #1c110a;
}

[data-theme="light"] .arv-text::placeholder { color: rgba(28, 17, 10, 0.35); }
[data-theme="light"] .arv-cancel { color: rgba(28, 17, 10, 0.5); }
[data-theme="light"] .arv-err { color: #c22a10; }
[data-theme="light"] .arv-done { color: #16a34a; }
[data-theme="light"] .about-review-btn { box-shadow: 0 6px 20px rgba(218, 5, 5, 0.25); }


/* ── the BURGER Club: заглушка Loading soon… поверх карты лояльности ── */
.profile-dashboard-card.club-soon {
  position: relative;
  overflow: hidden;
}

/* контент карты под заглушкой: чуть виден сквозь блюр, но не читается */
.club-soon > *:not(.club-soon-overlay) {
  filter: blur(7px) saturate(0.7);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}

.club-soon-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
  padding: 18px;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(218, 5, 5, 0.16) 0%, transparent 60%),
    rgba(14, 7, 5, 0.35);
}

.club-soon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFC107;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.28);
  margin-bottom: 8px;
  animation: clubSoonFloat 2.6s ease-in-out infinite;
}

@keyframes clubSoonFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.club-soon-name {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.club-soon-title {
  font-size: 23px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, #fff 30%, #ffb3a7 50%, #fff 70%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: clubSoonShine 2.8s linear infinite;
}

@keyframes clubSoonShine {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.club-soon-dots i {
  font-style: normal;
  animation: clubSoonDot 1.4s infinite;
}

.club-soon-dots i:nth-child(2) { animation-delay: 0.2s; }
.club-soon-dots i:nth-child(3) { animation-delay: 0.4s; }

@keyframes clubSoonDot {
  0%, 60%, 100% { opacity: 0.25; }
  30% { opacity: 1; }
}

.club-soon-sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

[data-theme="light"] .club-soon-overlay {
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(218, 5, 5, 0.1) 0%, transparent 60%),
    rgba(255, 252, 250, 0.55);
}

[data-theme="light"] .club-soon-name { color: rgba(28, 17, 10, 0.5); }

[data-theme="light"] .club-soon-title {
  background: linear-gradient(90deg, #1c110a 30%, #b8402a 50%, #1c110a 70%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="light"] .club-soon-sub { color: rgba(28, 17, 10, 0.55); }
[data-theme="light"] .club-soon-badge { background: rgba(230, 150, 20, 0.12); border-color: rgba(200, 130, 10, 0.35); color: #d99000; }


/* Заказ к столу по QR: плашка под шапкой */
.table-banner { display: flex; align-items: center; gap: 10px; margin: 0 16px 10px; padding: 10px 12px; border-radius: 14px;
  background: linear-gradient(135deg, #DA0505, #8E0303); color: #fff; box-shadow: 0 8px 22px rgba(218, 5, 5, 0.25); }
.table-banner-ic { font-size: 20px; flex: 0 0 auto; }
.table-banner-text { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.table-banner-text b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table-banner-text small { font-size: 11.5px; opacity: 0.85; }
.table-banner-x { border: 0; background: rgba(255, 255, 255, 0.18); color: #fff; width: 28px; height: 28px; border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer; flex: 0 0 auto; }


/* Адрес без точки на карте: ссылка в строке «Доставка» и подсказка */
.cart-line-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: #DA0505; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cart-pin-hint { cursor: pointer; }

/* Заказ к столу: способ оплаты — две карточки */
.tpay { margin: 16px 20px 4px; }
.tpay-title { font-size: 15px; font-weight: 800; margin: 0 2px 10px; letter-spacing: -0.2px; }
.tpay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tpay-opt { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 14px 12px; border-radius: 18px; text-align: left;
  font-family: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1.5px solid rgba(255, 255, 255, 0.1); transition: border-color .2s, background .2s, transform .15s; }
.tpay-opt:active { transform: scale(0.98); }
.tpay-ic { position: relative; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.75); transition: background .2s, color .2s; }
.tpay-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.tpay-txt b { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpay-txt small { font-size: 11.5px; opacity: 0.55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpay-opt.on { border-color: var(--accent); background: linear-gradient(135deg, rgba(218, 5, 5, 0.18), rgba(218, 5, 5, 0.05)); box-shadow: 0 8px 22px rgba(218, 5, 5, 0.18); }
.tpay-opt.on .tpay-ic { background: var(--accent); color: #fff; }
.tpay-radio { position: absolute; top: -5px; right: -5px; width: 17px; height: 17px; border-radius: 50%; background: #fff; color: var(--accent);
  display: flex; align-items: center; justify-content: center; transform: scale(0); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }
.tpay-radio::after { content: ""; width: 7px; height: 4px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-1px) rotate(-45deg); }
.tpay-opt.on .tpay-radio { transform: scale(1); }
.tpay-note { margin: 10px 2px 0; font-size: 12px; opacity: 0.6; line-height: 1.35; }
[data-theme="light"] .tpay-opt { background: #fff; border-color: rgba(0, 0, 0, 0.08); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05); }
[data-theme="light"] .tpay-ic { background: rgba(0, 0, 0, 0.05); color: rgba(20, 17, 15, 0.7); }
[data-theme="light"] .tpay-opt.on { background: rgba(218, 5, 5, 0.06); border-color: var(--accent); box-shadow: 0 8px 22px rgba(218, 5, 5, 0.12); }
[data-theme="light"] .tpay-opt.on .tpay-ic { background: var(--accent); color: #fff; }

/* Экран заказа: скидка — старая цена, «без скидки», «вы сэкономили» */
.ostat-old { opacity: 0.45; font-weight: 500; margin-right: 6px; font-size: 0.9em; }
.ostat-subline { display: flex; justify-content: space-between; font-size: 13px; opacity: 0.75; margin-top: 6px; }
.ostat-subline s { opacity: 0.8; }
.ostat-disc { color: #1F9A44; opacity: 1; font-weight: 700; }
.ostat-saved { margin-top: 10px; padding: 9px 12px; border-radius: 12px; text-align: center; font-size: 13.5px;
  background: rgba(52, 199, 89, 0.12); color: #1F9A44; }
.ostat-saved b { font-weight: 800; }
