/* MODERN DESIGN SYSTEM - VIBEEE */
:root {
  /* ??????N??? */
  --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;
  
  /* ??N???????????N?N? */
  --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: var(--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);
  }
}

/* ?s????N?????????N? ????N? ?????????????? ?????? ????NZN??? */
.container-footer {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

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

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

/* 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;
  text-transform: uppercase;
  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-page-header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 0;
  margin-bottom: 0;
  height: auto;
  min-height: 100px;
  /* Переопределяем стили из header.css */
  grid-template-columns: 1fr !important;
  gap: 0 !important;
}

.nickname-case-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.nickname-case-header__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 0, 84, 0.5);
  box-shadow: 0 0 20px rgba(255, 0, 84, 0.3);
}

.nickname-case-header__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nickname-case-description-block {
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.nickname-case-description {
  text-align: center;
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.nickname-case-description .vibecoin-amount {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Аватар поверх картинки кейса с парящей анимацией */
.nickname-case-avatar-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 0, 84, 0.6);
  box-shadow: 0 0 30px rgba(255, 0, 84, 0.5), 0 0 60px rgba(255, 0, 84, 0.3);
  animation: float-avatar 3s ease-in-out infinite;
}

.nickname-case-avatar-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes float-avatar {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-15px);
  }
}

.case-title-large {
  font-size: 130px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
  margin: 0;
  padding: 0;
  position: relative;
  letter-spacing: 0.02em;
  /* Позиционирование так, чтобы нижние края букв касались defaultCase_row */
  margin-bottom: 0;
  padding-bottom: 0;
  display: block;
  color: transparent;
  background-image: linear-gradient(to top, #00000000, #7c7c7c);
  background-clip: text;
  -webkit-background-clip: text;
}

@media (max-width: 991px) {
  .case-title-large {
    font-size: 60px;
  }
}

@media (max-width: 600px) {
  .case-title-large {
    font-size: 40px;
  }
}

/* Фото кейса над рулеткой */
.case-image-animation {
  position: absolute;
  z-index: 4;
  inset: 0;
  margin: auto;
  margin-bottom: 0px;
  width: 22.4rem; /* 30.5rem * 0.8 = 24.4rem (уменьшено на 20%) */
  height: 22.4rem;
  pointer-events: none;
  transition: opacity 0.5s ease-out;
}

@media all and (max-width: 991px) {
  .case-image-animation {
    width: 14.4rem; /* 18rem * 0.8 = 14.4rem (уменьшено на 20%) */
    height: 14.4rem;
  }
}

.case-image-animation .case {
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
  width: 100%;
  height: 100%;
}

.case-image-animation .case__light {
  position: absolute;
  inset-inline: 0;
  /* top: -0.5rem; */
  width: 22.72rem; /* 25.9rem * 0.8 = 20.72rem (уменьшено на 20%) */
  height: 13.72rem;
  border-radius: 10rem;
  margin-inline: auto;
  background: rgb(255 0 84); /* Розовое свечение */
  filter: blur(100px);
  animation: pulsingLight 3.5s 1.2s infinite alternate;
  animation-timing-function: ease;
  animation-play-state: running;
}

@media all and (max-width: 991px) {
  .case-image-animation .case__light {
    width: 12.96rem; /* 16.2rem * 0.8 = 12.96rem (уменьшено на 20%) */
    height: 12.96rem;
  }
}

.case-image-animation .case img {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: contain;
}

.case-image-animation .case img.animated {
  animation: caseImageShakeAnimation 1.2s;
}

@keyframes caseImageShakeAnimation {
  30% {
    transform: scale(1.05);
  }
  40%, 60% {
    transform: rotate(-1deg) scale(1.05);
  }
  50% {
    transform: rotate(1deg) scale(1.05);
  }
  70% {
    transform: rotate(0) scale(1.05);
  }
  to {
    transform: scale(1);
  }
}

@keyframes pulsingLight {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Затемненные айтемы в рулетке */
.case-reel-item--dimmed {
  opacity: 0.25 !important;
}

/* Подложка для рулетки и кнопок (как в референсе) */
.defaultCase_row {
  background: rgb(255 255 255 / 4%);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  display: grid;
  margin-top: 0; /* Убрано, чтобы нижние края букв заголовка касались верхнего края */
  padding: 4px 4px 0;
  position: relative;
}

@media (max-width: 900px) {
  .defaultCase_row {
    border-radius: 20px;
    margin-top: 0; /* Убрано, чтобы нижние края букв заголовка касались верхнего края */
  }
}

.mainContent_component {
  background: #101c22;
  border-radius: 22px;
  display: grid;
  height: 312px;
  max-width: 100%;
  position: relative;
  margin: 16px 16px 0 16px;
}

@media (max-width: 900px) {
  .mainContent_component {
    border-radius: 16px;
    height: 312px;
    margin: 16px 16px 0 16px;
  }
}

.defaultCase_status {
  align-items: center;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  min-height: 88px;
  padding: 0 40px;
  position: relative;
  z-index: 5; /* Поверх изображения кейса (z-index: 4) */
}

@media (max-width: 900px) {
  .defaultCase_status {
    padding: 12px 8px;
    min-height: 0;
  }
}

/* Рулетка (spinPreview_component) */
.spinPreview_component {
  height: 100%;
  overflow: hidden;
  padding: 6px;
  position: relative;
}

.spinPreview_wrapper {
  border-radius: 16px;
  height: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.spinPreview_wrapper:after,
.spinPreview_wrapper:before {
  content: "";
  height: 100%;
  position: absolute;
  top: 0;
  width: 180px;
  z-index: 1;
}

@media (max-width: 1300px) {
  .spinPreview_wrapper:after,
  .spinPreview_wrapper:before {
    width: 140px;
  }
}

@media (max-width: 599px) {
  .spinPreview_wrapper:after,
  .spinPreview_wrapper:before {
    width: 40px;
  }
}

.spinPreview_wrapper:before {
  background: linear-gradient(90deg, #101c22, rgba(26, 24, 29, 0));
  border-radius: 16px 0 0 16px;
  left: 0;
}

.spinPreview_wrapper:after {
  background: linear-gradient(90deg, rgba(26, 24, 29, 0), #101c22);
  border-radius: 0 16px 16px 0;
  right: 0;
  top: 0;
}

.spinPreview_inner {
  height: 100%;
  max-width: 100%;
  position: relative;
}

.spinPreview_list {
  display: flex;
  height: 100%;
  will-change: transform;
  list-style: none;
  margin: 0;
  padding: 0;
}

.spinPreview_item {
  display: grid;
  position: relative;
}

/* Элементы рулетки (previewItem_component) */
.previewItem_component {
  background: linear-gradient(180deg,rgba(73,78,84,0) 10%,hsla(216,9%,55%,.237) 83.46%),#201f2b;
  border-radius: 16px;
  flex-shrink: 0;
  height: 140px;
  margin-right: 4px;
  overflow: hidden;
  position: relative;
  transition: opacity .6s ease .4s,transform 1.2s ease .7s;
  width: 150px;
}

@media (max-width: 900px) {
  .previewItem_component {
    width: 156px;
  }
}

.previewItem_component.previewItem_knife {
  background: linear-gradient(180deg,#2c2718,#42391c);
}

.previewItem_component.previewItem_restricted {
  background: linear-gradient(180deg,#1f1430,#291549);
}

.previewItem_component.previewItem_covert {
  background: linear-gradient(180deg,#38211c,#54211d);
}

.previewItem_component.previewItem_milspec {
  background: linear-gradient(180deg,#132228,#18303a);
}

.previewItem_component.previewItem_classified {
  background: linear-gradient(180deg,#2d1325,#421b37);
}

.previewItem_component.previewItem_industrial {
  background: linear-gradient(180deg,#191f30,#1f2b4c);
}

.previewItem_component.previewItem_consumer {
  background: linear-gradient(180deg,#222224,#292a2d);
}

.previewItem_imageWrapper {
  align-items: center;
  display: grid;
  height: 100px;
  justify-content: center;
  left: 0;
  margin: auto;
  position: absolute;
  right: 0;
  top: 27px;
  width: 134px;
  z-index: 2;
}

@media (max-width: 900px) {
  .previewItem_imageWrapper {
    height: 94px;
    top: 30px;
    width: 126px;
  }
}

.previewItem_image {
  width: 100%;
}

.previewItem_footer {
  bottom: 16px;
  left: 0;
  overflow: hidden;
  padding: 0 12px;
  position: absolute;
  text-align: center;
  width: 100%;
  z-index: 3;
}

.previewItem_subtitle,
.previewItem_title {
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.previewItem_title {
  color: hsla(0,0%,100%,.5);
  font-size: 12px;
}

.previewItem_subtitle {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  margin-top: 2px;
}

/* Затемненные карточки после выигрыша */
.spinPreview_item.spinItem_hidden {
  opacity: 0.25 !important;
}

/* Блок баланса (caseBalance_component) */
.caseBalance_component {
  display: grid;
  height: 100%;
  position: relative;
  width: 100%;
  z-index: 5; /* Поверх изображения кейса (z-index: 4) */
}

.caseBalance_note {
  grid-gap: 2px;
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  background: rgb(255 0 84 / 25%);
  border-radius: 12px;
  bottom: calc(100% - 4px);
  display: grid;
  gap: 2px;
  left: 0;
  margin: auto;
  max-width: 450px;
  padding: 16px 20px;
  position: absolute;
  right: 0;
  text-align: center;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}

@media (max-width: 900px) {
  .caseBalance_note {
    bottom: calc(100% + 16px);
  }
}

.caseBalance_title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.caseBalance_text {
  color: rgb(255 255 255 / 60%);
  font-size: 13px;
  line-height: 16px;
  margin: 0;
}

.caseBalance_row {
  max-width: 100%;
  align-items: center;
  display: grid;
  justify-content: center;
  overflow: hidden;
}

.caseBalance_button {
  /* Используем стили user_balance из header.css */
}

.caseBalance_button.user_balance {
  /* Переопределения не нужны, используем стили из header.css */
}

/* Кнопки результата (winButtons_component) */
.winButtons_component {
  align-items: center;
  display: none; /* Скрыты по умолчанию */
  flex-direction: row;
  gap: 16px;
  justify-content: center;
  position: relative;
  width: 100%;
  flex-wrap: nowrap;
}

.winButtons_component[style*="display: flex"],
.winButtons_component[style*="display:flex"] {
  display: flex !important;
}

@media (max-width: 900px) {
  .winButtons_component {
    gap: 10px;
    flex-wrap: nowrap;
  }
}

.winButtons_left {
  display: grid;
  justify-content: right;
}

@media (max-width: 900px) {
  .winButtons_left {
    justify-content: normal;
    order: 1;
  }
}

.winButtons_button {
  grid-gap: 6px;
  align-items: center;
  border-radius: 12px;
  display: grid;
  font-size: 14px;
  font-weight: 500;
  gap: 6px;
  grid-auto-flow: column;
  height: 48px;
  justify-content: center;
  padding: 0 16px;
  transition: background-color .3s,color .3s;
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}

.winButtons_button.winButtons_again {
  background: #ff005447;
  color: #ff0054;
  font-weight: 800;
}

.winButtons_button.winButtons_again path {
  fill: #151515;
}

.winButtons_button.winButtons_again:hover {
  background-color: #ff0054;
  color: #fff;
}

.winButtons_button.winButtons_sell {
  grid-gap: 10px;
  align-content: center;
  align-items: center;
  background: linear-gradient(307deg, #b9134d 3.2%, #E91E63 99.71%);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  grid-auto-flow: column;
  overflow: hidden;
  padding: 0 14px 0 22px;
  position: relative;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 16px;
  color: hsla(0,0%,100%,.9);
  text-shadow: 0 2px 1px rgba(137,65,14,.34);
  transition: all 0.3s ease;
  height: 50px;
}

.winButtons_button.winButtons_sell:before {
  background: linear-gradient(307deg, #d2285c 3.2%, #E91E63 99.71%);
  content: "";
  height: 100%;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  transition: opacity .3s;
  width: 100%;
}

.winButtons_button.winButtons_sell:hover:before {
  opacity: 1;
}

.winButtons_button.winButtons_sell:hover {
  transform: translateY(-2px);
}

.winButtons_button.winButtons_sell > span {
  position: relative;
  z-index: 2;
}

.winButtons_button.winButtons_sell img {
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .winButtons_button.winButtons_sell {
    order: 0;
    border-radius: 10px;
    gap: 7px;
    padding: 0 8px 0 16px;
    font-size: 15px;
    height: 46px;
  }
}

.winButtons_button.winButtons_contracts {
  background: hsla(41,12%,75%,.16);
  color: #c6c1b6;
}

.winButtons_button.winButtons_contracts path {
  fill: #c6c1b6;
}

.winButtons_button.winButtons_contracts:hover {
  background: hsla(41,12%,75%,.4);
  color: #f3efe7;
}

.winButtons_button.winButtons_contracts:hover path {
  fill: #f3efe7;
}

.winButtons_buttonIcon {
  height: 20px;
  transition: transform .3s;
  width: 20px;
}

.case-reel {
  position: relative;
  height: 220px;
  background: transparent;
  overflow: visible;
  width: 100%;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: 1rem;
  border-radius: 16px;
  z-index: 10;
}







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

.case-reel::before {
  left: 0;
  background: #501128;
  border-radius: 100px 0 0 100px;
}

.case-reel::after {
  right: 0;
  background: #501128;
  border-radius: 0 100px 100px 0;
}

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

.case-reel-cursor.active {
  opacity: 1;
}

.case-reel-cursor::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background: #ff0054;
  border-radius: 0 0 100px 100px;
  box-shadow: 0 4px 20px rgba(255, 0, 84, 0.6), 0 8px 40px rgba(255, 0, 84, 0.4);
}

.case-reel-wrapper {
  position: relative;
  /* width: 100%; */
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  /* box-shadow: 0 0 30px 33px rgb(0 0 0); */







}

.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 {
  width: 227px !important;
  height: 296px !important;
  padding: 0.8rem 1rem 1.1rem !important;
}

/* Треугольники в цвет раритетности для карточек рулетки */
.case-reel-item.skin {
  position: relative;
  overflow: hidden;
}

.case-reel-item.skin::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  mask-image: url(../assets/img/triangles.webp);
  /* mask-size: contain; */
  mask-position: center top;
  mask-repeat: no-repeat;
  -webkit-mask-image: url(../assets/img/triangles.webp);
  /* -webkit-mask-size: contain; */
  -webkit-mask-position: center top;
  -webkit-mask-repeat: no-repeat;
  z-index: 0;
}

.case-reel-item.skin--common::after {
  background-color: #302e3b;
}

.case-reel-item.skin--uncommon::after {
  background-color: #00C2FF;
}

.case-reel-item.skin--milspec::after {
  background-color: #0F23DD;
}

.case-reel-item.skin--restricted::after {
  background-color: #510FDD;
}

.case-reel-item.skin--classified::after {
  background-color: #FA00FF;
}

.case-reel-item.skin--covert::after {
  background-color: #DD0F1B;
}

.case-reel-item.skin--rare::after {
  background-color: #FFF500;
}

.case-reel-item.skin--gloves::after {
  background-color: #B2FF00;
}

.case-reel-item .skin__img {
  height: 209px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

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

.spinItem_component {
  flex-shrink: 0;
  width: 150px;
  height: 140px;
  position: relative;
  background: linear-gradient(180deg, rgba(73,78,84,0) 10%, hsla(216,9%,55%,.237) 83.46%), #201f2b;
  border-radius: 16px;
  margin-right: 4px;
  overflow: hidden;
  transition: opacity 0.6s ease 0.4s, transform 1.2s ease 0.7s;
}

@media (max-width: 900px) {
  .case-reel-item,
  .spinItem_component {
    width: 156px;
  }
}

.spinItem_imageWrapper {
  height: calc(100% - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem 0;
}

.spinItem_image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.spinItem_footer {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  padding: 0 12px;
  text-align: center;
  z-index: 3;
}

.spinItem_title {
  color: hsla(0,0%,100%,.5);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spinItem_subtitle {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Стили редкостей для карточек рулетки */
.spinItem_component.rarity-consumer,
.case-reel-item.rarity-consumer {
  background: linear-gradient(180deg, rgba(73,78,84,0) 10%, hsla(216,9%,55%,.237) 83.46%), #201f2b;
}

.spinItem_component.rarity-industrial,
.case-reel-item.rarity-industrial {
  background: linear-gradient(180deg, #191f30, #1f2b4c);
}

.spinItem_component.rarity-milspec,
.case-reel-item.rarity-milspec {
  background: linear-gradient(180deg, #132228, #18303a);
}

.spinItem_component.rarity-restricted,
.case-reel-item.rarity-restricted {
  background: linear-gradient(180deg, #1f1430, #291549);
}

.spinItem_component.rarity-classified,
.case-reel-item.rarity-classified {
  background: linear-gradient(180deg, #2d1325, #421b37);
}

.spinItem_component.rarity-covert,
.case-reel-item.rarity-covert {
  background: linear-gradient(180deg, #38211c, #54211d);
}

.spinItem_component.rarity-knife,
.case-reel-item.rarity-knife {
  background: linear-gradient(180deg, #2c2718, #42391c);
}

/* Старые стили для совместимости */
.case-reel-item .skin__img {
  /* height: 227px; */
  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: 227px;
  height: 296px;
  padding: 0.8rem 1rem 1.1rem;
}

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

/* 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: 60%;
  height: 0.1rem;
  content: "";
  bottom: 0px;
  display: block;
  border-radius: 2.2rem;
}


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

/* Для карточек в рулетке переопределяем высоту */
.case-reel-item .skin__img {
  height: 209px !important;
}

.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;
  position: relative;
  z-index: 1;
}

@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;
  position: relative;
  z-index: 1;
}

/* Skin Rarity Classes */
.skin--common {
  background: 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: radial-gradient(65% 110% at 50% -38%, #3d6099 0%, #00c2ff14 100%), radial-gradient(32.98% 28.71% at 49.27% 37.04%, #000000 0%, #12121e 100%), linear-gradient(180deg, #3d5e97 0%, #3e649f 100%);
}

.skin--uncommon::before {
  box-shadow: 0rem 2rem 6rem 2rem #3e649f;
  background-color: #3e649f;
}

.skin--milspec {
  background: 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: 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: 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: 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: 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: 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: auto;
  min-height: 200px;
  overflow: hidden;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.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: 0rem;
}

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

/* Блок выигрыша под крутилкой */
.case-win-result {
  margin-top: 2rem;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 18px;
  text-align: center;
}

.case-win-result__content {
  max-width: 600px;
  margin: 0 auto;
}

.case-win-result__title {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.case-win-result__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.case-win-result__item-card {
  width: 200px;
  height: 240px;
  position: relative;
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

.case-win-result__item-card:hover {
  transform: scale(1.25);
}

.case-win-result__item-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.case-win-result__item-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.case-win-result__item-price {
  font-size: 1rem;
  color: #e4e6ea;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.case-win-result__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.case-win-result__btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.case-win-result__btn--open {
  background: linear-gradient(307deg, #ff0054 3.2%, #ba134d 99.71%);
  color: #fff;
}

.case-win-result__btn--open:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 0, 84, 0.4);
}

.case-win-result__btn--sell {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.case-win-result__btn--sell:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.case-win-result__btn--inventory {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.case-win-result__btn--inventory:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.case-win-result__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Затемненные карточки после выигрыша */
.spinItem_hidden,
.case-reel-item.spinItem_hidden {
  opacity: 0.25 !important;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .case-win-result {
    padding: 1.5rem;
    margin-top: 1rem;
  }
  
  .case-win-result__title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .case-win-result__item-card {
    width: 150px;
    height: 180px;
    transform: scale(1.1);
  }
  
  .case-win-result__buttons {
    flex-direction: column;
  }
  
  .case-win-result__btn {
    width: 100%;
    justify-content: center;
  }
}

/* Страница кейса - новая структура */
.case-page {
  display: flex;
  flex-direction: column;
  gap: 0rem;
  /* padding: 2rem 0; */
}

.case-page__header {
  text-align: center;
}

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

.case-page__daily-text {
  font-size: 14px;
  color: #e4e6ea;
  margin-top: 0.5rem;
}

.case-page__roulette {
  position: relative;
  width: 100%;
}

.case-page__roulette .case-reel {
  margin-top: 0;
}

.case-page__daily-info {
  text-align: center;
}

.case-page__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.case-page__win-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.case-page__win-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
}

.case-page__win-btn--again {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.case-page__win-btn--again:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.case-page__win-btn--sell {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.case-page__win-btn--sell:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.case-page__win-btn--sell span:last-child {
  font-weight: 700;
  margin-left: 0.25rem;
}

.case-page__win-btn--inventory {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.case-page__win-btn--inventory:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.case-page__open-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Скрытие контейнера открытия, когда показаны кнопки результата */
.case-page__open-container[style*="display: none"],
.case-page__open-container[style*="display:none"],
.case-page__open-container[style*="display: none !important"],
.case-page__open-container[style*="display:none !important"] {
  display: none !important;
}

/* Когда кнопки результата показаны, контейнер открытия должен быть скрыт */
.defaultCase_status:has(.winButtons_component[style*="display: flex"]) .case-page__open-container,
.defaultCase_status:has(.winButtons_component[style*="display:flex"]) .case-page__open-container,
.defaultCase_status:has(#win-result-buttons[style*="display: flex"]) .case-page__open-container,
.defaultCase_status:has(#win-result-buttons[style*="display:flex"]) .case-page__open-container,
.defaultCase_status.has-win-buttons .case-page__open-container,
.case-page__open-container.hidden-by-win-buttons {
  display: none !important;
}

.case-page__open-btn {
  grid-gap: 10px;
  align-content: center;
  align-items: center;
  background: linear-gradient(307deg, #b9134d 3.2%, #E91E63 99.71%);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  grid-auto-flow: column;
  overflow: hidden;
  padding: 0 14px 0 22px;
  position: relative;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 16px;
  color: hsla(0,0%,100%,.9);
  text-shadow: 0 2px 1px rgba(137,65,14,.34);
  transition: all 0.3s ease;
  height: 50px;
}

.case-page__open-btn:before {
  background: linear-gradient(307deg, #d2285c 3.2%, #E91E63 99.71%);
  content: "";
  height: 100%;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  transition: opacity .3s;
  width: 100%;
}

.case-page__open-btn:hover:before {
  opacity: 1;
}

/* Состояние загрузки без фона */
.case-page__open-btn--loading {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  height: auto !important;
  overflow: visible !important;
}

.case-page__open-btn--loading:before {
  display: none !important;
}

.case-page__open-btn:hover {
  transform: translateY(-2px);
}

.case-page__open-btn > span {
  position: relative;
  z-index: 2;
}

.case-page__open-coin {
  height: 24px;
  position: relative;
  transition: transform .3s;
  width: 24px;
  z-index: 2;
}

.case-page__open-btn:hover .case-page__open-coin {
  transform: rotate(360deg);
  transition: transform .3s ease;
}

.case-page__open-loading {
  height: 24px;
  position: relative;
  width: 24px;
  z-index: 2;
  color: currentColor;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
}

@keyframes rotateCoin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1500px) {
  .case-page__open-btn {
    border-radius: 10px;
    gap: 7px;
    padding: 0 8px 0 16px;
  }
}

@media (max-width: 900px) {
  .case-page__open-btn {
    width: 100%;
    justify-content: center;
    border-radius: 10px;
    gap: 7px;
    padding: 0 8px 0 16px;
    font-size: 15px;
    height: 46px;
  }
  
  .case-page__open-coin {
    width: 20px;
    height: 20px;
  }
}

.case-page__open-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.case-page__hint {
  font-size: 14px;
  color: #e4e6ea;
  text-align: center;
}

.case-page__hint-link {
  color: #ff0054;
  text-decoration: underline;
  cursor: pointer;
}

.case-page__hint-link:hover {
  color: #ff3366;
}

@media (max-width: 768px) {
  .case-page {
    padding: 1rem 0;
    gap: 1.5rem;
  }
  
  .case-page__title {
    font-size: 1.75rem;
  }
  
  .case-page__win-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .case-page__win-btn {
    width: 100%;
    justify-content: center;
  }
  
  .case-page__open-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Cases List Styles */
/* === КЕЙСЫ === */

.category_component {
  display: grid;
}

.category_title {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
  text-align: center;
}

@media (max-width: 1300px) {
  .category_title {
    font-size: 20px;
    line-height: 24px;
  }
}

@media (max-width: 599px) {
  .category_title {
    font-size: 18px;
    line-height: 20px;
  }
}

.category_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
  row-gap: 10px;
}

@media (max-width: 599px) {
  .category_list {
    margin-top: 0;
    row-gap: 20px;
  }
}

.box_item {
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  margin-top: 20px;
  width: 20%;
}

@media (max-width: 1300px) {
  .box_item {
    margin-top: 5px;
    width: 25%;
  }
}

@media (max-width: 900px) {
  .box_item {
    width: 33.3333%;
  }
}

@media (max-width: 599px) {
  .box_item {
    margin-top: 8px;
    width: 50%;
  }
}

.box_link {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  color: #fff;
  display: grid;
  justify-items: center;
  max-width: 310px;
  padding: 10px 6px 0;
  position: relative;
  transition: none;
  width: 100%;
  text-decoration: none;
}

.box_link.box_disabled {
  cursor: default;
  opacity: 0.3;
}

.box_imageWrapper {
  align-items: center;
  display: flex;
  margin: 0 auto;
  width: 93%;
}

@media (max-width: 1600px) {
  .box_imageWrapper {
    max-width: 220px;
  }
}

.box_imageInner {
  display: block;
  height: 0;
  line-height: 1;
  padding-bottom: 100%;
  position: relative;
  width: 100%;
}

.box_imageInner:before {
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAuCAMAAABgZ9sFAAAC91BMVEUAAABjXPZlXvllXvplXvplXvtlXvtlXvxkXflnYPsyL3VlXvpnYPslJFVlXvljXPMoJ1lkW+0tK2BFP545NngmJFJiWuxMR644NXs9OIlnXvsoJlotKV5APIYmIk45NngmJFFCPZQ1Mms3NXMjIU1NR7RLRrAaGDYrKFseHDsiH0g+O4dSTL9HQ6VYUtNQTa0yLlYgGzosKlggHUYqJ08kIU02M3c9OYlBPYtiVMM1M209OoVDP5c7OIgvLWRJRKpXUMRua+BfXraBNFZRT38xLmUgHUM4LVdNSKcoJVQ3M3Q6M2ghHkgjIUpGQZUyL2hlVsRSSqpNSZxaU7olI01PSLRFQJ4xLmFgVtsmIkg9PGZLK1Q3NHE/QH00MG0xK1gtKmJHO343M3pFQH8tKmFaUrM/OmQyLVptWtdoWdqSJzllY8paVqwtKUxiW7UzL1pIN2o1MW9jLlQoJVc6NoBmWcNQSKIjIUsiH0wrKFwfHEYfHEEaGDsnI1shHkgrKGckIVYiH0IVEi0mI14lIlEaFzUYFjMsKGAeGjscGj88OHAgHlt/e/VKRZ9APIw9OYAxLm8hHlMtHkeOivhTT8JSTbgyLngwLWIoJWEnJFdeW8ZFQYg4NIA3M3YtKXE0MGwqKGwqJVKGg/V5d+9/fOxlYt1dV81APqRHRJY1MYgyLoBAPHooJnglI24vK2kqJ1UeG02VkfV3dPR1ce9zcOhdW+BZVtViXdJPTMlKSMBNSbg8Oq1JRqo/O5pPSpAwLo8qKIg1J19IHDqYk/ptaupVU89VU7xCP7VZWKcwL5c7N5GESn4sKXtPLGknJGUpIEwbGUsoFS9uZs1XVbFqZ65MSqc1NKNDPphPPokzMHNFKVtOKVVjJEsmI0gZGEaNmuRKR7NfUKlYUpmAUpdPM4A9MnVmMWo5M2U6JlM3GDvU4Py5yfmttfKTn+53dtqVg9Vtb9RUUMtsccOLZ6g6MZtuSYRmPoRUO4RPSHCAPmFkOGB4MU4LCRqcrWUgAAAAeHRSTlMABAkMBQ8HExUdBxsYDCElHTQq/po7LhCrRigT5KqciXhxaV1EMBrt6MG1jDkmIP7+/fLy7NfIlH98e3RkUE09Jv76+fjx6unk5NbVysKylJOGbWJgWVlWQ/v27Orp29bPxL20tKqnkGtU+O/n2czKxcC6trWnoov48/XBAAAFuklEQVRIx73VVVAbURQG4BbaQoQkJIHiWqRAqbu7u7u7e9yVuBLci7u7u9fd3d0ferMBwrSd6Vv/p92Z75z5d5K92+d/p68x/0L9oAzoCnTz1znIAmECxRSK4Vo/9fuAHgPdRft3BxqCJgDorQ0WkmYg5lDABbjXT0DeqAGGLIBIJAIBg8HQHigYAoFAghkwAXnjbgMGFgFDodBoO2u/Sa5TrdEoFAyGQBp8DwdNTHow2s7O2tJyDd5m7Lg1fpbWfh7+wJv1NwXruzlootcQBtZy9TjXMTtsbMa6TprkaouGIZGAm/Tmpka9brWr45ixjjvGnBrr62tj4ztxsu00JLS+i4MuUBOUnd/KFc42C7Zs2rTw+JbZ3qPnzx+xedYoL6+9/uZmYH03B8vN/T3cp9oe3TBi/a1bUVFRTBABCPMWk8IVjLIF67t5Xz03mzZurpNPut7RQEhkkpAspFAoQi6XxRK4IJGgTU/1tatsJ/seWzgsKjCQSAxM53A4QQwGVUESCsEIj8V1giHMTAf07eID92yYu/XExrnDO5UBZWVlYTI5X67VaiMVJBAh4Iunwcz7m3Rz02krdi6cOfNAZ2fVzeSQEFlC4jVpQoJUKw8iEAhkCos32q8XNzE18xjnuHP7xs6qqmdPK68rOXStRJIgTQqRMTgEEpnH85oMQ/bm/hPxvtsXjEpvVyqVVZTbHR2VodJQWYRMx1AQCELecDdQvhdHTp3o6ui4ZLNMKg2jiiJT2e0KhfKGMoLOJhKjSEzmXhR4VgPvBzgCZb16+fLxS5okEhzuSmn8BSnj+vdvP6oEYWF0fgSR7IM2cvCbItDW61aOH78MN3RoyV1NXV2d5FNzc/PMm88qWyuTy0ICR0+FmQ80chjact3+fctOz9NoNGp1cLBa8uXhhwePb9541FrZHhGSHODo4Wnk5jA7S6CPzBhacg4kP18dXy65eCXp4VW1pklBoSmV3u6exu7mKMuV43cfunCp5HxszvS4uIL6wiJNfuFHXEHtO42WT2X95C4dYtLDkR4rzsybMUMTHKtSxdTUZOdfrj+Xl5tboM7NrS0qDZUTWCxnfyMfMmn3vNKiczlicbQ4KytLHFdYkJstFmdnZ2XV5NWXJ6UN95psZmrkyw9Oj8uLE1erVKrYnGiVOCYmOye6ujpanBNTk1fcICPOsTU3cs8lwTHRMbHRmZmZb+6Vns/MrFZNLy6MVcXWFqvzC+NLcI8c1gwZCId3/YGHLHj/4k5wcHDe+QefryZWxBcVxNU1Nta+elvfeLm4IqUpke4w0RZjATzEPbddfH6nWHLhXvPj1vDU1JSUCgmuolz98vXlivLGlNTEJLqDszsWeMPb5Lko4GJD0/2GkNbrVL5IJFKIkobGl9wtii9vSUkVpSS20B3wE9yxFn0hPsBzMJmT/vTGEyK1LZKd0ZGR0RF5qeH+1cSW1Mg2XVtLUrjOG+/shgXLIT5wMI9Jbl9P4BDTtBHppNu3M9ihZbO+hoWL2FQGg64Npzrgnd0xvbiAS2CLgojsNiqNQslgK+SysGtp9AwFhxBEjaRTHfRdut5twFlcFpkBNolEfKJAyKBT6dci+PwgEplGohHYOt3oKVj7njMScB6LRw4i8nV0eSCBxKHrdGngUCDSKAIyhUJjsxdh7eE9J7DJnmHMYU8CApJlIQnSCD4BFGDL04gcDoFF4fLINCp7Ecai54yEY9wOD2cOm5UckJxw6UoYnwDCCJfzOWQhj8vi0sg0/ja3tVaG7nDsKhenxd6BgQEgoaW4UCJJwCUzIsPTOBShgMzjRqWP9B5jg58AebgFxmrQoLUuTltHjJg9Wy7FhQYRaCQSNZzOoI0cOWek15xR8xf7OLm4rLKyN6zHYOBwe6zVIKspbkt37Trp4+N01mUpHu88wW0K2DRoihUWYw+H//lttbeHW4Donwp8HfuBPQD9v/wCONo+EV1bDq4AAAAASUVORK5CYII=);
  background-size: 100% 100%;
  content: "";
  height: 100%;
  position: absolute;
  top: 0;
  transform: scale(1.2);
  width: 100%;
}

.box_rendered .box_imageInner:before {
  display: none;
}

.box_image {
  image-rendering: -webkit-optimize-contrast;
  transform: scale(1.2);
  transition: transform 0.3s ease;
  width: 100%;
}

.box_link:hover .box_image {
  transform: scale(1.25);
}

.box_link.box_disabled .box_image {
  opacity: 0.2;
  transition: none;
}

.box_link.box_disabled:hover .box_image {
  opacity: 0.2;
  transform: scale(1.2);
}

.box_title {
  color: hsla(0, 0%, 100%, 0.9);
  display: block;
  font-size: 16px;
  line-height: 20px;
  margin-bottom: 8px;
  overflow: hidden;
  padding-top: 30px;
  position: relative;
  text-align: center;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
  white-space: nowrap;
  font-weight: bold;
}

@media (max-width: 599px) {
  .box_title {
    font-size: 14px;
    margin-bottom: 6px;
    padding-top: 15px;
  }
}

.box_link:hover .box_title {
  color: #ff0054;
}

.box_link.box_disabled .box_title,
.box_link.box_disabled:hover .box_title {
  color: #494c51;
}

.box_price {
  grid-gap: 6px;
  align-items: center;
  background: linear-gradient(180deg, #171512, #681734);
  border-radius: 10px;
  display: grid;
  font-weight: 700;
  gap: 6px;
  grid-auto-flow: column;
  height: 36px;
  margin-top: 6px;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
}

@media (max-width: 1300px) {
  .box_price {
    height: 32px;
    padding: 0 8px;
  }
}

@media (max-width: 599px) {
  .box_price {
    border-radius: 8px;
    height: 28px;
    margin-top: 0;
  }
}

.box_price:before {
  background: linear-gradient(180deg, #e41d61, #ba134e);
  content: "";
  height: 100%;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  transition: opacity 0.3s;
  width: 100%;
}

.box_link:hover .box_price:before {
  opacity: 1;
}

.box_link.box_disabled:hover .box_price:before {
  opacity: 0;
}

.box_price span {
  font-size: 14px;
  position: relative;
  z-index: 2;
}

@media (max-width: 1300px) {
  .box_price span {
    font-size: 12px;
  }
}

@media (max-width: 599px) {
  .box_price span {
    font-size: 11px;
  }
}

.box_actual {
  color: #fff;
}

/* Стили для ежедневного кейса */
.daily-case-price {
  color: #ffffff;
}

.daily-case-cooldown {
  color: #FFA500;
  font-family: 'Courier New', monospace;
  font-weight: 600;
}

.cooldown-timer {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  font-size: 1rem;
}

/* === 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;
  text-transform: uppercase;
}

.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: 'a??';
  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;
}

/* ????????N???N??????????? ????????N????????????? ??????N??? */
.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;
}

/* ??????N?N???N???????????N??? ???????? ?????? N????????? ?? ??????N????? */
.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;
}

/* ?????? ??????N?????N?????????N?N?N? N?????N????? N?????????N?N??? N?????N?N?N? a?? ????????N? N???????N??? */
.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); }

/* ?sN?N????????? ????????N????????????? ??N?????????N???, ??N???N?N?N???N? N?????N????? ?????? */
.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;
}

/* ??????N?N?N? ?????? ????????N??????????????? */
.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;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  min-width: 160px;
  height: 52px;
  position: relative;
  overflow: hidden;
}

/* ??????N??????? ????N?N???????N??? N?N?N?????N?N?, ??N???????N???N????? N?N?????????N?N???N??? N?N??????? ???????????? */

.win__btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: text-bottom;
  margin-bottom: 1px;
}

.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);
  gap: var(--space-2);
}

.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 showRoulette {
  0% {
    transform: translateY(12rem) scale(0.8);
    opacity: 0;
  }
  50% {
    transform: translateY(-1rem) scale(1.05);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* ???????? ??????? ?????? ??????????? ????? (????????? ????????) */
@keyframes hideCaseImg {
  0% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(0.8);
  }
}

@keyframes showCaseImg {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.8);
  }
  40% {
    opacity: 1;
    transform: translateX(-50%) scale(1.05);
  }
  60% {
    transform: translateX(-50%) scale(0.98);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}

/* 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%;
  }
}

/* ===== ЕЖЕДНЕВНЫЙ КЕЙС ===== */

/* Основная карточка ежедневного кейса */
.daily-case-card {
  background: var(--gradient-surface);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: var(--space-6);
  margin-bottom: var(--space-4);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.daily-case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
}

/* Заголовок ежедневного кейса */
.daily-case-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.daily-case-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 8px rgba(255, 0, 84, 0.3));
}

.daily-case-title {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.daily-case-subtitle {
  color: var(--text-secondary);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
}


.cooldown-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.cooldown-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 8px rgba(255, 152, 0, 0.4));
}

.cooldown-title {
  color: #FFB74D;
  font-weight: 700;
  font-size: 1.1rem;
}

.cooldown-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--space-4);
  font-weight: 500;
}

/* Таймер ежедневного кейса */
.daily-case-timer {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  align-items: center;
}

.daily-case-timer .timer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.daily-case-timer .timer-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  background: rgba(255, 255, 255, 0.1);
  padding: var(--space-2) var(--space-3);
  border-radius: 8px;
  min-width: 48px;
  text-align: center;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.daily-case-timer .timer-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .daily-case-timer {
    gap: var(--space-3);
  }
  
  .daily-case-timer .timer-value {
    font-size: 1.25rem;
    min-width: 40px;
    padding: var(--space-2);
  }
  
  .daily-case-title {
    font-size: 1.1rem;
  }
  
  .daily-case-card {
    padding: var(--space-4);
  }
}

/* Стили для плашек требований ежедневного кейса */
.daily-requirements-wrapper {
  padding: 1.25rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.requirements-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.requirement-card {
  border-radius: 8px;
  padding: 1rem;
  flex: 1;
  min-width: 300px;
}

.requirement-card.telegram {
  background: rgb(33 150 243 / 20%);
}

.requirement-card.twitch {
  background: rgb(145 70 255 / 20%);
}

.requirement-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.requirement-icon {
  width: 24px;
  height: 24px;
}

.requirement-icon.telegram {
  color: #2196F3;
}

.requirement-icon.twitch {
  color: #9146FF;
}

.requirement-title {
  font-weight: bold;
}

.requirement-title.telegram {
  color: #90CAF9;
}

.requirement-title.twitch {
  color: #B794F4;
}

.requirement-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.requirement-btn {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.requirement-btn.telegram {
  background: #2196F3;
  color: white;
}

.requirement-btn.telegram:hover {
  background: #1976D2;
  transform: translateY(-1px);
}

.requirement-btn.twitch {
  background: #9146FF;
  color: white;
}

.requirement-btn.twitch:hover {
  background: #7B2CBF;
  transform: translateY(-1px);
}

.requirement-btn svg {
  width: 18px;
  height: 18px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .requirements-container {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .requirement-card {
    min-width: auto;
  }
}

/* Стили для модалки требований подписки */
.subscription-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.subscription-modal.hidden {
  opacity: 0;
  visibility: hidden;
}

.subscription-modal .modal-dialog {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.subscription-modal .modal-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
}

.subscription-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.subscription-modal .btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  text-transform: uppercase;
}

.subscription-modal .btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.subscription-modal .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Nickname case banner */
.nickname-case-banner {
  display: flex;
  gap: 16px;
  align-items: center;
  background: rgba(20, 23, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 24px;
}

.nickname-case-banner__avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 0, 84, 0.4);
}

.nickname-case-banner__content h2 {
  margin: 0 0 6px 0;
  font-size: 20px;
}

.nickname-case-banner__content p {
  margin: 0;
  color: var(--text-secondary);
}

.nickname-case-banner__actions {
  margin-left: auto;
}

.nickname-case-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background .2s;
}

.nickname-case-btn:hover {
  background: var(--accent-hover);
}

.nickname-case-disabled {
  display: none !important;
}

/* Trade URL component styles for nickname case */
.tradeUrl_component {
  grid-gap: 10px;
  background: #ffffff04;
  backdrop-filter: blur(10px);
  border-radius: 16px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  padding: 12px;
  flex: 1;
}

.tradeUrl_component--sixty {
  /* Убрано ограничение ширины */
}

.tradeUrl_left {
  display: grid;
  position: relative;
}

.tradeUrl_field {
  background: #131a20;
  border: 2px solid #151515;
  border-radius: 10px;
  color: #e1e1e1;
  font-size: 13px;
  font-weight: 300;
  height: 50px;
  padding: 0 140px 0 40px;
  text-overflow: ellipsis;
  transition: background-color .3s, border-color .3s;
  width: 100%;
}

.tradeUrl_field::-webkit-input-placeholder {
  color: #d3d3c9;
  transition: color .3s;
}

.tradeUrl_field::placeholder {
  color: #d3d3c9;
  transition: color .3s;
}

.tradeUrl_field:hover {
  /* background: #1b1a19; */
  /* border-color: #2a2621; */
}

.tradeUrl_field:hover::-webkit-input-placeholder {
  color: #e5e5de;
}

.tradeUrl_field:hover::placeholder {
  color: #e5e5de;
}

.tradeUrl_field:focus {
  background: #1e1717;
  border-color: #2b2222;
  outline: none;
}

.tradeUrl_field:focus::-webkit-input-placeholder {
  color: hsla(0, 0%, 76%, 0);
}

.tradeUrl_field:focus::placeholder {
  color: hsla(0, 0%, 76%, 0);
}

.tradeUrl_infoButton {
  align-items: center;
  background: rgb(75 29 46);
  border-radius: 8px;
  bottom: 0;
  color: #ff0054;
  cursor: pointer;
  display: grid;
  font-size: 11px;
  font-weight: 700;
  height: 30px;
  margin: auto;
  max-width: 140px;
  overflow: hidden;
  padding: 0 12px;
  position: absolute;
  right: 8px;
  top: 0;
  transition: color .3s, background-color .3s;
  text-decoration: none;
  border: none;
}

.tradeUrl_infoButton:hover {
  background: rgb(110 33 61);
  color: #ff0054;
}

.tradeUrl_infoButton span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tradeUrl_linkIcon {
  bottom: 0;
  height: 16px;
  left: 12px;
  margin: auto;
  position: absolute;
  top: 0;
  width: 16px;
  z-index: 2;
  color: #c6c1b6;
  transition: color .3s;
}

.tradeUrl_linkIcon path,
.tradeUrl_linkIcon g {
  stroke: currentColor;
}

.tradeUrl_component:focus-within .tradeUrl_linkIcon {
  color: #e1e1e1;
}

.tradeUrl_button {
  grid-gap: 6px;
  align-items: center;
  background: hsla(41, 12%, 75%, .16);
  border-radius: 12px;
  color: #c6c1b6;
  display: grid;
  font-size: 14px;
  font-weight: 600;
  gap: 6px;
  grid-auto-flow: column;
  height: 48px;
  justify-content: center;
  padding: 0 16px;
  transition: color .3s, background-color .3s, opacity .3s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.tradeUrl_button:hover {
  background: hsla(41, 12%, 75%, .4);
  color: #f3efe7;
}

.tradeUrl_button:hover path {
  fill: #f3efe7;
}

.tradeUrl_buttonIcon {
  height: 20px;
  width: 20px;
}

.tradeUrl_buttonIcon path {
  fill: #c6c1b6;
  transition: fill .3s;
}

/* Кнопка "МОИ БОНУСЫ" внутри tradeUrl_component */
.tradeUrl_component .case-page__open-btn {
  width: 100%;
}
