/* MODERN DESIGN SYSTEM - VIBEEE */
:root {
  /* Ð¦Ð²ÐµÑ‚Ð° */
  --bg-primary: #0a0c12;
  --bg-secondary: #0f1117;
  --bg-elevated: #141821;
  --bg-surface: #1a1f2e;
  --bg-overlay: rgba(10, 12, 18, 0.85);
  --border-subtle: #1e2742;
  --border-default: #2a3441;
  --border-strong: #3d4756;
  --text-primary: #ffffff;
  --text-secondary: #e4e6ea;
  --text-tertiary: #9aa4b2;
  --text-quaternary: #6b7280;
  --accent-primary: #FF0054;
  --accent-secondary: #8b5cf6;
  --accent-tertiary: #a855f7;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;
  --coin: #fbbf24;
  
  /* Ð“Ñ€Ð°Ð´Ð¸ÐµÐ½Ñ‚Ñ‹ */
  --gradient-brand: linear-gradient(135deg, #7c3aed 0%, #510fdd 50%, #FF0054 100%);
  --gradient-purple: linear-gradient(135deg, #581c87 0%, #7c3aed 100%);
  --gradient-blue: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
  --gradient-surface: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
  
  /* Ð¢ÐµÐ½Ð¸ */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px #ff00546e;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  
  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-base: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Image sizing fixes */
img {
  max-width: 100%;
  height: auto;
}

.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }
.w-24 { width: 6rem; }
.h-24 { height: 6rem; }
.w-32 { width: 8rem; }
.h-32 { height: 8rem; }
.w-48 { width: 12rem; }
.h-48 { height: 12rem; }
.w-64 { width: 16rem; }
.h-64 { height: 16rem; }

html {
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg-primary) url('/assets/img/bg.webp') center/cover no-repeat fixed;
  color: var(--text-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  overflow-x: hidden;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  /* background: rgba(30, 30, 38, 0.6); */
  backdrop-filter: blur(5px);
  /* border-radius: 20px; */
  /* border: 1px solid rgba(255, 255, 255, 0.08); */
  padding: 0;
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); */
  overflow: hidden;
  margin-top: rem;
  margin-bottom: -85px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-8);
  }
}

/* ÐšÐ¾Ð½Ñ‚ÐµÐ¹Ð½ÐµÑ€ Ð´Ð»Ñ Ð¿Ð¾Ð´Ð²Ð°Ð»Ð° Ð±ÐµÐ· Ð±Ð»ÑŽÑ€Ð° */
.container-footer {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 640px) {
  .container-footer {
    padding: 0 var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container-footer {
    padding: 0 var(--space-8);
  }
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }

/* Spacing */
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.p-0 { padding: 0; }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.px-2 { padding-left: var(--space-2); padding-right: var(--space-2); }
.px-3 { padding-left: var(--space-3); padding-right: var(--space-3); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }

.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }

.m-0 { margin: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Typography */
.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }
.text-3xl { font-size: var(--font-size-3xl); }
.text-4xl { font-size: var(--font-size-4xl); }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-quaternary { color: var(--text-quaternary); }

.leading-tight { line-height: var(--line-height-tight); }
.leading-normal { line-height: var(--line-height-normal); }
.leading-relaxed { line-height: var(--line-height-relaxed); }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }

/* Components */
.card {
  /* background: var(--bg-elevated); */
  /* border: 1px solid var(--border-subtle); */
  /* border-radius: var(--radius-xl); */
  /* padding: var(--space-6); */
  /* box-shadow: var(--shadow-base); */
  /* transition: all var(--transition-base); */
  text-align: center;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-default);
}

.card-surface {
  background: var(--bg-surface);
}

.card-gradient {
  background: var(--gradient-surface);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border: 0px solid #0a0c12;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: #ff00547d;
  color: var(--text-primary);
  /* box-shadow: var(--shadow-sm); */
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-color: var(--border-default);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--text-tertiary);
  border-color: var(--border-subtle);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

.btn-success {
  background: var(--success);
  color: var(--text-primary);
}

.btn-warning {
  background: var(--warning);
  color: var(--text-primary);
}

.btn-danger {
  background: var(--danger);
  color: var(--text-primary);
}

.btn-sm {
  padding: var(--space-3) var(--space-3);
  font-size: var(--font-size-xs);
}

.btn-lg {
  /* padding: var(--space-4) var(--space-6); */
  font-size: var(--font-size-base);
}



.twitch-icon {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  transition: transform var(--transition-fast);
}

.twitch-login-btn:hover .twitch-icon {
  transform: scale(1.1);
}

/* Form Elements */
.input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
}

.input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input::placeholder {
  color: var(--text-quaternary);
}

/* Badges & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.2);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border-color: rgba(245, 158, 11, 0.2);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.2);
}

.badge-info {
  background: rgba(6, 182, 212, 0.1);
  color: var(--info);
  border-color: rgba(6, 182, 212, 0.2);
}

/* Coin Icon */
.coin {
  display: inline-block;
  width: 28px;
  height: 28px;
  vertical-align: middle;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  padding: var(--space-4);
}

.modal.is-open {
  display: flex;
}

.modal-dialog {
  background: var(--bg-elevated);
  /* border: 1px solid var(--border-default); */
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  max-width: 32rem;
  width: 100%;
  box-shadow: var(--shadow-xl);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--bg-overlay);
  backdrop-filter: blur(12px) saturate(180%);
  /* border-bottom: 1px solid var(--border-subtle); */
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: var(--space-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 900;
  font-size: var(--font-size-lg);
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  background: var(--gradient-brand);
  border-radius: var(--radius-base);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
}

.logo-image {
  height: 2.5rem;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.logo:hover .logo-image {
  transform: scale(1.05);
}

.nav {
  display: none;
  align-items: center;
  gap: var(--space-2);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.nav-item:hover {
  background: var(--bg-surface);
  color: var(--text-secondary);
}

.nav-item.active {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}


.user-balance {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-2) var(--space-3);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.user-profile:hover {
  background: var(--bg-elevated);
  border-color: var(--border-default);
}

.user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-base);
  object-fit: cover;
}

.user-info {
  display: none;
  flex-direction: column;
  line-height: var(--line-height-tight);
}

@media (min-width: 640px) {
  .user-info {
    display: flex;
  }
}

.user-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.user-balance-text {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
}

/* Responsive utilities */
.hidden { display: none; }

@media (min-width: 640px) {
  .sm\:block { display: block; }
  .sm\:flex { display: flex; }
  .sm\:hidden { display: none; }
}

@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
}

@media (min-width: 1024px) {
  .lg\:block { display: block; }
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
}

/* Case page specific styles */
.case-reel {
  position: relative;
  height: 140px;
  background: var(--bg-primary);
  overflow: visible;
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 2rem;
  border-radius: 15px;
}

.case-reel::before,
.case-reel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6rem;
  z-index: 5;
  pointer-events: none;
}

.case-reel::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

.case-reel::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

.case-reel-cursor {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  pointer-events: none;
  z-index: 10;
  transform: translateX(-50%);
}

.case-reel-cursor::before {
  content: '';
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 8px;
  background: #ff0054;
  border-radius: 10%;
}

.case-reel-cursor::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 8px;
  background: #ff0054;
  border-radius: 10%;
}

.case-reel-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 15px;
}

.case-reel-items {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0.25rem;
  padding: 0 6rem;
  transition: transform 7s cubic-bezier(0.15, 0.5, 0.05, 0.995);
}

.case-reel-item {
  flex-shrink: 0;
  width: 150px;
  height: 140px;
  position: relative;
}

.case-reel-item .skin__img {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.case-reel-item .skin__img img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

/* Item grid fixes */
.item-grid-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1rem;
  transition: all var(--transition-base);
}

.item-grid-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-default);
}

.item-image-container {
  position: relative;
  width: 100%;
  height: 8rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.item-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.item-price-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-lg);
  padding: 0.25rem 0.5rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: white;
  z-index: 10;
}

/* Item rarity styles */
.item-rarity {
  background: linear-gradient(180deg, rgba(73,78,84,0) -7.98%, hsla(216,9%,55%,.237) 83.46%), #21212c;
  border-radius: 6px;
  position: relative;
  transition: none;
}

/* For reel items, override size constraints */
.case-reel-item.skin {
  width: 150px;
  height: 140px;
  padding: 0.8rem 1rem 1.1rem;
}

.case-reel-item.skin::before {
  top: 4px;
  height: 0.1rem;
}

/* For grid items, allow flexible sizing */
.item-rarity:not(.case-reel-item) {
  height: 100%;
  width: 100%;
}

/* Rarity specific backgrounds */
.item-rarity.rarity-consumer {
  background: center top / cover no-repeat url(../assets/img/bg-live-item.png), radial-gradient(32.98% 28.7% at 50% 37.04%, #8B4513 0%, #8B451317 100%), radial-gradient(32.98% 28.71% at 49.27% 37.04%, #000000 0%, #12121e 100%), linear-gradient(180deg, #8B4513 0%, #8B4513 100%);
}

.item-rarity.rarity-industrial {
  background: center top / cover no-repeat url(../assets/img/bg-live-item.png), radial-gradient(65% 110% at 50% -38%, #00c2ff 0%, #00c2ff17 100%), radial-gradient(32.98% 28.71% at 49.27% 37.04%, #000000 0%, #12121e 100%), linear-gradient(180deg, #00c2ff 0%, #00c2ff 100%);
}

.item-rarity.rarity-mil-spec {
  background: center top / cover no-repeat url(../assets/img/bg-live-item.png), radial-gradient(65% 110% at 50% -38%, #0F23DD 0%, #0F23DD17 100%), radial-gradient(32.98% 28.7% at 50% 37.04%, #000000 0%, #12121e 100%), linear-gradient(180deg, #0F23DD 0%, #0F23DD 100%);
}

.item-rarity.rarity-restricted {
  background: center top / cover no-repeat url(../assets/img/bg-live-item.png), radial-gradient(65% 110% at 50% -38%, #510FDD 0%, #510FDD17 100%), radial-gradient(32.98% 28.71% at 49.27% 37.04%, #000000 0%, #12121e 100%), linear-gradient(180deg, #510FDD 0%, #510FDD 100%);
}

.item-rarity.rarity-classified {
  background: center top / cover no-repeat url(../assets/img/bg-live-item.png), radial-gradient(65% 110% at 50% -38%, #FA00FF 0%, #FA00FF17 100%), radial-gradient(32.98% 28.71% at 49.27% 37.04%, #000000 0%, #12121e 100%), linear-gradient(180deg, #FA00FF 0%, #FA00FF 100%);
}

.item-rarity.rarity-covert {
  background: center top / cover no-repeat url(../assets/img/bg-live-item.png), radial-gradient(65% 110% at 50% -38%, #DD0F1B 0%, #DD0F1B17 100%), radial-gradient(32.98% 28.7% at 50% 37.04%, #000000 0%, #12121e 100%), linear-gradient(180deg, #DD0F1B 0%, #DD0F1B 100%);
}

.item-rarity.rarity-knife,
.item-rarity.rarity-rare {
  background: center top / cover no-repeat url(../assets/img/bg-live-item.png), radial-gradient(65% 110% at 50% -38%, #FFB800 0%, #FFB80017 100%), radial-gradient(32.98% 28.71% at 49.27% 37.04%, #000000 0%, #12121e 100%), linear-gradient(180deg, #FFB800 0%, #FFB800 100%);
}

/* Item image wrapper */
.item-image-wrapper {
  position: relative;
  width: 100%;
  height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.item-image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  z-index: 2;
}

/* Item footer */
.item-footer {
  position: relative;
  z-index: 2;
  padding: 0.75rem;
}

.item-weapon-name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.item-skin-name {
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
}

.item-chance {
  font-size: var(--font-size-xs);
  color: var(--text-quaternary);
  font-weight: 500;
}

/* Skin Cards Styles from Reference */
.skin {
  position: relative;
  padding: 0.8rem 2rem 1.1rem;
  min-width: 0;
  border-radius: 1.2rem;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.3s ease-out, mix-blend-mode 0.3s ease-out;
}

.skin--case-content {
  position: relative;
}

@media (max-width: 768px) {
  .skin {
    padding: 2rem 1.6rem;
  }
}

.skin::before {
  transform: translateX(-50%);
  position: absolute;
  left: 50%;
  width: 80%;
  height: 0.1rem;
  content: "";
  top: 4px;
  display: block;
  border-radius: 2.2rem;
}


.skin__img {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skin__img img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.skin__title,
.skin__subtitle {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skin__title {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  line-height: 112.5%;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

@media (max-width: 768px) {
  .skin__title {
    font-size: 1.4rem;
  }
}

.skin__subtitle {
  margin-top: 0.4rem;
  color: #ffffff66;
  font-size: 0.7rem;
  line-height: 150%;
  text-align: center;
}

/* Skin Rarity Classes */
.skin--common {
  background: center top / cover no-repeat url(../assets/img/bg-live-item.png), radial-gradient(32.98% 28.7% at 50% 37.04%, #8B4513 0%, #8B451317 100%), radial-gradient(32.98% 28.71% at 49.27% 37.04%, #000000 0%, #12121e 100%), linear-gradient(180deg, #8B4513 0%, #8B4513 100%);
}

.skin--common::before {
  box-shadow: 0 0 1.2rem 0 rgb(48 46 59 / 0.55);
  background-color: #302e3b;
}

.skin--uncommon {
  background: center top / cover no-repeat url(../assets/img/bg-live-item.png), radial-gradient(65% 110% at 50% -38%, #00c2ff 0%, #00c2ff17 100%), radial-gradient(32.98% 28.71% at 49.27% 37.04%, #000000 0%, #12121e 100%), linear-gradient(180deg, #00c2ff 0%, #00c2ff 100%);
}

.skin--uncommon::before {
  box-shadow: 0 0 1.2rem 0 rgb(0 194 255 / 0.55);
  background-color: #00C2FF;
}

.skin--milspec {
  background: center top / cover no-repeat url(../assets/img/bg-live-item.png), radial-gradient(65% 110% at 50% -38%, #0F23DD 0%, #0F23DD17 100%), radial-gradient(32.98% 28.7% at 50% 37.04%, #000000 0%, #12121e 100%), linear-gradient(180deg, #0F23DD 0%, #0F23DD 100%);
}

.skin--milspec::before {
  box-shadow: 0 0 1.2rem 0 rgb(15 35 221 / 0.55);
  background-color: #0F23DD;
}

.skin--restricted {
  background: center top / cover no-repeat url(../assets/img/bg-live-item.png), radial-gradient(65% 110% at 50% -38%, #510FDD 0%, #510FDD17 100%), radial-gradient(32.98% 28.71% at 49.27% 37.04%, #000000 0%, #12121e 100%), linear-gradient(180deg, #510FDD 0%, #510FDD 100%);
}

.skin--restricted::before {
  box-shadow: 0 0 1.2rem 0 rgb(81 15 221 / 0.55);
  background-color: #510FDD;
}

.skin--classified {
  background: center top / cover no-repeat url(../assets/img/bg-live-item.png), radial-gradient(65% 110% at 50% -38%, #FA00FF 0%, #FA00FF17 100%), radial-gradient(32.98% 28.71% at 49.27% 37.04%, #000000 0%, #12121e 100%), linear-gradient(180deg, #FA00FF 0%, #FA00FF 100%);
}

.skin--classified::before {
  box-shadow: 0 0 1.2rem 0 rgb(250 0 255 / 0.55);
  background-color: #FA00FF;
}

.skin--covert {
  background: center top / cover no-repeat url(../assets/img/bg-live-item.png), radial-gradient(65% 110% at 50% -38%, #DD0F1B 0%, #DD0F1B17 100%), radial-gradient(32.98% 28.7% at 50% 37.04%, #000000 0%, #12121e 100%), linear-gradient(180deg, #DD0F1B 0%, #DD0F1B 100%);
}

.skin--covert::before {
  box-shadow: 0 0 1.2rem 0 rgb(221 15 27 / 0.55);
  background-color: #DD0F1B;
}

.skin--rare {
  background: center top / cover no-repeat url(../assets/img/bg-live-item.png), radial-gradient(65% 110% at 50% -38%, #FFB800 0%, #FFB80017 100%), radial-gradient(32.98% 28.71% at 49.27% 37.04%, #000000 0%, #12121e 100%), linear-gradient(180deg, #FFB800 0%, #FFB800 100%);
}

.skin--rare::before {
  box-shadow: 0 0 1.2rem 0 rgb(255 245 0 / 0.55);
  background-color: #FFF500;
}

.skin--gloves {
  background: center top / cover no-repeat url(../assets/img/bg-live-item.png), radial-gradient(65% 110% at 50% -38%, #B2FF00 0%, #B2FF0017 100%), radial-gradient(32.98% 28.71% at 49.27% 37.04%, #000000 0%, #12121e 100%), linear-gradient(180deg, #B2FF00 0%, #B2FF00 100%);
}

.skin--gloves::before {
  box-shadow: 0 0 1.2rem 0 rgb(178 255 0 / 0.55);
  background-color: #B2FF00;
}

/* Hover effects */
@media (any-hover: hover) {
  .skin--case-content:hover .skin__img img {
    transform: rotate(5deg) scale(1.02);
  }
}

/* Grid layout for skins */
.grid-cols-auto {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

@media (max-width: 1200px) {
  .grid-cols-auto {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-cols-auto {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }
}

@media (max-width: 480px) {
  .grid-cols-auto {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
}

/* Profile inventory specific styles */
#items-grid .card {
  margin-bottom: 0;
}


/* Case Hero Styles */
.case-hero {
  position: relative;
  height: 60vh;
  min-height: 500px;
  max-height: 700px;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: -2rem;
  margin-bottom: 2rem;
}

.case-hero__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.case-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.case-hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 2rem;
}

.case-hero__case-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: -14rem;
}

.case-hero__case-img {
  position: absolute;
  width: 250px;
  height: 250px;
  object-fit: contain;
  object-position: bottom;
  animation: showCaseImg 0.5s linear 0.2s both;
  will-change: transform, opacity;
  z-index: 2;
  top: 111px;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .case-hero__case-img {
    width: 180px;
    height: 180px;
    top: -70px;
  }
}

.case-hero__pedestal-img {
  width: 1522px;
  height: 521px;
  object-fit: contain;
  object-position: bottom;
  z-index: 1;
  position: relative;
  margin-top: 120px;
}

@media (max-width: 768px) {
  .case-hero__pedestal-img {
    width: 800px;
    height: 274px;
    margin-top: 80px;
  }
}

.case-hero__info {
  text-align: center;
  z-index: 3;
  position: relative;
  margin-top: 1rem;
}

.case-hero__title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.case-hero__button {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .case-hero__title {
    font-size: 2rem;
  }
  
  .case-hero {
    height: 50vh;
    min-height: 400px;
  }
}

/* Cases List Styles */
.cases-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 1.2rem;
  margin-top: 2.8rem;
  overflow: hidden;
  transition: max-height 0.6s ease;
}

@media (max-width: 1200px) {
  .cases-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .cases-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .cases-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cases-list--small-card {
  grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr));
}

@media (max-width: 768px) {
  .cases-list--small-card {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cases-list--small-card .case__img {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
}

.cases__item {
  display: grid;
}

.case {
  position: relative;
  display: block;
  margin-bottom: 2.4rem;
  border-radius: 1.2rem;
  cursor: pointer;
}

@media (any-hover: hover) {
  .case:hover .case__img {
    transform: scale(1.05);
  }

  .case:hover .case__btn {
    background: linear-gradient(180deg, #161622 0%, #181827 100%);
    box-shadow: inset 0 0.2rem 0 0 #181825, inset 0 -0.2rem 0 0 #1b1b2c;
  }
}

.case--unavailable {
  opacity: 0.3;
}

.case--unavailable .case__body {
  cursor: default;
}

.case__body {
  position: relative;
  padding: 3rem 1.5rem 2.5rem;
  border-radius: 1.2rem;
  /* background: linear-gradient(180deg, #161622 0%, #0C0C1B 100%); */
  /* box-shadow: 0 0.2rem 0 0 #181825 inset; */
  cursor: pointer;
  text-align: center;
  overflow: hidden;
}

.case__badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  display: flex;
  align-items: center;
  height: 2.2rem;
  padding-left: 0.8rem;
  padding-right: 0.8rem;
  border-radius: 0.6rem;
  color: #161622;
  font-size: 1rem;
  font-weight: 900;
  line-height: 100%;
  text-transform: uppercase;
  z-index: 1;
}

@media (max-width: 768px) {
  .case__badge {
    left: 1rem;
    top: 0.8rem;
  }
}

.case__badge--hot {
  border: thin solid #FF000F;
  background: linear-gradient(0deg, #C81B25 0%, #C81B25 100%), #D9D9D9;
  box-shadow: 0 0 1.2rem 0 rgb(200 27 37 / 0.25);
  text-shadow: 0 0.1rem 0 #FF000F;
}

.case__badge--new {
  border: thin solid #FFE500;
  background: linear-gradient(0deg, #DDC916 0%, #DDC916 100%), #D9D9D9;
  box-shadow: 0 0 1.2rem 0 rgb(255 153 0 / 0.25);
}

.case__header {
  transform: translateX(-50%);
  position: absolute;
  left: 50%;
  top: 1.5rem;
  margin: 0 auto;
  width: 80%;
}

.case__title {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 112.5%;
  color: #ffffff;
}

@media (max-width: 768px) {
  .case__title {
    font-size: 1.4rem;
  }
}

.case__img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  transition: transform 0.3s ease-out;
  z-index: 1;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .case__img {
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
  }
}

.case__img img {
  transform: translate(-50%, -50%);
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.case__btn {
  transform: translate(-50%, 50%);
  position: absolute;
  left: 50%;
  bottom: 0;
  border: 0rem solid #161622;
  /* box-shadow: 0 -0.2rem 0 0 #141421 inset, 0 0.2rem 0 0 #181825 inset; */
  color: #FFF;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  /* border-radius: 0.6rem; */
  background: linear-gradient(180deg, #12121e00 0%, #ff005466 100%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .case__btn {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
  }
}

.case__btn span {
  font-size: 1.2rem;
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .case__btn span {
    font-size: 1.1rem;
  }
}

.case__btn svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: #FFE500;
}

@media (max-width: 768px) {
  .case__btn svg {
    width: 1.4rem;
    height: 1.4rem;
  }
}

/* === ADMIN PANEL STYLES === */

.admin-body {
  background: #0a0a0f;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
}

/* Admin Header */
.admin-header {
  background: linear-gradient(135deg, #1a1a26 0%, #161622 100%);
  border-bottom: 1px solid #2a2a3a;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.admin-header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-header__brand h1 {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
}

.admin-header__user {
  color: #888;
  font-size: 0.9rem;
  margin-left: 1rem;
}

.admin-nav {
  display: flex;
  gap: 1rem;
}

.admin-nav__link {
  color: #ccc;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.admin-nav__link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-nav__link--danger:hover {
  background: #dc3545;
  color: #fff;
}

/* Layout */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 80px);
}

/* Sidebar */
.admin-sidebar {
  width: 250px;
  background: linear-gradient(180deg, #161622 0%, #0C0C1B 100%);
  border-right: 1px solid #2a2a3a;
  padding: 2rem 0;
}

.admin-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 1rem;
}

.admin-sidebar__link {
  color: #ccc;
  text-decoration: none;
  padding: 1rem 1.5rem;
  border-radius: 0.8rem;
  transition: all 0.2s;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-sidebar__link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-sidebar__link--active {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

/* Main Content */
.admin-main {
  flex: 1;
  padding: 2rem;
  background: #0a0a0f;
}

/* Tabs */
.admin-tab {
  display: none;
}

.admin-tab--active {
  display: block;
}

/* Sections */
.admin-section {
  background: linear-gradient(180deg, #161622 0%, #0C0C1B 100%);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid #2a2a3a;
}

.admin-section__title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
}

/* Stats Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.admin-stat-card {
  background: linear-gradient(135deg, #1a1a26 0%, #161622 100%);
  border: 1px solid #2a2a3a;
  border-radius: 0.8rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-stat-card__icon {
  font-size: 2rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border-radius: 0.5rem;
}

.admin-stat-card__value {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}

.admin-stat-card__label {
  color: #888;
  font-size: 0.9rem;
}

/* Form Elements */
.admin-input, .admin-select, .admin-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #1a1a26;
  border: 1px solid #2a2a3a;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.9rem;
}

.admin-input:focus, .admin-select:focus, .admin-textarea:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.admin-label {
  display: block;
  color: #ccc;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.admin-form-group {
  margin-bottom: 1.5rem;
}

/* Buttons */
.admin-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-btn--primary {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
}

.admin-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.admin-btn--secondary {
  background: #2a2a3a;
  color: #ccc;
}

.admin-btn--secondary:hover {
  background: #3a3a4a;
  color: #fff;
}

.admin-btn--danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: #fff;
}

.admin-btn--danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

/* Tables */
.admin-table-container {
  overflow-x: auto;
  border-radius: 0.8rem;
  border: 1px solid #2a2a3a;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #1a1a26;
}

.admin-table th {
  background: #2a2a3a;
  color: #fff;
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #3a3a4a;
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid #2a2a3a;
  color: #ccc;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Toolbar */
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.admin-search {
  flex: 1;
  max-width: 400px;
}

/* Modal */
.admin-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.admin-modal.active {
  display: flex;
}

.admin-modal__content {
  background: linear-gradient(180deg, #161622 0%, #0C0C1B 100%);
  border-radius: 1rem;
  border: 1px solid #2a2a3a;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.admin-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #2a2a3a;
}

.admin-modal__header h3 {
  color: #fff;
  margin: 0;
}

.admin-modal__close {
  background: none;
  border: none;
  color: #ccc;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
}

.admin-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-modal__body {
  padding: 2rem;
}

.admin-modal__actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

/* Checkboxes */
.admin-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.admin-checkbox input[type="checkbox"] {
  display: none;
}

.admin-checkbox__mark {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #2a2a3a;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.admin-checkbox input[type="checkbox"]:checked + .admin-checkbox__mark {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border-color: #4f46e5;
}

.admin-checkbox input[type="checkbox"]:checked + .admin-checkbox__mark::after {
  content: 'âœ“';
  color: white;
  font-size: 0.8rem;
  font-weight: bold;
}

/* Charts */
.admin-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.admin-chart-card {
  background: linear-gradient(135deg, #1a1a26 0%, #161622 100%);
  border: 1px solid #2a2a3a;
  border-radius: 0.8rem;
  padding: 1.5rem;
}

.admin-chart-card h3 {
  color: #fff;
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .admin-layout {
    flex-direction: column;
  }
  
  .admin-sidebar {
    width: 100%;
    padding: 1rem 0;
  }
  
  .admin-sidebar__nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 0 1rem;
  }
  
  .admin-sidebar__link {
    flex-shrink: 0;
    white-space: nowrap;
  }
  
  .admin-main {
    padding: 1rem;
  }
  
  .admin-charts-grid {
    grid-template-columns: 1fr;
  }
}

/* Win Block Styles */
.win-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out, visibility 0s ease-out 0.3s;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}

.win-overlay.win--open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-out, visibility 0s;
}

/* Ð”ÐµÐºÐ¾Ñ€Ð°Ñ‚Ð¸Ð²Ð½Ð¾Ðµ Ð¸Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ðµ Ð¿Ð°Ð»ÑŒÐ¼ */
.win-palms {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.3;
  z-index: 1;
  pointer-events: none;
}

/* Ð¦ÐµÐ½Ñ‚Ñ€Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð½Ñ‹Ð¹ Ð±Ð»Ð¾Ðº Ð±ÐµÐ· Ñ€Ð°Ð¼Ð¾Ðº Ð¸ Ð¿Ð»Ð°ÑˆÐµÐº */
.win-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  text-align: center;
}

/* Ð¤Ð¾Ð½ Ð¿Ð¾Ð´ÑÐ²ÐµÑ‡Ð¸Ð²Ð°ÐµÑ‚ÑÑ Ñ†Ð²ÐµÑ‚Ð¾Ð¼ Ñ€ÐµÐ´ÐºÐ¾ÑÑ‚Ð¸ ÑÐ²ÐµÑ€Ñ…Ñƒ â†’ Ð²Ð½Ð¸Ð·Ñƒ Ñ‚ÐµÐ¼Ð½Ñ‹Ð¹ */
.win-overlay.skin--common { background: linear-gradient(180deg, rgba(73,78,84,0.5) 0%, rgba(0,0,0,0.8) 100%), rgba(0,0,0,0.6); backdrop-filter: blur(10px); }
.win-overlay.skin--uncommon { background: linear-gradient(180deg, rgba(0,194,255,0.4) 0%, rgba(0,0,0,0.85) 100%), rgba(0,0,0,0.6); backdrop-filter: blur(10px); }
.win-overlay.skin--milspec { background: linear-gradient(180deg, rgba(15,35,221,0.4) 0%, rgba(0,0,0,0.85) 100%), rgba(0,0,0,0.6); backdrop-filter: blur(10px); }
.win-overlay.skin--restricted { background: linear-gradient(180deg, rgba(81,15,221,0.45) 0%, rgba(0,0,0,0.85) 100%), rgba(0,0,0,0.6); backdrop-filter: blur(10px); }
.win-overlay.skin--classified { background: linear-gradient(180deg, rgba(250,0,255,0.4) 0%, rgba(0,0,0,0.85) 100%), rgba(0,0,0,0.6); backdrop-filter: blur(10px); }
.win-overlay.skin--covert { background: linear-gradient(180deg, rgba(221,15,27,0.45) 0%, rgba(0,0,0,0.85) 100%), rgba(0,0,0,0.6); backdrop-filter: blur(10px); }
.win-overlay.skin--rare { background: linear-gradient(180deg, rgba(255,184,0,0.4) 0%, rgba(0,0,0,0.85) 100%), rgba(0,0,0,0.6); backdrop-filter: blur(10px); }
.win-overlay.skin--gloves { background: linear-gradient(180deg, rgba(178,255,0,0.35) 0%, rgba(0,0,0,0.85) 100%), rgba(0,0,0,0.6); backdrop-filter: blur(10px); }

/* ÐšÑ€ÑƒÐ¿Ð½Ð¾Ðµ Ð¸Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ðµ Ð¿Ñ€ÐµÐ´Ð¼ÐµÑ‚Ð°, Ð¿ÑƒÐ»ÑŒÑÑƒÐµÑ‚ Ñ‚Ð¾Ð»ÑŒÐºÐ¾ Ð¾Ð½Ð¾ */
.win-item-hero {
  width: min(28rem, 80vw);
  height: auto;
  object-fit: contain;
}

@keyframes pulseScale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.animate-pulse-scale {
  animation: pulseScale 2.2s ease-in-out infinite;
}

/* Ð¢ÐµÐºÑÑ‚Ñ‹ Ð¿Ð¾Ð´ Ð¸Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸ÐµÐ¼ */
.win-weapon {
  color: #ffffff;
  font-size: 2.55rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.win-skin {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  font-weight: 400;
}


.win__btns {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 1.3rem;
  flex-wrap: wrap;
  padding: 2.4rem;
  border-radius: 2.4rem;
  /* background: linear-gradient(180deg, #0C0C1B 0%, #0C0C1B 90%, transparent 100%); */
  /* margin-top: 2rem; */
}

@media (max-width: 1024px) {
  .win__btns {
    gap: 1.6rem 2.4rem;
  }
}

@media (max-width: 768px) {
  .win__btns {
    flex-direction: column;
    gap: 1.2rem;
    padding: 2rem;
  }
}

.win__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0 var(--space-5);
  border: 0px solid #0a0c12;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  min-width: 160px;
  height: 52px;
  position: relative;
  overflow: hidden;
}

/* Ð£Ð±Ð¸Ñ€Ð°ÐµÐ¼ ÐºÐ°ÑÑ‚Ð¾Ð¼Ð½Ñ‹Ðµ ÑÑ„Ñ„ÐµÐºÑ‚Ñ‹, Ð¸ÑÐ¿Ð¾Ð»ÑŒÐ·ÑƒÐµÐ¼ ÑÑ‚Ð°Ð½Ð´Ð°Ñ€Ñ‚Ð½Ñ‹Ðµ ÑÑ‚Ð¸Ð»Ð¸ ÐºÐ½Ð¾Ð¿Ð¾Ðº */

.win__btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.win__btn .coin {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.win__btn--repeat {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-color: var(--border-default);
}

.win__btn--repeat:hover:not(:disabled) {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}

.win__btn--sell {
  background: #ff00547d;
  color: var(--text-primary);
}
.win__btn--sell:hover {
  background: #ff0054c9;
  color: var(--text-primary);
}

.win__btn--inventory {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-color: var(--border-default);
}

.win__btn--inventory:hover:not(:disabled) {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}

@keyframes showCaseImg {
  0% {
    transform: translateX(-50%) translateY(-12rem);
    opacity: 0;
  }
  40% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  60% {
    transform: translateX(-50%) translateY(-1rem);
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

/* Profile specific styles */
.profile-best-item-image {
  width: 100%;
  height: 6rem;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-best-item-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Profile Header Styles */
.container-sm {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}



/* Button styles to match reference */
.btn--sm {
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-xs);
  border-radius: var(--radius-base);
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  font-weight: 500;
}

.btn--sm:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn--sm svg {
  width: 14px;
  height: 14px;
}



.styles_form__group__RkcJe {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.styles_input__label__8AzXa {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.styles_tradeLink__group__E_GGE {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.styles_control__13VCd {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
}

.styles_outlined__j2hfU {
  border: 1px solid var(--border-default);
}

.styles_input__control__gc2Hw {
  background: var(--bg-surface);
  position: relative;
}

.styles_input__control__gc2Hw:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.styles_icon__hMT3h {
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.styles_input__i9ROQ {
  background: transparent;
  border: none;
  outline: none;
  flex: 1;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

.styles_input__i9ROQ::placeholder {
  color: var(--text-quaternary);
}

.styles_text__input__3PdNp {
  padding: 0;
}

.trade-link-actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.trade-help-link {
  color: var(--text-tertiary);
  font-size: var(--font-size-sm);
  flex: 1;
}

.trade-help-link:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-secondary);
}

.styles_color--accent__pin3S,
.styles_color--accent__M_D0N {
  background: var(--gradient-brand);
  color: var(--text-primary);
  border-color: transparent;
}

.styles_color--accent__pin3S:hover,
.styles_color--accent__M_D0N:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.styles_button__content__gTgZz {
  font-weight: 600;
  font-size: var(--font-size-sm);
}

.styles_size--lg__A1n8l {
  padding: var(--space-3) var(--space-4);
}

.styles_full-width__k6xcu {
  width: 100%;
}

.styles_fit-content___NQl4 {
  width: auto;
  min-width: 120px;
}

/* Tooltip Styles */
.skin__tooltip {
  position: absolute;
  top: 15px !important;
  right: 15px !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 10;
}

.tooltip {
  /* position: relative; */
  display: inline-block;
}

.tooltip__toggle {
  width: 20px;
  height: 20px;
  background: rgb(0 0 0 / 40%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  font-family: Arial, sans-serif;
}

.tooltip__toggle:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.tooltip__body {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 4px;
  color: #ffffff;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip__body::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 8px;
  border: 4px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
}

.tooltip:hover .tooltip__body {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

.tooltip__chance {
  color: #ffffff;
  font-weight: 600;
}

@media (max-width: 768px) {
  .trade-link-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .styles_fit-content___NQl4 {
    width: 100%;
  }
}
