:root {
  --bg-primary: #070a13;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(22, 33, 62, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.16);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --purple-glow: rgba(168, 85, 247, 0.35);
  --purple-border: rgba(168, 85, 247, 0.4);
  --gold-glow: rgba(245, 158, 11, 0.35);
  --gold-border: rgba(245, 158, 11, 0.4);
  --cyan-accent: #06b6d4;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* BACKGROUND GLOW ORBS */
.background-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  will-change: transform;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  top: -120px;
  left: -80px;
}

.orb-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #d97706 0%, transparent 70%);
  bottom: -150px;
  right: -100px;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #0284c7 0%, transparent 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.25;
}

/* MAIN CONTAINER */
.hub-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 48px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* NAVBAR / HEADER */
.hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 40px;
}

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

.brand-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(245, 158, 11, 0.2));
  border: 1px solid var(--border-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.brand-titles h1 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #f8fafc 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 700;
}

/* USER PILL */
.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px 6px 8px;
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.user-avatar-pill {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-info-pill {
  display: flex;
  flex-direction: column;
}

.user-name-pill {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-kakera-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: #38bdf8;
  font-weight: 600;
}

.btn-switch-player {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  margin-left: 4px;
}

.btn-switch-player:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* HERO SECTION */
.hero-section {
  text-align: center;
  margin-bottom: 48px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c084fc;
  margin-bottom: 18px;
}

.hero-tag-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 10px #a855f7;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.text-gradient-hero {
  background: linear-gradient(135deg, #f8fafc 20%, #e2e8f0 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 50%, #7e22ce 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.55;
}

/* CARDS GRID */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}

.dest-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-decoration: none;
  color: inherit;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.dest-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card-shop::before {
  background: radial-gradient(800px circle at top center, rgba(168, 85, 247, 0.15), transparent 70%);
}

.card-casino::before {
  background: radial-gradient(800px circle at top center, rgba(245, 158, 11, 0.15), transparent 70%);
}

.dest-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-highlight);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}

.card-shop:hover {
  border-color: var(--purple-border);
  box-shadow: 0 24px 50px rgba(168, 85, 247, 0.18), 0 0 30px rgba(168, 85, 247, 0.12);
}

.card-casino:hover {
  border-color: var(--gold-border);
  box-shadow: 0 24px 50px rgba(245, 158, 11, 0.18), 0 0 30px rgba(245, 158, 11, 0.12);
}

.dest-card:hover::before {
  opacity: 1;
}

/* CARD HEADER / BADGE */
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 9999px;
}

.badge-shop {
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-casino {
  background: rgba(245, 158, 11, 0.15);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.card-icon-container {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: transform 0.35s ease;
}

.dest-card:hover .card-icon-container {
  transform: scale(1.08) rotate(-2deg);
}

.icon-shop {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.2);
}

.icon-casino {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.15));
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2);
}

/* CARD CONTENT */
.card-body {
  flex: 1;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* FEATURE PILLS */
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.feat-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  color: #cbd5e1;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* CARD ACTIONS */
.card-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 16px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.cta-shop {
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-shop:hover {
  background: linear-gradient(135deg, #a855f7, #9333ea);
  box-shadow: 0 10px 28px rgba(168, 85, 247, 0.4);
}

.cta-casino {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.cta-casino:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.4);
}

.card-admin {
  border-color: rgba(59, 130, 246, 0.25);
}

.card-admin:hover {
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.35);
}

.badge-admin {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.icon-admin {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.cta-admin {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-admin:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.4);
}

/* FOOTER */
.hub-footer {
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.server-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #34d399;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.simulator-link {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.simulator-link:hover {
  color: #e2e8f0;
}

/* MODAL SELECCION DE JUGADOR */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #0f172a;
  border: 1px solid var(--border-highlight);
  border-radius: 24px;
  max-width: 480px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.btn-close-modal:hover {
  color: #fff;
}

.players-list {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.player-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.player-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-highlight);
  transform: translateX(4px);
}

.player-item.current {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.12);
}

.p-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.p-item-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.p-item-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.p-item-phone {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.p-item-kakera {
  font-weight: 700;
  font-size: 0.88rem;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .hub-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 28px;
  }
  
  .brand-badge-group {
    justify-content: center;
  }

  .user-pill {
    justify-content: space-between;
    width: 100%;
  }

  .dest-card {
    padding: 28px 22px 24px;
  }

  .card-title {
    font-size: 1.5rem;
  }

  .hub-footer {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }

  .footer-left, .footer-right {
    justify-content: center;
    width: 100%;
  }
}
