
/* =========================================================
   CASE DETAIL - Full-Screen (SkinFight Style)
   ========================================================= */
.case-detail-page { min-height: calc(100vh - 60px); padding-bottom: 100px; animation: fadeInUp 0.25s ease; }
.case-detail-topbar { display: flex; align-items: center; padding: 12px 0 8px; position: sticky; top: 0; z-index: 50; background: rgba(10,12,16,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.05); }
.case-detail-back { display: flex; align-items: center; gap: 6px; background: none; border: none; color: var(--color-text-primary); font-size: 14px; font-weight: 700; cursor: pointer; padding: 6px 8px; border-radius: 10px; transition: background var(--transition-fast); font-family: inherit; }
.case-detail-back:active { background: rgba(255,255,255,0.06); }
.case-detail-hero { position: relative; display: flex; flex-direction: column; align-items: center; padding: 32px 20px 24px; overflow: hidden; text-align: center; }
.case-detail-hero-glow { position: absolute; top: -60px; left: 50%; transform: translateX(-50%); width: 280px; height: 280px; border-radius: 50%; opacity: 0.18; filter: blur(60px); pointer-events: none; }
.case-detail-hero-img { position: relative; z-index: 1; margin-bottom: 20px; filter: drop-shadow(0 0 32px #00D4FF); animation: float 3s ease-in-out infinite; }
.case-hero-img-el { width: 180px; height: 180px; object-fit: contain; }
.case-hero-emoji { font-size: 100px; line-height: 1; }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-8px); } }
.case-detail-hero-name { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 6px; position: relative; z-index: 1; }
.case-detail-hero-sub { font-size: 13px; color: var(--color-text-secondary); position: relative; z-index: 1; }
.case-detail-controls { display: flex; align-items: center; gap: 12px; padding: 0 0 20px; }
.qty-selector { display: flex; align-items: center; background: var(--color-elevated); border: 1px solid var(--color-border); border-radius: 14px; overflow: hidden; flex-shrink: 0; }
.qty-btn { width: 40px; height: 48px; background: none; border: none; color: var(--color-text-primary); font-size: 20px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--transition-fast); font-family: inherit; }
.qty-btn:active { background: rgba(255,255,255,0.08); }
.qty-value { min-width: 40px; text-align: center; font-size: 15px; font-weight: 800; color: var(--color-accent); }
.case-open-btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: linear-gradient(135deg, #00D4FF, #7C3AED); border: none; border-radius: 16px; height: 56px; cursor: pointer; position: relative; overflow: hidden; transition: transform 0.12s, box-shadow 0.2s; box-shadow: 0 0 24px rgba(0,212,255,0.45), 0 4px 16px rgba(0,0,0,0.4); font-family: inherit; }
.case-open-btn:active { transform: scale(0.97); }
.case-open-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.case-open-btn-text { font-size: 15px; font-weight: 900; color: #fff; letter-spacing: 0.06em; text-transform: uppercase; }
.case-open-btn-price { font-size: 11px; color: rgba(255,255,255,0.75); font-weight: 600; }
.case-roulette-area { margin: 0 -16px 24px; position: relative; }
.case-win-panel { display: flex; flex-direction: column; align-items: center; background: var(--color-card); border: 1px solid rgba(255,255,255,0.06); border-top: 3px solid var(--win-color, var(--color-accent)); border-radius: 20px; padding: 28px 20px; margin-bottom: 24px; box-shadow: 0 0 40px rgba(0,0,0,0.5); animation: winPop 0.45s cubic-bezier(0.34,1.56,0.64,1); gap: 8px; }
@keyframes winPop { 0% { opacity:0; transform: scale(0.85); } 100% { opacity:1; transform: scale(1); } }
.case-win-label { font-size: 12px; font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.case-win-image-wrap { width: 140px; height: 140px; background: var(--color-elevated); border-radius: 18px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--win-color, var(--color-accent)); box-shadow: 0 0 30px var(--win-color, var(--color-accent)); overflow: hidden; margin: 8px 0; }
.case-win-img { width: 120px; height: 120px; object-fit: contain; }
.case-win-name { font-size: 20px; font-weight: 900; text-align: center; }
.case-win-rarity { font-size: 13px; font-weight: 700; }
.case-win-price { font-size: 22px; font-weight: 900; color: var(--color-accent); }
.case-win-actions { display: flex; gap: 10px; width: 100%; margin-top: 8px; }
.case-drops-section { padding-top: 8px; }
.case-drops-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.drop-item { background: var(--color-card); border-radius: 14px; border: 1px solid var(--color-border-subtle); overflow: hidden; display: flex; flex-direction: column; cursor: default; transition: transform var(--transition-fast); }
.drop-item:active { transform: scale(0.97); }
.drop-item-img { height: 80px; display: flex; align-items: center; justify-content: center; background: var(--color-elevated); padding: 8px; }
.drop-item-img img { width: 60px; height: 60px; object-fit: contain; }
.drop-item-rarity-bar { height: 3px; opacity: 0.9; }
.drop-item-body { padding: 8px; }
.drop-item-name { font-size: 10px; font-weight: 700; line-height: 1.3; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.drop-item-price { font-size: 11px; font-weight: 800; color: var(--color-accent); margin-bottom: 2px; }
.drop-item-chance { font-size: 9px; color: var(--color-text-muted); font-weight: 600; }

/* =========================================================
   INVENTORY V2 - Clean Rarity Glow Cards
   ========================================================= */
.inv-card-v2 { background: var(--color-card); border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: transform var(--transition-fast), box-shadow var(--transition-fast); }
.inv-card-v2:active { transform: scale(0.97); }
.inv-card-v2-image { height: 110px; background: var(--color-elevated); display: flex; align-items: center; justify-content: center; padding: 12px; }
.inv-card-v2-image img { width: 80px; height: 80px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); }
.inv-card-v2-fallback { font-size: 36px; opacity: 0.25; }
.inv-card-v2-rarity-bar { height: 3px; }
.inv-card-v2-body { padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.inv-card-v2-name { font-size: 11px; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.inv-card-v2-badge { display: inline-block; padding: 2px 7px; border-radius: 20px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; width: fit-content; }
.inv-card-v2-price { font-size: 13px; font-weight: 900; color: var(--color-accent); margin-top: 2px; }

/* =========================================================
   LANGUAGE SWITCHER
   ========================================================= */
.lang-switcher { display: flex; gap: 4px; background: var(--color-elevated); border: 1px solid var(--color-border); border-radius: 14px; padding: 4px; width: 100%; }
.lang-pill { flex: 1; padding: 8px 4px; border: 1px solid transparent; background: none; border-radius: 10px; font-size: 12px; font-weight: 700; color: var(--color-text-muted); cursor: pointer; transition: all var(--transition-fast); font-family: inherit; text-align: center; }
.lang-pill.active { background: var(--color-accent-dim); color: var(--color-accent); border-color: rgba(0,212,255,0.2); }
.lang-pill:active { opacity: 0.7; }
.avatar-tg-photo { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* =========================================================
   GLASSMORPHISM & GAMES PREMIUM UI
   ========================================================= */
.glass-card-glow {
  background: rgba(14, 22, 34, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.glass-card-glow:hover {
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.15);
}

.match-card-premium {
  background: linear-gradient(145deg, rgba(14,23,36,0.9), rgba(10,16,25,0.95));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.match-card-premium.is-live {
  border-color: rgba(235, 75, 75, 0.4);
  box-shadow: 0 0 24px rgba(235, 75, 75, 0.18);
}

.upgrader-wheel-wrap {
  width: 220px;
  height: 220px;
  margin: 20px auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upgrader-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 12px solid rgba(255, 255, 255, 0.05);
  position: absolute;
  top: 0; left: 0;
  box-sizing: border-box;
}
.upgrader-ring-fill {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: absolute;
  top: 0; left: 0;
  box-sizing: border-box;
  transform: rotate(-90deg);
  transition: all 0.4s ease;
}
.upgrader-center-val {
  font-size: 28px;
  font-weight: 900;
  color: var(--color-accent);
  text-shadow: 0 0 16px rgba(0, 212, 255, 0.5);
  text-align: center;
}

/* Glassmorphism Global Overrides */
.card, .glass-panel, .case-card-neon {
  border: 1px solid rgba(0, 240, 255, 0.15) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}


