/* ==========================================================================
   QUANTUMPE — AUTHENTIC MINECRAFT BEDROCK PORTAL STYLESHEET
   High-end Minecraft Theme: Deepslate stone framing, tactile 3D buttons,
   in-game inventory slot styling, and authentic server list aesthetics.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Press+Start+2P&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  /* Deepslate & Stone Backdrops */
  --bg-deepslate: #070a10;
  --bg-deepslate-dark: #05070c;
  --bg-stone: #0f1624;
  --bg-stone-surface: #141d2e;
  --bg-card: rgba(15, 23, 38, 0.92);
  --bg-card-hover: rgba(22, 34, 56, 0.96);
  --bg-slot: #10141e;

  /* Minecraft Mineral Palette */
  --mc-diamond: #38bdf8;
  --mc-diamond-glow: rgba(56, 189, 248, 0.35);
  --mc-diamond-dark: #0369a1;
  
  --mc-amethyst: #c084fc;
  --mc-amethyst-glow: rgba(192, 132, 252, 0.35);
  --mc-amethyst-dark: #6b21a8;

  --mc-gold: #fbbf24;
  --mc-gold-dark: #b45309;
  --mc-emerald: #34d399;
  --mc-emerald-dark: #059669;
  --mc-redstone: #f87171;
  --mc-redstone-dark: #b91c1c;
  --mc-lapis: #60a5fa;

  /* Backwards-compatibility variables */
  --cyan-primary: var(--mc-diamond);
  --cyan-glow: var(--mc-diamond-glow);
  --cyan-subtle: rgba(56, 189, 248, 0.12);
  --purple-primary: var(--mc-amethyst);
  --purple-glow: var(--mc-amethyst-glow);
  --amber-gold: var(--mc-gold);
  --emerald-green: var(--mc-emerald);
  --rose-red: var(--mc-redstone);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-cyan: rgba(56, 189, 248, 0.28);
  --border-stone: #25334a;
  --border-subtle: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: var(--font-main);
  --font-pixel: 'Press Start 2P', monospace;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg-deepslate);
  color: var(--text-main);
  font-family: var(--font-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  /* Deepslate textured dark atmosphere */
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(56, 189, 248, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 60%, rgba(192, 132, 252, 0.05) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
}

canvas#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

.app-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   MINECRAFT CHAT COLOR UTILITY CLASSES
   ========================================================================== */
.mc-black { color: #000000; text-shadow: 1px 1px 0 #333333; }
.mc-dark-blue { color: #0000aa; text-shadow: 1px 1px 0 #00002a; }
.mc-dark-green { color: #00aa00; text-shadow: 1px 1px 0 #002a00; }
.mc-dark-aqua { color: #00aaaa; text-shadow: 1px 1px 0 #002a2a; }
.mc-dark-red { color: #aa0000; text-shadow: 1px 1px 0 #2a0000; }
.mc-dark-purple { color: #aa00aa; text-shadow: 1px 1px 0 #2a002a; }
.mc-gold { color: #ffaa00; text-shadow: 1px 1px 0 #3f2a00; }
.mc-gray { color: #aaaaaa; text-shadow: 1px 1px 0 #2a2a2a; }
.mc-dark-gray { color: #555555; text-shadow: 1px 1px 0 #151515; }
.mc-blue { color: #5555ff; text-shadow: 1px 1px 0 #15153f; }
.mc-green { color: #55ff55; text-shadow: 1px 1px 0 #153f15; }
.mc-aqua { color: #55ffff; text-shadow: 1px 1px 0 #153f3f; }
.mc-red { color: #ff5555; text-shadow: 1px 1px 0 #3f1515; }
.mc-light-purple { color: #ff55ff; text-shadow: 1px 1px 0 #3f153f; }
.mc-yellow { color: #ffff55; text-shadow: 1px 1px 0 #3f3f15; }
.mc-white { color: #ffffff; text-shadow: 1px 1px 0 #3f3f3f; }
.mc-bold { font-weight: 800; }
.mc-pixel { font-family: var(--font-pixel); }

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header.quantum-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 20, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--border-stone);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.15s ease;
}

.nav-brand:hover {
  transform: scale(1.02);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: #141d2e;
  border-top: 2px solid #3b4e6d;
  border-left: 2px solid #3b4e6d;
  border-right: 2px solid #090d15;
  border-bottom: 3px solid #090d15;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5), 0 0 15px var(--mc-diamond-glow);
  font-family: var(--font-pixel);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--mc-diamond);
}

.brand-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.brand-title .cyan {
  color: var(--mc-diamond);
  text-shadow: 0 0 12px var(--mc-diamond-glow);
}

.brand-title .purple {
  color: var(--mc-amethyst);
  text-shadow: 0 0 12px var(--mc-amethyst-glow);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.15s ease;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  border: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.nav-links a.active {
  color: var(--mc-diamond);
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   MINECRAFT 3D TACTILE BUTTONS
   ========================================================================== */
.btn-quantum, .btn-mc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border-radius: 6px;
  position: relative;
  user-select: none;
  transition: all 0.12s ease-in-out;
  
  /* Authentic 3D Bevel with physical depth */
  background: #192338;
  color: var(--mc-diamond);
  border-top: 2px solid #3c527a;
  border-left: 2px solid #3c527a;
  border-right: 3px solid #0a0f1a;
  border-bottom: 4px solid #0a0f1a;
  box-shadow: 0 4px 0 #05080e, 0 8px 18px rgba(0, 0, 0, 0.45);
}

.btn-quantum:hover, .btn-mc:hover {
  background: #22304c;
  color: #ffffff;
  border-top-color: #5573aa;
  border-left-color: #5573aa;
  box-shadow: 0 4px 0 #05080e, 0 0 20px var(--mc-diamond-glow);
  transform: translateY(-1px);
}

.btn-quantum:active, .btn-mc:active {
  transform: translateY(3px);
  border-top-width: 3px;
  border-top-color: #0a0f1a;
  border-bottom-width: 1px;
  box-shadow: 0 1px 0 #05080e;
}

/* Diamond Action Button */
.btn-quantum.diamond, .btn-mc-diamond {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-top: 2px solid #38bdf8;
  border-left: 2px solid #38bdf8;
  border-right: 3px solid #082f49;
  border-bottom: 4px solid #082f49;
  box-shadow: 0 4px 0 #041c2c, 0 6px 20px rgba(2, 132, 199, 0.4);
  text-shadow: 1px 1px 0 #082f49;
}

.btn-quantum.diamond:hover, .btn-mc-diamond:hover {
  background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
  box-shadow: 0 4px 0 #041c2c, 0 0 25px rgba(56, 189, 248, 0.6);
}

.btn-quantum.diamond:active, .btn-mc-diamond:active {
  transform: translateY(3px);
  border-top-width: 3px;
  border-top-color: #082f49;
  border-bottom-width: 1px;
  box-shadow: 0 1px 0 #041c2c;
}

/* Amethyst / Purple Action Button */
.btn-quantum.purple, .btn-mc-purple {
  background: linear-gradient(180deg, #7e22ce 0%, #6b21a8 100%);
  color: #ffffff;
  border-top: 2px solid #c084fc;
  border-left: 2px solid #c084fc;
  border-right: 3px solid #3b0764;
  border-bottom: 4px solid #3b0764;
  box-shadow: 0 4px 0 #240340, 0 6px 20px rgba(126, 34, 206, 0.4);
  text-shadow: 1px 1px 0 #3b0764;
}

.btn-quantum.purple:hover, .btn-mc-purple:hover {
  background: linear-gradient(180deg, #9333ea 0%, #7e22ce 100%);
  box-shadow: 0 4px 0 #240340, 0 0 25px rgba(192, 132, 252, 0.6);
}

.btn-quantum.purple:active, .btn-mc-purple:active {
  transform: translateY(3px);
  border-top-width: 3px;
  border-top-color: #3b0764;
  border-bottom-width: 1px;
  box-shadow: 0 1px 0 #240340;
}

/* Gold / Rewards Action Button */
.btn-quantum.gold, .btn-mc-gold {
  background: linear-gradient(180deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  border-top: 2px solid #fbbf24;
  border-left: 2px solid #fbbf24;
  border-right: 3px solid #78350f;
  border-bottom: 4px solid #78350f;
  box-shadow: 0 4px 0 #451a03, 0 6px 20px rgba(217, 119, 6, 0.4);
  text-shadow: 1px 1px 0 #78350f;
}

.btn-quantum.gold:hover, .btn-mc-gold:hover {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 0 #451a03, 0 0 25px rgba(251, 191, 36, 0.6);
}

.btn-quantum.gold:active, .btn-mc-gold:active {
  transform: translateY(3px);
  border-top-width: 3px;
  border-top-color: #78350f;
  border-bottom-width: 1px;
  box-shadow: 0 1px 0 #451a03;
}

/* Ghost / Secondary Button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 2px solid #080c14;
  border-bottom: 2px solid #080c14;
  background: rgba(18, 26, 42, 0.7);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-ghost:hover {
  color: var(--text-main);
  background: rgba(28, 39, 62, 0.9);
  border-top-color: rgba(255, 255, 255, 0.25);
  border-left-color: rgba(255, 255, 255, 0.25);
}

.btn-ghost:active {
  transform: translateY(2px);
}

/* ==========================================================================
   MINECRAFT INVENTORY SLOT FRAMES
   ========================================================================== */
.mc-slot {
  width: 52px;
  height: 52px;
  background-color: var(--bg-slot);
  border-top: 2px solid #07090f;
  border-left: 2px solid #07090f;
  border-right: 2px solid #28364e;
  border-bottom: 2px solid #28364e;
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.mc-slot img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.6));
}

.mc-slot:hover {
  background-color: #161b28;
}

.mc-slot.large {
  width: 64px;
  height: 64px;
}

.mc-slot.large img {
  width: 44px;
  height: 44px;
}

/* ==========================================================================
   AUTHENTIC MINECRAFT SERVER LIST CARD (HERO SECTION)
   ========================================================================== */
.mc-server-card {
  max-width: 840px;
  margin: 2.2rem auto 2.5rem;
  background: #0f1626;
  border-top: 2px solid #2e3d57;
  border-left: 2px solid #2e3d57;
  border-right: 3px solid #080c14;
  border-bottom: 4px solid #080c14;
  border-radius: 8px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: left;
  position: relative;
}

.mc-server-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.mc-server-icon-frame {
  width: 64px;
  height: 64px;
  background: #090c14;
  border-top: 2px solid #05070c;
  border-left: 2px solid #05070c;
  border-right: 2px solid #25334a;
  border-bottom: 2px solid #25334a;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.mc-server-icon-frame img {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.mc-server-meta {
  flex: 1;
  min-width: 0;
}

.mc-server-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.mc-server-title {
  font-family: var(--font-pixel);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mc-ping-wrapper {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-pixel);
  font-size: 0.68rem;
  color: #34d399;
}

/* 5-Bar Minecraft Latency Meter */
.mc-ping-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}

.mc-ping-bars span {
  width: 3px;
  background-color: #34d399;
  border-radius: 1px;
}
.mc-ping-bars span:nth-child(1) { height: 4px; }
.mc-ping-bars span:nth-child(2) { height: 7px; }
.mc-ping-bars span:nth-child(3) { height: 10px; }
.mc-ping-bars span:nth-child(4) { height: 13px; }
.mc-ping-bars span:nth-child(5) { height: 16px; }

/* 2-line Minecraft MOTD with Auto-Scroll Animation */
.mc-motd {
  background: #090d16;
  border: 1px solid #1a2336;
  border-radius: 4px;
  padding: 0.65rem 0.95rem;
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  line-height: 1.85;
  letter-spacing: 0.5px;
  margin: 0.75rem 0 1rem;
  box-shadow: inset 1px 1px 4px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  position: relative;
}

.mc-motd-line {
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  position: relative;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.85);
}

.mc-motd-track {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  padding-right: 1.5rem;
  will-change: transform;
  transform: translateX(0);
}

.mc-motd-track.is-animated {
  animation: motdPingPong var(--motd-duration, 8.5s) ease-in-out infinite;
}

.mc-motd:hover .mc-motd-track.is-animated {
  animation-play-state: paused;
}

@keyframes motdPingPong {
  0%, 25% {
    transform: translateX(0);
  }
  48%, 75% {
    transform: translateX(var(--motd-overflow, 0px));
  }
  96%, 100% {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mc-motd-track.is-animated {
    animation: none;
  }
}

/* Action row */
.mc-server-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mc-ip-details {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mc-ip-badge {
  background: #131c2d;
  border: 1px solid #2a3c5d;
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--mc-diamond);
  letter-spacing: 0.5px;
}

.mc-port-badge {
  background: #191428;
  border: 1px solid #4a3473;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--mc-amethyst);
}

/* Backwards compatibility for old server-ip-box if present */
.server-ip-box {
  display: inline-flex;
  align-items: center;
  background: #0f1626;
  border-top: 2px solid #2e3d57;
  border-left: 2px solid #2e3d57;
  border-right: 3px solid #080c14;
  border-bottom: 3px solid #080c14;
  border-radius: 8px;
  padding: 0.65rem 1.4rem;
  gap: 1.25rem;
  margin-bottom: 2.2rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.server-ip-text {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mc-diamond);
}

.ip-copy-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.15s ease;
}

.ip-copy-btn:hover {
  color: var(--mc-diamond);
}

/* ==========================================================================
   CONTAINER & LAYOUT
   ========================================================================== */
.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  flex: 1;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  text-align: center;
  padding: 2.5rem 1rem 3.5rem;
  position: relative;
}

.hero-logo-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.75rem;
}

.hero-logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 560px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.22) 0%, rgba(192, 132, 252, 0.15) 45%, transparent 72%);
  filter: blur(36px);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  animation: pulseGlow 6s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { opacity: 0.65; transform: translate(-50%, -50%) scale(0.94); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

.hero-logo-animated {
  position: relative;
  z-index: 1;
  max-width: 600px;
  width: 90%;
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 25px rgba(56, 189, 248, 0.25));
  animation: floatLevitate 5s ease-in-out infinite;
  user-select: none;
  pointer-events: auto;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.hero-logo-animated:hover {
  transform: translateY(-8px) scale(1.02);
  filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.88)) drop-shadow(0 0 35px rgba(56, 189, 248, 0.45));
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--mc-diamond);
  color: var(--mc-diamond);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 740px;
  margin: 0 auto 1.5rem;
  line-height: 1.65;
  font-weight: 500;
}

/* ==========================================================================
   DEEPSLATE CARDS & GRID
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.quantum-card {
  background: #0f1626;
  border-top: 2px solid #28364e;
  border-left: 2px solid #28364e;
  border-right: 2px solid #080c14;
  border-bottom: 3px solid #080c14;
  border-radius: 8px;
  padding: 1.75rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quantum-card:hover {
  background: #141d30;
  border-top-color: var(--mc-diamond);
  border-left-color: var(--mc-diamond);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 20px var(--mc-diamond-glow);
}

.card-title {
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #ffffff;
}

.card-desc {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

/* ==========================================================================
   STAT BOXES WITH MINECRAFT INVENTORY FRAMES
   ========================================================================== */
.stat-box {
  background: #0f1626;
  border-top: 2px solid #28364e;
  border-left: 2px solid #28364e;
  border-right: 2px solid #080c14;
  border-bottom: 3px solid #080c14;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-box:hover {
  border-top-color: var(--mc-diamond);
  border-left-color: var(--mc-diamond);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px var(--mc-diamond-glow);
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-box .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.stat-box .stat-value {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--mc-diamond);
  font-family: var(--font-mono);
  line-height: 1.1;
}

/* ==========================================================================
   FORMS & INPUTS (STONE-BEVELED)
   ========================================================================== */
.form-box {
  max-width: 520px;
  margin: 2rem auto;
  background: #0f1626;
  border-top: 2px solid #2e3d57;
  border-left: 2px solid #2e3d57;
  border-right: 3px solid #080c14;
  border-bottom: 4px solid #080c14;
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65);
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.form-label {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  color: var(--mc-diamond);
}

.form-input {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: #090d16;
  border-top: 2px solid #05070c;
  border-left: 2px solid #05070c;
  border-right: 1px solid #1e283b;
  border-bottom: 1px solid #1e283b;
  border-radius: 6px;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 1.05rem;
  transition: all 0.2s ease;
  box-shadow: inset 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.form-input:focus {
  outline: none;
  border-color: var(--mc-diamond);
  box-shadow: 0 0 12px var(--mc-diamond-glow);
  background: #0d1320;
}

.form-input::placeholder {
  color: #475569;
}

/* Code Input Box */
.code-box-wrapper {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.code-input-large {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 8px;
  text-align: center;
  text-transform: uppercase;
  color: var(--mc-diamond);
}

/* ==========================================================================
   ALERT MESSAGES
   ========================================================================== */
.alert {
  padding: 0.85rem 1.25rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
  font-weight: 600;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--mc-emerald);
  color: #34d399;
}

.alert-error {
  background: rgba(248, 113, 113, 0.15);
  border-color: var(--mc-redstone);
  color: #f87171;
}

.alert-info {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--mc-diamond);
  color: var(--mc-diamond);
}

/* ==========================================================================
   PLAYER DASHBOARD & PROFILE
   ========================================================================== */
.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem;
  background: #0f1626;
  border-top: 2px solid #2e3d57;
  border-left: 2px solid #2e3d57;
  border-right: 3px solid #080c14;
  border-bottom: 4px solid #080c14;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.65);
}

.player-avatar-wrapper {
  position: relative;
}

.player-avatar-3d {
  width: 110px;
  height: 180px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 0 20px var(--mc-diamond-glow));
}

.player-info-meta h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.badge {
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-pixel);
}

.badge-rank {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid var(--mc-gold);
  color: var(--mc-gold);
}

.badge-admin {
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid var(--mc-redstone);
  color: var(--mc-redstone);
}

.badge-prestige {
  background: rgba(192, 132, 252, 0.15);
  border: 1px solid var(--mc-amethyst);
  color: var(--mc-amethyst);
}

.badge-gang {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid var(--mc-diamond);
  color: var(--mc-diamond);
}

/* ==========================================================================
   LEADERBOARDS TABLE (STONE CHISELED)
   ========================================================================== */
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: #0f1626;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #1e283b;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.leaderboard-table th, .leaderboard-table td {
  padding: 1rem 1.25rem;
  text-align: left;
}

.leaderboard-table th {
  background: #141d30;
  color: var(--mc-diamond);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  border-bottom: 2px solid #28364e;
  font-size: 0.95rem;
}

.leaderboard-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 1rem;
}

.leaderboard-table tr:hover td {
  background: rgba(56, 189, 248, 0.04);
}

.pos-1 { color: #facc15; font-weight: 900; font-size: 1.25rem; text-shadow: 0 0 10px rgba(250, 204, 21, 0.4); }
.pos-2 { color: #cbd5e1; font-weight: 800; font-size: 1.15rem; }
.pos-3 { color: #d97706; font-weight: 800; font-size: 1.15rem; }

/* ==========================================================================
   TABS NAV
   ========================================================================== */
.tabs-nav {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-stone);
  padding-bottom: 0.75rem;
  overflow-x: auto;
}

.tab-btn {
  background: #111726;
  border-top: 1px solid #28364e;
  border-left: 1px solid #28364e;
  border-right: 2px solid #080c14;
  border-bottom: 2px solid #080c14;
  color: var(--text-muted);
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  color: var(--text-main);
  background: #162033;
}

.tab-btn.active {
  background: #192338;
  color: var(--mc-diamond);
  border-top-color: var(--mc-diamond);
  border-left-color: var(--mc-diamond);
  box-shadow: 0 0 15px var(--mc-diamond-glow);
}

/* ==========================================================================
   AUTHENTIC MINECRAFT LORE TOOLTIPS
   ========================================================================== */
.mc-tooltip {
  background: #100010;
  background: linear-gradient(135deg, #100010 0%, #16071a 100%);
  border: 2px solid #28007f;
  box-shadow: 0 0 0 1px #5000ff, 0 8px 24px rgba(0, 0, 0, 0.85);
  border-radius: 4px;
  padding: 0.65rem 0.95rem;
  color: #ffffff;
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  line-height: 1.6;
  position: absolute;
  z-index: 1000;
  pointer-events: none;
  white-space: nowrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer.quantum-footer {
  margin-top: auto;
  border-top: 2px solid var(--border-stone);
  background: #090d16;
  padding: 2.25rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.65rem;
  letter-spacing: 0.3px;
  line-height: 1.5;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  header.quantum-nav {
    flex-direction: column;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 0.5rem;
  }
  .nav-links a {
    padding: 0.35rem 0.65rem;
    font-size: 0.9rem;
  }
  .nav-auth {
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .mc-server-header {
    flex-direction: column;
    text-align: center;
  }
  .mc-server-meta {
    width: 100%;
    min-width: 0;
  }
  .mc-motd {
    width: 100%;
    box-sizing: border-box;
  }
  .mc-server-title-row {
    flex-direction: column;
    gap: 0.4rem;
  }
  .mc-server-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .mc-ip-details {
    justify-content: center;
  }
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  .badges-list {
    justify-content: center;
  }
}

/* ==========================================================================
   QUANTUMPE SHOP & NON-P2W STORE STYLES
   ========================================================================== */

/* Non-P2W Guarantee Shield Banner */
.p2w-banner {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.16) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 2px solid rgba(52, 211, 153, 0.4);
  border-radius: 14px;
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 30px -10px rgba(5, 150, 105, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.p2w-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.p2w-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.p2w-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(16, 185, 129, 0.2);
  border: 2px solid #34d399;
  border-radius: 12px;
  font-size: 1.5rem;
  color: #34d399;
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.3);
}

.p2w-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.p2w-title span {
  color: #34d399;
}

.p2w-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.p2w-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.p2w-pillar-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 10px;
  padding: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.p2w-pillar-card:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 211, 153, 0.5);
}

.p2w-pillar-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 0.35rem;
}

.p2w-pillar-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.45;
}

/* Shop Category Filter Tabs */
.shop-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.shop-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  background: var(--bg-card);
  border: 2px solid var(--border-stone);
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.shop-tab-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.shop-tab-btn.active {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: var(--mc-diamond);
  border-color: var(--mc-diamond);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Container Queries for Shop Cards */
.shop-card-wrapper {
  container-type: inline-size;
  height: 100%;
}

.shop-ranks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

/* Authentic Minecraft Rank Card */
.shop-rank-card {
  background: var(--bg-card);
  border: 2px solid var(--border-stone);
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  height: 100%;
}

.shop-rank-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--rank-accent, var(--mc-diamond));
  box-shadow: 0 0 12px var(--rank-accent, var(--mc-diamond));
}

.shop-rank-card:hover {
  transform: translateY(-4px);
  border-color: var(--rank-accent, var(--mc-diamond));
  box-shadow: 0 14px 35px -8px var(--rank-glow, rgba(56, 189, 248, 0.3));
}

.rank-badge-showcase {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, rgba(15, 23, 42, 0.25) 75%);
  border-radius: 10px;
  margin-bottom: 1.25rem;
  padding: 0.5rem;
  overflow: hidden;
  position: relative;
}

.rank-badge-img {
  max-width: 100%;
  max-height: 145px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 16px var(--rank-glow, rgba(56, 189, 248, 0.35)));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
}

.shop-rank-card:hover .rank-badge-img {
  transform: scale(1.06) translateY(-4px);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 24px var(--rank-accent, #38bdf8));
}

.rank-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.rank-badge-pill {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  padding: 0.35rem 0.65rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--rank-accent, #38bdf8);
  border-radius: 6px;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.rank-name-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.rank-tier-indicator {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.rank-highlight-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.rank-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.rank-tag-chip.multiplier {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

.rank-tag-chip.vaults {
  background: rgba(192, 132, 252, 0.12);
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.3);
}

.rank-tag-chip.free {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.3);
}

.rank-description-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.rank-perks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.rank-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.rank-perk-check {
  color: var(--rank-accent, var(--mc-diamond));
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.rank-actions-row {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-obtain-ingame {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.8rem 1rem;
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 800;
  border-radius: 8px;
  border: 1px solid #34d399;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-obtain-ingame:hover {
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

.btn-view-details {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--border-stone);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-view-details:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: var(--border-cyan);
}

/* Comparison Table Styling */
.table-card-wrapper {
  background: var(--bg-card);
  border: 2px solid var(--border-stone);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 3.5rem;
  overflow-x: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.shop-matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 780px;
}

.shop-matrix-table th {
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
  font-weight: 800;
  font-size: 0.95rem;
  border-bottom: 2px solid var(--border-stone);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.shop-matrix-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  color: #cbd5e1;
  font-size: 0.9rem;
}

.shop-matrix-table tr:hover td {
  background: rgba(56, 189, 248, 0.03);
}

.check-yes {
  color: #34d399;
  font-weight: 800;
  font-size: 1.1rem;
}

.check-no {
  color: #64748b;
  font-weight: 600;
}

/* Roadmap Grid */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.roadmap-card {
  background: var(--bg-card);
  border: 2px solid var(--border-stone);
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.roadmap-card:hover {
  transform: translateY(-3px);
  border-color: rgba(192, 132, 252, 0.4);
}

.roadmap-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.roadmap-category-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #f8fafc;
}

.roadmap-status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: rgba(192, 132, 252, 0.15);
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.roadmap-status-badge.community {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

.roadmap-items-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.roadmap-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.roadmap-item-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 0.2rem;
}

.roadmap-item-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* In-Game Play to Earn Guide Section */
.guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.guide-step-card {
  background: var(--bg-card);
  border: 2px solid var(--border-stone);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
}

.guide-step-num {
  font-family: var(--font-pixel);
  font-size: 1.5rem;
  color: var(--mc-diamond);
  margin-bottom: 0.75rem;
}

.guide-step-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 0.5rem;
}

.guide-step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Modal Popup */
.shop-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.shop-modal-backdrop.open {
  display: flex;
}

.shop-modal-content {
  background: #0f172a;
  border: 2px solid var(--mc-diamond);
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.2);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.shop-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.shop-modal-close:hover {
  color: var(--text-main);
}

/* ==========================================================================
   3D COSMETIC WARDROBE & SHOWCASE STYLES
   ========================================================================== */
.cosmetics-wardrobe-wrapper {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

@media (max-width: 1024px) {
  .cosmetics-wardrobe-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Sticky 3D Interactive Stage */
.stage-3d-sticky {
  position: sticky;
  top: 90px;
  background: radial-gradient(circle at 50% 30%, #172033 0%, #0a0f1d 85%);
  border: 2px solid var(--border-stone);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.15);
  display: flex;
  flex-direction: column;
}

.stage-3d-canvas-container {
  position: relative;
  width: 100%;
  height: 480px;
  cursor: grab;
}

.stage-3d-canvas-container:active {
  cursor: grabbing;
}

#wardrobe-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Floating HUD on 3D Stage */
.stage-hud-top {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 10;
}

.stage-hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 8px;
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.stage-hud-badge .rarity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mc-diamond);
  box-shadow: 0 0 8px var(--mc-diamond);
}

.stage-rotate-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-stone);
  border-radius: 8px;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s ease;
}

.stage-rotate-toggle:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--mc-diamond);
  color: #ffffff;
}

.stage-rotate-toggle.active {
  background: rgba(56, 189, 248, 0.22);
  border-color: var(--mc-diamond);
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.stage-hud-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  color: #94a3b8;
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
}

.stage-controls-bar {
  padding: 0.85rem 1.25rem;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid var(--border-stone);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stage-control-btn {
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.stage-control-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--mc-diamond);
  color: #ffffff;
}

.stage-control-btn.active {
  background: rgba(56, 189, 248, 0.25);
  border-color: var(--mc-diamond);
  color: var(--mc-diamond);
}

/* Cosmetic Subcategory Filter Pills */
.cosmetics-subtabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.cosmetics-subtab-btn {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-stone);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cosmetics-subtab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: var(--border-cyan);
}

.cosmetics-subtab-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(192, 132, 252, 0.2) 100%);
  border-color: var(--mc-diamond);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

/* Cosmetics Grid */
.cosmetics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.cosmetic-card {
  background: var(--bg-card);
  border: 2px solid var(--border-stone);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s ease;
}

.cosmetic-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.15);
}

.cosmetic-card.equipped {
  border-color: #34d399;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}

.cosmetic-preview-box {
  width: 100%;
  height: 140px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.cosmetic-preview-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
  transition: transform 0.3s ease;
}

.cosmetic-card:hover .cosmetic-preview-img {
  transform: scale(1.08);
}

.cosmetic-rarity-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rarity-MYTHIC {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.rarity-LEGENDARY {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.rarity-EPIC {
  background: rgba(192, 132, 252, 0.2);
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.4);
}

.rarity-RARE {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.cosmetic-card-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 0.35rem;
}

.cosmetic-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.85rem;
  flex-grow: 1;
}

.cosmetic-card-prices {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.65rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  margin-bottom: 0.85rem;
}

.cosmetic-usd-price {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: #34d399;
}

.cosmetic-ingame-price {
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: right;
}

.cosmetic-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.btn-preview-3d {
  padding: 0.55rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 6px;
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn-preview-3d:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #ffffff;
  border-color: var(--mc-diamond);
}

.btn-buy-cosmetic {
  padding: 0.55rem;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid var(--border-stone);
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn-buy-cosmetic:hover {
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
  border-color: var(--mc-diamond);
  color: var(--mc-diamond);
}

/* ==========================================================================
   CHECKOUT MODAL & ORDER FLOW
   ========================================================================== */
.checkout-modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.checkout-avatar-preview {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 2px solid var(--border-stone);
  background: #1e293b;
  image-rendering: pixelated;
}

.checkout-gamertag-input-group {
  margin-bottom: 1.5rem;
}

.checkout-gamertag-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 0.4rem;
}

.checkout-input-with-button {
  display: flex;
  gap: 0.5rem;
}

.checkout-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: #1e293b;
  border: 1px solid var(--border-stone);
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.95rem;
}

.checkout-input:focus {
  outline: none;
  border-color: var(--mc-diamond);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

/* Linked Account Box in Checkout Modal */
.checkout-linked-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.checkout-linked-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.checkout-linked-userinfo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.checkout-linked-avatar {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 2px solid var(--mc-diamond);
  background: #0f172a;
  image-rendering: pixelated;
}

.checkout-linked-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #34d399;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-bottom: 0.2rem;
}

.checkout-linked-gamertag {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-main);
}

.checkout-linked-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 0.45rem;
  line-height: 1.4;
}

.btn-toggle-gift {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-stone);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-toggle-gift:hover, .btn-toggle-gift.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* Checkout Choice Tabs (Online vs In-Game) */
.checkout-method-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.checkout-method-tab {
  flex: 1;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-stone);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.checkout-method-tab.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--mc-diamond);
  color: #ffffff;
}

.checkout-item-summary-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-stone);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.checkout-item-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.checkout-item-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #f8fafc;
}

.checkout-item-price {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 900;
  color: #34d399;
}

.checkout-perks-preview {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.checkout-perks-preview li::before {
  content: '✔ ';
  color: #34d399;
  font-weight: bold;
}

/* Payment Methods Grid */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.payment-method-card {
  padding: 0.75rem 0.5rem;
  background: #1e293b;
  border: 1px solid var(--border-stone);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.payment-method-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
}

.payment-method-card.selected {
  border-color: var(--mc-diamond);
  background: rgba(56, 189, 248, 0.12);
}

.payment-method-icon {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.payment-method-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #e2e8f0;
}

.btn-complete-checkout {
  width: 100%;
  padding: 0.95rem;
  background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
  border: 1px solid #38bdf8;
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.btn-complete-checkout:hover {
  background: linear-gradient(180deg, #38bdf8 0%, #0ea5e9 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

/* In-Game Free Unlock Panel inside Modal */
.ingame-free-recipe-card {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.ingame-free-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #34d399;
  margin-bottom: 0.5rem;
}

.ingame-free-desc {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.copy-cmd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-stone);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
}

.copy-cmd-text {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--mc-diamond);
  font-weight: 700;
}

.btn-copy-cmd {
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-cmd:hover {
  background: var(--mc-diamond);
  color: #0f172a;
}

/* Order Confirmation Receipt Screen */
.order-success-screen {
  text-align: center;
  padding: 1rem 0;
}

.order-success-icon {
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

.order-success-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: #34d399;
  margin-bottom: 0.5rem;
}

.order-receipt-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-stone);
  border-radius: 10px;
  padding: 1.25rem;
  margin: 1.25rem 0;
  text-align: left;
}

.order-receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.order-receipt-row:last-child {
  border-bottom: none;
}

