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

:root {
  --demo-bg: #141420;
  --demo-bg-strong: #1a1a2e;
  --demo-surface: #1e1e30;
  --demo-border: #2a2a40;
  --demo-text: #ffffff;
  --demo-muted: #8888aa;
  --demo-accent: #975df8;
  --demo-gold: #ffd700;
  --inventory-bar-height: 90px;
}

html {
  scroll-behavior: smooth;
}

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: center;
  min-height: var(--inventory-bar-height);
  background: linear-gradient(180deg, #1e1e30 0%, #141420 100%);
  border-bottom: 1px solid var(--demo-border);
  padding: 6px 24px;
  gap: 12px;
  overflow: hidden;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1001;
  contain: layout paint;
}

.left-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

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

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a2a1a, #0d1f0d);
  border: 2px solid #2d4a2d;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.online-count {
  color: var(--demo-text);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 1;
}

.online-label {
  color: #687894;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

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

.icon-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  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;
}

.crown-btn {
  background: linear-gradient(135deg, #8b6914, #6b5210);
  border: 1px solid #a07d1e;
  padding: 8px;
}

.grid-btn {
  background: #2a3a4a;
  border: 1px solid #3a4a5a;
  padding: 8px;
}

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

.items-scroll::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(90deg, transparent, var(--demo-bg-strong));
  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: 90px;
  background: linear-gradient(180deg, #1e1e32 0%, #16162a 100%);
  border: 1px solid #2a2a44;
  border-radius: 8px;
  padding: 6px 5px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform 0.15s, border-color 0.15s;
  color: inherit;
  text-decoration: none;
}

.item-card:hover {
  transform: translateY(-2px);
  border-color: #4a4a7a;
}

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

.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 {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.item-bg {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.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: 34px;
  height: 24px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.item-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 9px;
  color: var(--demo-text);
  font-weight: 600;
  margin-top: 1px;
  white-space: nowrap;
}

.item-card-case-link:hover .item-name {
  color: #fff;
}

.item-price {
  font-size: 6px;
  color: var(--demo-muted);
  margin-top: 1px;
}

.item-user {
  display: flex;
  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-username {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: calc(100% + 12px);
  min-height: 22px;
  padding: 4px 6px;
  margin: -4px -6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  font-size: 9px;
  text-decoration: none;
  border-radius: 6px;
}

.item-username:hover {
  color: #fff;
}

.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 {
  background: linear-gradient(180deg, #1e1e30 0%, #141420 100%);
  border-bottom: 1px solid var(--demo-border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: var(--inventory-bar-height);
  z-index: 1000;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.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: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s;
  color: var(--demo-muted);
  text-decoration: none;
  position: relative;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--demo-text);
}

.nav-item.active {
  background: transparent;
  color: #e4b23f;
  border-radius: 0;
  box-shadow: inset 0 -3px 0 #e4b23f;
}

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

.nav-item.active img {
  filter: brightness(0) saturate(100%) invert(77%) sepia(52%) saturate(705%) hue-rotate(358deg) brightness(94%) contrast(89%);
}

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

.nav-item span {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.steam-login {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  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: 13px;
  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;
  gap: 8px;
}

.top-balances {
  display: flex;
  gap: 12px;
}

.balance {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

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

.balance span {
  font-size: 13px;
  color: var(--demo-text);
  font-weight: 600;
}

.bottom-balance {
  display: flex;
  align-items: center;
  gap: 12px;
}

.crown-balance {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
}

.crown-balance img {
  width: 18px;
  height: 18px;
}

.crown-balance span {
  font-size: 13px;
  color: var(--demo-gold);
  font-weight: 600;
}

.deposit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  border: none;
  padding: 8px 24px;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 500;
  font-size: 13px;
  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: 1000;
  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[hidden],
.deposit-payment-view[hidden] {
  display: none !important;
}

.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-quick-amounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.deposit-quick-amounts button {
  height: 38px;
  border: 1px solid #34344e;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
}

.deposit-quick-amounts button:hover {
  border-color: #ffd700;
  color: #ffd700;
}

.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;
}

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

.deposit-payment-hint {
  color: #9aa3b5;
  font-size: 13px;
  line-height: 1.5;
}

.deposit-payment-frame {
  width: 100%;
  min-height: 520px;
  border: 1px solid #2a2a40;
  border-radius: 12px;
  background: #0d0f1f;
}

.deposit-payment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.deposit-payment-link,
.deposit-payment-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
}

.deposit-payment-link {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #fff;
}

.deposit-payment-reset {
  border: 1px solid #34344e;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  cursor: pointer;
}

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

  .deposit-payment-frame {
    min-height: 420px;
  }
}

.notification-wrapper {
  position: relative;
}

.notification-icon,
.logout-icon,
.mobile-menu-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}

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

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

.notification-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--demo-gold);
  border-radius: 50%;
}

.notifications-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 380px;
  max-height: 520px;
  background: var(--demo-bg-strong);
  border: 1px solid var(--demo-border);
  border-radius: 16px;
  padding: 20px 16px 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.notifications-title {
  color: var(--demo-text);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: 440px;
  padding-right: 4px;
}

.notification-card {
  background: #15152a;
  border: 1px solid #22223a;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.notification-card.unread::after {
  content: '';
  position: absolute;
  top: 14px;
  right: 14px;
  width: 8px;
  height: 8px;
  background: var(--demo-gold);
  border-radius: 50%;
}

.notification-card-title {
  color: var(--demo-text);
  font-size: 14px;
  font-weight: 700;
}

.notification-card-text {
  color: var(--demo-muted);
  font-size: 12px;
  line-height: 1.5;
}

.notification-card-meta,
.notification-empty-state {
  color: var(--demo-muted);
  font-size: 12px;
  line-height: 1.5;
}

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

.notification-empty-state {
  padding: 18px 16px;
  text-align: center;
  border: 1px dashed var(--demo-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.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:hover,
.profile-nav:hover {
  transform: scale(1.05);
}

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

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

.profile-level {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 35, 0.95);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  color: var(--demo-muted);
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.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: 1400px;
  margin: 0 auto 24px;
  padding: 20px 24px 0;
  font-size: 13px;
  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: 28px;
  height: 28px;
  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: 18px;
  height: 18px;
  fill: currentColor;
  stroke: currentColor;
  flex-shrink: 0;
}

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

.breadcrumb-separator {
  color: #4a4a6a;
}

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

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

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

.stats-block {
  background: linear-gradient(180deg, #1a1a2e 0%, #15152a 100%);
  border: 1px solid var(--demo-border);
  border-radius: 16px;
  padding: 28px 24px;
  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: 10px;
  padding: 8px 16px;
  position: relative;
}

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

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

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

.stats-value {
  font-size: 18px;
  color: var(--demo-text);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 4px;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}

.stats-label {
  font-size: 13px;
  color: #687894;
  font-weight: 400;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}

.site-footer {
  background: #0f0f1c;
  border-top: 1px solid #1f1f30;
  padding: 40px 24px 32px;
  color: #687894;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
}

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

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

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

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

.footer-subscribe {
  position: relative;
  width: 280px;
  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: 13px;
  padding: 10px 36px 10px 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: 28px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #687894;
  transition: color 0.2s;
}

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

.footer-subscribe-btn svg {
  width: 18px;
  height: 18px;
  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: 8px;
}

.footer-social {
  width: 36px;
  height: 36px;
  background: #1a1a2e;
  border: 1px solid var(--demo-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #8888aa;
  text-decoration: none;
}

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

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

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

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col-title {
  color: var(--demo-text);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.footer-col a {
  color: #687894;
  font-size: 13px;
  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;
  }
}
.icon-btn.crown-btn {
    padding: 6px;
}
.contents {
    max-width: 1280px;
    margin: auto;
}
@media (max-width: 1024px) and (min-width: 768px) {
  :root {
    --inventory-bar-height: 82px;
  }

  .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: 8px 12px;
    min-width: 48px;
    justify-content: center;
  }

  .nav-item img {
    margin: 0;
  }

  .nav-left {
    gap: 16px;
  }

  .nav-right {
    gap: 10px;
  }

  .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: 72px;
  }

  .item-card {
    width: clamp(66px, 20vw, 78px);
    padding: 6px 4px 5px;
  }

  .item-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .inventory-bar,
  .top-nav {
    padding-left: 16px;
    padding-right: 16px;
  }



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

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

  .mobile-deposit-btn {
    display: block;
    padding: 6px 12px;
    font-size: 11px;
    min-width: auto;
    margin-left: 4px;
  }

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

  .steam-login span {
    display: none;
  }

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

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

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

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

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

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

  .notifications-dropdown {
    position: fixed;
    top: 60px;
    left: 8px;
    right: 8px;
    width: auto;
    max-height: calc(100vh - 80px);
  }

  .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: 20px 12px;
  }

  .stats-item {
    padding: 16px 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: 16px;
  }

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

  .stats-icon {
    width: 28px;
    height: 28px;
  }

  .site-footer {
    padding: 32px 16px 24px;
  }

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

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

  .footer-subscribe {
    width: 100%;
  }

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