/* ==========================================================================
   1. ROOT VARIABLES & BASE THEME
   ========================================================================== */
:root {
  --bg-body: #000000;       
  --bg-content: #0a0a0a;    
  --bg-panel: #111111;      
  --bg-header: rgba(10, 10, 10, 0.7);     
  --bg-hover: rgba(255, 255, 255, 0.03);      
  
  --border: rgba(255, 255, 255, 0.08);
  --border-dark: rgba(255, 255, 255, 0.03);
  --grid-color: rgba(255, 255, 255, 0.04);
  
  --text-main: #f8fafc;     
  --text-muted: #94a3b8;    
  --text-rank: #cbd5e1;     
  
  --link: #60a5fa;          
  --link-hover: #93c5fd;
  --accent: #38bdf8;
  --gold: #facc15;
  --trend-up: #4ade80;

  --grad-primary: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --grad-hover: linear-gradient(135deg, #2563eb, #7c3aed);
  --grad-gold: linear-gradient(135deg, #fde047, #f59e0b);
  
  --font: "Roboto", sans-serif;
  --radius: 8px;            
}

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }

body {
  margin: 0; background-color: var(--bg-body); 
  background-image: linear-gradient(var(--grid-color) 1px, transparent 1px), linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 40px 40px; background-attachment: fixed; background-position: center top;
  color: var(--text-main); font-family: var(--font); line-height: 1.5; -webkit-font-smoothing: antialiased; font-size: 13px; overflow-x: hidden; width: 100%; position: relative;
}

body::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 1000px; height: 500px;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.15) 0%, rgba(139, 92, 246, 0.1) 35%, transparent 70%);
  pointer-events: none; z-index: -1;
}

body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -2; 
  background: linear-gradient(135deg, transparent 0%, transparent 45%, rgba(30, 58, 138, 0.4) 46%, rgba(59, 130, 246, 0.8) 48.5%, rgba(34, 211, 238, 0.9) 49.5%, rgba(255, 255, 255, 0.8) 50%, transparent 50.5%, transparent 100%);
  background-size: 300% 300%;
  -webkit-mask-image: linear-gradient(black 1px, transparent 1px), linear-gradient(90deg, black 1px, transparent 1px);
  mask-image: linear-gradient(black 1px, transparent 1px), linear-gradient(90deg, black 1px, transparent 1px);
  -webkit-mask-size: 40px 40px; mask-size: 40px 40px; -webkit-mask-position: center top; mask-position: center top;
  animation: oceanWave 6s linear infinite;
}

@keyframes oceanWave { 0% { background-position: 100% 100%; } 60% { background-position: 0% 0%; } 100% { background-position: 0% 0%; } }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; border: 2px solid var(--bg-body); }
::-webkit-scrollbar-thumb:hover { background: #8b5cf6; }

body.no-scroll { overflow: hidden !important; }

/* ==========================================================================
   2. GENERAL LAYOUT & HEADER
   ========================================================================== */
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.page-container { display: flex; gap: 20px; padding-top: 24px; padding-bottom: 32px; }
.content-main { flex: 1; width: 100%; max-width: 100%; }

.site-header { 
  background: var(--bg-header); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark); position: sticky; top: 0; z-index: 9000;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }

.logo-mark {
  background: var(--grad-gold); color: #000; font-weight: 900; width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 8px; font-size: 15px; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}
.logo-mark img { width: 20px; height: 20px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.brand h1, .brand-text { margin: 0; font-size: 1.25rem; font-weight: 700; color: #fff; letter-spacing: -0.5px; }

.header-tools { flex: 1 1 200px; display: flex; justify-content: flex-end; gap: 12px; align-items: center; }
.header-tools #searchBox {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); color: #fff; 
  padding: 10px 14px; border-radius: 20px; font-size: 13px; width: 100%; max-width: 280px; font-family: var(--font); outline: none;
  transition: all 0.3s ease; backdrop-filter: blur(4px);
}
.header-tools #searchBox:focus { border-color: #8b5cf6; background: rgba(255, 255, 255, 0.05); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15); }

.theme-toggle {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: #fff;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 16px; display: grid; place-items: center;
  transition: all 0.3s ease; backdrop-filter: blur(4px);
}
.theme-toggle:hover { transform: rotate(20deg); background: var(--grad-primary); border-color: transparent; box-shadow: 0 4px 10px rgba(139, 92, 246, 0.4); }

/* ==========================================================================
   3. SUB-NAVIGATION & PILLS
   ========================================================================== */
.sub-nav { background: rgba(0,0,0,0.4); border-bottom: 1px solid var(--border); backdrop-filter: blur(8px); }
.sub-nav-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 12px; }

.country-nav { display: flex; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 10px 0; gap: 2px; }
.country-nav::-webkit-scrollbar { display: none; }
.country-nav button {
  background: transparent; border: 1px solid transparent; color: var(--text-muted);
  padding: 6px 10px; font-size: 11.5px; font-weight: 700; cursor: pointer; flex-shrink: 0;
  border-radius: 20px; transition: all 0.2s ease; white-space: nowrap;
}
.country-nav button:hover { color: #fff; background: rgba(255,255,255,0.05); }
.country-nav button.active { color: #fff !important; background: var(--grad-primary); border-color: transparent; box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3); }

.sort-controls { display: flex; align-items: center; gap: 6px; padding: 4px 0; flex-shrink: 0; }
.sort-controls label { color: var(--text-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.sort-controls select {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border); color: #fff;
  padding: 6px 10px; border-radius: var(--radius); font-size: 11.5px; font-family: var(--font); cursor: pointer; outline: none; transition: border-color 0.2s; font-weight: 500;
}
.sort-controls select:focus, .sort-controls select:hover { border-color: #8b5cf6; }

/* ==========================================================================
   4. SECTIONS & CONTAINERS
   ========================================================================== */
.section-header {
  background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-bottom: 1px solid var(--border-dark); 
  padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; border-radius: var(--radius) var(--radius) 0 0;
}
.section-header h1, .section-header h2 { margin: 0; font-size: 15px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; }

.hero-container, .graph-container, .map-container, .anime-list {
  background: var(--bg-content); border: 1px solid var(--border); border-top: none; 
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.hero-container { padding: 16px; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.hero-container p { margin: 0 0 12px 0; color: var(--text-muted); line-height: 1.6; }
.hero-container ul { margin: 0; padding-left: 20px; color: var(--text-muted); line-height: 1.6; }
.hero-container li { margin-bottom: 6px; }
.hero-container li:last-child { margin-bottom: 0; }

/* ==========================================================================
   5. LIST GRIDS & CARDS
   ========================================================================== */
.country-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; width: 100%; }
.country-card { display: flex; flex-direction: column; width: 100%; }
.anime-list { list-style: none; margin: 0; padding: 12px; display: flex; flex-direction: column; gap: 6px; }

.anime-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  opacity: 0;
  animation: slideFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  overflow: hidden;
}
.anime-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad-primary); transform: scaleY(0); transform-origin: center; transition: transform 0.2s ease;
}

.anime-item:nth-child(1) { animation-delay: 0.05s; }
.anime-item:nth-child(2) { animation-delay: 0.10s; }
.anime-item:nth-child(3) { animation-delay: 0.15s; }
.anime-item:nth-child(4) { animation-delay: 0.20s; }
.anime-item:nth-child(5) { animation-delay: 0.25s; }
.anime-item:nth-child(n+6) { animation-delay: 0.30s; }

@keyframes slideFadeUp { 0% { opacity: 0; transform: translateY(15px) scale(0.98); } 100% { opacity: 1; transform: translateY(0) scale(1); } }

.anime-item:hover { background: rgba(255,255,255,0.05); border-color: rgba(139, 92, 246, 0.4); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.4); z-index: 10; }
.anime-item:hover::before { transform: scaleY(1); }

/* Main card row */
.anime-item-main {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  gap: 12px;
  width: 100%;
}

/* 🚀 ACCORDION SYSTEM: Always in DOM for SEO, transitions height smoothly on hover */
.anime-item-desc {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 12px;
  border-top: 1px solid transparent;
}
.anime-item-desc p {
  margin: 0;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: left;
}

/* Desktop Hover Expansion */
@media (min-width: 769px) {
  .anime-item:hover .anime-item-desc {
    max-height: 120px; /* Safe upper limit to display descriptions */
    opacity: 1;
    padding: 0 12px 10px 12px;
    border-top-color: var(--border-dark);
  }
}

/* Mobile Long-Press Expansion Class */
.anime-item.expanded .anime-item-desc {
  max-height: 120px !important;
  opacity: 1 !important;
  padding: 0 12px 10px 12px !important;
  border-top-color: var(--border-dark) !important;
}

.rank { font-size: 16px; font-weight: 900; color: #475569; width: 20px; text-align: center; }
.rank.top3 { color: var(--text-main); font-size: 18px; }
.rank.top1 { color: var(--gold); font-size: 20px; text-shadow: 0 0 10px rgba(250, 204, 21, 0.4); }

.poster { width: 42px; height: 42px; object-fit: contain; flex-shrink: 0; background: #fff; padding: 4px; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.title { color: #ffffff; font-weight: 700; font-size: 14px; line-height: 1.3; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: color 0.2s; }
.anime-item:hover .title { color: transparent; background: var(--grad-primary); -webkit-background-clip: text; }

.trending-badge {
  display: inline-block; background: var(--grad-gold); color: #000;
  font-size: 9px; font-weight: 900; padding: 2px 6px; border-radius: 10px; text-transform: uppercase; margin-bottom: 4px; width: fit-content; letter-spacing: 0.5px;
}

.stats-boxes { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
.stat-box {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center;
  padding: 6px 12px; border-radius: 6px; min-width: 70px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--border-dark); backdrop-filter: blur(8px); transition: all 0.2s ease;
}
.anime-item:hover .stat-box { background: rgba(255,255,255,0.05); }
.stat-box .stat-label { font-size: 8.5px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 2px; white-space: nowrap; }
.stat-box .stat-value { font-size: 13px; font-weight: 900; color: #fff; white-space: nowrap; letter-spacing: -0.3px; }
.visitors-box .stat-value { color: #4ade80; }
.worth-box .stat-value { color: #facc15; }

/* ==========================================================================
   6. NEON 3D GRAPH SECTION
   ========================================================================== */
.graph-container { padding: 30px 20px 15px; overflow-x: auto; }
.vote-graph-inner { display: flex; align-items: flex-end; justify-content: center; gap: 18px; height: 260px; min-width: 720px; padding: 0 10px; }
.vote-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; max-width: 65px; min-width: 55px; cursor: pointer; transition: transform 0.2s; }
.vote-bar-wrap:hover { transform: translateY(-5px); }

.vote-poster-wrap {
  position: relative; width: 44px; height: 44px; z-index: 2; margin-bottom: 8px; margin-left: 10px; 
  display: flex; justify-content: center; align-items: center; filter: drop-shadow(0px 8px 8px rgba(0, 0, 0, 0.6)); 
  animation: premiumBounce 10s infinite cubic-bezier(0.28, 0.84, 0.42, 1);
}
.vote-bar-wrap:nth-child(1) .vote-poster-wrap { animation-delay: 0.0s; }
.vote-bar-wrap:nth-child(2) .vote-poster-wrap { animation-delay: 0.2s; }
.vote-bar-wrap:nth-child(3) .vote-poster-wrap { animation-delay: 0.4s; }
.vote-bar-wrap:nth-child(4) .vote-poster-wrap { animation-delay: 0.6s; }
.vote-bar-wrap:nth-child(5) .vote-poster-wrap { animation-delay: 0.8s; }
.vote-bar-wrap:nth-child(6) .vote-poster-wrap { animation-delay: 1.0s; }
.vote-bar-wrap:nth-child(7) .vote-poster-wrap { animation-delay: 1.2s; }
.vote-bar-wrap:nth-child(8) .vote-poster-wrap { animation-delay: 1.4s; }
.vote-bar-wrap:nth-child(9) .vote-poster-wrap { animation-delay: 1.6s; }
.vote-bar-wrap:nth-child(10) .vote-poster-wrap { animation-delay: 1.8s; }

.vote-poster { width: 100%; height: 100%; object-fit: contain; background: #ffffff !important; border: 3px solid #ffffff !important; border-radius: 50%; padding: 5px; display: block; position: relative; z-index: 3; transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.vote-bar-wrap:hover .vote-poster { transform: scale(1.15); box-shadow: 0 0 15px rgba(255,255,255,0.3); }

@keyframes premiumBounce { 0%, 85%, 100% { transform: translateY(0) scale(1); } 88% { transform: translateY(-12px) scale(1.05); } 92% { transform: translateY(2px) scale(0.95); } 95% { transform: translateY(-3px) scale(1.02); } 98% { transform: translateY(0) scale(1); } }

.vote-bar {
  width: 100%; max-width: 34px; position: relative; display: flex; align-items: flex-start; justify-content: center;
  padding-top: 6px; font-size: 13px; font-weight: 900; color: #fff; min-height: 32px; 
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1); margin-top: 10px; margin-bottom: 6px; margin-left: 0;
  background: linear-gradient(to top, #1e3a8a, #3b82f6); box-shadow: inset 0 0 10px rgba(255,255,255,0.1), 0 0 20px rgba(59, 130, 246, 0.3);
}
.vote-bar::before { content: ""; position: absolute; top: -9.5px; left: 5px; width: 100%; height: 10px; background: #93c5fd; transform: skewX(-45deg); }
.vote-bar::after { content: ""; position: absolute; top: -5px; right: -9.5px; width: 10px; height: 100%; background: #2563eb; transform: skewY(-45deg); }

.vote-bar.rank-1 { background: linear-gradient(to top, #a16207, #facc15); box-shadow: inset 0 0 10px rgba(255,255,255,0.2), 0 0 25px rgba(250, 204, 21, 0.4); color: #000; }
.vote-bar.rank-1::before { background: #fef08a; }
.vote-bar.rank-1::after { background: #ca8a04; }
.vote-bar.rank-2 { background: linear-gradient(to top, #475569, #94a3b8); box-shadow: inset 0 0 10px rgba(255,255,255,0.1), 0 0 20px rgba(148, 163, 184, 0.3); color: #000; }
.vote-bar.rank-2::before { background: #e2e8f0; }
.vote-bar.rank-2::after { background: #64748b; }
.vote-bar.rank-3 { background: linear-gradient(to top, #c2410c, #f97316); box-shadow: inset 0 0 10px rgba(255,255,255,0.1), 0 0 20px rgba(249, 115, 22, 0.3); }
.vote-bar.rank-3::before { background: #fdba74; }
.vote-bar.rank-3::after { background: #ea580c; }

.vote-count { margin-top: 8px; font-size: 12px; font-weight: 900; color: #fff; text-align: center; }
.vote-title { font-size: 11px; color: var(--text-muted); text-align: center; line-height: 1.2; margin-top: 2px; height: 26px; }

/* ==========================================================================
   7. GLOBAL HEADQUARTERS MAP
   ========================================================================== */
.map-container { position: relative; overflow: hidden; }
.map-container::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.15) 0%, rgba(139, 92, 246, 0.08) 50%, transparent 100%);
  pointer-events: none; z-index: 1000;
}

.map-marker-wrap {
  width: 26px; height: 26px; background: #ffffff; border: 2px solid #ffffff !important; 
  border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,0.6); cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s;
  display: flex; justify-content: center; align-items: center;
}
.map-marker-wrap:hover { transform: scale(2.2) translateY(-4px); box-shadow: 0 12px 20px rgba(0,0,0,0.7); z-index: 1000 !important; }
.map-marker-logo { width: 100%; height: 100%; object-fit: contain; padding: 3px; border-radius: 50%; }

.premium-cluster {
  background: rgba(56, 189, 248, 0.25); border: 1px solid rgba(56, 189, 248, 0.5); border-radius: 50%;
  color: #fff; font-weight: 800; font-size: 15px; display: flex; justify-content: center; align-items: center;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.5); transition: all 0.3s ease; width: 100%; height: 100%;
}
.premium-cluster:hover { transform: scale(1.15); background: rgba(56, 189, 248, 0.4); box-shadow: 0 0 35px rgba(56, 189, 248, 0.8); }

.reset-map-btn {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: #fff;
  padding: 6px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; cursor: pointer;
  transition: all 0.2s ease; display: flex; align-items: center; gap: 4px; backdrop-filter: blur(4px);
}
.reset-map-btn:hover { background: rgba(255,255,255,0.1); border-color: #38bdf8; transform: translateY(-1px); }

/* ==========================================================================
   8. COMPANY DEDICATED PAGE UI
   ========================================================================== */
.company-page-card {
  box-shadow: 0 15px 40px rgba(0,0,0,0.6); border-radius: var(--radius);
  max-width: 800px; margin: 0 auto; background: var(--bg-content); border: 1px solid var(--border);
}
.back-btn {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: #fff;
  padding: 8px 16px; border-radius: 20px; font-size: 12px; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: all 0.2s ease; display: flex; align-items: center; gap: 6px; backdrop-filter: blur(4px);
}
.back-btn:hover { background: var(--bg-hover); color: #fff; border-color: #38bdf8; box-shadow: 0 0 12px rgba(56, 189, 248, 0.3); transform: translateX(-4px); }

.company-single-map {
  height: 220px; width: 100%; border-radius: 8px; margin-bottom: 24px;
  border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 1; position: relative; overflow: hidden;
}
.company-single-map::after {
  content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 25px rgba(0,0,0,0.6); pointer-events: none; z-index: 1000;
}

.modal-hero { display: flex; gap: 20px; padding: 24px; background: #141414; border-bottom: 1px solid var(--border); align-items: flex-start; }
.modal-hero img { width: 80px; height: 80px; object-fit: contain; background: #fff; padding: 8px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 4px 15px rgba(0,0,0,0.5); margin-top: 4px; }
.modal-hero-info { flex: 1; min-width: 0; }
.modal-hero h1, .modal-hero h2 { margin: 0 0 4px; color: #fff; font-weight: 900; letter-spacing: -0.5px; }
.modal-hero h1 { font-size: 24px; }
.modal-hero h2 { font-size: 20px; }
.modal-hero .jp-title { color: var(--text-muted); font-size: 12px; margin-bottom: 10px; }

.modal-tags { display: flex; gap: 6px; margin-bottom: 14px; }
.modal-tags span { background: rgba(255,255,255,0.05); border: 1px solid var(--border); padding: 4px 8px; font-size: 10px; border-radius: 20px; font-weight: 700; text-transform: uppercase;}

.wl-btn {
  display: inline-block; background: var(--grad-primary); border: none; color: #fff;
  padding: 10px 20px; border-radius: 20px; font-size: 12px; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; margin-top: 4px; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}
.wl-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6); }

/* Premium Colored Stat Boxes (Company Page) */
.company-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.company-stats-grid div { padding: 12px 8px; text-align: center; border-radius: 8px; backdrop-filter: blur(4px); border: 1px solid var(--border); transition: transform 0.2s; }
.company-stats-grid div:hover { transform: translateY(-2px); }
.company-stats-grid strong { display: block; font-size: 16px; font-weight: 900; margin-bottom: 4px; color: #fff; }
.company-stats-grid small { color: var(--text-muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

.stat-card-visits { background: linear-gradient(135deg, rgba(74, 222, 128, 0.1), rgba(74, 222, 128, 0.02)) !important; border-color: rgba(74, 222, 128, 0.3) !important; }
.stat-card-visits strong { color: #4ade80 !important; }
.stat-card-worth { background: linear-gradient(135deg, rgba(250, 204, 21, 0.1), rgba(250, 204, 21, 0.02)) !important; border-color: rgba(250, 204, 21, 0.3) !important; }
.stat-card-worth strong { color: #facc15 !important; }
.stat-card-trank { background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(56, 189, 248, 0.02)) !important; border-color: rgba(56, 189, 248, 0.3) !important; }
.stat-card-trank strong { color: #38bdf8 !important; }
.stat-card-wrank { background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.02)) !important; border-color: rgba(139, 92, 246, 0.3) !important; }
.stat-card-wrank strong { color: #8b5cf6 !important; }

.modal-body { padding: 24px; background: var(--bg-panel); border-radius: 0 0 var(--radius) var(--radius); }
.quick-facts { background: rgba(255,255,255,0.02); padding: 16px; border: 1px solid var(--border); border-radius: 8px; margin-top: 16px; }
.quick-facts div { margin-bottom: 8px; font-size: 13px; color: #fff; }
.quick-facts span { color: var(--text-muted); font-weight: 700; width: 100px; display: inline-block; }

.ceo-card { display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,0.02); border: 1px solid var(--border); padding: 16px; border-radius: 8px; margin-top: 16px; }
.ceo-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); flex-shrink: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.ceo-card .ceo-info { flex: 1; }
.ceo-card .ceo-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 2px; }
.ceo-card .ceo-name { font-size: 16px; font-weight: 900; color: #fff; }
.ceo-card .ceo-since { font-size: 12px; color: var(--text-muted); }

.employees-block { background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(96, 165, 250, 0.02)); border: 1px solid rgba(96, 165, 250, 0.2); padding: 14px 16px; border-radius: 8px; margin-top: 16px; display: flex; justify-content: space-between; align-items: center; }
.employees-block .emp-label { font-size: 11px; color: #93c5fd; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }
.employees-block .emp-count { font-size: 20px; font-weight: 900; color: #fff; }
.employees-block .emp-growth { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.emp-growth.up { color: #000; background: #4ade80; }
.emp-growth.down { color: #fff; background: #ef4444; }

.trivia-box { background: linear-gradient(135deg, rgba(250, 204, 21, 0.1), rgba(250, 204, 21, 0.02)); border-left: 4px solid var(--gold); padding: 14px 16px; border-radius: 4px 8px 8px 4px; margin-top: 20px; }
.trivia-box .trivia-label { font-size: 11px; font-weight: 900; color: var(--gold); text-transform: uppercase; margin-bottom: 6px; letter-spacing: 0.5px; }
.trivia-box .trivia-text { font-size: 13.5px; line-height: 1.5; color: #fff; font-style: italic; }

.heatmap-section { background: rgba(255,255,255,0.02); border: 1px solid var(--border); padding: 16px; border-radius: 8px; margin-top: 20px; }
.heatmap-section h5 { margin: 0 0 16px; font-size: 14px; color: #fff; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.heatmap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; }
.heatmap-row { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.heatmap-flag { font-size: 16px; }
.heatmap-country { font-weight: 700; color: #fff; min-width: 28px; }
.heatmap-bar-wrap { flex: 1; height: 6px; background: rgba(255,255,255,0.05); border-radius: 4px; overflow: hidden; }
.heatmap-bar { height: 100%; background: var(--grad-primary); border-radius: 4px; transition: width 0.8s ease; }
.heatmap-pct { font-size: 11px; color: var(--text-muted); font-weight: 700; min-width: 32px; text-align: right; }

/* ==========================================================================
   9. GUIDE ARTICLE & FAQ TYPOGRAPHY (HOMEPAGE)
   ========================================================================== */
.guide-article { 
  background: rgba(10, 10, 10, 0.65); 
  backdrop-filter: blur(16px); 
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border); 
  border-radius: 16px; 
  padding: 48px; 
  margin-top: 40px; 
  box-shadow: 0 20px 50px rgba(0,0,0,0.5); 
}
.guide-article h2 { font-size: 1.8rem; color: #ffffff; margin: 0 0 24px 0; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; letter-spacing: -0.5px; }
.guide-article h3 { font-size: 1.4rem; color: #38bdf8; margin: 48px 0 16px 0; font-weight: 900; letter-spacing: -0.3px; }
.guide-article p { color: #e2e8f0; font-size: 15px; line-height: 1.8; margin-top: 0; margin-bottom: 20px; }
.guide-article strong { color: #ffffff; }
.guide-article ul { margin: 0 0 32px 0; padding-left: 24px; color: #e2e8f0; line-height: 1.8; }
.guide-article li { margin-bottom: 12px; }

/* Table of Contents Block (Green Aesthetic) */
.toc-container {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 35px;
  border-left: 4px solid #00bc8c; 
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.toc-container h3 {
  margin-top: 0 !important;
  font-size: 1.25rem !important;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}
.toc-container h3 img {
  filter: brightness(0) invert(1);
}
.toc-container p {
  font-size: 13px !important;
  color: var(--text-muted) !important;
  margin: 0 0 20px 0 !important;
}
.toc-container ul {
  list-style-type: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important; /* Uniform vertical spacing between lines */
}
.toc-container li {
  margin-bottom: 0 !important;
}
.toc-container a {
  color: #00bc8c; 
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  transition: color 0.2s ease;
  display: inline-block;
}
.toc-container a:hover {
  color: #02c39a; 
  text-decoration: underline;
}

/* Dashboard Utility Callout Box */
.dashboard-utility-box {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: var(--radius);
  margin-bottom: 40px;
}
.dashboard-utility-box h3 {
  margin-top: 0 !important;
  color: var(--text-main);
}
.dashboard-utility-box ul {
  list-style-type: none !important;
  padding-left: 0 !important;
  margin-bottom: 0 !important;
}
.dashboard-utility-box li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
}
.dashboard-utility-box li:last-child {
  margin-bottom: 0;
}
.dashboard-utility-box .badge-pill {
  padding: 2px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 11px;
  margin-top: 3px;
  display: inline-block;
  white-space: nowrap;
}
.dashboard-utility-box .badge-graph {
  background: rgba(96, 165, 250, 0.1);
  color: var(--link);
  border: 1px solid rgba(96, 165, 250, 0.2);
}
.dashboard-utility-box .badge-map {
  background: rgba(74, 222, 128, 0.1);
  color: var(--trend-up);
  border: 1px solid rgba(74, 222, 128, 0.2);
}
.dashboard-utility-box .badge-quiz {
  background: rgba(250, 204, 21, 0.1);
  color: var(--gold);
  border: 1px solid rgba(250, 204, 21, 0.2);
}
.dashboard-utility-box .badge-cards {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

/* FAQ Module */
.faq-section { 
  background: rgba(255,255,255,0.03); 
  border: 1px solid rgba(255, 255, 255, 0.08); 
  padding: 32px; 
  border-radius: 12px; 
  margin-top: 56px; 
}
.faq-section h3 { margin-top: 0; font-size: 1.5rem; color: #fff; margin-bottom: 24px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 24px;
}
.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.faq-item h4 { color: #fff; margin: 0 0 8px 0; font-size: 1.15rem; font-weight: 700; }
.faq-item p { margin-top: 0; margin-bottom: 0; color: #94a3b8; line-height: 1.7; }

/* Scoped Features Section (Overrides parent overrides with high specificity) */
.guide-article .features-section { 
  margin: 40px 0 48px 0; 
  padding: 40px 0; 
  border-top: 1px dashed rgba(255,255,255,0.1); 
  border-bottom: 1px dashed rgba(255,255,255,0.1); 
}
.guide-article .features-section h3 { 
  margin-top: 0; 
  color: #fff !important; 
  text-align: center !important; 
  font-size: 1.4rem; 
  letter-spacing: -0.5px; 
  margin-bottom: 32px;
}
.guide-article .features-grid { 
  display: grid !important; 
  grid-template-columns: repeat(3, 1fr) !important; 
  gap: 32px 24px !important; 
}
.guide-article .feature-item { 
  text-align: center !important; 
  padding: 0 10px; 
  transition: transform 0.2s; 
}
.guide-article .feature-item:hover { 
  transform: translateY(-3px); 
}
.guide-article .feature-item h4 { 
  font-size: 15px; 
  color: #fff !important; 
  margin: 0 0 12px 0; 
  font-weight: 900; 
  display: flex !important; 
  justify-content: center !important; 
  align-items: center !important; 
  gap: 8px; 
}
.guide-article .feature-item h4 img {
  display: inline-block !important;
  vertical-align: middle;
}
.guide-article .feature-item p { 
  margin: 0; 
  color: var(--text-muted); 
  font-size: 13.5px; 
  line-height: 1.6; 
  text-align: center !important;
}

/* Responsive Overrides for Scoped Grid */
@media (max-width: 850px) {
  .guide-article .features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px) {
  .guide-article .features-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .guide-article .features-section {
    padding: 24px 0 !important;
    margin: 24px 0 !important;
  }
}

/* Light Mode Overrides for Section 9 Elements */
body.light-mode .toc-container {
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  border-left: 4px solid #0f766e; /* Rich emerald-teal for light mode reading */
}
body.light-mode .toc-container h3 img {
  filter: none;
}
body.light-mode .toc-container a {
  color: #0d9488; /* Highly readable teal-green */
}
body.light-mode .toc-container a:hover {
  color: #0f766e;
}
body.light-mode .dashboard-utility-box {
  background: var(--bg-hover);
}
body.light-mode .faq-item {
  border-bottom-color: var(--border);
}
body.light-mode .faq-item h4 {
  color: var(--text-main) !important;
}
body.light-mode .faq-item p {
  color: var(--text-muted);
}
body.light-mode .guide-article .features-section h3,
body.light-mode .guide-article .feature-item h4 {
  color: var(--text-main) !important;
}
body.light-mode .guide-article .feature-item p {
  color: var(--text-muted) !important;
}

/* ==========================================================================
   10. QUIZ PAGE BENTO UI
   ========================================================================== */
.quiz-promo-banner {
  background: linear-gradient(135deg, #fde047, #f59e0b); border-radius: var(--radius); padding: 16px 24px; margin-bottom: 24px;
  display: flex; align-items: center; justify-content: space-between; cursor: pointer; box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
  transition: transform 0.2s, box-shadow 0.2s; border: 1px solid #fcd34d;
}
.quiz-promo-banner:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(245, 158, 11, 0.4); }
.quiz-promo-content { display: flex; align-items: center; gap: 16px; }
.quiz-promo-icon { font-size: 32px; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2)); }
.quiz-promo-text h3 { margin: 0 0 4px; font-size: 18px; color: #000; font-weight: 900; letter-spacing: -0.5px; }
.quiz-promo-text p { margin: 0; font-size: 13px; color: #451a03; font-weight: 700; }
.quiz-promo-btn {
  background: #000; color: #fde047; border: none; padding: 10px 20px;
  border-radius: 20px; font-weight: 900; font-size: 13px; cursor: pointer; transition: background 0.2s;
}
.quiz-promo-banner:hover .quiz-promo-btn { background: #1f2937; }

body.quiz-page { background-image: none !important; background-color: var(--bg-body) !important; }
body.quiz-page::before, body.quiz-page::after { display: none !important; }

.quiz-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; background: var(--bg-content); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: 0 8px 24px rgba(0,0,0,0.4); min-height: 400px; }

.bento-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.bento-card { padding: 24px; border-radius: 20px; cursor: pointer; text-align: center; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid rgba(255,255,255,0.05); }
.bento-card.color-1 { background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.1)); border-color: rgba(139, 92, 246, 0.3); }
.bento-card.color-2 { background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.1)); border-color: rgba(245, 158, 11, 0.3); }
.bento-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.5); filter: brightness(1.2); }
.quiz-card-icon { font-size: 40px; margin-bottom: 12px; display: block; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3)); }
.bento-card h3 { margin: 0 0 6px; color: #fff; font-size: 20px; font-weight: 900; letter-spacing: -0.5px; }
.bento-card p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.5; }

.quiz-back-link { background: transparent; border: none; color: var(--text-muted); font-size: 13px; font-weight: 700; cursor: pointer; padding: 0; margin-bottom: 8px; display: inline-flex; align-items: center; transition: color 0.2s; }
.quiz-back-link:hover { color: #fff; }

.bento-header { background: var(--bg-panel); border-radius: 16px; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--border); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.quiz-progress { font-size: 13px; font-weight: 700; color: #fff; background: var(--grad-primary); padding: 6px 12px; border-radius: 20px; box-shadow: 0 4px 10px rgba(139, 92, 246, 0.4); }

.bento-question { background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(139, 92, 246, 0.05)); border-radius: 16px; padding: 24px 20px; text-align: center; border: 1px solid rgba(139, 92, 246, 0.3); box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
.quiz-question-text { font-size: 20px; color: #fff; font-weight: 900; margin: 0; line-height: 1.4; letter-spacing: -0.5px; }
.quiz-image { max-width: 70px; height: 70px; object-fit: contain; background: #fff; padding: 8px; border-radius: 16px; margin: 0 auto 16px auto; box-shadow: 0 8px 20px rgba(0,0,0,0.5); border: 2px solid var(--border); }

.bento-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 4px; }
.bento-option { background: var(--bg-panel); border: 2px solid var(--border); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.bento-option:hover { background: rgba(255,255,255,0.05); border-color: #38bdf8; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(56, 189, 248, 0.2); }
.bento-option.correct { background: rgba(74, 222, 128, 0.15) !important; border-color: #4ade80 !important; color: #4ade80 !important; box-shadow: 0 0 15px rgba(74, 222, 128, 0.3); }
.bento-option.wrong { background: rgba(239, 68, 68, 0.15) !important; border-color: #ef4444 !important; color: #ef4444 !important; box-shadow: 0 0 15px rgba(239, 68, 68, 0.3); }
.bento-option:disabled { cursor: not-allowed; opacity: 0.8; }

.quiz-next-btn { background: var(--grad-primary); color: #fff; border: none; padding: 12px 28px; border-radius: 24px; font-size: 15px; font-weight: 900; cursor: pointer; margin: 16px auto 0 auto; display: none; transition: transform 0.2s; box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4); }
.quiz-next-btn:hover { transform: translateY(-3px); }

.quiz-results-score { font-size: 64px; font-weight: 900; color: var(--gold); margin-bottom: 8px; text-shadow: 0 0 30px rgba(250, 204, 21, 0.4); }
.quiz-results-msg { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 32px; }

/* ==========================================================================
   11. DID YOU KNOW POPUP
   ========================================================================== */
.dyk-popup {
  position: fixed; bottom: 24px; right: 24px; background: rgba(15, 15, 15, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  color: #fff; padding: 20px 24px; border-radius: 16px; box-shadow: 0 15px 40px rgba(0,0,0,0.8);
  width: 340px; max-width: calc(100vw - 48px); z-index: 9995 !important; border: 1px solid rgba(255,255,255,0.1);
  animation: slideInDyk 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideInDyk { from { transform: translateX(400px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.dyk-popup[hidden] { display: none; }
.dyk-header { font-size: 14px; font-weight: 900; margin-bottom: 10px; color: var(--gold); display: flex; align-items: center; gap: 6px; }
.dyk-text { font-size: 13.5px; line-height: 1.5; margin-bottom: 16px; color: #f8fafc; }
.dyk-close { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,0.1); border: none; color: #fff; border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; font-size: 14px; cursor: pointer; transition: all 0.2s; }
.dyk-close:hover { background: #ef4444; }
.dyk-next { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 8px 16px; border-radius: 20px; font-size: 12px; cursor: pointer; font-weight: 700; transition: all 0.2s; width: 100%; text-align: center; }
.dyk-next:hover { background: rgba(255,255,255,0.1); }

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.site-footer { background: #050505; border-top: 1px solid var(--border); margin-top: 60px; padding-top: 60px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 40px; }
.brand-col h2 { margin: 0; font-size: 1.4rem; color: #fff; letter-spacing: -0.5px; }
.footer-desc { color: var(--text-muted); font-size: 13.5px; line-height: 1.6; margin-top: 16px; max-width: 450px; }
.footer-col.brand-col { flex: 2; min-width: 280px; }
.footer-col.links-col { flex: 1; min-width: 140px; }
.footer-link { color: var(--text-muted); text-decoration: none; font-size: 13.5px; transition: color 0.2s; }
.footer-link:hover { color: #38bdf8; text-decoration: underline; }
.footer-bottom { background: #000; border-top: 1px solid var(--border-dark); padding: 24px 0; text-align: center; }
.footer-bottom p { margin: 0; color: var(--text-muted); font-size: 12px; }

/* ==========================================================================
   13. RESPONSIVE MEDIA QUERIES (MOBILE OPTIMIZATION)
   ========================================================================== */
@media (max-width: 850px) {
  .country-grid { grid-template-columns: 1fr; gap: 16px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; } 
}

@media (max-width: 768px) {
  .sub-nav-inner { flex-direction: column; align-items: center; padding: 12px 10px; gap: 12px; }
  .country-nav { flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; padding: 0; }
  .country-nav button { padding: 6px 14px; font-size: 11px; }
  .sort-controls { width: 100%; justify-content: center; padding-top: 12px; margin: 0; border-top: 1px solid var(--border); }
  body::after { display: none !important; }
  #hqMap { height: 280px !important; }
}

@media (max-width: 650px) {
  .company-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .quiz-promo-banner { flex-direction: column; text-align: center; gap: 16px; padding: 20px; }
  .quiz-promo-content { flex-direction: column; gap: 8px; }
  .quiz-promo-btn { width: 100%; }
  .bento-grid, .bento-options { grid-template-columns: 1fr; }
  .quiz-question-text { font-size: 18px; }
  .features-grid { grid-template-columns: 1fr; gap: 24px; } 
  .features-section { padding: 24px 0; margin: 24px 0; }
  .guide-article { padding: 32px 20px; margin-top: 24px; }
}

@media (max-width: 480px) {
  .stats-boxes { flex-direction: column; gap: 4px; align-items: flex-end; }
  .stat-box { min-width: auto; padding: 4px 8px; background: transparent; border: none; }
  .title { font-size: 13px; }
}

/* ==========================================================================
   14. LIGHT MODE OVERRIDES
   ========================================================================== */
body.light-mode {
  --bg-body: #f8fafc; --bg-content: #ffffff; --bg-panel: #ffffff; --bg-header: rgba(255,255,255,0.85); --bg-hover: #f1f5f9;
  --border: #e2e8f0; --border-dark: #cbd5e1; --text-main: #0f172a; --text-muted: #64748b; --text-rank: #334155;
  --grid-color: rgba(0, 0, 0, 0.04);
}
body.light-mode::before { background: radial-gradient(circle at top, rgba(56, 189, 248, 0.15) 0%, rgba(139, 92, 246, 0.1) 35%, transparent 70%); }
body.light-mode::after { background: linear-gradient(135deg, transparent 0%, transparent 45%, rgba(37, 99, 235, 0.1) 46%, rgba(59, 130, 246, 0.5) 48.5%, rgba(6, 182, 212, 0.8) 49.5%, rgba(255, 255, 255, 1.0) 50%, transparent 50.5%, transparent 100%); background-size: 300% 300%; }

/* Unified Light Mode Containers */
body.light-mode .section-header { background: rgba(248, 250, 252, 0.8); border-color: var(--border); }
body.light-mode .hero-container, body.light-mode .graph-container, body.light-mode .map-container, body.light-mode .anime-list { 
  background: #ffffff; border-color: var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.06); 
}

/* Header & Nav */
body.light-mode .site-header { border-bottom: 1px solid var(--border); }
body.light-mode .header-tools #searchBox, body.light-mode .sort-controls select { background: #ffffff; border-color: var(--border); color: #0f172a; }
body.light-mode .header-tools #searchBox:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1); }
body.light-mode .sub-nav { background: #ffffff; border-color: var(--border); }
body.light-mode .theme-toggle { background: #ffffff; color: #0f172a; border-color: var(--border); }
body.light-mode .theme-toggle:hover { background: var(--grad-primary); color: #ffffff; border-color: transparent; }

/* Grid Cards */
body.light-mode .anime-item { background: #ffffff; border-color: var(--border); }
body.light-mode .anime-item:hover { background: #f8fafc; box-shadow: 0 6px 16px rgba(0,0,0,0.08); border-color: var(--border-dark); }
body.light-mode .anime-item:hover .title { color: transparent; background: var(--grad-primary); -webkit-background-clip: text; }
body.light-mode .stat-box { background: #f1f5f9; border-color: var(--border); }
body.light-mode .poster, body.light-mode .vote-poster { background: #ffffff; border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
body.light-mode .vote-poster-wrap { filter: drop-shadow(0px 6px 5px rgba(0, 0, 0, 0.15)); }

/* 3D Bars */
body.light-mode .vote-bar { background: #3b82f6; box-shadow: -3px 6px 10px rgba(0, 0, 0, 0.06); color: #ffffff; }
body.light-mode .vote-bar::before { background: #60a5fa; } 
body.light-mode .vote-bar::after { background: #2563eb; } 
body.light-mode .vote-bar.rank-1 { background: #eab308; box-shadow: -3px 6px 10px rgba(0, 0, 0, 0.06); color: #000000; }
body.light-mode .vote-bar.rank-1::before { background: #facc15; }
body.light-mode .vote-bar.rank-1::after { background: #ca8a04; }
body.light-mode .vote-bar.rank-2 { background: #94a3b8; box-shadow: -3px 6px 10px rgba(0, 0, 0, 0.06); color: #ffffff; }
body.light-mode .vote-bar.rank-2::before { background: #cbd5e1; }
body.light-mode .vote-bar.rank-2::after { background: #64748b; }
body.light-mode .vote-bar.rank-3 { background: #f97316; box-shadow: -3px 6px 10px rgba(0, 0, 0, 0.06); color: #ffffff; }
body.light-mode .vote-bar.rank-3::before { background: #fdba74; }
body.light-mode .vote-bar.rank-3::after { background: #ea580c; }

/* Map Clusters */
body.light-mode .premium-cluster { color: #0f172a; background: rgba(56, 189, 248, 0.15); border-color: #3b82f6; box-shadow: 0 0 15px rgba(56, 189, 248, 0.3); }
body.light-mode .premium-cluster:hover { background: rgba(56, 189, 248, 0.3); box-shadow: 0 0 25px rgba(56, 189, 248, 0.4); }
body.light-mode .reset-map-btn { background: #ffffff; border-color: var(--border); color: #64748b; }
body.light-mode .reset-map-btn:hover { background: #f8fafc; color: #0f172a; border-color: #38bdf8; }

/* Company Page Overrides */
body.light-mode .back-btn { background: #ffffff; border-color: var(--border); }
body.light-mode .back-btn:hover { background: #f8fafc; border-color: #8b5cf6; box-shadow: 0 0 12px rgba(56, 189, 248, 0.2); transform: translateX(-4px); }
body.light-mode .company-page-card { background: #ffffff; box-shadow: 0 25px 50px rgba(0,0,0,0.15); border-color: var(--border); }
body.light-mode .company-single-map { box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
body.light-mode .company-single-map::after { box-shadow: inset 0 0 20px rgba(0,0,0,0.1); }
body.light-mode .modal-hero { background: #f8fafc; border-bottom-color: var(--border); }
body.light-mode .modal-tags span, body.light-mode .modal-grid div, body.light-mode .quick-facts, body.light-mode .ceo-card { background: #ffffff; border-color: var(--border); }
body.light-mode .employees-block { background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(37, 99, 235, 0.01)); border-color: rgba(37, 99, 235, 0.2); }
body.light-mode .trivia-box { background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.02)); }
body.light-mode .heatmap-section { background: #ffffff; border-color: var(--border); box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
body.light-mode .heatmap-bar-wrap { background: #e2e8f0; }

body.light-mode .stat-card-visits { background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), rgba(74, 222, 128, 0.05)) !important; border-color: rgba(74, 222, 128, 0.4) !important; }
body.light-mode .stat-card-visits strong { color: #16a34a !important; }
body.light-mode .stat-card-worth { background: linear-gradient(135deg, rgba(250, 204, 21, 0.15), rgba(250, 204, 21, 0.05)) !important; border-color: rgba(250, 204, 21, 0.4) !important; }
body.light-mode .stat-card-worth strong { color: #ca8a04 !important; }
body.light-mode .stat-card-trank { background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(56, 189, 248, 0.05)) !important; border-color: rgba(56, 189, 248, 0.4) !important; }
body.light-mode .stat-card-trank strong { color: #0284c7 !important; }
body.light-mode .stat-card-wrank { background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05)) !important; border-color: rgba(139, 92, 246, 0.4) !important; }
body.light-mode .stat-card-wrank strong { color: #6d28d9 !important; }

/* Guide Article Light Mode */
body.light-mode .guide-article { background: rgba(255, 255, 255, 0.85); border-color: #cbd5e1; box-shadow: 0 15px 35px rgba(0,0,0,0.05); }
body.light-mode .guide-article h2 { color: #0f172a !important; border-bottom-color: #e2e8f0; }
body.light-mode .guide-article h3 { color: #2563eb !important; }
body.light-mode .guide-article p, body.light-mode .guide-article ul { color: #334155; }
body.light-mode .guide-article strong { color: #0f172a; }

/* FAQ Section Light Mode */
body.light-mode .faq-section { background: #f8fafc; border-color: #cbd5e1; }
body.light-mode .faq-section h3, body.light-mode .faq-section h4 { color: #0f172a !important; }
body.light-mode .faq-section p { color: #475569; }

/* Features Grid Light Mode */
body.light-mode .features-section { border-color: #cbd5e1; }
body.light-mode .features-section h3 { color: #0f172a !important; }
body.light-mode .feature-item h4 { color: #0f172a !important; }
body.light-mode .feature-item p { color: #475569; }

/* Quiz & DYK Light Mode */
body.light-mode .quiz-promo-banner { box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15); }
body.light-mode .quiz-promo-banner:hover { box-shadow: 0 12px 30px rgba(245, 158, 11, 0.25); }
body.light-mode .quiz-container { background: #ffffff; border-color: var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
body.light-mode .bento-card { background: #ffffff; border-color: var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
body.light-mode .bento-card.color-1 { background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.05)); border-color: rgba(139, 92, 246, 0.2); }
body.light-mode .bento-card.color-2 { background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(239, 68, 68, 0.05)); border-color: rgba(245, 158, 11, 0.2); }
body.light-mode .bento-header { background: #ffffff; border-color: var(--border); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
body.light-mode .bento-question { background: linear-gradient(135deg, rgba(56, 189, 248, 0.05), rgba(139, 92, 246, 0.05)); border-color: rgba(139, 92, 246, 0.2); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
body.light-mode .quiz-image { border-color: var(--border); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
body.light-mode .bento-option { background: #ffffff; border-color: var(--border); color: #0f172a; }
body.light-mode .bento-option:hover { background: #f8fafc; border-color: #38bdf8; }
body.light-mode .quiz-back-link:hover { color: #0f172a; }

body.light-mode .dyk-popup { background: rgba(255,255,255,0.9); border-color: var(--border); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
body.light-mode .dyk-close { background: #f1f5f9; color: #64748b; }
body.light-mode .dyk-next { background: #f8fafc; border-color: var(--border); color: #0f172a; }

/* Text Color Overrides for Light Mode */
body.light-mode .brand div, body.light-mode .brand h1, body.light-mode .brand h2,
body.light-mode .section-header h1, body.light-mode .section-header h2,
body.light-mode .footer-col h4, body.light-mode .modal-hero h1, body.light-mode .modal-hero h2,
body.light-mode .modal-body h4, body.light-mode .title, body.light-mode .vote-count,
body.light-mode .back-btn, body.light-mode .bento-card h3, body.light-mode .quiz-question-text,
body.light-mode .quiz-results-msg, body.light-mode .heatmap-section h5, body.light-mode .heatmap-country,
body.light-mode .ceo-card .ceo-name, body.light-mode .quick-facts div, body.light-mode .modal-grid strong, body.light-mode .dyk-text {
  color: #0f172a !important;
}

body.light-mode .stat-box .stat-label, body.light-mode .stat-box .stat-value, body.light-mode .vote-title,
body.light-mode .modal-hero .jp-title, body.light-mode .modal-grid small, body.light-mode .quick-facts span,
body.light-mode .ceo-card .ceo-since, body.light-mode .heatmap-pct, body.light-mode .footer-desc, body.light-mode .footer-bottom p {
  color: #475569;
}

body.light-mode .footer-link { color: #64748b; }
body.light-mode .footer-link:hover { color: #2563eb; }
body.light-mode .guide-article a[href^="mailto:"] { color: #2563eb !important; }

/* Footer Light Mode */
body.light-mode .site-footer { background: #ffffff; border-top-color: var(--border); }
body.light-mode .footer-bottom { background: #f8fafc; border-top-color: var(--border); }
body.light-mode .brand-col h2 { color: #0f172a; }