:root {
  --keyboard-offset: 0px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-bottom: calc(
    24px + env(safe-area-inset-bottom) + var(--keyboard-offset)
  );
}

body {
  background:
    radial-gradient(circle at 50% -10%, rgba(28, 80, 170, 0.24), transparent 34rem),
    #030812;
  min-height: 100vh;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #ffffff;
  font-weight: 400;
  letter-spacing: 0;
  padding-bottom: var(--keyboard-offset);
  transition: padding-bottom 0.2s ease;
}

.container {
  max-width: 560px;
  margin: 0 auto;
  padding-left: clamp(14px, 3.8vw, 18px);
  padding-right: clamp(14px, 3.8vw, 18px);
}

/* Полностью скрываем заголовки разделов во всех секциях */
.content-section h2,
.content-section h1,
.content-section .section-title,
.content-section .page-title {
  display: none !important;
}

.container[style*="display: block"] .top-widgets {
  display: flex !important;
}

/* Убираем стрелочки у инпутов типа number для Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.top-widgets {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 15px 20px;
  /* Чтобы виджеты не улетали при скролле, если нужно */
  position: absolute;
}

.widget-btn {
  position: relative; /* Обязательно для позиционирования циферки */
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: none; /* Скрыто, пока нет товаров (управляется через JS) */
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: white;
  transition: all 0.2s ease;
  z-index: 1000;
  cursor: pointer;
}

/* Стилизуем циферку (бадж) */
.widget-btn .badge {
  position: absolute;
  top: -5px; /* Выносим чуть выше кнопки */
  right: -5px; /* Выносим чуть правее */
  background: #ff3b30; /* Красный как в Telegram */
  color: white;
  font-size: 11px;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1c1c1e; /* Темная обводка, чтобы бадж не сливался */
  padding: 2px;
}

.payment-wrapper {
  margin-top: 25px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.payment-method {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}

.method-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.method-title {
  font-size: 10px;
  color: #8e8e93;
  text-transform: uppercase;
  font-weight: 700;
}

.method-name {
  font-size: 14px;
  color: #ffffff;
  font-weight: 500;
}

.sbp-logo {
  height: 20px; /* Оптимальный размер для мобильных устройств */
  width: auto;
}

.final-buy-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #007aff, #0056b3);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
  box-shadow: 0 5px 15px rgba(0, 122, 255, 0.3);
  cursor: pointer;
}

.final-buy-btn:active {
  transform: scale(0.97);
  filter: brightness(1.2);
}

@keyframes fadeInWidget {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Оставляем крошки видимыми и настраиваем их отступ */
.breadcrumbs {
  display: flex !important;
  margin-top: 10px;
  margin-bottom: 25px; /* Чтобы контент не прилипал к крошкам */
  font-weight: 400;
}

.header {
  text-align: center;
  background: transparent;
}

.home-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3.6vw, 24px);
  padding: clamp(20px, 5.8vw, 48px) 0 calc(24px + env(safe-area-inset-bottom));
}

.home-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 3vw, 18px);
  min-height: clamp(54px, 13vw, 74px);
}

.home-actions-left.top-widgets {
  position: static;
  display: flex !important;
  justify-content: flex-start;
  gap: clamp(8px, 2.8vw, 14px);
  padding: 0;
}

.home-icon-btn {
  width: clamp(44px, 12.5vw, 68px);
  height: clamp(44px, 12.5vw, 68px);
  border: 0;
  border-radius: clamp(14px, 3.8vw, 22px);
  padding: 0;
  background: rgba(5, 13, 32, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(116, 155, 255, 0.28),
    0 18px 38px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(35, 111, 255, 0.09);
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  position: relative;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    filter 0.24s ease;
}

.home-icon-btn img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
  pointer-events: none;
}

.home-icon-btn i {
  color: #fff;
  font-size: 25px;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.22);
}

.home-icon-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    inset 0 0 0 1px rgba(148, 184, 255, 0.46),
    0 22px 44px rgba(0, 0, 0, 0.38),
    0 0 34px rgba(35, 111, 255, 0.16);
}

.home-icon-btn:active {
  transform: scale(0.94);
}

.home-profile-btn {
  justify-self: end;
}

.logo.home-logo {
  width: clamp(104px, 31vw, 178px);
  margin: 0;
  opacity: 1;
  transform: none;
  animation: homeLogoIn 0.58s ease both;
  filter: drop-shadow(0 10px 18px rgba(255, 255, 255, 0.14));
}

.home-menu {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 3.4vw, 20px);
}

.home-card,
.home-social-btn {
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: clamp(18px, 5vw, 30px);
  background: transparent;
  cursor: pointer;
  position: relative;
  display: block;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  animation: homeCardIn 0.58s ease forwards;
  transition:
    transform 0.24s ease,
    filter 0.24s ease,
    box-shadow 0.24s ease;
}

.home-card {
  aspect-ratio: 3 / 1;
  min-height: 112px;
  text-align: left;
  isolation: isolate;
}

.home-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.home-card-steam .home-card-bg {
  object-position: center;
}

.home-card-subscriptions .home-card-bg,
.home-card-apple .home-card-bg {
  object-position: center;
}

.home-card-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(2, 7, 18, 0.92) 0%, rgba(2, 7, 18, 0.76) 31%, rgba(2, 7, 18, 0.12) 66%, rgba(2, 7, 18, 0.34) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0));
  box-shadow:
    inset 0 0 0 1px rgba(116, 164, 255, 0.28),
    inset 0 0 34px rgba(0, 0, 0, 0.16);
  pointer-events: none;
}

.home-card-steam .home-card-vignette {
  box-shadow:
    inset 0 0 0 1px rgba(50, 140, 255, 0.72),
    inset 0 0 32px rgba(28, 105, 255, 0.24),
    0 0 24px rgba(28, 105, 255, 0.18);
}

.home-card-subscriptions .home-card-vignette {
  background:
    linear-gradient(90deg, rgba(1, 15, 12, 0.92) 0%, rgba(1, 22, 17, 0.74) 34%, rgba(1, 22, 17, 0.18) 68%, rgba(1, 18, 15, 0.38) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  box-shadow:
    inset 0 0 0 1px rgba(30, 225, 122, 0.62),
    inset 0 0 34px rgba(0, 255, 140, 0.13),
    0 0 22px rgba(0, 210, 112, 0.14);
}

.home-card-apple .home-card-vignette {
  background:
    linear-gradient(90deg, rgba(10, 5, 25, 0.92) 0%, rgba(14, 7, 34, 0.76) 34%, rgba(20, 8, 44, 0.14) 68%, rgba(18, 6, 38, 0.36) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  box-shadow:
    inset 0 0 0 1px rgba(222, 63, 255, 0.58),
    inset 0 0 34px rgba(221, 42, 255, 0.16),
    0 0 22px rgba(190, 55, 255, 0.14);
}

.home-card-content {
  position: absolute;
  z-index: 2;
  left: clamp(18px, 5vw, 28px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: min(70%, 330px);
  pointer-events: none;
}

.home-card-icon {
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.06) 35%, rgba(3, 12, 32, 0.58) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 14px 32px rgba(0, 0, 0, 0.32),
    0 0 24px rgba(59, 145, 255, 0.26);
  overflow: hidden;
}

.home-card-icon img {
  width: 58%;
  height: 58%;
  object-fit: contain;
  border-radius: 0;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.26));
}

.home-card-icon i {
  color: #fff;
  font-size: 31px;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
}

.steam-orb {
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, rgba(27, 103, 255, 0.18), rgba(7, 20, 56, 0.9) 65%),
    radial-gradient(circle, rgba(58, 166, 255, 0.6), rgba(17, 61, 180, 0.08) 72%);
  box-shadow:
    inset 0 0 0 1px rgba(87, 180, 255, 0.36),
    0 0 24px rgba(0, 125, 255, 0.42);
}

.subs-orb {
  background:
    radial-gradient(circle at 40% 24%, rgba(255, 255, 255, 0.28), rgba(18, 173, 95, 0.18) 38%, rgba(2, 55, 38, 0.86) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(93, 255, 168, 0.28),
    0 0 24px rgba(0, 220, 115, 0.32);
}

.apple-orb {
  background:
    radial-gradient(circle at 42% 24%, rgba(255, 255, 255, 0.28), rgba(210, 68, 255, 0.18) 38%, rgba(42, 8, 74, 0.86) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 113, 244, 0.28),
    0 0 24px rgba(217, 58, 255, 0.3);
}

.home-card-copy {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.home-card-title {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.02;
  text-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
  white-space: nowrap;
}

.home-card-subtitle {
  color: rgba(226, 235, 255, 0.74);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.22;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.34);
}

.home-card-arrow {
  position: absolute;
  z-index: 2;
  right: clamp(16px, 4.8vw, 28px);
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(7, 13, 30, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 12px 30px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
  pointer-events: none;
  transition:
    transform 0.24s ease,
    background 0.24s ease;
}

.home-card-arrow i {
  font-size: 23px;
}

.home-card:hover .home-card-arrow {
  transform: translate(3px, -50%);
  background: rgba(14, 24, 52, 0.76);
}

.home-service-dock {
  position: absolute;
  z-index: 2;
  right: 84px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  pointer-events: none;
}

.service-chip {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 18, 32, 0.64);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 10px 20px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
}

.service-chip img {
  width: 62%;
  height: 62%;
  object-fit: contain;
  border-radius: 0;
}

.service-chip i {
  font-size: 17px;
}

.youtube-chip i {
  color: #ff3434;
}

.chatgpt-chip span {
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.home-card::after,
.home-social-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0.16) 42%,
    transparent 62%
  );
  opacity: 0;
  transform: translateX(-70%);
  transition:
    opacity 0.25s ease,
    transform 0.7s ease;
  pointer-events: none;
}

.home-card:hover,
.home-social-btn:hover {
  transform: translateY(-3px) scale(1.01);
  filter: brightness(1.07) saturate(1.05);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.38);
}

.home-card:hover::after,
.home-social-btn:hover::after {
  opacity: 1;
  transform: translateX(70%);
}

.home-card:active,
.home-social-btn:active {
  transform: scale(0.975);
  filter: brightness(1.12);
}

.home-card > img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  pointer-events: none;
}

.home-card:nth-child(1) {
  animation-delay: 0.06s;
}

.home-card:nth-child(2) {
  animation-delay: 0.14s;
}

.home-card:nth-child(3) {
  animation-delay: 0.22s;
}

.home-socials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 3vw, 16px);
  margin-top: clamp(2px, 1vw, 6px);
}

.home-social-btn {
  border-radius: clamp(16px, 4.4vw, 24px);
  animation-delay: 0.3s;
  min-height: 82px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(11, 29, 65, 0.88), rgba(4, 12, 30, 0.92)),
    rgba(6, 14, 32, 0.88);
  box-shadow:
    inset 0 0 0 1px rgba(65, 142, 255, 0.25),
    0 18px 38px rgba(0, 0, 0, 0.3);
}

.home-social-btn:nth-child(2) {
  animation-delay: 0.36s;
}

.home-social-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 12px 22px rgba(0, 0, 0, 0.26);
}

.telegram-social-icon {
  background: linear-gradient(135deg, #22c1ff, #1678ff);
}

.vk-social-icon {
  background: linear-gradient(135deg, #3f8dff, #145cd8);
}

.home-social-icon img {
  width: 58%;
  height: 58%;
  object-fit: contain;
  border-radius: 0;
}

.home-social-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.home-social-copy span {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.05;
}

.home-social-copy small {
  color: rgba(226, 235, 255, 0.62);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.1;
}

.home-social-btn > i {
  flex: 0 0 auto;
  color: #fff;
  font-size: 18px;
  opacity: 0.92;
  transition: transform 0.24s ease;
}

.home-social-btn:hover > i {
  transform: translateX(3px);
}

.home-icon-btn .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff3b30, #ff1f5b);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 20px;
  border: 2px solid #030812;
  box-shadow: 0 6px 16px rgba(255, 31, 91, 0.34);
  display: none;
  align-items: center;
  justify-content: center;
}

@keyframes homeCardIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes homeLogoIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 380px) {
  .home-shell {
    gap: 13px;
    padding-top: 18px;
  }

  .home-actions-left.top-widgets {
    gap: 7px;
  }

  .home-card {
    min-height: 108px;
  }

  .home-card-content {
    left: 16px;
    gap: 11px;
    max-width: calc(100% - 82px);
  }

  .home-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 17px;
  }

  .home-card-title {
    font-size: 23px;
  }

  .home-card-subtitle {
    font-size: 14px;
  }

  .home-card-arrow {
    right: 14px;
    width: 46px;
    height: 46px;
  }

  .home-service-dock {
    display: none;
  }

  .home-social-btn {
    min-height: 74px;
    padding: 12px;
    gap: 10px;
  }

  .home-social-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .home-social-copy span {
    font-size: 16px;
  }

  .home-social-copy small {
    font-size: 12px;
  }
}

@media (max-width: 340px) {
  .home-card-content {
    max-width: calc(100% - 80px);
  }

  .home-card-icon {
    display: none;
  }

  .home-card-title {
    white-space: normal;
  }

  .home-socials {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 760px) {
  .home-shell {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

.home-shell {
  gap: 14px;
  padding: 18px 0 calc(20px + env(safe-area-inset-bottom));
}

.home-topbar {
  min-height: 58px;
  gap: 12px;
}

.home-icon-btn {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(15, 25, 48, 0.96), rgba(5, 12, 27, 0.94)),
    #071020;
  box-shadow:
    inset 0 0 0 1px rgba(156, 180, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 28px rgba(0, 0, 0, 0.28);
}

.home-icon-btn i {
  font-size: 21px;
}

.logo.home-logo {
  width: 136px;
}

.home-menu {
  gap: 10px;
}

.home-card {
  min-height: 102px;
  aspect-ratio: auto;
  padding: 14px 58px 14px 14px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(14, 24, 45, 0.98), rgba(7, 13, 29, 0.98)),
    #09111f;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.28);
}

.home-card-steam {
  background:
    linear-gradient(135deg, rgba(16, 39, 75, 0.98), rgba(6, 13, 31, 0.98)),
    #081426;
}

.home-card-subscriptions {
  background:
    linear-gradient(135deg, rgba(11, 59, 44, 0.98), rgba(7, 18, 28, 0.98)),
    #071820;
}

.home-card-apple {
  background:
    linear-gradient(135deg, rgba(63, 20, 67, 0.98), rgba(12, 11, 30, 0.98)),
    #160f25;
}

.home-card-support {
  background:
    linear-gradient(135deg, rgba(68, 49, 21, 0.98), rgba(13, 15, 28, 0.98)),
    #171421;
}

.home-card-accent {
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: #4aa3ff;
  box-shadow: 0 0 20px rgba(74, 163, 255, 0.42);
}

.home-card-steam .home-card-accent {
  background: #4aa3ff;
  box-shadow: 0 0 20px rgba(74, 163, 255, 0.44);
}

.home-card-subscriptions .home-card-accent {
  background: #37df82;
  box-shadow: 0 0 20px rgba(55, 223, 130, 0.36);
}

.home-card-apple .home-card-accent {
  background: #ee5bff;
  box-shadow: 0 0 20px rgba(238, 91, 255, 0.34);
}

.home-card-support .home-card-accent {
  background: #ffc85a;
  box-shadow: 0 0 20px rgba(255, 200, 90, 0.34);
}

.home-card-content {
  position: static;
  transform: none;
  max-width: none;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.home-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 12px 22px rgba(0, 0, 0, 0.22);
}

.home-card-steam .home-card-icon {
  color: #7fc0ff;
  background: rgba(54, 136, 255, 0.12);
}

.home-card-subscriptions .home-card-icon {
  color: #70f0a7;
  background: rgba(50, 220, 122, 0.12);
}

.home-card-apple .home-card-icon {
  color: #f4adff;
  background: rgba(220, 82, 255, 0.12);
}

.home-card-support .home-card-icon {
  color: #ffe09a;
  background: rgba(255, 198, 78, 0.12);
}

.home-card-icon i {
  font-size: 23px;
}

.home-card-copy {
  gap: 6px;
}

.home-card-title {
  font-size: 22px;
  line-height: 1.06;
  white-space: normal;
}

.home-card-subtitle {
  color: rgba(228, 235, 248, 0.68);
  font-size: 14px;
  line-height: 1.25;
}

.home-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.home-card-tags span {
  height: 22px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  color: rgba(239, 245, 255, 0.82);
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.home-card-arrow {
  right: 14px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 10px 20px rgba(0, 0, 0, 0.2);
}

.home-card-arrow i {
  display: none;
}

.home-card-arrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: rotate(45deg);
  margin-left: -2px;
}

.home-card:hover,
.home-social-btn:hover,
.home-icon-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.home-card:hover .home-card-arrow {
  transform: translate(2px, -50%);
}

.home-card:active,
.home-social-btn:active,
.home-icon-btn:active {
  transform: scale(0.98);
}

.home-card:nth-child(4) {
  animation-delay: 0.3s;
}

.home-socials {
  gap: 10px;
  margin-top: 2px;
}

.home-social-btn {
  min-height: 66px;
  border-radius: 20px;
  padding: 12px;
  gap: 12px;
}

.home-social-btn:nth-child(1) {
  animation-delay: 0.38s;
}

.home-social-btn:nth-child(2) {
  animation-delay: 0.44s;
}

.home-social-icon {
  width: 44px;
  height: 44px;
  border-radius: 15px;
}

.home-social-copy span {
  font-size: 16px;
}

.home-social-copy small {
  font-size: 12px;
}

@media (max-width: 380px) {
  .home-shell {
    gap: 12px;
    padding-top: 16px;
  }

  .home-icon-btn {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .home-icon-btn i {
    font-size: 19px;
  }

  .logo.home-logo {
    width: 116px;
  }

  .home-card {
    min-height: 98px;
    padding: 13px 52px 13px 13px;
    border-radius: 20px;
  }

  .home-card-content {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
  }

  .home-card-icon {
    display: flex;
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }

  .home-card-title {
    font-size: 20px;
  }

  .home-card-subtitle {
    font-size: 13px;
  }

  .home-card-tags span {
    height: 22px;
    padding: 0 8px;
    font-size: 10px;
  }

  .home-card-arrow {
    right: 11px;
    width: 36px;
    height: 36px;
  }

  .home-social-btn {
    min-height: 64px;
  }
}

@media (max-width: 520px) {
  .home-socials {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 340px) {
  .home-card-tags span:nth-child(n + 3) {
    display: none;
  }
}

.logo {
  width: 150px;
  height: auto;
  margin: 0 auto;
  display: block;
  opacity: 0;
  transform: translateY(-50px);
  animation: slideDown 1s ease-out forwards;
  filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.3));
}

.slogan {
  margin-bottom: 40px;
  font-size: 15px;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: 0 auto;
}

.btn {
  width: 100%;
  height: 90px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.6s ease-out 1.5s forwards;
  transition:
    transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 12px;
}

.btn-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.btn-title {
  font-size: 20px;
  font-weight: 600;
  color: white;
}

.btn-subtitle {
  font-size: 13px;
  color: #cccccc;
}

.btn-1 {
  background:
    linear-gradient(rgba(30, 40, 60, 0.9), rgba(20, 30, 50, 0.9)), #0f1419;
}

.btn:hover {
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 20px 50px rgba(0, 60, 120, 0.6);
}

.btn-2 {
  background:
    linear-gradient(
      145deg,
      rgba(22, 101, 52, 0.95) 0%,
      rgba(46, 125, 50, 0.9) 50%,
      rgba(22, 101, 52, 0.95) 100%
    ),
    #0f1419;
}

.btn:nth-child(2) {
  animation: slideUp 0.6s ease-out 1.7s forwards;
}

.btn-2:hover {
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 20px 50px rgba(34, 197, 94, 0.6);
}

.btn:nth-child(1) {
  animation: slideUp 0.6s ease-out 1.5s forwards;
}

.btn:nth-child(2) {
  animation: slideUp 0.6s ease-out 1.8s forwards;
}

.btn-3 {
  background:
    linear-gradient(
      145deg,
      rgba(20, 100, 160, 0.95) 0%,
      rgba(40, 130, 190, 0.9) 50%,
      rgba(20, 100, 160, 0.95) 100%
    ),
    #0f1419;
  animation: slideUp 0.6s ease-out 2.1s forwards;
}

.btn-3:hover {
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 20px 50px rgba(36, 161, 222, 0.6);
}

.btn-4 {
  background:
    linear-gradient(
      145deg,
      rgba(200, 60, 60, 0.9) 0%,
      rgba(230, 90, 90, 0.85) 50%,
      rgba(200, 60, 60, 0.9) 100%
    ),
    #0f1419;
  animation: slideUp 0.6s ease-out 2.4s forwards;
}

.btn-4:hover {
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 20px 50px rgba(200, 60, 60, 0.6);
}

.contacts-text {
  font-size: 15px;
  color: #fff;
  margin-top: 15px;
  margin-bottom: 15px;
  font-weight: 400;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s ease-out;
}

.contacts-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.contact-btn {
  flex: 1;
  max-width: 160px;
  height: 44px;
  border: 2px solid transparent;
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: white;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s;
}

.contact-btn:hover::before {
  left: 100%;
}

.contact-btn:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.2);
}

.btn-icon-small {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 6px;
}

.category-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #151a23;
  z-index: 100;
  overflow-y: auto;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.back-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.products {
  padding: 20px;
  color: white;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}
.back-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 18px;
  cursor: pointer;
}
.products {
  padding: 20px;
  color: white;
  text-align: center;
}

.btn-link {
  display: block;
  text-decoration: none;
  width: 100%;
}

.btn-link:hover {
  text-decoration: none;
}

#telegram-web-app-body {
  padding-bottom: 60px;
}

.nav-item-new {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  color: #8e8e93;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 15px;
}

.nav-item-new:hover {
  color: #ffffff;
  transform: translateY(-5px) scale(1.1);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.nav-item-new:active {
  transform: scale(0.9);
  color: #3498db;
}

.nav-item-new:hover svg {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

/* Улучшенные стили для хлебных крошек */
.breadcrumbs {
  text-align: left;
  display: inline-flex; /* Чтобы фон облегал текст */
  align-items: center;
  padding: 8px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #8e8e93;
  background: rgba(255, 255, 255, 0.03); /* Очень легкий фон */
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.4s ease-out;
}

.breadcrumbs span {
  transition: all 0.2s ease;
  white-space: nowrap;
}

/* Улучшенные центрированные хлебные крошки */
.breadcrumbs {
  display: flex;
  justify-content: center; /* Строго по центру */
  align-items: center;
  padding: 12px 20px;
  margin: 10px auto 25px auto; /* Центрируем сам блок */
  font-size: 15px; /* Увеличили размер */
  font-weight: 500;
  color: #8e8e93;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  width: fit-content; /* Ширина по контенту */
  max-width: 90%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: breadcrumbPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.breadcrumbs span {
  transition: all 0.3s ease;
  padding: 2px 4px;
}

/* Кликабельные элементы */
.breadcrumbs span[onclick] {
  cursor: pointer;
  color: #b0b0b5;
}

.breadcrumbs span[onclick]:hover {
  color: #ffffff;
  transform: scale(1.05);
}

.breadcrumbs .sep {
  margin: 0 12px; /* Чуть больше отступы по бокам */
  color: #666; /* Цвет стал капельку светлее */
  font-size: 16px; /* Размер теперь соответствует тексту */
  font-weight: 900; /* Делаем символ максимально заметным */
  display: flex;
  align-items: center;
  user-select: none; /* Чтобы нельзя было случайно выделить */
}

/* Текущий раздел — яркий и заметный */
.breadcrumbs span:last-child {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Анимация "выпрыгивания" при смене пути */
@keyframes breadcrumbPop {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Стили иконок навигации */
.nav-item-new {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  color: #8e8e93;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 12px;
}
.nav-item-new:hover {
  color: #ffffff;
  transform: scale(1.1);
}
.nav-item-new:active {
  transform: scale(0.9);
}

/* Контейнер для навигации внутри Steam */
.steam-navigation {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: calc(100vh - 180px); /* Вычитаем высоту шапки и меню */
  padding: 0 15px 20px 15px;
}

/* Базовые стили карточек (как на твоем скрине) */
.steam-card {
  position: relative;
  border-radius: 20px;
  background: #0d1117; /* Глубокий темный фон */
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.3s ease;
  height: 180px; /* Фиксируем высоту, чтобы не ломалась сетка */
  display: flex;
}

.steam-card.wide {
  width: 100%;
  margin-bottom: 12px;
}

.steam-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.steam-card.half {
  flex: 1;
}

/* Стили текста (Overlay) */
.card-overlay {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2; /* Текст всегда выше картинки */
  background: linear-gradient(
    to right,
    rgba(13, 17, 23, 0.9) 30%,
    transparent 100%
  );
}

.card-title {
  color: white;
  font-size: 22px;
  font-weight: 800;
}

.card-desc {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  margin-top: 5px;
}

/* Контейнер */
.steam-navigation {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 80vh;
  min-height: 500px;
}

/* 1. Общий контейнер */
.steam-navigation {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 80vh;
  min-height: 500px;
}

/* 2. Базовая карточка */
.steam-card {
  position: relative;
  background: #0d1117;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.steam-card.wide {
  flex: 2;
}
.steam-row {
  flex: 1;
  display: flex;
  gap: 15px;
}
.steam-card.half {
  flex: 1;
}

/* 3. ОБЩИЙ СТИЛЬ КАРТИНОК */
.games-fan-img {
  position: absolute;
  z-index: 1;
  width: auto;
  transition: transform 0.4s ease;
  pointer-events: none;
}

/* 4. РАССТАВЛЯЕМ КАРТИНКИ ПО МЕСТАМ */

/* Игры (верхняя) */
.steam-card.wide .games-fan-img {
  right: -10%;
  bottom: -10%;
  height: 80%;
}

/* Пополнение (нижняя левая) */
.steam-card.half:nth-child(1) .games-fan-img {
  right: -30%; /* Умеренный сдвиг для кошелька */
  bottom: -15%;
  height: 100%;
}

/* Аккаунты (нижняя правая - ТВОЯ ПРОБЛЕМНАЯ) */
.steam-card.half:nth-child(2) .games-fan-img {
  right: -60% !important; /* Глубокий сдвиг вправо для флагов */
  bottom: -20% !important;
  height: 100% !important;
}

/* 5. Анимация при наведении */
.steam-card:hover .games-fan-img {
  transform: scale(1.1) translate(-15px, -10px);
}

/* 6. Текст (чистый, без фонов) */
.card-overlay {
  position: relative;
  z-index: 2;
  background: none !important;
  padding: 0 !important;
  margin: 0;
  pointer-events: none;
  text-align: left;
}

.card-title {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  display: block;
}

.card-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Контейнер */
.subs-container {
  padding: 15px;
}

/* Группы переключателей */
.selector-group {
  display: flex;
  width: 100%;
  background: #161b22;
  border-radius: 16px;
  padding: 4px; /* Внутренний отступ для эффекта вложенности */
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Элементы выбора */
.selector-item {
  flex: 1;
  padding: 14px 5px;
  text-align: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Эффект при наведении на неактивные */
.selector-item:hover:not(.active) {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.03);
}

/* --- ЦВЕТА СЕРВИСОВ --- */

/* Spotify: Зеленый неон */
.services .selector-item.active[data-service="spotify"] {
  background: #1db954;
  color: #fff;
  box-shadow: 0 0 20px rgba(29, 185, 84, 0.4);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* YouTube: Сочный красный */
.services .selector-item.active[data-service="youtube"] {
  background: #ff0000;
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

/* ChatGPT: Глубокий черный/антрацит */
.services .selector-item.active[data-service="chatgpt"] {
  background: #000;
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- ВТОРОЙ РЯД (СРОКИ) --- */
.durations .selector-item {
  font-size: 0.8rem;
}

.durations .selector-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Анимация появления контента */
#subs-products-display {
  animation: fadeIn 0.5s ease;
}

/* Поисковая строка в Избранном */
.search-wrapper {
  padding: 0 15px;
  margin-bottom: 15px;
}

.search-input {
  width: 100%;
  background: #161b22;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 15px;
  color: white;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.search-input:focus {
  border-color: #3498db;
}

/* Заглушка "Пусто" */
.empty-msg {
  text-align: center;
  padding: 50px 20px;
  color: #8e8e93;
  font-size: 16px;
  font-weight: 500;
}

.badge {
  position: absolute;
  top: 5px; /* Подгони под свои иконки */
  right: 5px;
  background: #ff3b30; /* Яркий красный как в iOS */
  color: white;
  font-size: 10px;
  font-weight: bold;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex; /* Скрыто, пока 0 товаров */
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #151a23; /* Чтобы отделялось от иконки */
  pointer-events: none;
  z-index: 10;
}

/* Сетка для избранного */
#favorites-display {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 1fr — это "умный" процент */
  gap: 10px;
  padding: 10px;
  width: 100%;
  overflow-x: hidden; /* Гарантирует отсутствие горизонтального скролла */
}

.fav-card {
  width: 100%;
  min-width: 0; /* Важно: предотвращает вылет за края */
}

.fav-card-image {
  aspect-ratio: 1 / 1; /* Квадрат */
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

/* Кнопки в углу */
.fav-card-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fav-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(4px);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Бейдж со скидкой снизу картинки */
.fav-card-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 10px;
  color: white;
}

/* Инфо под картинкой */
.fav-card-info {
  padding: 8px 4px;
}

.fav-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.fav-price {
  font-size: 16px;
  font-weight: bold;
  color: white;
}

.fav-discount {
  background: linear-gradient(45deg, #ff5f6d, #ffc371); /* Как на фото */
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  color: white;
}

.fav-name {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Обрезает текст многоточием, если он слишком длинный */
}

/* Центровка сообщения, когда список пуст */
.empty-msg {
  grid-column: 1 / -1; /* Растягиваем на обе колонки сетки */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  width: 100%;
  text-align: center;
  color: #8e8e93;
  font-size: 16px;
}

/* Кнопка удаления с анимацией */
.fav-delete-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(4px);
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fav-delete-btn:hover {
  background: #ff3b30;
  transform: rotate(90deg) scale(1.1);
}

.fav-delete-btn:active {
  transform: scale(0.9);
}

/* Анимация исчезновения карточки */
.fav-card.fade-out {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

#favorites-page {
  padding-bottom: calc(
    65px + env(safe-area-inset-bottom) + 15px + var(--keyboard-offset)
  ) !important;
  overflow-y: auto;
  height: 100%;
}

#cart-page {
  padding: 10px 15px
    calc(65px + env(safe-area-inset-bottom) + 28px + var(--keyboard-offset));
}

#cart-display {
  display: block;
  width: 100%;
}

.cart-page-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-worktime-note,
.cart-summary-card,
.cart-form-card,
.cart-mode-card,
.legal-page-shell {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.cart-worktime-note {
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.cart-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.cart-title {
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.cart-subtitle {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
}

.cart-hero-total {
  min-width: 122px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  text-align: right;
}

.cart-hero-total span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.56);
  margin-bottom: 6px;
}

.cart-hero-total strong {
  font-size: 24px;
  color: #fff;
  font-weight: 800;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-line-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 46px;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-line-image {
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.cart-line-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-line-main {
  min-width: 0;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
}

.cart-line-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.28;
}

.cart-line-meta {
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.64);
}

.cart-line-actions {
  margin-top: 6px;
}

.cart-line-side {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  min-width: 46px;
  padding-top: 0;
}

.cart-line-price-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: nowrap;
}

.cart-line-price {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  text-align: right;
}

.cart-line-discount {
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(45deg, #ff5f6d, #ffc371);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.cart-remove-inline-btn {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 122, 136, 0.22);
  border-radius: 10px;
  background: rgba(255, 90, 106, 0.14);
  color: #ff9ca6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.cart-remove-inline-btn:hover {
  background: rgba(255, 90, 106, 0.22);
  border-color: rgba(255, 122, 136, 0.36);
  color: #ffb2ba;
}

.cart-remove-inline-btn:active {
  transform: scale(0.96);
}

.cart-remove-side-btn {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: linear-gradient(135deg, #ff2d55, #c91531);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(255, 45, 85, 0.28);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.cart-remove-side-btn svg {
  width: 21px;
  height: 21px;
  display: block;
}

.cart-remove-side-btn:hover {
  background: linear-gradient(135deg, #ff4369, #dd183a);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 26px rgba(255, 45, 85, 0.36);
}

.cart-remove-side-btn:active {
  transform: scale(0.94);
  box-shadow: 0 6px 14px rgba(255, 45, 85, 0.24);
}

.cart-mode-card,
.cart-form-card,
.cart-summary-card {
  padding: 18px;
}

.cart-mode-title,
.cart-form-card-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.cart-form-card-note {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 14px;
}

.cart-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.cart-mode-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.cart-mode-btn.is-active {
  background: linear-gradient(135deg, #1b85ff, #4ea2ff);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 22px rgba(27, 133, 255, 0.22);
}

.cart-form-grid {
  display: grid;
  gap: 12px;
}

.cart-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-form-field span {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}

.cart-form-field input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(10, 13, 18, 0.55);
  color: #fff;
  padding: 14px 15px;
  font-size: 15px;
  outline: none;
}

.cart-form-field input:focus {
  border-color: rgba(78, 162, 255, 0.8);
}

.cart-form-field.is-invalid input {
  border-color: rgba(255, 99, 99, 0.9);
  box-shadow: 0 0 0 3px rgba(255, 99, 99, 0.14);
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.78);
}

.cart-summary-row strong {
  font-size: 24px;
  color: #fff;
  font-weight: 800;
}

.cart-agreement-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.76);
}

.cart-agreement-row input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: #1b85ff;
  flex-shrink: 0;
}

.cart-agreement-row a {
  color: #69b7ff;
  text-decoration: none;
}

.direct-checkout-agreement {
  margin-top: 12px;
  margin-bottom: 12px;
}

.checkout-invalid {
  border-color: rgba(255, 99, 99, 0.9) !important;
  box-shadow: 0 0 0 3px rgba(255, 99, 99, 0.14) !important;
}

.cart-pay-btn {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(135deg, #1b85ff, #4ea2ff);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(27, 133, 255, 0.22);
}

.cart-pay-btn:active {
  transform: scale(0.98);
}

.cart-pay-note {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.56);
}

.cart-payment-info-box {
  margin-bottom: 12px;
}

.cart-validation-note {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  color: #ff9ca5;
}

.payment-status-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.payment-status-card {
  position: relative;
  width: min(100%, 390px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 24px 18px 18px;
  background: #111827;
  color: #fff;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.payment-status-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.payment-status-mark {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.payment-status-mark.is-success {
  background: #16a34a;
}

.payment-status-mark.is-fail {
  background: #dc2626;
}

.payment-status-title {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 8px;
}

.payment-status-text {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 18px;
}

.payment-status-actions {
  display: grid;
  gap: 10px;
}

.payment-status-primary {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 15px 16px;
  background: linear-gradient(135deg, #1b85ff, #4ea2ff);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.payment-status-secondary {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.cart-empty-state {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.cart-empty-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.cart-empty-text {
  max-width: 320px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.55;
}

.cart-bump {
  animation: cartBadgeBump 0.35s ease;
}

.cart-pressed {
  animation: cartButtonPress 0.32s ease;
}

.buy-now-btn.is-in-cart,
.steam-add-cart-btn.is-in-cart {
  background: linear-gradient(135deg, #2f7dff, #1253c7);
  box-shadow: 0 10px 22px rgba(18, 83, 199, 0.28);
}

.legal-page-view {
  padding: 12px 15px
    calc(65px + env(safe-area-inset-bottom) + 28px + var(--keyboard-offset));
}

.legal-page-topbar {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.legal-back-btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.legal-page-shell {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 22px 22px 26px;
  overflow: visible;
}

.legal-page-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
}

.legal-page-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
}

.legal-lead {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(10, 13, 18, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-section h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.legal-section p {
  margin: 0;
}

.legal-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-note,
.legal-requisites {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(10, 13, 18, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-note {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-requisites {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@keyframes cartBadgeBump {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.16);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes cartButtonPress {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.94);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 420px) {
  .cart-line-card {
    grid-template-columns: 86px minmax(0, 1fr) 42px;
  }

  .cart-line-image {
    width: 86px;
    height: 86px;
  }

  .cart-line-side {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: stretch;
    justify-content: flex-start;
    width: 42px;
    min-width: 42px;
    padding-top: 0;
  }

  .cart-line-price {
    text-align: left;
  }

  .cart-line-price-row {
    justify-content: flex-start;
  }

  .cart-line-actions {
    margin-top: 4px;
  }

  .cart-hero {
    flex-direction: column;
  }

  .cart-hero-total {
    width: 100%;
    text-align: left;
  }

  .cart-mode-switch {
    grid-template-columns: 1fr;
  }
}

/* Контейнер для трех блоков */
.advantage-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 25px; /* Отступ перед будущими аккордеонами */
  width: 100%;
}

/* Сама карточка блока */
.adv-item {
  flex: 1;
  background: rgba(
    255,
    255,
    255,
    0.04
  ); /* Очень легкий фон в стиле твоего приложения */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 4px;
  text-align: center;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

/* Эффект при касании (для мобилок) */
.adv-item:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.08);
}

.adv-icon {
  font-size: 22px;
  margin-bottom: 6px;
}

.adv-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.adv-text {
  font-size: 9px; /* Маленький размер, чтобы текст не переносился криво */
  line-height: 1.2;
  color: #8e8e93; /* Твой цвет из хлебных крошек */
  font-weight: 400;
  padding: 0 2px;
}

.info-accordions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.accordion-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-header {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #efeff4;
}

.accordion-header:active {
  background: rgba(255, 255, 255, 0.03);
}

.arrow-icon {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #8e8e93;
}

/* Контент скрыт по умолчанию */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
  background: rgba(0, 0, 0, 0.1);
}

.accordion-content p {
  padding: 15px;
  font-size: 13px;
  line-height: 1.5;
  color: #b0b0b5;
  margin: 0;
}

/* Класс для открытого состояния */
.accordion-item.active .accordion-content {
  max-height: 200px; /* Достаточно для текста */
}

.accordion-item.active .arrow-icon {
  transform: rotate(180deg);
  color: #ffffff;
}

.accordion-item.active {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
}

/* Контейнер с отступами, чтобы ничего не липло */
.region-select-section {
  margin: 30px 0 120px 0; /* Большой отступ снизу, чтобы нижнее меню не мешало */
  padding: 0 5px;
}

.input-label {
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 12px;
  font-weight: 500;
  opacity: 0.9;
}

/* Выразительное поле выбора */
.select-trigger {
  background: rgba(255, 255, 255, 0.07);
  border: 2px solid rgba(255, 255, 255, 0.1); /* Сделали рамку толще */
  padding: 18px;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.select-trigger:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.1);
  border-color: #3498db;
}

/* Выпадающий список, оптимизированный под мобилки */
.custom-select {
  position: relative;
  width: 100%;
  margin-bottom: 5; /* Минимальный отступ от заголовка */
}

.select-options {
  position: absolute;
  /* Смещаем на 1px вверх, чтобы перекрыть нижнюю границу поля и избежать щелей */
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  background: #1c222b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: none;
  border-radius: 0 0 16px 16px;

  /* Важно: если в JS ты используешь .style.display = 'block', 
     то из CSS display: none лучше не убирать, но проверь логику открытия */
  display: none;

  z-index: 1000;
  max-height: 250px;
  overflow-y: auto;

  /* Плавный скролл для мобилок */
  -webkit-overflow-scrolling: touch;

  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  /* 1. Ограничиваем высоту более жестко */
  max-height: 40vh; /* Список не будет длиннее 40% высоты экрана */
  z-index: 10001; /* Должно быть больше, чем у #bottom-menu */

  /* Обязательно добавь это, чтобы список не обрезался краем родителя */
  overflow-y: auto;
}

/* Когда список открыт, у поля выбора убираем нижние углы для красоты */
.custom-select.active .select-trigger {
  border-radius: 16px 16px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Стилизация полосы прокрутки (для красоты) */
.select-options::-webkit-scrollbar {
  width: 6px;
}
.select-options::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.option {
  padding: 16px; /* Больше места для нажатия пальцем */
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.option:last-child {
  border: none;
}

.badge-hit {
  background: linear-gradient(90deg, #ff4b2b, #ff416c);
  color: white;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 800;
  text-transform: uppercase;
}

.content-section {
  padding-bottom: 100px !important; /* Дает место, чтобы прокрутить кнопку выше меню */
}

.region-select-section,
.info-accordions,
.payment-wrapper {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

.topup-container {
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

#steam-login {
  width: 100%;
  padding: 14px 45px 14px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  font-size: 16px;
  outline: none;
  transition: 0.3s;
}

#steam-login:focus {
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.08);
}

/* Иконка вопроса */
.info-icon {
  position: absolute;
  right: 12px;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.5);
}

/* Оверлей попапа (фон) */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 20000; /* Выше всего */
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Контент попапа */
.popup-content {
  background: #1c222b;
  width: 100%;
  max-width: 320px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  position: relative;
  animation: popupFade 0.3s ease;
}

@keyframes popupFade {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.popup-header h3 {
  margin: 0;
  color: #ef4444; /* Красный акцент для внимания */
  font-size: 18px;
}

.popup-body {
  margin: 15px 0;
  color: #ccc;
  font-size: 14px;
  line-height: 1.5;
}

.popup-close-btn {
  width: 100%;
  padding: 12px;
  background: #3b82f6;
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

/* Контейнер для инпута и выбора валюты */
.topup-input-container {
  display: flex;
  align-items: stretch; /* Растягиваем по высоте */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  position: relative;
  overflow: visible;
  height: 54px; /* Фиксируем высоту для аккуратности */
}

/* Поле ввода */
#amount-input {
  flex: 1;
  background: transparent; /* Убираем тот белый фон */
  border: none;
  padding: 0 15px;
  color: white;
  font-size: 18px;
  outline: none;
  width: 100%;
}

/* Убираем стрелки у числового поля */
#amount-input::-webkit-outer-spin-button,
#amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Выбор валюты внутри строки */
.currency-select {
  position: relative;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  min-width: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.currency-current {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #3b82f6;
  font-weight: 600;
  font-size: 18px;
}

/* Выпадающий список валют с флагами */
.currency-options {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #1c222b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  z-index: 2000;
  width: 160px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.currency-options div {
  padding: 12px 15px;
  color: white;
  font-size: 14px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.currency-options div:hover {
  background: rgba(59, 130, 246, 0.15);
}

/* Кнопки пресетов (быстрый выбор) */
.topup-currency-note {
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.1);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  line-height: 1.45;
}

.presets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.preset-btn {
  background: #252b36; /* Сделаем их чуть светлее фона страницы */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 5px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
}

.preset-btn:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

/* Итоговая сумма (К оплате: 5500 ₽) */
/* Итоговая сумма: Минимализм и Строгость */
.final-price-box {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05); /* Тонкая разделительная линия сверху */
  display: flex;
  flex-direction: column; /* Текст над суммой */
  gap: 5px;
}

.final-price-box span:first-child {
  color: #666; /* Приглушенный серый */
  font-size: 12px;
  text-transform: uppercase; /* Строгий капс */
  letter-spacing: 1.5px; /* Разрядка букв */
  font-weight: 600;
}

.total-wrapper {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

#total-cost {
  font-size: 38px; /* Очень крупно и чисто */
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.currency-symbol-final {
  font-size: 22px;
  color: #3b82f6; /* Акцентный синий только на символе */
  font-weight: 400;
}

/* Инпуты как в Steam */
.steam-input-dark {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 15px;
  color: #fff;
  font-size: 16px;
  outline: none;
}

/* Кнопки пресетов (Темные) */
.preset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px;
  color: #fff;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

/* Итоговый блок: Слева текст, справа сумма */
.stars-final-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1e232b;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.final-label {
  color: #666;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
}

/* Контейнер переключателя с отступами */
.tg-tabs-wrapper {
  padding: 0 15px;
  margin: 10px 0 20px 0;
}

.tg-tabs-nav {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  position: relative;
  padding: 4px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.tg-tab-item {
  flex: 1;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: color 0.3s ease;
}

.tg-tab-item.active {
  color: #fff;
}

/* Фон переключателя (Ползунок) */
.tg-tab-active-bg {
  position: absolute;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 11px;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s ease;
  z-index: 1;
  background: #3b82f6; /* Дефолт (Premium) — Синий */
}

/* Когда активны Звезды — меняем цвет ползунка на Желтый */
.tg-tabs-nav--single .tg-tab-active-bg {
  width: calc(100% - 8px);
}

.tg-tab-active-bg.stars-active {
  background: linear-gradient(135deg, #f7d853, #e1ac0e);
  box-shadow: 0 4px 12px rgba(225, 172, 14, 0.2);
}

/* 4 кнопки в один ряд */
/* Сетка для 4 кнопок в один ряд */
.presets-grid-stars {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important; /* Ровно 4 колонки */
  gap: 8px; /* Расстояние между кнопками */
  margin-top: 15px;
  width: 100%;
}

/* Сами кнопки (сделаем их компактнее, чтобы влезли в ряд) */
.preset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 2px; /* Уменьшил боковые отступы */
  text-align: center;
  font-size: 13px; /* Чуть меньше шрифт */
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}

.preset-btn:active {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(0.95);
}

/* Итоговый блок Звезд (Вертикальный стиль как в Steam) */
.stars-final-box {
  margin-top: 30px;
  padding: 20px;
  background: #1e232b;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column; /* Текст над суммой */
  align-items: flex-start; /* Выравнивание по левому краю */
  gap: 5px; /* Отступ между надписью и цифрами */
}

.final-label {
  color: #666;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.total-wrapper {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

#stars-total-cost {
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  line-height: 1; /* Чтобы не было лишних отступов */
}

.currency-symbol-final {
  font-size: 22px;
  color: #3b82f6;
  font-weight: 400;
}

/* Контейнер с иконкой СБП */
.payment-info-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1e232b; /* Темный фон */
  padding: 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 12px; /* Отступ до кнопки */
}

.sbp-icon {
  height: 22px;
  width: auto;
}

.payment-method-desc {
  font-size: 10px;
  color: #666;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.payment-method-desc span {
  display: block;
  color: #fff;
  text-transform: none;
  font-size: 13px;
  letter-spacing: 0;
  margin-top: 2px;
}

/* КНОПКА ОПЛАТЫ (Стиль Steam) */
.pay-button-steam {
  width: 100%;
  padding: 18px;
  /* Синий градиент как в твоем пополнении */
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.pay-button-steam:active {
  transform: scale(0.97);
  filter: brightness(1.1);
}

.custom-select-wrapper {
  position: relative;
  z-index: 9999; /* Очень важно, чтобы список был сверху всех */
}

.steam-input-dark {
  background: #1e232b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.select-options-card {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1e232b;
  border: 1px solid #3b82f6;
  border-radius: 12px;
  margin-top: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.option-item {
  padding: 15px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.option-item:hover {
  background: rgba(59, 130, 246, 0.1);
}

.select-arrow-custom {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #3b82f6;
  pointer-events: none;
}

/* Стиль для текста над кнопками */
.apple-selection-header {
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  color: #fff; /* Серый цвет как в системных настройках iOS */
  margin: 24px 0 12px;
  text-transform: none;
  letter-spacing: -0.1px;
  opacity: 0.9;
}

/* Контейнер для кнопок выбора валюты */
.apple-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 15px;
  margin: 20px 0;
}

/* Базовый стиль кнопки (таба) */
.apple-tab {
  flex: 1; /* Все кнопки одинаковой ширины */
  background: #1c1c1e; /* Темный фон как на макете */
  border: 1px solid #38383a;
  color: #ffffff;
  padding: 12px 5px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

/* Активная кнопка (выбранная валюта) */
.apple-tab.active {
  background: #007aff !important; /* Тот самый синий цвет */
  border-color: #007aff !important;
  box-shadow: 0 0 15px rgba(0, 122, 255, 0.3);
}

/* Эффект при нажатии */
.apple-tab:active {
  transform: scale(0.95);
  opacity: 0.8;
}

/* Кнопка */
.action-icon {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  width: 32px !important;
  height: 32px !important;
  background: rgba(0, 0, 0, 0.5) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10 !important;
}

/* Иконка внутри */
.action-icon svg {
  width: 18px !important;
  height: 18px !important;
  stroke: white !important;
  fill: none !important;
}

/* Красный цвет при нажатии (то, что делает твой скрипт) */
.action-icon.active-fav svg {
  fill: #ff3b30 !important;
  stroke: #ff3b30 !important;
}

/* Позиционирование сердечка внутри обертки картинки Apple */
.apple-card-img-wrapper .action-icon {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  width: 32px !important;
  height: 32px !important;
  background: rgba(0, 0, 0, 0.5) !important; /* Полупрозрачный круг */
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10 !important;
  cursor: pointer !important;
  border: none !important;
}

/* Стили самой иконки SVG */
.apple-card-img-wrapper .action-icon svg {
  width: 18px !important;
  height: 18px !important;
  stroke: #ffffff !important;
  stroke-width: 2.5px !important;
  fill: none !important; /* Пустое по умолчанию */
  display: block !important;
  transition: transform 0.2s ease;
}

/* Цвет когда товар в избранном (класс, который ставит твой скрипт) */
.apple-card-img-wrapper .action-icon.active-fav svg {
  fill: #ff3b30 !important;
  stroke: #ff3b30 !important;
}

/* Анимация при клике */
.apple-card-img-wrapper .action-icon:active svg {
  transform: scale(1.3);
}

@media (max-width: 360px) {
  .adv-title {
    font-size: 11px;
  }
  .adv-text {
    font-size: 8px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-height: 600px) {
  .steam-navigation {
    height: auto;
  }
  .steam-card {
    height: 200px;
  }
}

@keyframes slideDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- ОСНОВНОЙ ОВЕРЛЕЙ --- */
.product-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  z-index: 5000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; /* Чтобы не мешал кликам на главной, когда закрыт */
  display: none;
  z-index: 5000;
}

.product-modal-overlay.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

/* --- КОНТЕНТ ОКНА (КАРТОЧКА) --- */
.modal-content {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);

  width: 100%;
  max-width: 400px;
  max-height: 85vh; /* Ограничение высоты карточки */
  border-radius: 30px;
  position: relative;
  display: flex;
  flex-direction: column; /* Вертикальный стек */
  overflow: hidden; /* Обрезаем лишнее, чтобы работал внутренний скролл */

  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.product-modal-overlay.active .modal-content {
  transform: scale(1);
}

/* --- ЗОНА СКРОЛЛА (ВНУТРЕННЯЯ ОБЕРТКА) --- */
/* Оберни в HTML баннер и body в этот класс */
.modal-scroll-container {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 30px 10px 30px;

  /* Скрываем полосу прокрутки для чистоты дизайна */
  scrollbar-width: none; /* Firefox */
}

.modal-scroll-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* --- КАРТИНКА (ПАРЯЩАЯ) --- */
.modal-top-banner {
  flex-shrink: 0; /* Чтобы картинка не сжималась */
  width: 150px;
  height: 150px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-top-banner img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
  border-radius: 10px;
}

/* --- БЛОК ИНФОРМАЦИИ --- */
.modal-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.price-container {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 10px;
}

#modal-price {
  color: white;
  font-size: 32px;
  font-weight: 800;
}

.discount-badge {
  background: #ff3b30;
  color: white;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  display: none;
}

#modal-name {
  color: white;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 15px 0;
  text-align: center;
}

#modal-description {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 20px; /* Отступ до низа скролл-зоны */
}

/* --- НИЖНЯЯ ПАНЕЛЬ С КНОПКОЙ (ФИКСИРОВАННАЯ) --- */
.modal-fixed-footer {
  flex-shrink: 0;
  width: 100%;
  padding: 10px 30px 30px 30px;
  /* Градиент, чтобы текст мягко уходил под кнопку при скролле */
  background: linear-gradient(to top, rgba(20, 20, 20, 0.2), transparent);
}

.buy-now-btn {
  width: 100%;
  padding: 18px;
  border-radius: 15px;
  border: none;
  background: #007aff;
  color: white;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 122, 255, 0.3);
  transition: transform 0.2s ease;
}

.buy-now-btn:active {
  transform: scale(0.98);
}

/* --- КНОПКИ УПРАВЛЕНИЯ --- */
.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.modal-heart-inline {
  position: absolute;
  top: 25px;
  left: 25px;
  cursor: pointer;
  z-index: 10;
}

.modal-heart-inline svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 2;
  transition: all 0.3s ease;
}

.modal-heart-inline.active-fav svg {
  fill: #ff3b30;
  stroke: #ff3b30;
}

.read-more-btn {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
  transition: all 0.2s ease;
  width: 100%; /* Сделаем на всю ширину для удобства */
  text-align: center;
}

.read-more-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Специальный стиль для карточки с текстом */
.full-desc-card {
  max-height: 85vh !important;
  max-width: 420px !important;
  padding-bottom: 0 !important;
}

.full-desc-card .modal-scroll-container {
  -webkit-overflow-scrolling: touch; /* Плавный скролл на iPhone */
  padding-right: 15px; /* Небольшой отступ, чтобы текст не прилипал к краю */
}

/* Оформление самого текста описания */
#full-description-text {
  white-space: pre-wrap; /* Сохраняет абзацы и переносы из JS */
  word-wrap: break-word; /* Переносит длинные слова, чтобы не ломать верстку */
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.search-container-steam {
  margin-bottom: 20px;
}

.search-wrapper {
  position: relative;
  width: 100%;
}

#steam-search-input:focus {
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.08);
}

/* Поле ввода */
#steam-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  /* Оставляем большой отступ слева, чтобы текст не наезжал на иконку */
  padding: 12px 15px 12px 45px;
  color: white;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
}

/* Сама иконка лупы */
.search-wrapper .search-icon {
  position: absolute;
  /* ИЗМЕНИ ЗДЕСЬ: было 15px, поставил 20px, чтобы сдвинуть её правее */
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none; /* Чтобы клик по иконке проходил сквозь неё в инпут */
}

.promo-carousel {
  display: flex !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 10px;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.promo-carousel::-webkit-scrollbar {
  display: none;
}

.promo-banner {
  flex: 0 0 90%;
  height: 160px;
  border-radius: 20px;
  position: relative;
  scroll-snap-align: center;
  overflow: hidden;
  display: block;
  padding: 0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.promo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.promo-banner::after {
  display: none;
}

.promo-info {
  position: relative;
  z-index: 2;
}

.promo-title {
  font-size: 20px;
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
}

.promo-header-simple {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 15px 0 25px 0 !important;
  width: 100% !important;
}

.back-arrow-btn {
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  color: white !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  padding: 5px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.back-arrow-btn:hover {
  opacity: 1;
  transform: translateX(-2px);
}

.back-arrow-btn:active {
  opacity: 1;
  transform: scale(0.9);
  background: transparent !important;
}

#promo-view-title {
  display: inline-block !important;
  visibility: visible !important;
  color: #ffffff !important;
  opacity: 1 !important;
  z-index: 100;
}

#steam-promo-carousel {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
}

#steam-categories-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
}

.steam-category-section {
  margin-bottom: 0;
  padding: 0 15px 1px;
}

.steam-category-title {
  font-size: 22px;
  font-weight: bold;
  color: white;
  margin: 0 0 4px;
  line-height: 1.15;
}

.steam-cards-row {
  display: flex;
  overflow-x: auto; /* ?????????????????? ?????????????? ???????? */
  gap: 15px;
  padding-bottom: 1px;
  scrollbar-width: none; /* ???????????????? ?????????????????? ?? Firefox */
}

/* Фиксируем ширину карточки в ленте, чтобы они не сжимались */
.steam-cards-row .apple-card-mini {
  min-width: 160px;
  flex-shrink: 0;
}

.steam-cards-row::-webkit-scrollbar {
  display: none; /* Скрываем полосу прокрутки для красоты */
}

.steam-cards-row {
  -webkit-overflow-scrolling: touch; /* Плавный скролл на iPhone */
  scroll-snap-type: x mandatory;
}

.steam-cards-row .apple-card-mini {
  scroll-snap-align: start;
}

.steam-category-title {
  display: block !important;
}

/* Показываем ВСЕ заголовки внутри контейнера категорий Steam */
#steam-categories-container h2.steam-category-title {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: white !important;
  font-size: 22px !important;
  margin: 0 0 4px !important;
}

/* Основной оверлей с размытием */
/* Основной оверлей с размытием */
#steam-region-modal {
  display: none;
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000 !important;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

/* Контент модалки — оптимизирован по высоте */
#steam-region-modal .modal-content {
  background: linear-gradient(
    145deg,
    rgba(40, 40, 45, 0.98),
    rgba(20, 20, 25, 1)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  width: 92%;
  max-width: 360px;
  padding: 20px 15px; /* Уменьшили падинги */
  border-radius: 24px;
  text-align: center;
  transform: scale(0.9);
  animation: scaleUp 0.3s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Сетка кнопок — ТЕПЕРЬ В ДВЕ КОЛОНКИ */
.region-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Две колонки экономят кучу места */
  gap: 8px; /* Компактный зазор */
  margin-top: 15px;
}

/* Общий стиль кнопок регионов */
.region-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px; /* Уменьшили высоту кнопок */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: #fff;
  font-size: 14px; /* Чуть меньше шрифт */
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.region-btn:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.12);
}

.region-btn .flag {
  font-size: 18px;
  margin-right: 8px;
}

/* Кнопка "Нет аккаунта" — Растягиваем на две колонки */
.no-account-btn {
  grid-column: 1 / span 2; /* Занимает всю ширину внизу */
  margin-top: 8px;
  padding: 14px;
  background: linear-gradient(90deg, #ff3b30, #ff453a);
  border: none;
  border-radius: 14px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 59, 48, 0.2);
  cursor: pointer;
}

.no-account-btn:active {
  transform: scale(0.97);
  opacity: 0.9;
}

/* Анимации */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes scaleUp {
  to {
    transform: scale(1);
  }
}

/* Растягиваем 5-ю кнопку (Индию), чтобы не было дырки в сетке */
.region-buttons-grid .region-btn:nth-child(1) {
  grid-column: 1 / span 2;
  flex-direction: row; /* Возвращаем в ряд, если в сетке 2х2 делал колонкой */
  justify-content: center;
  gap: 10px;
}

/* Steam step 2 */

.game-page-price-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.steam-add-cart-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #1b85ff, #4ea2ff);
  color: #fff;
  box-shadow: 0 8px 20px rgba(27, 133, 255, 0.25);
}

#game-pg-dlc {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  overflow: visible !important;
  padding-bottom: 12px;
}

#game-pg-dlc .steam-game-card,
#game-pg-dlc .apple-card-mini {
  width: 100%;
  min-width: 0;
}

.delivery-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.delivery-modal-overlay.active {
  opacity: 1;
}

.delivery-modal-card {
  width: min(420px, 100%);
  background: #16181d;
  color: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.delivery-modal-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}

.delivery-modal-text {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  font-size: 14px;
}

.delivery-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.delivery-modal-btn {
  flex: 1;
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
}

.delivery-modal-btn.primary {
  background: linear-gradient(135deg, #1b85ff, #4ea2ff);
  color: #fff;
}

.delivery-modal-btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Step 3 fixes */
.steam-game-card .apple-card-img-wrapper {
  aspect-ratio: 16 / 9;
}

.steam-game-card .apple-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.delivery-modal-overlay {
  z-index: 20000 !important;
}

.delivery-modal-card {
  position: relative;
  z-index: 20001;
}

.steam-help-modal-card {
  width: min(440px, 100%);
}

.steam-help-modal-card .delivery-modal-text {
  font-size: 15px;
  line-height: 1.6;
}

/* Фикс размера карточек игр в категориях Steam на главной */
.steam-cards-row .apple-card-mini.steam-game-card {
  flex: 0 0 calc((100% - 15px) / 2);
  min-width: calc((100% - 15px) / 2);
  max-width: calc((100% - 15px) / 2);
}

.steam-cards-row .apple-card-mini.steam-game-card .apple-card-img-wrapper {
  width: 100%;
}

@media (max-width: 380px) {
  .steam-cards-row .apple-card-mini.steam-game-card {
    flex: 0 0 calc((100% - 12px) / 2);
    min-width: calc((100% - 12px) / 2);
    max-width: calc((100% - 12px) / 2);
  }
}

/* Desktop frame: on PC the mini-app stays phone-sized and centered. */
@media (min-width: 480px) {
  :root {
    --desktop-app-width: 430px;
  }

  html {
    min-height: 100%;
    overflow-x: hidden;
    background: #10141d;
  }

  body {
    width: var(--desktop-app-width);
    max-width: 100vw;
    min-height: 100vh;
    margin: 0 auto;
    overflow-x: hidden;
    background: #151a23;
    box-shadow:
      -22px 0 45px rgba(0, 0, 0, 0.12),
      22px 0 45px rgba(0, 0, 0, 0.12);
  }

  body > .container,
  body > .content-section {
    width: min(var(--desktop-app-width), 100vw) !important;
    max-width: var(--desktop-app-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .container,
  .content-section,
  .buttons,
  .contacts,
  .contacts-buttons,
  .products-grid,
  .selector-group,
  .topup-container,
  .payment-wrapper,
  .region-select-section,
  .info-accordions,
  .apple-wrapper,
  .apple-grid-new,
  .tg-grid-container,
  .steam-navigation,
  #steam-categories-container,
  #steam-games-display,
  #promo-games-grid,
  #favorites-display,
  #subs-products-display,
  #telegram-products-container,
  #apple-products-grid,
  #cart-display {
    max-width: 100% !important;
  }

  #bottom-menu {
    width: min(var(--desktop-app-width), 100vw) !important;
    max-width: var(--desktop-app-width) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
  }
}

.content-section {
  padding-bottom: calc(100px + var(--keyboard-offset)) !important;
}

.steam-input-dark,
.cart-form-field input {
  scroll-margin-block: 110px;
}

/* Final home page tuning */
html {
  background: #030812;
}

body {
  background-color: #030812;
  background-image:
    radial-gradient(720px 360px at 50% 0, rgba(28, 80, 170, 0.24), transparent 72%),
    linear-gradient(180deg, #050b17 0, #030812 520px, #030812 100%);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100vh, 100% 100%;
  background-attachment: fixed, fixed;
}

.home-topbar {
  grid-template-columns: auto minmax(76px, 1fr) minmax(0, auto);
  gap: 8px;
}

.home-actions-left.top-widgets {
  gap: 8px;
}

.home-icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 16px;
}

.home-icon-btn i {
  font-size: 19px;
}

.logo.home-logo {
  width: 112px;
}

.home-profile-btn {
  justify-self: end;
  min-width: 0;
  max-width: 104px;
  height: 46px;
  border: 0;
  border-radius: 16px;
  padding: 0 9px 0 7px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(15, 25, 48, 0.96), rgba(5, 12, 27, 0.94)),
    #071020;
  box-shadow:
    inset 0 0 0 1px rgba(156, 180, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 28px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.24s ease,
    filter 0.24s ease,
    box-shadow 0.24s ease;
}

.home-profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.home-profile-avatar i {
  font-size: 15px;
  color: #fff;
}

.home-profile-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.home-profile-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.home-profile-btn:active {
  transform: scale(0.98);
}

.home-card {
  min-height: 86px;
}

.home-card-copy {
  gap: 4px;
}

.home-card-tags {
  display: none !important;
}

.home-card-subtitle {
  max-width: 100%;
}

.home-socials {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px;
}

.home-social-btn {
  min-width: 0;
  padding: 11px;
  gap: 9px;
}

.home-social-icon,
.telegram-social-icon,
.vk-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-social-copy {
  overflow: hidden;
}

.home-social-copy span,
.home-social-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .home-topbar {
    gap: 8px;
  }

  .home-profile-btn {
    max-width: 92px;
    height: 46px;
    border-radius: 16px;
    padding: 0 9px 0 7px;
  }

  .home-profile-avatar {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .home-profile-name {
    font-size: 12px;
  }

  .home-card {
    min-height: 82px;
  }

  .home-social-btn {
    min-height: 58px;
    padding: 10px;
    gap: 7px;
  }

  .home-social-icon,
  .telegram-social-icon,
  .vk-social-icon {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 340px) {
  .home-profile-btn {
    max-width: 72px;
  }

  .home-profile-avatar {
    display: none;
  }

  .logo.home-logo {
    width: 102px;
  }

  .home-icon-btn {
    width: 42px;
    height: 42px;
  }
}

@media (min-width: 480px) {
  :root {
    --desktop-app-width: 390px;
  }

  html,
  body {
    background-color: #030812;
  }

  body {
    width: min(var(--desktop-app-width), 100vw) !important;
    max-width: 100vw !important;
    background-image:
      radial-gradient(720px 360px at 50% 0, rgba(28, 80, 170, 0.24), transparent 72%),
      linear-gradient(180deg, #050b17 0, #030812 520px, #030812 100%);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: var(--desktop-app-width) 100vh, var(--desktop-app-width) 100%;
    background-attachment: fixed, fixed;
  }
}

/* Home header layout: fixed logo, fixed actions, flexible profile */
:root {
  --app-min-width: 360px;
}

html,
body {
  min-width: var(--app-min-width);
}

.container {
  min-width: var(--app-min-width);
}

.home-topbar {
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 8px;
  justify-content: stretch;
}

.logo.home-logo {
  grid-column: 1;
  justify-self: start;
  width: 108px;
  flex: 0 0 auto;
}

.home-actions-left.top-widgets {
  grid-column: 2;
  justify-self: start;
  flex: 0 0 auto;
  gap: 8px;
}

.home-profile-btn {
  grid-column: 3;
  justify-self: stretch;
  width: 100%;
  max-width: none;
  min-width: 0;
}

.home-profile-name {
  text-align: left;
}

.home-card {
  min-height: 118px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.home-card-arrow {
  width: 34px;
  height: 34px;
  opacity: 0.72;
  background: rgba(255, 255, 255, 0.045);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.16);
}

.home-card-arrow::before {
  width: 8px;
  height: 8px;
  border-top-width: 2px;
  border-right-width: 2px;
  opacity: 0.82;
}

@media (max-width: 380px) {
  .logo.home-logo {
    width: 96px;
  }

  .home-icon-btn {
    width: 42px;
    height: 42px;
  }

  .home-profile-btn {
    height: 42px;
    padding-right: 8px;
  }

  .home-profile-avatar {
    width: 28px;
    height: 28px;
  }

  .home-card {
    min-height: 110px;
    padding-top: 16px;
    padding-bottom: 16px;
  }
}

@media (min-width: 480px) {
  :root {
    --desktop-app-width: 430px;
  }
}

/* Section card background art */
.home-card {
  overflow: hidden;
  isolation: isolate;
}

.home-card::before {
  display: none;
}

.home-section-art {
  position: absolute;
  z-index: 0;
  right: 28px;
  top: 50%;
  width: 144px;
  height: 144px;
  object-fit: contain;
  transform: translateY(-50%) scale(1);
  opacity: 0.82;
  filter: saturate(1.08) contrast(1.04) brightness(0.86);
  pointer-events: none;
  transition:
    transform 0.46s ease,
    opacity 0.46s ease,
    filter 0.46s ease;
}

.home-card:hover .home-section-art {
  transform: translateY(-50%) scale(1.035);
  opacity: 0.92;
  filter: saturate(1.12) contrast(1.06) brightness(0.96);
}

.home-card:active .home-section-art {
  transform: translateY(-50%) scale(1.04);
}

.home-card-accent,
.home-card-content,
.home-card-arrow {
  z-index: 3;
}

.home-card-content {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
}

.home-card-title,
.home-card-subtitle {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.48);
}

.home-card-subtitle {
  font-size: 9.5px;
  line-height: 1.35;
}

.home-card-steam .home-section-art {
  right: 30px;
  width: 128px;
  height: 128px;
}

.home-card-subscriptions .home-section-art {
  right: 30px;
  width: 124px;
  height: 124px;
  opacity: 0.84;
}

.home-card-apple .home-section-art {
  right: 30px;
  width: 122px;
  height: 122px;
  opacity: 0.84;
}

.home-card-support .home-section-art {
  right: 32px;
  width: 112px;
  height: 112px;
  opacity: 0.82;
}

.home-card-steam {
  background:
    radial-gradient(circle at 84% 50%, rgba(52, 132, 255, 0.22), transparent 46%),
    linear-gradient(135deg, rgba(16, 39, 75, 0.98), rgba(6, 13, 31, 0.98)),
    #081426;
}

.home-card-subscriptions {
  background:
    radial-gradient(circle at 84% 50%, rgba(55, 223, 130, 0.2), transparent 46%),
    linear-gradient(135deg, rgba(11, 59, 44, 0.98), rgba(7, 18, 28, 0.98)),
    #071820;
}

.home-card-apple {
  background:
    radial-gradient(circle at 84% 50%, rgba(238, 91, 255, 0.22), transparent 46%),
    linear-gradient(135deg, rgba(63, 20, 67, 0.98), rgba(12, 11, 30, 0.98)),
    #160f25;
}

.home-card-support {
  background:
    radial-gradient(circle at 84% 50%, rgba(255, 200, 90, 0.18), transparent 46%),
    linear-gradient(135deg, rgba(68, 49, 21, 0.98), rgba(13, 15, 28, 0.98)),
    #171421;
}

@media (max-width: 380px) {
  .home-section-art {
    right: 20px;
    width: 98px;
    height: 98px;
    opacity: 0.78;
  }

  .home-card-steam .home-section-art,
  .home-card-subscriptions .home-section-art,
  .home-card-apple .home-section-art,
  .home-card-support .home-section-art {
    right: 20px;
    width: 98px;
    height: 98px;
  }

  .home-card-subtitle {
    font-size: 8.5px;
  }
}

/* Bottom navigation refresh */
#bottom-menu.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 76px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(18, 29, 52, 0.9), rgba(7, 12, 24, 0.96)),
    rgba(8, 13, 25, 0.94);
  border-top: 1px solid rgba(110, 178, 255, 0.18);
  box-shadow:
    0 -18px 40px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#bottom-menu .nav-item-new {
  appearance: none;
  border: 0;
  font: inherit;
  position: relative;
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  height: 58px;
  padding: 6px 2px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: rgba(224, 235, 255, 0.62);
  background: transparent;
  border-radius: 18px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.22s ease,
    color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

#bottom-menu .nav-item-new:hover {
  color: #fff;
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

#bottom-menu .nav-item-new:active {
  transform: translateY(0) scale(0.96);
  color: #4aa3ff;
}

#bottom-menu .nav-icon-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition:
    background 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

#bottom-menu .nav-icon-wrap i {
  font-size: 15px;
  line-height: 1;
}

#bottom-menu .nav-item-new:hover .nav-icon-wrap {
  background: rgba(74, 163, 255, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(74, 163, 255, 0.22),
    0 8px 18px rgba(74, 163, 255, 0.12);
}

#bottom-menu .nav-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9.5px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}

#bottom-menu .badge {
  position: absolute;
  top: -6px;
  right: -7px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4d5f, #ff2d55);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  box-shadow:
    0 6px 14px rgba(255, 45, 85, 0.32),
    0 0 0 2px rgba(8, 13, 25, 0.96);
}

#bottom-menu .nav-item-disabled {
  opacity: 0.52;
  cursor: default;
}

#bottom-menu .nav-item-disabled:hover,
#bottom-menu .nav-item-disabled:active {
  color: rgba(224, 235, 255, 0.62);
  transform: none;
  background: transparent;
  box-shadow: none;
}

#bottom-menu .nav-item-disabled:hover .nav-icon-wrap {
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

@media (max-width: 380px) {
  #bottom-menu.bottom-nav {
    gap: 4px;
    padding-left: 7px;
    padding-right: 7px;
  }

  #bottom-menu .nav-item-new {
    height: 56px;
  }

  #bottom-menu .nav-icon-wrap {
    width: 30px;
    height: 30px;
    border-radius: 13px;
  }

  #bottom-menu .nav-label {
    font-size: 8.5px;
  }
}

@media (min-width: 480px) {
  #bottom-menu.bottom-nav {
    width: min(var(--desktop-app-width), 100vw) !important;
    max-width: var(--desktop-app-width) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
  }
}

/* Apple page refresh */
#apple-page .apple-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 4px 15px calc(96px + env(safe-area-inset-bottom));
}

#apple-page .apple-store-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(221, 154, 255, 0.2);
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 87, 221, 0.26), transparent 38%),
    radial-gradient(circle at 8% 84%, rgba(112, 75, 255, 0.24), transparent 42%),
    linear-gradient(135deg, rgba(44, 19, 64, 0.96), rgba(11, 13, 30, 0.98));
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#apple-page .apple-store-hero::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -70px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  filter: blur(2px);
}

#apple-page .apple-store-mark {
  position: relative;
  z-index: 1;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 19px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, #894dff, #ff4fd8);
  box-shadow:
    0 12px 24px rgba(188, 77, 255, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

#apple-page .apple-store-mark i {
  font-size: 29px;
  line-height: 1;
}

#apple-page .apple-store-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

#apple-page .apple-store-eyebrow {
  margin-bottom: 3px;
  color: rgba(232, 214, 255, 0.78);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

#apple-page .apple-store-title {
  color: #fff;
  font-size: 29px;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

#apple-page .apple-store-subtitle {
  margin-top: 7px;
  max-width: 240px;
  color: rgba(233, 237, 255, 0.7);
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 600;
}

#apple-page .apple-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 14px 0 12px;
  padding: 4px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.055);
}

#apple-page .apple-tab {
  appearance: none;
  min-width: 0;
  min-height: 48px;
  padding: 7px 8px;
  border: 0;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: rgba(234, 239, 255, 0.66);
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

#apple-page .apple-tab span {
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
}

#apple-page .apple-tab small {
  color: currentColor;
  opacity: 0.58;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
}

#apple-page .apple-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #8659ff, #0a84ff);
  box-shadow:
    0 10px 24px rgba(77, 130, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

#apple-page .apple-tab:active {
  transform: scale(0.96);
}

#apple-page .apple-store-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(235, 241, 255, 0.78);
  background: rgba(255, 255, 255, 0.055);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 650;
}

#apple-page .apple-store-note i {
  color: #c18dff;
}

#apple-page .apple-grid-new {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px;
  padding: 0;
}

#apple-page .apple-gift-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 214px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 90% 4%, rgba(255, 99, 220, 0.2), transparent 38%),
    radial-gradient(circle at 10% 100%, rgba(79, 132, 255, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(23, 22, 45, 0.97), rgba(10, 13, 27, 0.98));
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

#apple-page .apple-gift-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(120deg, transparent 12%, rgba(255, 255, 255, 0.08), transparent 44%);
  opacity: 0;
  transform: translateX(-32%);
  transition:
    opacity 0.22s ease,
    transform 0.45s ease;
}

#apple-page .apple-gift-card:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 128, 255, 0.25);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(154, 99, 255, 0.08);
}

#apple-page .apple-gift-card:hover::before {
  opacity: 1;
  transform: translateX(20%);
}

#apple-page .apple-gift-topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#apple-page .apple-gift-region {
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 38px);
  min-height: 27px;
  padding: 0 9px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
}

#apple-page .apple-gift-fav {
  position: static !important;
  flex: 0 0 30px !important;
  width: 30px !important;
  height: 30px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
  transition:
    transform 0.2s ease,
    background 0.2s ease !important;
}

#apple-page .apple-gift-fav:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12) !important;
}

#apple-page .apple-gift-fav svg {
  width: 16px !important;
  height: 16px !important;
}

#apple-page .apple-gift-visual {
  position: relative;
  z-index: 1;
  height: 72px;
  margin: 3px -4px 5px 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

#apple-page .apple-gift-visual img {
  display: block;
  max-width: 94px;
  max-height: 72px;
  object-fit: contain;
  opacity: 0.93;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.28));
}

#apple-page .apple-card-info {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 4px;
  padding: 0;
}

#apple-page .apple-gift-type {
  color: rgba(224, 231, 255, 0.62);
  font-size: 10px;
  line-height: 1.1;
  font-weight: 850;
}

#apple-page .apple-gift-nominal {
  margin: 0;
  color: #fff;
  font-size: 23px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

#apple-page .apple-gift-caption {
  min-height: 24px;
  color: rgba(231, 237, 255, 0.58);
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 650;
}

#apple-page .apple-card-price-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-top: 3px;
}

#apple-page .apple-card-price-row .price {
  color: #fff;
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
}

#apple-page .apple-gift-cart {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 38px;
  margin-top: auto;
  padding: 0 10px;
  border: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  font: inherit;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

#apple-page .apple-gift-cart:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.13);
}

#apple-page .apple-gift-cart:active {
  transform: scale(0.97);
}

#apple-page .apple-gift-cart.is-in-cart {
  background: linear-gradient(135deg, #1fbf75, #0d8fd8);
  box-shadow:
    0 10px 22px rgba(13, 143, 216, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#apple-page .empty-msg {
  grid-column: 1 / -1;
  padding: 22px 14px;
  border-radius: 18px;
  color: rgba(235, 241, 255, 0.68);
  background: rgba(255, 255, 255, 0.055);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 380px) {
  #apple-page .apple-wrapper {
    padding-left: 12px;
    padding-right: 12px;
  }

  #apple-page .apple-store-hero {
    min-height: 104px;
    padding: 16px 14px;
    gap: 12px;
  }

  #apple-page .apple-store-mark {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
    border-radius: 17px;
  }

  #apple-page .apple-store-title {
    font-size: 25px;
  }

  #apple-page .apple-store-subtitle {
    font-size: 11.5px;
  }

  #apple-page .apple-grid-new {
    gap: 10px;
  }

  #apple-page .apple-gift-card {
    min-height: 202px;
    padding: 10px;
    border-radius: 18px;
  }

  #apple-page .apple-gift-visual {
    height: 62px;
  }

  #apple-page .apple-gift-visual img {
    max-width: 82px;
    max-height: 62px;
  }

  #apple-page .apple-gift-nominal {
    font-size: 20px;
  }

  #apple-page .apple-gift-cart {
    min-height: 36px;
    font-size: 11px;
  }
}

/* Apple gift cards with full artwork */
.content-section > .breadcrumbs {
  margin-top: 0 !important;
}

body > .content-section {
  padding-top: 10px !important;
}

/* Unified subscriptions page */
#spotify-page {
  background:
    radial-gradient(520px 260px at 50% 0, rgba(55, 132, 255, 0.22), transparent 72%),
    linear-gradient(180deg, #050b17 0, #030812 100%) !important;
}

.subs-page-shell {
  width: min(100%, 720px);
  min-width: 320px;
  margin: 0 auto;
  padding: 14px 14px 110px;
  box-sizing: border-box;
}

.subs-hero-card {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  min-height: 132px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(16, 28, 55, 0.94), rgba(6, 12, 27, 0.98)),
    radial-gradient(240px 120px at 86% 24%, rgba(34, 197, 94, 0.25), transparent 72%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.subs-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-120%);
  animation: subsHeroSweep 6s ease-in-out infinite;
}

.subs-hero-kicker {
  margin-bottom: 8px;
  color: #72d4ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subs-hero-card h1 {
  display: block !important;
  margin: 0;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
}

.subs-hero-card p {
  max-width: 360px;
  margin: 12px 0 0;
  color: rgba(222, 233, 255, 0.72);
  font-size: 14px;
  line-height: 1.45;
}

.subs-hero-orbit {
  position: relative;
  flex: 0 0 126px;
  min-height: 100px;
}

.subs-hero-orbit span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 0;
  color: #fff;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  animation: subsFloat 4.5s ease-in-out infinite;
}

.subs-hero-orbit span:nth-child(1) {
  left: 0;
  top: 12px;
}

.subs-hero-orbit span:nth-child(2) {
  right: 8px;
  top: 0;
  animation-delay: -0.7s;
}

.subs-hero-orbit span:nth-child(3) {
  left: 14px;
  bottom: 4px;
  animation-delay: -1.2s;
}

.subs-hero-orbit span:nth-child(4) {
  right: 0;
  bottom: -2px;
  animation-delay: -1.8s;
}

.subs-hero-orbit img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.38));
}

.subs-orbit-chatgpt img {
  filter: invert(1) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.38));
}

.subs-service-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 12px;
}

.subs-service-tab,
.subs-duration-tab {
  min-width: 0;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.72);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.subs-service-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 11px;
  border-radius: 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.subs-service-tab:hover,
.subs-duration-tab:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.09);
}

.subs-service-tab.is-active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.subs-service-icon {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: transparent;
  font-size: 0;
}

.subs-tone-spotify {
  box-shadow: none;
}

.subs-tone-telegram {
  box-shadow: none;
}

.subs-tone-youtube {
  box-shadow: none;
}

.subs-tone-chatgpt {
  box-shadow: none;
}

.subs-service-icon img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.subs-tone-chatgpt img {
  filter: invert(1);
}

.subs-service-tab strong {
  display: block;
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subs-service-tab small {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subs-duration-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.subs-duration-tabs::-webkit-scrollbar {
  display: none;
}

.subs-duration-tab {
  flex: 1 0 auto;
  min-width: 86px;
  padding: 12px 14px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 800;
}

.subs-duration-tab.is-active {
  color: #041021;
  background: linear-gradient(135deg, #f5fbff, #85d9ff);
  box-shadow: 0 14px 28px rgba(52, 163, 255, 0.22);
}

.subs-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(254px, 1fr));
  gap: 14px;
  animation: fadeIn 0.28s ease;
}

.subs-product-card {
  position: relative;
  overflow: hidden;
  min-height: 336px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    #071020;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  cursor: default;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.subs-product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.34);
}

.subs-product-glow {
  position: absolute;
  inset: auto -24% 34% auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  filter: blur(26px);
  opacity: 0.46;
  pointer-events: none;
}

.subs-product-card--spotify .subs-product-glow {
  background: rgba(32, 228, 108, 0.72);
}

.subs-product-card--telegram .subs-product-glow {
  background: rgba(74, 183, 255, 0.72);
}

.subs-product-card--youtube .subs-product-glow {
  background: rgba(255, 68, 68, 0.68);
}

.subs-product-card--chatgpt .subs-product-glow {
  background: rgba(119, 255, 215, 0.48);
}

.subs-product-media {
  position: relative;
  height: 154px;
  margin: 12px 12px 0;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
}

.subs-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.25s ease;
}

.subs-product-card:hover .subs-product-media img {
  transform: scale(1.055);
}

.subs-product-body {
  position: relative;
  z-index: 1;
  padding: 14px;
}

.subs-product-topline,
.subs-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.subs-product-service,
.subs-product-period {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.subs-product-service img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.subs-product-card--chatgpt .subs-product-service img {
  filter: invert(1);
}

.subs-product-period {
  color: #9edfff;
}

.subs-product-card h3 {
  min-height: 44px;
  margin: 12px 0 6px;
  color: #fff;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0;
}

.subs-product-card p {
  min-height: 38px;
  margin: 0;
  color: rgba(229, 238, 255, 0.58);
  font-size: 13px;
  line-height: 1.45;
}

.subs-benefit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 16px;
}

.subs-benefit-row span {
  padding: 6px 8px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.055);
  font-size: 11px;
  font-weight: 700;
}

.subs-price-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.subs-price-block span {
  color: rgba(255, 255, 255, 0.46);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.subs-price-block strong {
  color: #fff;
  font-size: 21px;
  line-height: 1;
}

.subs-price-block em {
  padding: 3px 7px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff4f7b, #ffb24a);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.subs-product-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.subs-card-action {
  position: static !important;
  top: auto !important;
  right: auto !important;
  z-index: 1 !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px);
}

.subs-card-action i {
  font-size: 17px;
  transition: transform 0.18s ease, color 0.18s ease;
}

.subs-card-action:hover i {
  transform: scale(1.08);
}

.subs-card-action.active-fav i {
  color: #ff3b5f;
}

.subs-card-action.active-cart,
.subs-card-action.is-in-cart {
  color: #041021;
  background: linear-gradient(135deg, #ffffff, #85d9ff) !important;
}

.subs-empty-state {
  grid-column: 1 / -1;
  padding: 46px 18px;
  border-radius: 22px;
  color: rgba(255, 255, 255, 0.58);
  text-align: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes subsFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@keyframes subsHeroSweep {
  0%,
  60% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

@media (max-width: 620px) {
  .subs-page-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .subs-hero-card {
    min-height: 126px;
    padding: 18px;
  }

  .subs-hero-card h1 {
    font-size: 30px;
  }

  .subs-hero-card p {
    font-size: 13px;
  }

  .subs-hero-orbit {
    flex-basis: 92px;
  }

  .subs-hero-orbit span {
    width: 34px;
    height: 34px;
    border-radius: 0;
  }

  .subs-service-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subs-service-tab {
    min-height: 66px;
  }

  .subs-products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .subs-hero-orbit {
    display: none;
  }

  .subs-service-tab {
    gap: 8px;
    padding: 9px;
  }

  .subs-service-icon {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
  }

  .subs-product-card h3 {
    font-size: 18px;
  }
}

#apple-page .apple-gift-card {
  min-height: 304px;
  cursor: default;
}

#apple-page .apple-gift-card:hover {
  transform: translateY(-2px);
}

#apple-page .apple-gift-visual {
  height: 156px;
  justify-content: center;
  margin: 10px 0 13px;
}

#apple-page .apple-gift-visual img {
  width: auto;
  height: 100%;
  max-width: 132px;
  max-height: 156px;
  border-radius: 16px;
  object-fit: contain;
  opacity: 1;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.36));
  transition:
    transform 0.24s ease,
    filter 0.24s ease;
}

#apple-page .apple-gift-card:hover .apple-gift-visual img {
  transform: scale(1.025);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.42));
}

#apple-page .apple-card-info {
  gap: 8px;
}

#apple-page .apple-gift-nominal {
  font-size: 19px;
}

#apple-page .apple-card-price-row {
  margin-top: 2px;
}

#apple-page .apple-card-price-row .price {
  font-size: 20px;
}

#apple-page .apple-gift-cart {
  margin-top: 17px !important;
}

@media (max-width: 380px) {
  #apple-page .apple-gift-card {
    min-height: 286px;
  }

  #apple-page .apple-gift-visual {
    height: 138px;
    margin-top: 9px;
    margin-bottom: 12px;
  }

  #apple-page .apple-gift-visual img {
    max-width: 116px;
    max-height: 138px;
  }

  #apple-page .apple-gift-nominal {
    font-size: 17px;
  }

  #apple-page .apple-card-price-row .price {
    font-size: 18px;
  }
}

/* Refined media cards */
#apple-page .apple-gift-card {
  border-radius: 28px;
}

#apple-page .apple-gift-visual {
  height: 168px;
  padding: 5px;
  border: 1px solid rgba(198, 116, 255, 0.62);
  border-radius: 24px;
  background:
    radial-gradient(circle at 80% 10%, rgba(212, 120, 255, 0.18), transparent 46%),
    rgba(255, 255, 255, 0.035);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    0 12px 26px rgba(82, 40, 140, 0.2);
  overflow: hidden;
}

#apple-page .apple-gift-visual img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 19px;
  object-fit: contain;
}

.subs-product-card--spotify {
  --subs-card-accent: rgba(39, 236, 94, 0.66);
}

.subs-product-card--telegram {
  --subs-card-accent: rgba(47, 171, 255, 0.66);
}

.subs-product-card--youtube {
  --subs-card-accent: rgba(255, 52, 52, 0.66);
}

.subs-product-card--chatgpt {
  --subs-card-accent: rgba(39, 235, 184, 0.62);
}

.subs-product-media {
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  border: 1px solid var(--subs-card-accent, rgba(255, 255, 255, 0.14));
  background: rgba(255, 255, 255, 0.035);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 14px 30px rgba(0, 0, 0, 0.24);
}

.subs-product-media img {
  border-radius: 23px;
  object-fit: cover;
}

.subs-product-card {
  min-height: 0;
}

.fav-card {
  cursor: default;
}

.fav-card-actions {
  flex-direction: row;
  align-items: center;
}

.fav-cart-btn,
.fav-delete-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.fav-cart-btn {
  background: rgba(28, 137, 255, 0.84);
  box-shadow: 0 10px 22px rgba(28, 137, 255, 0.24);
}

.fav-cart-btn:hover {
  transform: translateY(-1px);
  background: rgba(46, 155, 255, 0.94);
}

.fav-cart-btn.is-in-cart,
.fav-cart-btn.active-cart {
  color: #071020;
  background: linear-gradient(135deg, #f7fbff, #7fd8ff);
}

.fav-delete-btn {
  background: rgba(255, 59, 48, 0.84);
  box-shadow: 0 10px 22px rgba(255, 59, 48, 0.22);
}

.fav-delete-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 76, 70, 0.95);
}

@media (max-width: 380px) {
  #apple-page .apple-gift-visual {
    height: 150px;
    border-radius: 22px;
  }

  #apple-page .apple-gift-visual img {
    border-radius: 17px;
  }

  .subs-product-media {
    border-radius: 22px;
  }

  .subs-product-media img {
    border-radius: 21px;
  }
}

/* Compact subscription product cards */
.subs-products-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}

.subs-product-card {
  display: grid;
  grid-template-columns: minmax(126px, 38%) minmax(0, 1fr);
  align-items: stretch;
  min-height: 0;
  padding: 10px;
  border-radius: 22px;
}

.subs-product-glow {
  inset: auto -18% -18% auto;
  width: 150px;
  height: 150px;
  opacity: 0.34;
}

.subs-product-media {
  align-self: stretch;
  height: auto;
  min-height: 154px;
  margin: 0;
  border-radius: 18px;
}

.subs-product-media img {
  border-radius: 17px;
}

.subs-product-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 3px 0 3px 12px;
}

.subs-product-topline {
  align-items: flex-start;
}

.subs-product-service {
  max-width: 112px;
  height: 25px;
  padding: 0 8px;
  gap: 5px;
  font-size: 11px;
}

.subs-product-service img {
  width: 15px;
  height: 15px;
}

.subs-product-actions {
  gap: 6px;
}

.subs-card-action {
  width: 34px !important;
  height: 34px !important;
  border-radius: 12px !important;
}

.subs-card-action i {
  font-size: 15px;
}

.subs-product-card h3 {
  min-height: 0;
  margin: 9px 0 5px;
  font-size: 17px;
  line-height: 1.14;
}

.subs-product-card p {
  min-height: 0;
  font-size: 12px;
  line-height: 1.35;
}

.subs-benefit-row {
  gap: 4px;
  margin: 9px 0 auto;
}

.subs-benefit-row span {
  padding: 4px 6px;
  font-size: 10px;
}

.subs-product-footer {
  margin-top: 10px;
}

.subs-price-block {
  flex-wrap: wrap;
  gap: 5px 7px;
}

.subs-price-block span {
  width: 100%;
  font-size: 10px;
}

.subs-price-block strong {
  font-size: 20px;
}

@media (max-width: 430px) {
  .subs-products-grid {
    grid-template-columns: 1fr;
  }

  .subs-product-card {
    grid-template-columns: 118px minmax(0, 1fr);
    padding: 9px;
    border-radius: 20px;
  }

  .subs-product-media {
    min-height: 140px;
    border-radius: 17px;
  }

  .subs-product-media img {
    border-radius: 16px;
  }

  .subs-product-body {
    padding-left: 10px;
  }
}

@media (max-width: 360px) {
  .subs-product-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .subs-product-media {
    min-height: 124px;
  }

  .subs-product-service {
    max-width: 82px;
    height: 23px;
    padding: 0 7px;
    font-size: 10px;
  }

  .subs-card-action {
    width: 31px !important;
    height: 31px !important;
  }

  .subs-product-card h3 {
    margin-top: 7px;
    font-size: 15px;
  }

  .subs-product-card p {
    font-size: 11px;
    line-height: 1.3;
  }

  .subs-benefit-row {
    display: none;
  }

  .subs-price-block strong {
    font-size: 18px;
  }
}

/* Compact horizontal subscriptions */
.subs-products-grid {
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 12px;
}

.subs-product-card {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  min-height: 0;
  padding: 10px 12px 10px 10px;
  border-radius: 22px;
}

.subs-product-media {
  width: 100%;
  height: 168px;
  min-height: 0;
  margin: 0;
  border-radius: 18px;
}

.subs-product-media img {
  width: 100%;
  height: 100%;
  border-radius: 17px;
  object-fit: cover;
  object-position: center center;
}

.subs-product-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 3px 0;
}

.subs-product-topline {
  align-items: center;
  min-height: 38px;
  padding-right: 0;
}

.subs-product-service {
  max-width: 128px;
  height: 25px;
  padding: 0 8px;
  gap: 6px;
  font-size: 11px;
}

.subs-product-actions {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  gap: 7px;
}

.subs-card-action {
  width: 36px !important;
  height: 36px !important;
  border-radius: 12px !important;
}

.subs-product-card h3 {
  min-height: 0;
  margin: 10px 0 5px;
  font-size: 17px;
  line-height: 1.14;
}

.subs-product-card p {
  min-height: 0;
  font-size: 12px;
  line-height: 1.34;
}

.subs-benefit-row {
  display: flex;
  gap: 4px;
  margin: 9px 0 auto;
}

.subs-benefit-row span {
  padding: 4px 6px;
  font-size: 10px;
}

.subs-product-footer {
  margin-top: 9px;
  padding-right: 88px;
}

.subs-price-block span {
  width: auto;
}

@media (max-width: 430px) {
  .subs-products-grid {
    grid-template-columns: 1fr;
  }

  .subs-product-card {
    grid-template-columns: 136px minmax(0, 1fr);
    gap: 12px;
    padding: 9px 10px 10px 9px;
    border-radius: 20px;
  }

  .subs-product-media {
    height: 152px;
    border-radius: 17px;
  }

  .subs-product-media img {
    border-radius: 16px;
  }

  .subs-product-body {
    padding: 1px 0 0;
  }

  .subs-product-topline {
    min-height: 36px;
    padding-right: 0;
  }

  .subs-product-service {
    max-width: 112px;
  }

  .subs-benefit-row {
    display: none;
  }

  .subs-product-footer {
    margin-top: auto;
    padding-right: 78px;
  }
}

@media (max-width: 380px) {
  .subs-product-card {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 11px;
  }

  .subs-product-media {
    height: 136px;
  }

  .subs-product-body {
    padding: 0;
  }

  .subs-product-topline {
    min-height: 34px;
    padding-right: 0;
  }

  .subs-product-service {
    max-width: 96px;
  }

  .subs-card-action {
    width: 32px !important;
    height: 32px !important;
  }

  .subs-product-actions {
    right: 10px;
    bottom: 10px;
    gap: 6px;
  }

  .subs-product-card h3 {
    margin-top: 4px;
    font-size: 15px;
  }

  .subs-product-card p {
    font-size: 11px;
  }

}

/* Steam hub refresh */
#steam-page {
  padding: 10px 14px 26px;
}

#steam-page .steam-navigation.steam-hub {
  width: 100%;
  max-width: 620px;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 auto;
  padding: 0 0 22px !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.steam-hub-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid rgba(58, 147, 255, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 15% 0%, rgba(43, 139, 255, 0.18), transparent 45%),
    linear-gradient(135deg, rgba(9, 16, 33, 0.94), rgba(12, 20, 42, 0.82));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.steam-hub-head-icon,
.steam-codes-hero-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(145deg, #1f8fff, #102b74);
  box-shadow: 0 10px 28px rgba(39, 137, 255, 0.35);
}

.steam-hub-head-copy span,
.steam-codes-hero span {
  display: block;
  margin-bottom: 2px;
  color: rgba(157, 197, 255, 0.9);
  font-size: 12px;
  font-weight: 800;
}

.steam-hub-head-copy h2,
.steam-codes-hero h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(22px, 5vw, 30px);
  line-height: 1.05;
  letter-spacing: 0;
}

.steam-hub-head-copy p,
.steam-codes-hero p {
  margin: 6px 0 0;
  color: rgba(224, 234, 255, 0.72);
  font-size: 13px;
  line-height: 1.35;
}

#steam-page .steam-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 !important;
}

#steam-page .steam-row-single {
  grid-template-columns: 1fr;
}

#steam-page .steam-card {
  position: relative;
  width: 100% !important;
  min-height: 154px;
  height: auto !important;
  margin: 0 !important;
  padding: 18px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(77, 157, 255, 0.28);
  background:
    radial-gradient(circle at 85% 12%, rgba(34, 139, 255, 0.22), transparent 34%),
    linear-gradient(140deg, #09111f 0%, #101b33 58%, #14234a 100%);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transform: translateZ(0);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

#steam-page .steam-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 9, 18, 0.78) 0%, rgba(5, 9, 18, 0.56) 48%, rgba(5, 9, 18, 0.2) 100%);
  z-index: 1;
}

#steam-page .steam-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 14px 18px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(57, 151, 255, 0.68), transparent);
  z-index: 2;
}

#steam-page .steam-card:hover,
#steam-page .steam-card:active {
  transform: translateY(-2px);
  border-color: rgba(84, 171, 255, 0.58);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.38),
    0 0 26px rgba(38, 127, 255, 0.18);
}

#steam-page .steam-card.wide {
  min-height: 178px;
}

#steam-page .card-overlay {
  position: relative;
  z-index: 3;
  width: min(68%, 340px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  background: none;
}

#steam-page .steam-card-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #9ecbff;
  background: rgba(48, 135, 255, 0.12);
  font-size: 11px;
  font-weight: 900;
}

#steam-page .card-title {
  display: block;
  color: #ffffff;
  font-size: clamp(20px, 4.6vw, 31px);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: 0;
}

#steam-page .card-desc {
  display: block;
  margin-top: 8px;
  color: rgba(221, 235, 255, 0.73);
  font-size: 13px;
  line-height: 1.32;
}

#steam-page .steam-card-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  opacity: 0.86;
}

#steam-page .steam-card-action i {
  font-size: 10px;
  opacity: 0.72;
}

#steam-page .games-fan-img {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  opacity: 0.82;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
  transition:
    transform 0.28s ease,
    opacity 0.28s ease;
}

#steam-page .steam-card:hover .games-fan-img {
  transform: scale(1.045) translateX(-4px);
  opacity: 0.9;
}

#steam-page .steam-card-games .games-fan-img {
  right: -34px;
  bottom: -26px;
  width: min(48%, 235px);
}

#steam-page .steam-card-topup .games-fan-img {
  right: -36px;
  bottom: -18px;
  width: 142px;
}

#steam-page .steam-card-codes .games-fan-img {
  right: 6px;
  bottom: 8px;
  width: 86px;
  opacity: 0.58;
}

#steam-page .steam-card-accounts .games-fan-img {
  right: -24px;
  bottom: -26px;
  width: min(42%, 190px);
}

#steam-codes {
  padding: 12px 14px 28px;
}

.steam-codes-shell {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.steam-codes-hero {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(74, 156, 255, 0.26);
  background:
    radial-gradient(circle at 92% 0%, rgba(28, 127, 255, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(10, 17, 31, 0.96), rgba(13, 23, 47, 0.88));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

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

.steam-code-card {
  position: relative;
  overflow: hidden;
  min-height: 214px;
  padding: 13px;
  border-radius: 22px;
  border: 1px solid rgba(88, 169, 255, 0.24);
  background:
    radial-gradient(circle at 92% 12%, rgba(45, 145, 255, 0.2), transparent 38%),
    linear-gradient(150deg, rgba(9, 15, 28, 0.96), rgba(13, 24, 48, 0.92));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.steam-code-card:hover,
.steam-code-card:active {
  transform: translateY(-2px);
  border-color: rgba(91, 180, 255, 0.6);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.34);
}

.steam-code-topline,
.steam-code-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.steam-code-topline span {
  color: rgba(177, 211, 255, 0.86);
  font-size: 11px;
  font-weight: 900;
}

.steam-code-fav {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px;
  border-radius: 12px !important;
}

.steam-code-visual {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.steam-code-visual img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(28, 126, 255, 0.28));
}

.steam-code-visual span {
  display: block;
  color: #ffffff;
  font-size: 21px;
  font-weight: 950;
  line-height: 1;
}

.steam-code-visual small {
  display: block;
  margin-top: 4px;
  color: rgba(219, 232, 255, 0.58);
  font-size: 11px;
  font-weight: 800;
}

.steam-code-copy {
  margin: 12px 0 14px;
}

.steam-code-copy h3 {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.2;
}

.steam-code-copy p {
  margin: 6px 0 0;
  color: rgba(221, 235, 255, 0.64);
  font-size: 11px;
  line-height: 1.35;
}

.steam-code-footer {
  margin-top: auto;
}

.steam-code-footer strong {
  color: #ffffff;
  font-size: 19px;
  line-height: 1;
}

.steam-code-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 102px;
  height: 38px;
  border: 0;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, #268cff, #0d5cff);
  box-shadow: 0 10px 24px rgba(25, 123, 255, 0.28);
  font-size: 12px;
  font-weight: 900;
}

.steam-code-cart.is-in-cart,
.steam-code-cart.active-cart {
  background: linear-gradient(135deg, #22c774, #0d8a4d);
}

@media (max-width: 430px) {
  #steam-page {
    padding: 8px 12px 24px;
  }

  #steam-page .steam-card {
    min-height: 146px;
    padding: 16px;
  }

  #steam-page .steam-card.wide {
    min-height: 170px;
  }

  #steam-page .card-overlay {
    width: min(72%, 300px);
  }

  .steam-codes-grid {
    gap: 10px;
  }

  .steam-code-card {
    min-height: 206px;
    padding: 12px;
  }
}

@media (max-width: 360px) {
  #steam-page .steam-row,
  .steam-codes-grid {
    grid-template-columns: 1fr;
  }

  #steam-page .card-overlay {
    width: min(74%, 260px);
  }
}

/* Steam hub as clear navigation buttons */
#steam-page .steam-navigation.steam-hub-menu {
  gap: 14px;
}

.steam-section-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.steam-section-tile {
  position: relative;
  width: 100%;
  min-height: 96px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid rgba(91, 163, 255, 0.28);
  border-radius: 22px;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    linear-gradient(145deg, rgba(9, 15, 30, 0.98), rgba(14, 24, 48, 0.94));
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.steam-section-tile::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: #2c91ff;
  box-shadow: 0 0 20px rgba(44, 145, 255, 0.58);
}

.steam-section-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background: radial-gradient(circle at 92% 12%, rgba(70, 150, 255, 0.2), transparent 38%);
}

.steam-section-tile:hover,
.steam-section-tile:active {
  transform: translateY(-2px);
  border-color: rgba(105, 181, 255, 0.62);
  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.3),
    0 0 24px rgba(45, 140, 255, 0.16);
}

.steam-section-tile-wallet::before {
  background: #22c774;
  box-shadow: 0 0 20px rgba(34, 199, 116, 0.55);
}

.steam-section-tile-accounts::before {
  background: #b76bff;
  box-shadow: 0 0 20px rgba(183, 107, 255, 0.52);
}

.steam-section-icon,
.steam-section-copy,
.steam-section-arrow {
  position: relative;
  z-index: 1;
}

.steam-section-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  font-size: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.steam-section-tile-games .steam-section-icon {
  background: linear-gradient(145deg, rgba(47, 143, 255, 0.32), rgba(15, 65, 148, 0.28));
}

.steam-section-tile-wallet .steam-section-icon {
  background: linear-gradient(145deg, rgba(34, 199, 116, 0.3), rgba(16, 97, 61, 0.28));
}

.steam-section-tile-accounts .steam-section-icon {
  background: linear-gradient(145deg, rgba(183, 107, 255, 0.3), rgba(75, 36, 128, 0.28));
}

.steam-section-copy {
  min-width: 0;
}

.steam-section-copy strong {
  display: block;
  color: #ffffff;
  font-size: clamp(18px, 4.2vw, 22px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: 0;
}

.steam-section-copy small {
  display: block;
  margin-top: 6px;
  color: rgba(224, 235, 255, 0.67);
  font-size: 12px;
  line-height: 1.32;
}

.steam-section-arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  justify-self: end;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.steam-section-arrow i {
  font-size: 12px;
}

.steam-wallet-shell {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.steam-wallet-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border-radius: 20px;
  border: 1px solid rgba(83, 162, 255, 0.2);
  background: rgba(8, 14, 27, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.steam-wallet-tab {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 15px;
  color: rgba(224, 235, 255, 0.72);
  background: transparent;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.steam-wallet-tab.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(45, 142, 255, 0.92), rgba(18, 95, 230, 0.88));
  box-shadow: 0 10px 24px rgba(30, 116, 255, 0.24);
}

.steam-wallet-tab:active {
  transform: scale(0.98);
}

.steam-wallet-panel {
  animation: steamWalletPanelIn 0.18s ease;
}

.steam-wallet-shell .topup-container {
  margin: 0;
}

.steam-wallet-codes-hero {
  margin-bottom: 14px;
}

@keyframes steamWalletPanelIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 380px) {
  .steam-section-tile {
    grid-template-columns: 48px minmax(0, 1fr) 34px;
    min-height: 90px;
    gap: 11px;
    padding: 12px;
    border-radius: 20px;
  }

  .steam-section-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .steam-section-arrow {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .steam-wallet-tab {
    min-height: 42px;
    font-size: 12px;
  }
}

/* Larger Steam menu tiles with product art */
#steam-page .steam-navigation.steam-hub-menu {
  gap: 16px;
}

.steam-section-grid {
  gap: 14px;
}

.steam-section-tile {
  min-height: 136px;
  grid-template-columns: 62px minmax(0, 1fr) 42px;
  gap: 15px;
  padding: 18px 16px;
  border-radius: 24px;
}

.steam-section-tile::after {
  inset: 0;
  opacity: 0.34;
  background-repeat: no-repeat;
  background-position: right -32px center;
  background-size: auto 132%;
  transition:
    opacity 0.2s ease,
    transform 0.22s ease;
}

.steam-section-tile:hover::after,
.steam-section-tile:active::after {
  opacity: 0.46;
  transform: scale(1.04);
}

.steam-section-tile-games::after {
  background-image:
    linear-gradient(90deg, rgba(9, 15, 30, 0.98) 0%, rgba(9, 15, 30, 0.78) 48%, rgba(9, 15, 30, 0.24) 100%),
    url("./img/games.png");
}

.steam-section-tile-wallet::after {
  background-image:
    linear-gradient(90deg, rgba(9, 15, 30, 0.98) 0%, rgba(9, 15, 30, 0.78) 48%, rgba(9, 15, 30, 0.24) 100%),
    url("./img/wallet.png");
}

.steam-section-tile-accounts::after {
  background-image:
    linear-gradient(90deg, rgba(9, 15, 30, 0.98) 0%, rgba(9, 15, 30, 0.78) 48%, rgba(9, 15, 30, 0.24) 100%),
    url("./img/account.png");
}

.steam-section-icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  font-size: 22px;
}

.steam-section-copy {
  max-width: min(100%, 310px);
}

.steam-section-copy strong {
  font-size: clamp(20px, 4.7vw, 25px);
}

.steam-section-copy small {
  max-width: 250px;
  margin-top: 8px;
  font-size: 12.5px;
}

.steam-section-arrow {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 430px) {
  .steam-section-tile {
    min-height: 128px;
    grid-template-columns: 56px minmax(0, 1fr) 38px;
    gap: 12px;
    padding: 16px 13px;
  }

  .steam-section-tile::after {
    background-position: right -46px center;
    background-size: auto 124%;
    opacity: 0.3;
  }

  .steam-section-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }

  .steam-section-copy {
    max-width: 250px;
  }

  .steam-section-copy strong {
    font-size: clamp(18px, 5vw, 22px);
  }

  .steam-section-copy small {
    max-width: 210px;
    font-size: 11.5px;
  }
}

@media (max-width: 360px) {
  .steam-section-tile {
    min-height: 120px;
    grid-template-columns: 50px minmax(0, 1fr) 34px;
    padding: 14px 11px;
  }

  .steam-section-tile::after {
    background-position: right -58px center;
    background-size: auto 116%;
    opacity: 0.25;
  }

  .steam-section-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .steam-section-copy small {
    max-width: 190px;
  }
}

/* Steam polish: lighter art, fixed wallet width, refreshed region picker */
.steam-section-tile::after {
  opacity: 0.62;
}

.steam-section-tile:hover::after,
.steam-section-tile:active::after {
  opacity: 0.76;
}

.steam-section-tile-games::after {
  background-image:
    linear-gradient(90deg, rgba(9, 15, 30, 0.96) 0%, rgba(9, 15, 30, 0.58) 46%, rgba(9, 15, 30, 0.04) 100%),
    url("./img/games.png");
}

.steam-section-tile-wallet::after {
  background-image:
    linear-gradient(90deg, rgba(9, 15, 30, 0.96) 0%, rgba(9, 15, 30, 0.56) 46%, rgba(9, 15, 30, 0.04) 100%),
    url("./img/wallet.png");
}

.steam-section-tile-accounts::after {
  background-image:
    linear-gradient(90deg, rgba(9, 15, 30, 0.96) 0%, rgba(9, 15, 30, 0.56) 46%, rgba(9, 15, 30, 0.04) 100%),
    url("./img/account.png");
}

#steam-topup,
#steam-topup * {
  box-sizing: border-box;
}

#steam-topup {
  overflow-x: hidden;
}

#steam-topup .steam-wallet-shell,
#steam-topup .steam-wallet-panel,
#steam-topup .topup-container,
#steam-topup .payment-wrapper,
#steam-topup .topup-calculator,
#steam-topup .topup-input-container,
#steam-topup .input-group,
#steam-topup .input-wrapper,
#steam-topup #final-price-display {
  width: 100%;
  max-width: 100%;
}

#steam-topup .steam-wallet-shell {
  padding: 0;
}

#steam-topup .topup-container {
  margin-left: 0;
  margin-right: 0;
}

#steam-topup #steam-login,
#steam-topup #amount-input {
  min-width: 0;
  max-width: 100%;
}

#steam-region-modal {
  padding: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(44, 145, 255, 0.22), transparent 42%),
    rgba(1, 5, 13, 0.78) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#steam-region-modal .steam-region-card {
  width: min(100%, 400px);
  max-width: 400px;
  padding: 18px;
  border-radius: 28px;
  text-align: left;
  overflow: hidden;
  transform: none;
  background:
    linear-gradient(145deg, rgba(18, 30, 55, 0.96), rgba(6, 11, 24, 0.98)),
    radial-gradient(circle at 85% 0%, rgba(50, 142, 255, 0.22), transparent 42%);
  border: 1px solid rgba(97, 171, 255, 0.28);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.54),
    0 0 34px rgba(40, 139, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: steamRegionCardIn 0.22s ease both;
}

#steam-region-modal .steam-region-card::before {
  content: "";
  position: absolute;
  inset: -80px -70px auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(45, 142, 255, 0.22);
  filter: blur(18px);
  pointer-events: none;
}

.steam-region-hero,
.steam-region-grid {
  position: relative;
  z-index: 1;
}

.steam-region-hero {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.steam-region-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 20px;
  color: #ffffff;
  font-size: 25px;
  background: linear-gradient(145deg, rgba(45, 142, 255, 0.35), rgba(18, 57, 126, 0.28));
  border: 1px solid rgba(120, 190, 255, 0.22);
  box-shadow:
    0 12px 26px rgba(24, 112, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.steam-region-copy span {
  display: block;
  color: rgba(126, 190, 255, 0.9);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.steam-region-copy h2 {
  margin: 5px 0 6px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: 0;
}

.steam-region-copy p {
  margin: 0;
  color: rgba(224, 235, 255, 0.68);
  font-size: 13px;
  line-height: 1.38;
}

#steam-region-modal .steam-region-grid {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 0;
}

#steam-region-modal .steam-region-grid .steam-region-btn,
#steam-region-modal .steam-region-grid .steam-region-btn:nth-child(1) {
  grid-column: auto;
  min-height: 70px;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#steam-region-modal .steam-region-grid .steam-region-btn:active {
  transform: scale(0.985);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
}

.region-flag {
  position: relative;
  width: 48px;
  height: 31px;
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.08);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.region-flag-ru {
  background-image: url("./img/flag-ru.png");
}

.region-flag-kz {
  background-image: url("./img/flag-kz.png");
}

.region-flag-kz::before {
  content: none;
}

.region-flag-kz::after {
  content: none;
}

.region-flag-ua {
  background-image: url("./img/flag-ua.png");
}

.region-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.region-label strong {
  color: #ffffff;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 950;
}

.region-label small {
  color: rgba(224, 235, 255, 0.62);
  font-size: 12px;
  line-height: 1.2;
}

.region-promo {
  width: fit-content;
  margin-top: 2px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #081327;
  background: linear-gradient(135deg, #ffe66d, #ffb627);
  box-shadow: 0 8px 16px rgba(255, 193, 7, 0.18);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

#steam-region-modal .steam-region-account-btn {
  grid-column: auto;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 2px;
  padding: 13px 14px;
  border-radius: 17px;
  color: #ffffff;
  background: linear-gradient(135deg, #238cff, #0d5cff);
  border: 0;
  box-shadow: 0 14px 28px rgba(21, 104, 255, 0.28);
}

#steam-region-modal .steam-region-account-btn:active {
  transform: scale(0.985);
  opacity: 0.94;
}

@keyframes steamRegionCardIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 430px) {
  .steam-section-tile::after {
    opacity: 0.56;
  }

  .steam-section-tile:hover::after,
  .steam-section-tile:active::after {
    opacity: 0.68;
  }
}

@media (max-width: 360px) {
  .steam-section-tile::after {
    opacity: 0.5;
  }

  #steam-region-modal .steam-region-card {
    padding: 16px;
    border-radius: 24px;
  }

  .steam-region-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
  }

  .steam-region-copy h2 {
    font-size: 22px;
  }
}

/* Keep Steam section art aligned and inside the cards */
.steam-section-tile::after {
  background-position: right -10px center;
  background-size: auto 112%;
}

.steam-section-tile-accounts::after {
  background-position: right -24px center;
  background-size: auto 102%;
}

@media (max-width: 430px) {
  .steam-section-tile::after {
    background-position: right -12px center;
    background-size: auto 104%;
  }

  .steam-section-tile-accounts::after {
    background-position: right -20px center;
    background-size: auto 98%;
  }
}

@media (max-width: 360px) {
  .steam-section-tile::after {
    background-position: right -14px center;
    background-size: auto 100%;
  }

  .steam-section-tile-accounts::after {
    background-position: right -18px center;
    background-size: auto 94%;
  }
}

/* Steam games catalog visual refresh */
#steam-games {
  background:
    radial-gradient(520px 260px at 50% -40px, rgba(39, 127, 255, 0.22), transparent 68%),
    linear-gradient(180deg, #050914 0%, #07101d 42%, #050914 100%);
}

#steam-games .steam-catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 2px 0 14px;
  padding: 15px 16px;
  border: 1px solid rgba(98, 163, 255, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(44, 119, 255, 0.18), rgba(255, 255, 255, 0.055)),
    rgba(8, 15, 28, 0.9);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#steam-games .steam-catalog-title-block {
  min-width: 0;
}

#steam-games .steam-catalog-title-block span {
  display: block;
  margin-bottom: 4px;
  color: rgba(120, 181, 255, 0.92);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#steam-games .steam-catalog-title-block h2 {
  display: block !important;
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: 0;
}

#steam-games .steam-catalog-title-block p {
  margin: 6px 0 0;
  color: rgba(218, 230, 255, 0.66);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

#steam-games .steam-catalog-head-icon {
  display: grid;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(119, 178, 255, 0.26);
  border-radius: 18px;
  color: #ffffff;
  background:
    radial-gradient(circle at 30% 25%, rgba(85, 166, 255, 0.45), transparent 42%),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 26px rgba(22, 104, 255, 0.2);
  font-size: 27px;
}

#steam-games .search-container-steam {
  margin: 0 0 14px;
  padding: 0 1px;
}

#steam-games .search-wrapper {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(114, 170, 255, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045)),
    rgba(7, 13, 24, 0.84);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

#steam-games #steam-search-input {
  height: 52px;
  padding: 0 16px 0 48px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

#steam-games #steam-search-input:focus {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 0 0 1px rgba(67, 142, 255, 0.28) inset;
}

#steam-games .search-wrapper .search-icon {
  left: 18px;
  color: rgba(127, 185, 255, 0.82);
}

#steam-games #steam-promo-carousel {
  margin: 2px -2px 18px;
  padding: 0 2px 8px;
}

#steam-games .promo-banner {
  height: 136px;
  border: 1px solid rgba(95, 157, 255, 0.22);
  border-radius: 22px;
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

#steam-games #steam-categories-container {
  gap: 15px;
  margin-top: 8px;
}

#steam-games .steam-category-section {
  padding: 0 0 2px;
}

#steam-games .steam-category-title,
#steam-games #steam-categories-container h2.steam-category-title {
  display: flex !important;
  align-items: center;
  gap: 9px;
  margin: 0 0 9px !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1.15;
  letter-spacing: 0;
}

#steam-games .steam-category-title::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #45a1ff;
  box-shadow: 0 0 16px rgba(69, 161, 255, 0.9);
}

#steam-games .steam-category-title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(87, 158, 255, 0.36), transparent);
}

#steam-games .steam-cards-row {
  gap: 10px;
  padding: 1px 1px 8px;
}

#steam-games .apple-card-mini.steam-game-card {
  overflow: hidden;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045)),
    rgba(7, 13, 24, 0.88);
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateZ(0);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

#steam-games .steam-cards-row .apple-card-mini.steam-game-card {
  flex: 0 0 calc((100% - 10px) / 2) !important;
  min-width: calc((100% - 10px) / 2) !important;
  max-width: calc((100% - 10px) / 2) !important;
}

#steam-games #steam-games-display,
#steam-games #promo-games-grid {
  gap: 10px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  padding-bottom: 104px !important;
}

#steam-games #steam-games-display .apple-card-mini.steam-game-card,
#steam-games #promo-games-grid .apple-card-mini.steam-game-card {
  width: 100%;
  min-width: 0 !important;
  max-width: none !important;
}

#steam-games .apple-card-mini.steam-game-card:hover {
  border-color: rgba(83, 152, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055)),
    rgba(8, 16, 30, 0.92);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(44, 128, 255, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

#steam-games .apple-card-mini.steam-game-card:active {
  transform: scale(0.985);
}

#steam-games .steam-game-card .apple-card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden;
  border-radius: 13px;
  background: #07101f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

#steam-games .steam-game-card .apple-card-img-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 44%, rgba(1, 5, 13, 0.72) 100%);
}

#steam-games .steam-game-card .apple-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition:
    transform 0.28s ease,
    filter 0.28s ease;
}

#steam-games .apple-card-mini.steam-game-card:hover .apple-card-img-wrapper img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.045);
}

#steam-games .steam-card-version-badge {
  left: 7px;
  right: auto;
  bottom: 7px;
  z-index: 2;
  max-width: calc(100% - 14px);
  padding: 4px 8px;
  border: 1px solid rgba(112, 174, 255, 0.25);
  border-radius: 999px;
  background: rgba(7, 13, 24, 0.78);
  color: #dcecff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

#steam-games .steam-game-card .fav-btn {
  top: 7px !important;
  right: 7px !important;
  z-index: 3;
  width: 34px !important;
  height: 34px !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px !important;
  background: rgba(4, 10, 20, 0.64) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

#steam-games .steam-game-card .fav-btn svg {
  width: 18px !important;
  height: 18px !important;
}

#steam-games .steam-game-card .apple-card-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 78px;
  padding: 9px 4px 2px;
}

#steam-games .steam-game-card .apple-card-info .name {
  order: 1;
  min-height: 34px;
  color: #f7fbff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#steam-games .steam-game-card .apple-card-price-row {
  order: 2;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: auto 0 0;
}

#steam-games .steam-game-card .apple-card-price-row .price {
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
}

#steam-games .steam-game-card .apple-card-price-row .discount {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #35e77b, #12b85c);
  color: #021508 !important;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(21, 196, 96, 0.24);
}

@media (max-width: 370px) {
  #steam-games {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  #steam-games .steam-catalog-head {
    padding: 14px;
    border-radius: 20px;
  }

  #steam-games .steam-catalog-title-block h2 {
    font-size: 22px;
  }

  #steam-games .steam-catalog-head-icon {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 24px;
  }

  #steam-games .steam-cards-row {
    gap: 8px;
  }

  #steam-games .steam-cards-row .apple-card-mini.steam-game-card {
    flex-basis: calc((100% - 8px) / 2) !important;
    min-width: calc((100% - 8px) / 2) !important;
    max-width: calc((100% - 8px) / 2) !important;
  }

  #steam-games #steam-games-display,
  #steam-games #promo-games-grid {
    gap: 8px !important;
  }

  #steam-games .steam-game-card .apple-card-info {
    min-height: 74px;
  }

  #steam-games .steam-game-card .apple-card-info .name {
    font-size: 12px;
  }

  #steam-games .steam-game-card .apple-card-price-row .price {
    font-size: 14px;
  }
}

/* Final Steam catalog corrections after all theme blocks. Keep parser/data untouched. */
#steam-games {
  overflow-x: hidden !important;
  padding-top: max(14px, env(safe-area-inset-top)) !important;
}

#steam-games .steam-catalog-head {
  width: auto !important;
  max-width: none !important;
  min-height: 92px !important;
  margin: 0 14px 12px !important;
  align-items: center !important;
  overflow: hidden !important;
}

#steam-games .steam-catalog-title-block {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

#steam-games .steam-catalog-title-block h2,
#steam-games .steam-catalog-title-block p {
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

#steam-games .steam-catalog-head-icon {
  align-self: center !important;
}

#steam-games .search-wrapper {
  display: flex !important;
  align-items: center !important;
  height: 52px !important;
  min-height: 52px !important;
  box-sizing: border-box !important;
}

#steam-games #steam-search-input {
  flex: 1 1 auto !important;
  height: 52px !important;
  min-height: 52px !important;
  line-height: 52px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
  appearance: none;
  -webkit-appearance: none;
}

#steam-games #steam-promo-carousel,
#steam-games .steam-cards-row,
#steam-games .steam-catalog-tabs {
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

#steam-games #steam-promo-carousel.is-dragging-scroll,
#steam-games .steam-cards-row.is-dragging-scroll,
#steam-games .steam-catalog-tabs.is-dragging-scroll {
  cursor: grabbing !important;
  scroll-snap-type: none !important;
}

#steam-games .is-dragging-scroll * {
  pointer-events: none;
}

#steam-games .promo-banner {
  flex-basis: min(92%, 420px) !important;
  aspect-ratio: 2048 / 984 !important;
}

#steam-games .promo-banner img {
  object-fit: cover !important;
  object-position: center center !important;
}

#steam-games .steam-category-heading {
  align-items: center !important;
}

#steam-games .steam-category-heading p {
  display: none !important;
}

#steam-games .steam-game-card .fav-btn {
  top: auto !important;
  right: 8px !important;
  bottom: 8px !important;
  left: auto !important;
}

#steam-games .steam-game-card .apple-card-info {
  padding-right: 42px !important;
}

#steam-games .steam-game-card .apple-card-price-row {
  justify-content: flex-start !important;
  gap: 6px !important;
}

#steam-games .steam-game-card .apple-card-price-row .price {
  flex: 0 0 auto !important;
}

#steam-games .steam-game-card .apple-card-price-row .discount {
  margin-left: 0 !important;
}

/* Steam catalog final edge/search override. Must stay at file end. */
#steam-games {
  --steam-catalog-edge: clamp(18px, 4.8vw, 24px);
}

#steam-games .steam-catalog-head {
  margin-left: var(--steam-catalog-edge) !important;
  margin-right: var(--steam-catalog-edge) !important;
}

#steam-games .search-container-steam,
#steam-games .steam-catalog-tabs,
#steam-games #steam-promo-carousel,
#steam-games .steam-category-heading,
#steam-games .steam-cards-row,
#steam-games #steam-games-display,
#steam-games #promo-view-container {
  padding-left: var(--steam-catalog-edge) !important;
  padding-right: var(--steam-catalog-edge) !important;
}

#steam-games .search-container-steam {
  overflow: visible !important;
}

#steam-games .search-wrapper {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr) !important;
  align-items: center !important;
  column-gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 15px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

#steam-games .search-wrapper:focus-within {
  border-color: rgba(99, 172, 255, 0.44) !important;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(89, 164, 255, 0.2) inset !important;
}

#steam-games .search-wrapper .search-icon {
  position: static !important;
  align-self: center !important;
  justify-self: center !important;
  transform: none !important;
}

#steam-games #steam-search-input {
  grid-column: 2 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  line-height: normal !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  box-sizing: border-box !important;
}

#steam-games #steam-search-input:focus {
  background: transparent !important;
  box-shadow: none !important;
}

/* Steam catalog final search icon and edge fade. Keep this at EOF. */
#steam-games {
  --steam-catalog-edge: clamp(18px, 5vw, 28px);
  --steam-edge-fade: clamp(22px, 6vw, 34px);
}

#steam-games .search-wrapper {
  grid-template-columns: 20px minmax(0, 1fr) !important;
}

#steam-games .search-wrapper .search-icon {
  position: relative !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: block !important;
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  color: rgba(143, 198, 255, 0.95) !important;
  opacity: 1 !important;
  z-index: 2 !important;
  pointer-events: none !important;
  transform: none !important;
}

#steam-games #steam-search-input {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

#steam-games .steam-catalog-tabs,
#steam-games #steam-promo-carousel,
#steam-games .steam-cards-row {
  padding-left: var(--steam-catalog-edge) !important;
  padding-right: var(--steam-catalog-edge) !important;
  scroll-padding-left: var(--steam-catalog-edge) !important;
  scroll-padding-right: var(--steam-catalog-edge) !important;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 var(--steam-edge-fade),
    #000 calc(100% - var(--steam-edge-fade)),
    transparent 100%
  ) !important;
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 var(--steam-edge-fade),
    #000 calc(100% - var(--steam-edge-fade)),
    transparent 100%
  ) !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
}

/* Steam absolute last fix: search icon and game-detail favorite button. */
#steam-games .search-wrapper {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 15px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

#steam-games .search-wrapper .search-icon {
  position: static !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: block !important;
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  color: rgba(143, 198, 255, 0.95) !important;
  opacity: 1 !important;
  stroke: currentColor !important;
  fill: none !important;
  transform: none !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

#steam-games #steam-search-input {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  line-height: 52px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#steam-games #steam-search-input:focus {
  background: transparent !important;
  box-shadow: none !important;
}

#steam-game-page #game-pg-fav-btn,
#product-modal.steam-product-modal #modal-fav-btn {
  display: none !important;
}

/* Steam absolute last fix: search icon and game-detail favorite button. */
#steam-games .search-wrapper {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 15px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

#steam-games .search-wrapper .search-icon {
  position: static !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: block !important;
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  color: rgba(143, 198, 255, 0.95) !important;
  opacity: 1 !important;
  stroke: currentColor !important;
  fill: none !important;
  transform: none !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

#steam-games #steam-search-input {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  line-height: 52px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#steam-games #steam-search-input:focus {
  background: transparent !important;
  box-shadow: none !important;
}

#steam-game-page #game-pg-fav-btn,
#product-modal.steam-product-modal #modal-fav-btn {
  display: none !important;
}

/* Steam final polish: stable search icon and no broken heart on game detail. */
#steam-games .search-wrapper {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 15px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

#steam-games .search-wrapper .search-icon {
  position: static !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: block !important;
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  color: rgba(143, 198, 255, 0.95) !important;
  opacity: 1 !important;
  stroke: currentColor !important;
  fill: none !important;
  transform: none !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

#steam-games #steam-search-input {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  line-height: 52px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#steam-games #steam-search-input:focus {
  background: transparent !important;
  box-shadow: none !important;
}

#steam-game-page #game-pg-fav-btn,
#product-modal.steam-product-modal #modal-fav-btn {
  display: none !important;
}

/* Steam catalog edge/search polish. Frontend only, parser/data untouched. */
#steam-games {
  --steam-catalog-edge: clamp(18px, 4.8vw, 24px);
}

#steam-games .steam-catalog-head {
  margin-left: var(--steam-catalog-edge) !important;
  margin-right: var(--steam-catalog-edge) !important;
}

#steam-games .search-container-steam,
#steam-games .steam-catalog-tabs,
#steam-games #steam-promo-carousel,
#steam-games .steam-category-heading,
#steam-games .steam-cards-row,
#steam-games #steam-games-display,
#steam-games #promo-view-container {
  padding-left: var(--steam-catalog-edge) !important;
  padding-right: var(--steam-catalog-edge) !important;
}

#steam-games .search-container-steam {
  overflow: visible !important;
}

#steam-games .search-wrapper {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: 10px;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 15px !important;
  overflow: hidden !important;
}

#steam-games .search-wrapper:focus-within {
  border-color: rgba(99, 172, 255, 0.44) !important;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(89, 164, 255, 0.2) inset !important;
}

#steam-games .search-wrapper .search-icon {
  position: static !important;
  align-self: center !important;
  justify-self: center !important;
  transform: none !important;
}

#steam-games #steam-search-input {
  grid-column: 2;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  line-height: normal !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

#steam-games #steam-search-input:focus {
  background: transparent !important;
  box-shadow: none !important;
}

/* Steam catalog polish fixes: layout stability, desktop drag-scroll and cards */
#steam-games {
  overflow-x: hidden !important;
  padding-top: max(14px, env(safe-area-inset-top)) !important;
}

#steam-games .steam-catalog-head {
  position: relative;
  isolation: isolate;
  width: auto !important;
  max-width: none !important;
  min-height: 92px;
  align-items: center !important;
  overflow: hidden;
}

#steam-games .steam-catalog-title-block {
  min-width: 0;
  flex: 1 1 auto;
}

#steam-games .steam-catalog-title-block h2,
#steam-games .steam-catalog-title-block p {
  max-width: 100%;
  overflow-wrap: anywhere;
}

#steam-games .steam-catalog-head-icon {
  align-self: center;
}

#steam-games .search-wrapper {
  display: flex !important;
  align-items: center !important;
  height: 52px;
  min-height: 52px;
  box-sizing: border-box;
}

#steam-games #steam-search-input {
  flex: 1 1 auto;
  height: 52px !important;
  min-height: 52px !important;
  line-height: 52px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  font-size: 16px !important;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

#steam-games #steam-promo-carousel,
#steam-games .steam-cards-row,
#steam-games .steam-catalog-tabs {
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

#steam-games #steam-promo-carousel.is-dragging-scroll,
#steam-games .steam-cards-row.is-dragging-scroll,
#steam-games .steam-catalog-tabs.is-dragging-scroll {
  cursor: grabbing !important;
  scroll-snap-type: none !important;
}

#steam-games .is-dragging-scroll * {
  pointer-events: none;
}

#steam-games .promo-banner {
  flex-basis: min(92%, 420px) !important;
  aspect-ratio: 2048 / 984 !important;
}

#steam-games .promo-banner img {
  object-fit: cover !important;
  object-position: center center !important;
}

#steam-games .steam-card-version-badge {
  max-width: calc(100% - 16px) !important;
}

#steam-games .steam-game-card .fav-btn {
  top: auto !important;
  right: 8px !important;
  bottom: 8px !important;
  left: auto !important;
}

#steam-games .steam-game-card .apple-card-info {
  padding-right: 42px !important;
}

#steam-games .steam-game-card .apple-card-price-row {
  justify-content: flex-start !important;
  gap: 6px !important;
}

#steam-games .steam-game-card .apple-card-price-row .price {
  flex: 0 0 auto;
}

#steam-games .steam-game-card .apple-card-price-row .discount {
  margin-left: 0 !important;
}

/* Steam catalog rebuild: stable cards, search, banners and computed shelves */
#steam-games {
  min-height: 100vh;
  padding: 14px 0 98px !important;
  color: #f6fbff;
  background:
    radial-gradient(520px 260px at 50% -60px, rgba(44, 133, 255, 0.28), transparent 70%),
    radial-gradient(360px 240px at 100% 18%, rgba(51, 225, 158, 0.08), transparent 68%),
    linear-gradient(180deg, #050b17 0%, #07101c 42%, #040811 100%) !important;
}

#steam-games .steam-catalog-head,
#steam-games .search-container-steam,
#steam-games .steam-catalog-tabs,
#steam-games #steam-promo-carousel,
#steam-games #steam-categories-container,
#steam-games #steam-games-display,
#steam-games #promo-view-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#steam-games .steam-catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 14px 12px;
  padding: 15px;
  border: 1px solid rgba(114, 176, 255, 0.22);
  border-radius: 21px;
  background:
    linear-gradient(135deg, rgba(38, 105, 231, 0.2), rgba(255, 255, 255, 0.055)),
    rgba(6, 13, 25, 0.84);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

#steam-games .steam-catalog-title-block h2 {
  display: block !important;
  margin: 0;
  color: #fff;
  font-size: 25px;
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: 0;
}

#steam-games .steam-catalog-title-block span {
  display: inline-flex;
  margin-bottom: 6px;
  color: #79baff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#steam-games .steam-catalog-title-block p {
  margin: 7px 0 0;
  color: rgba(221, 233, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

#steam-games .steam-catalog-head-icon {
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(122, 184, 255, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 35% 25%, rgba(94, 174, 255, 0.42), transparent 46%),
    rgba(255, 255, 255, 0.075);
  color: #fff;
  font-size: 26px;
  box-shadow: 0 14px 26px rgba(38, 123, 255, 0.16);
}

#steam-games .search-container-steam {
  display: block;
  margin: 0;
  padding: 0 14px 10px;
}

#steam-games .search-wrapper {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(117, 178, 255, 0.2);
  border-radius: 17px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04)),
    rgba(6, 13, 25, 0.9);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#steam-games #steam-search-input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 15px 0 47px;
  border: 0 !important;
  outline: 0 !important;
  border-radius: inherit;
  background: transparent !important;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: none !important;
}

#steam-games #steam-search-input::placeholder {
  color: rgba(208, 224, 250, 0.45);
}

#steam-games #steam-search-input:focus {
  background: rgba(255, 255, 255, 0.025) !important;
  box-shadow: 0 0 0 1px rgba(88, 157, 255, 0.28) inset !important;
}

#steam-games .search-wrapper .search-icon {
  position: absolute;
  top: 50%;
  left: 17px;
  transform: translateY(-50%);
  color: rgba(130, 189, 255, 0.82);
  pointer-events: none;
}

#steam-games .steam-catalog-tabs {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0 14px 13px;
  overflow-x: auto;
  scrollbar-width: none;
}

#steam-games .steam-catalog-tabs::-webkit-scrollbar {
  display: none;
}

#steam-games .steam-catalog-tab {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(118, 180, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(225, 235, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

#steam-games .steam-catalog-tab.is-active,
#steam-games .steam-catalog-tab:active {
  border-color: rgba(87, 164, 255, 0.55);
  background: linear-gradient(135deg, rgba(42, 135, 255, 0.88), rgba(41, 211, 151, 0.74));
  color: #fff;
  box-shadow: 0 10px 20px rgba(32, 132, 255, 0.18);
}

#steam-games #steam-promo-carousel {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0 14px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

#steam-games #steam-promo-carousel::-webkit-scrollbar {
  display: none;
}

#steam-games .promo-banner {
  flex: 0 0 min(88%, 390px);
  width: auto;
  height: auto !important;
  aspect-ratio: 2.08 / 1;
  overflow: hidden;
  border: 1px solid rgba(105, 172, 255, 0.24);
  border-radius: 20px;
  background:
    radial-gradient(circle at 80% 20%, rgba(74, 151, 255, 0.16), transparent 42%),
    #050b17;
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  scroll-snap-align: start;
}

#steam-games .promo-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
  background: transparent;
}

#steam-games #steam-categories-container {
  display: block;
  margin: 0;
  padding: 0 0 12px;
}

#steam-games .steam-category-section {
  margin: 0 0 17px;
  padding: 0;
}

#steam-games .steam-category-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 0 14px 9px;
}

#steam-games .steam-category-title,
#steam-games #steam-categories-container h2.steam-category-title {
  display: block !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  line-height: 1.1;
  letter-spacing: 0;
}

#steam-games .steam-category-title::before,
#steam-games .steam-category-title::after {
  display: none !important;
}

#steam-games .steam-category-heading p {
  margin: 5px 0 0;
  color: rgba(213, 228, 255, 0.52);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

#steam-games .steam-category-more {
  flex: 0 0 auto;
  min-width: 54px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(121, 184, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(231, 240, 255, 0.8);
  font-size: 12px;
  font-weight: 900;
}

#steam-games .steam-cards-row {
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: minmax(156px, calc((100% - 10px) / 2));
  gap: 10px;
  margin: 0;
  padding: 0 14px 4px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

#steam-games .steam-cards-row::-webkit-scrollbar {
  display: none;
}

#steam-games .steam-cards-row .apple-card-mini.steam-game-card {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: none !important;
  scroll-snap-align: start;
}

#steam-games #steam-games-display,
#steam-games #promo-games-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 0;
  padding: 0 14px 106px !important;
}

#steam-games #promo-games-grid {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#steam-games .apple-card-mini.steam-game-card {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: auto !important;
  overflow: hidden;
  padding: 7px !important;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035)),
    rgba(7, 14, 27, 0.92);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.27),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

#steam-games .apple-card-mini.steam-game-card:hover {
  border-color: rgba(91, 164, 255, 0.46);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.125), rgba(255, 255, 255, 0.045)),
    rgba(8, 16, 31, 0.96);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(53, 143, 255, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}

#steam-games .apple-card-mini.steam-game-card:active {
  transform: scale(0.985);
}

#steam-games .steam-game-card .apple-card-img-wrapper {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9 !important;
  margin: 0 0 8px !important;
  overflow: hidden !important;
  border-radius: 13px !important;
  background: #08111f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

#steam-games .steam-game-card .apple-card-img-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, rgba(2, 7, 17, 0.72) 100%);
}

#steam-games .steam-game-card .apple-card-img-wrapper img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center;
  transition:
    transform 0.28s ease,
    filter 0.28s ease;
}

#steam-games .steam-game-card:hover .apple-card-img-wrapper img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.045);
}

#steam-games .steam-card-version-badge {
  position: absolute;
  left: 7px;
  right: auto;
  bottom: 7px;
  z-index: 2;
  max-width: calc(100% - 14px);
  padding: 4px 8px;
  overflow: hidden;
  border: 1px solid rgba(117, 182, 255, 0.28);
  border-radius: 999px;
  background: rgba(5, 12, 24, 0.72);
  color: #e6f1ff;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

#steam-games .steam-game-card .fav-btn {
  position: absolute !important;
  top: 7px !important;
  right: 7px !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 3 !important;
  display: grid !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  place-items: center;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 12px !important;
  background: rgba(5, 11, 22, 0.7) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  transform: none !important;
  backdrop-filter: blur(10px);
}

#steam-games .steam-game-card .fav-btn svg {
  display: block;
  width: 18px !important;
  height: 18px !important;
  fill: rgba(255, 255, 255, 0.68);
}

#steam-games .steam-game-card .fav-btn.active-fav {
  border-color: rgba(255, 83, 128, 0.5) !important;
  background: rgba(255, 45, 95, 0.2) !important;
}

#steam-games .steam-game-card .fav-btn.active-fav svg {
  fill: #ff4f83;
}

#steam-games .steam-game-card .apple-card-info {
  display: grid !important;
  grid-template-rows: auto auto;
  gap: 7px;
  min-height: 62px !important;
  padding: 0 2px 1px !important;
}

#steam-games .steam-game-card .apple-card-info .name {
  order: 0;
  min-height: 31px;
  margin: 0;
  color: #f7fbff;
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#steam-games .steam-game-card .apple-card-price-row {
  order: 1;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between;
  gap: 7px;
  min-width: 0;
  margin: 0 !important;
}

#steam-games .steam-game-card .apple-card-price-row .price {
  min-width: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

#steam-games .steam-game-card .apple-card-price-row .discount {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #36eb7d, #12bc60);
  color: #031609 !important;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 7px 14px rgba(23, 196, 98, 0.22);
}

#steam-games #promo-view-container {
  margin: 0;
  padding: 0 14px 20px;
}

#steam-games .promo-header-simple {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 12px;
}

#steam-games .promo-header-simple h2 {
  display: block !important;
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: 0;
}

#steam-games .back-arrow-btn {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(118, 180, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

#steam-games .empty-msg {
  grid-column: 1 / -1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(222, 232, 250, 0.62) !important;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 370px) {
  #steam-games .steam-catalog-head,
  #steam-games .search-container-steam,
  #steam-games .steam-catalog-tabs,
  #steam-games #steam-promo-carousel,
  #steam-games .steam-category-heading,
  #steam-games .steam-cards-row,
  #steam-games #steam-games-display,
  #steam-games #promo-view-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  #steam-games .steam-catalog-head {
    margin-left: 12px;
    margin-right: 12px;
  }

  #steam-games .steam-cards-row {
    grid-auto-columns: minmax(148px, calc((100% - 8px) / 2));
    gap: 8px;
  }

  #steam-games #steam-games-display,
  #steam-games #promo-games-grid {
    gap: 8px !important;
  }

  #steam-games .steam-game-card .apple-card-info .name {
    font-size: 12px;
  }

  #steam-games .steam-game-card .apple-card-price-row .price {
    font-size: 14px;
  }
}

/* Final Steam catalog corrections after all theme blocks. Keep parser/data untouched. */
#steam-games {
  overflow-x: hidden !important;
  padding-top: max(14px, env(safe-area-inset-top)) !important;
}

#steam-games .steam-catalog-head {
  width: auto !important;
  max-width: none !important;
  min-height: 92px !important;
  margin: 0 14px 12px !important;
  align-items: center !important;
  overflow: hidden !important;
}

#steam-games .steam-catalog-title-block {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

#steam-games .steam-catalog-title-block h2,
#steam-games .steam-catalog-title-block p {
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

#steam-games .steam-catalog-head-icon {
  align-self: center !important;
}

#steam-games .search-wrapper {
  display: flex !important;
  align-items: center !important;
  height: 52px !important;
  min-height: 52px !important;
  box-sizing: border-box !important;
}

#steam-games #steam-search-input {
  flex: 1 1 auto !important;
  height: 52px !important;
  min-height: 52px !important;
  line-height: 52px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
  appearance: none;
  -webkit-appearance: none;
}

#steam-games #steam-promo-carousel,
#steam-games .steam-cards-row,
#steam-games .steam-catalog-tabs {
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

#steam-games #steam-promo-carousel.is-dragging-scroll,
#steam-games .steam-cards-row.is-dragging-scroll,
#steam-games .steam-catalog-tabs.is-dragging-scroll {
  cursor: grabbing !important;
  scroll-snap-type: none !important;
}

#steam-games .is-dragging-scroll * {
  pointer-events: none;
}

#steam-games .promo-banner {
  flex-basis: min(92%, 420px) !important;
  aspect-ratio: 2048 / 984 !important;
}

#steam-games .promo-banner img {
  object-fit: cover !important;
  object-position: center center !important;
}

#steam-games .steam-category-heading {
  align-items: center !important;
}

#steam-games .steam-category-heading p {
  display: none !important;
}

#steam-games .steam-game-card .fav-btn {
  top: auto !important;
  right: 8px !important;
  bottom: 8px !important;
  left: auto !important;
}

#steam-games .steam-game-card .apple-card-info {
  padding-right: 42px !important;
}

#steam-games .steam-game-card .apple-card-price-row {
  justify-content: flex-start !important;
  gap: 6px !important;
}

#steam-games .steam-game-card .apple-card-price-row .price {
  flex: 0 0 auto !important;
}

#steam-games .steam-game-card .apple-card-price-row .discount {
  margin-left: 0 !important;
}
/* Steam catalog true final edge/search override. Keep this at EOF. */
#steam-games {
  --steam-catalog-edge: clamp(18px, 4.8vw, 24px);
}

#steam-games .steam-catalog-head {
  margin-left: var(--steam-catalog-edge) !important;
  margin-right: var(--steam-catalog-edge) !important;
}

#steam-games .search-container-steam,
#steam-games .steam-catalog-tabs,
#steam-games #steam-promo-carousel,
#steam-games .steam-category-heading,
#steam-games .steam-cards-row,
#steam-games #steam-games-display,
#steam-games #promo-view-container {
  padding-left: var(--steam-catalog-edge) !important;
  padding-right: var(--steam-catalog-edge) !important;
}

#steam-games .search-wrapper {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr) !important;
  align-items: center !important;
  column-gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 15px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

#steam-games .search-wrapper:focus-within {
  border-color: rgba(99, 172, 255, 0.44) !important;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(89, 164, 255, 0.2) inset !important;
}

#steam-games .search-wrapper .search-icon {
  position: static !important;
  align-self: center !important;
  justify-self: center !important;
  transform: none !important;
}

#steam-games #steam-search-input {
  grid-column: 2 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  line-height: normal !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  box-sizing: border-box !important;
}

#steam-games #steam-search-input:focus {
  background: transparent !important;
  box-shadow: none !important;
}
/* Steam catalog absolute final search icon and edge fade. Keep this at EOF. */
#steam-games {
  --steam-catalog-edge: clamp(18px, 5vw, 28px);
  --steam-edge-fade: clamp(22px, 6vw, 34px);
}

#steam-games .search-wrapper {
  grid-template-columns: 20px minmax(0, 1fr) !important;
}

#steam-games .search-wrapper .search-icon {
  position: relative !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: block !important;
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  color: rgba(143, 198, 255, 0.95) !important;
  opacity: 1 !important;
  z-index: 2 !important;
  pointer-events: none !important;
  transform: none !important;
}

#steam-games #steam-search-input {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

#steam-games .steam-catalog-tabs,
#steam-games #steam-promo-carousel,
#steam-games .steam-cards-row {
  padding-left: var(--steam-catalog-edge) !important;
  padding-right: var(--steam-catalog-edge) !important;
  scroll-padding-left: var(--steam-catalog-edge) !important;
  scroll-padding-right: var(--steam-catalog-edge) !important;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 var(--steam-edge-fade),
    #000 calc(100% - var(--steam-edge-fade)),
    transparent 100%
  ) !important;
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 var(--steam-edge-fade),
    #000 calc(100% - var(--steam-edge-fade)),
    transparent 100%
  ) !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
}

/* Steam absolute last fix: search icon and game-detail favorite button. */
#steam-games .search-wrapper {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 15px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

#steam-games .search-wrapper .search-icon {
  position: static !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: block !important;
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  color: rgba(143, 198, 255, 0.95) !important;
  opacity: 1 !important;
  stroke: currentColor !important;
  fill: none !important;
  transform: none !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

#steam-games #steam-search-input {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  line-height: 52px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#steam-games #steam-search-input:focus {
  background: transparent !important;
  box-shadow: none !important;
}

#steam-game-page #game-pg-fav-btn,
#product-modal.steam-product-modal #modal-fav-btn {
  display: none !important;
}

/* Absolute final fix: desktop background and game-detail DLC hearts. */
html {
  min-height: 100%;
  background-color: #030812 !important;
  background-image:
    radial-gradient(900px 420px at 50% 0, rgba(28, 80, 170, 0.26), transparent 72%),
    linear-gradient(180deg, #050b17 0, #030812 560px, #030812 100%) !important;
  background-repeat: no-repeat !important;
  background-position: center top !important;
  background-size: 100vw 100vh, 100vw 100% !important;
  background-attachment: fixed, fixed !important;
}

body {
  background-color: transparent !important;
}

@media (min-width: 480px) {
  body {
    background-image: none !important;
    background-color: transparent !important;
  }

  #main-menu,
  .home-shell {
    background: transparent !important;
  }
}

#steam-game-page #game-pg-dlc .steam-game-card .fav-btn,
#steam-game-page #game-pg-dlc .apple-card-mini .fav-btn {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

#steam-game-page #game-pg-dlc .steam-game-card,
#steam-game-page #game-pg-dlc .apple-card-mini {
  overflow: hidden !important;
}

/* Absolute final fix 2: keep home desktop background seamless, restore game favorite. */
body {
  background: transparent !important;
}

body > .container,
body > .container > .header,
body > .container .home-shell {
  background: transparent !important;
  background-image: none !important;
}

#steam-game-page #game-pg-fav-btn {
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 42px !important;
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 14px !important;
  background: rgba(8, 16, 31, 0.74) !important;
  color: rgba(255, 255, 255, 0.78) !important;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#steam-game-page #game-pg-fav-btn i {
  display: block !important;
  font-size: 19px !important;
  line-height: 1 !important;
}

#steam-game-page #game-pg-fav-btn.is-active {
  border-color: rgba(255, 83, 128, 0.48) !important;
  background: rgba(255, 45, 95, 0.2) !important;
  color: #ff4f83 !important;
}

/* Profile MVP */
#profile-page {
  padding: 18px 12px 112px;
}

.profile-shell {
  width: min(100%, 620px);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.profile-hero,
.profile-card,
.cart-profile-picker {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(145deg, rgba(25, 45, 86, 0.72), rgba(9, 15, 28, 0.88)),
    rgba(9, 15, 28, 0.84);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.profile-hero {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
}

.profile-avatar,
.profile-user-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(135deg, #2f90ff, #7c3aed);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 14px 26px rgba(32, 126, 255, 0.22);
}

.profile-user-icon {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.24), transparent 38%),
    linear-gradient(145deg, rgba(47, 144, 255, 0.28), rgba(3, 8, 18, 0.78));
  border: 1px solid rgba(120, 181, 255, 0.24);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 12px 28px rgba(47, 144, 255, 0.16);
}

.profile-hero-copy {
  min-width: 0;
}

.profile-kicker,
.profile-muted,
.cart-profile-note {
  color: rgba(220, 232, 255, 0.66);
  font-size: 12px;
  line-height: 1.35;
}

.profile-kicker {
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: rgba(95, 169, 255, 0.92);
}

.profile-name {
  color: #fff;
  font-size: 24px;
  line-height: 1.08;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.profile-stat {
  min-width: 0;
  padding: 13px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.profile-stat span,
.profile-ref-row span {
  display: block;
  color: rgba(220, 232, 255, 0.62);
  font-size: 11px;
  line-height: 1.2;
}

.profile-stat strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-stat.is-hot {
  border-color: rgba(48, 209, 88, 0.36);
  background: rgba(48, 209, 88, 0.09);
}

.profile-stat.is-hot strong,
.cart-summary-discount strong {
  color: #55f28d;
}

.profile-discount-banner {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 20%, rgba(85, 242, 141, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(17, 35, 58, 0.86), rgba(7, 12, 23, 0.9));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.profile-discount-banner span {
  display: block;
  color: rgba(220, 232, 255, 0.68);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile-discount-banner strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 32px;
  line-height: 0.95;
  font-weight: 950;
}

.profile-discount-banner.is-hot strong {
  color: #55f28d;
}

.profile-discount-banner p {
  margin: 0;
  color: rgba(220, 232, 255, 0.76);
  font-size: 13px;
  line-height: 1.35;
}

.profile-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
}

.profile-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.profile-card-title,
.cart-profile-title {
  color: #fff;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 900;
}

.profile-list {
  display: grid;
  gap: 10px;
}

.profile-empty {
  padding: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  color: rgba(220, 232, 255, 0.7);
  font-size: 13px;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.035);
}

.profile-order-row,
.profile-account-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(4, 10, 20, 0.42);
}

.profile-order-title,
.profile-account-title {
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 850;
}

.profile-order-items {
  margin-top: 6px;
  color: rgba(220, 232, 255, 0.78);
  font-size: 12px;
  line-height: 1.35;
}

.profile-order-total {
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.profile-account-form,
.profile-ref-form,
.admin-broadcast-form {
  display: grid;
  gap: 10px;
}

.profile-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-account-form label,
.profile-ref-form label,
.admin-broadcast-form label {
  display: grid;
  gap: 6px;
  color: rgba(220, 232, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.profile-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0 12px;
  background: rgba(3, 8, 18, 0.62);
  color: #fff;
  font: inherit;
  outline: none;
}

.profile-input:focus {
  border-color: rgba(47, 144, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(47, 144, 255, 0.16);
}

.profile-input.is-invalid {
  border-color: rgba(255, 83, 83, 0.82);
  box-shadow: 0 0 0 3px rgba(255, 83, 83, 0.14);
}

.profile-ref-error {
  color: #ff9d9d;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 750;
}

.profile-form-actions,
.profile-account-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-primary-btn,
.profile-secondary-btn,
.profile-account-actions button {
  min-height: 40px;
  border: 0;
  border-radius: 14px;
  padding: 0 14px;
  color: #fff;
  font-weight: 850;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    border-color 0.18s ease;
}

.profile-primary-btn {
  background: linear-gradient(135deg, #2f90ff, #06b6d4);
  box-shadow: 0 14px 26px rgba(47, 144, 255, 0.24);
}

.profile-primary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
  filter: none;
}

.profile-secondary-btn,
.profile-account-actions button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.065);
}

.profile-account-actions .is-danger {
  border-color: rgba(255, 80, 80, 0.24);
  background: rgba(255, 64, 64, 0.12);
  color: #ff8d8d;
}

.profile-primary-btn:hover,
.profile-secondary-btn:hover,
.profile-account-actions button:hover,
.cart-profile-option:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.profile-ref-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(95, 169, 255, 0.18);
  border-radius: 16px;
  background: rgba(47, 144, 255, 0.08);
}

.profile-ref-row strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.admin-broadcast-card {
  border-color: rgba(47, 144, 255, 0.24);
  background:
    radial-gradient(circle at 15% 0%, rgba(47, 144, 255, 0.16), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(6, 182, 212, 0.12), transparent 36%),
    rgba(6, 12, 24, 0.62);
}

.admin-broadcast-textarea {
  min-height: 132px;
  padding: 12px;
  line-height: 1.45;
  resize: vertical;
}

.admin-broadcast-actions {
  align-items: center;
}

.admin-broadcast-counter {
  color: rgba(220, 232, 255, 0.58);
  font-size: 12px;
  font-weight: 750;
}

.admin-broadcast-result {
  padding: 11px 12px;
  border: 1px solid rgba(34, 197, 94, 0.24);
  border-radius: 14px;
  color: #d7fbe4;
  background: rgba(34, 197, 94, 0.12);
  font-size: 13px;
  line-height: 1.35;
}

.admin-broadcast-result.is-error {
  border-color: rgba(239, 68, 68, 0.26);
  color: #ffd0d0;
  background: rgba(239, 68, 68, 0.12);
}

.profile-support-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.cart-profile-picker {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
}

.cart-profile-options {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.cart-profile-options::-webkit-scrollbar {
  display: none;
}

.cart-profile-option {
  flex: 0 0 auto;
  min-width: 138px;
  max-width: 190px;
  min-height: 58px;
  display: grid;
  gap: 3px;
  justify-items: start;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.cart-profile-option span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 850;
}

.cart-profile-option small {
  max-width: 100%;
  color: rgba(220, 232, 255, 0.64);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-profile-option.is-active {
  border-color: rgba(47, 144, 255, 0.72);
  background: rgba(47, 144, 255, 0.14);
}

.cart-summary-discount {
  color: rgba(85, 242, 141, 0.92);
}

@media (max-width: 380px) {
  #profile-page {
    padding-inline: 10px;
  }

  .profile-hero {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 14px;
  }

  .profile-avatar,
  .profile-user-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    font-size: 17px;
  }

  .profile-name {
    font-size: 21px;
  }

  .profile-discount-banner {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .profile-form-row,
  .profile-support-card {
    grid-template-columns: 1fr;
  }
}
