/* ══════════════════════════════════════════════════════════════
   ONE WAY — COMPETITIVE PLATFORM LANDING PAGE
   ══════════════════════════════════════════════════════════════ */

/* ─── RESET & BASE ────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #06060e;
  --bg-card: rgba(15, 15, 30, 0.7);
  --bg-glass: rgba(15, 15, 30, 0.5);
  --surface: #0d0d1a;
  --border: rgba(99, 102, 241, 0.12);
  --border-h: rgba(99, 102, 241, 0.3);
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --primary: #6366f1;
  --primary-h: #818cf8;
  --accent: #06b6d4;
  --gold: #f59e0b;
  --silver: #94a3b8;
  --bronze: #b45309;
  --gradient: linear-gradient(135deg, #6366f1, #06b6d4);
  --gradient-hot: linear-gradient(135deg, #f43f5e, #f59e0b);
  --font: 'Outfit', 'Inter', system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ─── CUSTOM CURSOR (desktop) ─────────────────────────────── */
.cursor-dot,
.cursor-ring {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-dot {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.1s;
    transform: translate(-50%, -50%);
  }

  .cursor-ring {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--primary-h);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    transform: translate(-50%, -50%);
    opacity: 0.5;
  }

  body:has(a:hover) .cursor-ring,
  body:has(button:hover) .cursor-ring {
    width: 52px;
    height: 52px;
    border-color: var(--accent);
    opacity: 0.8;
  }
}

/* ─── LOADING SCREEN ──────────────────────────────────────── */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.6s, visibility 0.6s;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.loading-circle {
  animation: loadCircle 2s ease-in-out infinite;
}

@keyframes loadCircle {
  0% {
    stroke-dashoffset: 340;
  }

  50% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: -340;
  }
}

.loading-text {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 4px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loading-bar {
  width: 200px;
  height: 3px;
  background: rgba(99, 102, 241, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

.loading-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--gradient);
  border-radius: 4px;
  transition: width 0.3s;
}

.loading-sub {
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 1px;
}

/* ─── SCROLL PROGRESS ─────────────────────────────────────── */
/* Scroll progress bar removed for cleaner aesthetic */
.scroll-progress {
  display: none;
}

/* ─── TOP BAR (matching existing site) ────────────────────── */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  background: transparent;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}

.topbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
  opacity: 0.1;
  transition: opacity 0.4s;
}

.topbar.scrolled::after {
  opacity: 1;
}

.topbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.topbar-logo-text {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 2px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.topbar-center {
  display: flex;
  gap: 4px;
}

.topbar-link {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: var(--radius-xs);
  transition: color 0.3s, background 0.3s;
}

.topbar-link:hover {
  color: var(--text);
  background: rgba(99, 102, 241, 0.08);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 40px;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}

.lang-toggle:hover,
.lang-dropdown.open .lang-toggle {
  background: rgba(99, 102, 241, 0.08);
}

.lang-icon-flag {
  font-size: 16px;
  line-height: 1;
}

.lang-text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}

.lang-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.3s;
}

.lang-dropdown.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  z-index: 1001;
}

.lang-dropdown.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.lang-option:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--text);
}

.lang-option.active {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-h);
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--text-dim);
  transition: color 0.3s, background 0.3s;
}

.theme-toggle:hover {
  color: var(--text);
  background: rgba(99, 102, 241, 0.08);
}

.theme-icon {
  width: 20px;
  height: 20px;
}

.theme-icon-sun {
  display: none;
}

[data-theme="light"] .theme-icon-moon {
  display: none;
}

[data-theme="light"] .theme-icon-sun {
  display: block;
}

/* Hamburger */
.topbar-hamburger {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 10px;
  transition: background 0.3s;
}

.topbar-hamburger:hover {
  background: rgba(99, 102, 241, 0.08);
}

.topbar-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.topbar-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.topbar-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.topbar-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Full-screen menu overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 24px;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.menu-overlay-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 600px;
  width: 100%;
}

.menu-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
  text-align: center;
}

.menu-card svg {
  width: 28px;
  height: 28px;
  color: var(--primary-h);
}

.menu-card span {
  font-size: 14px;
  font-weight: 600;
}

.menu-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  background: rgba(99, 102, 241, 0.06);
}

.menu-card-discord {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.12), rgba(88, 101, 242, 0.04));
  border-color: rgba(88, 101, 242, 0.25);
}

.menu-card-discord svg {
  color: #5865f2;
}

.menu-card-discord:hover {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(88, 101, 242, 0.08));
  border-color: rgba(88, 101, 242, 0.4);
}

/* Podium link */
.podium-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s;
}

.podium-link:hover {
  transform: translateY(-4px);
}

.podium-link:hover .podium-name {
  color: var(--primary-h);
}

/* Rankings row clickable */
.rankings-row:not(.rankings-row-header) {
  cursor: pointer;
}

.rankings-row:not(.rankings-row-header):hover .rank-name {
  color: var(--primary-h);
}

@media (max-width: 768px) {
  .topbar-center {
    display: none;
  }

  .menu-overlay-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-card-discord {
    grid-column: 1 / -1;
  }
}

/* ─── LIGHT MODE ──────────────────────────────────────────── */
[data-theme="light"] {
  --bg: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-glass: rgba(248, 250, 252, 0.85);
  --surface: #ffffff;
  --border: rgba(100, 116, 139, 0.15);
  --border-h: rgba(99, 102, 241, 0.35);
  --text: #1e293b;
  --text-dim: #475569;
  --text-muted: #94a3b8;
}

[data-theme="light"] .hero-bg {
  opacity: 0.5;
}

[data-theme="light"] .loading-screen {
  background: #f8fafc;
}

[data-theme="light"] .feature-card-visual {
  background: rgba(99, 102, 241, 0.04);
}

[data-theme="light"] .fv-bot-msg-user {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .fv-bot-msg-bot {
  background: rgba(6, 182, 212, 0.06);
  border-color: rgba(6, 182, 212, 0.1);
}

[data-theme="light"] .menu-overlay {
  background: rgba(248, 250, 252, 0.98);
}

[data-theme="light"] .rankings-row-header {
  background: rgba(99, 102, 241, 0.04);
}

[data-theme="light"] .topbar-hamburger span {
  background: var(--text);
}

/* ─── SECTIONS ────────────────────────────────────────────── */
.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
}

.section-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--primary-h);
  margin-bottom: 16px;
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 20px;
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-dim);
  font-size: 18px;
  max-width: 540px;
  margin: 20px auto 0;
  line-height: 1.7;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── SCROLL REVEAL ───────────────────────────────────────── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 768px) {
  .scroll-reveal {
    transform: translateY(15px) scale(0.98);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
}

/* ─── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 20px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  animation: glowPulse 8s ease-in-out infinite;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2), transparent 70%);
  bottom: 10%;
  left: 10%;
  animation: glowPulse 10s ease-in-out infinite 2s;
}

.hero-glow-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.15), transparent 70%);
  top: 30%;
  right: 5%;
  animation: glowPulse 12s ease-in-out infinite 4s;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.15);
  }
}

/* Particles */
.particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--primary-h);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.6;
  }

  100% {
    opacity: 0;
    transform: translateY(-20vh) scale(1);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--primary-h);
  padding: 8px 20px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 24px;
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
}

.hero-title {
  font-size: clamp(4rem, 13vw, 8.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title-line {
  display: block;
}

.hero-title-gradient {
  background: linear-gradient(
    90deg, 
    #6366f1 0%, 
    #06b6d4 15%, 
    #ffffff 30%, 
    #06b6d4 45%, 
    #6366f1 60%,
    #06b6d4 75%,
    #ffffff 85%,
    #06b6d4 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  padding: 0 10px;
  filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.3));
  animation: shimmer 5s linear infinite;
  text-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-h);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 17px;
  border-radius: 14px;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-plus {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 1px;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 1px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

.scroll-indicator-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-indicator-wheel {
  width: 3px;
  height: 8px;
  background: var(--primary-h);
  border-radius: 3px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* ─── NEWS (ANUNCIOS) ─────────────────────────────────────── */
.news-section {
  background: relative;
  overflow: hidden;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.news-card {
  position: relative;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s;
  overflow: hidden;
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient);
  opacity: 0.8;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.news-card:hover {
  border-color: var(--border-h);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(99, 102, 241, 0.15);
  z-index: 2;
}

.news-card:hover::before {
  transform: scaleX(1);
}

.news-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-h);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
}

.news-excerpt {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}

/* ─── ABOUT ───────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.about-card {
  position: relative;
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s;
}

.about-card:hover {
  border-color: var(--border-h);
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.about-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
}

.about-card:hover .about-card-glow {
  opacity: 1;
}

.about-card-main {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.05));
  border-color: rgba(99, 102, 241, 0.2);
}

.about-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  margin-bottom: 20px;
}

.about-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary-h);
}

.about-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.about-card p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
}

.about-card p strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 640px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-card-main {
    grid-column: 1;
  }
}

/* ─── FEATURES ────────────────────────────────────────────── */
.features-section {
  overflow: hidden;
}

.features-carousel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .features-carousel {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  position: relative;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s;
}

.feature-card:hover {
  border-color: var(--border-h);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(99, 102, 241, 0.15);
  z-index: 2;
}

.feature-card-number {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.08));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

/* Feature card visuals */
.feature-card-visual {
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(99, 102, 241, 0.08);
}

/* Rankings visual */
.fv-rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.fv-rank-pos {
  font-size: 12px;
  font-weight: 700;
  width: 28px;
  color: var(--text-muted);
}

.fv-rank-bar {
  height: 6px;
  background: var(--gradient);
  border-radius: 3px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fv-rank-gold .fv-rank-pos {
  color: var(--gold);
}

.fv-rank-silver .fv-rank-pos {
  color: var(--silver);
}

.fv-rank-bronze .fv-rank-pos {
  color: var(--bronze);
}

.fv-rank-gold .fv-rank-bar {
  background: linear-gradient(90deg, var(--gold), #fbbf24);
}

.fv-rank-silver .fv-rank-bar {
  background: linear-gradient(90deg, var(--silver), #cbd5e1);
}

.fv-rank-bronze .fv-rank-bar {
  background: linear-gradient(90deg, var(--bronze), #d97706);
}

.fv-rank-kills {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  min-width: 40px;
  text-align: right;
}

/* Phases visual */
.fv-phase {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(99, 102, 241, 0.05);
  border-radius: var(--radius-xs);
  margin-bottom: 8px;
  border: 1px solid transparent;
  transition: border-color 0.3s;
}

.fv-phase:hover {
  border-color: var(--border-h);
}

.fv-phase-icon {
  font-size: 20px;
}

.fv-phase-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary-h);
}

.fv-phase-desc {
  font-size: 12px;
  color: var(--text-dim);
  display: block;
}

.fv-phase-arrow {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 16px;
}

.fv-phase-top {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.2);
}

.fv-phase-top .fv-phase-name {
  color: var(--gold);
}

/* Clans visual */
.fv-clan {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  margin-bottom: 6px;
  border-radius: var(--radius-xs);
  transition: background 0.3s;
}

.fv-clan:hover {
  background: rgba(99, 102, 241, 0.05);
}

.fv-clan-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

.fv-clan-name {
  font-size: 13px;
  font-weight: 600;
  display: block;
}

.fv-clan-tag {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
}

.fv-clan-members {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
}

/* Bot visual */
.fv-bot-msg {
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 12px;
}

.fv-bot-msg span {
  display: block;
}

.fv-bot-msg-user {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--primary-h);
  margin-left: 20px;
}

.fv-bot-msg-bot {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.12);
  color: var(--accent);
  margin-right: 20px;
}

.fv-bot-rank {
  color: #22c55e;
  font-weight: 600;
  margin-top: 2px;
}

.fv-bot-list {
  color: var(--text-dim);
  margin-top: 4px;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .features-carousel {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .features-carousel {
    grid-template-columns: 1fr;
  }
}

/* ─── RANKINGS ────────────────────────────────────────────── */
.rankings-showcase {
  max-width: 900px;
  margin: 0 auto;
}

.rankings-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.podium-spot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.podium-crown {
  font-size: 28px;
  animation: crownFloat 3s ease-in-out infinite;
}

@keyframes crownFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.podium-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.podium-avatar-1 {
  width: 76px;
  height: 76px;
  font-size: 24px;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
}

.podium-name {
  font-weight: 600;
  font-size: 14px;
}

.podium-kills {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
}

.podium-base {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px 8px 0 0;
  padding: 8px 0;
  width: 100%;
  min-width: 100px;
}

.podium-base-1 {
  height: 120px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-bottom: none;
}

.podium-base-2 {
  height: 80px;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.12), rgba(148, 163, 184, 0.04));
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-bottom: none;
}

.podium-base-3 {
  height: 56px;
  background: linear-gradient(180deg, rgba(180, 83, 9, 0.12), rgba(180, 83, 9, 0.04));
  border: 1px solid rgba(180, 83, 9, 0.15);
  border-bottom: none;
}

.podium-medal {
  font-size: 20px;
}

/* Rankings Table */
.rankings-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.rankings-row {
  display: grid;
  grid-template-columns: 50px 1fr 100px 60px;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.06);
  transition: background 0.3s;
}

.rankings-row:last-child {
  border-bottom: none;
}

.rankings-row:not(.rankings-row-header):hover {
  background: rgba(99, 102, 241, 0.04);
}

.rankings-row-header {
  background: rgba(99, 102, 241, 0.06);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rank-pos {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dim);
}

.rank-name {
  font-weight: 600;
  font-size: 14px;
}

.rank-kills {
  font-weight: 600;
  font-size: 14px;
  color: var(--primary-h);
}

.rank-phase {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-align: center;
}

.rank-phase-1 {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent);
}

.rank-phase-2 {
  background: rgba(245, 158, 11, 0.12);
  color: var(--gold);
}

@media (max-width: 640px) {
  .rankings-podium {
    gap: 8px;
  }

  .podium-base {
    min-width: 80px;
  }

  .podium-avatar {
    width: 48px;
    height: 48px;
    font-size: 16px;
  }

  .podium-avatar-1 {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }

  .rankings-row {
    grid-template-columns: 40px 1fr 70px 50px;
    padding: 12px 16px;
  }
}

/* ─── ECOSYSTEM ───────────────────────────────────────────── */
.ecosystem-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.eco-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  min-width: 140px;
}

.eco-node-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.eco-node:hover .eco-node-icon {
  transform: scale(1.1);
}

.eco-node-discord {
  background: linear-gradient(135deg, #5865f2, #7c3aed);
  color: #fff;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
}

.eco-node-bot {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #fff;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

.eco-node-web {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.eco-node-db {
  background: linear-gradient(135deg, #22c55e, #06b6d4);
  color: #fff;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

.eco-node h4 {
  font-size: 15px;
  font-weight: 700;
}

.eco-node p {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.eco-connector {
  display: flex;
  align-items: center;
  width: 60px;
  position: relative;
}

.eco-connector-line {
  width: 100%;
  height: 2px;
  background: var(--border);
  position: relative;
}

.eco-connector-pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  transform: translateY(-50%);
  animation: pulseMove 3s linear infinite;
}

@keyframes pulseMove {
  0% {
    left: 0;
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    left: calc(100% - 8px);
    opacity: 0;
  }
}

.ecosystem-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.eco-feature {
  text-align: center;
  padding: 32px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s;
}

.eco-feature:hover {
  border-color: var(--border-h);
  transform: translateY(-2px);
}

.eco-feature-number {
  font-size: 36px;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.eco-feature-label {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}

@media (max-width: 768px) {
  .ecosystem-flow {
    flex-direction: column;
  }

  .eco-connector {
    width: 2px;
    height: 40px;
    flex-direction: column;
  }

  .eco-connector-line {
    width: 2px;
    height: 100%;
  }

  .eco-connector-pulse {
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    animation: pulseMoveV 3s linear infinite;
  }

  @keyframes pulseMoveV {
    0% {
      top: 0;
      opacity: 0;
    }

    20% {
      opacity: 1;
    }

    80% {
      opacity: 1;
    }

    100% {
      top: calc(100% - 8px);
      opacity: 0;
    }
  }

  .ecosystem-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── JOIN / CTA ──────────────────────────────────────────── */
.join-section {
  overflow: hidden;
}

.join-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.join-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.join-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent 70%);
  top: 20%;
  left: -10%;
}

.join-glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15), transparent 70%);
  bottom: 10%;
  right: -5%;
}

.join-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.join-title {
  font-size: clamp(2.5rem, 6vw, 4rem) !important;
}

.join-cta {
  margin-bottom: 36px;
}

.join-footer {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.join-footer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 14px;
}

.join-footer-item svg {
  color: #22c55e;
}

/* ─── FOOTER ──────────────────────────────────────────────── */
.footer {
  position: relative;
  padding: 80px 24px 40px;
  background: var(--surface);
  border-top: 1px solid rgba(99, 102, 241, 0.2);
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: var(--gradient);
  box-shadow: 0 0 40px 2px rgba(99, 102, 241, 0.4);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 80px;
}

.footer-brand {
  flex: 0 1 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.footer-logo-text {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
}

.footer-desc {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}

.footer-grid {
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 140px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col a {
  color: var(--text-dim);
  font-size: 15px;
  transition: color 0.3s, transform 0.3s;
}

.footer-col a:hover {
  color: var(--primary-h);
  transform: translateX(4px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: 40px;
  }

  .footer-grid {
    gap: 40px;
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    flex-direction: column;
    gap: 32px;
  }
}

/* ─── ANIMATIONS FOR RANKINGS TABLE ROWS ──────────────────── */
.rankings-row:not(.rankings-row-header) {
  position: relative;
}

.rankings-row:not(.rankings-row-header)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.rankings-row:not(.rankings-row-header):hover::before {
  opacity: 1;
}

/* ─── TILT EFFECT on hover (desktop) ──────────────────────── */
@media (hover: hover) {

  .about-card,
  .feature-card,
  .eco-feature {
    transform-style: preserve-3d;
    perspective: 1000px;
  }
}

/* ─── SECTION DIVIDER ─────────────────────────────────────── */
.section+.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: var(--gradient);
  opacity: 0.3;
}

/* ─── SMOOTH PARALLAX OFFSET ──────────────────────────────── */
.section-header {
  will-change: transform;
}

/* ─── FOOTER LOGO FIX ────────────────────────────────────── */
.footer-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

/* ─── PROFILE MODAL ──────────────────────────────────────── */
.profile-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
  padding: 24px;
}

.profile-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.profile-modal {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.profile-modal-backdrop.open .profile-modal {
  transform: scale(1) translateY(0);
}

.profile-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  color: #fff;
  transition: background 0.3s;
}

.profile-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.profile-banner {
  height: 100px;
  background: var(--gradient);
  position: relative;
}

.profile-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-top: -44px;
  position: relative;
  z-index: 3;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 4px solid var(--bg-card);
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.profile-rank-badge {
  position: absolute;
  bottom: 0;
  right: calc(50% - 56px);
  background: var(--gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.profile-body {
  padding: 16px 24px 24px;
  text-align: center;
}

.profile-name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 2px;
}

.profile-username {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.profile-stat-item {
  padding: 12px 8px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s;
}

.profile-stat-item:hover {
  border-color: var(--border-h);
}

.profile-stat-value {
  display: block;
  font-size: 18px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.profile-clan-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(99, 102, 241, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 12px;
}

.profile-clan-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.profile-clan-info {
  text-align: left;
}

.profile-clan-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.profile-clan-tag {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.profile-badges {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.profile-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-h);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.profile-badge-gold {
  background: rgba(245, 158, 11, 0.1);
  color: var(--gold);
  border-color: rgba(245, 158, 11, 0.2);
}

/* Light mode profile modal */
[data-theme="light"] .profile-modal {
  background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .profile-close {
  background: rgba(0, 0, 0, 0.15);
  color: #333;
}

[data-theme="light"] .profile-avatar {
  border-color: #fff;
}

/* ─── PROFILE MODAL REFINEMENTS ───────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.profile-modal {
  width: 100%;
  max-width: 460px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  transform: translateY(40px) scale(0.92);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7);
}

.modal-overlay.open .profile-modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg) scale(1.1);
  border-color: var(--accent);
}

.profile-header {
  height: 160px;
  position: relative;
}

.profile-banner {
  height: 100%;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  background-size: cover;
  background-position: center;
  position: relative;
}

.profile-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
}

.profile-avatar-wrapper {
  position: absolute;
  bottom: -35px;
  left: 30px;
  width: 90px;
  height: 90px;
  z-index: 5;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: var(--bg-card);
  border: 5px solid var(--bg-card);
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.profile-badge-top {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--gold);
  color: #000;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-body {
  padding: 50px 28px 28px;
  overflow-y: auto;
  flex: 1;
}

.profile-body::-webkit-scrollbar {
  width: 6px;
}

.profile-body::-webkit-scrollbar-track {
  background: transparent;
}

.profile-body::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.2);
  border-radius: 10px;
}

.profile-body::-webkit-scrollbar-thumb:hover {
  background: var(--primary-h);
}

.profile-name {
  font-size: 24px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
  margin-bottom: 2px;
}

.profile-tag {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 24px;
  font-weight: 500;
}

.profile-status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.pill {
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-phase {
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.pill-role {
  background: rgba(236, 72, 153, 0.12);
  color: #f9a8d4;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.prof-stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 12px;
  border-radius: 24px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.prof-stat-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.prof-stat-val {
  font-size: 22px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 4px;
}

.prof-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.profile-roles-section {
  margin-bottom: 32px;
}

.section-subtitle {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.section-subtitle::before {
  content: '';
  width: 8px;
  height: 2px;
  background: var(--accent);
  border-radius: 4px;
}

.roles-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.role-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.role-tag:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.02);
}

.role-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}