body {
  margin: 0;
  min-height: 100vh;
  background: #0f1419;
  color: #dde1e8;
  font-family: "Segoe UI", system-ui, sans-serif;
}

html,
body,
.ProfileContent-module__body,
.ProfileTable-module__table,
.ModalLayout-module__wrapper,
.productModalDescription {
  scrollbar-width: thin;
  scrollbar-color: rgba(122, 142, 168, 0.68) rgba(18, 24, 32, 0.35);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.ProfileContent-module__body::-webkit-scrollbar,
.ModalLayout-module__wrapper::-webkit-scrollbar,
.productModalDescription::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.ProfileContent-module__body::-webkit-scrollbar-track,
.ModalLayout-module__wrapper::-webkit-scrollbar-track,
.productModalDescription::-webkit-scrollbar-track {
  background: rgba(18, 24, 32, 0.38);
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.ProfileContent-module__body::-webkit-scrollbar-thumb,
.ModalLayout-module__wrapper::-webkit-scrollbar-thumb,
.productModalDescription::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, #6f88a8, #4c637f);
}

.page-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.page-bg__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(205, 65, 43, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(212, 168, 83, 0.08), transparent 50%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(63, 185, 80, 0.05), transparent 45%),
    linear-gradient(165deg, #0a0e14 0%, #0f1419 40%, #121820 100%);
}

.page-bg__items {
  position: absolute;
  inset: 0;
}

.flying-item {
  position: absolute;
  left: var(--fi-left, 50%);
  top: -12vh;
  bottom: auto;
  width: var(--fi-size, 48px);
  height: var(--fi-size, 48px);
  opacity: var(--fi-opacity, 0.15);
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
  animation: flying-fall var(--fi-duration, 32s) linear infinite;
  animation-delay: var(--fi-delay, 0s);
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

@keyframes flying-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(var(--fi-scale-start, 0.7));
    opacity: 0;
  }
  8% {
    opacity: var(--fi-opacity, 0.15);
  }
  50% {
    transform: translate3d(calc(var(--fi-drift, 0) * 0.5), 62vh, 0) rotate(calc(var(--fi-spin, 90deg) * 0.5)) scale(var(--fi-scale-mid, 1));
  }
  92% {
    opacity: var(--fi-opacity, 0.15);
  }
  100% {
    transform: translate3d(var(--fi-drift, 0), 125vh, 0) rotate(var(--fi-spin, 90deg)) scale(var(--fi-scale-end, 1.2));
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flying-item {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .flying-item {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  }
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px 40px; }

/* Юридический футер */
.arc-footer.footer {
  margin-top: 8px;
  padding: 28px 0 36px;
  border-top: 1px solid rgba(130, 136, 148, 0.22);
  background: rgba(8, 10, 14, 0.45);
}

.arc-footer .container {
  padding-bottom: 0;
}

.footer__wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer__col {
  flex: 1 1 280px;
  min-width: 0;
}

.footer__text {
  margin: 0;
  color: #8b919c;
  font-size: 12px;
  line-height: 1.55;
}

.footer__info {
  max-width: 920px;
}

.footer__notice {
  max-width: 920px;
  color: #9a9fa8;
}

.footer__notice strong {
  color: #c8baa0;
  font-weight: 600;
}

.footer__company {
  color: #757b86;
  font-size: 11px;
}

@media (max-width: 767px) {
  .arc-footer.footer {
    padding: 20px 0 28px;
  }

  .footer__text {
    font-size: 11px;
    line-height: 1.5;
  }

  .shop-payment-link {
    margin-left: 0;
  }
}

.Index-module__wrapper {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.Widgets-module__wrapper {
  flex: 0 0 280px;
  width: 280px;
  min-width: 0;
}

.Shop-module__wrapper {
  flex: 1;
  min-width: 0;
}

.Categories-module__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.Categories-module__category {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid rgba(130, 136, 148, 0.3);
  background: rgba(72, 76, 84, 0.74);
  color: #c5cad2;
  font-size: 14px;
  cursor: pointer;
}

.Search-module__wrapper {
  margin-bottom: 14px;
  min-height: 42px;
  display: flex;
  align-items: center;
  border-radius: 12px;
  border: 1px solid rgba(130, 136, 148, 0.34);
  background: rgba(60, 64, 73, 0.82);
  padding: 0 12px;
}

.Search-module__input {
  width: 100%;
  min-width: 0;
  height: 40px;
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e0e4ea;
  font-size: 14px;
  line-height: 1.2;
}

.Search-module__input::placeholder {
  color: #97a0ad;
}

.shop-payment-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(130, 136, 148, 0.24);
  background: rgba(33, 37, 45, 0.75);
}

.shop-payment-strip.hidden {
  display: none !important;
}

.shop-payment-strip__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8d97a6;
}

.shop-payment-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(200, 188, 168, 0.16);
  border: 1px solid rgba(200, 188, 168, 0.28);
  color: #ddd1ba;
  font-size: 12px;
  font-weight: 600;
}

.shop-payment-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(232, 93, 59, 0.45);
  background: rgba(232, 93, 59, 0.14);
  color: #ffd5cd;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.shop-payment-link:hover {
  background: rgba(232, 93, 59, 0.22);
}

/* Виджет онлайна Rust */
.arc-monitor-card {
  padding: 2px 0 0;
}

.MonitoringServer-module__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.MonitoringServer-module__rank {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(200, 188, 168, 0.35), rgba(205, 65, 43, 0.45));
  border: 1px solid rgba(200, 188, 168, 0.35);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.MonitoringServer-module__name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--wg-text, #dde1e8);
  line-height: 1.35;
  word-break: break-word;
}

.MonitoringServer-module__copyBtn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(130, 136, 148, 0.34);
  background: rgba(0, 0, 0, 0.18);
  color: var(--wg-text-soft, #a8aeb8);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.MonitoringServer-module__copyBtn:hover {
  color: var(--wg-text, #dde1e8);
  border-color: rgba(200, 188, 168, 0.45);
  background: rgba(200, 188, 168, 0.12);
}

.MonitoringServer-module__infoRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.MonitoringServer-module__infoLabel {
  font-size: 13px;
  color: var(--wg-text-muted, #7e8592);
}

.MonitoringServer-module__info {
  font-size: 15px;
  font-weight: 700;
  color: var(--wg-text, #dde1e8);
}

.MonitoringServer-module__olineDivider {
  color: var(--wg-text-muted, #7e8592);
  font-weight: 500;
  margin: 0 2px;
}

.MonitoringServer-module__progressBarWrapper {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
  margin-bottom: 14px;
}

.MonitoringServer-module__progressBar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #cd412b 0%, #c8baa0 45%, #3fb950 100%);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  min-width: 0;
}

.MonitoringServer-module__btn.MonitoringServer-module__link {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 10px 14px;
  border-radius: var(--wg-radius, 12px);
  border: 1px solid rgba(130, 136, 148, 0.34);
  background: var(--wg-surface-active, rgba(90, 94, 102, 0.88));
  color: var(--wg-text, #dde1e8) !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.15s ease;
}

.MonitoringServer-module__btn.MonitoringServer-module__link:hover {
  background: var(--wg-surface-hover, rgba(84, 88, 100, 0.88));
  transform: translateY(-1px);
}

.arc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px auto;
  max-width: 1200px;
}

.arc-nav { display: flex; gap: 8px; flex: 1; }

.arc-logo {
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  color: inherit;
  flex-shrink: 0;
}

.arc-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}

.arc-user-chip img { width: 28px; height: 28px; border-radius: 50%; }

.arc-info-text { font-size: 13px; line-height: 1.5; color: #a8aeb8; margin: 0 0 10px; }
.arc-info-text code { background: rgba(0,0,0,0.25); padding: 2px 6px; border-radius: 4px; }

.hidden { display: none !important; }

.Button-module__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(130, 136, 148, 0.34);
  background: rgba(90, 94, 102, 0.86);
  color: #e6eaf0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.Button-module__btn:hover {
  transform: translateY(-1px);
  background: rgba(100, 105, 116, 0.92);
  border-color: rgba(170, 176, 190, 0.44);
}

.Button-module__btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.Button-module__btn.Button-module__accent {
  background: linear-gradient(135deg, #d86545 0%, #c44a2a 100%);
  border-color: rgba(232, 93, 59, 0.55);
  color: #fff;
}

.Button-module__btn.Button-module__accent:hover {
  background: linear-gradient(135deg, #e17050 0%, #cb5638 100%);
  border-color: rgba(242, 129, 101, 0.65);
}

.Button-module__btn.Button-module__gray {
  background: rgba(72, 76, 84, 0.84);
  border-color: rgba(130, 136, 148, 0.34);
  color: #cad0d9;
}

.Button-module__btn.Button-module__gray:hover {
  background: rgba(82, 86, 95, 0.88);
  color: #e3e8ef;
}

.ModalLayout-module__wrapper:not(.hidden) {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.profile-wrap { max-width: 900px; margin: 24px auto; padding: 0 16px; }
.profile-card {
  background: rgba(72, 76, 84, 0.88);
  border: 1px solid rgba(130, 136, 148, 0.34);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}
.profile-card h2 { margin: 0 0 12px; font-size: 1.1rem; }
.profile-row { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.profile-row img { width: 56px; height: 56px; border-radius: 50%; }
.promo-form { display: flex; gap: 8px; margin-top: 8px; }
.promo-form input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(130,136,148,0.34);
  background: rgba(0,0,0,0.2);
  color: #fff;
}
.promo-form button, .btn {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: #cd412b;
  color: #fff;
}
.history-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.history-table th, .history-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(130,136,148,0.2);
  text-align: left;
}

@media (max-width: 900px) {
  .Index-module__wrapper { flex-direction: column; }
  .arc-sidebar { width: 100% !important; }

  .Widgets-module__wrapper {
    flex: none;
    width: 100%;
  }
}

.roulette-preview { margin: 12px 0; }
.roulette-preview-title { font-size: 13px; color: #888; margin-bottom: 8px; }
.roulette-preview-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.roulette-preview-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 72px; font-size: 10px; text-align: center; color: #aaa;
}
.roulette-preview-item img { width: 40px; height: 40px; object-fit: contain; }
.hidden { display: none !important; }

/* ========== Кейс / рулетка — premium UI ========== */

.case-modal {
  --case-accent: #e85d3b;
  --case-accent-soft: rgba(232, 93, 59, 0.35);
  --case-gold: #d4a853;
  --case-card: rgba(18, 22, 30, 0.92);
  --case-border: rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.case-modal__hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  margin: 0;
  flex-shrink: 0;
  overflow: hidden;
}

.case-modal__hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 0% 0%, rgba(232, 93, 59, 0.22), transparent 55%),
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(212, 168, 83, 0.12), transparent 50%),
    linear-gradient(135deg, rgba(24, 28, 38, 0.98), rgba(14, 16, 22, 0.98));
  border-bottom: 1px solid var(--case-border);
}

.case-modal__icon {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(232, 93, 59, 0.35));
}

.case-modal__hero-info {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.case-modal__badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--case-accent), #c44a2a);
  box-shadow: 0 4px 14px var(--case-accent-soft);
}

.case-modal__title {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: #f4f5f7;
}

.case-modal__login {
  margin: 6px 0 0;
  font-size: 13px;
  color: #9aa3b2;
}

.case-modal__content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 20px 18px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.case-reel {
  width: 100%;
  min-width: 0;
}

.case-reel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.case-reel__label {
  font-size: 13px;
  font-weight: 700;
  color: #e8eaed;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-reel__hint {
  font-size: 11px;
  color: #6d7582;
}

.case-reel__frame {
  width: 100%;
  padding: 3px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(232, 93, 59, 0.45), rgba(212, 168, 83, 0.25), rgba(232, 93, 59, 0.2));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

.case-reel__viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 152px;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 80% 100% at 50% 50%, rgba(232, 93, 59, 0.08), transparent 70%),
    linear-gradient(180deg, #0a0c12 0%, #12161f 100%);
}

.case-reel__marker {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--case-gold) 15%, #fff 50%, var(--case-gold) 85%, transparent);
  box-shadow: 0 0 20px rgba(212, 168, 83, 0.8), 0 0 40px rgba(232, 93, 59, 0.4);
  animation: case-marker-pulse 2s ease-in-out infinite;
}

.case-reel__marker::before,
.case-reel__marker::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
}

.case-reel__marker::before {
  top: 0;
  border-bottom: 8px solid var(--case-gold);
  filter: drop-shadow(0 0 6px rgba(212, 168, 83, 0.8));
}

.case-reel__marker::after {
  bottom: 0;
  border-top: 8px solid var(--case-gold);
  filter: drop-shadow(0 0 6px rgba(212, 168, 83, 0.8));
}

@keyframes case-marker-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.case-reel__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  z-index: 4;
  pointer-events: none;
}

.case-reel__fade--left {
  left: 0;
  background: linear-gradient(90deg, #0a0c12 0%, transparent 100%);
}

.case-reel__fade--right {
  right: 0;
  background: linear-gradient(270deg, #0a0c12 0%, transparent 100%);
}

.roulette {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px;
  height: 100%;
  padding: 0 10px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  position: relative;
  z-index: 2;
  width: max-content;
  min-width: 100%;
  box-sizing: border-box;
}

.roulette-item {
  flex: 0 0 auto !important;
  width: 110px;
  min-width: 110px;
  height: 128px;
  display: block !important;
}

.roulette-item__card {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  padding: 10px 8px;
  border-radius: 14px;
  background: var(--case-card);
  border: 1px solid var(--case-border);
  box-sizing: border-box;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.roulette-item__glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle at 50% 30%, rgba(232, 93, 59, 0.25), transparent 65%);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.roulette-item--win .roulette-item__card {
  border-color: rgba(212, 168, 83, 0.85);
  box-shadow: 0 0 28px rgba(212, 168, 83, 0.45), inset 0 0 20px rgba(212, 168, 83, 0.08);
  transform: scale(1.04);
}

.roulette-item--win .roulette-item__glow {
  opacity: 1;
}

.roulette-item__img {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.roulette-item__img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.roulette-item__name {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: #c5cad3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.case-modal__status {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: #7dcea0;
  background: rgba(46, 160, 90, 0.12);
  border: 1px solid rgba(46, 160, 90, 0.35);
}

.case-modal__status.roulette-status--error {
  color: #ff9a8b;
  background: rgba(232, 93, 59, 0.12);
  border-color: rgba(232, 93, 59, 0.4);
}

.case-modal__note {
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  color: #8b919a;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  width: 100%;
  box-sizing: border-box;
}

.case-modal__note .gs-cmd-hint {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  color: #e8dcc8;
  background: rgba(212, 168, 83, 0.15);
}

.case-footer-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: auto;
  min-width: 88px;
}

.case-footer-price__label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6d7582;
}

.case-footer-price__value {
  font-size: 20px;
  font-weight: 800;
  color: #f4f5f7;
  line-height: 1.1;
}

.case-modal-footer {
  gap: 14px !important;
  padding: 18px 22px 22px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  background: linear-gradient(180deg, rgba(14, 16, 22, 0.5), rgba(10, 12, 18, 0.95)) !important;
}

.case-spin-btn {
  flex: 1 1 auto !important;
  min-height: 48px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  border: none !important;
  background: linear-gradient(135deg, #e85d3b 0%, #c44a2a 50%, #e85d3b 100%) !important;
  background-size: 200% 100% !important;
  box-shadow: 0 8px 28px rgba(232, 93, 59, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.3s ease !important;
}

.case-spin-btn:hover:not(:disabled) {
  background-position: 100% 0 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 32px rgba(232, 93, 59, 0.55) !important;
}

.case-spin-btn:disabled {
  opacity: 0.65 !important;
  filter: grayscale(0.2);
}

/* модалка товара: обёртки не должны ломать 2-колоночный grid */
.ModalLayout-module__modal[data-modalproducttype] #modalStandardLayout,
.ModalLayout-module__modal[data-modalproducttype] #modalStandardBlock {
  display: contents !important;
}

.ModalLayout-module__modal[data-modalproducttype="roulette"] #modalStandardLayout {
  display: none !important;
}

.ModalLayout-module__modal[data-modalproducttype]:not([data-modalproducttype="roulette"]) .boxBody img.productModalImg {
  grid-column: 1 !important;
  grid-row: auto !important;
}

.ModalLayout-module__modal[data-modalproducttype]:not([data-modalproducttype="roulette"]) .boxBody #modalTitleWrap,
.ModalLayout-module__modal[data-modalproducttype]:not([data-modalproducttype="roulette"]) .boxBody .productModalDescription,
.ModalLayout-module__modal[data-modalproducttype]:not([data-modalproducttype="roulette"]) .boxBody .productModalFormRow,
.ModalLayout-module__modal[data-modalproducttype]:not([data-modalproducttype="roulette"]) .boxBody .productModalGiveText {
  grid-column: 2 !important;
}

.ModalLayout-module__modal[data-modalproducttype]:not([data-modalproducttype="roulette"]) .boxBody #modalTitleWrap {
  grid-column: 1 / -1 !important;
}

.ModalLayout-module__modal[data-modalproducttype]:not([data-modalproducttype="roulette"]) .boxBody::before {
  display: none !important;
  content: none !important;
}

.modal.modal-roulette .modal__body,
.modal.modal-roulette .boxBody {
  display: block !important;
  padding: 0 !important;
  min-height: auto !important;
  background: transparent !important;
  overflow: hidden !important;
}

.modal.modal-roulette .modal__body::before,
.modal.modal-roulette .boxBody::before,
.arc-modal-roulette .boxBody::before {
  display: none !important;
  content: none !important;
  min-height: 0 !important;
  height: 0 !important;
}

.modal.modal-roulette .modal__body,
.modal.modal-roulette .boxBody {
  display: block !important;
  min-height: 0 !important;
}

.modal.modal-roulette #modalStandardLayout {
  display: none !important;
}

.ModalLayout-module__wrapper.arc-modal-roulette .modal,
.ModalLayout-module__wrapper.arc-modal-roulette .ModalLayout-module__modal {
  width: min(560px, calc(100vw - 24px)) !important;
  min-width: 0 !important;
  max-width: 560px !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  background: linear-gradient(165deg, #1a1e28 0%, #12151c 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(232, 93, 59, 0.08) !important;
}

.roulette-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #6d7582;
  font-size: 13px;
  padding: 0 20px;
  text-align: center;
}

.Product-module__wrapper--case {
  border-color: rgba(232, 93, 59, 0.25) !important;
}

.Product-module__wrapper--case::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 40px rgba(232, 93, 59, 0.06);
}

.Product-module__typeBadge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #e85d3b, #c44a2a);
  color: #fff;
  box-shadow: 0 4px 12px rgba(232, 93, 59, 0.4);
}

/* ========== Профиль игрока (GameStores-style) ========== */

.ProfilePage-module__wrapper {
  display: flex;
  gap: 16px;
  margin: 18px auto 40px;
  align-items: flex-start;
}

.profile-loading {
  color: var(--wg-text-soft, #a8aeb8);
  padding: 24px;
}

.ProfileSidebar-module__wrapper {
  flex: 0 0 240px;
  padding: 20px 16px;
  border-radius: var(--wg-radius-lg, 16px);
  background: var(--wg-glass, rgba(72, 76, 84, 0.88));
  border: 1px solid var(--wg-border, rgba(130, 136, 148, 0.34));
  box-shadow: var(--wg-shadow, 0 8px 28px rgba(12, 16, 24, 0.28));
  text-align: center;
}

.ProfileSidebar-module__avatar {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  margin: 0 auto 12px;
}

.ProfileSidebar-module__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wg-text, #dde1e8);
  margin-bottom: 16px;
  word-break: break-word;
}

.ProfileSidebar-module__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
  text-align: left;
}

.ProfileSidebar-module__link {
  display: block;
  padding: 10px 14px;
  border-radius: var(--wg-radius, 12px);
  color: var(--wg-text-soft, #a8aeb8);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.ProfileSidebar-module__link:hover {
  background: var(--wg-surface-hover, rgba(84, 88, 100, 0.88));
  color: var(--wg-text, #dde1e8);
}

.ProfileSidebar-module__link.ProfileSidebar-module__active {
  background: rgba(200, 188, 168, 0.14);
  color: var(--wg-text, #dde1e8);
  font-weight: 600;
}

.ProfileSidebar-module__logout {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none !important;
  box-sizing: border-box;
  margin-top: 14px;
  border: 1px solid rgba(232, 93, 59, 0.4) !important;
  background: rgba(232, 93, 59, 0.14) !important;
  color: #ffd8d0 !important;
}

.ProfileSidebar-module__logout:hover {
  background: rgba(232, 93, 59, 0.24) !important;
  border-color: rgba(232, 93, 59, 0.56) !important;
}

.ProfileContent-module__wrapper {
  flex: 1;
  min-width: 0;
  border-radius: var(--wg-radius-lg, 16px);
  overflow: hidden;
  border: 1px solid var(--wg-border, rgba(130, 136, 148, 0.34));
  box-shadow: var(--wg-shadow, 0 8px 28px rgba(12, 16, 24, 0.28));
  background: var(--wg-glass, rgba(72, 76, 84, 0.88));
}

.ProfileContent-module__panel {
  border-radius: var(--wg-radius-lg, 16px);
  border: 1px solid var(--wg-border, rgba(130, 136, 148, 0.34));
  background: var(--wg-glass, rgba(72, 76, 84, 0.88));
  padding: 20px;
}

.ProfileContent-module__title {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--wg-text, #dde1e8);
  background: var(--wg-glass-soft, rgba(72, 76, 84, 0.8));
  border-bottom: 1px solid var(--wg-border-soft, rgba(130, 136, 148, 0.22));
}

.ProfileContent-module__body {
  padding: 18px;
  color: var(--wg-text-soft, #a8aeb8);
}

.ProfileInfo-module__sectionTitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--wg-text, #dde1e8);
  margin-bottom: 10px;
}

.ProfileInfo-module__table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(0, 0, 0, 0.18);
  border-radius: var(--wg-radius, 12px);
  overflow: hidden;
}

.ProfileInfo-module__table th,
.ProfileInfo-module__table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(130, 136, 148, 0.15);
  font-size: 14px;
}

.ProfileInfo-module__table th {
  width: 140px;
  color: var(--wg-text-muted, #7e8592);
  font-weight: 500;
}

.ProfileInfo-module__table td {
  color: var(--wg-text, #dde1e8);
}

.ProfileInfo-module__steam {
  color: #3fb950 !important;
  font-family: ui-monospace, monospace;
}

.ProfilePromo-module__form {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.ProfilePromo-module__input {
  flex: 1;
  min-width: 0;
}

.ProfilePromo-module__submit {
  min-width: 128px;
}

.ProfileHint-module__text {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--wg-text-muted, #7e8592);
}

.ProfileToolbar-module__row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.ProfileTransfer-module__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.ProfileTransfer-module__input {
  flex: 1 1 260px;
  min-width: 220px;
}

.ProfileTransfer-module__hint {
  font-size: 12px;
  color: var(--wg-text-muted, #7e8592);
}

.ProfileTransfer-module__btn {
  min-width: 100px;
}

.ProfileSearch-module__wrapper {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.ProfileSearch-module__icon {
  opacity: 0.6;
  font-size: 14px;
}

.ProfileFilter-module__select {
  min-width: 160px;
  cursor: pointer;
}

.ProfileTable-module__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ProfileTable-module__table thead th {
  padding: 10px 14px;
  text-align: left;
  color: var(--wg-text-muted, #7e8592);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(130, 136, 148, 0.2);
}

.ProfileTable-module__table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(130, 136, 148, 0.12);
  color: var(--wg-text-soft, #a8aeb8);
  vertical-align: middle;
}

.ProfileTable-module__table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.08);
}

.ProfileTable-module__empty {
  text-align: center !important;
  padding: 28px !important;
  color: var(--wg-text-muted, #7e8592) !important;
}

.ProfileCartItem-module__cell {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--wg-text, #dde1e8);
  font-weight: 500;
}

.ProfileCartItem-module__cell img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
}

.ProfileHistory-module__minus {
  color: var(--wg-text-soft, #a8aeb8) !important;
}

.ProfileHistory-module__plus {
  color: #3fb950 !important;
}

.arc-header-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.HeaderUser-module__card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px 5px 5px;
  border-radius: var(--wg-radius, 12px);
  background: var(--wg-surface, rgba(72, 76, 84, 0.88));
  border: 1px solid var(--wg-border, rgba(130, 136, 148, 0.34));
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  max-width: min(320px, 46vw);
}

.HeaderUser-module__card:hover {
  background: var(--wg-surface-hover, rgba(84, 88, 100, 0.88));
  border-color: rgba(200, 188, 168, 0.38);
  transform: translateY(-1px);
}

.HeaderUser-module__avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.HeaderUser-module__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.25;
}

.HeaderUser-module__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--wg-text, #dde1e8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.HeaderUser-module__balance {
  font-size: 12px;
  font-weight: 700;
  color: var(--gs-accent, #c8baa0);
  letter-spacing: 0.02em;
}

.HeaderUser-module__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--wg-text-soft, #a8aeb8);
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.HeaderUser-module__card:hover .HeaderUser-module__icon {
  background: rgba(200, 188, 168, 0.14);
  color: var(--wg-text, #dde1e8);
}

.arc-header-user .LangSwitcher-module__btn {
  padding: 8px 10px;
  font-size: 13px;
  color: var(--wg-text-soft, #a8aeb8);
}

/* Кнопка входа через Steam */
.SteamLogin-module__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px 0 14px;
  height: 42px;
  border-radius: 3px;
  border: 1px solid #2a475e;
  background: linear-gradient(180deg, #1b2838 0%, #171a21 100%);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.SteamLogin-module__btn:hover {
  background: linear-gradient(180deg, #223344 0%, #1b2838 100%);
  border-color: #66c0f4;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.SteamLogin-module__btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .ProfilePage-module__wrapper {
    flex-direction: column;
  }

  .ProfileSidebar-module__wrapper {
    flex: none;
    width: 100%;
    box-sizing: border-box;
  }

  .ProfilePromo-module__form {
    flex-direction: column;
  }

  .ProfileToolbar-module__row {
    flex-direction: column;
  }

  .ProfileFilter-module__select {
    width: 100%;
  }
}

/* ========== Мобильная адаптация (магазин + профиль) ========== */

@media (max-width: 768px) {
  .container {
    padding: 0 12px 32px;
  }

  .Header-module__wrapper.arc-header,
  .arc-header {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin: 10px 12px 14px;
    padding: 10px 12px !important;
    box-sizing: border-box;
  }

  .Header-module__logo,
  .arc-logo {
    width: 108px !important;
    height: 34px !important;
    flex-shrink: 0;
  }

  .arc-nav,
  .HeaderNav-module__nav {
    order: 3;
    width: 100%;
    flex: none;
  }

  .HeaderNav-module__link {
    padding: 6px 12px !important;
    font-size: 13px;
  }

  .arc-header-user {
    margin-left: auto;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
    gap: 6px;
  }

  .arc-header-user .LangSwitcher-module__btn {
    padding: 6px 8px;
    font-size: 12px;
  }

  .HeaderUser-module__card {
    max-width: min(100%, 220px);
    padding: 4px 6px 4px 4px;
    gap: 6px;
  }

  .HeaderUser-module__avatar {
    width: 34px;
    height: 34px;
  }

  .HeaderUser-module__name {
    font-size: 12px;
    max-width: 100px;
  }

  .HeaderUser-module__balance {
    font-size: 11px;
  }

  .HeaderUser-module__icon {
    width: 28px;
    height: 28px;
  }

  .SteamLogin-module__btn {
    height: 38px !important;
    padding: 0 12px 0 10px !important;
    font-size: 13px !important;
  }

  .Shop-module__wrapper .boxBody,
  .Index-module__wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .Categories-module__categories {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .Categories-module__category {
    flex-shrink: 0;
  }

  .ProfilePage-module__wrapper {
    margin-top: 12px;
    gap: 12px;
  }

  .ProfileSidebar-module__avatar {
    width: 96px;
    height: 96px;
  }

  .ProfileContent-module__body {
    padding: 12px;
    overflow-x: auto;
  }

  .ProfileTable-module__table {
    min-width: 520px;
  }

  .ProfileInfo-module__table th {
    width: 110px;
  }

  .ModalLayout-module__wrapper:not(.hidden) {
    align-items: flex-start;
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ModalLayout-module__modal.ProductModal-module__item,
  .ModalLayout-module__modal[data-modalproducttype] {
    width: 100vw !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 100dvh;
    border-radius: 0 !important;
    margin: 0;
  }

  .ModalLayout-module__modal[data-modalproducttype] .boxBody {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  .ModalLayout-module__modal[data-modalproducttype] .boxBody::before {
    display: none !important;
  }

  .ModalLayout-module__modal[data-modalproducttype] .boxBody img.productModalImg {
    grid-column: 1 !important;
    grid-row: auto !important;
    width: 132px !important;
    height: 132px !important;
    max-width: 132px !important;
    max-height: 132px !important;
    margin: 14px auto !important;
  }

  .ModalLayout-module__modal[data-modalproducttype] .boxBody #modalTitleWrap,
  .ModalLayout-module__modal[data-modalproducttype] .boxBody .productModalDescription,
  .ModalLayout-module__modal[data-modalproducttype] .boxBody .productModalFormRow,
  .ModalLayout-module__modal[data-modalproducttype] .boxBody .productModalGiveText {
    grid-column: 1 !important;
    padding: 0 14px !important;
  }

  .ModalLayout-module__modal[data-modalproducttype] .boxBody #modalTitleWrap {
    margin-top: 0 !important;
  }

  .ModalLayout-module__modal[data-modalproducttype] .productModalFormRow {
    grid-template-columns: 1fr !important;
  }

  .ModalLayout-module__modal[data-modalproducttype] .boxFooter {
    position: sticky;
    bottom: 0;
    z-index: 2;
  }
}

@media (max-width: 420px) {
  .SteamLogin-module__btn span {
    display: none;
  }

  .SteamLogin-module__btn {
    width: 38px;
    padding: 0 !important;
    justify-content: center;
  }

  .HeaderUser-module__info {
    display: none;
  }

  .HeaderUser-module__card {
    max-width: none;
    padding: 4px;
  }
}
