@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Rajdhani:wght@400;500;600;700&family=Fredoka:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

/* ============================================================
   ORACLERIFT — UNIFIED CSS DESIGN SYSTEM
   Cobblemon Minecraft Server — Premium Pokemon Aesthetic
   ============================================================ */

:root {
  /* Core backgrounds */
  --bg-darker:     #0d1117;
  --bg-dark:       #161b22;
  --bg-card:       #21262d;
  --or-dark-bg:    #0d1117;
  --or-card-bg:    rgba(20, 20, 28, 0.88);

  /* Text */
  --text-main:     #E8E8F0;
  --text-muted:    #8888AA;

  /* OracleRift accent palette */
  --or-purple:        #a371f7;
  --or-purple-dark:   #7c3aed;
  --or-purple-glow:   rgba(163, 113, 247, 0.4);
  --accent-purple:    #a371f7;
  --or-crimson:       #EE1515;
  --accent-red:       #EE1515;
  --accent-blue:      #316BB3;
  --accent-cyan:      #39c5cf;
  --or-cyan:          #39c5cf;
  --neon-green:       #00ff66;

  /* Pokémon colours */
  --poke-red:     #EE1515;
  --poke-blue:    #316BB3;
  --poke-yellow:  #FFCA10;
  --poke-gold:    #D4AF37;
  --poke-diamond: #b9f2ff;

  /* Glassmorphism */
  --glass-bg:           rgba(13, 17, 23, 0.7);
  --glass-border:       rgba(255, 255, 255, 0.08);
  --or-glass-border:    rgba(255, 255, 255, 0.08);
  --glass-blur:         16px;

  /* Utilities */
  --radius-lg:          16px;
  --radius-md:          12px;
  --radius-sm:          8px;
  --shadow-premium:     0 12px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow-purple: 0 0 20px rgba(163, 113, 247, 0.3);
  --transition-smooth:  all 0.25s ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-darker);
  color: var(--text-main);
  font-family: 'Rajdhani', 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Subtle pixel-grid overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('data:image/svg+xml;utf8,<svg width="4" height="4" xmlns="http://www.w3.org/2000/svg"><rect width="2" height="2" fill="rgba(0,0,0,0.06)"/><rect x="2" y="2" width="2" height="2" fill="rgba(0,0,0,0.06)"/></svg>');
  pointer-events: none;
  z-index: 0;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, .brand-font, .title-font {
  font-family: 'Orbitron', 'Fredoka', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
}

.pixel-font {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.7rem;
}

/* ── Glassmorphism Panel ─────────────────────────────────────── */
.glass-panel {
  background: var(--or-card-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--or-glass-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-premium);
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav-container {
  background: rgba(8, 8, 14, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(163, 113, 247, 0.15);
  padding: 0 5%;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  color: rgba(232, 232, 240, 0.7);
  text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  padding: 4px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--or-purple);
  transition: width 0.25s ease;
}

.nav-link:hover, .nav-link.active { color: white; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.header-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-logo .brand-font {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  font-family: 'Orbitron', sans-serif;
}

.header-logo .brand-font span { color: var(--or-purple); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-legacy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.85rem 2rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  background: var(--poke-red);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 0 rgba(0,0,0,0.4), inset 0 1px 4px rgba(255,255,255,0.15);
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}

.btn-legacy::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.btn-legacy:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow: 0 6px 0 rgba(0,0,0,0.4), 0 8px 20px rgba(0,0,0,0.3);
}

.btn-legacy:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0,0,0,0.4);
}

.btn-legacy.blue   { background: var(--poke-blue); }
.btn-legacy.yellow { background: var(--poke-yellow); color: #111; text-shadow: none; }
.btn-legacy.purple { background: var(--or-purple); }
.btn-legacy.green  { background: #27ae60; }

/* Premium 3D Button */
.btn-premium {
  position: relative;
  padding: 1rem 2.5rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  background: linear-gradient(180deg, var(--or-crimson) 0%, #c0392b 100%);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 6px 0 #922b21, 0 8px 20px rgba(0,0,0,0.4);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.btn-premium:hover  { transform: translateY(-2px); box-shadow: 0 8px 0 #922b21, 0 12px 25px rgba(238,21,21,0.3); }
.btn-premium:active { transform: translateY(4px);  box-shadow: 0 2px 0 #922b21; }

.btn-premium.purple {
  background: linear-gradient(180deg, var(--or-purple) 0%, var(--or-purple-dark) 100%);
  box-shadow: 0 6px 0 #5e35b1, 0 8px 20px rgba(163,113,247,0.3);
}

/* ── Status indicators ──────────────────────────────────────── */
.btn-status {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.15);
}

.status-dot {
  width: 9px; height: 9px;
  background-color: var(--neon-green);
  border-radius: 50%;
  animation: blink 1.5s infinite alternate;
  box-shadow: 0 0 8px var(--neon-green);
}

@keyframes blink {
  0%   { opacity: 0.4; transform: scale(0.9); }
  100% { opacity: 1;   transform: scale(1.1); }
}

/* ── Section grid ───────────────────────────────────────────── */
.sections-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.col-8 { grid-column: span 8; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
}

.section-icon {
  width: 32px; height: 32px;
  background: var(--or-purple);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ── Card ───────────────────────────────────────────────────── */
.or-card {
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  border-radius: var(--radius-md);
}

.or-card:hover {
  transform: translateY(-4px);
  border-color: var(--or-purple);
  box-shadow: var(--shadow-glow-purple);
}

/* ── Hero / Layout ──────────────────────────────────────────── */
.hero-wrapper {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content { z-index: 5; max-width: 800px; padding: 2rem; }

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1.5rem;
  text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
  font-family: 'Rajdhani', sans-serif;
  text-transform: none;
  letter-spacing: 0;
}

.stats-bar {
  display: flex;
  gap: 40px;
  padding: 14px 40px;
  background: rgba(0,0,0,0.55);
  border-radius: 100px;
  border: 1px solid var(--or-glass-border);
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-item { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.stat-value { font-weight: 700; color: var(--or-purple); }

/* ── Video card ─────────────────────────────────────────────── */
.video-card { aspect-ratio: 16/9; width: 100%; border-radius: var(--radius-md); overflow: hidden; }
.video-card iframe { width: 100%; height: 100%; border: none; }

/* ── Background decorations ─────────────────────────────────── */
.bg-vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 30%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ── Main container ─────────────────────────────────────────── */
.main-container {
  position: relative;
  z-index: 2;
  padding: 3rem 6%;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── Pokedex inputs ─────────────────────────────────────────── */
.pokedex-input {
  width: 100%;
  padding: 0.9rem 1rem;
  background: rgba(0,0,0,0.35);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: white;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  transition: var(--transition-smooth);
}

.pokedex-input:focus {
  outline: none;
  border-color: var(--or-purple);
  box-shadow: 0 0 0 3px var(--or-purple-glow);
  background: rgba(0,0,0,0.5);
}

.pokedex-input::placeholder { color: var(--text-muted); }

/* ── Data Modules (Store Cards) ─────────────────────────────── */
.data-module {
  position: relative;
  background: #191922;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid #2a2a3a;
  transition: transform 0.3s, box-shadow 0.3s;
}

.data-module:hover { transform: translateY(-8px); }

.data-module.gold    { border-color: var(--poke-gold);    box-shadow: 0 8px 25px rgba(212,175,55,0.2); }
.data-module.diamond { border-color: var(--poke-diamond); box-shadow: 0 8px 25px rgba(185,242,255,0.2); }
.data-module.emerald { border-color: #50C878;             box-shadow: 0 8px 25px rgba(80,200,120,0.2); }
.data-module.red     { border-color: var(--poke-red);     box-shadow: 0 8px 25px rgba(238,21,21,0.2); }

.module-bg {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center right;
  background-repeat: no-repeat;
  opacity: 0.18;
  z-index: 0;
  transition: opacity 0.3s;
}

.data-module:hover .module-bg { opacity: 0.32; }

.module-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.module-title { font-size: 2rem; margin-bottom: 0.4rem; }

.gold    .module-title { color: var(--poke-gold); }
.diamond .module-title { color: var(--poke-diamond); }
.emerald .module-title { color: #50C878; }
.red     .module-title { color: var(--poke-red); }

/* ── Toast notification ─────────────────────────────────────── */
#copyToast, .toast-msg {
  visibility: hidden;
  min-width: 260px;
  background: linear-gradient(135deg, var(--or-purple-dark), var(--or-purple));
  color: #fff;
  text-align: left;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  position: fixed;
  z-index: 9999;
  right: 2rem;
  bottom: 2rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(163,113,247,0.3);
  border-left: 4px solid rgba(255,255,255,0.5);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#copyToast.show, .toast-msg.show {
  visibility: visible;
  transform: translateX(0);
}

.toast-msg.error   { background: linear-gradient(135deg, #922b21, var(--poke-red)); }
.toast-msg.success { background: linear-gradient(135deg, #1a5c2e, #27ae60); border-left-color: #a8ff78; }

/* ── Confirm modal overlay ──────────────────────────────────── */
.confirm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(6px);
  z-index: 8000;
  align-items: center;
  justify-content: center;
}

.confirm-overlay.active { display: flex; }

.confirm-box {
  background: #15151f;
  border: 1px solid rgba(163,113,247,0.3);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 460px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 40px rgba(163,113,247,0.1);
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ── Progress bar ───────────────────────────────────────────── */
.progress-bar-wrap {
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  overflow: hidden;
  height: 8px;
  width: 100%;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--or-purple), var(--accent-cyan));
  transition: width 0.8s ease;
  position: relative;
  overflow: hidden;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ── Achievement badge ──────────────────────────────────────── */
.achievement-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  transition: var(--transition-smooth);
}

.achievement-badge.unlocked {
  border-color: rgba(163,113,247,0.3);
  background: rgba(163,113,247,0.07);
}

.achievement-badge.unlocked:hover {
  border-color: rgba(163,113,247,0.6);
  background: rgba(163,113,247,0.12);
  transform: translateX(4px);
}

.achievement-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
}

.achievement-badge.unlocked .achievement-icon {
  background: linear-gradient(135deg, rgba(163,113,247,0.3), rgba(57,197,207,0.3));
}

.achievement-badge.locked { opacity: 0.4; filter: grayscale(0.8); }

/* ── Trainer stat card ──────────────────────────────────────── */
.stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  border-color: rgba(163,113,247,0.4);
  background: rgba(163,113,247,0.06);
  transform: translateY(-2px);
}

.stat-card .stat-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  font-family: 'Rajdhani', sans-serif;
}

.stat-card .stat-icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
  display: block;
}

/* ── Store tabs ─────────────────────────────────────────────── */
.store-tabs {
  display: flex;
  gap: 4px;
  background: rgba(0,0,0,0.3);
  padding: 5px;
  border-radius: var(--radius-md);
  border: 1px solid var(--or-glass-border);
  flex-wrap: wrap;
}

.store-tab-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.store-tab-btn:hover { color: white; background: rgba(255,255,255,0.05); }

.store-tab-btn.active {
  background: var(--or-purple);
  color: white;
  box-shadow: 0 4px 15px rgba(163,113,247,0.4);
}

.store-tab-panel { display: none; }
.store-tab-panel.active { display: grid; }

/* ── Auth split layout ──────────────────────────────────────── */
.auth-split-layout {
  display: flex;
  min-height: 100vh;
}

.auth-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
  background: linear-gradient(160deg, #08080f 0%, #110e1f 55%, #0b0b18 100%);
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(163,113,247,0.12);
}

.auth-left::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(163,113,247,0.1) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.auth-right {
  width: 500px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 3.5rem;
  background: #0a0a14;
  overflow-y: auto;
}

/* Animated Pokeball CSS */
.pokeball-anim {
  width: 140px; height: 140px;
  border-radius: 50%;
  border: 7px solid #555;
  position: relative;
  animation: pokespin 10s linear infinite;
  margin-bottom: 2.5rem;
  box-shadow: 0 0 50px rgba(163,113,247,0.2), 0 0 100px rgba(163,113,247,0.05);
  flex-shrink: 0;
}

.pokeball-anim::before {
  content: '';
  position: absolute;
  top: -7px; left: -7px; right: -7px;
  height: calc(50% + 7px);
  background: var(--poke-red);
  border-radius: 140px 140px 0 0;
}

.pokeball-anim::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 30px; height: 30px;
  background: #ddd;
  border-radius: 50%;
  border: 5px solid #888;
  z-index: 2;
}

.pokeball-divider {
  position: absolute;
  top: 50%; left: -7px;
  width: calc(100% + 14px);
  height: 7px;
  background: #555;
  transform: translateY(-50%);
  z-index: 1;
}

@keyframes pokespin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.auth-feature-list {
  list-style: none;
  width: 100%;
  max-width: 360px;
}

.auth-feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  color: rgba(232,232,240,0.8);
}

.auth-feature-list li:last-child { border-bottom: none; }

.auth-feature-icon {
  width: 36px; height: 36px;
  background: rgba(163,113,247,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 1px solid rgba(163,113,247,0.2);
}

/* Input group with icon */
.input-group {
  position: relative;
  margin-bottom: 1.25rem;
}

.input-group-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
  color: var(--text-muted);
}

.input-group .pokedex-input {
  padding-left: 2.8rem;
  margin-bottom: 0;
}

.input-eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  transition: color 0.2s;
}

.input-eye-btn:hover { color: white; }

/* Inline error message */
.auth-error {
  display: none;
  background: rgba(238,21,21,0.1);
  border: 1px solid rgba(238,21,21,0.4);
  border-radius: var(--radius-sm);
  color: #ff7070;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
}

.auth-error.show { display: flex; align-items: center; gap: 8px; }

/* Skin preview thumbnail */
.skin-preview-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.5rem;
}

.skin-preview {
  width: 56px; height: 56px;
  border-radius: 8px;
  border: 2px solid rgba(163,113,247,0.3);
  background: rgba(0,0,0,0.4);
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.3s;
}

.skin-preview img { width: 100%; height: 100%; object-fit: contain; }

/* ── Event cards ─────────────────────────────────────────────── */
.event-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.event-card:hover {
  border-color: rgba(163,113,247,0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-purple);
}

.event-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Orbitron', sans-serif;
}

.event-type-badge.legendary  { background: rgba(212,175,55,0.2);  color: var(--poke-gold);    border: 1px solid rgba(212,175,55,0.4); }
.event-type-badge.tournament { background: rgba(238,21,21,0.2);   color: var(--poke-red);     border: 1px solid rgba(238,21,21,0.4); }
.event-type-badge.shiny      { background: rgba(57,197,207,0.2);  color: var(--accent-cyan);  border: 1px solid rgba(57,197,207,0.4); }
.event-type-badge.community  { background: rgba(39,174,96,0.2);   color: #2ecc71;             border: 1px solid rgba(39,174,96,0.4); }

.event-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: 'Rajdhani', sans-serif;
  text-transform: uppercase;
}

.event-status-badge.active   { background: rgba(0,255,102,0.15);   color: var(--neon-green);  border: 1px solid rgba(0,255,102,0.3); }
.event-status-badge.upcoming { background: rgba(163,113,247,0.15); color: var(--or-purple);   border: 1px solid rgba(163,113,247,0.3); }

/* Countdown timer */
.countdown {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.countdown-block {
  text-align: center;
  min-width: 52px;
  background: rgba(0,0,0,0.3);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.07);
}

.countdown-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.countdown-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.countdown-sep {
  font-size: 1.4rem;
  color: var(--or-purple);
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 16px;
}

/* ── Rank badge ─────────────────────────────────────────────── */
.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 14px;
  border-radius: 100px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rank-badge.jugador  { background: rgba(136,136,170,0.2); color: var(--text-muted);   border: 1px solid rgba(136,136,170,0.3); }
.rank-badge.lider    { background: rgba(212,175,55,0.2);  color: var(--poke-gold);    border: 1px solid rgba(212,175,55,0.4); }
.rank-badge.maestro  { background: rgba(185,242,255,0.2); color: var(--poke-diamond); border: 1px solid rgba(185,242,255,0.4); }
.rank-badge.campeon  { background: rgba(163,113,247,0.2); color: var(--or-purple);    border: 1px solid rgba(163,113,247,0.4); }
.rank-badge.premium  { background: rgba(57,197,207,0.2);  color: var(--accent-cyan);  border: 1px solid rgba(57,197,207,0.3); }

/* ── Popular tag (store) ────────────────────────────────────── */
.popular-tag {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--poke-red);
  color: white;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(238,21,21,0.4);
  animation: pulse-pop 2s ease-in-out infinite;
  z-index: 10;
}

@keyframes pulse-pop {
  0%, 100% { box-shadow: 0 4px 12px rgba(238,21,21,0.4); }
  50%       { box-shadow: 0 4px 22px rgba(238,21,21,0.7); }
}

/* ── Map layout ─────────────────────────────────────────────── */
.map-layout {
  display: flex;
  gap: 0;
  height: calc(100vh - 64px);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.map-iframe-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.map-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.map-iframe-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  background: rgba(0,0,0,0.4);
  text-align: center;
  padding: 2rem;
}

.map-sidebar {
  width: 340px;
  flex-shrink: 0;
  background: rgba(6, 6, 12, 0.98);
  border-left: 1px solid rgba(163,113,247,0.15);
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.map-sidebar::-webkit-scrollbar { width: 4px; }
.map-sidebar::-webkit-scrollbar-track { background: transparent; }
.map-sidebar::-webkit-scrollbar-thumb { background: rgba(163,113,247,0.3); border-radius: 4px; }

/* ── Scrollbar global ───────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0a0a14; }
::-webkit-scrollbar-thumb { background: rgba(163,113,247,0.3); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(163,113,247,0.55); }

/* ── Loading spinner ────────────────────────────────────────── */
.btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: pokespin 0.7s linear infinite;
  display: none;
  flex-shrink: 0;
}

.btn-spinner.active { display: inline-block; }

/* ── Party slot card ────────────────────────────────────────── */
.party-slot {
  background: rgba(255,255,255,0.03);
  border: 2px dashed rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.party-slot.filled {
  border-style: solid;
  border-color: rgba(163,113,247,0.3);
  background: rgba(163,113,247,0.05);
}

.party-slot.filled:hover {
  border-color: rgba(163,113,247,0.6);
  background: rgba(163,113,247,0.1);
  transform: translateY(-2px);
}

.party-slot img {
  width: 72px; height: 72px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 8px rgba(163,113,247,0.3));
}

.party-slot .slot-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.party-slot .slot-level {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  color: var(--or-purple);
}

.shiny-star {
  position: absolute;
  top: 6px; right: 8px;
  font-size: 0.7rem;
}

/* Pokeball empty placeholder */
.pokeball-empty {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 4px solid #333;
  position: relative;
  opacity: 0.4;
}

.pokeball-empty::before {
  content: '';
  position: absolute;
  top: -4px; left: -4px; right: -4px;
  height: calc(50% + 4px);
  background: #555;
  border-radius: 48px 48px 0 0;
}

.pokeball-empty::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  background: #222;
  border-radius: 50%;
  border: 3px solid #444;
  z-index: 2;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .auth-right { width: 440px; padding: 3rem 2.5rem; }
}

@media (max-width: 900px) {
  .auth-split-layout { flex-direction: column; }
  .auth-left   { display: none; }
  .auth-right  { width: 100%; min-height: 100vh; }
  .map-layout  { flex-direction: column; }
  .map-sidebar { width: 100%; height: 280px; border-left: none; border-top: 1px solid rgba(163,113,247,0.15); }
  .main-container { padding: 2rem 4%; }
}

@media (max-width: 600px) {
  .nav-links { gap: 0.75rem; }
  .nav-link  { font-size: 0.78rem; }
  .store-tabs { justify-content: center; }
}
