/* ==========================================================================
   THẤT NGHIỆP ĐẠI TỘI — THE SEVEN DEADLY SINS
   Dark Gothic Horror & Eldritch Luxury Style System
   Typography: Standard Modern Sans-Serif (100% Vietnamese Diacritics Support)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Abyssal Palette */
  --bg-abyss: #07070a;
  --bg-card: rgba(14, 14, 22, 0.85);
  --bg-card-hover: rgba(22, 22, 34, 0.96);
  
  /* Gilded & Occult Borders */
  --border-gold: rgba(212, 175, 55, 0.35);
  --border-gold-bright: rgba(245, 215, 110, 0.7);
  --border-dark: rgba(255, 255, 255, 0.08);
  
  /* Metallic Gold Radiance */
  --gold-primary: #d4af37;
  --gold-light: #f5e08b;
  --gold-dark: #8a6f27;
  --gold-glow: 0 0 25px rgba(212, 175, 55, 0.45);
  --gold-gradient: linear-gradient(135deg, #ffffff 0%, #fef08a 30%, #d4af37 70%, #aa7c11 100%);
  --blood-gradient: linear-gradient(135deg, #ff4d6d 0%, #b5179e 50%, #7209b7 100%);

  /* Typography — Clean, 100% Native Vietnamese Support */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Text Colors */
  --text-pure: #ffffff;
  --text-gold: #f5e08b;
  --text-muted: #9fa1b5;
  --text-dark-muted: #6b6d82;

  /* Sin Archetypes */
  --sin-lust-color: #f43f5e;
  --sin-lust-glow: rgba(244, 63, 94, 0.45);
  --sin-greed-color: #eab308;
  --sin-greed-glow: rgba(234, 179, 8, 0.45);
  --sin-pride-color: #a855f7;
  --sin-pride-glow: rgba(168, 85, 247, 0.45);
  --sin-gluttony-color: #f97316;
  --sin-gluttony-glow: rgba(249, 115, 22, 0.45);
  --sin-envy-color: #10b981;
  --sin-envy-glow: rgba(16, 185, 129, 0.45);
  --sin-sloth-color: #38bdf8;
  --sin-sloth-glow: rgba(56, 189, 248, 0.45);
  --sin-wrath-color: #ef4444;
  --sin-wrath-glow: rgba(239, 68, 68, 0.55);

  --radius-card: 14px;
  --shadow-horror: 0 20px 50px -15px rgba(0, 0, 0, 0.9);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-abyss);
  color: var(--text-pure);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(136, 19, 55, 0.16) 0%, transparent 60%),
    radial-gradient(circle at 10% 40%, rgba(88, 28, 135, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 90% 70%, rgba(185, 28, 28, 0.12) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Background Canvas for Embers, Fog & Bling-Bling */
#horrorCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* Dark Vignette Overlay */
.vignette-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  box-shadow: inset 0 0 160px rgba(0, 0, 0, 0.95), inset 0 0 60px rgba(136, 19, 55, 0.2);
  pointer-events: none;
  z-index: 1;
}

/* Occult Lightning Flash Overlay */
.lightning-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  background: radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.9) 0%, rgba(192, 132, 252, 0.45) 35%, rgba(244, 63, 94, 0.3) 65%, transparent 100%);
  mix-blend-mode: screen;
}

.lightning-flash.lightning-active {
  animation: lightningStrobe 0.45s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

@keyframes lightningStrobe {
  0% { opacity: 0; }
  10% { opacity: 0.95; }
  22% { opacity: 0.12; }
  34% { opacity: 0.88; }
  45% { opacity: 0.3; }
  60% { opacity: 0.75; }
  100% { opacity: 0; }
}

/* Mouse Sparkle Trails */
.mouse-sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 13px;
  color: var(--gold-light);
  text-shadow: 0 0 8px var(--gold-primary), 0 0 16px rgba(255, 255, 255, 0.8);
  animation: sparkleFly 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes sparkleFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--drift-x, 0px), var(--drift-y, -25px)) scale(0.2) rotate(45deg);
  }
}

/* Horror Click Shockwave */
.click-shockwave {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%) scale(0);
  border: 2px solid var(--shockwave-color, #f5e08b);
  box-shadow: 0 0 24px var(--shockwave-color, rgba(212, 175, 55, 0.8)), inset 0 0 16px var(--shockwave-color, rgba(212, 175, 55, 0.5));
  animation: shockwaveExpand 0.65s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes shockwaveExpand {
  0% {
    width: 10px;
    height: 10px;
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.2);
  }
  60% {
    opacity: 0.85;
  }
  100% {
    width: 240px;
    height: 240px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Burst Sparkle Particles */
.burst-spark {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-weight: 800;
  transform: translate(-50%, -50%);
  animation: burstFly 0.75s cubic-bezier(0.15, 0.85, 0.35, 1) forwards;
}

@keyframes burstFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1.3) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--burst-x, 0px), var(--burst-y, 0px)) scale(0.1) rotate(var(--burst-rot, 180deg));
  }
}

/* Container */
.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   Site Header & Navigation
   ========================================================================== */
header.site-header {
  padding: 18px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 10, 0.88);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(212, 175, 55, 0.15);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-pure);
  transition: transform 0.25s ease;
}

.brand-badge:hover {
  transform: translateY(-1px);
}

.brand-icon-seal {
  width: 44px;
  height: 44px;
  background: radial-gradient(circle, #2a0b12 0%, #10060a 100%);
  border: 1.5px solid var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  position: relative;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.4), inset 0 0 10px rgba(185, 28, 28, 0.5);
  animation: pulseSeal 3s infinite alternate ease-in-out;
}

@keyframes pulseSeal {
  0% { box-shadow: 0 0 14px rgba(212, 175, 55, 0.3), inset 0 0 8px rgba(185, 28, 28, 0.4); }
  100% { box-shadow: 0 0 24px rgba(212, 175, 55, 0.7), inset 0 0 14px rgba(225, 29, 72, 0.7); }
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.brand-text span {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: #c4a159;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--gold-light);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--border-gold);
  background: rgba(26, 20, 16, 0.6);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-nav::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-25deg);
  transition: 0.5s;
}

.btn-nav:hover::after {
  left: 150%;
}

.btn-nav:hover {
  color: #ffffff;
  border-color: var(--gold-light);
  background: rgba(45, 30, 20, 0.85);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}

.btn-nav.primary {
  background: linear-gradient(135deg, rgba(136, 19, 55, 0.65) 0%, rgba(30, 10, 15, 0.85) 100%);
  border-color: rgba(244, 63, 94, 0.5);
  color: #fecdd3;
}

.btn-nav.primary:hover {
  border-color: #fda4af;
  box-shadow: 0 0 18px rgba(244, 63, 94, 0.5);
}

.btn-nav.audio-toggle {
  border-color: rgba(168, 85, 247, 0.4);
  color: #e9d5ff;
}

.btn-nav.audio-toggle.active {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.6), rgba(30, 10, 45, 0.8));
  border-color: #c084fc;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.5);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 70px 0 45px;
  text-align: center;
  position: relative;
}

/* Rotating Occult Seal Background */
.hero-occult-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 580px;
  height: 580px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.12);
  pointer-events: none;
  z-index: -1;
  animation: rotateSeal 90s linear infinite;
}

.hero-occult-seal::before {
  content: "";
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 1px solid rgba(225, 29, 72, 0.1);
}

@keyframes rotateSeal {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(30, 12, 18, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 7px 22px;
  border-radius: 30px;
  margin-bottom: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), inset 0 0 12px rgba(212, 175, 55, 0.1);
}

.hero-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff0055;
  box-shadow: 0 0 10px #ff0055, 0 0 20px #ff0055;
  animation: pulseDot 1.8s infinite alternate;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 1; }
}

.hero-tag span {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-light);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9);
}

.hero-title .title-top {
  display: block;
  font-size: 0.45em;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: #c9b07a;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hero-title .highlight-gothic {
  background: linear-gradient(135deg, #ffffff 0%, #fef08a 30%, #d4af37 70%, #aa7c11 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
  filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.45));
  animation: demonicHeartbeat 4.8s ease-in-out infinite;
}

@keyframes demonicHeartbeat {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 22px rgba(212, 175, 55, 0.45));
  }
  12% {
    transform: scale(1.025);
    filter: drop-shadow(0 0 32px rgba(244, 63, 94, 0.75)) drop-shadow(0 0 16px rgba(212, 175, 55, 0.8));
  }
  22% {
    transform: scale(1.008);
    filter: drop-shadow(0 0 24px rgba(212, 175, 55, 0.5));
  }
  32% {
    transform: scale(1.035);
    filter: drop-shadow(0 0 38px rgba(244, 63, 94, 0.85)) drop-shadow(0 0 22px rgba(255, 240, 180, 0.9));
  }
  46% {
    transform: scale(1);
    filter: drop-shadow(0 0 22px rgba(212, 175, 55, 0.45));
  }
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 16px auto 24px;
  color: var(--gold-primary);
  font-size: 15px;
  max-width: 420px;
  opacity: 0.85;
}

.hero-divider::before,
.hero-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
}

.hero-desc {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--text-muted);
  max-width: 740px;
  margin: 0 auto 34px;
  line-height: 1.75;
}

.hero-desc code {
  font-family: monospace;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

/* Stat Items */
.stats-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.stat-item {
  background: rgba(16, 12, 18, 0.7);
  border: 1px solid var(--border-gold);
  padding: 16px 28px;
  border-radius: 10px;
  text-align: center;
  min-width: 170px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-3px);
  border-color: var(--gold-light);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.25);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.stat-num.active {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

.stat-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dark-muted);
  margin-top: 4px;
}

/* ==========================================================================
   Filter & Search Toolbar
   ========================================================================== */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  background: rgba(15, 13, 20, 0.75);
  border: 1px solid var(--border-gold);
  padding: 16px 20px;
  border-radius: var(--radius-card);
  backdrop-filter: blur(12px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: #ffffff;
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.08);
}

.filter-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(136, 19, 55, 0.3) 100%);
  color: var(--gold-light);
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.35);
}

.search-box {
  position: relative;
  min-width: 320px;
  flex: 1;
  max-width: 480px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--gold-primary);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: rgba(7, 7, 10, 0.85);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 11px 16px 11px 42px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 13.5px;
  outline: none;
  transition: all 0.25s ease;
}

.search-input::placeholder {
  color: var(--text-dark-muted);
  font-size: 12.5px;
}

.search-input:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.45);
  background: rgba(12, 10, 16, 0.95);
}

/* ==========================================================================
   Members Grid & Cards (3D Tilt & Bling-Bling)
   ========================================================================== */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
  margin-bottom: 70px;
  perspective: 1200px;
  align-items: start;
}

/* Card Container with 3D Tilt */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-card);
  padding: 0;
  box-shadow: var(--shadow-horror);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  transform-style: preserve-3d;
  cursor: pointer;
}

/* Card Demon Artwork Cover Banner */
.card-demon-cover {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background: #000000;
  z-index: 3;
}

.card-demon-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
  filter: saturate(1.03) brightness(0.98);
}

.card:hover .card-demon-img {
  transform: scale(1.08);
  filter: saturate(1.12) brightness(1.04);
}

.card-demon-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 7, 10, 0.05) 0%, rgba(14, 13, 22, 0.03) 70%, rgba(14, 13, 22, 0.15) 100%);
  pointer-events: none;
}

.card-demon-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--sin-border-color, var(--gold-light));
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--sin-border-color, rgba(212, 175, 55, 0.4));
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
  z-index: 2;
}

/* Rotating Cursed Flame Border */
.card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    var(--sin-border-color, #d4af37) 45deg,
    #ff1a53 90deg,
    transparent 160deg,
    var(--sin-border-color, #d4af37) 225deg,
    #ffffff 280deg,
    transparent 360deg
  );
  z-index: 1;
  opacity: 0.45;
  transition: opacity 0.4s ease;
  animation: spinCardBorder 9s linear infinite;
  pointer-events: none;
}

.card:hover::before {
  opacity: 0.95;
  animation-duration: 3.5s;
  filter: drop-shadow(0 0 16px var(--sin-glow, rgba(212, 175, 55, 0.6)));
}

/* Inner Background Shield so only the outer rim glows */
.card::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  border-radius: calc(var(--radius-card) - 1.5px);
  background: linear-gradient(180deg, rgba(14, 13, 22, 0.94) 0%, rgba(8, 7, 12, 0.98) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Ensure all card elements sit safely above the inner dark shield */
.card > * {
  position: relative;
  z-index: 4;
}

@keyframes spinCardBorder {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Anamorphic Cursed Star Flare ("Horror Bling-Bling") */
.sin-star-flare {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 15px;
  color: var(--sin-border-color, var(--gold-light));
  text-shadow: 0 0 10px var(--sin-glow, rgba(212, 175, 55, 0.8)), 0 0 18px #ffffff;
  pointer-events: none;
  z-index: 6;
  opacity: 0.85;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: flareTwinkle 3.6s ease-in-out infinite;
}

/* Anamorphic Horizontal Optical Streak */
.sin-star-flare::before {
  content: "";
  position: absolute;
  width: 80px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--sin-border-color, var(--gold-light)), #ffffff, var(--sin-border-color, var(--gold-light)), transparent);
  box-shadow: 0 0 10px var(--sin-glow, rgba(212, 175, 55, 0.9));
  transform: scaleX(0.7);
  transition: transform 0.3s ease;
}

/* Anamorphic Vertical Needle Streak */
.sin-star-flare::after {
  content: "";
  position: absolute;
  width: 1.5px;
  height: 36px;
  background: linear-gradient(180deg, transparent, var(--sin-border-color, var(--gold-light)), #ffffff, var(--sin-border-color, var(--gold-light)), transparent);
  box-shadow: 0 0 10px var(--sin-glow, rgba(212, 175, 55, 0.9));
  transform: scaleY(0.7);
  transition: transform 0.3s ease;
}

.card:hover .sin-star-flare {
  opacity: 1;
  animation-duration: 1.6s;
}

.card:hover .sin-star-flare::before {
  transform: scaleX(1.4);
}

.card:hover .sin-star-flare::after {
  transform: scaleY(1.35);
}

@keyframes flareTwinkle {
  0%, 100% {
    transform: rotate(0deg) scale(0.9);
    opacity: 0.65;
  }
  50% {
    transform: rotate(45deg) scale(1.3);
    opacity: 1;
  }
}

/* Gilded 4-Corner Accents */
.card-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: 5;
  border: 2px solid var(--gold-primary);
  opacity: 0.65;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.card-corner.tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.card-corner.tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.card-corner.bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.card-corner.br { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.card:hover .card-corner {
  opacity: 1;
  border-color: var(--gold-light);
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* Dynamic Specular Reflection (Follows Mouse Cursor) */
.card-glow-halo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle 280px at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--card-glow-color, rgba(212, 175, 55, 0.15)), transparent 70%);
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .card-glow-halo {
  opacity: 1;
}

/* Metallic Diagonal Light Sheen ("Bling-Bling" sweep) */
.card-sheen {
  position: absolute;
  top: -50%;
  left: -100%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 40%,
    rgba(255, 240, 180, 0.25) 50%,
    rgba(255, 255, 255, 0.05) 60%,
    transparent 100%
  );
  transform: rotate(30deg);
  pointer-events: none;
  z-index: 3;
}

.card:hover .card-sheen {
  animation: metallicSweep 0.9s ease-out forwards;
}

@keyframes metallicSweep {
  0% { left: -100%; }
  100% { left: 160%; }
}

/* Card Hover States */
.card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: var(--card-border-hover, var(--gold-light));
  box-shadow: 0 25px 55px -10px rgba(0, 0, 0, 0.95), var(--card-box-glow, 0 0 30px rgba(212, 175, 55, 0.35));
}

/* Card Header */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: -30px;
  margin-bottom: 14px;
  padding: 0 20px;
  position: relative;
  z-index: 5;
}

/* Avatar with Occult Rune Frame */
.card-avatar-wrapper {
  position: relative;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-avatar-rune {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px dashed var(--sin-border-color, var(--gold-primary));
  opacity: 0.6;
  animation: rotateAvatarRune 25s linear infinite;
}

@keyframes rotateAvatarRune {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.card-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle, #25161c 0%, #0d0a10 100%);
  border: 2px solid var(--sin-border-color, var(--gold-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--gold-light);
  box-shadow: 0 0 16px var(--sin-glow, rgba(212, 175, 55, 0.4)), inset 0 0 10px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.avatar-demon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  transition: transform 0.4s ease;
}

.card:hover .avatar-demon-img {
  transform: scale(1.12);
}

.sin-symbol-tag {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 15px;
  background: #000000;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sin-border-color, var(--gold-primary));
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
  z-index: 2;
}

/* Header Tags */
.card-header-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

/* Sin Badges */
.badge-sin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.badge-sin::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-20deg);
  animation: badgeBling 3.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes badgeBling {
  0%, 70% { left: -120%; }
  100% { left: 220%; }
}

.badge-sin .sin-gem {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.badge-sin .sin-latin {
  font-size: 10px;
  opacity: 0.8;
  font-weight: 600;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.35);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.15);
}

.badge-status .status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
}

/* Card Body */
.card-body {
  position: relative;
  z-index: 4;
  flex: 1;
  padding: 0 20px;
}

.card-alias-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sin-border-color, var(--gold-primary));
  margin-bottom: 6px;
  opacity: 0.95;
}

.card-name {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: #ffffff;
  transition: color 0.2s ease;
}

.card:hover .card-name {
  color: var(--gold-light);
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.member-cv-link {
  color: inherit;
  text-decoration: none;
  border-radius: 3px;
}

.member-cv-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.member-cv-link:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 5px;
}

#membersGrid {
  scroll-margin-top: 110px;
}

.card-role {
  font-size: 13.5px;
  color: #c4a159;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.5;
}

.card-folder {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
  width: 100%;
}

.card-folder svg {
  color: var(--gold-primary);
  flex-shrink: 0;
}

.card-folder code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Card Actions */
.card-actions {
  position: relative;
  z-index: 4;
  padding: 0 20px 20px;
}

.card-action-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.btn-cv-quickview {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(32, 22, 18, 0.9) 0%, rgba(14, 11, 16, 0.98) 100%);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.btn-cv-quickview::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.btn-cv-quickview:hover {
  background: linear-gradient(135deg, rgba(60, 32, 26, 0.95) 0%, rgba(26, 14, 20, 1) 100%);
  border-color: var(--sin-border-color, var(--gold-light));
  color: #ffffff;
  box-shadow: 0 0 20px var(--sin-glow, rgba(212, 175, 55, 0.45));
  transform: translateY(-2px);
}

.btn-cv-quickview .quickview-icon {
  font-size: 14px;
  filter: drop-shadow(0 0 4px var(--gold-light));
}

.btn-cv-quickview .btn-rune {
  font-size: 13px;
  color: var(--sin-border-color, var(--gold-primary));
  transition: transform 0.25s ease;
}

.btn-cv-quickview:hover .btn-rune {
  transform: translateX(3px) scale(1.2);
  color: #ffffff;
}

.btn-cv-external {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  border-radius: 8px;
  background: rgba(20, 18, 26, 0.85);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.btn-cv-external:hover {
  background: rgba(45, 35, 50, 0.95);
  border-color: var(--gold-light);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

.btn-sin-dossier {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-sin-dossier:hover {
  color: var(--gold-light);
  border-color: var(--sin-border-color, var(--border-gold));
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.sin-dossier-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

.sin-dossier-icon {
  font-size: 13px;
}

.sin-dossier-arrow {
  font-size: 13px;
  color: var(--sin-border-color, var(--gold-primary));
  transition: transform 0.25s ease;
}

.btn-sin-dossier:hover .sin-dossier-arrow {
  transform: scale(1.2);
}

.btn-cv-horror {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(30, 20, 16, 0.8) 0%, rgba(12, 10, 14, 0.95) 100%);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.btn-cv-horror::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.btn-cv-horror .btn-rune {
  font-size: 14px;
  color: var(--gold-primary);
  transition: transform 0.3s ease, color 0.3s ease;
}

.btn-cv-horror:hover {
  background: linear-gradient(135deg, rgba(50, 25, 20, 0.95) 0%, rgba(20, 10, 15, 1) 100%);
  border-color: var(--gold-light);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.45);
  transform: translateY(-2px);
}

.btn-cv-horror:hover .btn-rune {
  transform: translateX(4px) scale(1.2);
  color: #ffffff;
}

/* ==========================================================================
   Specific Sin Archetypes (Individual Color Theming)
   ========================================================================== */

/* 1. Dục Vọng (Lust) - Crimson Blood & Gilded Rose */
.card[data-sin-type="lust"] {
  --sin-border-color: #f43f5e;
  --sin-glow: var(--sin-lust-glow);
  --card-glow-color: rgba(244, 63, 94, 0.18);
  --card-border-hover: #fda4af;
  --card-box-glow: 0 0 35px rgba(244, 63, 94, 0.45);
}

.sin-lust {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.25) 0%, rgba(136, 19, 55, 0.4) 100%);
  color: #fecdd3;
  border: 1px solid rgba(244, 63, 94, 0.6);
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.3);
}

/* 2. Tham Lam (Greed) - Molten Gold & Abyssal Dust */
.card[data-sin-type="greed"] {
  --sin-border-color: #eab308;
  --sin-glow: var(--sin-greed-glow);
  --card-glow-color: rgba(234, 179, 8, 0.18);
  --card-border-hover: #fef08a;
  --card-box-glow: 0 0 35px rgba(234, 179, 8, 0.45);
}

.sin-greed {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.25) 0%, rgba(161, 98, 7, 0.4) 100%);
  color: #fef08a;
  border: 1px solid rgba(234, 179, 8, 0.6);
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.3);
}

/* 3. Kiêu Ngạo (Pride) - Royal Violet & Demonic Gold */
.card[data-sin-type="pride"] {
  --sin-border-color: #a855f7;
  --sin-glow: var(--sin-pride-glow);
  --card-glow-color: rgba(168, 85, 247, 0.18);
  --card-border-hover: #e9d5ff;
  --card-box-glow: 0 0 35px rgba(168, 85, 247, 0.45);
}

.sin-pride {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(107, 33, 168, 0.4) 100%);
  color: #f3e8ff;
  border: 1px solid rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

/* 4. Phàm Ăn (Gluttony) - Magma Flame & Infernal Amber */
.card[data-sin-type="gluttony"] {
  --sin-border-color: #f97316;
  --sin-glow: var(--sin-gluttony-glow);
  --card-glow-color: rgba(249, 115, 22, 0.18);
  --card-border-hover: #fed7aa;
  --card-box-glow: 0 0 35px rgba(249, 115, 22, 0.45);
}

.sin-gluttony {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.25) 0%, rgba(194, 65, 12, 0.4) 100%);
  color: #fed7aa;
  border: 1px solid rgba(249, 115, 22, 0.6);
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
}

/* 5. Đố Kỵ (Envy) - Cursed Jade & Toxic Emerald */
.card[data-sin-type="envy"] {
  --sin-border-color: #10b981;
  --sin-glow: var(--sin-envy-glow);
  --card-glow-color: rgba(168, 85, 247, 0.18);
  --card-border-hover: #a7f3d0;
  --card-box-glow: 0 0 35px rgba(16, 185, 129, 0.45);
}

.sin-envy {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(6, 95, 70, 0.4) 100%);
  color: #a7f3d0;
  border: 1px solid rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

/* 6. Lười Biếng (Sloth) - Spectral Cyan & Cold Ghostly Blue */
.card[data-sin-type="sloth"] {
  --sin-border-color: #38bdf8;
  --sin-glow: var(--sin-sloth-glow);
  --card-glow-color: rgba(56, 189, 248, 0.18);
  --card-border-hover: #bae6fd;
  --card-box-glow: 0 0 35px rgba(56, 189, 248, 0.45);
}

.sin-sloth {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(3, 105, 161, 0.4) 100%);
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

/* 7. Phẫn Nộ (Wrath) - Brimstone Blaze & Hellfire Red */
.card[data-sin-type="wrath"] {
  --sin-border-color: #ef4444;
  --sin-glow: var(--sin-wrath-glow);
  --card-glow-color: rgba(239, 68, 68, 0.2);
  --card-border-hover: #fecaca;
  --card-box-glow: 0 0 35px rgba(239, 68, 68, 0.55);
}

.sin-wrath {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.28) 0%, rgba(153, 27, 27, 0.45) 100%);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.65);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.35);
}

/* ==========================================================================
   Guidelines Section
   ========================================================================== */
.info-section {
  background: rgba(14, 12, 18, 0.85);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-card);
  padding: 44px 36px;
  margin-bottom: 70px;
  box-shadow: var(--shadow-horror);
  position: relative;
  overflow: hidden;
}

.info-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.info-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-desc {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 30px;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.step-card {
  background: rgba(7, 7, 10, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 10px;
  padding: 24px 20px;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.2);
}

.step-num {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 10px;
}

.step-text {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-text code {
  font-family: monospace;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-light);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding: 40px 0;
  text-align: center;
  background: rgba(5, 5, 8, 0.95);
  color: var(--text-dark-muted);
  font-size: 13.5px;
}

.site-footer a {
  color: #c4a159;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Real-life Sin Toggle Button */
.btn-sin-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 14px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(212, 175, 55, 0.35);
  border-radius: 7px;
  color: var(--sin-border-color, var(--gold-light));
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
}

.btn-sin-toggle:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--sin-border-color, var(--gold-primary));
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
  color: #ffffff;
}

.btn-sin-toggle.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(136, 19, 55, 0.2) 100%);
  border-style: solid;
  border-color: var(--sin-border-color, var(--gold-light));
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  color: #ffffff;
}

.sin-toggle-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sin-toggle-icon {
  font-size: 14px;
  filter: drop-shadow(0 0 6px var(--sin-border-color, #d4af37));
}

.sin-toggle-arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.btn-sin-toggle.active .sin-toggle-arrow {
  transform: rotate(180deg);
}

/* Collapsible Sin Drawer */
.card-sin-drawer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease, margin 0.3s ease;
  margin: 0;
}

.card-sin-drawer.open {
  max-height: 400px;
  opacity: 1;
  margin-bottom: 12px;
}

.sin-drawer-inner {
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.55;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
}

.sin-drawer-title {
  color: var(--gold-light);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sin-drawer-desc {
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 10px;
  line-height: 1.55;
}

.sin-drawer-it-title {
  color: #f43f5e;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.sin-drawer-it-desc {
  color: #fed7aa;
  font-size: 12px;
  line-height: 1.55;
}

/* ==========================================================================
   Occult Modals: Instant CV Quick-View & Sin Dossier Popups
   ========================================================================== */
.occult-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 8, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.occult-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* 1. Instant CV Modal Window */
.cv-modal-window {
  width: min(1200px, 95vw);
  height: min(92vh, 920px);
  background: #09090e;
  border: 1px solid var(--border-gold-bright);
  border-radius: 14px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(212, 175, 55, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.occult-modal-backdrop.active .cv-modal-window {
  transform: scale(1) translateY(0);
}

.cv-modal-header {
  padding: 14px 22px;
  background: rgba(18, 16, 26, 0.96);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cv-modal-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cv-modal-seal {
  font-size: 24px;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.6));
}

.cv-modal-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.cv-modal-subtitle {
  font-size: 12px;
  color: var(--gold-light);
  font-weight: 600;
  margin: 2px 0 0;
  opacity: 0.9;
}

.cv-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cv-modal-btn-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.cv-modal-btn-tab:hover {
  background: rgba(212, 175, 55, 0.3);
  color: #ffffff;
  border-color: var(--gold-light);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.cv-modal-btn-close, .dossier-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cv-modal-btn-close:hover, .dossier-modal-close:hover {
  background: rgba(239, 68, 68, 0.35);
  border-color: #ef4444;
  color: #ffffff;
  transform: scale(1.05);
}

.cv-modal-body {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  background: #000000;
}

.cv-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #ffffff;
}

.cv-modal-loader {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 10, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 2;
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: opacity 0.4s ease;
}

.cv-modal-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.occult-spinner {
  font-size: 32px;
  color: var(--gold-primary);
  animation: pulseRune 1.4s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.8));
}

@keyframes pulseRune {
  0%, 100% { transform: scale(0.9) rotate(-10deg); opacity: 0.7; }
  50% { transform: scale(1.25) rotate(10deg); opacity: 1; }
}

/* 2. Occult Sin Dossier Modal Window */
.dossier-modal-window {
  width: min(920px, 94vw);
  max-height: min(90vh, 880px);
  background: linear-gradient(145deg, #120e18 0%, #08060c 100%);
  border: 1px solid var(--border-gold-bright);
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95), 0 0 50px rgba(212, 175, 55, 0.35);
  position: relative;
  overflow-y: auto;
  padding: 32px 30px;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.occult-modal-backdrop.active .dossier-modal-window {
  transform: scale(1) translateY(0);
}

.dossier-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
}

.dossier-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
}

.dossier-art-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border-gold);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(212, 175, 55, 0.3);
}

.dossier-art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dossier-art-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(7, 7, 10, 0.8) 100%);
}

.dossier-art-seal {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 26px;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.9));
}

.dossier-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  margin-bottom: 10px;
}

.dossier-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 8px;
}

.dossier-guardian {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.dossier-guardian strong {
  color: var(--gold-light);
  font-weight: 800;
  font-size: 15px;
}

.dossier-guardian .dossier-role {
  color: var(--text-dark-muted);
  font-size: 12.5px;
}

.dossier-block {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-left: 3px solid var(--gold-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.dossier-block.real-life {
  border-left-color: #38bdf8;
}

.dossier-block.it-coder {
  border-left-color: #f43f5e;
}

.dossier-block.abyssal-lore {
  border-left-color: var(--gold-primary);
}

.dossier-block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  color: var(--gold-light);
}

.dossier-block.real-life .dossier-block-title {
  color: #bae6fd;
}

.dossier-block.it-coder .dossier-block-title {
  color: #fecdd3;
}

.dossier-block-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-pure);
  margin: 0;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }
  .members-grid {
    grid-template-columns: 1fr;
  }
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    min-width: 0;
    max-width: 100%;
  }
  .hero-occult-seal {
    width: 320px;
    height: 320px;
  }
  .dossier-grid {
    grid-template-columns: 1fr;
  }
  .dossier-modal-window {
    padding: 24px 18px;
  }
  .cv-modal-window {
    height: 94vh;
  }
}
