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

:root {
  --demo-bg: #071018;
  --demo-bg-strong: #0d1420;
  --demo-surface: #121721;
  --demo-border: #1b2636;
  --demo-text: #ffffff;
  --demo-muted: #657189;
  --demo-accent: #975df8;
  --demo-gold: #f2b31e;
  --demo-scrollbar-track: #050b12;
  --demo-scrollbar-track-end: #0b1521;
  --demo-scrollbar-thumb: #34455d;
  --demo-scrollbar-thumb-end: #1f2d40;
  --demo-scrollbar-thumb-hover: #4c6079;
  --header-top-offset: 0px;
  --inventory-bar-height: 98px;
  --demo-nav-height: 58px;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--demo-scrollbar-thumb) var(--demo-scrollbar-track);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(180deg, var(--demo-scrollbar-track), var(--demo-scrollbar-track-end));
  border-left: 1px solid rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--demo-scrollbar-thumb), var(--demo-scrollbar-thumb-end));
  border: 2px solid var(--demo-scrollbar-track);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--demo-scrollbar-thumb-hover);
}

body {
  background: var(--demo-bg);
  color: var(--demo-text);
  font-family: 'Segoe UI', Arial, sans-serif;
  min-height: 100vh;
}

img {
  max-width: 100%;
}

button,
a {
  font: inherit;
}

.hidden {
  display: none;
}

.inventory-bar {
  display: flex;
  align-items: stretch;
  height: var(--inventory-bar-height);
  min-height: var(--inventory-bar-height);
  background: #0a111a;
  border-bottom: 1px solid #1b2535;
  padding: 6px 0 4px 12px;
  gap: 8px;
  overflow: hidden;
  width: 100%;
  position: sticky;
  top: var(--header-top-offset);
  margin-top: var(--header-top-offset);
  z-index: 1001;
  contain: layout paint;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

.left-panel {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 122px;
  flex-shrink: 0;
}

.avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 68px;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #11221c;
  border: 2px solid rgba(75, 203, 113, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar img {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.online-count {
  color: var(--demo-text);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  line-height: 1.1;
}

.online-label {
  width: 100%;
  color: #ffffff;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  padding-bottom: 3px;
  border-bottom: 2px solid #70c279;
}

.buttons-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 7px;
  overflow: hidden;
  padding: 8px;
  background: #172235;
  border: 1px solid rgba(111, 126, 153, 0.12);
  font: inherit;
  transition: opacity 0.15s, transform 0.1s;
}

.icon-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

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

.icon-btn.is-active {
  background: #5a3d0b;
  border: 1px solid rgba(240, 175, 26, 0.18);
}

.icon-btn:focus-visible {
  outline: 2px solid #f0af1a;
  outline-offset: 1px;
}

.items-scroll {
  display: flex;
  gap: 0;
  overflow: hidden;
  padding: 0;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  contain: layout paint;
  position: relative;
}

.items-scroll::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 72px;
  background: linear-gradient(90deg, rgba(10, 17, 26, 0), #0a111a);
  pointer-events: none;
}

.items-scroll-inner {
  display: flex;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  will-change: transform;
}

.item-card {
  flex-shrink: 0;
  width: 94px;
  height: 88px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0 3px 5px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  transition: transform 0.15s, border-color 0.15s;
  color: inherit;
  text-decoration: none;
}

.item-card:hover {
  transform: none;
  border-color: transparent;
}

.item-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 0;
}

.item-card.purple::before { background: linear-gradient(90deg, #975df8, #b088f9); }
.item-card.red::before { background: linear-gradient(90deg, #eb4b4b, #ff6b6b); }
.item-card.blue::before { background: linear-gradient(90deg, #4b69ff, #6b89ff); }
.item-card.yellow::before { background: linear-gradient(90deg, #ffd700, #ffed4e); }
.item-card.gray::before { background: linear-gradient(90deg, #8888aa, #aaaaaa); }
.item-card.green::before { background: linear-gradient(90deg, #37d67a, #8cf5b5); }

.item-card-case-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.item-bg {
  width: 66px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin: 0 0 2px;
  overflow: visible;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.item-card.purple .item-bg { background-image: url('../../img/bg_img.svg'); }
.item-card.red .item-bg { background-image: url('../../img/bg_img_1.svg'); }
.item-card.blue .item-bg { background-image: url('../../img/bg_img_2.svg'); }
.item-card.yellow .item-bg { background-image: url('../../img/bg_img_3.svg'); }
.item-card.gray .item-bg { background-image: url('../../img/bg_img_4.svg'); }
.item-card.green .item-bg { background-image: url('../../img/bg_img_4.svg'); }

.item-img {
  width: 98px;
  max-width: none;
  height: 62px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.item-name {
  position: relative;
  z-index: 2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  font-weight: 700;
  color: var(--demo-text);
  line-height: 1.05;
  margin-top: 1px;
  white-space: nowrap;
  text-decoration: none;
}

.item-price,
.item-weapon {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #a2acbd;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.05;
  white-space: nowrap;
}

.item-user {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 3px;
  max-width: 100%;
  width: 100%;
  margin-top: 1px;
  color: #7984a8;
  font-size: 8px;
  line-height: 1;
}

.item-account-label {
  flex: 0 0 auto;
  border-radius: 3px;
  padding: 1px 3px;
  background: rgba(255, 255, 255, 0.08);
  color: #cfd4ff;
  font-size: 7px;
  font-weight: 700;
  line-height: 1;
}

.item-account-label-bot {
  color: #95f2c0;
  background: rgba(55, 214, 122, 0.14);
}

.item-account-label-streamer {
  color: #ffd77a;
  background: rgba(255, 215, 0, 0.14);
}

.top-nav {
  min-height: var(--demo-nav-height);
  background: #101722;
  border-bottom: 1px solid #1b2535;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: calc(var(--inventory-bar-height) + var(--header-top-offset));
  z-index: 1000;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

.nav-left {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 20px;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo img {
  height: 32px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: var(--demo-nav-height);
  padding: 0;
  border-radius: 0;
  transition: all 0.2s;
  color: #637089;
  text-decoration: none;
  position: relative;
}

.nav-item:hover {
  background: transparent;
  color: var(--demo-text);
}

.nav-item.active {
  background: transparent;
  color: #f5b52c;
  border-radius: 0;
  box-shadow: none;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: #e99a00;
}

.nav-item.active:hover {
  background: transparent;
  color: #f5b52c;
}

.nav-item.active img {
  filter: brightness(0) saturate(100%) invert(76%) sepia(93%) saturate(956%) hue-rotate(345deg) brightness(104%) contrast(92%);
}

.nav-item img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.nav-item span {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.steam-login {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--demo-text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.steam-login:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, #263244 0%, #131c2a 100%);
}

.steam-login img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: 0 0 auto;
}

.balances-wrapper {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 240px;
  max-width: 240px;
}

.top-balances {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  gap: 0;
  width: 100%;
}

.balance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 0 10px;
  background: transparent;
  border-radius: 0;
}

.balance:first-child {
  border-right: 1px solid #2b3547;
}

.balance img {
  width: 12px;
  height: 12px;
}

.balance span {
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
  white-space: nowrap;
  color: var(--demo-text);
  font-weight: 600;
}

.bottom-balance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0;
  width: 100%;
  min-height: 32px;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  background: #182235;
  border: 1px solid #31405a;
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.crown-balance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  max-width: none;
  height: 100%;
  padding: 0 10px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.crown-balance-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #263249;
}

.crown-balance-icon img {
  width: 12px;
  height: 11px;
}

.crown-balance > span[data-user-balance] {
  max-width: 116px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  color: var(--demo-text);
  font-weight: 600;
}

.bottom-balance .deposit-btn {
  min-width: 92px;
  height: 28px;
  margin: 2px;
  border-radius: 6px;
  font-size: 11px;
}

.deposit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 22px;
  background: linear-gradient(180deg, #ffc447 0%, #f0a40c 100%);
  border: none;
  padding: 0 10px;
  border-radius: 4px;
  color: #ffffff;
  font-weight: 600;
  font-size: 10px;
  cursor: pointer;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.deposit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.profile-modal[hidden] {
  display: none !important;
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.profile-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 8, 18, 0.72);
  backdrop-filter: blur(3px);
}

.profile-modal-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  border: 1px solid #2a2a40;
  border-radius: 16px;
  background: #15152a;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  color: #fff;
  box-sizing: border-box;
}

.profile-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border: 1px solid #34344e;
  border-radius: 8px;
  background: transparent;
  color: #8888aa;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.profile-modal-close:hover {
  color: #fff;
  border-color: #6a6a88;
}

.profile-modal-title {
  margin: 0 36px 18px 0;
  font-size: 20px;
  font-weight: 800;
}

.deposit-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.deposit-form-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.deposit-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #8888aa;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.deposit-field input {
  width: 100%;
  height: 46px;
  border: 1px solid #2a2a40;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 0 14px;
  box-sizing: border-box;
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

.deposit-field input:focus {
  border-color: #ffd700;
}

.deposit-field input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.deposit-field input[type="number"]::-webkit-inner-spin-button,
.deposit-field input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.deposit-submit-btn {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
}

.deposit-submit-btn:disabled {
  cursor: progress;
  opacity: 0.65;
}

.card-form-message {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.35;
}

.card-form-message.success {
  color: #55d66b;
}

.card-form-message.error {
  color: #ff6b6b;
}

@media (max-width: 767px) {
  .profile-modal-card {
    padding: 18px;
  }
}

.notification-wrapper {
  position: relative;
  padding-left: 10px;
  border-left: 1px solid #1f2939;
}

.notification-icon,
.logout-icon,
.mobile-menu-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  background: transparent;
  border: 0;
  position: relative;
}

.notification-icon:hover,
.logout-icon:hover,
.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.04);
}

.notification-icon img,
.logout-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.notification-badge {
  position: absolute;
  top: 4px;
  right: 5px;
  width: 6px;
  height: 6px;
  background: var(--demo-gold);
  border: 1px solid #0d1420;
  border-radius: 50%;
}

.notifications-dropdown {
  --notifications-top: calc(var(--header-top-offset) + var(--inventory-bar-height) + var(--demo-nav-height) + 8px);
  position: fixed;
  top: var(--notifications-top);
  right: 16px;
  width: min(320px, calc(100vw - 24px));
  max-height: calc(100vh - var(--notifications-top) - 12px);
  padding: 13px;
  overflow: hidden;
  border: 1px solid #202b3c;
  border-radius: 7px;
  background: #101722;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.98);
  transform-origin: top right;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.notifications-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transform: scale(1);
}

.notifications-head {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px 9px;
  border-bottom: 1px solid #202a39;
}

.notifications-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.notifications-head-icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: rgba(213, 161, 31, 0.12);
}

.notifications-head-icon img {
  width: 14px;
  height: 14px;
}

.notifications-title {
  color: var(--demo-text);
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  text-align: left;
}

.notifications-count {
  margin-top: 1px;
  color: #687894;
  font-size: 8px;
  font-weight: 500;
  line-height: 10px;
}

.notifications-close {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #687894;
  cursor: pointer;
}

.notifications-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

.notifications-clear {
  min-height: 24px;
  padding: 0 7px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #687894;
  font: inherit;
  font-size: 8px;
  font-weight: 600;
  cursor: pointer;
}

.notifications-clear:hover:not(:disabled) {
  background: #182130;
  color: #ffffff;
}

.notifications-clear:disabled {
  opacity: 0.45;
  cursor: default;
}

.notifications-close:hover {
  background: #182130;
  color: #ffffff;
}

.notifications-close svg {
  width: 13px;
  height: 13px;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  max-height: min(274px, calc(100vh - var(--notifications-top) - 70px));
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: #526070 transparent;
}

.notifications-list::-webkit-scrollbar {
  width: 4px;
}

.notifications-list::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: #526070;
}

.notifications-list::-webkit-scrollbar-track {
  background: transparent;
}

.notification-card {
  min-height: 64px;
  padding: 11px 28px 10px 11px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: #151d2a;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 4px;
  position: relative;
}

.notification-card.unread::after {
  content: '';
  position: absolute;
  top: 14px;
  right: 12px;
  width: 5px;
  height: 5px;
  background: var(--demo-gold);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(242, 179, 30, 0.5);
}

.notification-card-title {
  color: var(--demo-text);
  font-size: 10px;
  font-weight: 600;
  line-height: 13px;
}

.notification-card-text {
  color: var(--demo-muted);
  font-size: 9px;
  font-weight: 500;
  line-height: 13px;
  overflow-wrap: anywhere;
}

.notification-card-meta,
.notification-empty-state {
  color: var(--demo-muted);
  font-size: 8px;
  line-height: 11px;
  overflow-wrap: anywhere;
}

.notification-card-meta {
  opacity: 0.8;
}

.notification-empty-state {
  min-height: 72px;
  padding: 18px 14px;
  text-align: center;
  border: 1px dashed var(--demo-border);
  border-radius: 5px;
  background: #151d2a;
}

.notification-card-btn {
  width: 100%;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  color: #1a1a2e;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.notification-card-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.profile,
.profile-nav {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s;
}

.profile-nav {
  padding-left: 10px;
  border-left: 1px solid #1f2939;
  text-decoration: none;
}

.profile:hover,
.profile-nav:hover {
  transform: none;
}

.profile-wrapper {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  overflow: visible;
  border-radius: 10px;
}

.profile-wrapper img,
.profile img {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  color: transparent;
  font-size: 0;
}

.profile-level {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: #2d3954;
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 7px;
  color: #9aa7c0;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.logout-icon {
  padding-left: 10px;
  border-left: 1px solid #1f2939;
}

.mobile-deposit-btn {
  display: none;
}

.mobile-menu-btn {
  display: none;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  position: relative;
  transition: all 0.3s;
}

.mobile-menu-btn span::before,
.mobile-menu-btn span::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2px;
  background: #fff;
  left: 0;
  transition: all 0.3s;
}

.mobile-menu-btn span::before { top: -7px; }
.mobile-menu-btn span::after { top: 7px; }
.mobile-menu-btn.active span { background: transparent; }
.mobile-menu-btn.active span::before { transform: rotate(45deg); top: 0; }
.mobile-menu-btn.active span::after { transform: rotate(-45deg); top: 0; }

.mobile-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #1e1e30 0%, #141420 100%);
  border-bottom: 1px solid var(--demo-border);
  padding: 16px;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-dropdown.active {
  display: block;
}

.mobile-dropdown .nav-item {
  width: 100%;
  justify-content: flex-start;
  padding: 12px 16px;
  margin-bottom: 4px;
}

.mobile-balances-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 4px 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-top-balances {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-balance .balance-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-balance .balance-label,
.mobile-crown-balance .balance-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.mobile-balance .balance-label {
  color: #687894;
}

.mobile-balance .balance-value {
  font-size: 14px;
  color: var(--demo-text);
  font-weight: 700;
}

.mobile-bottom-balance {
  width: 100%;
}

.mobile-crown-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 165, 0, 0.08));
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 10px;
}

.mobile-crown-balance .balance-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-crown-balance .balance-label {
  color: rgba(255, 215, 0, 0.8);
}

.mobile-crown-balance .balance-value {
  font-size: 15px;
  color: var(--demo-gold);
  font-weight: 700;
}

.mobile-crown-balance img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.demo-placeholder {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.demo-placeholder-card {
  background: linear-gradient(180deg, rgba(30, 30, 48, 0.96), rgba(20, 20, 32, 0.96));
  border: 1px solid var(--demo-border);
  border-radius: 20px;
  padding: 32px;
}

.demo-placeholder-card h1 {
  font-size: 32px;
  margin-bottom: 12px;
}

.demo-placeholder-card p {
  color: var(--demo-muted);
  line-height: 1.6;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto 24px;
  padding: 20px 24px 0;
  font-size: 14px;
  color: var(--demo-muted);
}

.breadcrumb a {
  color: var(--demo-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--demo-text);
}

.breadcrumb-home {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--demo-text);
  border: 1px solid var(--demo-border);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}

.breadcrumb-home:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--demo-text);
}

.breadcrumb-home svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: currentColor;
  flex-shrink: 0;
}

.breadcrumb svg {
  width: 20px;
  height: 20px;
  fill: #4a5468;
  flex-shrink: 0;
}

.breadcrumb-separator {
  color: #4a4a6a;
  font-size: 16px;
  line-height: 1;
}

.breadcrumb-current,
.breadcrumb .current {
  color: var(--demo-muted);
  font-size: 14px;
}

.stats-section {
  padding: 0 24px 24px;
  background: var(--demo-bg);
}

.stats-section .contents {
  width: 100%;
  max-width: 1296px;
  min-width: 0;
  margin: 0 auto;
}

.stats-block {
  background: #121721;
  border: 1px solid #202b3c;
  border-radius: 16px;
  padding: 28px 24px;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.stats-block,
.stats-item {
  min-width: 0;
}

.stats-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  position: relative;
}

.stats-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 64px;
  background: rgba(255, 255, 255, 0.08);
}

.stats-icon {
  width: 49px;
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats-icon img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  opacity: 1;
}

.stats-value {
  font-size: 18px;
  line-height: 120%;
  color: #687894;
  font-weight: 600;
  letter-spacing: 0;
  margin-top: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}

.stats-label {
  font-size: 15px;
  line-height: 130%;
  color: #687894;
  font-weight: 400;
  letter-spacing: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}

.site-footer {
  background: #121721;
  border: 0;
  padding: 18px 18px 12px;
  color: #536078;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content max-content;
  column-gap: 32px;
  row-gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.footer-logo img {
  height: 24px;
  width: auto;
}

.footer-subscribe-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.footer-subscribe {
  position: relative;
  width: 180px;
  max-width: 100%;
}

.footer-subscribe input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--demo-border);
  color: var(--demo-text);
  font-size: 11px;
  line-height: 130%;
  padding: 4px 22px 4px 0;
  outline: none;
  transition: border-color 0.2s;
}

.footer-subscribe input::placeholder {
  color: #4a5468;
}

.footer-subscribe input:focus {
  border-bottom-color: var(--demo-gold);
}

.footer-subscribe-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #536078;
  transition: color 0.2s;
}

.footer-subscribe-btn:hover {
  color: var(--demo-gold);
}

.footer-subscribe-btn svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.footer-subscribe-message {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.4;
}

.footer-subscribe-message.success {
  color: #8dd7a6;
}

.footer-subscribe-message.error {
  color: #ff8e8e;
}

.footer-socials {
  display: flex;
  gap: 6px;
}

.footer-social {
  width: 16px;
  height: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s;
  color: #687894;
  text-decoration: none;
}

.footer-social:hover {
  color: var(--demo-gold);
}

.footer-social svg {
  width: 9px;
  height: 9px;
  fill: currentColor;
}

.footer-legal {
  color: #4a5468;
  font-size: 10px;
  line-height: 1.45;
}

.footer-copyright {
  color: var(--demo-text);
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

.footer-col-title {
  color: var(--demo-text);
  font-size: 11px;
  line-height: 130%;
  font-weight: 600;
  margin-bottom: 0;
}

.footer-col a {
  color: #536078;
  font-size: 10px;
  line-height: 140%;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--demo-gold);
}

@media (max-width: 1200px) {
  .balances-wrapper,
  .logout-icon {
    display: none;
  }

  .mobile-deposit-btn,
  .mobile-menu-btn {
    display: flex;
  }
}
.contents {
    max-width: 1280px;
    margin: auto;
}

.contents:has(> .breadcrumb) {
    width: min(100%, 1920px);
    max-width: 100%;
}
@media (max-width: 1024px) and (min-width: 768px) {
  :root {
    --inventory-bar-height: 86px;
    --demo-nav-height: 66px;
  }

  .inventory-bar {
    padding: 5px 14px;
  }

  .left-panel {
    width: auto;
    align-items: center;
  }

  .avatar-section {
    width: 52px;
    gap: 3px;
  }

  .avatar {
    width: 40px;
    height: 40px;
  }

  .avatar img {
    width: 36px;
    height: 36px;
  }

  .online-count {
    font-size: 12px;
  }

  .online-label {
    font-size: 9px;
    letter-spacing: 0.5px;
  }

  .buttons-section {
    gap: 4px;
  }

  .icon-btn {
    width: 30px;
    height: 30px;
    padding: 6px;
  }

  .item-card {
    width: 99px;
    height: 76px;
    padding: 0 3px 6px;
  }

  .item-bg {
    width: 66px;
    height: 52px;
  }

  .item-img {
    width: 94px;
    height: 52px;
  }

  .item-weapon,
  .item-price {
    font-size: 7px;
  }

  .item-name {
    font-size: 8px;
  }

  .top-nav {
    min-height: var(--demo-nav-height);
  }

  .nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .balances-wrapper {
    display: flex;
    gap: 6px;
  }

  .top-balances {
    gap: 8px;
  }

  .bottom-balance {
    gap: 8px;
  }

  .nav-item span {
    display: none !important;
  }

  .nav-item {
    padding: 6px 10px;
    min-width: 48px;
    min-height: var(--demo-nav-height);
    justify-content: center;
  }

  .nav-item img {
    margin: 0;
  }

  .nav-left {
    gap: 16px;
  }

  .logo img {
    height: 36px;
  }

  .nav-right {
    gap: 6px;
  }

  .top-nav {
    gap: 16px;
  }

  .steam-login {
    padding: 8px 12px;
  }

  .deposit-btn {
    padding: 6px 14px;
    font-size: 12px;
  }

  .logout-icon {
    display: flex;
  }

  .mobile-deposit-btn {
    display: none;
  }

  .mobile-menu-btn {
    display: none;
  }
}

@media (width: 768px) {
  .balances-wrapper {
    display: none;
  }

  .mobile-deposit-btn {
    display: flex;
  }
}

@media (max-width: 767px) {
  :root {
    --inventory-bar-height: 82px;
    --demo-nav-height: 60px;
  }

  .inventory-bar {
    align-items: stretch;
    padding: 5px 0 4px 10px;
    gap: 5px;
  }

  .left-panel {
    width: 96px;
    align-items: flex-start;
    gap: 6px;
  }

  .avatar-section {
    width: 50px;
    gap: 2px;
  }

  .avatar {
    width: 38px;
    height: 38px;
  }

  .avatar img {
    width: 34px;
    height: 34px;
  }

  .online-count {
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
  }

  .online-label {
    font-size: 9px;
    letter-spacing: 0;
  }

  .buttons-section {
    gap: 4px;
  }

  .icon-btn {
    width: 32px;
    height: 32px;
    padding: 8px;
    border-radius: 6px;
  }

  .item-card {
    width: clamp(81px, 23.25vw, 90px);
    height: 72px;
    padding: 0 3px 5px;
  }

  .item-bg {
    width: 58px;
    height: 48px;
    margin-bottom: 2px;
  }

  .item-img {
    width: 84px;
    height: 48px;
  }

  .item-weapon,
  .item-price {
    font-size: 8px;
    line-height: 1.05;
  }

  .item-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 9px;
    line-height: 1.05;
  }

  .top-nav {
    padding-left: 14px;
    padding-right: 14px;
    justify-content: flex-start;
  }



  .nav-menu,
  .balances-wrapper,
  .logout-icon {
    display: none;
  }

  .nav-right {
    flex: 1 1 auto;
    gap: 6px;
    justify-content: flex-end;
    margin-left: 8px;
    min-width: 0;
  }

  .top-nav {
    min-height: var(--demo-nav-height);
  }

  .logo img {
    width: 100px;
    height: auto;
    max-height: 36px;
  }

  .profile-nav,
  .notification-wrapper {
    padding-left: 0;
    border-left: 0;
  }

  .notification-wrapper {
    flex: 0 0 34px;
  }

  .profile-nav {
    flex: 0 0 40px;
  }

  .mobile-dropdown .nav-item {
    min-height: auto;
  }

  .mobile-menu-btn {
    display: flex;
    flex: 0 0 34px;
    order: 4;
  }

  .deposit-btn.mobile-deposit-btn {
    display: flex;
    order: 1;
    flex: 0 0 64px;
    width: 64px;
    min-width: 64px;
    max-width: 64px;
    height: 28px;
    padding: 0;
    font-size: 10px;
    margin-left: 0;
  }

  .steam-login {
    padding: 8px 12px;
    font-size: 12px;
  }

  .steam-login span {
    display: none;
  }

  .notification-icon + .mobile-deposit-btn {
    margin-left: 0;
  }

  .notification-wrapper {
    order: 2;
  }

  .profile-nav {
    order: 3;
  }

  .profile-wrapper,
  .profile,
  .profile img {
    width: 40px;
    height: 40px;
  }

  .profile-wrapper {
    flex-basis: 40px;
  }

  .deposit-btn {
    padding: 6px 16px;
    font-size: 12px;
  }

  .notification-icon {
    width: 34px;
    height: 34px;
  }

  .notification-icon img {
    width: 20px;
    height: 20px;
  }

  .notifications-dropdown {
    top: var(--notifications-top);
    left: 8px;
    right: 8px;
    width: auto;
    max-height: calc(100vh - var(--notifications-top) - 8px);
    padding: 11px;
    border-radius: 7px;
    gap: 9px;
  }

  .notifications-title {
    font-size: 11px;
  }

  .notifications-list {
    gap: 6px;
    max-height: min(266px, calc(100vh - var(--notifications-top) - 66px));
  }

  .notification-card {
    min-height: 62px;
    padding: 10px 26px 9px 10px;
    border-radius: 5px;
    gap: 4px;
  }

  .notification-card.unread::after {
    top: 13px;
    right: 11px;
    width: 5px;
    height: 5px;
  }

  .notification-card-title {
    font-size: 10px;
  }

  .notification-card-text {
    font-size: 9px;
    line-height: 13px;
  }

  .mobile-top-balances {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mobile-balance,
  .mobile-crown-balance {
    padding: 12px 16px;
  }

  .mobile-balance .balance-value,
  .mobile-crown-balance .balance-value {
    font-size: 16px;
  }

  .stats-section {
    padding: 0 16px 24px;
  }

  .stats-block {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 16px 10px;
  }

  .stats-item {
    padding: 12px 8px;
  }

  .stats-item::after {
    display: none;
  }

  .stats-item:nth-child(1)::after,
  .stats-item:nth-child(3)::after {
    display: block;
  }

  .stats-item:nth-child(1)::before,
  .stats-item:nth-child(2)::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
  }

  .stats-value {
    font-size: 15px;
  }

  .stats-label {
    font-size: 13px;
  }

  .stats-icon {
    width: 38px;
    height: 34px;
  }

  .site-footer {
    padding: 26px 16px 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-subscribe-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .footer-subscribe {
    width: 100%;
  }

  .footer-legal {
    font-size: 11px;
  }
}
