
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #070a10;
  color: #f5f8fc;
  font-family: Inter, Arial, sans-serif;
}

.app {
  max-width: 700px;
  margin: auto;
  padding: 0 16px 90px;
}

button, input, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  background: #070a10;
  position: sticky;
  top: 0;
  z-index: 3;
}

header b {
  font-size: 13px;
  letter-spacing: 2px;
}

header small {
  display: block;
  color: #91a4ba;
  font-size: 9px;
  letter-spacing: 3px;
  margin-top: 5px;
}

.logo {
  width: 42px;
  height: 42px;
  border: 1px solid #26d8ff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #26d8ff;
  font-weight: 900;
}

header button {
  margin-left: auto;
  border: 1px solid #263344;
  border-radius: 12px;
  background: #101722;
  color: white;
  padding: 10px;
}

.hero {
  padding: 23px;
  border: 1px solid #1b3b5c;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 85% 30%, #17446e, transparent 50%),
    linear-gradient(135deg, #102034, #070a10);
  min-height: 185px;
}

.hero small {
  color: #26d8ff;
  letter-spacing: 3px;
  font-weight: bold;
}

.hero h1 {
  font-size: 48px;
  line-height: .86;
  margin: 16px 0;
  font-style: italic;
  letter-spacing: -3px;
}

.hero em {
  color: #168cff;
}

.hero p {
  font-size: 12px;
  color: #b6c6d8;
}

.search {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 17px 0;
  background: #101722;
  border: 1px solid #263344;
  border-radius: 14px;
  padding: 12px;
  color: #91a4ba;
  font-size: 22px;
}

.search input {
  background: none;
  border: 0;
  outline: 0;
  color: white;
  width: 100%;
  font-size: 13px;
}

.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 12px;
}

.heading h2,
.sheet h2 {
  font-size: 18px;
  margin: 0;
}

.heading button {
  background: none;
  border: 0;
  color: #26d8ff;
  font-size: 12px;
}

.heading small {
  color: #91a4ba;
}

.cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.cat {
  background: linear-gradient(145deg, #152335, #0c121c);
  border: 1px solid #263344;
  border-radius: 14px;
  color: white;
  padding: 15px 4px;
  font-weight: bold;
  font-size: 11px;
}

.cat span {
  display: block;
  font-size: 22px;
  margin-bottom: 7px;
}

.cat.sel {
  border-color: #168cff;
}

/* Сетка товаров */

.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.card {
  border: 1px solid #263344;
  background: #101722;
  border-radius: 16px;
  overflow: hidden;
  min-width: 0;
}

/* Область фотографии в карточке */

.art {
  height: auto;
  min-height: 140px;
  max-height: 240px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  font-size: 45px;
  background: radial-gradient(circle, #1b4265, #0b111a 70%);
  position: relative;
  border: 0;
  color: white;
  overflow: hidden;
}

/* Само изображение */

.product-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  object-position: center;
  border-radius: 9px;
}

/* Информация о товаре */

.tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #168cff;
  padding: 5px 7px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: bold;
}

.info {
  padding: 12px;
}

.name {
  font-size: 13px;
  font-weight: 800;
}

.desc {
  font-size: 10px;
  line-height: 1.4;
  color: #91a4ba;
  margin-top: 5px;
  min-height: 28px;
}

.bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.price {
  font-weight: 900;
  font-size: 14px;
}

.add {
  width: 33px;
  height: 33px;
  background: #168cff;
  border: 0;
  border-radius: 10px;
  color: white;
  font-size: 22px;
}

.card-qty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 33px;
}

.card-qty button {
  width: 33px;
  height: 33px;
  background: #168cff;
  border: 0;
  border-radius: 10px;
  color: white;
  font-size: 21px;
  font-weight: 700;
}

.card-qty span {
  min-width: 18px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
}

/* Модальные окна */

.overlay {
  position: fixed;
  inset: 0;
  background: #000b;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hidden {
  display: none !important;
}

.sheet {
  width: min(700px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #0b111a;
  border: 1px solid #263344;
  border-radius: 23px 23px 0 0;
  padding: 25px 18px calc(25px + env(safe-area-inset-bottom));
  position: relative;
}

.close {
  float: right;
  background: #101722;
  border: 1px solid #263344;
  border-radius: 50%;
  color: white;
  width: 34px;
  height: 34px;
}

/* Большая фотография в окне товара */

.detail-art {
  clear: both;
  height: 300px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  font-size: 70px;
  background: radial-gradient(circle, #1b4265, #0b111a 70%);
  border-radius: 15px;
  margin: 18px 0;
  overflow: hidden;
}

.detail-art .product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.detail-name {
  font-size: 22px;
  font-weight: 900;
}

.detail-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #b3c1d1;
}

.detail-price {
  font-size: 24px;
  font-weight: 900;
  margin: 15px 0;
}

.primary {
  width: 100%;
  padding: 15px;
  border: 0;
  border-radius: 12px;
  background: #168cff;
  color: white;
  font-weight: 800;
  margin-top: 12px;
}

/* Корзина */

.row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #263344;
  font-size: 13px;
}

.qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty button {
  background: #172334;
  color: white;
  border: 1px solid #263344;
  border-radius: 8px;
  width: 27px;
  height: 27px;
}

.total {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 14px;
}

.total b {
  font-size: 20px;
}

label {
  font-size: 12px;
  color: #b3c1d1;
}

textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border-radius: 10px;
  background: #101722;
  border: 1px solid #263344;
  color: white;
}

.fine {
  font-size: 10px;
  line-height: 1.5;
  color: #8294a9;
}

/* Нижняя навигация */

nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(700px, 100%);
  display: flex;
  justify-content: space-around;
  background: #090d14f5;
  border-top: 1px solid #263344;
  padding: 10px 5px calc(10px + env(safe-area-inset-bottom));
  z-index: 4;
}

nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: 0;
  color: #91a4ba;
  font-size: 20px;
}

nav button small {
  font-size: 10px;
}

nav button.active {
  color: #26d8ff;
}

/* Уведомления */

.toast {
  position: fixed;
  z-index: 20;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  background: #eaf6ff;
  color: #08111b;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
}

/* Адаптация под большие экраны */

@media (min-width: 600px) {
  .art {
    height: auto;
    min-height: 140px;
    max-height: 240px;
  }

  .cats {
    grid-template-columns: repeat(4, 1fr);
  }

  .detail-art {
    height: 380px;
  }
}

/* Компактные экраны */

@media (max-width: 360px) {
  .art {
    height: auto;
    min-height: 120px;
    max-height: 180px;
  }

  .detail-art {
    height: 250px;
  }

  .info {
    padding: 9px;
  }
}


/* Встроенная панель администратора */
.admin-view { position: fixed; inset: 0 0 65px; z-index: 3; background: #070a10; }
.admin-view iframe { width: 100%; height: 100%; border: 0; background: #070a10; }


/* Индикатор добавления товара в корзину */
#cartTop {
  position: relative;
}

.cart-plus-one {
  position: absolute;
  top: -10px;
  right: -9px;
  background: #f04444;
  color: #fff;
  border: 2px solid #070a10;
  border-radius: 12px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  pointer-events: none;
  animation: cartPlusIn 1.5s ease forwards;
}

@keyframes cartPlusIn {
  0% { opacity: 0; transform: translateY(5px) scale(.7); }
  15% { opacity: 1; transform: translateY(0) scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-5px); }
}

/* Личный кабинет */
.profile-view {
  padding: 20px 16px 110px;
  min-height: 65vh;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: #111a27;
  border: 1px solid #263344;
  border-radius: 18px;
}

.profile-avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: #1c2b3d;
  border-radius: 50%;
  font-size: 27px;
}

.profile-card h2 {
  margin: 0 0 5px;
}

.profile-card p {
  margin: 0;
}

.profile-info {
  margin-top: 14px;
  padding: 17px;
  background: #111a27;
  border: 1px solid #263344;
  border-radius: 14px;
}

.profile-info div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.profile-info span,
.profile-order-date {
  color: #91a4ba;
  font-size: 12px;
}

.profile-title {
  margin: 26px 0 14px;
}

.profile-order {
  margin-bottom: 12px;
  padding: 16px;
  background: #111a27;
  border: 1px solid #263344;
  border-radius: 14px;
}

.profile-order-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.profile-order-top span {
  color: #26d8ff;
  font-size: 12px;
}

.profile-order-date {
  margin-top: 8px;
}

.profile-order-details {
  margin-top: 12px;
  color: #c5d0dd;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.profile-order-total {
  margin-top: 12px;
  text-align: right;
  font-weight: bold;
  color: #26d8ff;
}

/* Исправление переполнения текста в профиле */
.profile-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  gap: 8px;
}

.profile-card h3,
.profile-card p {
  display: block !important;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}


/* Красная подсветка незаполненного адреса */
#deliveryAddress.delivery-invalid {
  border: 1.5px solid #ff4545 !important;
  box-shadow: 0 0 0 2px rgba(255, 69, 69, 0.18);
}

/* Обновлённый личный кабинет */
#profileUsername,
#profileId {
  font-size: 12px;
  color: #91a4ba;
  line-height: 1.4;
}

#profileName {
  font-size: 19px;
  margin-bottom: 5px;
}

.history-button {
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #263344;
  border-radius: 14px;
  background: #111a27;
  color: #26d8ff;
  font-size: 16px;
  font-weight: bold;
  text-align: left;
}

.history-back {
  margin: 10px 0 18px;
  padding: 10px 14px;
  border: 1px solid #263344;
  border-radius: 10px;
  background: #111a27;
  color: #26d8ff;
}

/* CHICAGO SHOP — программа лояльности */
.loyalty-card,
.loyalty-balance,
.invite-link-box {
  box-sizing: border-box;
  width: 100%;
  margin-top: 16px;
  padding: 20px;
  background: linear-gradient(145deg, #142438, #101722);
  border: 1px solid #263b50;
  border-radius: 18px;
}

.loyalty-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.loyalty-top span,
.loyalty-balance > span {
  color: #91a4ba;
  font-size: 11px;
  letter-spacing: 1.5px;
}

.loyalty-top strong {
  font-size: 23px;
  color: #26d8ff;
}

.loyalty-rate {
  margin-top: 15px;
  color: #c5d0dd;
}

.loyalty-rate b {
  color: #fff;
  font-size: 30px;
}

.loyalty-progress {
  height: 9px;
  margin-top: 18px;
  overflow: hidden;
  background: #263344;
  border-radius: 20px;
}

#loyaltyProgressBar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #168cff, #26d8ff);
  border-radius: 20px;
  transition: width .35s ease;
}

#loyaltyProgressText {
  margin: 10px 0 0;
  color: #91a4ba;
  font-size: 12px;
}

.loyalty-balance {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

#loyaltyBalance {
  color: #26d8ff;
  font-size: 30px;
}

.loyalty-balance small {
  color: #91a4ba;
}

.loyalty-action,
.loyalty-menu-button {
  width: 100%;
  box-sizing: border-box;
  padding: 15px;
  border: 1px solid #263b50;
  border-radius: 13px;
  background: #172538;
  color: #26d8ff;
  font-size: 14px;
  font-weight: bold;
}

.loyalty-action:disabled {
  opacity: .45;
}

.loyalty-menu-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  text-align: left;
  font-size: 15px;
}

.invite-link-box p {
  overflow-wrap: anywhere;
  color: #26d8ff;
  line-height: 1.5;
}

.invite-link-box .loyalty-action {
  margin-top: 10px;
}

#profileFriends .profile-order {
  margin-top: 12px;
}


/* Красная кнопка уменьшения количества */
.card-qty button[data-card-dec] {
  background: #e53935;
}


/* Центрированное управление количеством товара */
.bottom.bottom-selected {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.bottom.bottom-selected .price {
  text-align: center;
}

.bottom.bottom-selected .card-qty {
  max-width: 100%;
  gap: 12px;
}

.bottom.bottom-selected .card-qty button {
  flex-shrink: 0;
  background: #168cff;
}

.bottom.bottom-selected .card-qty button[data-card-dec] {
  background: #e53935;
}

/* Мобильные устройства: отключаем увеличение двойным нажатием */
body {
  touch-action: manipulation;
}


/* ===== CHICAGO SHOP: фирменная шапка и баннер ===== */
header {
  gap: 10px;
  background: linear-gradient(90deg, #080610, #10091c);
}

header .logo {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid #9b4dff;
  border-radius: 11px;
  overflow: hidden;
  background: #130b20;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(157, 72, 255, .25);
}

header .logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

header b {
  color: #fff;
  letter-spacing: 1.6px;
}

header small {
  color: #b58ae8;
  letter-spacing: 2.5px;
}

header button {
  border-color: #563078;
  background: #160d22;
  box-shadow: 0 0 12px rgba(157, 72, 255, .12);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 23px;
  border: 1px solid #7136a1;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 85% 25%, rgba(139, 54, 220, .38), transparent 52%),
    radial-gradient(ellipse at 10% 100%, rgba(76, 28, 125, .3), transparent 55%),
    linear-gradient(135deg, #170d24, #080610 75%);
  min-height: 185px;
  box-shadow: inset 0 0 28px rgba(135, 54, 200, .08),
              0 0 18px rgba(129, 54, 190, .12);
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-top: 3px;
  font-weight: 950;
  font-style: italic;
  line-height: .86;
  letter-spacing: -2px;
  text-shadow: 0 0 18px rgba(173, 91, 255, .3);
}

.hero-brand span {
  color: #fff;
  font-size: clamp(37px, 10vw, 48px);
}

.hero-brand strong {
  color: #b56aff;
  font-size: clamp(39px, 11vw, 52px);
  letter-spacing: -2.5px;
}

.hero-tags {
  margin-top: 13px;
  color: #e0c4ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 4px;
}

.hero-tags i {
  color: #a34cff;
  font-style: normal;
  padding: 0 3px;
}

.hero p {
  margin-top: 12px;
  color: #c9b9d8;
  font-size: 12px;
}


/* CHICAGO SHOP — NEON PURPLE DESIGN */

:root {
  --neon-purple: #a100ff;
  --neon-violet: #c04dff;
  --neon-pink: #ed20ff;
  --dark-purple: #100719;
}

.card {
  background: linear-gradient(160deg, #12091c, #07050b);
  border: 1px solid #8525d8;
  border-radius: 16px;
  box-shadow:
    0 0 8px rgba(161, 0, 255, .35),
    inset 0 0 12px rgba(161, 0, 255, .08);
}

.art {
  background:
    radial-gradient(circle at center,
      rgba(112, 0, 255, .32),
      #08030d 75%);
}

.info {
  background: linear-gradient(180deg, #100719, #08050c);
}

.name {
  color: #fff;
  text-shadow: 0 0 8px rgba(192, 77, 255, .2);
}

.desc {
  color: #c39be8;
}

.price {
  color: #e9caff;
  text-shadow: 0 0 10px rgba(161, 0, 255, .4);
}

.add,
.card-qty button {
  background: linear-gradient(135deg, #a100ff, #6d00d9);
  border: 1px solid #d15aff;
  box-shadow: 0 0 12px rgba(161, 0, 255, .5);
}

.card-qty {
  border: 1px solid #8b21df;
  border-radius: 12px;
  background: #100719;
}

.tag {
  background: linear-gradient(135deg, #a100ff, #6d00d9);
  box-shadow: 0 0 10px rgba(161, 0, 255, .5);
}

.cat {
  background: linear-gradient(145deg, #180b27, #08050d);
  border-color: #7620bd;
  box-shadow: 0 0 8px rgba(161, 0, 255, .2);
}

.cat.sel {
  border-color: #d15aff;
  box-shadow: 0 0 14px rgba(161, 0, 255, .5);
}

.search {
  background: #100719;
  border-color: #9225e8;
  box-shadow: 0 0 12px rgba(161, 0, 255, .25);
}

.heading button {
  color: #c04dff;
}

/* Графический баннер */
.hero {
  padding: 0;
  min-height: 0;
  aspect-ratio: 3.04 / 1;
  border: 1px solid #a100ff;
  border-radius: 18px;
  background-image: url('/chicago-hero.png');
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 18px rgba(161, 0, 255, .35);
}

.hero-brand,
.hero-tags,
.hero p {
  display: none;
}

header .logo {
  border-radius: 50%;
  border-color: #c04dff;
  box-shadow: 0 0 12px rgba(161, 0, 255, .45);
}

@media (max-width: 400px) {
  .card {
    box-shadow: 0 0 7px rgba(161, 0, 255, .3);
  }

  .hero {
    border-radius: 16px;
  }
}


/* ===== CHICAGO SHOP: фиолетовый стиль профиля, корзины и инфо ===== */

:root {
  --shop-purple: #9b5cff;
  --shop-purple-light: #c084fc;
  --shop-purple-border: #59358a;
  --shop-purple-dark: #100b19;
  --shop-purple-panel: #1a1028;
}

/* Личный кабинет */
.profile-view .profile-card,
.profile-view .profile-info,
.profile-view .profile-order {
  background: linear-gradient(145deg, #211431, #130d1e);
  border: 1px solid var(--shop-purple-border);
  box-shadow: 0 0 16px rgba(155, 92, 255, .10);
}

.profile-view .profile-card {
  border-radius: 18px;
}

.profile-view #profileName,
.profile-view .profile-title,
.profile-view .heading h2 {
  color: var(--shop-purple-light);
}

.profile-view #profileUsername,
.profile-view #profileId,
.profile-view .profile-info span,
.profile-view .profile-order-date {
  color: #bda8d8;
}

.profile-view .loyalty-card,
.profile-view .loyalty-balance,
.profile-view .invite-link-box {
  background: linear-gradient(145deg, #29183e, #160e22);
  border: 1px solid var(--shop-purple-border);
  box-shadow: 0 0 18px rgba(155, 92, 255, .12);
}

.profile-view .loyalty-top span,
.profile-view .loyalty-balance > span {
  color: #c7afdF;
}

.profile-view .loyalty-top strong,
.profile-view #loyaltyBalance,
.profile-view .invite-link-box p,
.profile-view .profile-order-total,
.profile-view .profile-order-top span {
  color: var(--shop-purple-light);
}

.profile-view .loyalty-rate b {
  color: #e3caff;
}

.profile-view .loyalty-progress {
  background: #38234e;
}

.profile-view #loyaltyProgressBar {
  background: linear-gradient(90deg, #7936d8, #c084fc);
}

.profile-view .loyalty-action,
.profile-view .loyalty-menu-button,
.profile-view .history-button,
.profile-view .history-back {
  background: linear-gradient(145deg, #29183e, #1b1029);
  border: 1px solid #7544a8;
  color: #d9baff;
  box-shadow: 0 0 12px rgba(155, 92, 255, .10);
}

.profile-view .loyalty-action:disabled {
  opacity: .45;
}

/* Корзина */
#cartModal .sheet,
#aboutModal .sheet {
  background: linear-gradient(160deg, #1b1029, #100b19 75%);
  border: 1px solid var(--shop-purple-border);
  box-shadow: 0 -8px 30px rgba(110, 48, 170, .18);
}

#cartModal .sheet h2,
#aboutModal .sheet h2 {
  color: var(--shop-purple-light);
}

#cartModal .close,
#aboutModal .close {
  background: #29183e;
  border: 1px solid #7544a8;
  color: #e3caff;
}

#cartModal .row {
  border-bottom: 1px solid rgba(155, 92, 255, .28);
}

#cartModal .qty button {
  background: #29183e;
  border: 1px solid #7544a8;
  color: #e3caff;
}

#cartModal .total {
  border-top: 1px solid rgba(155, 92, 255, .35);
  color: #e3caff;
}

#cartModal .total b {
  color: var(--shop-purple-light);
}

#cartModal label {
  color: #c7afdF;
}

#cartModal textarea,
#cartModal select,
#cartModal input {
  background: #1b1029 !important;
  border: 1px solid #7544a8 !important;
  color: #fff !important;
}

#cartModal textarea::placeholder,
#cartModal input::placeholder {
  color: #a58bbd;
}

#cartModal .primary {
  background: linear-gradient(135deg, #a66aff, #7134c5);
  border: 1px solid #c084fc;
  box-shadow: 0 0 15px rgba(155, 92, 255, .25);
  color: #fff;
}

#aboutModal .sheet p {
  color: #e0d2ef;
}

#aboutModal .sheet .fine {
  color: #b49acb;
}



/* CHICAGO_LEVEL_CARDS_V1 */
.profile-view .loyalty-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border: 1px solid #914de0;
  border-radius: 20px;
  background-color: #160d23;
  background-image:
    linear-gradient(
      to bottom,
      rgba(10, 5, 20, 0) 28%,
      rgba(10, 5, 20, .35) 48%,
      rgba(10, 5, 20, .94) 77%,
      #10091b 100%
    ),
    var(--level-card-image, url("/level-cards/novichok.webp"));
  background-position: center, center top;
  background-size: cover, cover;
  background-repeat: no-repeat;
  box-shadow: 0 0 22px rgba(155, 75, 255, .22);
}

.profile-view .loyalty-card .loyalty-top,
.profile-view .loyalty-card .loyalty-rate,
.profile-view .loyalty-card .loyalty-progress,
.profile-view .loyalty-card #loyaltyProgressText {
  position: relative;
  z-index: 1;
}

.profile-view .loyalty-card .loyalty-top span {
  color: #d6b8ff;
  font-size: 11px;
  font-weight: 700;
}

.profile-view .loyalty-card .loyalty-top strong {
  color: #ffffff;
  font-size: 27px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .9);
}

.profile-view .loyalty-card .loyalty-rate {
  margin-top: 10px;
  color: #eadcf7;
  font-size: 13px;
}

.profile-view .loyalty-card .loyalty-rate b {
  color: #ffffff;
  font-size: 29px;
}

.profile-view .loyalty-card .loyalty-progress {
  margin-top: 15px;
  height: 8px;
  background: rgba(255, 255, 255, .18);
}

.profile-view .loyalty-card #loyaltyProgressBar {
  background: linear-gradient(90deg, #8b39e8, #d9a4ff);
}

.profile-view .loyalty-card #loyaltyProgressText {
  color: #e0cbed;
  font-size: 12px;
  line-height: 1.4;
}



/* CHICAGO_LEVEL_CARDS_COMPACT_V2 */
.profile-view .loyalty-card {
  min-height: 250px;
  padding: 120px 16px 16px;
  justify-content: flex-end;
  background-image:
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(10, 5, 20, .05) 25%,
      rgba(10, 5, 20, .75) 52%,
      #10091b 85%
    ),
    var(--level-card-image, url("/level-cards/novichok.webp"));
  background-position: center, center 25%;
  background-size: cover, cover;
}


/* CHICAGO_CATEGORY_SIZE_FIX_V1 */
.cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  align-items: stretch;
}

.cats .cat {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  height: 100px;
  min-height: 0;
  padding: 7px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  overflow: hidden;
}

.cats .cat-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 60px;
  min-height: 0;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 8px;
}

.cats .cat .cat-icon {
  display: block;
  font-size: 23px;
  line-height: 1.2;
  margin: 0;
}

.cats .cat .cat-label {
  display: block;
  max-width: 100%;
  margin: 0;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}


/* CHICAGO_CATEGORY_FULL_IMAGE_V1 */
.cats .cat {
  position: relative;
  height: 100px;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}

.cats .cat-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  margin: 0;
  z-index: 0;
}

.cats .cat:has(.cat-image)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 35%,
    rgba(0, 0, 0, .75) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.cats .cat .cat-label {
  position: relative;
  z-index: 2;
  color: white;
  font-size: 11px;
  font-weight: 800;
  text-shadow: 0 2px 5px black;
}

.cats .cat:has(.cat-image) .cat-label {
  margin-top: auto;
  margin-bottom: 9px;
}


/* CHICAGO SHOP: карточка промокода */
.profile-view .promo-card {
  margin: 16px 0;
  padding: 19px;
  border: 1px solid rgba(174, 111, 255, .36);
  border-radius: 19px;
  background:
    radial-gradient(circle at 95% 0%,
      rgba(133, 65, 235, .25), transparent 55%),
    linear-gradient(145deg, #191528, #10121d);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .2);
}

.promo-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.promo-card-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  flex-shrink: 0;
  border-radius: 13px;
  background: rgba(144, 79, 243, .18);
  font-size: 23px;
}

.promo-card-head strong {
  display: block;
  color: #f3eaff;
  font-size: 15px;
  letter-spacing: 1.5px;
}

.promo-card-head small {
  display: block;
  margin-top: 5px;
  color: #b9a9d2;
  font-size: 12px;
}

.promo-card-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-view .promo-card-form input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 14px;
  border: 1px solid #51436b;
  border-radius: 11px;
  outline: none;
  background: #1d1b2b;
  color: #fff;
  font-size: 14px;
  letter-spacing: .5px;
}

.profile-view .promo-card-form input:focus {
  border-color: #b483ff;
  box-shadow: 0 0 0 2px rgba(180, 131, 255, .12);
}

.profile-view .promo-card-form button {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(110deg, #7d3fe0, #a35cf2);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
}

.profile-view .promo-card-form button:disabled {
  opacity: .55;
  cursor: wait;
}

.promo-card-message {
  margin: 10px 0 0;
  font-size: 13px;
  color: #d9c6ff;
}

.promo-card-message:empty {
  display: none;
}

.promo-card-note {
  margin: 13px 0 0;
  color: #aa9bbf;
  font-size: 11px;
  text-align: center;
}


/* CHICAGO SHOP — скидочные промокоды */
.discount-promo {
  margin: 16px 0;
  padding: 15px;
  border: 1px solid rgba(163, 92, 242, .4);
  border-radius: 14px;
  background: rgba(125, 63, 224, .09);
}

.discount-promo > label {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

.discount-promo-row {
  display: flex;
  gap: 8px;
}

.discount-promo-row input {
  min-width: 0;
  flex: 1;
  padding: 12px;
  border: 1px solid rgba(163, 92, 242, .5);
  border-radius: 9px;
  background: rgba(0, 0, 0, .2);
  color: inherit;
}

.discount-promo-row button {
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(110deg, #7d3fe0, #a35cf2);
  color: white;
  font-size: 11px;
  font-weight: 800;
}

.discount-promo-row button:disabled {
  opacity: .5;
}

.discount-message {
  margin: 9px 0 0;
  font-size: 12px;
  color: #c9a7ff;
}

.discount-info {
  margin-top: 12px;
  color: #c9a7ff;
  font-size: 13px;
}

.discount-final {
  margin-top: 9px;
  font-size: 17px;
  font-weight: 900;
  color: #b68aff;
}


/* CHICAGO SHOP: BRAND CARDS V1 */

.brands-section {
    margin: 14px 0 22px;
}

.brands-section.hidden {
    display: none !important;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.brand-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #8732cc;
    border-radius: 17px;
    background: linear-gradient(145deg, #21102e, #0c0814);
    color: #fff;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(161, 0, 255, .22);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.brand-card:active {
    transform: scale(.97);
}

.brand-card:focus-visible {
    outline: 2px solid #d58aff;
    outline-offset: 3px;
}

.brand-card:hover {
    border-color: #ca66ff;
    box-shadow: 0 0 20px rgba(161, 0, 255, .42);
}

.brand-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: radial-gradient(circle, #351448, #0c0814 75%);
}

.brand-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-card-placeholder {
    font-size: 42px;
    color: #c680ff;
}

.brand-card-name {
    padding: 12px 8px 4px;
    font-size: 14px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.brand-card-count {
    padding: 0 8px 12px;
    font-size: 11px;
    color: #c9a5e7;
}

#brandsBack {
    border: 1px solid #8732cc;
    border-radius: 10px;
    background: #1b0d2a;
    color: #d58aff;
    padding: 8px 12px;
    font-weight: 700;
}



/* CHICAGO SHOP: NAV CART TOTAL V1 */
nav .nav-cart-total {
  color: #d48aff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(170, 60, 255, 0.65);
  line-height: 1.1;
}

nav button[data-page="cart"] {
  justify-content: center;
}


/* CHICAGO SHOP: INFO DESIGN V1 */

#aboutModal .chicago-info {
  background: linear-gradient(160deg, #160d24, #090b13 85%);
  border: 1px solid #7534b5;
  padding: 28px 18px 24px;
  box-sizing: border-box;
  max-height: 90vh;
  overflow-y: auto;
}

.chicago-info-header {
  text-align: center;
  padding: 14px 4px 20px;
}

.chicago-info-header h2 {
  font-size: 28px;
  letter-spacing: 2px;
  font-weight: 900;
  color: #e5c6ff;
  text-shadow: 0 0 18px rgba(170, 75, 255, .65);
  margin: 0 0 12px;
}

.chicago-info-line {
  width: 85px;
  height: 3px;
  border-radius: 20px;
  background: #a447ef;
  box-shadow: 0 0 14px #a447ef;
  margin: 0 auto 20px;
}

.chicago-info-header p {
  color: #e4d5f2;
  font-size: 14px;
  line-height: 1.6;
  margin: 8px 0;
}

.chicago-info-block {
  background: linear-gradient(145deg, #21132f, #120d1d);
  border: 1px solid #7136a6;
  border-radius: 18px;
  padding: 18px 12px;
  margin-bottom: 16px;
  box-shadow: 0 0 18px rgba(133, 50, 220, .12);
}

.chicago-info-block h3 {
  text-align: center;
  font-size: 17px;
  color: #f0dfff;
  margin: 0 0 8px;
}

.chicago-info-subtitle {
  text-align: center;
  font-size: 12px;
  color: #bba4cf;
  margin-bottom: 16px;
}

.chicago-info-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.chicago-info-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  padding: 17px 6px;
  border: 1px solid #9343d5;
  border-radius: 14px;
  background: linear-gradient(145deg, #311b47, #1b1129);
  color: #f2e3ff;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(151, 54, 255, .18);
  transition: transform .15s, box-shadow .15s;
}

.chicago-info-button:active {
  transform: scale(.96);
  box-shadow: 0 0 22px rgba(172, 79, 255, .5);
}

.chicago-info-icon {
  font-size: 25px;
  color: #c48aff;
}

.chicago-info-button strong {
  font-size: 13px;
  letter-spacing: .6px;
}

.chicago-info-button small {
  font-size: 11px;
  color: #bba6d0;
}

.chicago-info-footer {
  text-align: center;
  padding: 18px 4px 8px;
}

.chicago-info-footer > span {
  font-size: 26px;
  color: #b768ff;
}

.chicago-info-footer p {
  font-weight: 700;
  color: #f0dfff;
  margin: 8px 0;
}

.chicago-info-footer small {
  color: #a991bd;
}

#aboutModal .chicago-info-legal {
  margin-top: 16px;
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
}


/* CHICAGO SHOP: AUTO BRAND IMAGE HEIGHT V1 */

/* Карточка не растягивается по высоте строки */
.brands-grid {
  align-items: start;
}

/* Область изображения подстраивается под фотографию */
.brand-card-image:has(img) {
  aspect-ratio: auto;
  height: auto;
  display: block;
}

/* Показываем изображение в оригинальных пропорциях */
.brand-card-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Карточки без фотографии сохраняют аккуратную форму */
.brand-card-image:not(:has(img)) {
  aspect-ratio: 16 / 9;
}
