/* ==========================================
   COMPANION PREMIUM UI - ULTRA EDITION
   Begleiter-Zentrum mit Next-Gen Design
   Animated backgrounds, glassmorphism, particles
   ========================================== */

:root {
  --comp-bg: #080810;
  --comp-bg-light: #0e0e1a;
  --comp-bg-card: rgba(18, 18, 30, 0.85);
  --comp-bg-glass: rgba(255, 255, 255, 0.03);
  --comp-border: rgba(255, 255, 255, 0.06);
  --comp-border-hover: rgba(255, 255, 255, 0.12);
  --comp-text: #e8e8f0;
  --comp-text-muted: #5a5a72;
  --comp-cyan: #00d4ff;
  --comp-cyan-glow: rgba(0, 212, 255, 0.35);
  --comp-purple: #a855f7;
  --comp-purple-glow: rgba(168, 85, 247, 0.35);
  --comp-green: #22c55e;
  --comp-green-glow: rgba(34, 197, 94, 0.35);
  --comp-gold: #fbbf24;
  --comp-gold-glow: rgba(251, 191, 36, 0.35);
  --comp-red: #ef4444;
  --comp-pink: #ec4899;
  --comp-pink-glow: rgba(236, 72, 153, 0.35);
}

/* ----- OVERLAY ----- */
.companion-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(10, 10, 30, 0.92) 0%, rgba(0, 0, 0, 0.96) 100%);
  backdrop-filter: blur(25px) saturate(1.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.companion-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Ambient particles behind container */
.companion-overlay::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--comp-purple-glow) 0%, transparent 70%);
  top: 15%;
  left: 10%;
  animation: comp-ambient-1 12s ease-in-out infinite alternate;
  pointer-events: none;
  filter: blur(80px);
}

.companion-overlay::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--comp-cyan-glow) 0%, transparent 70%);
  bottom: 10%;
  right: 10%;
  animation: comp-ambient-2 10s ease-in-out infinite alternate;
  pointer-events: none;
  filter: blur(80px);
}

@keyframes comp-ambient-1 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  100% { transform: translate(60px, -40px) scale(1.3); opacity: 0.6; }
}

@keyframes comp-ambient-2 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  100% { transform: translate(-50px, 30px) scale(1.2); opacity: 0.5; }
}

/* ----- MAIN CONTAINER ----- */
.companion-container {
  width: 100%;
  max-width: 1060px;
  max-height: 92vh;
  background: linear-gradient(170deg, rgba(14, 14, 26, 0.97) 0%, rgba(8, 8, 16, 0.99) 100%);
  border: 1px solid var(--comp-border);
  border-radius: 24px;
  box-shadow: 
    0 60px 120px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 212, 255, 0.08),
    0 0 80px rgba(168, 85, 247, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: companion-entrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
}

@keyframes companion-entrance {
  0% { opacity: 0; transform: scale(0.92) translateY(30px); filter: blur(10px); }
  60% { filter: blur(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

/* Scrollbar styling */
.companion-content::-webkit-scrollbar {
  width: 6px;
}

.companion-content::-webkit-scrollbar-track {
  background: transparent;
}

.companion-content::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.3);
  border-radius: 3px;
}

.companion-content::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.5);
}

/* ----- HEADER ----- */
.companion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid var(--comp-border);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.04) 0%, transparent 100%);
  position: relative;
}

.companion-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--comp-purple-glow), var(--comp-cyan-glow), transparent);
}

.companion-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.companion-title-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--comp-purple) 0%, #7c3aed 50%, var(--comp-cyan) 100%);
  border-radius: 14px;
  font-size: 1.5rem;
  box-shadow: 0 8px 30px var(--comp-purple-glow);
  animation: comp-icon-pulse 3s ease-in-out infinite;
  position: relative;
}

.companion-title-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--comp-purple), var(--comp-cyan));
  z-index: -1;
  opacity: 0.4;
  filter: blur(8px);
}

@keyframes comp-icon-pulse {
  0%, 100% { box-shadow: 0 8px 30px var(--comp-purple-glow); }
  50% { box-shadow: 0 8px 40px var(--comp-cyan-glow), 0 0 60px rgba(0, 212, 255, 0.1); }
}

.companion-title h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--comp-purple) 0%, var(--comp-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.companion-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--comp-border);
  border-radius: 12px;
  color: var(--comp-text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.35s ease;
}

.companion-close:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--comp-red);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
}

/* ----- TABS ----- */
.companion-tabs {
  display: flex;
  gap: 6px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--comp-border);
  background: rgba(0, 0, 0, 0.25);
  overflow-x: auto;
}

.companion-tab {
  padding: 11px 22px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--comp-text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  position: relative;
  letter-spacing: 0.3px;
}

.companion-tab:hover {
  color: var(--comp-text);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--comp-border-hover);
}

.companion-tab.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(0, 212, 255, 0.1) 100%);
  border-color: rgba(168, 85, 247, 0.35);
  color: #fff;
  box-shadow: 0 4px 25px rgba(168, 85, 247, 0.15), inset 0 0 20px rgba(168, 85, 247, 0.05);
}

.companion-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--comp-purple), var(--comp-cyan));
  border-radius: 1px;
}

.companion-tab-icon {
  font-size: 1.05rem;
}

/* ----- CONTENT AREA ----- */
.companion-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
  animation: comp-fade-in 0.3s ease;
}

@keyframes comp-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----- LOADING SPINNER ----- */
.companion-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 80px 20px;
  color: var(--comp-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.companion-loader-ring {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(168, 85, 247, 0.08);
  border-top-color: var(--comp-purple);
  border-right-color: var(--comp-cyan);
  border-radius: 50%;
  animation: comp-spin 0.9s linear infinite;
  position: relative;
}

.companion-loader-ring::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 2px solid rgba(0, 212, 255, 0.05);
  border-bottom-color: var(--comp-cyan);
  border-radius: 50%;
  animation: comp-spin 0.6s linear infinite reverse;
}

@keyframes comp-spin {
  to { transform: rotate(360deg); }
}

/* ==================================
   OVERVIEW TAB
   ================================== */
.companion-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Profile Card */
.companion-companion-card {
  background: linear-gradient(160deg, var(--comp-bg-card) 0%, rgba(10, 10, 20, 0.9) 100%);
  border: 1px solid var(--comp-border);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.companion-companion-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.06) 0%, transparent 100%);
  pointer-events: none;
}

.companion-companion-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  position: relative;
}

.companion-companion-avatar {
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(0, 212, 255, 0.1) 100%);
  border: 2px solid rgba(168, 85, 247, 0.3);
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 2.8rem;
  position: relative;
  animation: comp-avatar-float 4s ease-in-out infinite;
}

.companion-companion-avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 22px;
  background: conic-gradient(from 0deg, var(--comp-purple), var(--comp-cyan), var(--comp-purple));
  z-index: -1;
  opacity: 0.3;
  animation: comp-avatar-ring 6s linear infinite;
}

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

@keyframes comp-avatar-ring {
  to { transform: rotate(360deg); }
}

.companion-companion-info {
  flex: 1;
}

.companion-companion-info h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  color: #fff;
  margin: 0 0 6px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.companion-companion-info span {
  color: var(--comp-text-muted);
  font-size: 0.85rem;
}

.companion-type-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.companion-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--comp-cyan);
  letter-spacing: 0.5px;
}

.companion-mood-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 10px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--comp-green);
  letter-spacing: 0.5px;
}

.companion-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(168, 85, 247, 0.1) 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--comp-purple);
  margin-top: 8px;
}

/* XP Bar */
.companion-xp-bar-wrap {
  margin: 20px 0;
}

.companion-xp-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  margin-bottom: 10px;
  color: var(--comp-text-muted);
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.companion-xp-pct {
  color: var(--comp-purple);
  text-shadow: 0 0 12px var(--comp-purple-glow);
  font-size: 0.75rem;
}

.companion-xp-bar {
  height: 10px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
}

.companion-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--comp-purple), #d4b3ff, var(--comp-cyan), var(--comp-purple));
  background-size: 300% 100%;
  animation: comp-xp-flow 4s linear infinite;
  box-shadow: 0 0 20px var(--comp-purple-glow), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 5px;
  position: relative;
}

.companion-xp-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
  border-radius: 5px;
  animation: comp-xp-pulse 2s ease-in-out infinite;
}

@keyframes comp-xp-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

@keyframes comp-xp-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

.companion-xp-text {
  text-align: center;
  font-size: 0.7rem;
  color: var(--comp-text-muted);
  margin-top: 8px;
  font-weight: 600;
}

/* Training Area */
.companion-training-area {
  margin-top: 16px;
}

/* Training Mode Selection */
.companion-train-modes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.companion-train-mode-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--comp-text-muted);
  margin-bottom: 4px;
}

.companion-train-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.companion-train-mode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px;
  border: 1px solid var(--comp-border);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.companion-train-mode-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.07);
}

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

.companion-train-mode-btn.light {
  border-color: rgba(34, 197, 94, 0.3);
}
.companion-train-mode-btn.light:hover:not(:disabled) {
  border-color: var(--comp-green);
  box-shadow: 0 6px 20px rgba(34,197,94,0.25);
}

.companion-train-mode-btn.intensive {
  border-color: rgba(251, 191, 36, 0.3);
}
.companion-train-mode-btn.intensive:hover:not(:disabled) {
  border-color: var(--comp-gold);
  box-shadow: 0 6px 20px rgba(251,191,36,0.25);
}

.companion-train-mode-btn.extreme {
  border-color: rgba(239, 68, 68, 0.3);
}
.companion-train-mode-btn.extreme:hover:not(:disabled) {
  border-color: var(--comp-red);
  box-shadow: 0 6px 20px rgba(239,68,68,0.25);
}

.train-mode-icon { font-size: 1.5rem; line-height: 1; }
.train-mode-name { font-size: 0.72rem; font-weight: 800; color: #fff; letter-spacing: 0.5px; text-transform: uppercase; }
.train-mode-xp   { font-size: 0.68rem; font-weight: 700; color: var(--comp-purple); }
.train-mode-cost { font-size: 0.65rem; color: var(--comp-text-muted); }
.train-mode-risk { font-size: 0.6rem; font-weight: 700; margin-top: 2px; }
.train-mode-bonus { font-size: 0.6rem; color: var(--comp-gold); font-weight: 700; }
.risk-none   { color: var(--comp-green); }
.risk-medium { color: var(--comp-gold); }
.risk-high   { color: var(--comp-red); }

/* Training Cooldown */
.companion-train-cooldown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(20, 20, 30, 0.8);
  border: 1px solid var(--comp-border);
}

.companion-train-cd-icon { font-size: 1.4rem; }
.companion-train-cd-label { font-size: 0.65rem; font-weight: 800; color: var(--comp-text-muted); letter-spacing: 1px; text-transform: uppercase; }
.companion-train-cd-timer { font-size: 1rem; font-weight: 800; color: var(--comp-gold); letter-spacing: 1px; }

@keyframes comp-btn-shimmer {
  0% { transform: translateX(-100%) rotate(0deg); }
  100% { transform: translateX(100%) rotate(0deg); }
}

/* Skills Button */
.companion-skills-btn {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 14px;
  background: rgba(168, 85, 247, 0.08);
  color: var(--comp-purple);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.companion-skills-btn:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.1);
}

.companion-sp-badge {
  background: linear-gradient(135deg, var(--comp-gold), #f59e0b);
  color: #000;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 900;
  box-shadow: 0 2px 8px var(--comp-gold-glow);
  animation: comp-sp-pulse 2s ease-in-out infinite;
}

@keyframes comp-sp-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Right Column */
.companion-overview-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Traits Panel */
.companion-traits-panel {
  background: var(--comp-bg-card);
  border: 1px solid rgba(251, 191, 36, 0.1);
  border-radius: 18px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.companion-traits-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--comp-gold), transparent);
  opacity: 0.6;
}

.companion-traits-panel h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--comp-gold);
  margin: 0 0 16px 0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.companion-trait-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.35);
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(251, 191, 36, 0.12);
  margin-bottom: 10px;
  transition: all 0.35s ease;
}

.companion-trait-card:last-child {
  margin-bottom: 0;
}

.companion-trait-card:hover {
  transform: translateX(4px);
  border-color: rgba(251, 191, 36, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), -4px 0 20px rgba(251, 191, 36, 0.05);
}

.companion-trait-emoji {
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(251, 191, 36, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.15);
  flex-shrink: 0;
}

.companion-trait-info {
  flex: 1;
}

.companion-trait-name {
  font-weight: 800;
  color: #fff;
  font-size: 0.95rem;
}

.companion-trait-desc {
  font-size: 0.78rem;
  color: var(--comp-text-muted);
  margin-top: 3px;
  line-height: 1.4;
}

.companion-trait-empty {
  text-align: center;
  padding: 24px;
  color: var(--comp-text-muted);
  font-style: italic;
  font-size: 0.85rem;
}

/* Stats Panel */
.companion-stats-panel {
  background: var(--comp-bg-card);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 18px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.companion-stats-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--comp-cyan), transparent);
  opacity: 0.6;
}

.companion-stats-panel h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--comp-cyan);
  margin: 0 0 16px 0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.companion-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.companion-stat-item {
  background: rgba(0, 0, 0, 0.35);
  padding: 16px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.companion-stat-item:hover {
  border-color: rgba(0, 212, 255, 0.15);
  transform: translateY(-2px);
}

.companion-stat-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--comp-cyan-glow), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.companion-stat-item:hover::after {
  opacity: 1;
}

.companion-stat-icon {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
  filter: grayscale(0.2);
}

.companion-stat-label {
  display: block;
  font-size: 0.6rem;
  color: var(--comp-text-muted);
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.companion-stat-value {
  display: block;
  font-weight: 900;
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Boosts Panel */
.companion-boosts-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--comp-bg-card);
  border-radius: 16px;
  border: 1px solid rgba(168, 85, 247, 0.08);
  position: relative;
  overflow: hidden;
}

.companion-boosts-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--comp-purple), var(--comp-green), transparent);
  opacity: 0.4;
}

.companion-boosts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--comp-text-muted);
  letter-spacing: 0.5px;
}

.companion-boost-count {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.06));
  color: var(--comp-green);
  border: 1px solid rgba(34, 197, 94, 0.2);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.companion-boosts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.companion-boost-chip {
  padding: 7px 16px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  cursor: help;
}

.companion-boost-chip:hover {
  transform: scale(1.08);
  filter: brightness(1.3);
}

.companion-boost-chip.cryo {
  background: rgba(52, 152, 219, 0.12);
  color: #74b9ff;
  border: 1px solid rgba(52, 152, 219, 0.25);
}

.companion-boost-chip.volcano {
  background: rgba(231, 76, 60, 0.12);
  color: #ff7675;
  border: 1px solid rgba(231, 76, 60, 0.25);
}

.companion-boost-chip.turtle {
  background: rgba(46, 204, 113, 0.12);
  color: #55efc4;
  border: 1px solid rgba(46, 204, 113, 0.25);
}

.companion-boost-none {
  color: var(--comp-text-muted);
  font-size: 0.78rem;
  font-style: italic;
  width: 100%;
  text-align: center;
}

/* No Companion State */
.companion-no-companion {
  text-align: center;
  padding: 80px 30px;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.04) 0%, transparent 70%);
  border-radius: 24px;
  border: 1px dashed rgba(168, 85, 247, 0.15);
  position: relative;
}

.companion-no-icon {
  font-size: 5rem;
  margin-bottom: 20px;
  opacity: 0.25;
  animation: comp-avatar-float 4s ease-in-out infinite;
}

.companion-no-companion h3 {
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  margin: 0 0 12px 0;
}

.companion-no-companion p {
  color: var(--comp-text-muted);
  max-width: 400px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

/* ==================================
   MISSIONS TAB
   ================================== */
.companion-missions-header {
  text-align: center;
  padding: 32px;
  background: linear-gradient(160deg, rgba(168, 85, 247, 0.12) 0%, rgba(0, 212, 255, 0.06) 100%);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 20px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.companion-missions-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--comp-purple), var(--comp-cyan), transparent);
  opacity: 0.5;
}

.companion-missions-header h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 14px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  letter-spacing: 1px;
}

.companion-missions-header p {
  color: #b0b0c8;
  font-size: 1rem;
  margin: 0;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Active Mission Banner */
.companion-active-mission {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(0, 212, 255, 0.06) 100%);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}

.companion-active-mission::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--comp-purple), var(--comp-cyan));
  animation: comp-mission-glow 3s linear infinite;
  background-size: 200% 100%;
}

@keyframes comp-mission-glow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.companion-active-mission-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--comp-text);
  font-size: 0.9rem;
}

.companion-active-mission-timer {
  font-weight: 800;
  color: var(--comp-cyan);
  font-size: 1.15rem;
  text-shadow: 0 0 15px var(--comp-cyan-glow);
  font-variant-numeric: tabular-nums;
}

.companion-mission-progress-bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 3px;
  margin-top: 16px;
  overflow: hidden;
  position: relative;
}

.companion-mission-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--comp-purple), var(--comp-cyan));
  border-radius: 3px;
  transition: width 1s linear;
  box-shadow: 0 0 12px var(--comp-cyan-glow);
  position: relative;
}

.companion-mission-progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: -2px;
  bottom: -2px;
  width: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--comp-cyan), 0 0 20px var(--comp-cyan-glow);
}

/* Expedition Level Info */
.expedition-level-info {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--comp-cyan);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0,212,255,0.3);
}

/* Expedition List */
.expedition-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 65vh;
  overflow-y: auto;
  padding-right: 12px;
  padding-left: 4px;
}

.expedition-list::-webkit-scrollbar { width: 5px; }
.expedition-list::-webkit-scrollbar-track { background: transparent; }
.expedition-list::-webkit-scrollbar-thumb { background: rgba(168, 85, 247, 0.25); border-radius: 3px; }

/* Expedition Card */
.expedition-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  background: linear-gradient(145deg, rgba(45, 45, 70, 0.98) 0%, rgba(30, 30, 50, 0.95) 100%);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.05);
  min-height: 110px;
}

.expedition-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  border-radius: 6px 0 0 6px;
}

.expedition-card.easy::before { background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%); box-shadow: 0 0 20px rgba(34,197,94,0.6); }
.expedition-card.medium::before { background: linear-gradient(180deg, #fcd34d 0%, #fbbf24 100%); box-shadow: 0 0 20px rgba(251,191,36,0.6); }
.expedition-card.hard::before { background: linear-gradient(180deg, #fb923c 0%, #f97316 100%); box-shadow: 0 0 20px rgba(249,115,22,0.6); }
.expedition-card.extreme::before { background: linear-gradient(180deg, #f87171 0%, #ef4444 100%); box-shadow: 0 0 20px rgba(239,68,68,0.6); }

.expedition-card:not(.locked):hover {
  transform: translateX(6px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.05);
  background: linear-gradient(135deg, rgba(30, 30, 48, 0.98) 0%, rgba(22, 22, 36, 0.95) 100%);
}

.expedition-card.easy:not(.locked):hover { border-left-color: var(--comp-green); box-shadow: 0 8px 30px rgba(0,0,0,0.5), -4px 0 25px rgba(34,197,94,0.15); }
.expedition-card.medium:not(.locked):hover { border-left-color: var(--comp-gold); box-shadow: 0 8px 30px rgba(0,0,0,0.5), -4px 0 25px rgba(251,191,36,0.15); }
.expedition-card.hard:not(.locked):hover { border-left-color: #f97316; box-shadow: 0 8px 30px rgba(0,0,0,0.5), -4px 0 25px rgba(249,115,22,0.15); }
.expedition-card.extreme:not(.locked):hover { border-left-color: var(--comp-red); box-shadow: 0 8px 30px rgba(0,0,0,0.5), -4px 0 25px rgba(239,68,68,0.15); }

.expedition-card.locked {
  opacity: 0.45;
  filter: grayscale(0.5);
}

.expedition-card-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.expedition-level-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
  text-shadow: 0 0 15px currentColor;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

.expedition-card.easy .expedition-level-badge { background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1)); color: #4ade80; border-color: rgba(34, 197, 94, 0.4); text-shadow: 0 0 10px rgba(34,197,94,0.5); }
.expedition-card.medium .expedition-level-badge { background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.1)); color: #fcd34d; border-color: rgba(251, 191, 36, 0.4); text-shadow: 0 0 10px rgba(251,191,36,0.5); }
.expedition-card.hard .expedition-level-badge { background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(249, 115, 22, 0.1)); color: #fb923c; border-color: rgba(249, 115, 22, 0.4); text-shadow: 0 0 10px rgba(249,115,22,0.5); }
.expedition-card.extreme .expedition-level-badge { background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1)); color: #f87171; border-color: rgba(239, 68, 68, 0.4); text-shadow: 0 0 10px rgba(239,68,68,0.5); }
.expedition-level-badge.locked { background: linear-gradient(135deg, rgba(100, 100, 120, 0.2), rgba(80, 80, 100, 0.1)); color: #8888a0; border-color: rgba(255, 255, 255, 0.1); }

.expedition-card-info {
  flex: 1;
  min-width: 0;
}

.expedition-card-name {
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
  letter-spacing: 0.5px;
}

.expedition-card-meta {
  display: flex;
  gap: 24px;
  margin-top: 10px;
  font-size: 1rem;
  color: #c8c8e0;
  font-weight: 600;
}

.expedition-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  flex-shrink: 0;
  max-width: 300px;
}

.expedition-loot-preview {
  font-size: 0.95rem;
  color: #a8a8c0;
  text-align: right;
  line-height: 1.6;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expedition-locked-hint {
  font-size: 0.8rem;
  color: #7a7a90;
  font-weight: 700;
  font-style: italic;
}

.expedition-start-btn {
  padding: 16px 32px;
  border: none;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  min-width: 140px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.expedition-card.easy .expedition-start-btn:not(:disabled) {
  background: linear-gradient(135deg, var(--comp-green), #16a34a);
  color: #000;
  box-shadow: 0 3px 15px var(--comp-green-glow);
}

.expedition-card.medium .expedition-start-btn:not(:disabled) {
  background: linear-gradient(135deg, var(--comp-gold), #d97706);
  color: #000;
  box-shadow: 0 3px 15px var(--comp-gold-glow);
}

.expedition-card.hard .expedition-start-btn:not(:disabled) {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #000;
  box-shadow: 0 3px 15px rgba(249, 115, 22, 0.3);
}

.expedition-card.extreme .expedition-start-btn:not(:disabled) {
  background: linear-gradient(135deg, var(--comp-red), #dc2626);
  color: #fff;
  box-shadow: 0 3px 15px rgba(239, 68, 68, 0.3);
}

.expedition-start-btn:not(:disabled):hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.2);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.expedition-start-btn:disabled {
  background: rgba(30, 30, 45, 0.6);
  color: var(--comp-text-muted);
  cursor: not-allowed;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Claim button (still used in active mission banner) */
.companion-mission-btn {
  padding: 10px 22px;
  border: none;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.35s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.companion-mission-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* ============================================
   ORBIT EQUIPMENT SYSTEM - REVOLUTIONARY
   Slots kreisen um den Begleiter
   ============================================ */

.orbit-equip {
  padding: 20px;
  position: relative;
  min-height: 500px;
}

/* === HERO SECTION === */
.orbit-hero {
  position: relative;
  width: 340px;
  height: 340px;
  margin: 0 auto 24px;
}

/* Companion Core */
.companion-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
}

.core-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 65%);
  animation: core-pulse 2s ease-in-out infinite;
}

@keyframes core-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.9; }
}

.core-ring {
  position: absolute;
  width: 100px;
  height: 100px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 50%;
  animation: ring-rotate 10s linear infinite;
}

@keyframes ring-rotate {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.core-sprite {
  font-size: 4.5rem;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.5));
  animation: core-float 2.5s ease-in-out infinite;
}

@keyframes core-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

.core-name {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: #fff;
  margin-top: 8px;
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.core-level {
  font-size: 0.75rem;
  color: #a78bfa;
  font-weight: 700;
  background: rgba(139, 92, 246, 0.15);
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 4px;
}

/* === ORBIT RING === */
.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  border: 1px dashed rgba(139, 92, 246, 0.2);
  border-radius: 50%;
  /* Keine Rotation - Statisch */
}

/* === ORBIT SLOTS === */
.orbit-slot {
  position: absolute;
  width: 140px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Position slots using CSS variables for angles */
.orbit-slot[data-slot="head"] { top: 0%; left: 50%; }
.orbit-slot[data-slot="body"] { top: 50%; left: 0%; }
.orbit-slot[data-slot="acc"] { top: 50%; left: 100%; }
.orbit-slot[data-slot="feet"] { top: 100%; left: 50%; }

.slot-planet {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(30,41,55,0.9), rgba(17,24,39,0.95));
  border: 2px solid rgba(107, 114, 128, 0.4);
  display: grid;
  place-items: center;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  position: relative;
}

.planet-icon {
  font-size: 1.8rem;
}

.slot-info {
  text-align: center;
  margin-top: 8px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.orb-item {
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.orb-hint {
  font-size: 0.75rem;
  color: #6b7280;
  font-style: italic;
}

/* Filled State */
.orb-filled .slot-planet {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

/* Rarity States */
.orb-legendary .slot-planet {
  border-color: #fbbf24;
  background: linear-gradient(145deg, rgba(251,191,36,0.2), rgba(17,24,39,0.95));
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
}

.orb-epic .slot-planet {
  border-color: #a855f7;
  background: linear-gradient(145deg, rgba(168,85,247,0.2), rgba(17,24,39,0.95));
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
}

.orb-rare .slot-planet {
  border-color: #3b82f6;
  background: linear-gradient(145deg, rgba(59,130,246,0.2), rgba(17,24,39,0.95));
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

/* Unequip Button */
.orb-x {
  position: absolute;
  top: -8px;
  right: 20px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
  display: grid;
  place-items: center;
}

.orbit-slot:hover .orb-x {
  opacity: 1;
}

.orb-x:hover {
  transform: scale(1.1) rotate(90deg);
}

/* Drag States */
.orb-empty.orb-ready .slot-planet {
  border-color: #22c55e;
  border-style: dashed;
  animation: planet-ready 1s ease-in-out infinite;
}

@keyframes planet-ready {
  0%, 100% { box-shadow: 0 0 15px rgba(34, 197, 94, 0.3); }
  50% { box-shadow: 0 0 30px rgba(34, 197, 94, 0.5); }
}

.orbit-slot.orb-hover {
  transform: translate(-50%, -50%) scale(1.1);
  z-index: 20;
}

.orbit-slot.orb-hover .slot-planet {
  border-color: #22c55e !important;
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.4) !important;
}

/* === STATS BAR === */
.equip-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
  padding: 12px 24px;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 16px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: #a78bfa;
}

.stat-lbl {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-div {
  width: 1px;
  height: 30px;
  background: rgba(75, 85, 99, 0.3);
}

/* === INVENTORY === */
.orb-inventory {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(75, 85, 99, 0.2);
  border-radius: 20px;
  padding: 16px;
}

.orb-inv-header {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: #a78bfa;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.orb-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.orb-grid::-webkit-scrollbar {
  height: 6px;
}

.orb-grid::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 3px;
}

.orb-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #8b5cf6, #22c55e);
  border-radius: 3px;
}

/* Cards */
.orb-card {
  flex-shrink: 0;
  width: 85px;
  padding: 14px 10px;
  background: linear-gradient(180deg, rgba(30,41,55,0.9) 0%, rgba(17,24,39,0.95) 100%);
  border: 2px solid rgba(107, 114, 128, 0.25);
  border-radius: 16px;
  text-align: center;
  cursor: grab;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.orb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.card-aura {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.orb-card:hover .card-aura {
  opacity: 0.15;
}

.orb-legendary .card-aura { background: linear-gradient(180deg, #fbbf24, transparent); }
.orb-epic .card-aura { background: linear-gradient(180deg, #a855f7, transparent); }
.orb-rare .card-aura { background: linear-gradient(180deg, #3b82f6, transparent); }

.orb-legendary.orb-card { border-color: rgba(251, 191, 36, 0.4); }
.orb-epic.orb-card { border-color: rgba(168, 85, 247, 0.4); }
.orb-rare.orb-card { border-color: rgba(59, 130, 246, 0.4); }

.card-icon {
  font-size: 2rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(34,197,94,0.1));
  border-radius: 12px;
  margin: 0 auto 8px;
}

.card-name {
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-stack {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border-radius: 6px;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.orb-empty-inv {
  text-align: center;
  padding: 30px;
  color: #64748b;
}

.orb-empty-inv span {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 8px;
}

/* === GHOST === */
.orb-ghost {
  position: absolute;
  left: 0;
  top: 0;
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.98);
  border: 2px solid #22c55e;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transform: translate(-9999px, -9999px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 40px rgba(34, 197, 94, 0.3);
}

.orb-ghost.orb-gh-active {
  opacity: 1;
}

/* === RESPONSIVE === */
@media (max-width: 400px) {
  .orbit-hero {
    width: 280px;
    height: 280px;
  }
  
  .orbit-ring {
    width: 220px;
    height: 220px;
  }
  
  .orbit-slot {
    width: 110px;
  }
  
  .slot-planet {
    width: 48px;
    height: 48px;
  }
  
  .planet-icon {
    font-size: 1.5rem;
  }
  
  .core-sprite {
    font-size: 3.5rem;
  }
}

/* ==================================
   BREEDING TAB - ULTRA
   Zucht-Arena, Eltern-Karten, Timer,
   Fortschritt, Ergebnis-Reveal
   ================================== */
.companion-breeding {
  text-align: center;
}

.companion-breeding-info {
  padding: 30px 28px;
  background: linear-gradient(160deg, rgba(236, 72, 153, 0.06) 0%, rgba(168, 85, 247, 0.04) 100%);
  border: 1px solid rgba(236, 72, 153, 0.1);
  border-radius: 20px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.companion-breeding-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--comp-pink), var(--comp-purple), transparent);
  opacity: 0.6;
}

.companion-breeding-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  display: inline-block;
  animation: comp-heart-beat 2s ease-in-out infinite;
}

@keyframes comp-heart-beat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.2); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
}

.companion-breeding-info h3 {
  font-family: 'Cinzel', serif;
  color: #fff;
  font-size: 1.15rem;
  margin: 0 0 8px 0;
  letter-spacing: 1px;
}

.companion-breeding-info p {
  color: var(--comp-text-muted);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.6;
}

.companion-breeding-info p strong {
  color: var(--comp-pink);
}

/* ---- Breed Arena ---- */
.breed-arena {
  background: linear-gradient(160deg, rgba(236, 72, 153, 0.04) 0%, rgba(14, 14, 26, 0.9) 50%, rgba(168, 85, 247, 0.04) 100%);
  border: 1px solid rgba(236, 72, 153, 0.1);
  border-radius: 22px;
  padding: 36px 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.breed-arena::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(236, 72, 153, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.breed-parents {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.breed-parent-card {
  flex: 0 0 180px;
  text-align: center;
  padding: 24px 18px;
  background: rgba(14, 14, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  transition: all 0.4s ease;
}

.breed-parent-card.active-parent {
  border-color: rgba(236, 72, 153, 0.2);
  background: linear-gradient(160deg, rgba(14, 14, 26, 0.8) 0%, rgba(236, 72, 153, 0.04) 100%);
  box-shadow: 0 4px 25px rgba(236, 72, 153, 0.06);
}

.breed-parent-avatar {
  font-size: 2.8rem;
  margin-bottom: 12px;
  animation: comp-avatar-float 3.5s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(236, 72, 153, 0.15));
}

.breed-parent-name {
  font-weight: 700;
  color: #fff;
  font-size: 0.92rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breed-parent-role {
  font-size: 0.7rem;
  color: var(--comp-text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}

/* Heart connector between parents */
.breed-heart-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 4px;
}

.breed-heart-icon {
  font-size: 2.5rem;
  animation: comp-heart-beat 2s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(236, 72, 153, 0.4));
  transition: all 0.3s ease;
}

/* ---- Breed Progress Area (active breeding) ---- */
.breed-progress-area {
  text-align: center;
  padding: 8px 0 0 0;
  position: relative;
  z-index: 1;
}

.breed-status-text {
  font-size: 1rem;
  color: var(--comp-pink);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.breed-timer {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  font-family: 'Inter', sans-serif;
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
}

.breed-progress-bar {
  width: 100%;
  max-width: 380px;
  height: 12px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  margin: 0 auto 10px;
  overflow: hidden;
  border: 1px solid rgba(236, 72, 153, 0.1);
}

.breed-progress-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--comp-pink), #ff9f43, var(--comp-pink));
  background-size: 200% 100%;
  animation: comp-xp-flow 2s linear infinite;
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.4);
  transition: width 1s linear;
  position: relative;
}

.breed-progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
  box-shadow: 0 0 10px var(--comp-pink), 0 0 20px var(--comp-pink);
}

.breed-progress-pct {
  font-size: 0.78rem;
  color: var(--comp-text-muted);
  font-weight: 700;
  letter-spacing: 1px;
}

/* ---- Breed Result Reveal ---- */
.breed-result-reveal {
  text-align: center;
  padding: 12px 0;
  position: relative;
  z-index: 1;
  animation: comp-fade-in 0.5s ease;
}

.breed-result-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
  animation: comp-heart-beat 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255, 200, 0, 0.4));
}

.breed-result-reveal h3 {
  font-family: 'Cinzel', serif;
  color: #fff;
  font-size: 1.2rem;
  margin: 0 0 8px 0;
  letter-spacing: 1px;
}

.breed-result-reveal p {
  color: var(--comp-text-muted);
  font-size: 0.88rem;
  margin: 0 0 20px 0;
}

/* ---- Breed Action Buttons ---- */
.breed-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  border: none;
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

.breed-action-btn.start {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(168, 85, 247, 0.1));
  color: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(236, 72, 153, 0.1);
}

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

.breed-action-btn.start.ready {
  background: linear-gradient(135deg, var(--comp-pink), #d946ef);
  color: #fff;
  box-shadow: 0 8px 30px rgba(236, 72, 153, 0.3);
  opacity: 1;
}

.breed-action-btn.start.ready:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 40px rgba(236, 72, 153, 0.4);
}

.breed-action-btn.collect {
  background: linear-gradient(135deg, var(--comp-green), #10b981);
  color: #fff;
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.3);
  animation: comp-slot-breathe 2s ease-in-out infinite;
}

.breed-action-btn.collect:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 40px rgba(34, 197, 94, 0.4);
}

/* ---- Breed Select Header ---- */
.breed-select-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.breed-select-header h4 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--comp-pink);
  margin: 0;
  letter-spacing: 1px;
}

.breed-select-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--comp-text-muted);
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 14px;
  border-radius: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---- Companion Breed Cards (selection) ---- */
.companion-breeding-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  text-align: left;
}

.companion-breed-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: rgba(14, 14, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.companion-breed-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.03), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.companion-breed-card:hover::before {
  left: 120%;
}

.companion-breed-card:hover {
  border-color: rgba(236, 72, 153, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(236, 72, 153, 0.04);
}

.companion-breed-card.selected {
  border-color: var(--comp-pink);
  background: linear-gradient(145deg, rgba(14, 14, 26, 0.8) 0%, rgba(236, 72, 153, 0.06) 100%);
  box-shadow: 0 0 30px var(--comp-pink-glow), 0 8px 25px rgba(0, 0, 0, 0.3);
}

.companion-breed-card.selected::after {
  content: '\u2714';
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 0.7rem;
  color: var(--comp-pink);
  background: rgba(236, 72, 153, 0.15);
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.breed-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.breed-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.breed-card-traits {
  font-size: 0.68rem;
  color: var(--comp-gold);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.companion-breed-emoji {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.08), rgba(168, 85, 247, 0.05));
  border-radius: 13px;
  border: 1px solid rgba(236, 72, 153, 0.1);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.companion-breed-card:hover .companion-breed-emoji {
  border-color: rgba(236, 72, 153, 0.25);
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.08);
}

.companion-breed-card.selected .companion-breed-emoji {
  border-color: var(--comp-pink);
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.15);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(168, 85, 247, 0.08));
}

.companion-breed-name {
  font-weight: 700;
  color: #fff;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.companion-breed-level {
  font-size: 0.72rem;
  color: var(--comp-text-muted);
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 12px;
  border-radius: 10px;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ---- Breeding Recipe Book ---- */
.breed-recipe-section {
  margin-bottom: 28px;
}

.breed-recipe-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 6px;
}

.breed-recipe-list::-webkit-scrollbar {
  width: 5px;
}

.breed-recipe-list::-webkit-scrollbar-track {
  background: transparent;
}

.breed-recipe-list::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.25);
  border-radius: 3px;
}

.breed-recipe-card {
  background: rgba(14, 14, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 14px 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.breed-recipe-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
}

.breed-recipe-card[data-rarity="Selten"]::before {
  background: #3b82f6;
}

.breed-recipe-card[data-rarity="Episch"]::before {
  background: #a855f7;
}

.breed-recipe-card[data-rarity="Legendär"]::before {
  background: #fbbf24;
}

.breed-recipe-card:hover {
  transform: translateX(4px);
  border-color: rgba(168, 85, 247, 0.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.breed-recipe-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.breed-recipe-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breed-recipe-emoji {
  font-size: 1.4rem;
}

.breed-recipe-name {
  font-weight: 800;
  font-size: 0.9rem;
}

.breed-recipe-rarity {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

.breed-recipe-parents {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.78rem;
  color: var(--comp-text-muted);
}

.breed-recipe-parent {
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 10px;
  border-radius: 8px;
  font-weight: 600;
}

.breed-recipe-plus {
  color: var(--comp-pink);
  font-weight: 800;
}

.breed-recipe-trait {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--comp-gold);
  font-weight: 600;
  margin-bottom: 6px;
}

.breed-recipe-trait-icon {
  font-size: 0.9rem;
}

.breed-recipe-desc {
  font-size: 0.7rem;
  color: var(--comp-text-muted);
  line-height: 1.4;
  font-style: italic;
}

/* ==================================
   RESPONSIVE
   ================================== */
@media (max-width: 900px) {
  .companion-container {
    max-width: 95vw;
    border-radius: 18px;
  }

  .companion-equip-layout {
    grid-template-columns: 1fr;
  }
  
  .companion-equip-inventory {
    max-height: 280px;
  }

  .expedition-card {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .expedition-card-right {
    align-items: flex-start;
    max-width: 100%;
  }

  .expedition-loot-preview {
    text-align: left;
    white-space: normal;
    max-width: 100%;
  }

  .companion-overview {
    grid-template-columns: 1fr;
  }

  .companion-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .breed-parents {
    flex-direction: column;
    gap: 12px;
  }

  .breed-parent-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 220px;
  }

  .breed-heart-connector {
    transform: rotate(90deg);
  }
}

@media (max-width: 600px) {
  .companion-header {
    padding: 16px 18px;
  }

  .companion-tabs {
    padding: 12px 18px;
    gap: 4px;
  }

  .companion-tab {
    padding: 9px 14px;
    font-size: 0.75rem;
  }

  .companion-content {
    padding: 18px;
  }

  .expedition-card-name {
    white-space: normal;
  }

  .expedition-level-badge {
    width: 40px;
    height: 40px;
    font-size: 0.65rem;
  }
  
  .companion-tabs {
    flex-wrap: wrap;
  }
  
  .companion-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .companion-breeding-list {
    grid-template-columns: 1fr;
  }

  .breed-parent-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 160px;
    padding: 18px 14px;
  }

  .breed-parent-avatar {
    font-size: 2.2rem;
  }

  .breed-timer {
    font-size: 1.5rem;
  }

  .breed-action-btn {
    padding: 12px 24px;
    font-size: 0.85rem;
  }
}

/* ==========================================
   PREMIUM DRAG & DROP SYSTEM
   ========================================== */

/* Ghost Element */
.drag-ghost-premium {
  position: fixed;
  left: 0;
  top: 0;
  width: 120px;
  height: 80px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.9), rgba(217, 70, 239, 0.9));
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  z-index: 10000000;
  box-shadow: 
    0 20px 60px rgba(168, 85, 247, 0.5),
    0 0 40px rgba(217, 70, 239, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  will-change: transform;
}

.ghost-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, transparent 70%);
  animation: ghostPulse 1.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ghostPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.ghost-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  z-index: 1;
}

.ghost-name {
  font-size: 0.55rem;
  font-weight: 700;
  color: white;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
}

.ghost-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 16px;
  pointer-events: none;
}

.ghost-particles::before,
.ghost-particles::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: ghostParticle 1s linear infinite;
}

.ghost-particles::before {
  left: 10%;
  top: 20%;
  animation-delay: 0s;
}

.ghost-particles::after {
  right: 15%;
  bottom: 25%;
  animation-delay: 0.5s;
}

@keyframes ghostParticle {
  0% { transform: translateY(0) scale(1); opacity: 0.6; }
  100% { transform: translateY(-30px) scale(0); opacity: 0; }
}

/* Connection Line */
.drag-connection-line {
  position: fixed;
  height: 2px;
  background: linear-gradient(90deg, 
    rgba(168, 85, 247, 0.8),
    rgba(217, 70, 239, 0.4),
    transparent);
  transform-origin: left center;
  pointer-events: none;
  z-index: 9999999;
  opacity: 0;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
  border-radius: 1px;
}

/* Slot States */
.orbit-slot {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Slot Ready State */
.orbit-slot.slot-ready {
  animation: slotPulse 1.5s ease-in-out infinite;
}

.orbit-slot.slot-ready .slot-ring {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
}

.orbit-slot.slot-ready .slot-planet {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.4);
}

@keyframes slotPulse {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
    transform: translate(-50%, -50%) scale(1);
  }
  50% { 
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.4);
    transform: translate(-50%, -50%) scale(1.05);
  }
}

/* Slot Magnet State (pulling ghost) */
.orbit-slot.slot-magnet {
  transform: translate(-50%, -50%) scale(1.15) !important;
}

.orbit-slot.slot-magnet .slot-ring {
  border-color: rgba(168, 85, 247, 0.9);
  box-shadow: 0 0 50px rgba(168, 85, 247, 0.5);
  animation: magnetPulse 0.5s ease-in-out infinite;
}

@keyframes magnetPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(168, 85, 247, 0.4); }
  50% { box-shadow: 0 0 60px rgba(168, 85, 247, 0.7); }
}

/* Slot Active Hover (can drop) */
.orbit-slot.slot-hover-active {
  transform: translate(-50%, -50%) scale(1.2) !important;
}

.orbit-slot.slot-hover-active .slot-ring {
  border-color: #22c55e;
  box-shadow: 
    0 0 40px rgba(34, 197, 94, 0.5),
    inset 0 0 20px rgba(34, 197, 94, 0.1);
  background: rgba(34, 197, 94, 0.1);
}

.orbit-slot.slot-hover-active .slot-planet {
  transform: scale(0.9);
  opacity: 0.5;
}

/* Slot Snap Animation (successful drop) */
.orbit-slot.slot-snap {
  animation: slotSnap 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slotSnap {
  0% { transform: translate(-50%, -50%) scale(1.2); }
  50% { transform: translate(-50%, -50%) scale(0.9); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* Dragging Source Item */
.orb-card.dragging-source {
  transform: scale(0.95);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
}

.orb-card.dragging-source::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), transparent);
  border-radius: 12px;
  animation: sourceGlow 1s ease-in-out infinite;
}

@keyframes sourceGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* Shake Animation (failed drop) */
.shake-anim {
  animation: shakeDrop 0.5s ease-in-out;
}

@keyframes shakeDrop {
  0%, 100% { transform: translate(var(--tx, 0), var(--ty, 0)) rotate(0deg); }
  20% { transform: translate(var(--tx, 0), var(--ty, 0)) rotate(-5deg); }
  40% { transform: translate(var(--tx, 0), var(--ty, 0)) rotate(5deg); }
  60% { transform: translate(var(--tx, 0), var(--ty, 0)) rotate(-3deg); }
  80% { transform: translate(var(--tx, 0), var(--ty, 0)) rotate(3deg); }
}

/* Particle Burst */
.equip-particle {
  will-change: transform, opacity;
}

/* Unequip Button Hover */
.orb-x {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.orb-x:hover {
  transform: scale(1.3) rotate(90deg);
  background: rgba(239, 68, 68, 0.8);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

/* Slot Planet Exit Animation */
.slot-planet {
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Item Cards - Enhanced Hover */
.orb-card {
  cursor: grab;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.orb-card:active {
  cursor: grabbing;
  transform: scale(0.98);
}

.orb-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(168, 85, 247, 0.3);
}

/* Orbit System Background during drag */
.orbit-system.drag-active::before {
  opacity: 0.6;
  transform: scale(1.1);
  transition: all 0.5s ease;
}

/* Mobile Touch Optimizations */
@media (pointer: coarse) {
  .drag-ghost-premium {
    width: 140px;
    height: 100px;
  }
  
  .ghost-icon {
    font-size: 2.2rem;
  }
  
  .orb-card {
    touch-action: none;
    -webkit-touch-callout: none;
    user-select: none;
  }
  
  .orbit-slot.slot-magnet {
    transform: translate(-50%, -50%) scale(1.25) !important;
  }
  
  .orbit-slot.slot-hover-active {
    transform: translate(-50%, -50%) scale(1.3) !important;
  }
}

/* Prevent text selection during drag */
.drag-ghost-premium,
.orbit-slot,
.orb-card {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* ==========================================
   EQUIPMENT V2 - COMPLETE REDESIGN
   ========================================== */

.equip-v2 {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

/* Top Section: Character + Slots */
.eq-v2-top {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: start;
}

/* Character Card */
.eq-char-card {
  position: relative;
  background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(0,212,255,0.1));
  border: 1px solid rgba(168,85,247,0.3);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.eq-char-glow {
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle at 50% 50%, rgba(168,85,247,0.3), transparent 70%);
  border-radius: 22px;
  z-index: -1;
  animation: charGlow 3s ease-in-out infinite;
}

@keyframes charGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.eq-char-avatar {
  font-size: 4rem;
  filter: drop-shadow(0 4px 12px rgba(168,85,247,0.4));
}

.eq-char-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--comp-text);
}

.eq-char-level {
  font-size: 0.7rem;
  color: var(--comp-cyan);
  background: rgba(0,212,255,0.1);
  padding: 4px 12px;
  border-radius: 12px;
}

/* Slots Grid */
.eq-slots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Individual Slot */
.eq-slot {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px;
  min-height: 90px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.eq-slot.empty {
  border-style: dashed;
  background: rgba(255,255,255,0.01);
}

.eq-slot.filled {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
}

.eq-slot-glow {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.3s;
}

.eq-slot.orb-legendary .eq-slot-glow { background: radial-gradient(circle at 50% 50%, rgba(251,191,36,0.15), transparent 70%); }
.eq-slot.orb-epic .eq-slot-glow { background: radial-gradient(circle at 50% 50%, rgba(168,85,247,0.15), transparent 70%); }
.eq-slot.orb-rare .eq-slot-glow { background: radial-gradient(circle at 50% 50%, rgba(59,130,246,0.15), transparent 70%); }

.eq-slot.filled:hover .eq-slot-glow { opacity: 1; }

.eq-slot-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.eq-slot-icon {
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.eq-empty-icon {
  opacity: 0.4;
  filter: grayscale(0.8);
}

.eq-slot-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.eq-slot-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--comp-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.eq-slot-desc {
  font-size: 0.65rem;
  color: var(--comp-text-muted);
  opacity: 0.7;
}

.eq-item-name {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eq-remove {
  width: 28px;
  height: 28px;
  background: rgba(239,68,68,0.2);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 8px;
  color: #ef4444;
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.eq-remove:hover {
  background: rgba(239,68,68,0.4);
  transform: scale(1.1) rotate(90deg);
}

.eq-drop-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--comp-cyan);
  background: rgba(0,212,255,0.05);
  border-radius: 16px;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}

/* Stats Bar */
.eq-v2-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px 24px;
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
}

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

.eq-stat-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--comp-text);
}

.eq-stat-lbl {
  font-size: 0.65rem;
  color: var(--comp-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.eq-stat-bar {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}

/* Inventory Section */
.eq-v2-inv {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 20px;
}

.eq-inv-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--comp-text);
}

.eq-inv-header span:first-child { font-size: 1.3rem; }

.eq-inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 8px;
}

/* Inventory Item */
.eq-inv-item {
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: grab;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.eq-inv-item:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(168,85,247,0.3);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.eq-inv-item:active { cursor: grabbing; }

.eq-item-glow {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  opacity: 0;
  transition: opacity 0.3s;
}

.eq-inv-item.orb-legendary .eq-item-glow { background: radial-gradient(circle, rgba(251,191,36,0.2), transparent 70%); }
.eq-inv-item.orb-epic .eq-item-glow { background: radial-gradient(circle, rgba(168,85,247,0.2), transparent 70%); }
.eq-inv-item.orb-rare .eq-item-glow { background: radial-gradient(circle, rgba(59,130,246,0.2), transparent 70%); }

.eq-inv-item:hover .eq-item-glow { opacity: 1; }

.eq-inv-icon { font-size: 2rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }

.eq-inv-name {
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.eq-inv-count {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--comp-purple), var(--comp-cyan));
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  color: #000;
  display: grid;
  place-items: center;
}

.eq-inv-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--comp-text-muted);
}

.eq-inv-empty span { font-size: 3rem; display: block; margin-bottom: 12px; }

/* DRAG & DROP V2 STYLES */
.eq-dragging {
  opacity: 0.4;
  transform: scale(0.95);
}

.eq-ghost-v2 {
  position: fixed;
  left: 0;
  top: 0;
  width: 120px;
  height: 100px;
  background: linear-gradient(135deg, rgba(168,85,247,0.95), rgba(217,70,239,0.9));
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  z-index: 10000000;
  box-shadow: 0 25px 60px rgba(168,85,247,0.5), 0 0 40px rgba(217,70,239,0.3);
  will-change: transform;
}

.eqg-glow {
  position: absolute;
  inset: -8px;
  background: radial-gradient(circle, rgba(168,85,247,0.4), transparent 70%);
  animation: eqGhostPulse 1.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes eqGhostPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.eqg-icon { font-size: 2rem; z-index: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }

.eqg-name {
  font-size: 0.6rem;
  font-weight: 700;
  color: white;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
}

.eq-drag-beam {
  border-radius: 1px;
  box-shadow: 0 0 15px rgba(168,85,247,0.6);
}

/* Slot States */
.eq-slot-ready {
  animation: eqSlotPulse 1.5s ease-in-out infinite;
  border-color: rgba(168,85,247,0.4) !important;
}

@keyframes eqSlotPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(168,85,247,0.1); }
  50% { box-shadow: 0 0 40px rgba(168,85,247,0.3); }
}

.eq-slot-magnet {
  transform: scale(1.05);
  border-color: rgba(168,85,247,0.7) !important;
  box-shadow: 0 0 50px rgba(168,85,247,0.4) !important;
}

.eq-slot-hover {
  transform: scale(1.08) !important;
  border-color: #22c55e !important;
  box-shadow: 0 0 40px rgba(34,197,94,0.4) !important;
}

.eq-slot-hover .eq-drop-hint { opacity: 1; }

.eq-slot-snap {
  animation: eqSlotSnap 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes eqSlotSnap {
  0% { transform: scale(1.08); }
  50% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.eq-ghost-fail {
  animation: eqGhostFail 0.4s ease-in-out;
}

@keyframes eqGhostFail {
  0%, 100% { transform: translate(var(--tx,0), var(--ty,0)) rotate(0deg); opacity: 0.8; }
  25% { transform: translate(var(--tx,0), var(--ty,0)) rotate(-8deg); }
  75% { transform: translate(var(--tx,0), var(--ty,0)) rotate(8deg); }
}

/* ==========================================
   HEXA ORBIT EQUIPMENT SYSTEM - KOMPLETT NEU
   Holographic UI with Orbiting Slots
   ========================================== */

.hexa-equip {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  perspective: 1000px;
}

/* Orbit Container */
.hex-orbit-container {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(168,85,247,0.08) 0%, transparent 60%);
  border-radius: 24px;
  border: 1px solid rgba(168,85,247,0.15);
  overflow: hidden;
}

.orbit-bg-effect {
  position: absolute;
  inset: 0;
  background: 
    repeating-conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(168,85,247,0.03) 5deg, transparent 10deg);
  animation: orbitRotate 60s linear infinite;
}

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

.orbit-grid-lines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0,212,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}

.scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(0,212,255,0.02) 50%);
  background-size: 100% 4px;
  animation: scanline 8s linear infinite;
  pointer-events: none;
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* Center Companion */
.hex-center {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px;
}

.center-aura {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, rgba(168,85,247,0.3), transparent 70%);
  animation: auraPulse 3s ease-in-out infinite;
}

.hex-center-active .center-aura {
  animation: auraActive 1s ease-in-out infinite;
  background: radial-gradient(circle, rgba(0,212,255,0.5), transparent 70%);
}

@keyframes auraPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

@keyframes auraActive {
  0%, 100% { opacity: 0.6; transform: scale(1.2); }
  50% { opacity: 1; transform: scale(1.4); }
}

.center-ring-outer {
  position: absolute;
  inset: -50px;
  border: 2px dashed rgba(168,85,247,0.3);
  border-radius: 50%;
  animation: ringRotate 20s linear infinite reverse;
}

.center-ring-inner {
  position: absolute;
  inset: -30px;
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 50%;
  animation: ringRotate 15s linear infinite;
}

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

.center-avatar {
  font-size: 5rem;
  filter: drop-shadow(0 0 20px rgba(168,85,247,0.5));
  animation: avatarFloat 3s ease-in-out infinite;
}

@keyframes avatarFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.center-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--comp-text);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.center-lvl {
  font-size: 0.7rem;
  color: var(--comp-cyan);
  background: rgba(0,212,255,0.1);
  padding: 3px 10px;
  border-radius: 10px;
  font-weight: 700;
}

.center-power {
  font-size: 0.65rem;
  color: var(--comp-purple);
  margin-top: 4px;
}

/* Hex Slots Ring */
.hex-slots-ring {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hex-slot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140px;
  height: 90px;
  margin-left: -70px;
  margin-top: -45px;
  transform: translate(var(--hx), var(--hy));
  pointer-events: auto !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 20;
}

.hex-slot * {
  pointer-events: none;
}

.hex-unequip {
  pointer-events: auto !important;
  z-index: 30;
}

.hex-bg {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.hex-slot.has-item.orb-legendary .hex-bg { border-color: rgba(251,191,36,0.4); background: rgba(251,191,36,0.08); box-shadow: 0 0 30px rgba(251,191,36,0.15); }
.hex-slot.has-item.orb-epic .hex-bg { border-color: rgba(168,85,247,0.4); background: rgba(168,85,247,0.08); box-shadow: 0 0 30px rgba(168,85,247,0.15); }
.hex-slot.has-item.orb-rare .hex-bg { border-color: rgba(59,130,246,0.4); background: rgba(59,130,246,0.08); box-shadow: 0 0 30px rgba(59,130,246,0.15); }

.hex-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px;
}

.hex-icon { font-size: 2rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.hex-text { display: flex; flex-direction: column; align-items: center; }
.hex-label { font-size: 0.6rem; color: var(--comp-text-muted); letter-spacing: 1px; }
.hex-item { font-size: 0.75rem; font-weight: 700; text-align: center; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hex-empty { font-size: 0.65rem; color: var(--comp-text-muted); opacity: 0.6; }

.hex-unequip {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: rgba(239,68,68,0.8);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s;
}

.hex-slot:hover .hex-unequip { opacity: 1; transform: scale(1); }
.hex-unequip:hover { transform: scale(1.2) rotate(90deg); background: #ef4444; }

.hex-ring {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: 18px;
  opacity: 0;
  transition: opacity 0.3s;
}

.hex-slot:hover .hex-ring { opacity: 1; }

.hex-drop-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,212,255,0.1);
  border: 2px solid var(--comp-cyan);
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}

/* Slot States */
.hex-ready .hex-bg { animation: slotPulse 1.5s ease-in-out infinite; border-color: rgba(168,85,247,0.4); }
@keyframes slotPulse { 0%, 100% { box-shadow: 0 0 20px rgba(168,85,247,0.1); } 50% { box-shadow: 0 0 40px rgba(168,85,247,0.3); } }

.hex-magnet { transform: translate(var(--hx), var(--hy)) scale(1.08); }
.hex-magnet .hex-bg { border-color: rgba(168,85,247,0.8); box-shadow: 0 0 50px rgba(168,85,247,0.4); }

.hex-target { transform: translate(var(--hx), var(--hy)) scale(1.12); }
.hex-target .hex-bg { border-color: var(--comp-cyan); background: rgba(0,212,255,0.15); box-shadow: 0 0 40px rgba(0,212,255,0.4); }
.hex-target .hex-drop-overlay { opacity: 1; }

.hex-snap { animation: hexSnap 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes hexSnap { 0% { transform: translate(var(--hx), var(--hy)) scale(1.12); } 50% { transform: translate(var(--hx), var(--hy)) scale(0.95); } 100% { transform: translate(var(--hx), var(--hy)) scale(1); } }

/* Stats Panel */
.hex-stats-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
}

.hsp-segment { display: flex; flex-direction: column; align-items: center; }
.hsp-num { font-size: 1.5rem; font-weight: 800; color: var(--comp-text); }
.hsp-lbl { font-size: 0.65rem; color: var(--comp-text-muted); text-transform: uppercase; letter-spacing: 1px; }
.hsp-divider { width: 1px; height: 35px; background: rgba(255,255,255,0.1); }
.hsp-bar { position: absolute; bottom: 0; left: 10%; width: 80%; height: 3px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.hsp-fill { height: 100%; background: linear-gradient(90deg, var(--comp-cyan), var(--comp-purple)); transition: width 0.5s; }

/* Inventory Section */
.hex-inventory-section {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 20px;
}

.his-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.his-icon { font-size: 1.4rem; }
.his-title { font-size: 0.85rem; font-weight: 800; letter-spacing: 2px; color: var(--comp-text); }
.his-sub { font-size: 0.65rem; color: var(--comp-text-muted); margin-left: auto; }

.his-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 12px;
  max-height: 240px;
  overflow-y: auto;
}

/* Inventory Cards */
.hex-inv-card {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.hex-inv-card.hex-selected {
  border-color: var(--comp-cyan);
  box-shadow: 0 0 30px rgba(0,212,255,0.4), inset 0 0 20px rgba(0,212,255,0.1);
  transform: scale(1.05);
}

.hex-inv-card.hex-selected::after {
  content: 'GEW\u00c4HLT';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.5rem;
  color: var(--comp-cyan);
  font-weight: 800;
  letter-spacing: 1px;
}

.hex-slot-highlight {
  animation: slotPulse 1s ease-in-out infinite;
}

.hex-slot-highlight .hex-bg {
  border-color: var(--comp-cyan) !important;
  box-shadow: 0 0 40px rgba(0,212,255,0.3) !important;
}

.hex-inv-card:hover { transform: translateY(-5px) scale(1.03); border-color: rgba(168,85,247,0.3); box-shadow: 0 15px 35px rgba(0,0,0,0.3); }
.hex-inv-card.hic-dragging { opacity: 0.3; transform: scale(0.9); }

.hic-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.hex-inv-card:hover .hic-shine { transform: translateX(100%); }

.hic-icon { font-size: 1.8rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.hic-name { font-size: 0.65rem; font-weight: 600; text-align: center; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hic-stack { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; background: linear-gradient(135deg, var(--comp-purple), var(--comp-cyan)); border-radius: 50%; font-size: 0.6rem; font-weight: 700; color: #000; display: grid; place-items: center; }

.hic-rarity-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; border-radius: 0 0 14px 14px; }
.hex-inv-card.orb-legendary .hic-rarity-bar { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.hex-inv-card.orb-epic .hic-rarity-bar { background: linear-gradient(90deg, #a855f7, #d946ef); }
.hex-inv-card.orb-rare .hic-rarity-bar { background: linear-gradient(90deg, #3b82f6, #60a5fa); }

.hex-no-items { grid-column: 1 / -1; text-align: center; padding: 40px; color: var(--comp-text-muted); }
.hex-no-items span { font-size: 3rem; display: block; margin-bottom: 12px; }

/* Drag Ghost */
.hex-ghost {
  position: fixed;
  left: 0;
  top: 0;
  width: 100px;
  height: 100px;
  pointer-events: none;
  z-index: 10000000;
  opacity: 0;
  transition: opacity 0.2s;
}

.hg-core {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,212,255,0.9), rgba(168,85,247,0.9));
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  box-shadow: 0 20px 50px rgba(0,212,255,0.4), 0 0 30px rgba(168,85,247,0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.hg-trail {
  position: absolute;
  inset: -10px;
  border-radius: 25px;
  opacity: 0.5;
  pointer-events: none;
}

.hg-label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  font-weight: 700;
  color: white;
  background: rgba(0,0,0,0.8);
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hex-fail { animation: ghostFail 0.35s ease-in-out; }
@keyframes ghostFail {
  0%, 100% { transform: translate(var(--tx,0), var(--ty,0)) rotate(0deg); }
  25% { transform: translate(var(--tx,0), var(--ty,0)) rotate(-10deg); }
  75% { transform: translate(var(--tx,0), var(--ty,0)) rotate(10deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .hex-orbit-container { height: 320px; }
  .center-avatar { font-size: 4rem; }
  .hex-slot { width: 120px; height: 80px; margin-left: -60px; margin-top: -40px; transform: translate(calc(var(--hx) * 0.8), calc(var(--hy) * 0.8)); }
  .his-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .hex-slot { transform: translate(calc(var(--hx) * 0.6), calc(var(--hy) * 0.6)); }
  .his-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================
   COMPANION V3 - COMPLETE REDESIGN
   Cyberpunk Glassmorphism UI
   ========================================== */

/* --- NEW CONTAINER --- */
.cx2-container {
  width: 100%;
  max-width: 1100px;
  max-height: 92vh;
  background: linear-gradient(170deg, rgba(12, 12, 22, 0.98) 0%, rgba(6, 6, 12, 0.99) 100%);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 28px;
  box-shadow: 
    0 60px 120px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 212, 255, 0.05),
    0 0 80px rgba(168, 85, 247, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Header */
.cx2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: linear-gradient(180deg, rgba(168,85,247,0.08) 0%, transparent 100%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cx2-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cx2-brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(168,85,247,0.3), rgba(0,212,255,0.2));
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  border: 1px solid rgba(168,85,247,0.4);
  box-shadow: 0 8px 25px rgba(168,85,247,0.25);
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { box-shadow: 0 8px 25px rgba(168,85,247,0.25); }
  50% { box-shadow: 0 8px 35px rgba(168,85,247,0.45); }
}

.cx2-brand-text {
  display: flex;
  flex-direction: column;
}

.cx2-title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: #fff;
  background: linear-gradient(90deg, #fff, var(--comp-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cx2-subtitle {
  font-size: 0.6rem;
  color: var(--comp-text-muted);
  letter-spacing: 4px;
  text-transform: uppercase;
}

.cx2-close {
  width: 40px;
  height: 40px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 12px;
  color: #ef4444;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
}

.cx2-close:hover {
  background: rgba(239,68,68,0.25);
  transform: rotate(90deg);
}

/* Tabs */
.cx2-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 28px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cx2-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: var(--comp-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.cx2-tab:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(168,85,247,0.3);
  color: #fff;
  transform: translateY(-2px);
}

.cx2-tab.active {
  background: linear-gradient(135deg, rgba(168,85,247,0.25), rgba(0,212,255,0.15));
  border-color: rgba(168,85,247,0.5);
  color: #fff;
  box-shadow: 0 4px 20px rgba(168,85,247,0.25);
}

.cx2-tab-badge {
  font-size: 0.65rem;
  color: var(--comp-cyan);
  background: rgba(0,212,255,0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.cx2-tab.active .cx2-tab-badge {
  background: var(--comp-cyan);
  color: #000;
}

/* Content */
.cx2-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  position: relative;
}

.cx2-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 300px;
  color: var(--comp-text-muted);
}

.cx2-loader-ring {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(168,85,247,0.2);
  border-top-color: var(--comp-purple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================
   NEW OVERVIEW UI
   ========================================== */

.cx2-overview {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
}

/* Companion Card */
.cx2-companion-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cx2-companion-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(168,85,247,0.15), transparent 60%);
  pointer-events: none;
}

.cx2-companion-avatar {
  font-size: 6rem;
  filter: drop-shadow(0 10px 30px rgba(168,85,247,0.4));
  margin-bottom: 12px;
  animation: avatarBounce 3s ease-in-out infinite;
}

@keyframes avatarBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.cx2-companion-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.cx2-companion-type {
  font-size: 0.75rem;
  color: var(--comp-purple);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.cx2-companion-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.cx2-stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,0.3);
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
}

.cx2-stat-pill-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--comp-cyan);
}

.cx2-stat-pill-label {
  font-size: 0.6rem;
  color: var(--comp-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Right Panel */
.cx2-overview-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cx2-progress-section {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 20px;
}

.cx2-section-title {
  font-size: 0.8rem;
  color: var(--comp-text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cx2-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.1), transparent);
}

.cx2-xp-bar {
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  height: 16px;
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,0.05);
}

.cx2-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--comp-purple), var(--comp-cyan));
  border-radius: 12px;
  transition: width 0.5s ease;
  box-shadow: 0 0 20px rgba(168,85,247,0.4);
}

.cx2-xp-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--comp-text-muted);
}

/* Mission Grid */
.cx2-mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cx2-mission-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  transition: all 0.3s;
}

.cx2-mission-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168,85,247,0.3);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.cx2-mission-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.cx2-mission-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.cx2-mission-status {
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-block;
}

.cx2-mission-status.idle {
  background: rgba(34,197,94,0.15);
  color: var(--comp-green);
}

.cx2-mission-status.active {
  background: rgba(251,191,36,0.15);
  color: #fbbf24;
}

/* Empty State */
.cx2-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--comp-text-muted);
}

.cx2-empty-state-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* Equipment Status */
.cx2-equip-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.cx2-equip-slot {
  background: rgba(0,0,0,0.2);
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  transition: all 0.3s;
}

.cx2-equip-slot.has-item {
  border-style: solid;
  border-color: rgba(168,85,247,0.3);
  background: rgba(168,85,247,0.05);
}

.cx2-equip-slot-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.cx2-equip-slot-name {
  font-size: 0.65rem;
  color: var(--comp-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cx2-equip-slot-item {
  font-size: 0.7rem;
  color: #fff;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: 900px) {
  .cx2-overview { grid-template-columns: 1fr; }
  .cx2-mission-grid { grid-template-columns: repeat(2, 1fr); }
  .cx2-tabs { flex-wrap: wrap; }
}

@media (max-width: 500px) {
  .cx2-mission-grid { grid-template-columns: 1fr; }
  .cx2-equip-preview { grid-template-columns: repeat(2, 1fr); }
}
