:root {
  --primary: #5a4bff;
  --accent: #00d4ff;
  --bg: #0e0e1a;
  --bg-alt: #181929;
  --bg-dark: #181929;
  --white: #f6faff;
  --gray: #bcc5db;
  --gray-dark: #32344c;
  --glow: 0 0 12px #00e5ff80, 0 0 4px #2228;
}

/* --- HEADER --- */
.site-header {
  width: 100%;
  background: #23273b;
  color: #ffe173;
  position: sticky;
  top: 0; left: 0;
  z-index: 1000;
  box-sizing: border-box;
  border-radius: 0;
  margin: 0;
  padding: 0;
  box-shadow: 0 4px 32px #181e2f48;
  border-bottom: 1.7px solid #2e314c;
  transition: background 0.2s;
}

.header-desktop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  min-height: 68px;
  padding: 0 34px 0 34px;
  background: linear-gradient(90deg, #1b1f33 0%, #23273b 100%);
  box-shadow: 0 4px 18px #0004;
}

.logo {
  font-size: 2.05rem;
  font-weight: 900;
  color: #ffe173;
  letter-spacing: 0.06em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 2px 18px #ffe17333;
  filter: drop-shadow(0 2px 9px #ffe17318);
  line-height: 1;
  margin-right: 24px;
}

.header-left, .header-center, .header-right {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.header-center { flex: 1 1 auto; justify-content: center; }
.header-left { min-width: 160px; }
.header-right { gap: 1.2rem; }

/* Универсальный стиль для всех элементов header-right */
.header-right .header-btn,
.header-right .btn-primary,
.header-right .btn-secondary,
.header-right .cart-btn,
.header-right .dropdown-toggle,
.header-right .balance-toggle {
  background: #202342;
  color: #ffe173;
  font-weight: 600;
  border-radius: 13px;
  border: 1.3px solid #ffe17360;
  box-shadow: 0 0 14px #ffe17328, 0 2px 8px #ffe17313;
  font-size: 1.07rem;
  letter-spacing: 0.01em;
  padding: 0.51rem 1.18rem;
  cursor: pointer;
  transition: background 0.15s, color 0.13s, box-shadow 0.16s, border 0.15s;
  display: flex;
  align-items: center;
  min-width: 62px;
  line-height: 1.08;
  position: relative;
}

/* Ховер для всех */
.header-right .header-btn:hover,
.header-right .btn-primary:hover,
.header-right .btn-secondary:hover,
.header-right .cart-btn:hover,
.header-right .dropdown-toggle:hover,
.header-right .balance-toggle:hover {
  background: #ffe17323;
  color: #ffe173;
  border-color: #ffe173;
  box-shadow: 0 0 24px #ffe17388, 0 2px 18px #ffe17311;
}

/* Для .btn-primary — чуть другой фон */
.header-right .btn-primary {
  background: linear-gradient(90deg,#ffe173,#f9c23c 93%);
  color: #23273b;
}
.header-right .btn-primary:hover {
  background: linear-gradient(90deg,#ffe173 10%,#fff7b5 90%);
  color: #23273b;
}

/* Для .btn-secondary — border ярче при ховере */
.header-right .btn-secondary {
  border: 1.4px solid #ffe173cc;
}
.header-right .btn-secondary:hover {
  background: #ffe173;
  color: #23273b;
  border-color: #ffe173;
}

/* Для .cart-btn — иконка и бейдж */
.header-right .cart-btn .cart-icon {
  font-size: 1.31em;
  margin-right: 0.09em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-right .cart-btn .cart-badge {
  position: absolute;
  top: -9px;
  right: -13px;
  min-width: 19px;
  height: 19px;
  background: linear-gradient(135deg, #ffe173 0%, #ffd944 100%);
  color: #23273b;
  font-size: 13px;
  font-weight: 800;
  padding: 0 6px;
  border-radius: 13px;
  box-shadow: 0 0 7px #ffe17377;
  border: 2px solid #22243a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  letter-spacing: 0.01em;
  pointer-events: none;
  line-height: 1.19;
  transition: background 0.13s, color 0.11s;
}
.header-right .cart-btn .cart-total {
  color: #ffe173;
  font-size: 14px;
  font-weight: 700;
  margin-left: 7px;
  filter: drop-shadow(0 0 3px #ffe17377);
  letter-spacing: 0.01em;
  min-width: 46px;
  text-align: right;
}

/* Для .dropdown-toggle и .balance-toggle — стрелочка */
.header-right .dropdown-toggle:after,
.header-right .balance-toggle:after {
  content: "▼";
  font-size: 0.85em;
  margin-left: 9px;
  color: #ffe173;
  opacity: 0.73;
  filter: drop-shadow(0 0 3px #ffe17377);
}

/* Для .balance-toggle — выделение баланса */
.header-right .balance-toggle .user-balance {
  font-weight: 600;
  color: #ffe173 !important;
  margin-right: 4px;
}

/* --- DROPDOWNS --- */
.dropdown {
  position: relative;
}
.dropdown-toggle {
  background: #202342;
  color: #ffe173;
  padding: 0.51rem 1.18rem;
  border-radius: 13px;
  border: 1.3px solid #ffe17360;
  font-size: 1.07rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  gap: 7px;
  box-shadow: 0 0 10px #ffe17314;
  display: flex; align-items: center;
  transition: background 0.13s, color 0.12s, box-shadow 0.16s;
  min-width: 62px;
  position: relative;
}
.dropdown-toggle:after {
  content: "▼";
  font-size: 0.85em;
  margin-left: 9px;
  color: #ffe173;
  opacity: 0.73;
  filter: drop-shadow(0 0 3px #ffe17377);
}
.dropdown.open .dropdown-toggle,
.dropdown-toggle:hover {
  background: #ffe17313;
  color: #ffe173;
  border-color: #ffe173;
}
.dropdown-menu {
  display: none;
  position: absolute;
  left: 0; top: 117%;
  background: #242750;
  border-radius: 15px;
  min-width: 210px;
  box-shadow: 0 7px 28px #ffe17328, 0 2px 12px #0007;
  z-index: 130;
  padding: 8px 0;
  border: 1.3px solid #ffe17324;
  font-size: 1.04rem;
}
.dropdown.open .dropdown-menu {
  display: block;
}
.dropdown-menu a {
  display: block;
  padding: 12px 25px;
  color: #ffe173;
  text-decoration: none;
  border-radius: 9px;
  transition: background 0.12s, color 0.13s;
  font-weight: 500;
}
.dropdown-menu a:hover {
  background: #ffe17319;
  color: #ffe173;
}

.currency-select {
  display: flex;
  align-items: center;
  position: relative;
}
.currency-dropdown {
  appearance: none;
  background: #202342;
  color: #ffe173;
  border: 1.2px solid #ffe17388;
  border-radius: 9px;
  font-size: 1.05em;
  padding: 9px 34px 9px 14px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 0 8px #ffe17312;
  outline: none;
  transition: border 0.15s, background 0.17s, color 0.15s;
}

/* При фокусе делаем бордер ярче и текст более читаемым */
.currency-dropdown:focus {
  border-color: #ffe173;
  color: #ffe173;
  background: #181929;
}

/* Делаем выпадающие опции видимыми */
.currency-dropdown option {
  background: #23273b;
  color: #ffe173;
}

/* Для выбора/наведения (работает не везде, но не мешает) */
.currency-dropdown option:checked,
.currency-dropdown option:hover,
.currency-dropdown option:focus {
  background: #2e314c;
  color: #ffe173;
}

/* Стрелочка */
.currency-select:after {
  content: "▼";
  position: absolute;
  right: 15px;
  color: #ffe173cc;
  font-size: 0.85em;
  pointer-events: none;
  top: 50%;
  transform: translateY(-50%);
}


/* --- SEARCH --- */
.search-form {
  display: flex;
  background: #202342;
  border-radius: 12px;
  border: 1.3px solid #353760;
  width: 340px;
  max-width: 55vw;
  overflow: hidden;
  box-shadow: 0 2px 15px #ffe17310;
  transition: box-shadow 0.17s;
}
.search-form input {
  flex: 1 1 auto;
  background: transparent;
  border: none;
  color: #ffe173;
  font-size: 1.07rem;
  padding: 11px 15px;
  outline: none;
  font-family: inherit;
}
.search-form input::placeholder { color: #ffe17350; }
.search-form button {
  background: none;
  border: none;
  color: #ffe173;
  font-size: 1.43rem;
  cursor: pointer;
  padding: 0 13px 0 3px;
  display: flex;
  align-items: center;
  transition: color 0.16s;
}
.search-form button:hover {
  color: #fff;
}

/* --- КНОПКИ --- */
.btn-primary,
.header-right .btn-primary {
  background: linear-gradient(90deg,#ffe173,#f9c23c 93%);
  color: #23273b;
  font-weight: bold;
  padding: 0.51rem 1.32rem;
  border-radius: 13px;
  text-decoration: none;
  border: none;
  font-size: 1.11rem;
  letter-spacing: 0.01em;
  transition: background 0.15s, color 0.13s, box-shadow 0.16s;
  cursor: pointer;
  box-shadow: 0 0 14px #ffe17328, 0 2px 8px #ffe17313;
  position: relative;
}
.btn-primary:hover,
.header-right .btn-primary:hover {
  background: linear-gradient(90deg,#ffe173 10%,#fff7b5 90%);
  color: #23273b;
  box-shadow: 0 0 24px #ffe17388, 0 2px 18px #ffe17311;
}

.btn-secondary,
.header-right .btn-secondary {
  background: #22243a;
  color: #ffe173;
  padding: 0.44rem 1.18rem;
  border-radius: 13px;
  text-decoration: none;
  border: 1.4px solid #ffe173cc;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.07rem;
  transition: 
    background 0.15s,
    color 0.13s,
    border 0.15s,
    box-shadow 0.17s;
  box-shadow: 0 0 13px #ffe17318;
}
.btn-secondary:hover,
.header-right .btn-secondary:hover {
  background: #ffe173;
  color: #23273b;
  border-color: #ffe173;
  box-shadow: 0 0 22px #ffe17355;
}

.cart-btn {
  background: #202342;
  color: #ffe173;
  font-weight: 600;
  padding: 0.51rem 1.18rem;
  border-radius: 13px;
  border: 1.3px solid #ffe17360;
  cursor: pointer;
  font-size: 1.07rem;
  letter-spacing: 0.01em;
  transition: background 0.13s, color 0.12s, box-shadow 0.16s;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 62px;
  line-height: 1.08;
  position: relative;
  box-shadow: 0 0 10px #ffe17314;
}
.cart-btn:hover {
  background: #ffe17323;
  color: #ffe173;
  border-color: #ffe173;
  box-shadow: 0 0 16px #ffe17324, 0 2px 12px #ffe17311;
}

.cart-icon {
  font-size: 1.31em;
  margin-right: 0.09em;
  position: relative; 
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-badge {
  position: absolute;
  top: -9px;
  right: -13px;
  min-width: 19px;
  height: 19px;
  background: linear-gradient(135deg, #ffe173 0%, #ffd944 100%);
  color: #23273b;
  font-size: 13px;
  font-weight: 800;
  padding: 0 6px;
  border-radius: 13px;
  box-shadow: 0 0 7px #ffe17377;
  border: 2px solid #22243a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  letter-spacing: 0.01em;
  pointer-events: none;
  line-height: 1.19;
  transition: background 0.13s, color 0.11s;
}

.cart-btn .cart-total {
  color: #ffe173;
  font-size: 13px;
  font-weight: 700;
  margin-left: 7px;
  filter: drop-shadow(0 0 3px #ffe17377);
  letter-spacing: 0.01em;
  min-width: 46px;
  text-align: right;
}

/* Мобильная шапка */
:root {
  --primary: #5a4bff;
  --accent: #ffe173;
  --bg: #23273b;
  --bg-alt: #181929;
  --white: #f6faff;
}

.header-mobile { display: none; }

.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 4px;
  z-index: 1200;
  border-radius: 7px;
  transition: background 0.17s;
}
.burger-btn span {
  display: block;
  width: 28px;
  height: 3.5px;
  background: var(--accent);
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.24s;
  box-shadow: 0 0 5px #ffe17377;
}
.burger-btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(38deg);
}
.burger-btn.active span:nth-child(2) {
  opacity: 0;
}
.burger-btn.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-38deg);
}

/* --- Современное мобильное меню --- */
.mobile-nav {
  position: fixed;
  left: 0; right: 0; top: 0;
  width: 100vw;
  height: 50vh;
  max-height: 50vh;
  min-height: 270px;
  background: rgba(35,39,59, 0.97);
  border-radius: 0 0 26px 26px;
  transform: translateY(-120%);
  opacity: 0;
  z-index: 1100;
  pointer-events: none;
  box-shadow: 0 18px 54px #ffe17318, 0 1.5px 0.5px #0009;
  transition: transform 0.33s cubic-bezier(.33,1.34,.42,1), opacity 0.27s;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
}
.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-content {
  margin: 0;
  padding: 28px 7vw 20px 7vw;
  display: flex;
  flex-direction: column;
  gap: 23px;
  overflow-y: auto;
  height: 100%;
  max-height: 100%;
}
.mobile-dropdown .dropdown-toggle {
  width: 100%;
  padding: 13px 12px;
  background: var(--bg-alt);
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  color: var(--white);
  font-size: 1.13rem;
  text-align: left;
  cursor: pointer;
  margin-bottom: 3px;
  box-shadow: 0 2px 11px #ffe17319;
  display: flex;
  align-items: center;
}
.mobile-auth-block {
  display: flex;
  flex-direction: column;
  gap: 17px;
  align-items: flex-start;
}
.btn-primary, .cart-btn {
  margin-bottom: 3px;
}
.mobile-nav-content::-webkit-scrollbar {
  width: 8px;
  background: #22293a00;
}
.mobile-nav-content::-webkit-scrollbar-thumb {
  background: #ffe17340;
  border-radius: 7px;
}

@media (max-width: 900px) {
  .header-desktop { display: none !important; }
  .header-mobile { display: block !important; }
  .site-header { padding: 0; }
  .header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 2vw;
    background: var(--bg);
    min-height: 55px;
  }
  .logo {
    font-size: 1.23rem !important;
    margin-right: 0;
    color: var(--accent);
    text-shadow: 0 2px 16px #ffe17333;
  }
  .burger-btn { display: flex !important; }
  .cart-btn {
    font-size: 1.12rem;
    padding: 10px 18px;
    border-radius: 13px;
    min-width: 60px;
    color: var(--accent);
    background: var(--bg-alt);
    border: 1.5px solid var(--accent);
    box-shadow: 0 2px 11px #ffe17311;
  }
}

/* --- Аккуратное оформление блока оплаты балансом --- */
.checkout-option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #202342;
  border-radius: 9px;
  padding: 10px 16px;
  margin: 12px 0 8px 0;
  font-size: 15px;
  box-shadow: 0 2px 8px #ffe17311;
  border: 1.2px solid #313551;
  min-height: 44px;
}

.checkout-option label {
  font-weight: 600;
  color: #ffe173;
  cursor: pointer;
  margin-bottom: 0;
  margin-right: 2px;
  margin-left: 2px;
  font-size: 1.24em;
}

#useBalanceCheckbox {
  accent-color: #ffe173;
  width: 22px;
  height: 22px;
  margin-right: 2px;
  margin-left: 2px;
  cursor: pointer;
  vertical-align: middle;
  transition: box-shadow 0.15s;
  box-shadow: 0 0 0px #ffe17300;
}
#useBalanceCheckbox:focus {
  outline: none;
  box-shadow: 0 0 0 2px #ffe17355;
}
#useBalanceCheckbox:hover {
  box-shadow: 0 0 0 2px #ffe17388;
}

/* Баланс пользователя — мини-бейдж */
#userBalanceInfo {
  color: #ffe173;
  font-weight: 600;
  font-size: 14px;
  border-radius: 7px;
  padding: 2px 2px;
  margin-left: 2px;
  margin-right: 0;
  display: inline-block;
  text-align: left;
  letter-spacing: 0.01em;
}

/* --- Современное мобильное меню --- */
.mobile-nav {
  position: fixed;
  left: 0; right: 0; top: 0;
  width: 100vw;
  height: 50vh;
  max-height: 50vh;
  min-height: 270px;
  background: rgba(35,39,59, 0.97);
  border-radius: 0 0 26px 26px;
  transform: translateY(-120%);
  opacity: 0;
  z-index: 1100;
  pointer-events: none;
  box-shadow: 0 18px 54px #ffe17318, 0 1.5px 0.5px #0009;
  transition: transform 0.33s cubic-bezier(.33,1.34,.42,1), opacity 0.27s;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
}
.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-content {
  margin: 0;
  padding: 28px 7vw 20px 7vw;
  display: flex;
  flex-direction: column;
  gap: 23px;
  overflow-y: auto;
  height: 100%;
  max-height: 100%;
}
.mobile-dropdown .dropdown-toggle {
  width: 100%;
  padding: 13px 12px;
  background: var(--bg-alt);
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  color: var(--white);
  font-size: 1.13rem;
  text-align: left;
  cursor: pointer;
  margin-bottom: 3px;
  box-shadow: 0 2px 11px #ffe17319;
  display: flex;
  align-items: center;
}
.mobile-auth-block {
  display: flex;
  flex-direction: column;
  gap: 17px;
  align-items: flex-start;
}
.btn-primary, .cart-btn {
  margin-bottom: 3px;
}
.mobile-nav-content::-webkit-scrollbar {
  width: 8px;
  background: #22293a00;
}
.mobile-nav-content::-webkit-scrollbar-thumb {
  background: #ffe17340;
  border-radius: 7px;
}

@media (max-width: 900px) {
  .header-desktop { display: none !important; }
  .header-mobile { display: block !important; }
  .site-header { padding: 0; }
  .header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 2vw;
    background: var(--bg);
    min-height: 55px;
  }
  .logo {
    font-size: 1.23rem !important;
    margin-right: 0;
    color: var(--accent);
    text-shadow: 0 2px 16px #ffe17333;
  }
  .burger-btn { display: flex !important; }
  .cart-btn {
    font-size: 1.12rem;
    padding: 10px 18px;
    border-radius: 13px;
    min-width: 60px;
    color: var(--accent);
    background: var(--bg-alt);
    border: 1.5px solid var(--accent);
    box-shadow: 0 2px 11px #ffe17311;
  }
}

/* --- Стиль для модалки логина, расположенной сбоку --- */
.login-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 25000;
  background: rgba(14,18,37,0.90);
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  transition: background 0.25s;
  animation: cartFadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- Содержимое модалки логина --- */
.login-modal-content {
  width: 410px;
  max-width: 100vw;
  height: 100vh;
  background: #23273b;
  box-shadow: -8px 0 32px #000d;
  border-radius: 18px 0 0 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: cartSlideIn 0.32s cubic-bezier(.37,1.47,.64,1);
  padding: 0;
  overflow: hidden;
}
.login-checkout-window {
  width: 410px;
  max-width: 100vw;
  height: 100vh;
  background: #23273b;
  box-shadow: -8px 0 32px #000d;
  border-radius: 18px 0 0 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: cartSlideIn 0.32s cubic-bezier(.37,1.47,.64,1);
  padding: 0;
  overflow: hidden;
  min-width: 340px;
  margin: 0;
  border: none;
}
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Закрытие модалки */
.login-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #c06464;
  font-size: 2.3rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.login-modal-close:hover {
  color: #fff;
}

/* Заголовок модалки */
.login-modal-title {
  font-size: 1.44rem;
  color: #ffe173;
  font-weight: bold;
  margin-bottom: 20px; /* Отступ между заголовком и вкладками */
  padding: 0;
}

/* Вкладки Login / Register */
.login-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px; /* Отступ между вкладками и остальной частью формы */
}

.login-tab {
  flex: 1;
  padding: 10px 0;
  background: #22283b;
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  border-radius: 12px 12px 0 0;
  cursor: pointer;
  opacity: 0.6;
  transition: background 0.2s, opacity 0.2s, transform 0.15s;
}

.login-tab:hover {
  opacity: 1;
  background: #384585;
  transform: translateY(-2px) scale(1.04);
}

.login-tab.active {
  background: #3051ad;
  color: #fff;
  opacity: 1;
  transform: none;
}

/* Поля ввода */
#authForm input {
  display: block;
  width: 92%;
  background: #191e2e;
  border: 1px solid #404767;
  border-radius: 10px;
  color: #fff;
  padding: 12px;
  margin-bottom: 14px;
  font-size: 16px;
  transition: border 0.15s;
}

#authForm input:focus {
  border: 1.5px solid #3051ad;
  outline: none;
}

/* Кнопка Continue */
.login-submit-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(90deg, #3051ad 70%, #6a56b7);
  color: #fff;
  border: none;
  font-size: 17px;
  font-weight: 700;
  border-radius: 10px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: background 0.2s, transform 0.13s;
}

.login-submit-btn:hover,
.login-submit-btn:focus {
  background: linear-gradient(90deg, #4268df 70%, #8b75db);
  transform: translateY(-2px) scale(1.02);
}

/* Кнопки входа через Google и Discord */
.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;  /* Отступ между кнопками */
}

.oauth-btn {
  width: 100%;
  padding: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

/* Google кнопка */
.google-btn {
  background-color: #db4437;  /* Красный цвет для Google */
}

.google-btn:hover {
  background-color: #c1351d;  /* Темный красный при наведении */
  transform: scale(1.05);  /* Легкое увеличение кнопки при наведении */
}

/* Discord кнопка */
.discord-btn {
  background-color: #7289da;  /* Синий цвет для Discord */
}

.discord-btn:hover {
  background-color: #5b6e96;  /* Темный синий при наведении */
  transform: scale(1.05);  /* Легкое увеличение кнопки при наведении */
}

/* Разделитель "or" */
.login-divider {
  text-align: center;
  color: #ccc;
  margin: 20px 0;
  font-size: 1.3rem;
}

/* Сообщение об ошибке */
.login-message {
  color: #e43a43;
  font-size: 14px;
  margin-top: 8px;
  min-height: 22px;
}
#checkout-modal .modal-login-btn {
  width: auto; /* Измените ширину только внутри модалки */
  max-width: 300px;  /* Пример максимальной ширины */
  margin: 0 auto;  /* Центрируем кнопку */
}

.btn-primary:hover {
  background-color: #0056b3;
}

/* Основной стиль для модалки логина */
.login-modal-content {
  background-color: #23273b;
  padding: 36px 32px;
  border-radius: 12px;
  width: 400px;
  max-width: 95vw;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.13);
  animation: slideIn 0.32s cubic-bezier(0.37, 1.47, 0.64, 1);
  overflow: hidden;
}

/* Плавное появление */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.logo-svg {
  width: 130px;  /* Устанавливаем нужный размер */
  height: auto; /* Сохраняем пропорции */
}
.checkout-option {
  margin: 15px 0;
  font-size: 15px;
  display: flex;
  align-items: center;
}
.checkout-option input[type="checkbox"] {
  margin-right: 7px;
  transform: scale(1.3);
}
#balanceInfo {
  font-size: 14px;
  color: #f1b60a;
  margin-bottom: 5px;
}


.balance-dropdown:hover {
  background: #24263b;
  color: #ffeaa0;
}
.balance-toggle {
  background: #202342;
  color: #ffe173;
  font-weight: 600;
  padding: 0.51rem 1.18rem;
  border-radius: 13px;
  border: 1.3px solid #ffe17360;
  cursor: pointer;
  font-size: 1.07rem;
  letter-spacing: 0.01em;
  transition: background 0.13s, color 0.12s, box-shadow 0.16s;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 62px;
  line-height: 1.08;
  position: relative;
  box-shadow: 0 0 10px #ffe17314;
}
.user-balance {
  font-weight: 600;
  color: #ffe173 !important;
}

.balance-dropdown-menu a:hover {
  background: #2f313e;
}

.games-megamenu-dropdown {
  position: absolute;
  top: 100%;
  width: 100vw; /* вместо 780px */
  min-width: 780px;
  left: 0;
  right: 0;
  background: #181a20;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  border-radius: 0 0 14px 14px;
  z-index: 99;
  display: flex;
  min-height: 280px;
  padding: 0;
  box-sizing: border-box;
}
.games-megamenu-list {
  min-width: 280px;
  border-right: 1px solid #272a36;
  background: #17181c;
  padding: 18px 0;
  max-height: 380px;
  overflow-y: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.games-megamenu-game {
  padding: 10px 26px 10px 18px;
  font-size: 17px;
  color: #d1d6e0;
  cursor: pointer;
  border-radius: 7px 0 0 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .15s;
}
.games-megamenu-game.active,
.games-megamenu-game:hover {
  background: #22243a;
  color: #ffe173;
}
.games-megamenu-categories-scrollwrap {
  flex: 1 1 0;
  width: 100%; 
  max-width: unset !important;
  min-width: 0;
  overflow-x:  hidden;
  overflow-y: visible;
}
.games-megamenu-categories {
  padding: 24px 0 24px 32px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%; 
}
.megamenu-cols {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  width: 100%; 
  min-width: 0;
}
.megamenu-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 140px; /* можно уменьшить до 120-130, если хочется больше влезло */
  /* width: 140px;  — можно явно указать, чтобы был четкий фиксированный размер колонок */
  max-width: 170px;
}
.megamenu-category {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 2px;
  line-height: 1.3;
}
.megamenu-category > a {
  color: #ffe173;
  text-decoration: none;
}
.megamenu-category > a:hover {
  text-decoration: underline;
}
.megamenu-subcategories {
  padding-left: 18px;
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.megamenu-subcategories a {
  color: #b9bbcc;
  font-size: 15px;
  text-decoration: none;
}
.megamenu-subcategories a:hover {
  text-decoration: underline;
}
.megamenu-all-link {
  margin-bottom: 22px;
  font-size: 15px;
  font-weight: 500;
}
.megamenu-all-link a {
  color: #ffd45e;
  text-decoration: none;
}
.megamenu-all-link a:hover {
  text-decoration: underline;
}
.games-megamenu-toggle {
  background: linear-gradient(90deg, #242847 70%, #131520 100%);
  color: #ffe173;
  border: 1.5px solid #32345b;
  outline: none;
  font: inherit;
  cursor: pointer;
  height: 44px;
  font-size: 18px;
  padding: 0 28px;
  border-radius: 9px;
  margin-left: 15px;
  align-items: center;
  display: flex;
  transition: background .13s, color .13s;
  min-width: 150px; /* Делаем явную ширину для стабильности */
  justify-content: center;
}
.games-megamenu-toggle:hover {
  background: #23243b;
  color: #ffeaa0;
}

.games-megamenu-close {
  background: linear-gradient(90deg, #242847 70%, #131520 100%);
  color: #aaa;
  border: 1.5px solid #32345b;
  outline: none;
  font: inherit;
  cursor: pointer;
  height: 44px;
  font-size: 22px;
  padding: 0 28px;
  border-radius: 9px;
  align-items: center;
  display: flex;
  min-width: 150px;
  justify-content: center;
  margin-left: 15px;
  transition: background .13s, color .13s;
}
.games-megamenu-close:hover {
  background: #2b2c45;
  color: #ffe173;
}










@media (max-width: 900px) { 
  .games-megamenu-mobile-dropdown {
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100vw;
    height: 100vh;
    background: #181a20;
    z-index: 1111;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 60px #000c;
    animation: slideDown 0.22s;
    /* для Safari, чтобы вложенный flex работал корректно */
    min-height: 0;
    max-height: 100vh;
  }
  .games-megamenu-mobile-header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px 10px 22px;
    border-bottom: 1px solid #22273a;
    font-size: 1.2em;
    color: #ffe173;
    background: #181a20;
    min-height: 62px;
  }
  .games-megamenu-mobile-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100vh;
    overflow-y: auto;
    padding: 16px 18px 28px 18px;
    display: flex;
    flex-direction: column;
    gap: 23px;
  }
  .games-megamenu-mobile-game {
    margin-bottom: 20px;
  }
  .games-megamenu-mobile-game-link {
    display: block;
    font-weight: bold;
    color: #ffe173;
    font-size: 1.08em;
    margin-bottom: 6px;
  }
  .games-megamenu-mobile-categories {
    margin-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .games-megamenu-mobile-category-link {
    color: #f2f2f2;
    font-size: 1em;
    margin-bottom: 2px;
  }
  .games-megamenu-mobile-category-link:hover {
    color: #ffd45e;
    text-decoration: underline;
  }
  .games-megamenu-mobile-subcategories {
    margin-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .games-megamenu-mobile-subcategory-link {
    color: #b9bbcc;
    font-size: .98em;
  }
  .games-megamenu-mobile-subcategory-link:hover {
    color: #ffe173;
    text-decoration: underline;
  }
  body.megamenu-mobile-open {
    overflow: hidden !important;
  }
  @keyframes slideDown {
    from { transform: translateY(-60px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }
}


.header-left,
.header-right { flex-shrink: 0; }
.header-center {
  flex: 1 1 auto; /* Убираем центрирование и даем место для поиска */
  justify-content: flex-start; /* Выравнивание элементов слева */ 
}

.search-form {
  margin-left: 25px; /* Расстояние между кнопкой Games и поиском */
}


/* 3. Кнопка Games */
.games-megamenu-toggle {
  max-width: 150px;                         /* не растёт */
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* 4. Адаптивные зазоры и паддинги */
@media (max-width: 1250px) {
  .header-right { gap: .6rem; }
  .header-right .btn-primary,
  .header-right .btn-secondary {
    padding: .45rem 1rem;
    font-size: .96rem;
  }
  .search-form { max-width: 45vw; }
}
@media (max-width: 1100px) {
  .search-form { max-width: 40vw; }
}
@media (max-width: 1000px) {            /* чуть раньше «прячем» поиск */
  .search-form { display: none; }
}


.header-center .search-form   {          /* только десктоп! */
  flex: 1 1 clamp(180px, 32vw, 360px);   /*   ↑   ↑   ↑
                                            min  mid   max */
  width: auto;                           /* убираем фикс 340 px */
  max-width: 60%;                       /* чтобы не вылезал */
}

/* 2. Скрываем поиск ТОЛЬКО в десктоп-шапке,
      мобильный (в бургер-меню) остаётся */
@media (max-width: 1000px) {
  .header-desktop .search-form { display: none; }
}

/* 3. Немного уменьшаем зазоры и паддинги на диапазоне 1000-1250 px,
      чтобы кнопки раньше «подсушивались», а не залезали друг на друга */
@media (max-width: 1250px) and (min-width: 1001px) {
  .header-left, .header-center, .header-right { gap: 0.75rem; }
  .dropdown-toggle,
  .btn-primary,
  .btn-secondary,
  .cart-btn {
    font-size: 0.97rem;
    padding: 0.45rem 1rem;
  }
}

/* 4. Разрешаем правому блоку переноситься второй строкой,
      если ОЧЕНЬ мало места (опционально, можно убрать) */
.header-right { flex-wrap: wrap; row-gap: 0.5rem; }











/* ==== MODERN CART MODAL ==== */
.cart-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 25000;
  background: rgba(14,18,37,0.90);
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  transition: background 0.25s;
  animation: cartFadeIn 0.3s;
}
@keyframes cartFadeIn {
  from { background: rgba(14,18,37,0); }
  to   { background: rgba(14,18,37,0.90);}
}
.cart-modal {
  width: 410px;
  max-width: 100vw;
  height: 100vh;
  background: #23273b;
  box-shadow: -8px 0 32px #000d;
  border-radius: 18px 0 0 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: cartSlideIn 0.32s cubic-bezier(.37,1.47,.64,1);
  padding: 0;
  overflow: hidden;
}
@keyframes cartSlideIn {
  from { transform: translateX(100%);}
  to   { transform: translateX(0);}
}

/* Закрытие */
.cart-modal-close {
  position: absolute;
  right: 19px;
  top: 19px;
  background: none;
  border: none;
  color: #ff8484;
  font-size: 2.18rem;
  cursor: pointer;
  z-index: 3;
  padding: 0;
  line-height: 1;
  transition: color 0.14s;
}
.cart-modal-close:hover { color: #fff; }

.cart-modal-title {
  font-size: 1.44rem;
  color: #ffe173;
  font-weight: bold;
  margin: 0;
  margin-bottom: 0;
  padding: 28px 27px 0 27px;
  text-align: left;
  letter-spacing: 0.01em;
  line-height: 1.13;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.cart-modal-count {
  font-size: 1.05rem;
  color: #fff;
  font-weight: 500;
  margin-top: 3px;
  margin-left: 1px;
  margin-bottom: 7px;
  opacity: 0.88;
  line-height: 1;
  padding-bottom: 0;
}

/* ==== Список товаров */
.cart-modal-list-wrapper {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 10px 0 13px 0;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #23273b #141625;
}
.cart-modal-list-wrapper::-webkit-scrollbar {
  width: 8px;
  background: #1a1d29;
  border-radius: 10px;
}
.cart-modal-list-wrapper::-webkit-scrollbar-thumb {
  background: #23273b;
  border-radius: 10px;
}
.cart-modal-list-wrapper::-webkit-scrollbar-thumb:hover {
  background: #353868;
}

/* ==== Карточка товара */
.cart-item {
  background: #22243a;
  border-radius: 15px;
  padding: 17px 21px 14px 21px;
  margin: 0 14px 14px 14px;
  box-shadow: 0 2px 12px 0 #0002;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.cart-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.cart-item-title {
  font-size: 1.07rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
  margin-right: 5px;
  word-break: break-word;
}
.cart-item-price {
  font-size: 1.01rem;
  color: #ffe173;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 7px;
}
.cart-item .old-price {
  color: #a8a9b5;
  text-decoration: line-through;
  font-size: 0.99em;
}
.cart-item .final-price {
  color: #ffe173;
  font-weight: 700;
  font-size: 1.11em;
}
.cart-options {
  padding-left: 0;
  margin: 5px 0 0 0;
  list-style: none;
}
.cart-options li {
  font-size: 0.97em;
  color: #cfd7f5;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-game {
  color: #9aaad3;
  font-size: 0.97em;
  margin-bottom: 2px;
}
.cart-eta {
  color: #ffe173;
  font-size: 0.96em;
  margin-top: 3px;
}
.modal-remove-btn {
  background: none;
  border: none;
  color: #ff5b5b;
  font-size: 1.09em;
  padding: 3px 8px 3px 3px;
  cursor: pointer;
  border-radius: 7px;
  transition: background 0.11s;
  margin-top: 8px;
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 3px;
}
.modal-remove-btn:hover {
  background: #321e25;
  color: #fff;
}
.modal-remove-btn::before {
  content: '🗑 ';
  font-size: 1.1em;
}

/* ==== Пустая корзина ==== */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffe173;
  font-size: 1.14em;
  min-height: 270px;
  padding-top: 22vh;
  opacity: 0.84;
  text-align: center;
  gap: 13px;
}
.cart-empty-emoji {
  font-size: 2.1em;
  margin-bottom: 3px;
  opacity: 0.7;
}

/* ==== Summary (footer) ==== */
.cart-summary {
  position: sticky;
  bottom: 0; left: 0;
  background: #23273b;
  margin: 0;
  padding: 17px 27px 20px 27px;
  border-radius: 0 0 18px 0;
  border-top: 1px solid #2e314c;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
  min-height: 1px;
}

/* ==== Промокод ==== */
.cart-promo {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 0;
}
.cart-promo input[type="text"] {
  padding: 7px 10px;
  border-radius: 7px;
  border: 1px solid #44475a;
  background: #252745;
  color: #f4f5fb;
  font-size: 1em;
  width: 120px;
}
.promo-btn {
  border: none;
  border-radius: 7px;
  font-size: 1em;
  padding: 7px 15px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.16s, color 0.13s;
  box-shadow: none;
  margin-left: 0;
  margin-right: 0;
  outline: none;
}
.promo-btn-apply {
  background: linear-gradient(90deg, #ffe173 0%, #ffdb55 100%);
  color: #23273b;
  box-shadow: 0 2px 8px #ffe17333;
  font-weight: 700;
}
.promo-btn-apply:hover {
  background: linear-gradient(90deg, #ffeb6a 0%, #ffcd48 100%);
  color: #181929;
}
.promo-btn-remove {
  background: linear-gradient(90deg, #ff7272 0%, #d92424 100%);
  color: #fff;
  font-size: 1.11em;
  padding: 7px 13px 7px 13px;
  margin-left: 2px;
}
.promo-btn-remove:hover {
  background: linear-gradient(90deg, #ca1111 0%, #a91212 100%);
  color: #fff;
}

/* === Сообщение о промокоде: нет сообщения — нет отступа! === */
.promo-status {
  margin-top: 0;
  font-size: 0.99em;
  color: #34db34;
  font-weight: 500;
  min-height: 0;
  padding-left: 2px;
  transition: min-height 0.2s, margin 0.18s;
  line-height: 1.25;
  opacity: 0;
  height: 0;
  overflow: hidden;
}
.promo-status:not(:empty) {
  margin-top: 7px;
  min-height: 22px;
  opacity: 1;
  height: auto;
  overflow: visible;
}

/* ==== Breakdown ==== */
.cart-total-breakdown {
  background: #202342;
  border-radius: 9px;
  padding: 7px 13px 7px 13px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.98em;
  margin-bottom: 2px;
}
.cart-subtotal, .cart-discount, .cart-total-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.97em;
}
.cart-discount span:last-child {
  color: #ff7d7d;
  font-weight: 500;
}
.cart-total-main {
  font-size: 1.15em;
  font-weight: bold;
  color: #ffe173;
  border-top: 1px solid #373a5c;
  padding-top: 7px;
}

/* ==== Checkout ==== */
.checkout-btn {
  margin-top: 6px;
  width: 100%;
  padding: 12px 0 12px 0;
  font-size: 1.13em;
  font-weight: bold;
  background: linear-gradient(90deg, #ffe173 0%, #ffc453 100%);
  color: #23273b;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 11px #ffb7001a;
  transition: background 0.14s, color 0.13s;
  letter-spacing: 0.01em;
  outline: none;
}
.checkout-btn:hover, .checkout-btn:focus {
  background: linear-gradient(90deg, #ffc453 0%, #ffe173 100%);
  color: #12142b;
}

@media (max-width: 700px) {
  .cart-modal {
    width: 100vw !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    padding: 0;
  }
  .cart-summary, .cart-modal-title { padding-left: 10px; padding-right: 10px; }
  .cart-item { margin-left: 2px; margin-right: 2px; padding: 10px 7px 10px 8px;}
}

.cart-modal {
  width: 410px;
  max-width: 100vw;
  height: 100vh;
  background: #23273b;
  box-shadow: -8px 0 32px #000d;
  border-radius: 18px 0 0 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: cartSlideIn 0.32s cubic-bezier(.37,1.47,.64,1);
  padding: 0;
  overflow: hidden;
}

.cart-modal-list-wrapper {
  flex: 1 1 0;
  overflow-y: auto;
  padding: 10px 0 13px 0;
  min-height: 0;
  /* Scrollbar: */
  scrollbar-width: thin;
  scrollbar-color: #23273b #141625;
}
.cart-modal-list-wrapper::-webkit-scrollbar {
  width: 8px;
  background: #1a1d29;
  border-radius: 10px;
}
.cart-modal-list-wrapper::-webkit-scrollbar-thumb {
  background: #23273b;
  border-radius: 10px;
}
.cart-modal-list-wrapper::-webkit-scrollbar-thumb:hover {
  background: #353868;
}

/* Summary/footer всегда виден, никогда не скрывается */
.cart-summary {
  background: #23273b;
  margin: 0;
  padding: 17px 27px 20px 27px;
  border-radius: 0 0 18px 0;
  border-top: 1px solid #2e314c;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
  min-height: 1px;
  box-shadow: 0 -3px 10px #181b2322;
  /* sticky/bottom убери! */
  position: static;
}

/* На мобилке */
@media (max-width: 700px) {
  .cart-modal {
    width: 100vw !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    padding: 0;
  }
  .cart-summary, .cart-modal-title { padding-left: 10px; padding-right: 10px; }
  .cart-item { margin-left: 2px; margin-right: 2px; padding: 10px 7px 10px 8px;}
}

/* ==== MODAL CHECKOUT ==== */
#checkout-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1011;
  background: rgba(18,21,31,0.85);
  display: none;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  animation: fadeInModal 0.22s cubic-bezier(.59,.07,.59,.99);
}
@keyframes fadeInModal { from{opacity:0} to{opacity:1} }

.modal-checkout-window {
  background: #23273b;
  min-width: 355px;
  max-width: 430px;
  width: 97vw;
  margin: 50px auto 0 auto;
  border-radius: 19px;
  padding: 0 0 0 0;
  box-shadow: 0 8px 50px #000b;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1.6px solid #313551;
  animation: modalSlide .28s cubic-bezier(.59,.07,.59,.99);
}
@keyframes modalSlide { from{transform:translateY(44px);opacity:0} to{transform:translateY(0);opacity:1} }

.modal-checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 26px 12px 26px;
  border-bottom: 1.5px solid #2d304a;
  background: #22243a;
}
.modal-checkout-title {
  font-size: 1.23em;
  color: #ffe173;
  font-weight: 600;
  letter-spacing: 0.5px;
}
#checkout-modal-close {
  position: absolute;
  right: 19px;
  top: 19px;
  background: none;
  border: none;
  color: #ff8484;
  font-size: 2.18rem;
  cursor: pointer;
  z-index: 3;
  padding: 0;
  line-height: 1;
  transition: color 0.14s;
}
#checkout-modal-close:hover { color: #fff; }

#checkout-back-to-cart {
  background: none;
  color: #ffe173;
  border: none;
  font-size: 1.05em;
  font-weight: 500;
  margin-left: 2px;
  margin-bottom: 5px;
  cursor: pointer;
  text-decoration: underline;
  transition: color .17s;
}
#checkout-back-to-cart:hover { color: #fff; }

.modal-checkout-body {
  max-height: 64vh;
  overflow-y: auto;
  padding: 19px 26px 0 26px;
  background: #23273b;
}
#modal-checkout-summary {
  margin-bottom: 22px;
}

.checkout-item {
 background: #22243a;
  border-radius: 15px;
  padding: 17px 21px 14px 21px;
  margin: 0 14px 14px 14px;
  box-shadow: 0 2px 12px 0 #0002;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.checkout-item h3 {
  font-size: 1.12em;
  color: #ffe173;
  margin: 0 0 7px 0;
  font-weight: 500;
}
.cart-options {
  padding: 0;
  margin: 0 0 6px 0;
  list-style: none;
}
.cart-options li {
  color: #b8bded;
  font-size: 0.99em;
  margin-bottom: 2px;
  margin-left: 0;
  line-height: 1.25;
}
.checkout-prices {
  font-size: 1.05em;
  margin-top: 2px;
}
.old-price { color: #999; text-decoration: line-through; margin-right: 7px; }
.new-price { color: #ffe173; font-weight: 600; }
.promo-label {
  background: #1eac59;
  color: #fff;
  border-radius: 4px;
  font-size: 0.93em;
  padding: 2px 7px;
  margin-left: 6px;
}

#modal-checkout-promo-block {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  background: #1a1c2c;
  border: 1.5px solid #313551;
  border-radius: 13px;
  padding: 14px 16px 10px 16px;
  margin: 0 0 19px 0;
  box-shadow: 0 2px 7px #0002;
}
#modal-checkout-promo-input {
  background: #22242b;
  color: #ffe173;
  font-size: 1.09em;
  border: 1.5px solid #313551;
  border-radius: 8px;
  padding: 8px 14px;
  outline: none;
  min-width: 150px;
  transition: border-color 0.18s;
}
#modal-checkout-promo-input:focus {
  border-color: #ffe173;
  background: #24263b;
}
#modal-checkout-apply-promo {
  background: linear-gradient(90deg,#ffe173,#f9c23c);
  color: #111;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  padding: 8px 16px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
  box-shadow: 0 2px 8px #0002;
}
#modal-checkout-apply-promo:hover {
  background: linear-gradient(90deg,#ffe173,#ffe996);
}
#modal-checkout-remove-promo {
  background: #383c52;
  color: #fff;
  font-weight: 400;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  margin-left: 4px;
  box-shadow: none;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.18s, color 0.16s;
}
#modal-checkout-remove-promo:hover { background: #565a7b; }
#modal-checkout-promo-status {
  color: #ffe173;
  font-weight: 500;
  margin-left: 8px;
  min-width: 120px;
}
#modal-checkout-promo-informer {
  min-width: 135px;
  font-weight: 500;
  margin-left: 8px;
  color: #f36e64;
  font-size: 0.98em;
}

#modal-checkout-breakdown {
  margin-bottom: 19px;
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
  color: #e4e7fa;
  font-size: 1.04em;
}
.breakdown-row.total-row {
  font-size: 1.19em;
  font-weight: 700;
  color: #ffe173;
  border-top: 1px solid #323753;
  margin-top: 7px;
  padding-top: 6px;
}

.modal-checkout-footer {
  background: #202132;
  border-top: 1.5px solid #2d304a;
  padding: 16px 26px 14px 26px;
  border-radius: 0 0 19px 19px;
  box-shadow: 0 -4px 25px #0005;
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
#modal-pay-stripe, #modal-pay-crypto {
  width: 100%;
  background: #4e6cff;
  color: #fff;
  font-weight: 600;
  font-size: 1.08em;
  padding: 12px 0 12px 0;
  border: none;
  border-radius: 9px;
  margin-bottom: 5px;
  cursor: pointer;
  transition: background 0.19s;
  box-shadow: 0 2px 8px #0003;
}
#modal-pay-stripe:hover, #modal-pay-crypto:hover {
  background: #7a92ff;
}
#modal-pay-crypto {
  background: #2f353e;
  color: #ffe173;
  border: 1.5px solid #414579;
  margin-bottom: 0;
}
#modal-pay-crypto:hover {
  background: #24263b;
  color: #fff;
}

#modal-checkout-confirmation {
  margin-top: 8px;
  font-weight: 600;
  color: #ffe173;
  font-size: 1.11em;
  min-height: 22px;
}

@media (max-width: 600px) {
  .modal-checkout-window {
    min-width: 0;
    max-width: 98vw;
    border-radius: 13px;
    padding: 0;
  }
  .modal-checkout-header, .modal-checkout-footer { padding: 12px 7vw 8px 7vw; }
  .modal-checkout-body { padding: 14px 7vw 0 7vw; }
}
::-webkit-scrollbar-thumb { background: #2e2e47; }
::-webkit-scrollbar-track { background: #191c24; }
::-webkit-scrollbar { width: 8px; }

#checkout-modal.cart-modal-overlay {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  position: fixed;
  inset: 0;
  z-index: 25000;
  background: rgba(14,18,37,0.90);
  animation: cartFadeIn 0.3s;
}
.modal-checkout-window {
  width: 410px;
  max-width: 100vw;
  height: 100vh;
  background: #23273b;
  box-shadow: -8px 0 32px #000d;
  border-radius: 18px 0 0 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: cartSlideIn 0.32s cubic-bezier(.37,1.47,.64,1);
  padding: 0;
  overflow: hidden;
  min-width: 340px;
  margin: 0;
  border: none;
}
@media (max-width: 700px) {
  .modal-checkout-window {
    width: 100vw !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    padding: 0;
  }
}

#checkout-back-to-cart.btn-secondary {
  background: rgba(20, 25, 44, 0.89);
  color: #ffe173;
  border: 1.5px solid #ffe173;
  border-radius: 9px;
  padding: 9px 0;
  font-size: 1.04em;
  width: 100%;
  margin-bottom: 12px;
  font-weight: 600;
  transition: background 0.13s, color 0.13s, border 0.13s;
  cursor: pointer;
  box-shadow: 0 0 12px #ffe17318;
}
#checkout-back-to-cart.btn-secondary:hover {
  background: #ffe173;
  color: #23273b;
  border: 1.5px solid #ffe173;
}
.modal-checkout-footer {
  background: #23273b;
  margin: 0;
  padding: 12px 17px 14px 17px;
  border-radius: 0 0 18px 0;
  border-top: 1px solid #2e314c;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
  min-height: 1px;
  box-shadow: 0 -3px 10px #181b2322;
  position: static;
}

/* Промокод и сообщение — компактно в одну строку, высота ниже */
#modal-checkout-promo-block {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}
#modal-checkout-promo-input {
  background: #22242b;
  color: #ffe173;
  font-size: 1em;
  border: 1.2px solid #313551;
  border-radius: 8px;
  padding: 6px 9px;
  min-width: 90px;
  width: 110px;
  outline: none;
}
#modal-checkout-apply-promo {
  background: linear-gradient(90deg,#ffe173,#f9c23c);
  color: #23273b;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  padding: 7px 14px;
  font-size: 0.97em;
  cursor: pointer;
  margin-left: 0;
  box-shadow: 0 2px 8px #ffe17319;
}
#modal-checkout-apply-promo:hover {
  background: linear-gradient(90deg,#ffeb6a,#ffe996);
  color: #23273b;
}
#modal-checkout-remove-promo {
  background: #ff7272;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.97em;
  margin-left: 2px;
  cursor: pointer;
  transition: background 0.15s;
}
#modal-checkout-remove-promo:hover {
  background: #ca1111;
}

#modal-checkout-promo-status {
  font-size: 0.98em;
  color: #22bb55;
  font-weight: 500;
  min-width: 0;
  margin: 0;
  padding-left: 4px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: min-height 0.14s, margin 0.11s;
  line-height: 1.16;
}
#modal-checkout-promo-status:not(:empty) {
  margin-left: 4px;
  opacity: 1;
  height: auto;
  overflow: visible;
  min-height: 16px;
}

/* breakdown чуть компактнее */
#modal-checkout-breakdown {
  background: #202342;
  border-radius: 9px;
  padding: 7px 13px 7px 13px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.98em;
  margin-bottom: 2px;
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #e4e7fa;
  font-size: 0.98em;
  margin: 0;
  padding: 0;
}
.breakdown-row.total-row {
  font-size: 1.09em;
  font-weight: 700;
  color: #ffe173;
  border-top: 1px solid #353760;
  margin-top: 3px;
  padding-top: 4px;
}
.breakdown-row .total-label {
  font-weight: bold;
}

#modal-pay-stripe, #modal-pay-crypto {
  width: 100%;
  background: #4e6cff;
  color: #fff;
  font-weight: 600;
  font-size: 1.03em;
  padding: 10px 0 10px 0;
  border: none;
  border-radius: 9px;
  margin-bottom: 4px;
  cursor: pointer;
  transition: background 0.16s;
  box-shadow: 0 2px 8px #0002;
}
#modal-pay-stripe:hover, #modal-pay-crypto:hover {
  background: #7a92ff;
}
#modal-pay-crypto {
  background: #2f353e;
  color: #ffe173;
  border: 1.2px solid #414579;
  margin-bottom: 0;
}
#modal-pay-crypto:hover {
  background: #24263b;
  color: #fff;
}

#modal-checkout-confirmation {
  margin-top: 5px;
  font-weight: 600;
  color: #ffe173;
  font-size: 1em;
  min-height: 18px;
}

@media (max-width: 600px) {
  .modal-checkout-window {
    min-width: 0;
    max-width: 98vw;
    border-radius: 13px;
    padding: 0;
  }
  .modal-checkout-header, .modal-checkout-footer { padding: 12px 7vw 8px 7vw; }
  .modal-checkout-body { padding: 14px 7vw 0 7vw; }
}
.login-submit-btn:focus {
  background: linear-gradient(90deg, #4268df 70%, #8b75db);
  transform: translateY(-2px) scale(1.02);
}

/* Кнопки входа через Google и Discord */
.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;  /* Отступ между кнопками */
}

.oauth-btn {
  width: 100%;
  padding: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

/* Google кнопка */
.google-btn {
  background-color: #db4437;  /* Красный цвет для Google */
}

.google-btn:hover {
  background-color: #c1351d;  /* Темный красный при наведении */
  transform: scale(1.05);  /* Легкое увеличение кнопки при наведении */
}

/* Discord кнопка */
.discord-btn {
  background-color: #7289da;  /* Синий цвет для Discord */
}

.discord-btn:hover {
  background-color: #5b6e96;  /* Темный синий при наведении */
  transform: scale(1.05);  /* Легкое увеличение кнопки при наведении */
}

/* Разделитель "or" */
.login-divider {
  text-align: center;
  color: #ccc;
  margin: 20px 0;
  font-size: 1.3rem;
}

/* Сообщение об ошибке */
.login-message {
  color: #e43a43;
  font-size: 14px;
  margin-top: 8px;
  min-height: 22px;
}
#checkout-modal .modal-login-btn {
  width: auto; /* Измените ширину только внутри модалки */
  max-width: 300px;  /* Пример максимальной ширины */
  margin: 0 auto;  /* Центрируем кнопку */
}

.btn-primary:hover {
  background-color: #0056b3;
}

/* Основной стиль для модалки логина */
.login-modal-content {
  background-color: #23273b;
  padding: 36px 32px;
  border-radius: 12px;
  width: 400px;
  max-width: 95vw;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.13);
  animation: slideIn 0.32s cubic-bezier(0.37, 1.47, 0.64, 1);
  overflow: hidden;
}

/* Плавное появление */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.logo-svg {
  width: 130px;  /* Устанавливаем нужный размер */
  height: auto; /* Сохраняем пропорции */
}
.checkout-option {
  margin: 0px 0;
  font-size: 12px;
  display: flex;
  align-items: center;
}
.checkout-option input[type="checkbox"] {
  margin-right: 7px;
  transform: scale(1.3);
}
#balanceInfo {
  font-size: 14px;
  color: #f1b60a;
  margin-bottom: 5px;
}


.balance-dropdown:hover {
  background: #24263b;
  color: #ffeaa0;
}
.balance-toggle {
  background: #202342;
  color: #ffe173;
  font-weight: 600;
  padding: 0.51rem 1.18rem;
  border-radius: 13px;
  border: 1.3px solid #ffe17360;
  cursor: pointer;
  font-size: 1.07rem;
  letter-spacing: 0.01em;
  transition: background 0.13s, color 0.12s, box-shadow 0.16s;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 62px;
  line-height: 1.08;
  position: relative;
  box-shadow: 0 0 10px #ffe17314;
}
.user-balance {
  font-weight: 600;
  color: #ffe173 !important;
}

.balance-dropdown-menu a:hover {
  background: #2f313e;
}
.nav-svg svg {
      width: 28px; height: 28px; vertical-align: -6px; margin-right: 4px;
    }