/* =============================================
   NARUTO TCG v4 – STYLE.CSS
   ============================================= */
:root {
  --bg: #07070d;
  --bg2: #0e0e18;
  --bg3: #141424;
  --panel: #181829;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #ff6b00;
  --accent2: #ffd700;
  --glow-accent: rgba(255, 107, 0, 0.35);
  --text: #eaeaf5;
  --muted: #7b7b99;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  --t: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --discord: #5865f2;
  --discord-dark: #313338;
  --discord-card: #2b2d31;
  --discord-input: #1e1f22;

  /* Villages */
  --konoha: #2e7d32;
  --konoha2: #4caf50;
  --suna: #c68a12;
  --suna2: #ffd700;
  --nukenin: #8b0000;
  --nukenin2: #ff1744;
  --autre: #555566;

  /* Ranks */
  --rank-C: #9e9e9e;
  --rank-B: #29b6f6;
  --rank-A: #ab47bc;
  --rank-S: #ffa726;
  --rank-SS: #ff3d00;
}

/* ===== SHARINGAN TOMOE LOGO ===== */
.sharingan-hud-logo {
  width: 38px;
  height: 38px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 10px rgba(255, 30, 45, 0.8));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.sharingan-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.sharingan-orbit {
  transform-origin: 24px 24px;
  animation: tomoeSpin 10s linear infinite;
  transition: animation-duration 0.4s ease;
}
.nav-brand:hover .sharingan-orbit {
  animation: tomoeSpin 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}
.nav-brand:hover .sharingan-hud-logo {
  transform: scale(1.12);
  filter: drop-shadow(0 0 18px rgba(255, 30, 45, 1)) drop-shadow(0 0 28px rgba(255, 100, 0, 0.7));
}
.sharingan-glow-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(255, 40, 50, 0.4);
  animation: chakraPulse 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes tomoeSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes chakraPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50%      { transform: scale(1.18); opacity: 0.9; box-shadow: 0 0 15px rgba(255, 30, 40, 0.5); }
}

.tcg-gold {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

html {
  scroll-behavior: smooth;
}

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

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ===== ANIME NARUTO ANIMATED BACKGROUND STAGE ===== */
.naruto-anime-stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(circle at 78% 18%, #1f030a 0%, #11050c 35%, #08070e 70%, #030306 100%);
}

/* Blood Moon Tsukuyomi */
.tsukuyomi-moon {
  position: absolute;
  top: 4%;
  right: 8%;
  width: clamp(140px, 18vw, 240px);
  height: clamp(140px, 18vw, 240px);
  border-radius: 50%;
  pointer-events: none;
  animation: moonPulse 8s ease-in-out infinite alternate;
}
.moon-core {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ff4d5a 0%, #d80b1e 40%, #7d000b 80%, #300004 100%);
  box-shadow: 
    0 0 35px rgba(255, 30, 45, 0.7),
    0 0 90px rgba(220, 10, 30, 0.45),
    0 0 160px rgba(160, 0, 20, 0.25);
  position: relative;
  overflow: hidden;
}
/* Moon Crater Details */
.moon-core::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: 
    radial-gradient(circle at 65% 55%, rgba(40, 0, 5, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 35% 70%, rgba(30, 0, 4, 0.4) 0%, transparent 35%),
    radial-gradient(circle at 50% 25%, rgba(60, 0, 8, 0.3) 0%, transparent 30%);
}
.moon-halo {
  position: absolute;
  inset: -25%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 30, 40, 0.2) 0%, transparent 70%);
  filter: blur(12px);
  animation: haloBreath 6s ease-in-out infinite alternate;
}
.moon-clouds {
  position: absolute;
  top: 35%;
  left: -40%;
  width: 180%;
  height: 35px;
  background: linear-gradient(90deg, transparent 0%, rgba(10, 10, 16, 0.7) 40%, rgba(10, 10, 16, 0.8) 60%, transparent 100%);
  filter: blur(8px);
  transform: rotate(-8deg);
  animation: cloudDrift 25s ease-in-out infinite alternate;
}
@keyframes moonPulse {
  0%   { transform: scale(1); filter: brightness(0.95); }
  100% { transform: scale(1.04); filter: brightness(1.15); }
}
@keyframes haloBreath {
  0%   { opacity: 0.5; transform: scale(0.95); }
  100% { opacity: 0.9; transform: scale(1.1); }
}
@keyframes cloudDrift {
  0%   { transform: translateX(-15px) rotate(-8deg); }
  100% { transform: translateX(25px) rotate(-6deg); }
}

/* Japanese Kanji Watermark */
.kanji-watermark {
  position: absolute;
  left: 3%;
  top: 14%;
  font-size: clamp(14rem, 26vw, 34rem);
  font-family: 'Cinzel Decorative', serif;
  font-weight: 900;
  color: rgba(255, 30, 45, 0.032);
  text-shadow: 0 0 50px rgba(255, 20, 30, 0.08);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

/* Layered Chakra Mist */
.chakra-mist {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.mist-1 {
  background: radial-gradient(ellipse at 20% 90%, rgba(255, 40, 0, 0.1) 0%, transparent 60%);
  animation: mistMove1 14s ease-in-out infinite alternate;
}
.mist-2 {
  background: radial-gradient(ellipse at 80% 85%, rgba(180, 0, 40, 0.12) 0%, transparent 65%);
  animation: mistMove2 18s ease-in-out infinite alternate;
}
@keyframes mistMove1 { 0% { opacity: 0.4; transform: translateY(0); } 100% { opacity: 0.85; transform: translateY(-20px); } }
@keyframes mistMove2 { 0% { opacity: 0.5; transform: translateY(0); } 100% { opacity: 0.9; transform: translateY(-30px); } }

/* Naruto Canvas (Embers & Konoha Leaves) */
#narutoCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* ===== NAVBAR HUD ===== */
#navbar, .hud-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 2rem;
  background: rgba(10, 8, 14, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 50, 40, 0.35);
  box-shadow: 0 4px 30px rgba(255, 20, 10, 0.18), 0 2px 10px rgba(0, 0, 0, 0.7);
}
.hud-nav::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 60, 40, 0.9) 50%, transparent 100%);
  box-shadow: 0 0 12px rgba(255, 50, 30, 0.8);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.nav-logo {
  font-size: 1.5rem;
  animation: spinSlow 6s linear infinite;
  display: inline-block;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

.nav-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--t);
}

.nav-btn:hover, .nav-btn.active {
  background: rgba(255, 107, 0, 0.14);
  border-color: var(--accent);
  color: var(--accent);
}

.admin-btn {
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0.3rem;
}
.admin-btn:hover {
  background: rgba(255, 215, 0, 0.15) !important;
  border-color: #ffd700 !important;
}

/* Discord Button in Navbar */
.discord-login-btn {
  background: var(--discord) !important;
  color: #fff !important;
  border: none !important;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
  border-radius: 8px !important;
}
.discord-login-btn:hover {
  background: #4752c4 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6);
}

/* User Capsule when logged in */
.nav-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.4);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  cursor: default;
}
.avatar-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--discord);
  object-fit: cover;
  background: #111;
}
.status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background: #23a55a;
  border-radius: 50%;
  border: 2px solid #000;
}
.nav-user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
#navUsername {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}
.nav-user-tag {
  font-size: 0.68rem;
  color: var(--discord);
  font-weight: 600;
}
.logout-btn {
  background: rgba(255, 60, 60, 0.15) !important;
  color: #ff5555 !important;
  border: 1px solid rgba(255, 60, 60, 0.3) !important;
  font-size: 0.75rem !important;
  padding: 0.25rem 0.6rem !important;
  border-radius: 6px !important;
}
.logout-btn:hover {
  background: rgba(255, 60, 60, 0.3) !important;
}

.nav-points {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-weight: 700;
  color: var(--accent2);
  font-size: 0.95rem;
}

/* ===== PAGES ===== */
.page {
  display: none;
  padding-top: 75px;
  min-height: 100vh;
  position: relative;
  z-index: 10;
}
.page.active {
  display: block;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: calc(100vh - 75px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 6%;
  background: radial-gradient(ellipse at 20% 50%, rgba(255, 107, 0, 0.09) 0%, transparent 65%),
              radial-gradient(ellipse at 80% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 55%);
  overflow: hidden;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: fp var(--dur, 5s) ease-in-out var(--del, 0s) infinite;
}
@keyframes fp {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  20% { opacity: 0.8; }
  80% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-20px) scale(1); }
}

.hero-content {
  max-width: 580px;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.35rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  animation: pulseGlow 2.5s ease infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 var(--glow-accent); }
  50% { box-shadow: 0 0 0 10px transparent; }
}

.hero-title {
  font-family: 'Cinzel Decorative', cursive;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 45%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 0 35px var(--glow-accent));
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2.2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff8c00);
  color: #fff;
  border: none;
  padding: 0.75rem 1.8rem;
  border-radius: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--t);
  box-shadow: 0 4px 22px var(--glow-accent);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--glow-accent);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.75rem 1.8rem;
  border-radius: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--t);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-danger {
  background: rgba(255, 50, 50, 0.12);
  color: #ff4444;
  border: 1px solid rgba(255, 50, 50, 0.3);
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--t);
}
.btn-danger:hover {
  background: rgba(255, 50, 50, 0.25);
  transform: translateY(-2px);
}

/* ===== HUD BUTTONS & ACCENTS ===== */
.hud-btn {
  position: relative;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.hud-btn-primary {
  background: linear-gradient(135deg, #ff3344, #ff7b00) !important;
  border: 1px solid rgba(255, 120, 0, 0.5) !important;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: 0 0 25px rgba(255, 50, 20, 0.45) !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800 !important;
}
.hud-btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 35px rgba(255, 60, 20, 0.75) !important;
  filter: brightness(1.15);
}
.hud-btn-secondary {
  background: rgba(20, 12, 18, 0.6) !important;
  border: 1px solid rgba(255, 215, 0, 0.4) !important;
  color: var(--gold) !important;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.15) !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800 !important;
}
.hud-btn-secondary:hover {
  background: rgba(255, 215, 0, 0.12) !important;
  border-color: #ffd700 !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.4) !important;
}
.hud-chakra-meter {
  background: linear-gradient(135deg, rgba(255, 30, 45, 0.18), rgba(255, 215, 0, 0.14)) !important;
  border: 1px solid rgba(255, 215, 0, 0.5) !important;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.22) !important;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.06em;
}
.chakra-label {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  color: var(--accent2);
  margin-left: 5px;
  font-weight: 900;
  opacity: 0.9;
}
.hud-badge {
  background: rgba(255, 30, 40, 0.12);
  border-color: rgba(255, 60, 40, 0.5) !important;
  color: #ff5566 !important;
  box-shadow: 0 0 20px rgba(255, 40, 50, 0.25);
  font-size: 0.75rem !important;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff2035;
  box-shadow: 0 0 8px #ff2035;
  animation: pulseDot 1.5s ease-in-out infinite alternate;
}
@keyframes pulseDot { 0% { opacity: 0.4; } 100% { opacity: 1; transform: scale(1.3); } }

/* ===== MADARA SS CENTERPIECE SHOWCASE ===== */
.hero-cards-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.showcase-madara {
  width: 230px;
  height: 335px;
  border-radius: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem;
  background: linear-gradient(160deg, #1c0005 0%, #3a000d 50%, #7d0012 100%);
  border: 2px solid rgba(255, 23, 68, 0.6);
  box-shadow: 
    0 0 35px rgba(255, 23, 68, 0.45),
    0 25px 60px rgba(0, 0, 0, 0.85);
  animation: madaraFloat 5s ease-in-out infinite;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s;
}
.showcase-madara:hover {
  transform: translateY(-12px) scale(1.05) rotate(-2deg);
  box-shadow: 
    0 0 55px rgba(255, 40, 70, 0.75),
    0 30px 75px rgba(0, 0, 0, 0.95);
  border-color: #ff3355;
}
@keyframes madaraFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(1deg); }
}
.sc-badge-corner {
  align-self: flex-end;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #ff1744, #ff8c00);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.1em;
  box-shadow: 0 0 12px rgba(255, 23, 68, 0.7);
}
.sc-sharingan-stamp {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 1.25rem;
  filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.8));
}
.sc-meteor-art {
  font-size: 5rem;
  text-align: center;
  margin: auto 0;
  filter: drop-shadow(0 0 25px rgba(255, 80, 0, 0.85));
  animation: meteorWobble 4s ease-in-out infinite alternate;
}
@keyframes meteorWobble {
  0%   { transform: scale(1) translateY(0); filter: drop-shadow(0 0 20px rgba(255, 60, 0, 0.7)); }
  100% { transform: scale(1.08) translateY(-6px); filter: drop-shadow(0 0 35px rgba(255, 120, 0, 1)); }
}
.sc-info {
  background: rgba(10, 2, 5, 0.85);
  backdrop-filter: blur(10px);
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 30, 50, 0.3);
  text-align: center;
}
.sc-info .sc-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.sc-info .sc-jutsu {
  font-size: 0.78rem;
  color: #ff9933;
  font-weight: 700;
  margin-bottom: 3px;
}
.sc-info .sc-type {
  font-size: 0.72rem;
  color: var(--nukenin2);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== DAILY BANNER ===== */
.daily-banner {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.14), rgba(255, 215, 0, 0.08));
  border: 1px solid rgba(255, 107, 0, 0.35);
  border-radius: 16px;
  margin: 1.5rem 6% 0;
  padding: 1.3rem 2rem;
  display: none;
}
.daily-banner.show { display: block; }
.daily-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.daily-icon { font-size: 2.8rem; }
.daily-text strong { font-size: 1.15rem; color: var(--accent2); }
.daily-text p { font-size: 0.92rem; color: var(--muted); }

/* ===== STATS ===== */
.stats-section {
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  padding: 3rem 6%;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ===== RANK LEGEND ===== */
.rank-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem 6%;
}
.rank-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.6rem;
  min-width: 110px;
  transition: var(--t);
}
.rank-item:hover { transform: translateY(-4px); }
.rank-badge {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid currentColor;
}
.rank-name { font-weight: 700; font-size: 0.9rem; }
.rank-rate { font-size: 0.78rem; color: var(--muted); }
.rank-C .rank-badge { color: var(--rank-C); border-color: var(--rank-C); background: rgba(158,158,158,.1); }
.rank-B .rank-badge { color: var(--rank-B); border-color: var(--rank-B); background: rgba(41,182,246,.1); }
.rank-A .rank-badge { color: var(--rank-A); border-color: var(--rank-A); background: rgba(171,71,188,.1); }
.rank-S .rank-badge { color: var(--rank-S); border-color: var(--rank-S); background: rgba(255,167,38,.1); }
.rank-SS .rank-badge { color: var(--rank-SS); border-color: var(--rank-SS); background: rgba(255,61,0,.15); animation: pulseGlow 1.8s infinite; }

/* ===== SECTION ===== */
.section { padding: 3rem 6%; }
.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 1.8rem;
  color: var(--accent);
  text-align: center;
  letter-spacing: 0.05em;
}

/* ===== PAGE HEADER ===== */
.page-header {
  text-align: center;
  padding: 3.5rem 6% 1.5rem;
}
.page-header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.page-header p {
  color: var(--muted);
  font-size: 1rem;
  margin-top: 0.3rem;
}

/* ===== GALLERY FILTERS ===== */
.gallery-filters {
  padding: 1rem 6%;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  min-width: 60px;
}
.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--t);
}
.filter-btn:hover, .filter-btn.active, .filter-btn.active2 {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.konoha-btn.active { background: var(--konoha) !important; border-color: var(--konoha2) !important; }
.suna-btn.active   { background: var(--suna) !important; border-color: var(--suna2) !important; }
.nukenin-btn.active { background: var(--nukenin) !important; border-color: var(--nukenin2) !important; }
.filter-btn.rank-C.active { background: var(--rank-C) !important; border-color: var(--rank-C) !important; color: #111 !important; }
.filter-btn.rank-B.active { background: var(--rank-B) !important; border-color: var(--rank-B) !important; color: #111 !important; }
.filter-btn.rank-A.active { background: var(--rank-A) !important; border-color: var(--rank-A) !important; color: #fff !important; }
.filter-btn.rank-S.active { background: var(--rank-S) !important; border-color: var(--rank-S) !important; color: #111 !important; }
.filter-btn.rank-SS.active { background: var(--rank-SS) !important; border-color: var(--rank-SS) !important; color: #fff !important; }

.search-input {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 1rem;
  border-radius: 50px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.92rem;
  width: 240px;
  outline: none;
  transition: var(--t);
}
.search-input:focus { border-color: var(--accent); }

/* ===== CARDS GRID ===== */
.cards-grid, .featured-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  justify-content: center;
  padding: 1rem 6% 4rem;
}
.empty-msg {
  color: var(--muted);
  text-align: center;
  padding: 3rem;
  width: 100%;
  font-size: 1.05rem;
}

/* =============================================
   TCG CARD COMPONENT
   ============================================= */
.tcg-card {
  width: 220px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s;
  cursor: pointer;
  user-select: none;
  background: var(--card-bg, linear-gradient(160deg, #111, #1a1a2e));
}
.tcg-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: var(--card-border, linear-gradient(135deg, #ff6b00, #ffd700, #ff6b00));
  z-index: -1;
}
.tcg-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 35px var(--glow, rgba(255,107,0,0.3));
}
.card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s;
}
.tcg-card:hover .card-shine { opacity: 1; }

.card-village-banner {
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 4px 8px;
  text-transform: uppercase;
  color: #fff;
}
.village-Konoha .card-village-banner  { background: linear-gradient(135deg, var(--konoha), var(--konoha2)); }
.village-Suna   .card-village-banner  { background: linear-gradient(135deg, var(--suna), var(--suna2)); }
.village-Nukenin .card-village-banner { background: linear-gradient(135deg, var(--nukenin), var(--nukenin2)); }
.village-Autre  .card-village-banner  { background: linear-gradient(135deg, #333, #666); }

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.4);
}
.card-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.card-rank-badge {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 4px;
  border: 2px solid currentColor;
}
.card-rank-badge.rank-C { color: var(--rank-C); }
.card-rank-badge.rank-B { color: var(--rank-B); }
.card-rank-badge.rank-A { color: var(--rank-A); }
.card-rank-badge.rank-S { color: var(--rank-S); }
.card-rank-badge.rank-SS { color: var(--rank-SS); animation: pulseGlow 1.8s infinite; }

.card-art {
  width: 100%;
  height: 115px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.card-art-emoji { font-size: 3.8rem; filter: drop-shadow(0 0 10px rgba(255,255,255,0.2)); }
.card-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 65%, rgba(0, 0, 0, 0.6) 100%);
}

.card-sub-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  letter-spacing: 0.03em;
}
.card-sub-banner span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-body {
  padding: 8px 10px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.card-desc {
  font-size: 0.68rem;
  color: #f1f5f9;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-history {
  font-size: 0.64rem;
  color: #94a3b8;
  line-height: 1.3;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 4px;
}

/* Card Footer: RP, PVP, Lore Capsules */
.card-footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 6px;
}
.card-stat-pill {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 3px 2px;
  transition: var(--t);
}
.card-stat-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}
.stat-lbl-tag {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.55rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.stat-grade {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Rank Grade Badges */
.grade-SS {
  color: #fff;
  background: linear-gradient(135deg, #ff1744, #ff9100);
  box-shadow: 0 0 8px rgba(255, 23, 68, 0.6);
  text-shadow: 0 0 4px #000;
}
.grade-S {
  color: #111;
  background: linear-gradient(135deg, #ffd700, #ffab00);
  box-shadow: 0 0 7px rgba(255, 215, 0, 0.5);
  font-weight: 900;
}
.grade-A {
  color: #fff;
  background: linear-gradient(135deg, #ab47bc, #8e24aa);
  box-shadow: 0 0 6px rgba(171, 71, 188, 0.45);
}
.grade-B {
  color: #fff;
  background: linear-gradient(135deg, #00b0ff, #0091ea);
  box-shadow: 0 0 6px rgba(0, 176, 255, 0.45);
}
.grade-C {
  color: #fff;
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
}
.grade-D {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* =============================================
   DISTINCT RANK-SPECIFIC VISUAL EFFECTS
   ============================================= */

/* --- RANK SS: Legendary Tsukuyomi / Polychromatic Aura & Holographic Sweep --- */
.rank-SS { --glow: rgba(255, 61, 0, 0.7); }
.rank-SS .tcg-card {
  box-shadow: 0 10px 40px rgba(255, 20, 0, 0.4), 0 0 35px rgba(255, 215, 0, 0.35);
  animation: pulseAuraSS 3.5s ease-in-out infinite alternate;
}
.rank-SS .tcg-card::before {
  background: linear-gradient(135deg, #ff0055, #ffd700, #9c27b0, #00d4ff, #ff3d00, #ffd700) !important;
  animation: glowShift 2.2s linear infinite !important;
  background-size: 350% 350% !important;
}
.rank-SS .card-shine {
  opacity: 0.85 !important;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 215, 0, 0.35) 40%, rgba(255, 0, 128, 0.4) 50%, rgba(0, 229, 255, 0.35) 60%, transparent 80%) !important;
  background-size: 250% 250% !important;
  animation: holoSweep 3.5s ease-in-out infinite !important;
}
@keyframes pulseAuraSS {
  0%   { filter: drop-shadow(0 0 10px rgba(255, 61, 0, 0.6)); }
  100% { filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 35px rgba(255, 0, 120, 0.45)); }
}
@keyframes holoSweep {
  0%   { background-position: -120% -120%; }
  50%  { background-position: 120% 120%; }
  100% { background-position: -120% -120%; }
}

/* --- RANK S: Radiant Molten Gold Sheen & Amber Aura --- */
.rank-S { --glow: rgba(255, 170, 0, 0.6); }
.rank-S .tcg-card {
  box-shadow: 0 8px 35px rgba(255, 160, 0, 0.35), 0 0 25px rgba(255, 215, 0, 0.3);
}
.rank-S .tcg-card::before {
  background: linear-gradient(135deg, #ff8c00, #ffd700, #fff275, #ffaa00, #ff8c00) !important;
  animation: glowShift 2.8s linear infinite !important;
  background-size: 250% !important;
}
.rank-S .card-shine {
  opacity: 0.75 !important;
  background: linear-gradient(120deg, transparent 25%, rgba(255, 240, 150, 0.45) 45%, rgba(255, 170, 0, 0.35) 55%, transparent 75%) !important;
  background-size: 200% 200% !important;
  animation: goldSweep 4s ease-in-out infinite !important;
}
@keyframes goldSweep {
  0%   { background-position: -90% -90%; }
  50%  { background-position: 90% 90%; }
  100% { background-position: -90% -90%; }
}

/* --- RANK A: Susanoo Amethyst Electric Purple Aura --- */
.rank-A { --glow: rgba(171, 71, 188, 0.5); }
.rank-A .tcg-card {
  box-shadow: 0 6px 30px rgba(171, 71, 188, 0.35), 0 0 20px rgba(224, 64, 251, 0.25);
}
.rank-A .tcg-card::before {
  background: linear-gradient(135deg, #6a1b9a, #ab47bc, #e040fb, #ab47bc, #6a1b9a) !important;
  animation: glowShift 3.6s linear infinite !important;
  background-size: 220% !important;
}
.rank-A .card-shine {
  opacity: 0.65 !important;
  background: linear-gradient(125deg, transparent 30%, rgba(224, 64, 251, 0.35) 50%, transparent 70%) !important;
  background-size: 200% 200% !important;
  animation: purpleSweep 4.5s ease-in-out infinite !important;
}
@keyframes purpleSweep {
  0%   { background-position: -80% -80%; }
  50%  { background-position: 80% 80%; }
  100% { background-position: -80% -80%; }
}

/* --- RANK B: Azure Cyan Lightning Aura --- */
.rank-B { --glow: rgba(0, 212, 255, 0.45); }
.rank-B .tcg-card {
  box-shadow: 0 5px 25px rgba(0, 212, 255, 0.3);
}
.rank-B .tcg-card::before {
  background: linear-gradient(135deg, #01579b, #00d4ff, #80d8ff, #00d4ff, #01579b) !important;
  animation: glowShift 4.2s linear infinite !important;
  background-size: 200% !important;
}
.rank-B .card-shine {
  opacity: 0.55 !important;
  background: linear-gradient(125deg, transparent 35%, rgba(0, 212, 255, 0.3) 50%, transparent 65%) !important;
  background-size: 200% 200% !important;
  animation: cyanSweep 5s ease-in-out infinite !important;
}
@keyframes cyanSweep {
  0%   { background-position: -70% -70%; }
  50%  { background-position: 70% 70%; }
  100% { background-position: -70% -70%; }
}

/* --- RANK C & D: Authentic Konoha Shinobi Styling --- */
.rank-C { --glow: rgba(76, 175, 80, 0.25); }
.rank-C .tcg-card::before {
  background: linear-gradient(135deg, #1b5e20, #4caf50, #81c784, #4caf50, #1b5e20);
}
.rank-D { --glow: rgba(148, 163, 184, 0.2); }
.rank-D .tcg-card::before {
  background: linear-gradient(135deg, #334155, #64748b, #334155);
}

@keyframes glowShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Admin Image Framing & Centering Box */
.img-framing-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.2rem;
}
.framing-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.framing-sliders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}
.framing-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.framing-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #cbd5e1;
}
.framing-label strong {
  color: var(--gold);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
}
.framing-item input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}
.framing-presets {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.btn-framing {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--t);
}
.btn-framing:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: var(--gold);
  color: var(--gold);
}

/* Village gradients fallback */
.village-Konoha .tcg-card::before { background: linear-gradient(135deg, var(--konoha), var(--konoha2)); }
.village-Suna   .tcg-card::before { background: linear-gradient(135deg, var(--suna), var(--suna2)); }
.village-Nukenin .tcg-card::before { background: linear-gradient(135deg, var(--nukenin), var(--nukenin2)); }

/* ===== BOOSTERS & DAILY ===== */
.points-display {
  display: flex;
  gap: 2rem;
  justify-content: center;
  padding: 2rem 6% 0;
  flex-wrap: wrap;
}
.points-box, .streak-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 2.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 180px;
}
.points-big, .streak-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}
.points-big { color: var(--accent2); }
.streak-num { color: var(--accent); }
.points-box span:last-child, .streak-box span:last-child {
  font-size: 0.85rem;
  color: var(--muted);
}

.daily-section {
  padding: 2.5rem 6%;
  text-align: center;
}
.daily-rewards-grid {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.daily-day {
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1rem 0.8rem;
  min-width: 82px;
  text-align: center;
  transition: var(--t);
}
.daily-day.claimed {
  background: rgba(0, 200, 100, 0.08);
  border-color: #00cc66;
  opacity: 0.6;
}
.daily-day.today {
  background: rgba(255, 107, 0, 0.14);
  border-color: var(--accent);
  animation: pulseGlow 2s infinite;
}
.daily-day.locked { opacity: 0.35; }
.day-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.day-reward { font-size: 0.9rem; font-weight: 700; }
.daily-claim-btn { margin: 0.5rem auto; display: block; }
.daily-timer {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.6rem;
}

/* ===== BOOSTERS SHOP ===== */
.boosters-shop {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem 6% 4rem;
}
.booster-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem 1.6rem;
  text-align: center;
  width: 225px;
  overflow: hidden;
  transition: var(--t);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
  cursor: pointer;
}
.booster-card:hover { transform: translateY(-7px); }
.booster-basic:hover     { border-color: #bbb; box-shadow: 0 0 35px rgba(200, 200, 200, 0.2); }
.booster-rare:hover      { border-color: var(--rank-B); box-shadow: 0 0 35px rgba(41, 182, 246, 0.3); }
.booster-epic:hover      { border-color: var(--rank-A); box-shadow: 0 0 35px rgba(171, 71, 188, 0.35); }
.booster-legendary:hover { border-color: var(--accent); box-shadow: 0 0 45px rgba(255, 107, 0, 0.45); }

.booster-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.booster-card:hover .booster-glow { opacity: 1; }
.booster-pack-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.pack-icon {
  font-size: 3.8rem;
  animation: floatPack 3s ease-in-out infinite;
  display: inline-block;
}
@keyframes floatPack {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.pack-foil-tag {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  text-transform: uppercase;
}
.booster-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}
.booster-legendary .booster-name {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.booster-desc { font-size: 0.8rem; color: var(--muted); }
.booster-contents {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}
.rchance {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid currentColor;
}
.rchance.rank-C { color: var(--rank-C); }
.rchance.rank-B { color: var(--rank-B); }
.rchance.rank-A { color: var(--rank-A); }
.rchance.rank-S { color: var(--rank-S); }
.rchance.rank-SS { color: var(--rank-SS); }
.booster-price {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--accent2);
}

/* =============================================
   DISCORD OAUTH2 AUTHORIZATION MODAL
   ============================================= */
.discord-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.discord-modal-overlay.active { display: flex; }

.discord-auth-window {
  background: var(--discord-dark);
  border-radius: 12px;
  width: 100%;
  max-width: 490px;
  color: #dbdee1;
  font-family: 'Inter', sans-serif;
  position: relative;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
  animation: discordPop 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  overflow: hidden;
}
@keyframes discordPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.discord-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: #949ba4;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.discord-close-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }

.discord-auth-header {
  padding: 1.8rem 1.8rem 1rem;
  text-align: center;
}
.discord-logo-box {
  margin-bottom: 0.8rem;
}
.discord-auth-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f2f3f5;
  line-height: 1.35;
  margin-bottom: 1.2rem;
}
.discord-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--discord-card);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.app-icon { font-size: 1.8rem; }
.app-info { text-align: left; line-height: 1.2; }
.app-name { font-weight: 700; font-size: 0.95rem; color: #fff; display: flex; align-items: center; gap: 0.3rem; }
.verified-check { background: var(--discord); color: #fff; font-size: 0.65rem; border-radius: 50%; padding: 2px 5px; }
.app-sub { font-size: 0.75rem; color: #949ba4; }

/* Discord Developer Portal Setup */
.discord-portal-setup {
  padding: 0.5rem 1.8rem;
}
.discord-warning-box {
  background: rgba(255, 170, 0, 0.15);
  border: 1px solid #ffaa00;
  color: #ffcc00;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}
.discord-warning-box code {
  background: rgba(0, 0, 0, 0.3);
  padding: 1px 4px;
  border-radius: 3px;
}
.setup-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.setup-step {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}
.step-num {
  width: 26px;
  height: 26px;
  background: var(--discord);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-desc {
  flex: 1;
  font-size: 0.88rem;
  color: #dbdee1;
  line-height: 1.4;
}
.redirect-copy-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.redirect-input {
  flex: 1;
  background: var(--discord-input);
  border: 1px solid #3f4147;
  color: #00ffcc;
  padding: 0.45rem 0.8rem;
  border-radius: 5px;
  font-size: 0.85rem;
  font-family: monospace;
  outline: none;
}
.btn-copy-uri {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.45rem 0.9rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: 0.2s;
}
.btn-copy-uri:hover {
  background: var(--discord);
  border-color: var(--discord);
}
.dac-input {
  width: 100%;
  background: var(--discord-input);
  border: 1px solid #3f4147;
  color: #fff;
  padding: 0.55rem 0.85rem;
  border-radius: 5px;
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
}
.dac-input:focus { border-color: var(--discord); }

.discord-auth-footer {
  background: var(--discord-card);
  padding: 1rem 1.8rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}
.btn-discord-cancel {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
}
.btn-discord-cancel:hover { text-decoration: underline; }
.btn-discord-authorize {
  background: var(--discord);
  border: none;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.65rem 1.6rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.1s;
}
.btn-discord-authorize:hover {
  background: #4752c4;
  transform: translateY(-1px);
}

/* =============================================
   PACK OPENING OVERLAY & REALISTIC FOIL POUCH
   ============================================= */
.pack-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}
.pack-overlay.active { display: flex; }
.pack-overlay-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(20, 0, 45, 0.98) 0%, rgba(4, 4, 14, 0.99) 100%);
}
.pack-light-rays {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 107, 0, 0.2) 0%, transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}
.pack-light-rays.active {
  opacity: 1;
  animation: spinRays 8s linear infinite;
}
@keyframes spinRays { to { transform: rotate(360deg); } }

.pack-step {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
.pack-badge-pill {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--accent2);
  border: 1px solid rgba(255, 215, 0, 0.4);
  padding: 0.35rem 1.2rem;
  border-radius: 50px;
  background: rgba(0,0,0,0.4);
}

/* Interactive Foil Booster Pack */
.pack-interactive-stage {
  perspective: 1000px;
  margin: 1rem 0;
}
.foil-booster-pack {
  width: 220px;
  height: 330px;
  position: relative;
  cursor: pointer;
  user-select: none;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8));
  transition: transform 0.3s;
  animation: packFloatIdle 3s ease-in-out infinite;
}
.foil-booster-pack:hover {
  transform: scale(1.05) rotate(-1deg);
}
@keyframes packFloatIdle {
  0%, 100% { transform: translateY(0) rotateY(0deg); }
  50% { transform: translateY(-10px) rotateY(4deg); }
}

/* Serrated edges (dents de scie en haut et en bas) */
.serrated-edge-top, .serrated-edge-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background-size: 16px 10px;
  background-repeat: repeat-x;
  z-index: 5;
}
.serrated-edge-top {
  top: 0;
  background-image: radial-gradient(circle at 8px 0px, transparent 6px, #2a1100 7px);
}
.serrated-edge-bottom {
  bottom: 0;
  background-image: radial-gradient(circle at 8px 10px, transparent 6px, #2a1100 7px);
}

/* Tear off strip */
.foil-top-tear {
  position: absolute;
  top: -2px;
  left: 4px;
  right: 4px;
  height: 38px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 6px 6px 0 0;
  z-index: 10;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8);
  transform-origin: top left;
  transition: transform 0.6s cubic-bezier(0.1, 0.9, 0.2, 1), opacity 0.6s;
}
.tear-line {
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  border-bottom: 2px dashed rgba(255, 215, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding-bottom: 2px;
}
.scissors-icon { font-size: 0.85rem; color: #ffd700; }
.tear-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
}

/* Foil main body */
.foil-main-body {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  border-radius: 10px;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: visible;
  box-shadow: none;
}
.foil-pack-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.foil-pack-wrapper .foil-pack-svg {
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.85));
}
.foil-sheen {
  position: absolute;
  inset: -100%;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.3) 50%, transparent 60%);
  animation: foilShimmer 4s infinite;
  pointer-events: none;
}
@keyframes foilShimmer {
  0% { transform: translateX(-100%) translateY(-100%); }
  50%, 100% { transform: translateX(100%) translateY(100%); }
}

.foil-emblem {
  font-size: 4.8rem;
  margin-bottom: 0.4rem;
  filter: drop-shadow(0 0 15px rgba(255, 107, 0, 0.5));
}
.foil-title {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}
.foil-subtitle {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent2);
  margin-top: 0.3rem;
  letter-spacing: 0.15em;
}
.foil-bottom-banner {
  margin-top: auto;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
}

/* Tear Animation */
.foil-booster-pack.tearing .foil-top-tear {
  transform: rotate(-35deg) translateY(-80px) translateX(-40px);
  opacity: 0;
}
.foil-booster-pack.tearing .foil-main-body {
  animation: packBurst 0.7s forwards;
}
@keyframes packBurst {
  0% { transform: scale(1); }
  50% { transform: scale(1.15) rotate(2deg); filter: brightness(2); }
  100% { transform: scale(0.1) translateY(100px); opacity: 0; }
}

.pack-call-to-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  font-weight: 600;
}
.pulse-arrow {
  animation: pulseArrow 1.5s infinite;
  color: var(--accent);
}
@keyframes pulseArrow {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ===== PACK STEP 2: CARDS REVEAL ROW ===== */
.reveal-header { text-align: center; }
.reveal-header h2 {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 1.8rem;
  background: linear-gradient(135deg, #fff, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.reveal-header p {
  color: var(--muted);
  font-size: 0.95rem;
}

.pack-cards-row {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1.5rem 0;
  width: 100%;
}

.pack-close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--t);
}
.pack-close-btn:hover {
  background: #ff4444;
  border-color: #ff4444;
  transform: rotate(90deg);
}

/* 3D Flip Card Outer & Inner */
.flip-card-outer {
  width: 205px;
  height: 330px;
  perspective: 1000px;
  cursor: pointer;
}
.flip-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.flip-card-outer.revealed .flip-card-inner {
  transform: rotateY(180deg);
}

/* Front & Back Faces */
.flip-card-front, .flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius);
  overflow: hidden;
}
.flip-card-front {
  transform: rotateY(0deg);
}
.flip-card-back {
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.flip-card-back > div {
  width: 100%;
  height: 100%;
}

/* Holographic Card Back Design */
.card-back-face {
  background: linear-gradient(135deg, #090014, #19002e, #090014);
  border: 2px solid rgba(255, 107, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  position: relative;
}
.card-back-face::before {
  content: '🛡️';
  font-size: 3.8rem;
  opacity: 0.25;
  animation: spinSlow 14s linear infinite;
}
.card-back-face::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 107, 0, 0.05) 10px, rgba(255, 107, 0, 0.05) 12px);
}
.card-back-tag {
  position: absolute;
  bottom: 12px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
}

/* Sized down tcg-card inside flip back */
.flip-card-back .tcg-card {
  width: 100% !important;
  height: 100% !important;
  cursor: default;
}
.flip-card-back .card-art { height: 100px !important; }
.flip-card-back .card-body { min-height: 55px !important; padding: 6px 10px !important; }
.flip-card-back .card-name { font-size: 0.65rem !important; }
.flip-card-back .card-desc { font-size: 0.62rem !important; }

/* Flip Card Hover */
.flip-card-outer:not(.revealed):hover .flip-card-inner {
  transform: translateY(-8px) scale(1.04) rotateZ(-1deg);
}

.reveal-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.pack-summary-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem 2rem;
  animation: popIn 0.4s ease;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.summary-congrats {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--accent2);
}

/* Screen Flash Overlay */
.flash-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.05s;
}
.flash-overlay.active {
  animation: flashBurst 0.5s ease forwards;
}
@keyframes flashBurst {
  0% { opacity: 0.85; }
  100% { opacity: 0; }
}

/* ===== COLLECTION STATS ===== */
.collection-stats {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem 6%;
}
.coll-stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 1.6rem;
  text-align: center;
  min-width: 100px;
}
.coll-stat-val {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
}
.coll-stat-lbl {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
}
.coll-stat.rank-C .coll-stat-val { color: var(--rank-C); }
.coll-stat.rank-B .coll-stat-val { color: var(--rank-B); }
.coll-stat.rank-A .coll-stat-val { color: var(--rank-A); }
.coll-stat.rank-S .coll-stat-val { color: var(--rank-S); }
.coll-stat.rank-SS .coll-stat-val { color: var(--rank-SS); }

/* ===== ADMIN LAYOUT ===== */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 75px);
  position: relative;
  z-index: 10;
  background: rgba(10, 8, 14, 0.82);
  backdrop-filter: blur(14px);
}
.admin-sidebar {
  width: 230px;
  background: rgba(16, 12, 22, 0.95);
  border-right: 1px solid rgba(255, 60, 40, 0.25);
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.7);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-shrink: 0;
  position: relative;
  z-index: 12;
}
.sidebar-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  padding: 0.5rem;
  margin-bottom: 0.8rem;
}
.sidebar-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  text-align: left;
  padding: 0.75rem 1rem;
  border-radius: 9px;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--t);
  width: 100%;
}
.sidebar-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}
.sidebar-btn.active {
  background: rgba(255, 107, 0, 0.16);
  color: var(--accent);
}
.admin-main {
  flex: 1;
  padding: 2.2rem;
  overflow-y: auto;
  position: relative;
  z-index: 11;
}
.admin-tab { display: none; }
.admin-tab.active { display: block; }

.admin-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.admin-header h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
}
.badge {
  background: rgba(255, 107, 0, 0.15);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.15rem 0.7rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
}
.admin-filter-row {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.admin-filter-row select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: #fff;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.92rem;
  outline: none;
}
.admin-cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.admin-card-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: var(--t);
}
.admin-card-row:hover { border-color: var(--accent); }
.acr-emoji { font-size: 1.6rem; min-width: 35px; text-align: center; }
.acr-info { flex: 1; min-width: 0; }
.acr-name { font-weight: 700; font-size: 0.98rem; }
.acr-meta { font-size: 0.78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acr-actions { display: flex; gap: 0.4rem; }
.acr-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--t);
}
.acr-btn:hover { background: rgba(255, 107, 0, 0.15); border-color: var(--accent); }
.acr-btn.delete:hover { background: rgba(255, 60, 60, 0.2); border-color: #ff4444; color: #ff4444; }

.card-form-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: start;
}
.card-form { max-width: 580px; }
.card-preview-container { text-align: center; position: sticky; top: 90px; }
.card-preview-container h3 { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.8rem; }
.preview-card { cursor: default; }

.booster-config {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.2rem;
}
.booster-config-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
}
.booster-config-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Discord Config Tab */
.discord-config-box {
  background: var(--panel);
  border: 1px solid rgba(88, 101, 242, 0.35);
  border-radius: 16px;
  padding: 2rem;
  max-width: 650px;
}
.discord-config-box h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  color: var(--discord);
  margin-bottom: 1rem;
}
.discord-info ol {
  color: var(--muted);
  font-size: 0.92rem;
  padding-left: 1.4rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.discord-info code {
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.3);
  color: var(--discord);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
}
.discord-status {
  margin: 0.9rem 0;
  font-size: 0.92rem;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
}
.discord-status.ok {
  background: rgba(0, 200, 100, 0.1);
  color: #00cc66;
  border: 1px solid rgba(0, 200, 100, 0.25);
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.1rem; text-align: left; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: #fff;
  padding: 0.65rem 0.95rem;
  border-radius: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: var(--t);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--glow-accent);
}
.form-group select option { background: var(--panel); }
.form-group small { color: var(--muted); font-size: 0.75rem; display: block; margin-top: 0.3rem; }
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}
.form-actions { margin-top: 1.6rem; }
.toggle { display: flex; align-items: center; gap: 0.8rem; cursor: pointer; user-select: none; }
.toggle input { display: none; }
.toggle-slider {
  width: 42px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  position: relative;
  transition: var(--t);
}
.toggle-slider::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: var(--t);
}
.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle input:checked + .toggle-slider::after { transform: translateX(18px); }

/* ===== CARD MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.modal-overlay.active { display: flex; }
.modal-content {
  position: relative;
  display: flex;
  gap: 2.2rem;
  align-items: flex-start;
  animation: modIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  flex-wrap: wrap;
  justify-content: center;
}
@keyframes modIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
.modal-close {
  position: absolute;
  top: -15px;
  right: -15px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--t);
}
.modal-close:hover { background: #ff4444; border-color: #ff4444; }
.modal-card { width: 250px; cursor: default; }
.modal-info {
  max-width: 290px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 1.6rem;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--panel);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
  opacity: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  text-align: center;
  max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { border-color: #00cc66; }
.toast.error   { border-color: #ff4444; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; }
  .hero-buttons { justify-content: center; }
  .card-form-layout { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .sidebar-btn { width: auto; }
}
@media (max-width: 600px) {
  .nav-title { display: none; }
  .hero-cards-showcase { display: none; }
  .stats-section { gap: 1.5rem; }
  .flip-card-outer { width: 140px; height: 240px; }
  .tcg-card { width: 160px; }
}

/* =============================================
   SHINOBI VECTOR SVG ICONS & ADMIN PORTAL STYLES
   ============================================= */
.nav-svg-icon, .admin-icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.hud-btn:hover .nav-svg-icon {
  transform: translateY(-1px) scale(1.1);
}

.admin-nav-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
}
.admin-nav-btn.admin-unlocked {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 23, 68, 0.25)) !important;
  border: 1.5px solid #ffd700 !important;
  color: #ffd700 !important;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4), inset 0 0 10px rgba(255, 215, 0, 0.15);
  animation: hokageGlow 2.5s infinite alternate;
}
@keyframes hokageGlow {
  0%   { box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
  100% { box-shadow: 0 0 22px rgba(255, 215, 0, 0.7); }
}

/* Admin Access Modal */
.admin-access-overlay {
  z-index: 10050;
}
.admin-access-content {
  max-width: 480px;
  background: radial-gradient(ellipse at 50% 0%, #200207 0%, #0d0104 70%, #050002 100%);
  border: 1.5px solid rgba(255, 215, 0, 0.45);
  border-radius: 18px;
  padding: 2.2rem 1.8rem;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 23, 68, 0.3);
  text-align: center;
}
.admin-seal-logo {
  margin: 0 auto 0.8rem auto;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
  animation: sealFloat 4s ease-in-out infinite alternate;
}
@keyframes sealFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}
.admin-auth-header h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
  margin-bottom: 0.3rem;
}
.admin-auth-desc {
  font-size: 0.82rem;
  color: #a09aa5;
  margin-bottom: 1.2rem;
  line-height: 1.4;
}

.admin-auth-user-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  margin-bottom: 1.2rem;
  text-align: left;
}
.auser-avatar-wrap img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  object-fit: cover;
}
.auser-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.auser-name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}
.auser-id {
  font-size: 0.72rem;
  color: #8c8291;
  font-family: monospace;
}
.auser-status-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: #aaa;
}
.auser-status-badge.verified {
  background: rgba(0, 230, 118, 0.15);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.35);
}

.admin-method-box {
  background: rgba(14, 4, 8, 0.75);
  border: 1px solid rgba(255, 50, 60, 0.25);
  border-radius: 12px;
  padding: 1rem;
  text-align: left;
}
.admin-method-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 0.3rem;
}
.admin-method-sub {
  font-size: 0.78rem;
  color: #9c94a0;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}
.admin-passcode-row {
  display: flex;
  gap: 0.5rem;
}
.admin-key-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  color: #fff;
  font-size: 0.88rem;
}
.admin-key-input:focus {
  border-color: #ffd700;
  outline: none;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
}
.admin-key-msg {
  font-size: 0.8rem;
  margin-top: 0.4rem;
  font-weight: 600;
}

/* Card SVG Art & Icons */
.card-art-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 8px;
}
.stat-icon-svg, .village-icon-svg, .type-icon-svg, .tech-icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.pack-svg-illustration {
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.booster-card:hover .pack-svg-illustration {
  transform: translateY(-5px) scale(1.08);
}

/* =============================================
   COLLECTION GRID: OWNED & UNOWNED STYLING
   ============================================= */
.coll-card-unowned {
  position: relative;
}

/* Unowned Card: Darkened, desaturated, recognizable structure & design */
.card-unowned {
  filter: grayscale(100%) brightness(0.36) contrast(0.85) !important;
  opacity: 0.62 !important;
  border-color: rgba(120, 120, 140, 0.3) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7) !important;
  transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s !important;
}
.card-unowned:hover {
  filter: grayscale(65%) brightness(0.55) contrast(0.95) !important;
  opacity: 0.88 !important;
  border-color: rgba(255, 60, 60, 0.5) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.9), 0 0 15px rgba(255, 30, 45, 0.25) !important;
}

/* Owned Card in Collection */
.coll-card-owned .tcg-card {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 14px rgba(0, 230, 118, 0.15);
}
.coll-card-owned .tcg-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 230, 118, 0.35);
}

/* Status Badges */
.card-status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.card-unowned-badge {
  background: rgba(18, 5, 8, 0.92);
  border: 1px solid rgba(255, 70, 70, 0.45);
  color: #ff5566;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.card-owned-badge {
  background: rgba(2, 35, 12, 0.92);
  border: 1px solid rgba(0, 230, 118, 0.6);
  color: #00ff88;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 900;
  box-shadow: 0 2px 10px rgba(0, 230, 118, 0.35);
}

/* Featured Badge */
.card-featured-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.95), rgba(255, 107, 0, 0.9));
  color: #120305;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 12px;
  z-index: 6;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  pointer-events: none;
}

/* Collection Hero Header & Progress Bar */
.coll-stat-hero {
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 215, 0, 0.08) 0%, rgba(15, 10, 20, 0.85) 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 16px;
  padding: 1.4rem 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
}
.coll-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.coll-progress-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #ffd700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.coll-progress-val {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  color: #00e676;
  text-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}
.coll-progress-bar-wrap {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px;
}
.coll-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff4444 0%, #ff9900 50%, #00e676 100%);
  border-radius: 20px;
  transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.5);
}
.coll-stat-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

/* Quick Filter for Collection (All / Owned / Missing) */
.coll-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.coll-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #b0a8b9;
  padding: 0.45rem 1rem;
  border-radius: 30px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.coll-filter-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.coll-filter-btn.active {
  background: rgba(255, 215, 0, 0.14);
  border-color: #ffd700;
  color: #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.25);
}

/* =============================================
   CARD PARTICLES & RARITY SPECIAL EFFECTS
   (Stars, Orbs, Orbital Rings, Streaks)
   ============================================= */
.card-particles-wrapper {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 12px;
  z-index: 5;
}

.card-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 12px;
  z-index: 5;
}

/* Floating Diamond Stars (4-point sparkle diamonds matching reference) */
.p-star {
  position: absolute;
  line-height: 1;
  user-select: none;
  animation: floatStar 3.5s ease-in-out infinite alternate;
}
.p-star-1 { top: 14%; left: 10%; font-size: 14px; animation-delay: 0s; }
.p-star-2 { top: 28%; left: 34%; font-size: 19px; animation-delay: 0.8s; }
.p-star-3 { top: 20%; right: 12%; font-size: 13px; animation-delay: 1.4s; }
.p-star-4 { top: 52%; right: 24%; font-size: 16px; animation-delay: 2.1s; }
.p-star-5 { top: 62%; left: 16%; font-size: 12px; animation-delay: 2.8s; }

@keyframes floatStar {
  0%   { transform: translateY(0px) scale(0.85) rotate(0deg); opacity: 0.4; }
  50%  { transform: translateY(-8px) scale(1.25) rotate(12deg); opacity: 1; }
  100% { transform: translateY(-3px) scale(0.9) rotate(-6deg); opacity: 0.65; }
}

/* Floating Soft Glowing Starlight Orbs */
.p-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: floatOrb 4.5s ease-in-out infinite alternate;
}
.p-orb-1 { top: 18%; left: 45%; width: 5px; height: 5px; animation-delay: 0.2s; }
.p-orb-2 { top: 12%; right: 30%; width: 7px; height: 7px; animation-delay: 1s; }
.p-orb-3 { top: 38%; left: 18%; width: 4px; height: 4px; animation-delay: 1.7s; }
.p-orb-4 { top: 56%; right: 14%; width: 6px; height: 6px; animation-delay: 2.5s; }
.p-orb-5 { top: 44%; left: 32%; width: 5px; height: 5px; animation-delay: 3.2s; }
.p-orb-6 { top: 70%; right: 35%; width: 5px; height: 5px; animation-delay: 3.8s; }

@keyframes floatOrb {
  0%   { transform: translate(0, 0) scale(0.8); opacity: 0.3; }
  50%  { transform: translate(6px, -10px) scale(1.35); opacity: 0.95; }
  100% { transform: translate(-5px, -6px) scale(0.85); opacity: 0.45; }
}

/* Orbital Celestial Rings (As seen on user screenshot) */
.p-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.p-ring-1 {
  bottom: 22%;
  left: 10%;
  width: 155px;
  height: 85px;
  border: 1.5px solid;
  transform: rotate(-24deg);
  opacity: 0.45;
  animation: orbitRing1 6s ease-in-out infinite alternate;
}
.p-ring-2 {
  bottom: 16%;
  left: 24%;
  width: 140px;
  height: 75px;
  border: 1.2px solid;
  transform: rotate(20deg);
  opacity: 0.38;
  animation: orbitRing2 7s ease-in-out infinite alternate;
}
.p-ring-3 {
  bottom: 30%;
  left: 18%;
  width: 115px;
  height: 60px;
  border: 1px dashed;
  transform: rotate(-6deg);
  opacity: 0.28;
  animation: orbitRing3 8s ease-in-out infinite alternate;
}

@keyframes orbitRing1 {
  0%   { transform: rotate(-24deg) scale(0.96); opacity: 0.3; }
  100% { transform: rotate(-28deg) scale(1.06); opacity: 0.65; }
}
@keyframes orbitRing2 {
  0%   { transform: rotate(20deg) scale(1.05); opacity: 0.55; }
  100% { transform: rotate(15deg) scale(0.93); opacity: 0.25; }
}
@keyframes orbitRing3 {
  0%   { transform: rotate(-6deg) scale(0.95); opacity: 0.2; }
  100% { transform: rotate(-10deg) scale(1.08); opacity: 0.45; }
}

/* Shooting Streak Light Ray (Diagonal beam across character) */
.p-streak {
  position: absolute;
  top: 24%;
  left: 16%;
  width: 65px;
  height: 2.5px;
  transform: rotate(36deg);
  border-radius: 2px;
  animation: streakPulse 5s ease-in-out infinite;
}
@keyframes streakPulse {
  0%, 70% { opacity: 0; transform: translate(-15px, -15px) rotate(36deg) scaleX(0.3); }
  82%     { opacity: 1; transform: translate(0, 0) rotate(36deg) scaleX(1); }
  100%    { opacity: 0; transform: translate(30px, 30px) rotate(36deg) scaleX(0.6); }
}

/* === RARITY COLOR PALETTES FOR PARTICLES === */

/* Rank SS: Cosmic / Tsukuyomi Gold & Crimson */
.rank-SS-particles .p-star {
  color: #ffd700;
  filter: drop-shadow(0 0 8px #ff1744) drop-shadow(0 0 14px #ffd700);
}
.rank-SS-particles .p-orb {
  background: #ffea75;
  box-shadow: 0 0 10px #ff3d00, 0 0 20px rgba(255, 215, 0, 0.85);
}
.rank-SS-particles .p-ring {
  border-color: rgba(255, 215, 0, 0.65);
  filter: drop-shadow(0 0 8px rgba(255, 23, 68, 0.7));
}
.rank-SS-particles .p-streak {
  background: linear-gradient(90deg, #fff, #ffd700, #ff1744, transparent);
  box-shadow: 0 0 12px #ff3d00;
}

/* Rank S: Celestial Starlight Sapphire (Exact screenshot match) */
.rank-S-particles .p-star {
  color: #7dd3fc;
  filter: drop-shadow(0 0 6px #00d4ff) drop-shadow(0 0 14px rgba(56,189,248,0.8));
}
.rank-S-particles .p-orb {
  background: #38bdf8;
  box-shadow: 0 0 8px #00d4ff, 0 0 18px rgba(0, 212, 255, 0.8);
}
.rank-S-particles .p-ring {
  border-color: rgba(56, 189, 248, 0.55);
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.65));
}
.rank-S-particles .p-streak {
  background: linear-gradient(90deg, #fff, #38bdf8, transparent);
  box-shadow: 0 0 10px #38bdf8;
}

/* Rank A: Susanoo Amethyst Electric Violet */
.rank-A-particles .p-star {
  color: #e040fb;
  filter: drop-shadow(0 0 6px #ab47bc) drop-shadow(0 0 10px rgba(224,64,251,0.6));
}
.rank-A-particles .p-orb {
  background: #c084fc;
  box-shadow: 0 0 8px #a855f7, 0 0 14px rgba(168,85,247,0.7);
}
.rank-A-particles .p-ring {
  border-color: rgba(192, 132, 252, 0.45);
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.5));
}
.rank-A-particles .p-streak {
  background: linear-gradient(90deg, #fff, #e040fb, transparent);
  box-shadow: 0 0 8px #a855f7;
}

/* Rank B: Konoha Emerald & Jade Wind */
.rank-B-particles .p-star {
  color: #69f0ae;
  filter: drop-shadow(0 0 5px #00e676);
}
.rank-B-particles .p-orb {
  background: #00e676;
  box-shadow: 0 0 6px #00e676, 0 0 12px rgba(0, 230, 118, 0.5);
}
.rank-B-particles .p-ring {
  border-color: rgba(0, 230, 118, 0.35);
  filter: drop-shadow(0 0 4px rgba(0, 230, 118, 0.4));
}
.rank-B-particles .p-streak {
  background: linear-gradient(90deg, #fff, #00e676, transparent);
  box-shadow: 0 0 6px #00e676;
}

/* Rank C: Amber Shinobi Embers */
.rank-C-particles .p-star {
  color: #ffb74d;
  filter: drop-shadow(0 0 4px #ff9800);
}
.rank-C-particles .p-orb {
  background: #ffa726;
  box-shadow: 0 0 5px #ff9800;
}
.rank-C-particles .p-ring {
  border-color: rgba(255, 167, 38, 0.25);
}
.rank-C-particles .p-streak {
  background: linear-gradient(90deg, #fff, #ffa726, transparent);
}

/* Hide empty text blocks cleanly */
.card-desc:empty, .card-history:empty {
  display: none !important;
}

/* Full text display in modal without clamping */
.modal-card .card-desc {
  -webkit-line-clamp: unset !important;
  display: block !important;
  max-height: none !important;
}
.modal-card .card-history {
  -webkit-line-clamp: unset !important;
  display: block !important;
  max-height: none !important;
}

/* Admin Featured Tag Toggle Button */
.acr-btn.featured-on {
  background: rgba(255, 215, 0, 0.22) !important;
  border-color: #ffd700 !important;
  color: #ffd700 !important;
  font-weight: 700;
}

/* =============================================
   DROP RATES IN PERCENT (%)
   ============================================= */
.rates-percent-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin: 0.6rem 0;
  padding: 0.45rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.rate-pill {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.rate-pill.rank-SS { color: #ff3d00; border-color: rgba(255, 61, 0, 0.4); background: rgba(255, 61, 0, 0.12); }
.rate-pill.rank-S  { color: #ffa726; border-color: rgba(255, 167, 38, 0.4); background: rgba(255, 167, 38, 0.12); }
.rate-pill.rank-A  { color: #ab47bc; border-color: rgba(171, 71, 188, 0.4); background: rgba(171, 71, 188, 0.12); }
.rate-pill.rank-B  { color: #00d4ff; border-color: rgba(0, 212, 255, 0.4); background: rgba(0, 212, 255, 0.12); }
.rate-pill.rank-C  { color: #4caf50; border-color: rgba(76, 175, 80, 0.4); background: rgba(76, 175, 80, 0.12); }

/* =============================================
   DAILY MISSIONS ("MISSIONS DU JOUR")
   ============================================= */
.daily-missions-section {
  background: linear-gradient(145deg, rgba(16, 24, 39, 0.85), rgba(11, 17, 30, 0.95));
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 14px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 212, 255, 0.05);
  position: relative;
  overflow: hidden;
}
.daily-missions-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff1744, #ffd700, #00d4ff, #ff1744);
  background-size: 200% auto;
  animation: glowShift 4s linear infinite;
}
.dm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.dm-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.25rem;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}
.dm-timer {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.mission-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.8rem;
  transition: all 0.25s ease;
  position: relative;
}
.mission-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateY(-2px);
}
.mission-card.completed {
  border-color: rgba(0, 230, 118, 0.4);
  background: rgba(0, 230, 118, 0.04);
}
.mission-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.mission-icon {
  font-size: 1.6rem;
  line-height: 1;
}
.mission-info h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}
.mission-info p {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.3;
}
.mission-bar-wrap {
  width: 100%;
}
.mission-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 4px;
}
.mission-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  overflow: hidden;
}
.mission-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00d4ff, #ffd700);
  border-radius: 4px;
  transition: width 0.4s ease;
}
.mission-card.completed .mission-bar-fill {
  background: linear-gradient(90deg, #00e676, #ffd700);
}
.mission-reward-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #ffd700;
}
.btn-claim-mission {
  width: 100%;
  padding: 0.55rem;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
}
.btn-claim-mission.ready {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #000;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  animation: pulseGlow 1.8s infinite;
}
.btn-claim-mission.claimed {
  background: rgba(255, 255, 255, 0.05);
  color: #64748b;
  cursor: default;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.btn-claim-mission.action {
  background: rgba(0, 212, 255, 0.15);
  color: #00d4ff;
  border: 1px solid rgba(0, 212, 255, 0.35);
}
.btn-claim-mission.action:hover {
  background: rgba(0, 212, 255, 0.25);
  border-color: #00d4ff;
}

/* =============================================
   PVP SHINOBI CARD DUEL ARENA MODAL
   ============================================= */
.arena-overlay {
  z-index: 10000;
}
.arena-modal-content {
  max-width: 850px;
  background: linear-gradient(160deg, #0b0f19 0%, #15102a 100%);
  border: 1.5px solid rgba(255, 32, 53, 0.5);
  box-shadow: 0 0 50px rgba(255, 32, 53, 0.25), 0 0 20px rgba(0, 212, 255, 0.2);
  border-radius: 16px;
  padding: 1.8rem;
  color: #fff;
  position: relative;
}
.arena-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.arena-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.6rem;
  color: #ff3849;
  text-shadow: 0 0 12px rgba(255, 32, 53, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.arena-stage {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 1.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}
.fighter-box {
  flex: 1;
  min-width: 240px;
  max-width: 300px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}
.fighter-box.player {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}
.fighter-box.opponent {
  border-color: rgba(255, 23, 68, 0.4);
  box-shadow: 0 0 20px rgba(255, 23, 68, 0.15);
}
.fighter-badge {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 0.8rem;
}
.fighter-badge.player { background: rgba(0, 212, 255, 0.2); color: #00d4ff; border: 1px solid #00d4ff; }
.fighter-badge.opponent { background: rgba(255, 23, 68, 0.2); color: #ff5252; border: 1px solid #ff5252; }
.versus-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.vs-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff1744 0%, #300005 100%);
  border: 2px solid #ffd700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: #ffd700;
  box-shadow: 0 0 20px rgba(255, 23, 68, 0.6);
  animation: pulseGlow 1.6s infinite;
}
.round-results-box {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  padding: 1rem;
  margin: 1.2rem 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.duel-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}
.duel-stat-row:last-child { border-bottom: none; }

/* =============================================
   RANKED TIERS SYSTEM (BRONZE À ÉCARLATE)
   ============================================= */
.ranked-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.75rem 1.2rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.ranked-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tier-bronze   { background: linear-gradient(135deg, rgba(205,127,50,0.25), rgba(120,60,20,0.4)); color: #cd7f32; border: 1.5px solid #cd7f32; box-shadow: 0 0 10px rgba(205,127,50,0.3); }
.tier-argent   { background: linear-gradient(135deg, rgba(192,192,192,0.25), rgba(100,100,110,0.4)); color: #e2e8f0; border: 1.5px solid #cbd5e1; box-shadow: 0 0 10px rgba(203,213,225,0.3); }
.tier-or       { background: linear-gradient(135deg, rgba(255,215,0,0.25), rgba(180,130,0,0.4)); color: #ffd700; border: 1.5px solid #ffd700; box-shadow: 0 0 14px rgba(255,215,0,0.45); }
.tier-platine  { background: linear-gradient(135deg, rgba(0,229,255,0.25), rgba(0,100,150,0.4)); color: #00e5ff; border: 1.5px solid #00e5ff; box-shadow: 0 0 16px rgba(0,229,255,0.45); }
.tier-diamant  { background: linear-gradient(135deg, rgba(224,64,251,0.25), rgba(120,20,180,0.4)); color: #e040fb; border: 1.5px solid #e040fb; box-shadow: 0 0 18px rgba(224,64,251,0.5); }
.tier-maitre   { background: linear-gradient(135deg, rgba(255,145,0,0.3), rgba(180,50,0,0.5)); color: #ff9100; border: 1.5px solid #ff9100; box-shadow: 0 0 20px rgba(255,145,0,0.6); animation: pulseGlow 2s infinite; }
.tier-ecarlate { background: linear-gradient(135deg, #ff1744, #990012, #ff1744); color: #fff; border: 2px solid #ffd700; box-shadow: 0 0 25px rgba(255,23,68,0.8), inset 0 0 10px rgba(255,215,0,0.5); text-shadow: 0 0 6px #ffd700; animation: ecarlateAura 2s ease-in-out infinite alternate; }

@keyframes ecarlateAura {
  0%   { box-shadow: 0 0 18px rgba(255,23,68,0.7), 0 0 35px rgba(255,215,0,0.4); transform: scale(1); }
  100% { box-shadow: 0 0 30px rgba(255,23,68,0.95), 0 0 50px rgba(255,23,68,0.7); transform: scale(1.03); }
}

.ranked-rp-display {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rp-number {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  color: #ffd700;
}
.rp-sub {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
}

/* Matchmaking Searching Stage */
.queue-searching-box {
  background: rgba(0, 0, 0, 0.6);
  border: 1.5px solid #00d4ff;
  border-radius: 14px;
  padding: 1.8rem;
  margin: 1.2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.25);
  animation: radarPulse 2s infinite;
}
@keyframes radarPulse {
  0%, 100% { border-color: rgba(0, 212, 255, 0.5); }
  50% { border-color: rgba(255, 23, 68, 0.8); box-shadow: 0 0 35px rgba(255, 23, 68, 0.35); }
}

.sharingan-radar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px dashed #00d4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: spinRadar 3s linear infinite;
}
@keyframes spinRadar { to { transform: rotate(360deg); } }
.sharingan-radar-core {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ff1744;
  box-shadow: 0 0 15px #ff1744;
}
.queue-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #00d4ff;
}
.queue-timer {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #ffd700;
}

/* Arena Mode Tabs (Matchmaking vs Code de Salle) */
.arena-mode-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.arena-mode-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}
.arena-mode-btn.active {
  background: rgba(255, 23, 68, 0.25);
  border-color: #ff1744;
  color: #ff8a80;
  box-shadow: 0 0 12px rgba(255, 23, 68, 0.4);
}

/* =============================================
   MULTI-COLORED CHROMATIC CARD PARTICLES
   (Non monotone - vibrant multi-spectral sparkles)
   ============================================= */
.p-star-1 { color: #ffd700 !important; filter: drop-shadow(0 0 6px #ffea00) drop-shadow(0 0 10px #ff9100) !important; }
.p-star-2 { color: #00e5ff !important; filter: drop-shadow(0 0 8px #00b0ff) drop-shadow(0 0 12px #38bdf8) !important; }
.p-star-3 { color: #e040fb !important; filter: drop-shadow(0 0 6px #ab47bc) !important; }
.p-star-4 { color: #00e676 !important; filter: drop-shadow(0 0 6px #00e676) !important; }
.p-star-5 { color: #ff1744 !important; filter: drop-shadow(0 0 8px #ff1744) drop-shadow(0 0 12px #ffd700) !important; }

/* Multi-colored floating orbs */
.p-orb-1 { background: #00e5ff !important; box-shadow: 0 0 8px #00e5ff, 0 0 14px rgba(0,229,255,0.7) !important; }
.p-orb-2 { background: #ffd700 !important; box-shadow: 0 0 10px #ffd700, 0 0 18px rgba(255,215,0,0.8) !important; }
.p-orb-3 { background: #e040fb !important; box-shadow: 0 0 8px #e040fb !important; }
.p-orb-4 { background: #ff1744 !important; box-shadow: 0 0 8px #ff1744, 0 0 14px rgba(255,23,68,0.7) !important; }
.p-orb-5 { background: #00e676 !important; box-shadow: 0 0 8px #00e676 !important; }
.p-orb-6 { background: #ff9100 !important; box-shadow: 0 0 8px #ff9100 !important; }

/* Multi-tone dual chromatic orbital rings */
.p-ring-1 {
  border-color: rgba(0, 229, 255, 0.55) !important;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.65)) !important;
}
.p-ring-2 {
  border-color: rgba(255, 215, 0, 0.5) !important;
  filter: drop-shadow(0 0 8px rgba(255, 23, 68, 0.6)) !important;
}
.p-ring-3 {
  border-color: rgba(224, 64, 251, 0.45) !important;
  filter: drop-shadow(0 0 6px rgba(224, 64, 251, 0.5)) !important;
}

/* Chromatic Prismatic Light Beam */
.p-streak {
  background: linear-gradient(90deg, #fff, #00e5ff, #ffd700, #ff1744, transparent) !important;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.8), 0 0 20px rgba(255, 215, 0, 0.5) !important;
}




/* =============================================
   YU-GI-OH STYLE TCG DUEL BOARD (PLATEAU DE JEU)
   ============================================= */

.arena-modal-content.in-duel-mat {
  max-width: 1240px !important;
  width: 96vw !important;
  max-height: 94vh !important;
  padding: 1rem 1.4rem !important;
  background: radial-gradient(circle at 50% 50%, #101426 0%, #05070e 100%) !important;
  border: 2px solid #00d4ff !important;
  box-shadow: 0 0 50px rgba(0, 212, 255, 0.4), inset 0 0 30px rgba(0, 212, 255, 0.15) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.yugioh-mat-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  user-select: none;
}

/* Duel Header Bar with LP Counters */
.duel-mat-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.duel-player-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.duel-avatar-frame {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #00d4ff;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
  overflow: hidden;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.duel-avatar-frame.opponent {
  border-color: #ff1744;
  box-shadow: 0 0 12px rgba(255, 23, 68, 0.5);
}

.duel-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.duel-meta-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.duel-meta-deck-count {
  font-size: 0.75rem;
  color: #94a3b8;
  font-family: 'Rajdhani', sans-serif;
}

/* Yu-Gi-Oh LP Displays */
.duel-lp-meter {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 190px;
}

.duel-lp-meter.player {
  align-items: flex-start;
}

.duel-lp-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #94a3b8;
}

.duel-lp-digits {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: #00e676;
  text-shadow: 0 0 15px rgba(0, 230, 118, 0.6);
  letter-spacing: 2px;
  position: relative;
  transition: all 0.3s ease;
}

.duel-lp-digits.danger {
  color: #ff1744 !important;
  text-shadow: 0 0 15px rgba(255, 23, 68, 0.7) !important;
  animation: lpHeartbeat 0.8s infinite;
}

@keyframes lpHeartbeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.duel-lp-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3px;
}

.duel-lp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff1744 0%, #ffd700 50%, #00e676 100%);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Floating damage numbers */
.floating-damage {
  position: absolute;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: #ff1744;
  text-shadow: 0 0 10px #000, 0 0 20px #ff1744;
  animation: floatUpFade 1.4s forwards;
  pointer-events: none;
  z-index: 1000;
}

@keyframes floatUpFade {
  0% { opacity: 1; transform: translateY(0) scale(1.2); }
  100% { opacity: 0; transform: translateY(-45px) scale(0.9); }
}

/* The Playmat Field Grid (Holographic Arena) */
.playmat-field {
  background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.08) 0%, rgba(5, 7, 14, 0.8) 75%),
              linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
              linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 25px 25px, 25px 25px;
  border: 1.5px solid rgba(0, 212, 255, 0.3);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 212, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Zones Grid Rows */
.playmat-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

/* Card Slot Types */
.mat-slot {
  width: 105px;
  height: 142px;
  border-radius: 10px;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.mat-slot:hover {
  border-color: rgba(0, 212, 255, 0.5);
  background: rgba(0, 212, 255, 0.05);
}

.mat-slot.monster-slot {
  border-color: rgba(255, 215, 0, 0.35);
}

.mat-slot.spell-slot {
  border-color: rgba(0, 229, 255, 0.3);
  height: 100px;
}

.mat-slot.graveyard-slot, .mat-slot.deck-slot {
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(10, 15, 30, 0.6);
}

.slot-watermark {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 1px;
  text-align: center;
}

/* Cards placed on the field */
.field-card {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.field-card.pos-attack {
  border: 2px solid #ffd700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.45);
}

.field-card.pos-defense {
  transform: rotate(90deg) scale(0.88);
  border: 2px solid #00d4ff;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.45);
}

/* Active targeting / Attack ready */
.field-card.ready-to-attack {
  border-color: #ff1744 !important;
  box-shadow: 0 0 20px #ff1744, 0 0 35px rgba(255, 23, 68, 0.6) !important;
  animation: readyPulse 0.9s infinite alternate;
}

@keyframes readyPulse {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.04); filter: brightness(1.2); }
}

.field-card.targetable-opponent {
  border-color: #ffd700 !important;
  box-shadow: 0 0 20px #ffd700, 0 0 35px rgba(255, 215, 0, 0.6) !important;
  animation: targetBlink 0.7s infinite alternate;
  cursor: crosshair !important;
}

@keyframes targetBlink {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

/* Card On-Field Art & Badges */
.fc-header {
  padding: 3px 5px;
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffd700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
}

.fc-art {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.fc-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fc-stats-bar {
  padding: 3px 4px;
  background: rgba(0, 0, 0, 0.85);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  display: flex;
  justify-content: space-around;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.fc-atk { color: #ff5252; }
.fc-def { color: #00e5ff; }

/* Deck Stacks */
.deck-card-stack {
  width: 90%;
  height: 90%;
  border-radius: 6px;
  background: linear-gradient(135deg, #1e1b4b, #311042);
  border: 1.5px solid #a855f7;
  box-shadow: 3px 3px 0 #1e1b4b, 6px 6px 0 #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deck-spiral-icon {
  font-size: 1.3rem;
  color: #c084fc;
}

/* Center Playmat Divider: Phases & Turn Status */
.playmat-center-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.6);
  border-top: 1.5px solid rgba(0, 212, 255, 0.35);
  border-bottom: 1.5px solid rgba(0, 212, 255, 0.35);
  border-radius: 8px;
  gap: 10px;
  flex-wrap: wrap;
}

/* Phase Track Pills */
.phase-track-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

.phase-pill {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #64748b;
  transition: all 0.3s ease;
}

.phase-pill.active {
  background: linear-gradient(135deg, #00d4ff, #0055ff);
  border-color: #00d4ff;
  color: #fff;
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.6);
}

.phase-pill.battle.active {
  background: linear-gradient(135deg, #ff1744, #ff8c00);
  border-color: #ff1744;
  box-shadow: 0 0 16px rgba(255, 23, 68, 0.7);
}

.duel-turn-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.duel-turn-banner.my-turn {
  color: #00e676;
  text-shadow: 0 0 10px rgba(0, 230, 118, 0.6);
}

.duel-turn-banner.opp-turn {
  color: #ff1744;
  text-shadow: 0 0 10px rgba(255, 23, 68, 0.6);
}

.turn-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: readyPulse 0.8s infinite alternate;
}

/* Duel Combat Action Buttons */
.duel-center-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-duel-action {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 5px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-duel-action.battle {
  background: linear-gradient(135deg, #ff1744, #ff5252);
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 23, 68, 0.5);
}

.btn-duel-action.battle:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 23, 68, 0.7);
}

.btn-duel-action.end-turn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #cbd5e1;
}

.btn-duel-action.end-turn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-direct-attack {
  background: linear-gradient(135deg, #ffd700, #ff6d00);
  color: #000;
  font-weight: 900;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1.5px solid #fff;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
  animation: readyPulse 0.6s infinite alternate;
  cursor: pointer;
}

/* Combat Announcements Line */
.duel-announcement-box {
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffd700;
  min-height: 22px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* Player Hand (Cartes en bas de l'écran en éventail) */
.playmat-player-hand {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  padding-top: 10px;
  min-height: 140px;
}

.hand-card-item {
  width: 95px;
  height: 132px;
  border-radius: 8px;
  background: #0f172a;
  border: 2px solid #00d4ff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, z-index 0.25s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hand-card-item:hover {
  transform: translateY(-24px) scale(1.15);
  z-index: 100;
  border-color: #ffd700;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.6), 0 0 20px rgba(255, 215, 0, 0.4);
}

.hc-art {
  flex: 1;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hc-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hc-stats {
  padding: 3px;
  background: rgba(0, 0, 0, 0.85);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  display: flex;
  justify-content: space-around;
}

/* Opponent Hand (Dos de cartes ninja) */
.playmat-opponent-hand {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  min-height: 60px;
}

.opp-hand-card-back {
  width: 50px;
  height: 70px;
  border-radius: 5px;
  background: linear-gradient(135deg, #1e1b4b, #431407);
  border: 1.5px solid #ff1744;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #ff8a80;
}

/* Summon Context Menu Popover */
.summon-action-popover {
  position: fixed;
  z-index: 20000;
  background: #0f172a;
  border: 1.5px solid #00d4ff;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.5);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: scaleUp 0.2s ease;
}

.btn-summon-choice {
  padding: 6px 14px;
  border-radius: 6px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-summon-choice.attack {
  background: linear-gradient(135deg, #ff1744, #ff8c00);
  color: #fff;
}

.btn-summon-choice.defense {
  background: linear-gradient(135deg, #00d4ff, #0055ff);
  color: #fff;
}

.btn-summon-choice:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

/* Cinematic End Game Overlay */
.duel-cinematic-end {
  position: absolute;
  inset: 0;
  z-index: 15000;
  background: rgba(5, 7, 14, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  animation: fadeIn 0.4s ease;
  padding: 2rem;
  text-align: center;
}

.cinematic-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.cinematic-title.victory {
  color: #00e676;
  text-shadow: 0 0 35px rgba(0, 230, 118, 0.8), 0 0 60px rgba(0, 230, 118, 0.4);
}

.cinematic-title.defeat {
  color: #ff1744;
  text-shadow: 0 0 35px rgba(255, 23, 68, 0.8), 0 0 60px rgba(255, 23, 68, 0.4);
}

/* =============================================
   NARUTO STORM 4 UI BUTTONS & VECTOR ICONOGRAPHY
   ============================================= */
.ninja-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-storm-hero {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0.85rem 2.5rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: #fff;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ff1744 0%, #b71c1c 50%, #d50000 100%);
  border: 1.5px solid #ff8a80;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  box-shadow: 0 0 25px rgba(255, 23, 68, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}

.btn-storm-hero::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.btn-storm-hero:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 35px rgba(255, 23, 68, 0.9), inset 0 0 20px rgba(255, 255, 255, 0.4);
  filter: brightness(1.15);
}

.btn-storm-hero:hover::before {
  left: 100%;
}

.btn-storm-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-storm-action.battle {
  background: linear-gradient(135deg, #ff1744, #c62828);
  border: 1px solid #ff5252;
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 23, 68, 0.5);
}

.btn-storm-action.battle:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(255, 23, 68, 0.8);
  filter: brightness(1.2);
}

.btn-storm-action.end-turn {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #cbd5e1;
}

.btn-storm-action.end-turn:hover {
  background: linear-gradient(135deg, #334155, #1e293b);
  border-color: #ffd700;
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.3);
}

.btn-storm-action.direct-attack {
  background: linear-gradient(135deg, #ffd700, #ff6d00);
  border: 1.5px solid #fff;
  color: #000;
  font-weight: 900;
  font-family: 'Orbitron', sans-serif;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.9);
  animation: readyPulse 0.6s infinite alternate;
}

/* =============================================
   BUREAU DES MISSIONS SHINOBI (HOKAGE SCROLLS)
   ============================================= */
.daily-missions-section {
  background: radial-gradient(circle at 50% 0%, rgba(24, 24, 27, 0.95), rgba(9, 9, 11, 0.98));
  border: 1.5px solid rgba(255, 215, 0, 0.3);
  border-radius: 16px;
  padding: 1.6rem;
  margin: 2.2rem 0;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), inset 0 0 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.daily-missions-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff1744, #ffd700, #ff1744);
  background-size: 200% auto;
  animation: glowShift 4s linear infinite;
}

.mission-scroll-card {
  position: relative;
  background: linear-gradient(145deg, #18181b, #09090b);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
  overflow: hidden;
}

.mission-scroll-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 215, 0, 0.4);
}

/* Scroll Wood Rollers Top & Bottom */
.scroll-roller-top, .scroll-roller-bottom {
  height: 8px;
  width: 100%;
  background: linear-gradient(90deg, #3d1d07, #78350f, #b45309, #78350f, #3d1d07);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  position: relative;
}

.scroll-roller-top::before, .scroll-roller-top::after,
.scroll-roller-bottom::before, .scroll-roller-bottom::after {
  content: '';
  position: absolute;
  top: -2px;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #ffd700, #b45309);
  border-radius: 2px;
}
.scroll-roller-top::before, .scroll-roller-bottom::before { left: 0; }
.scroll-roller-top::after, .scroll-roller-bottom::after { right: 0; }

.mission-scroll-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  position: relative;
}

/* Watermark Kanji 任務 */
.scroll-watermark-kanji {
  position: absolute;
  right: 12px;
  top: 15px;
  font-family: 'Cinzel Decorative', serif;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.035);
  pointer-events: none;
  line-height: 1;
  user-select: none;
}

/* Rank Ribbon Tag */
.mission-rank-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 4px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
  align-self: flex-start;
  border-left: 3px solid currentColor;
}

.mission-rank-ribbon.rank-D { background: rgba(34, 197, 94, 0.12); color: #4ade80; }
.mission-rank-ribbon.rank-C { background: rgba(0, 212, 255, 0.12); color: #00d4ff; }
.mission-rank-ribbon.rank-B { background: rgba(168, 85, 247, 0.12); color: #c084fc; }
.mission-rank-ribbon.rank-A { background: rgba(245, 158, 11, 0.12); color: #fbbf24; }
.mission-rank-ribbon.rank-S { background: rgba(239, 68, 68, 0.15); color: #ff1744; text-shadow: 0 0 10px rgba(255, 23, 68, 0.5); }

.mission-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}
.mission-icon-box.rank-D { border-color: rgba(74, 222, 128, 0.35); color: #4ade80; }
.mission-icon-box.rank-C { border-color: rgba(0, 212, 255, 0.35); color: #00d4ff; }
.mission-icon-box.rank-B { border-color: rgba(192, 132, 252, 0.35); color: #c084fc; }
.mission-icon-box.rank-A { border-color: rgba(251, 191, 36, 0.35); color: #fbbf24; }
.mission-icon-box.rank-S { border-color: rgba(255, 23, 68, 0.5); color: #ff1744; box-shadow: 0 0 12px rgba(255, 23, 68, 0.3); }

/* Crimson Hokage Approval Stamp */
.hokage-stamp-seal {
  position: absolute;
  right: 14px;
  bottom: 50px;
  width: 82px;
  height: 82px;
  border: 3.5px double #dc2626;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-14deg);
  background: rgba(220, 38, 38, 0.08);
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.4), inset 0 0 8px rgba(220, 38, 38, 0.2);
  pointer-events: none;
  animation: stampSlam 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes stampSlam {
  0% { transform: scale(2.2) rotate(-30deg); opacity: 0; }
  100% { transform: scale(1) rotate(-14deg); opacity: 1; }
}

.seal-inner {
  text-align: center;
  line-height: 1.1;
  color: #ef4444;
  font-family: 'Cinzel Decorative', serif;
  font-weight: 900;
  text-shadow: 0 0 5px rgba(239, 68, 68, 0.5);
}

.seal-top {
  font-size: 0.65rem;
  letter-spacing: 2px;
  display: block;
}

.seal-main {
  font-size: 1.35rem;
  letter-spacing: 1px;
  display: block;
  margin: 1px 0;
}

.seal-sub {
  font-size: 0.58rem;
  letter-spacing: 1.5px;
  display: block;
  border-top: 1px solid rgba(239, 68, 68, 0.5);
  padding-top: 2px;
}

.mission-scroll-card.completed {
  border-color: rgba(34, 197, 94, 0.4);
}

