/* ==========================================================================
   SWORD AND MAGIC (SAM v2) — Premium Modern Game UI Stylesheet
   ========================================================================== */

:root {
  --bg-main: #070913;
  --bg-card: rgba(15, 23, 42, 0.7);
  --bg-card-hover: rgba(22, 34, 62, 0.85);
  --bg-glass: rgba(10, 15, 30, 0.65);
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(0, 242, 254, 0.35);

  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-gold: #fbbf24;
  --accent-gold-glow: rgba(251, 191, 36, 0.4);
  --accent-purple: #a855f7;
  --accent-green: #10b981;
  --accent-red: #ef4444;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-display: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.25);
  --shadow-gold: 0 0 25px rgba(251, 191, 36, 0.3);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Atmosphere Glows */
.bg-ambient-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: 
    radial-gradient(circle at 15% 15%, rgba(79, 172, 254, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(168, 85, 247, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 75%, rgba(0, 242, 254, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #070913 0%, #0c1222 50%, #070913 100%);
  background-attachment: fixed;
  pointer-events: none;
}

.bg-texture-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url('../images/bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.25;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 50%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-text {
  background: linear-gradient(135deg, #fef08a 0%, var(--accent-gold) 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 9, 19, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(7, 9, 19, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(0, 242, 254, 0.2);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

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

.header-logo img {
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.3));
  transition: transform 0.3s ease;
}

.header-logo:hover img {
  transform: scale(1.05);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  transition: width 0.3s ease;
  border-radius: var(--radius-full);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Dropdown */
.lang-selector {
  position: relative;
}

.lang-dropdown {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2300f2fe'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
  transition: var(--transition);
}

.lang-dropdown:hover, .lang-dropdown:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

/* Main Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  color: #070913;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.35);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.5);
  color: #000;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #fef08a 0%, var(--accent-gold) 50%, #f59e0b 100%);
  color: #070913;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
}

.btn-gold:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.6);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.1);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding-top: 130px;
  padding-bottom: 70px;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Server Countdown Card */
.server-countdown-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.server-countdown-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

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

.server-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.server-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.countdown-timer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  text-align: center;
}

.timer-box {
  background: rgba(7, 9, 19, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.timer-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: block;
  line-height: 1.1;
}

.timer-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Online Counter Pill */
.online-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.online-stat-pill strong {
  color: var(--accent-green);
}

/* Hero Media & Video Button */
.hero-visual-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-trigger {
  position: relative;
  cursor: pointer;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transition: var(--transition);
}

.hero-video-trigger:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 40px rgba(0, 242, 254, 0.4);
  transform: translateY(-4px);
}

.hero-poster-img {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  display: block;
}

.video-play-pulse-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.7);
  transition: transform 0.3s ease;
}

.hero-video-trigger:hover .video-play-pulse-btn {
  transform: translate(-50%, -50%) scale(1.15);
}

.video-play-pulse-btn svg {
  fill: #070913;
  width: 28px;
  height: 28px;
  margin-left: 4px;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section {
  padding: 90px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   Interactive Classes Showcase
   ========================================================================== */
.classes-showcase {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.class-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.class-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.class-tab-btn img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.class-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(0, 242, 254, 0.4);
}

.class-tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(79, 172, 254, 0.1));
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.class-tab-btn.active img {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px var(--accent-cyan));
}

.class-details-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
  min-height: 480px;
}

.class-art-col {
  text-align: center;
  position: relative;
}

.class-art-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.class-art-image {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 460px;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7));
  animation: floatArt 4s ease-in-out infinite;
}

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

.class-info-col h3 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: var(--accent-cyan);
}

.class-role-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--accent-gold);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.class-desc-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  line-height: 1.7;
}

/* Stat Meters */
.class-stats-meters {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  width: 100px;
  color: var(--text-muted);
}

.stat-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Download Hub Cards
   ========================================================================== */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.download-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-cyan);
  box-shadow: 0 15px 40px rgba(0, 242, 254, 0.15);
}

.download-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
}

.download-icon-circle img {
  width: 36px;
  height: 36px;
}

.download-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.download-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.qr-code-box {
  background: #fff;
  padding: 12px;
  border-radius: var(--radius-md);
  display: inline-block;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.qr-code-box canvas {
  display: block;
}

/* ==========================================================================
   Game Features Section
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.feature-icon-badge {
  font-size: 2rem;
  margin-bottom: 18px;
  display: inline-block;
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: #fff;
}

.feature-card ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-card li {
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
  padding-left: 20px;
}

.feature-card li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-size: 0.8rem;
  top: 1px;
}

/* ==========================================================================
   Screenshots Gallery
   ========================================================================== */
.screenshots-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.screenshot-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  position: relative;
  cursor: pointer;
  aspect-ratio: 16 / 9;
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.screenshot-item:hover img {
  transform: scale(1.08);
}

.screenshot-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 19, 0.5);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.screenshot-item:hover .screenshot-overlay {
  opacity: 1;
}

/* ==========================================================================
   Video Modal & Lightbox
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-wrapper {
  background: #0f172a;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  position: relative;
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--accent-red);
}

.video-frame-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-frame-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: rgba(4, 6, 12, 0.95);
  border-top: 1px solid var(--border-glass);
  padding: 50px 0 30px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  gap: 24px;
}

.footer-social-links {
  display: flex;
  gap: 16px;
}

.social-circle-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-circle-link img {
  width: 20px;
  height: 20px;
}

.social-circle-link:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .class-details-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .stat-row {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }

  .header-nav {
    display: none; /* Hide on mobile by default */
  }

  .mobile-nav-toggle {
    display: block;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.3rem;
  }

  .countdown-timer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top, .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   Authentication & Forms UI (Login / Register)
   ========================================================================== */
.auth-page-wrapper {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px 20px;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: rgba(13, 20, 38, 0.82);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue), var(--accent-gold));
}

.auth-nav-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 28px;
  gap: 10px;
}

.auth-tab-btn {
  flex: 1;
  text-align: center;
  padding: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.auth-tab-btn:hover {
  color: #fff;
}

.auth-tab-btn.active {
  color: var(--accent-cyan);
}

.auth-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-cyan);
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.auth-form-group {
  margin-bottom: 20px;
  position: relative;
}

.auth-form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(7, 9, 19, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.auth-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
  background: rgba(7, 9, 19, 0.9);
}

.toggle-password-visibility {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password-visibility:hover {
  color: #fff;
}

.auth-extra-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 0.85rem;
}

.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  cursor: pointer;
}

.auth-forgot-link {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s;
}

.auth-forgot-link:hover {
  text-decoration: underline;
}

/* Password Strength Indicator */
.password-strength-container {
  margin-top: 8px;
}

.password-strength-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background 0.3s ease;
  border-radius: var(--radius-full);
}

.password-strength-text {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4px;
  display: block;
}

/* Social Login Dividers */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
  color: var(--text-dim);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-glass);
}

.social-login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.social-btn img {
  width: 20px;
  height: 20px;
}

/* Alert Notification */
.auth-alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.auth-alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

/* ==========================================================================
   Player Dashboard & Cabinet UI
   ========================================================================== */
.dashboard-wrapper {
  padding-top: 110px;
  padding-bottom: 70px;
  min-height: 85vh;
}

/* Profile Header Card */
.profile-overview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.profile-overview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-gold), var(--accent-purple));
}

.profile-top-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.profile-avatar-wrap {
  position: relative;
  width: 110px;
  height: 110px;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.profile-avatar-wrap:hover .profile-avatar-img {
  transform: scale(1.05);
}

.profile-vip-pill {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* VIP Glow variants */
.vip-glow-1 .profile-avatar-img { border-color: #94a3b8; box-shadow: 0 0 15px rgba(148, 163, 184, 0.4); }
.vip-glow-2 .profile-avatar-img { border-color: #cd7f32; box-shadow: 0 0 18px rgba(205, 127, 50, 0.5); }
.vip-glow-3 .profile-avatar-img { border-color: #e2e8f0; box-shadow: 0 0 20px rgba(226, 232, 240, 0.6); }
.vip-glow-4 .profile-avatar-img { border-color: #10b981; box-shadow: 0 0 22px rgba(16, 185, 129, 0.6); }
.vip-glow-5 .profile-avatar-img { border-color: #00f2fe; box-shadow: 0 0 25px rgba(0, 242, 254, 0.7); }
.vip-glow-6 .profile-avatar-img { border-color: #fbbf24; box-shadow: 0 0 30px rgba(251, 191, 36, 0.8); }

.profile-main-meta h2 {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.profile-badges-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
}

.meta-badge-verified {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.meta-badge-unverified {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fcd34d;
}

.profile-quick-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Wallet Balances Grid */
.wallets-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.wallet-box-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: var(--transition);
}

.wallet-box-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.wallet-coin-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.wallet-details {
  flex: 1;
}

.wallet-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wallet-amount {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 2px 0;
}

.wallet-subtext {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Characters Grid */
.dashboard-characters-section {
  margin-bottom: 36px;
}

.dashboard-section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dashboard-section-title-wrap h3 {
  font-size: 1.4rem;
  color: #fff;
}

.characters-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.char-card-item {
  background: rgba(13, 20, 38, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.char-card-item:hover {
  border-color: rgba(0, 242, 254, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.char-card-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-blue));
}

.char-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.char-name-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.char-level-badge {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.char-bp-highlight {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
}

.char-bp-number {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.char-info-list {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.char-info-list span {
  color: #fff;
  font-weight: 500;
}

.char-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.btn-delete-char {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-delete-char:hover {
  background: var(--accent-red);
  color: #fff;
}

/* Server Stats Widgets */
.server-widgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.server-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 22px;
}

.server-stat-card h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.server-stat-list {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.server-stat-list strong {
  color: #fff;
}

@media (max-width: 860px) {
  .profile-top-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .profile-badges-row {
    justify-content: center;
  }

  .profile-quick-actions {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Store & Web Inventory UI
   ========================================================================== */
.store-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.store-tabs-group {
  display: flex;
  gap: 10px;
}

.store-tab-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  transition: var(--transition);
}

.store-tab-link:hover, .store-tab-link.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(79, 172, 254, 0.15));
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.store-user-mini-wallet {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
}

.wallet-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(7, 9, 19, 0.6);
  border: 1px solid var(--border-glass);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* Category Filter Chips */
.store-categories-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
  scrollbar-width: thin;
}

.category-chip {
  white-space: nowrap;
  padding: 8px 18px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.category-chip:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.category-chip.active {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.1));
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.25);
}

/* Store Controls: Search & Sort */
.store-search-sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.store-search-form {
  display: flex;
  align-items: center;
  background: rgba(7, 9, 19, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 4px 16px;
  width: 100%;
  max-width: 360px;
}

.store-search-form input {
  background: none;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  padding: 8px 6px;
  outline: none;
  width: 100%;
}

.store-sort-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sort-link-btn {
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  transition: var(--transition);
}

.sort-link-btn:hover, .sort-link-btn.active {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

/* Store Items Grid */
.store-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.store-card {
  background: rgba(13, 20, 38, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.store-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Rarity Glowing Borders */
.rarity-1 { border-color: rgba(255, 255, 255, 0.15); }
.rarity-2 { border-color: rgba(16, 185, 129, 0.4); }
.rarity-2:hover { box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); border-color: #10b981; }

.rarity-3 { border-color: rgba(59, 130, 246, 0.4); }
.rarity-3:hover { box-shadow: 0 0 20px rgba(59, 130, 246, 0.35); border-color: #3b82f6; }

.rarity-4 { border-color: rgba(168, 85, 247, 0.4); }
.rarity-4:hover { box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); border-color: #a855f7; }

.rarity-5 { border-color: rgba(251, 191, 36, 0.45); }
.rarity-5:hover { box-shadow: 0 0 25px rgba(251, 191, 36, 0.5); border-color: #fbbf24; }

.rarity-6 { border-color: rgba(239, 68, 68, 0.5); }
.rarity-6:hover { box-shadow: 0 0 30px rgba(239, 68, 68, 0.6); border-color: #ef4444; }

.store-card-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: rgba(7, 9, 19, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
}

.store-card-icon-wrap img {
  max-width: 56px;
  max-height: 56px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.store-card:hover .store-card-icon-wrap img {
  transform: scale(1.12);
}

.pack-qty-tag {
  position: absolute;
  bottom: 2px;
  right: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.store-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.store-card-prices {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding-top: 8px;
}

.price-original {
  text-decoration: line-through;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.price-current {
  font-weight: 800;
  font-size: 1.05rem;
}

/* Modals for Buy & Send */
.modal-interactive-box {
  background: #0d1426;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  position: relative;
}

.modal-interactive-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 18px;
}

.stepper-quantity-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}

.btn-step {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-step:hover {
  background: var(--accent-cyan);
  color: #070913;
}

.stepper-input {
  width: 70px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  background: rgba(7, 9, 19, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 6px;
  outline: none;
}

/* ==========================================================================
   GIFTS & CASE OPENING SYSTEM (SAM v2)
   ========================================================================== */
.gifts-header-hero {
  margin-bottom: 32px;
  text-align: center;
}

.gifts-header-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.gifts-header-hero p {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* Active Server Banner & Selector */
.server-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  margin-bottom: 28px;
  backdrop-filter: blur(12px);
  gap: 16px;
  flex-wrap: wrap;
}

.server-status-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.server-indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
}

.server-indicator-dot.warning {
  background: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red);
}

.server-form-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.server-select-dropdown {
  background: rgba(7, 9, 19, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 8px 14px;
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.server-select-dropdown:hover, .server-select-dropdown:focus {
  border-color: var(--accent-cyan);
}

/* Gifts Chests Grid */
.gifts-chests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.case-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(12px);
}

.case-card:hover {
  transform: translateY(-6px);
}

/* Themes per chest */
.case-card.theme-emerald {
  border-color: rgba(16, 185, 129, 0.25);
}
.case-card.theme-emerald:hover {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.2);
}

.case-card.theme-purple {
  border-color: rgba(168, 85, 247, 0.25);
}
.case-card.theme-purple:hover {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 15px 35px rgba(168, 85, 247, 0.2);
}

.case-card.theme-flame {
  border-color: rgba(249, 115, 22, 0.25);
}
.case-card.theme-flame:hover {
  border-color: rgba(249, 115, 22, 0.6);
  box-shadow: 0 15px 35px rgba(249, 115, 22, 0.2);
}

.case-card.theme-gold {
  border: 1.5px solid rgba(251, 191, 36, 0.4);
  background: linear-gradient(180deg, rgba(30, 24, 12, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
}
.case-card.theme-gold:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 15px 40px rgba(251, 191, 36, 0.25);
}

.case-card.theme-cyan {
  border-color: rgba(0, 242, 254, 0.25);
}
.case-card.theme-cyan:hover {
  border-color: rgba(0, 242, 254, 0.6);
  box-shadow: 0 15px 35px rgba(0, 242, 254, 0.2);
}

/* Card Header */
.case-header {
  margin-bottom: 16px;
  text-align: center;
}

.case-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.case-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Chest Graphic Display */
.case-graphic-wrap {
  position: relative;
  width: 100%;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 20px 0;
  cursor: pointer;
}

.case-graphic-wrap .chest-img {
  max-width: 140px;
  max-height: 140px;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.case-card:hover .chest-img {
  transform: scale(1.08) translateY(-4px);
}

.case-card.theme-emerald .chest-img {
  filter: drop-shadow(0 0 18px rgba(16, 185, 129, 0.5));
}
.case-card.theme-purple .chest-img {
  filter: drop-shadow(0 0 18px rgba(168, 85, 247, 0.5));
}
.case-card.theme-flame .chest-img {
  filter: drop-shadow(0 0 18px rgba(249, 115, 22, 0.55));
}
.case-card.theme-gold .chest-img {
  filter: hue-rotate(40deg) drop-shadow(0 0 22px rgba(251, 191, 36, 0.6));
}
.case-card.theme-cyan .chest-img {
  filter: drop-shadow(0 0 20px rgba(0, 242, 254, 0.55));
}

/* Badges on chest image */
.case-badge-count {
  position: absolute;
  top: 4px;
  right: 14px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  z-index: 5;
}

.case-badge-prem {
  position: absolute;
  bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  z-index: 5;
}

/* Info Details */
.case-body {
  margin-top: auto;
  text-align: center;
  margin-bottom: 18px;
}

.case-reward-range {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.case-status-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.vip-countdown-display {
  display: inline-block;
  margin-top: 4px;
  color: var(--accent-gold);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

/* Shaking animation when opening */
.shake-anim {
  animation: chestShake 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes chestShake {
  10%, 90% { transform: translate3d(-3px, 0, 0) rotate(-2deg); }
  20%, 80% { transform: translate3d(4px, 0, 0) rotate(3deg) scale(1.04); }
  30%, 50%, 70% { transform: translate3d(-5px, 0, 0) rotate(-3deg) scale(1.06); }
  40%, 60% { transform: translate3d(5px, 0, 0) rotate(3deg) scale(1.08); }
}

/* Button */
.btn-claim-case {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #070913;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}

.btn-claim-case:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.45);
}

.btn-claim-case.gold-btn {
  background: linear-gradient(135deg, #fef08a, var(--accent-gold), #f59e0b);
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-claim-case.gold-btn:hover:not(:disabled) {
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5);
}

.btn-claim-case:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* History Box */
.gifts-history-section {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(12px);
  margin-bottom: 40px;
}

.history-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.history-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.gifts-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.gifts-table th {
  padding: 12px 16px;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-glass);
}

.gifts-table td {
  padding: 14px 16px;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.92rem;
}

.gifts-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Prize Modal Reveal */
.prize-modal-card {
  position: relative;
  background: #0b1120;
  border: 1.5px solid rgba(251, 191, 36, 0.5);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 0 50px rgba(251, 191, 36, 0.35), 0 30px 60px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  animation: modalScaleUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalScaleUp {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.prize-sunburst {
  position: absolute;
  top: 35%;
  left: 50%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.3) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: rotateSunburst 20s linear infinite;
  z-index: 0;
}

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

.prize-icon-circle {
  position: relative;
  z-index: 1;
  width: 110px;
  height: 110px;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, rgba(15, 23, 42, 0.8) 80%);
  border: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
}

.prize-icon-circle img {
  max-width: 72px;
  max-height: 72px;
  object-fit: contain;
  animation: prizeFloat 2.5s ease-in-out infinite;
}

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

.prize-title-text {
  position: relative;
  z-index: 1;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.prize-desc-text {
  position: relative;
  z-index: 1;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  min-height: 24px;
}

/* ==========================================================================
   TOP-UP & DONATION SYSTEM (SAM v2)
   ========================================================================== */
.topup-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.topup-tab-btn {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
}

.topup-tab-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.topup-tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(79, 172, 254, 0.25));
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.topup-tab-pane {
  display: none;
  animation: fadeInPane 0.35s ease forwards;
}

.topup-tab-pane.active {
  display: block;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Currency Converter Bar */
.currency-bar-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.currency-pills {
  display: flex;
  gap: 8px;
}

.currency-pill-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.currency-pill-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.currency-pill-btn.active {
  background: var(--accent-cyan);
  color: #070913;
  border-color: var(--accent-cyan);
  font-weight: 800;
}

/* Coin Packs Grid */
.coin-packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.coin-pack-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(12px);
}

.coin-pack-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 16px 36px rgba(251, 191, 36, 0.18);
}

.coin-pack-card.featured {
  border-color: rgba(251, 191, 36, 0.4);
  background: linear-gradient(180deg, rgba(35, 28, 14, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.coin-pack-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.coin-pack-icon {
  width: 72px;
  height: 72px;
  margin: 10px auto 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coin-pack-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.5));
}

.coin-pack-amount {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 4px;
}

.coin-pack-bonus {
  text-align: center;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 700;
  margin-bottom: 16px;
}

.coin-pack-price-box {
  margin-top: auto;
  background: rgba(7, 9, 19, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
  margin-bottom: 14px;
}

.coin-pack-price-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

/* FunPay Claimer Box */
.claim-funpay-panel {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(12px);
  margin-bottom: 36px;
}

.funpay-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.funpay-step-card {
  background: rgba(7, 9, 19, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.step-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #070913;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.btn-funpay-external {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: auto;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-funpay-external:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.funpay-input-wrap {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.funpay-input {
  flex: 1;
  background: rgba(7, 9, 19, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: #fff;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  transition: var(--transition);
}

.funpay-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
}

/* Giveaway Widget */
.giveaway-card-main {
  background: rgba(15, 23, 42, 0.75);
  border: 1.5px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(12px);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.giveaway-pool-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.giveaway-timer-digits {
  font-family: monospace;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 1px;
}

.giveaway-user-status-box {
  background: rgba(7, 9, 19, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 24px;
}

/* Server Fund Progress Bar */
.server-goal-box {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 32px;
  backdrop-filter: blur(12px);
}

.progress-track {
  width: 100%;
  height: 18px;
  background: rgba(7, 9, 19, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 14px 0 8px 0;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-gold));
  border-radius: var(--radius-full);
  transition: width 1s ease;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
}

/* ==========================================================================
   RATING & LEADERBOARD SYSTEM (SAM v2)
   ========================================================================== */
.rating-controls-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 32px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rating-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.rating-chips-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rating-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rating-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.rating-chip.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(79, 172, 254, 0.3));
  border-color: var(--accent-cyan);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
}

.rating-search-wrap {
  position: relative;
  min-width: 240px;
}

.rating-search-input {
  width: 100%;
  background: rgba(7, 9, 19, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: #fff;
  padding: 10px 14px 10px 38px;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.rating-search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
}

.rating-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

/* Top 3 Podium Cards */
.podium-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 40px;
}

@media (max-width: 860px) {
  .podium-container {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

.podium-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px 20px 24px 20px;
  text-align: center;
  position: relative;
  backdrop-filter: blur(14px);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.podium-card:hover {
  transform: translateY(-6px);
}

.podium-card.rank-1 {
  border: 1.5px solid rgba(251, 191, 36, 0.6);
  background: linear-gradient(180deg, rgba(38, 30, 12, 0.75) 0%, rgba(15, 23, 42, 0.85) 100%);
  box-shadow: 0 10px 35px rgba(251, 191, 36, 0.25);
  padding-top: 36px;
  padding-bottom: 30px;
  z-index: 2;
}

.podium-card.rank-2 {
  border-color: rgba(203, 213, 225, 0.5);
  box-shadow: 0 8px 25px rgba(203, 213, 225, 0.15);
}

.podium-card.rank-3 {
  border-color: rgba(217, 119, 6, 0.45);
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.15);
}

.podium-crown {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.2rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

.podium-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.95rem;
  margin: 0 auto 12px auto;
}

.rank-1 .podium-rank-badge {
  background: linear-gradient(135deg, #fef08a, var(--accent-gold));
  color: #070913;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.6);
}

.rank-2 .podium-rank-badge {
  background: linear-gradient(135deg, #f1f5f9, #94a3b8);
  color: #070913;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.rank-3 .podium-rank-badge {
  background: linear-gradient(135deg, #fdba74, #ea580c);
  color: #fff;
  box-shadow: 0 0 12px rgba(234, 88, 12, 0.4);
}

.podium-avatar-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 14px auto;
  border-radius: 50%;
  background: rgba(7, 9, 19, 0.8);
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.rank-1 .podium-avatar-wrap {
  border-color: var(--accent-gold);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

.podium-player-name {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #fff;
}

.podium-bp-display {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.podium-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-glass);
  padding-top: 12px;
  margin-top: auto;
}

/* Camp Badges */
.camp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.camp-badge.camp-bloodoath {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #f87171;
}

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

.camp-badge.camp-none {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-dim);
}

/* Rating Table Ranks */
.table-rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
}



