/* ═══════════════════════════════════════════════════════════════════ */
/*  Fragujemy.com Skin Changer | Premium Hub Overhaul                     */
/*  Aesthetic: Cyber Glassmorphism | CS2 Inspired | High Contrast   */
/*  v5.0 – Ultimate Player Experience                                */
/* ═══════════════════════════════════════════════════════════════════ */

:root {
  --hub-primary: #a060ff;
  --hub-primary-glow: rgba(160, 96, 255, 0.4);
  --hub-bg: rgba(15, 13, 22, 0.85);
  --hub-glass: rgba(25, 20, 35, 0.6);
  --hub-border: rgba(160, 96, 255, 0.15);
  --hub-text: #ffffff;
  --hub-text-muted: hsla(0, 0%, 100%, 0.45);
  --hub-card-bg: rgba(45, 40, 60, 0.4);
  
  /* Rarity Colors */
  --rarity-common: #b0c3d9;
  --rarity-uncommon: #5e98d9;
  --rarity-rare: #4b69ff;
  --rarity-mythical: #8847ff;
  --rarity-legendary: #d32ce6;
  --rarity-ancient: #eb4b4b;
  --rarity-extraordinary: #ffc233;
}

/* Hide Internal UI components for a dedicated Inventory View */
.sc-hub-categories, 
.sc-hub-sidebar,
.sc-hub-loadout {
  display: none !important;
}

/* Force the dashboard/loadout container to be the only visible element */
.sc-hub-content {
  flex: 1;
  width: 100%;
  max-width: 100%; /* Rozciągnięcie na pełną szerokość */
  margin: 0 auto;
}

#page-skin {
  font-family: 'Poppins', sans-serif;
  color: var(--hub-text);
  overflow: hidden; /* Prevent child components from stretching the page */
  max-width: 100%;
}

.skin-hub {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: hubFadeIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* ════════════════ PREMIUM LOADER ════════════════ */
.skin-loader {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at center, #1a1025 0%, #060408 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
  backdrop-filter: blur(20px);
}

.skin-loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
  position: relative;
}

.loader-spinner {
  width: 100px;
  height: 100px;
  border: 2px solid rgba(160, 96, 255, 0.05);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-spinner::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top-color: var(--hub-primary);
  border-radius: 50%;
  animation: loaderSpin 1s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
  box-shadow: 0 0 25px var(--hub-primary-glow);
}

.loader-spinner::after {
  content: '';
  position: absolute;
  width: 70%;
  height: 70%;
  border: 2px solid transparent;
  border-bottom-color: var(--hub-primary);
  border-radius: 50%;
  opacity: 0.5;
  animation: loaderSpin 2s linear infinite reverse;
}

.loader-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 6px;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 0 15px var(--hub-primary-glow);
  animation: loaderTextGlow 2s ease-in-out infinite;
}

.loader-text::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--hub-primary);
  box-shadow: 0 0 10px var(--hub-primary);
  animation: loaderLine 1.5s infinite alternate ease-in-out;
}

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

@keyframes loaderTextGlow {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.7; filter: brightness(1.3); }
}

@keyframes loaderLine {
  from { width: 20px; opacity: 0.3; }
  to { width: 80px; opacity: 1; }
}

/* ════════════════ CATEGORY SELECTOR ════════════════ */
.sc-hub-categories {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  overflow-x: auto; /* Allow scrolling if too wide */
  overflow-y: hidden;
  border-bottom: 1px solid var(--hub-border);
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--hub-primary) transparent;
}

.sc-hub-cat-item {
  background: var(--hub-glass);
  border: 1px solid var(--hub-border);
  padding: 12px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  min-width: 90px;
  flex-shrink: 0; /* Prevents item from being crushed, forcing container to scroll instead of expand */
}

.sc-hub-cat-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(160, 96, 255, 0.3);
  transform: translateY(-4px);
}

.sc-hub-cat-item.active {
  background: rgba(160, 96, 255, 0.15);
  border-color: var(--hub-primary);
  box-shadow: 0 0 20px var(--hub-primary-glow);
}

/* New Weapon Category Renders */
.sc-hub-cat-img-wrap {
  width: 60px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.sc-hub-cat-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5));
}

.sc-hub-cat-item:hover .sc-hub-cat-img-wrap {
  transform: scale(1.15) rotate(-5deg);
}

.sc-hub-cat-item .label {
  font-family: 'Orbitron';
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--hub-text-muted);
  transition: color 0.3s;
}

.sc-hub-cat-item.active .label {
  color: #fff;
  text-shadow: 0 0 10px var(--hub-primary-glow);
}

/* ════════════════ MAIN HUB ════════════════ */
.sc-hub-main {
  display: block; /* Section-based full width */
  width: 100%;
}

/* Ensure the content area within hub-main is also full width */
.sc-hub-content {
  flex: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Sidebar & Sidebar Header */
.sc-hub-sidebar, .sc-hub-loadout {
  width: 280px;
  background: var(--hub-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--hub-border);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.sc-hub-sidebar-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--hub-border);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--hub-primary);
}

/* Weapon List */
.sc-weapons-grid {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sc-weapon-row {
  background: rgba(255,255,255,0.03);
  border: 1px solid transparent;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sc-weapon-row:hover {
  background: rgba(160, 96, 255, 0.08);
  border-color: var(--hub-border);
}

.sc-weapon-row.active {
  background: linear-gradient(90deg, rgba(160, 96, 255, 0.2), transparent);
  border-left: 3px solid var(--hub-primary);
}

.sc-weapon-row .name { font-weight: 600; font-size: 0.85rem; }

.sc-hub-content {
  width: 100%;
  max-width: 100%; /* Utrzymanie pełnej szerokości */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
  align-items: stretch;
  animation: contentSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.main-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch; /* Zmieniono z center, aby umożliwić rozciągnięcie */
  width: 100%;
  padding: 0 40px 40px 40px;
  min-height: calc(100vh - 80px);
  overflow-x: hidden;
}

#skin-container {
  width: 100% !important;
  display: flex;
  justify-content: flex-start; /* Zmieniono z center */
}

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

.sc-hub-header {
  background: var(--hub-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--hub-border);
  border-radius: 18px;
  padding: 15px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.sc-title { font-family: 'Orbitron', sans-serif; font-size: 1.2rem; font-weight: 900; letter-spacing: 2px; }
.sc-subtitle { font-size: 0.8rem; color: var(--hub-text-muted); margin-top: 4px; }

.sc-search-wrap {
  position: relative;
  width: 100%;
  max-width: 300px;
}

.sc-search-wrap span {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--hub-text-muted);
}

.sc-search-wrap input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hub-border);
  border-radius: 12px;
  padding: 12px 14px 12px 42px;
  color: #fff;
  font-family: 'Poppins';
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.sc-search-wrap input:focus {
  background: rgba(160, 96, 255, 0.08);
  border-color: var(--hub-primary);
  outline: none;
  box-shadow: 0 0 15px var(--hub-primary-glow);
}

/* ════════════════ DASHBOARD CONTROLS ════════════════ */
.sc-dashboard-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.sc-toggle-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hub-border);
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.sc-toggle-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(160, 96, 255, 0.3);
}

.sc-toggle-pill .label {
  font-family: 'Orbitron';
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--hub-text-muted);
}

.sc-toggle-dot {
  width: 14px;
  height: 14px;
  background: #333;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}

.sc-toggle-pill.active {
  background: rgba(160, 96, 255, 0.1);
  border-color: var(--hub-primary);
}

.sc-toggle-pill.active .label { color: #fff; }
.sc-toggle-pill.active .sc-toggle-dot {
  background: var(--hub-primary);
  box-shadow: 0 0 10px var(--hub-primary-glow);
  transform: scale(1.2);
}

.sc-sep-v {
  width: 1px;
  height: 30px;
  background: var(--hub-border);
}

.sc-header-actions {
  display: flex;
  gap: 10px;
}

.sc-btn-action {
  background: linear-gradient(135deg, rgba(160, 96, 255, 0.1), rgba(160, 96, 255, 0.05));
  border: 1px solid var(--hub-border);
  border-radius: 10px;
  padding: 8px 18px;
  color: #fff;
  font-family: 'Orbitron';
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sc-btn-action span { font-size: 18px; color: var(--hub-primary); }

.sc-btn-action:hover {
  transform: translateY(-2px);
  background: rgba(160, 96, 255, 0.2);
  border-color: var(--hub-primary);
  box-shadow: 0 5px 15px var(--hub-primary-glow);
}

/* Faded state for unequipped items on dashboard */
.skin-card.unequipped {
  opacity: 0.45;
  filter: grayscale(0.5) brightness(0.8);
  border-style: dashed;
}

.skin-card.unequipped:hover {
  opacity: 1;
  filter: none;
  border-style: solid;
}

/* Hide unequipped when state says so */
.sc-hide-unequipped .skin-card.unequipped {
  display: none !important;
}

/* Skin Grid Container */
.sc-grid-container {
  flex: 1;
  background: var(--hub-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--hub-border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 75vh; /* Prevent spilling down too much */
}

.skin-grid {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  scroll-behavior: smooth;
  display: grid; /* Dodano CSS Grid */
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 15px;
  width: 100%;
}

.sc-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  width: 100%;
}

/* Modal Selector Grid Overrides - Naprawa "rozjebanych okienek" */
.sc-modal-body .sc-hub-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
  width: 100%; /* Wymuszenie pełnej szerokości wewnątrz modala */
}

.sc-modal-body .skin-card {
  min-height: 150px;
  max-width: 180px; 
  margin: 0; /* Usunięto margin: 0 auto, aby kafelki wypełniały rząd od lewej */
}

/* Skin Card Premium */
.skin-card {
  background: var(--hub-card-bg);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 14px;
  min-height: 180px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.sc-tile-vanilla {
  opacity: 0.6;
  filter: grayscale(0.6);
  border: 1px dashed rgba(255,255,255,0.15);
}

.skin-card.active {
  background: rgba(160, 96, 255, 0.15) !important;
  border: 2px solid var(--hub-primary) !important;
  box-shadow: 0 0 30px var(--hub-primary-glow), inset 0 0 15px var(--hub-primary-glow) !important;
  animation: cardPulse 2s infinite alternate ease-in-out;
  z-index: 5;
}

@keyframes cardPulse {
  from { border-color: var(--hub-primary); box-shadow: 0 0 20px var(--hub-primary-glow); }
  to { border-color: #fff; box-shadow: 0 0 40px var(--hub-primary-glow); }
}

.skin-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 4px;
  background: var(--rarity-color, #fff);
  box-shadow: 0 0 15px var(--rarity-color, transparent);
}

.skin-card:hover {
  transform: translateY(-8px);
  background: rgba(160, 96, 255, 0.1);
  border-color: var(--hub-primary);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.skin-img-wrap {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.skin-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
  transition: transform 0.4s ease;
}

.skin-card:hover img { transform: scale(1.15) rotate(5deg); }

.skin-card-name { 
  font-weight: 800; 
  font-size: 0.9rem; 
  text-align: left; 
  line-height: 1.2;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.5px;
}
.skin-card-rarity { 
  font-size: 0.65rem; 
  text-transform: uppercase; 
  letter-spacing: 1.5px; 
  text-align: left; 
  margin-top: 4px; 
  color: var(--hub-text-muted); 
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
}

.sc-card-pills {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.detail-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
}

.detail-badge.st {
  color: #ff8c00;
  border-color: rgba(255, 140, 0, 0.3);
  background: rgba(255, 140, 0, 0.05);
}

.sc-card-meta {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--hub-text-muted);
}

.sc-card-meta span {
  color: rgba(255, 255, 255, 0.3);
  margin-right: 4px;
}

.sc-status-tag-active {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--hub-primary);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 0 0 10px var(--hub-primary-glow);
  z-index: 10;
}

.item-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, var(--rarity-color), transparent 70%);
  opacity: 0.15;
  filter: blur(20px);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.skin-card:hover .item-glow {
  opacity: 0.3;
}

/* Empty Slot Styling */
.empty-slot {
  background: rgba(0,0,0,0.4) !important;
  border: 1px dashed rgba(255,255,255,0.1) !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.slot-add-icon {
  font-size: 3.5rem !important;
  color: rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.empty-slot:hover .slot-add-icon {
  color: var(--hub-primary);
  transform: scale(1.1) rotate(90deg);
  opacity: 1;
}

/* Inventory Sections */
.sc-inv-section-title {
  padding: 12px 24px 8px;
  font-family: 'Orbitron';
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--hub-text-muted);
  display: flex;
  align-items: center;
  gap: 15px;
}

.sc-inv-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(160,96,255,0.2), transparent);
}

.sc-inv-section-grid {
  padding: 0 15px 15px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

/* Detailed Card Info */
.sc-card-details {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sc-card-detail {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--hub-text-muted);
}

.sc-card-detail span {
  color: rgba(255,255,255,0.4);
  font-weight: 400;
}

.skin-card.equipped {
  background: rgba(160, 96, 255, 0.05);
  border: 1px solid rgba(160, 96, 255, 0.2);
}

.sc-btn-action-premium {
  background: linear-gradient(135deg, var(--hub-primary), #c080ff);
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  color: #fff;
  font-family: 'Orbitron';
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px var(--hub-primary-glow);
}

.sc-btn-action-premium:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 8px 25px var(--hub-primary-glow);
}

/* Selector Modal Styles */
.sc-selector-modal {
  width: 900px;
  max-width: 95vw;
  height: 80vh;
  max-height: 800px;
  background: linear-gradient(135deg, #0f0d14 0%, #060408 100%);
  border: 1px solid var(--hub-primary);
  box-shadow: 0 0 60px rgba(0,0,0,1), 0 0 30px var(--hub-primary-glow);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.sc-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.sc-tile-vanilla {
  opacity: 0.6;
  filter: grayscale(0.5);
  background: rgba(255,255,255,0.03) !important;
}

.sc-tile-vanilla:hover {
  opacity: 1;
  filter: grayscale(0);
  background: rgba(255,255,255,0.08) !important;
}



/* Ekwipunek (Loadout) List */
.sc-loadout-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sc-eq-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  transition: all 0.2s ease;
}

.sc-eq-item:hover { background: rgba(255,60,60,0.05); border-color: rgba(255,60,60,0.2); }

.sc-eq-img { width: 50px; height: 50px; object-fit: contain; }
.sc-eq-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sc-eq-weapon { font-size: 0.65rem; color: var(--hub-text-muted); font-weight: 700; }
.sc-eq-skin { font-size: 0.8rem; font-weight: 700; }

.sc-eq-remove {
  color: #ff4444; border: none; background: none; 
  cursor: pointer; font-size: 18px; opacity: 0; transition: 0.2s;
}

.sc-eq-item:hover .sc-eq-remove { opacity: 1; }

.sc-loadout-footer { padding: 16px; border-top: 1px solid var(--hub-border); }
.sc-btn-clear {
  width: 100%; padding: 12px; border-radius: 8px; border: 1px solid rgba(255,60,60,0.3);
  background: rgba(255,60,60,0.1); color: #ff8080; font-family: 'Orbitron'; font-weight: 700;
  cursor: pointer; transition: 0.3s;
}
.sc-btn-clear:hover { background: #ff4444; color: #fff; }

/* ════════════════ PREMIUM MODAL ════════════════ */
.sc-modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sc-premium-modal {
  width: 900px;
  max-width: 95vw;
  background: linear-gradient(135deg, #0f0d14 0%, #060408 100%);
  border: 1px solid var(--hub-primary);
  box-shadow: 0 0 60px rgba(0,0,0,1), 0 0 30px var(--hub-primary-glow);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.sc-modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--hub-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sc-modal-close {
  background: none; border: none; color: var(--hub-text-muted);
  cursor: pointer; transition: 0.3s;
}

.sc-modal-close:hover { color: #ff4444; transform: rotate(90deg); }

.sc-modal-footer {
  padding: 24px 32px;
  border-top: 1px solid var(--hub-border);
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  background: rgba(0,0,0,0.2);
}

.sc-btn {
  padding: 14px 28px;
  border-radius: 12px;
  font-family: 'Orbitron';
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.sc-btn-confirm {
  background: var(--hub-primary);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  box-shadow: 0 5px 20px var(--hub-primary-glow);
}

.sc-btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--hub-primary-glow);
  filter: brightness(1.1);
}

.sc-btn-cancel {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--hub-border);
  color: var(--hub-text-muted);
}

.sc-btn-cancel:hover {
  background: rgba(255,68,68,0.1);
  color: #ff6666;
  border-color: rgba(255,68,68,0.3);
}

.sc-premium-customizer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px !important;
}

.sc-preview-canvas {
  position: relative;
  background: radial-gradient(circle at center, rgba(160, 96, 255, 0.1) 0%, transparent 70%);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  height: 400px;
  border: 1px solid rgba(255,255,255,0.03);
}

.sc-preview-glow {
  position: absolute; width: 150px; height: 150px; 
  background: var(--rarity-color, var(--hub-primary)); 
  filter: blur(80px); opacity: 0.3; pointer-events: none;
}

.sc-preview-canvas img { max-width: 100%; max-height: 80%; object-fit: contain; z-index: 1; }

.sc-preview-info { margin-top: 20px; text-align: center; z-index: 1; }
.sc-preview-skin-name { font-size: 1.4rem; font-weight: 800; font-family: 'Orbitron'; }
.sc-preview-rarity { font-size: 0.75rem; font-weight: 900; letter-spacing: 2px; color: var(--rarity-color); }

.sc-controls { display: flex; flex-direction: column; gap: 24px; }
.sc-control-group { display: flex; flex-direction: column; gap: 10px; }
.sc-control-header { display: flex; justify-content: space-between; align-items: flex-end; }
.sc-control-header label { font-size: 0.7rem; font-weight: 900; letter-spacing: 1px; color: var(--hub-text-muted); }
.sc-control-header span { font-family: 'Orbitron'; font-size: 0.9rem; color: var(--hub-primary); }

.sc-slider-wrap { position: relative; padding: 10px 0; }
.sc-slider-wrap input[type="range"] {
  appearance: none; width: 100%; height: 8px; background: rgba(255,255,255,0.05); border-radius: 4px;
}
.sc-slider-wrap input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 24px; height: 24px; background: #fff; border-radius: 50%;
  box-shadow: 0 0 15px var(--hub-primary-glow); cursor: pointer; border: 4px solid var(--hub-primary);
}

.sc-wear-presets { display: flex; gap: 8px; }
.sc-wear-presets button {
  flex: 1; padding: 8px; border-radius: 6px; border: 1px solid var(--hub-border);
  background: rgba(255,255,255,0.03); color: var(--hub-text-muted); font-size: 0.7rem; font-weight: 700;
  cursor: pointer; transition: 0.2s;
}
.sc-wear-presets button:hover { background: var(--hub-primary); color: #fff; }

.sc-controls input[type="text"] {
  background: rgba(255,255,255,0.03); border: 1px solid var(--hub-border); padding: 14px;
  border-radius: 10px; color: #fff; font-family: 'Poppins'; font-size: 0.9rem;
}

.sc-stattrak-switch {
  display: flex; align-items: center; gap: 15px; cursor: pointer;
  background: rgba(255,255,255,0.03); padding: 15px; border-radius: 12px; border: 1px solid var(--hub-border);
}

.sc-stattrak-switch input { display: none; }
.sc-switch-slider {
  width: 44px; height: 22px; background: #333; border-radius: 20px; position: relative; transition: 0.3s;
}
.sc-switch-slider::after {
  content: ''; position: absolute; left: 4px; top: 4px; width: 14px; height: 14px;
  background: #fff; border-radius: 50%; transition: 0.3s;
}
.sc-stattrak-switch input:checked + .sc-switch-slider { background: #ff7000; }
.sc-stattrak-switch input:checked + .sc-switch-slider::after { transform: translateX(22px); }
.sc-stattrak-switch span { font-size: 0.75rem; font-weight: 800; letter-spacing: 1px; }

/* ════════════════ SELECTOR PREVIEW ════════════════ */
.sc-selector-current {
  margin-bottom: 24px;
  background: rgba(160, 96, 255, 0.05);
  border: 1px solid rgba(160, 96, 255, 0.2);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sc-selector-current .sc-lbl {
  font-family: 'Orbitron';
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: var(--hub-primary);
  font-weight: 800;
}

.sc-current-box {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

.sc-current-box img {
  width: 70px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--hub-primary-glow));
}

.sc-current-box .sc-info { flex: 1; }
.sc-current-box .skin { font-weight: 800; font-size: 1.1rem; font-family: 'Orbitron'; }
.sc-current-box .weapon { font-size: 0.75rem; color: var(--hub-text-muted); font-weight: 600; }

.sc-current-box .sc-badge {
  background: var(--hub-primary);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
  box-shadow: 0 0 15px var(--hub-primary-glow);
}

.sc-current-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--hub-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 10;
  box-shadow: 0 0 10px var(--hub-primary-glow);
}

/* ════════════════ UTILITIES ════════════════ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--hub-border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--hub-primary); }

@media (max-width: 1400px) {
  .sc-hub-sidebar, .sc-hub-loadout { width: 220px; }
}

@media (max-width: 1000px) {
  .sc-hub-main { flex-direction: column; }
  .sc-hub-sidebar, .sc-hub-loadout, .sc-hub-content { width: 100%; }
}

/* --- Skinchanger Navigation Buttons --- */
.sc-btn-outline {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(0, 242, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 10px 22px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    outline: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 10px !important;
    backdrop-filter: blur(5px);
}

.sc-btn-outline:hover {
    background: rgba(0, 242, 255, 0.08) !important;
    border-color: #00f2ff !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.25) !important;
    transform: translateY(-2px);
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.6);
}

.sc-btn-outline:active {
    transform: translateY(0);
    filter: brightness(0.8);
}
