/* ==========================================================================
   ĐÌNH DŨNG — ANTI ANTI AI · LIVE MEDIA HUB
   THIẾT KẾ: DIGITAL BRUTALISM + EDITORIAL HIỆN ĐẠI + MOTION DESIGN
   MÀU SẮC: ĐEN TUYỆT ĐỐI (#080808) + TRẮNG NGÀ (#F2F0EA) + ACID LIME (#B7FF00)
   ========================================================================== */

:root {
  --bg-primary: #080808;
  --bg-surface: #0f0f0f;
  --bg-card: #141414;
  --bg-elevated: #1a1a1a;
  
  --text-primary: #F2F0EA;
  --text-secondary: #9e9d96;
  --text-muted: #5e5d59;
  
  --accent: #B7FF00;
  --accent-dim: rgba(183, 255, 0, 0.15);
  --accent-glow: rgba(183, 255, 0, 0.35);
  --accent-dark: #8cc400;
  
  --border-subtle: rgba(242, 240, 234, 0.08);
  --border-strong: rgba(242, 240, 234, 0.18);
  --border-accent: rgba(183, 255, 0, 0.4);

  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", SFMono-Regular, Consolas, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-base: 0.35s var(--ease-out);
  --transition-slow: 0.6s var(--ease-out);

  --container-max: 1380px;
  --header-height: 72px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Texture Noise Overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Global Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (max-width: 768px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   CUSTOM CURSOR (Desktop only)
   ========================================================================== */

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, transform 0.1s ease-out;
  display: none;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.cursor-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: var(--accent);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.65rem;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
}

body.cursor-active .cursor-dot {
  transform: scale(0);
}

body.cursor-active .cursor-badge {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .custom-cursor {
    display: block;
  }
}

/* ==========================================================================
   FLOATING HOVER PREVIEW (For timeline & articles)
   ========================================================================== */

.floating-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 175px;
  border-radius: 8px;
  overflow: hidden;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out);
  border: 1px solid var(--border-accent);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 20px rgba(183, 255, 0, 0.15);
  background: #000;
}

.floating-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-preview.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ==========================================================================
   PRELOADER ANIMATION (1.5 - 2.2s Kinetic Word Flash)
   ========================================================================== */

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s var(--ease-in-out), opacity 0.6s ease;
}

.preloader.completed {
  transform: translateY(-100%);
  pointer-events: none;
}

.preloader-header {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.preloader-words {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.preloader-word {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(40px) scale(0.9);
  transition: opacity 0.12s ease, transform 0.18s var(--ease-out);
  white-space: nowrap;
}

.preloader-word.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  color: var(--text-primary);
}

.preloader-word.highlight {
  color: var(--accent);
  text-shadow: 0 0 24px var(--accent-glow);
}

.preloader-final {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.35s ease, transform 0.4s var(--ease-out);
}

.preloader-final.show {
  opacity: 1;
  transform: scale(1);
}

.preloader-final span {
  color: var(--accent);
}

.preloader-skip {
  position: absolute;
  bottom: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background: transparent;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.preloader-skip:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.site-nav-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-live 2s infinite ease-in-out;
}

@keyframes pulse-live {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.75; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  white-space: nowrap;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  position: relative;
  padding: 0.35rem 0;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s var(--ease-out);
}

.nav-link:hover {
  color: var(--text-primary);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--accent);
  color: #000;
  border: 1px solid var(--accent);
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.cta-button:hover {
  background: #c8ff2a;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px var(--accent-glow);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: #080808;
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-in-out);
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  list-style: none;
  margin-bottom: 3rem;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
}

.mobile-nav-link:hover {
  color: var(--accent);
}

@media (max-width: 992px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
}

/* ==========================================================================
   SECTION COMMON ELEMENTS
   ========================================================================== */

/* ==========================================================================
   BENTO MASTER MODULAR LAYOUT SYSTEM
   - Phân chia bố cục rõ ràng theo chuẩn Bento Grid công nghệ cao
   - Đóng khung từng khu vực, viền ngăn cách sắc nét, nhận diện chuyên nghiệp
   ========================================================================== */

section {
  position: relative;
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-bottom: none;
}

@media (max-width: 768px) {
  section {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }
}

.bento-section {
  position: relative;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

/* Master Bento Module Box */
.bento-module-card {
  background: #0d0d10;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.bento-module-card:hover {
  border-color: rgba(183, 255, 0, 0.28);
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(183, 255, 0, 0.1);
}

/* Header bar cho từng Master Module */
.bento-module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.75rem;
  background: rgba(18, 18, 23, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  gap: 1rem;
}

.bento-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  white-space: nowrap;
}

.bento-index-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: #000;
  background: var(--accent);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  white-space: nowrap;
}

.bento-category-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.bento-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.bento-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.22rem 0.6rem;
  border-radius: 3px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Thân nội dung Module */
.bento-module-body {
  padding: 2.25rem 2rem;
}

.bento-module-intro {
  margin-bottom: 1.75rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
  white-space: nowrap;
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background-color: var(--accent);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.55;
}

/* ==========================================================================
   HERO BENTO GRID SYSTEM
   ========================================================================== */

.hero-hub {
  padding-top: 2rem;
  padding-bottom: 2rem;
  min-height: auto;
  border-bottom: none;
  position: relative;
  background: 
    radial-gradient(circle at 18% 28%, rgba(183, 255, 0, 0.08) 0%, transparent 48%),
    radial-gradient(circle at 82% 40%, rgba(0, 245, 160, 0.05) 0%, transparent 45%),
    transparent;
}

.hero-bento-grid {
  display: grid;
  grid-template-columns: 1.28fr 0.72fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* CYBER COMMAND CARD BASE */
.hero-bento-card {
  background: linear-gradient(180deg, rgba(16, 18, 22, 0.96) 0%, rgba(10, 11, 14, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 2.25rem 2.25rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.65), 
    inset 0 1px 0 rgba(183, 255, 0, 0.22),
    0 0 40px rgba(183, 255, 0, 0.03);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.hero-bento-card:hover {
  border-color: rgba(183, 255, 0, 0.35);
  box-shadow: 
    0 28px 70px rgba(0, 0, 0, 0.75), 
    inset 0 1px 0 rgba(183, 255, 0, 0.35),
    0 0 50px rgba(183, 255, 0, 0.08);
}

/* HUD CORNER BRACKETS */
.hero-card-bracket {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.hero-bento-card:hover .hero-card-bracket {
  opacity: 1;
}

.bracket-tl {
  top: 10px;
  left: 10px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.bracket-tr {
  top: 10px;
  right: 10px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

/* BENTO BRAND MODULE */
.hero-bento-brand {
  position: relative;
}

.hero-brand-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-grow: 1;
}

.hero-brand-text {
  flex: 1;
  min-width: 0;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 1.4rem;
  gap: 0.75rem;
}

.hub-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: rgba(183, 255, 0, 0.06);
  border: 1px solid rgba(183, 255, 0, 0.28);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(183, 255, 0, 0.08);
}

.hub-status-pill .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
  flex-shrink: 0;
  animation: pulseBeacon 2s infinite ease-in-out;
}

@keyframes pulseBeacon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.hub-timestamp {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}

.hub-timestamp strong {
  color: rgba(255, 255, 255, 0.85);
}

/* CYBER BRAND TITLE */
.hero-main-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4.4vw, 4.3rem);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  white-space: nowrap;
  background: linear-gradient(
    110deg,
    #ffffff 15%,
    #e2e8f0 35%,
    #ffffff 50%,
    #d9f99d 55%,
    #ffffff 60%,
    #cbd5e1 85%
  );
  background-size: 200% auto;
  animation: cyberMetallicShimmer 7s ease-in-out infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.9));
  transition: filter var(--transition-fast), transform var(--transition-fast);
}

.hero-bento-brand:hover .hero-main-title {
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 30px rgba(183, 255, 0, 0.2));
}

.hero-main-title .accent-text {
  display: inline-block;
  background: linear-gradient(135deg, #b7ff00 0%, #00f5a0 50%, #b7ff00 100%);
  background-size: 200% auto;
  animation: neonPulseFlow 3.5s ease-in-out infinite alternate;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(183, 255, 0, 0.75)) drop-shadow(0 0 45px rgba(183, 255, 0, 0.4));
  transition: filter var(--transition-fast), transform var(--transition-fast);
}

.hero-bento-brand:hover .hero-main-title .accent-text {
  filter: drop-shadow(0 0 30px rgba(183, 255, 0, 1)) drop-shadow(0 0 60px rgba(0, 245, 160, 0.6));
  transform: scale(1.03);
}

@keyframes cyberMetallicShimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

@keyframes neonPulseFlow {
  0%, 100% {
    filter: drop-shadow(0 0 18px rgba(183, 255, 0, 0.7)) drop-shadow(0 0 35px rgba(183, 255, 0, 0.35));
    background-position: 0% 50%;
  }
  50% {
    filter: drop-shadow(0 0 28px rgba(183, 255, 0, 0.95)) drop-shadow(0 0 55px rgba(0, 245, 160, 0.55));
    background-position: 100% 50%;
  }
}

.hero-subheadline {
  font-family: var(--font-body);
  font-size: clamp(0.74rem, 1.08vw, 0.9rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.7);
  max-width: none;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  margin-bottom: 1.5rem;
}

.hero-subheadline strong {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.25);
}

/* CALL TO ACTIONS */
.hero-brand-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-cta-cyber {
  position: relative;
  background: var(--accent);
  color: #000000;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.72rem 1.4rem;
  border-radius: 4px;
  box-shadow: 0 0 24px rgba(183, 255, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.hero-cta-cyber:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(183, 255, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  color: #000000;
}

.hero-ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  border: 1px solid rgba(183, 255, 0, 0.25);
  border-radius: 4px;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.hero-ghost-btn:hover {
  border-color: var(--accent);
  background: rgba(183, 255, 0, 0.06);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(183, 255, 0, 0.18);
}

/* 3D EMBLEM SCENE */
.hero-bento-brand .hero-brand-3d-wrapper {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.brand-3d-scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-3d-radar-ring {
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 1px dashed rgba(183, 255, 0, 0.18);
  pointer-events: none;
  animation: radarRotate 25s linear infinite;
}

@keyframes radarRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* BENTO TELEMETRY MODULE (CYBER COMMAND HUD) */
.hero-bento-telemetry {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  justify-content: space-between;
}

.hero-telemetry-top {
  display: flex;
  flex-direction: column;
}

.bento-telemetry-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.bento-telemetry-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

.telemetry-hud-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(183, 255, 0, 0.12);
  border: 1px solid rgba(183, 255, 0, 0.35);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  margin-left: auto;
}

/* LIVE TICKER STRIP */
.live-ticker-strip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1rem;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  border-radius: 6px;
  transition: border-color var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
}

.live-ticker-strip:hover {
  border-color: rgba(183, 255, 0, 0.4);
  background: rgba(183, 255, 0, 0.04);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(183, 255, 0, 0.1);
}

.ticker-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  overflow: hidden;
  flex-wrap: nowrap;
}

.ticker-badge-cluster {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.ticker-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: #000;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.ticker-action {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.live-ticker-strip:hover .ticker-action {
  transform: translateX(3px);
}

/* ==========================================================================
   HUD TELEMETRY STREAM (ZERO TRUNCATION ARCHITECTURE)
   ========================================================================== */
.hud-telemetry-stream {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hud-telemetry-row {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid rgba(183, 255, 0, 0.45);
  border-radius: 8px;
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.hud-telemetry-row:hover {
  background: rgba(183, 255, 0, 0.05);
  border-color: rgba(183, 255, 0, 0.35);
  border-left-color: var(--accent);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 20px rgba(183, 255, 0, 0.12);
}

.hud-row-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.hud-platform-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hud-icon {
  width: 15px;
  height: 15px;
  color: rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}

.yt-icon {
  color: #ff3333;
}

.fb-icon {
  color: #3b82f6;
}

.group-icon {
  color: var(--accent);
}

.hud-platform-name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.hud-growth-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(183, 255, 0, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  display: inline-block;
  width: fit-content;
  white-space: nowrap;
}

.hud-growth-pill.highlight-growth {
  color: #000;
  background: var(--accent);
  font-weight: 700;
}

.hud-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  flex-shrink: 0;
}

.hud-count {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 0.25rem;
  white-space: nowrap;
}

.hud-desc-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1.2;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1080px) {
  .hero-bento-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-bento-card {
    padding: 1.5rem 1.25rem;
  }
  .hero-brand-body {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
  .hero-bento-brand .hero-brand-3d-wrapper {
    margin: 0.5rem auto 1rem;
  }
  .hero-main-title {
    font-size: clamp(2.2rem, 7vw, 2.7rem);
    white-space: nowrap;
  }
  .hero-subheadline {
    white-space: nowrap;
    font-size: clamp(0.68rem, 2.8vw, 0.78rem);
  }
  .hud-telemetry-row {
    padding: 0.75rem 0.85rem;
  }
  .hud-count {
    font-size: 1.35rem;
  }
}

/* ==========================================================================
   SECTION: MỚI NHẤT (UNIFIED TIMELINE)
   ========================================================================== */

.timeline-list {
  display: flex;
  flex-direction: column;
  margin-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.timeline-row {
  display: grid;
  grid-template-columns: 100px 110px 1fr 130px;
  align-items: center;
  gap: 1.25rem;
  padding: 1.15rem 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.timeline-row:hover {
  background: rgba(255, 255, 255, 0.02);
  border-bottom-color: var(--border-accent);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.timeline-type {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding: 0.2rem 0.45rem;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 2px;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.timeline-row:hover .timeline-title {
  color: var(--accent);
  transform: translateX(4px);
}

.timeline-summary {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
  max-width: 720px;
}

.timeline-action {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: right;
  white-space: nowrap;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.timeline-row:hover .timeline-action {
  color: var(--accent);
  transform: translateX(4px);
}

@media (max-width: 992px) {
  .timeline-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 1.25rem 0.25rem;
  }
  .timeline-date-type {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  .timeline-action {
    text-align: left;
  }
}

/* ==========================================================================
   SECTION: VIDEO MỚI NHẤT
   ========================================================================== */

.video-section {
  overflow: hidden;
}

.featured-video-card {
  margin-top: 1.25rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color var(--transition-fast);
}

.featured-video-card:hover {
  border-color: var(--accent);
}

.video-thumb-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.video-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out), filter 0.5s ease;
}

.video-thumb-wrapper:hover img {
  transform: scale(1.03);
  filter: brightness(1.08);
}

.play-overlay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease-out), background-color 0.25s ease;
}

.play-overlay-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
  transform: translateX(2px);
  transition: fill 0.2s ease;
}

.video-thumb-wrapper:hover .play-overlay-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--accent);
}

.video-thumb-wrapper:hover .play-overlay-btn svg {
  fill: #000;
}

.duration-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.85);
  color: var(--text-primary);
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}

.featured-video-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.video-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
}

.video-code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.video-views {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.featured-video-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.featured-video-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.video-meta-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.video-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* HORIZONTAL MEDIA RAIL */
.media-rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.media-rail-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
  white-space: nowrap;
}

.rail-controls {
  display: flex;
  gap: 0.5rem;
}

.rail-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.rail-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.media-rail-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-surface);
}

.media-rail-track::-webkit-scrollbar {
  height: 4px;
}

.media-rail-track::-webkit-scrollbar-track {
  background: var(--bg-surface);
}

.media-rail-track::-webkit-scrollbar-thumb {
  background: var(--accent);
}

.rail-card {
  flex: 0 0 290px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
}

.rail-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.rail-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.85rem;
  background: #000;
}

.rail-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.rail-card:hover .rail-card-thumb img {
  transform: scale(1.03);
}

.rail-card-index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
  white-space: nowrap;
}

.rail-card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rail-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0.75rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rail-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .featured-video-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.25rem;
  }
  .rail-card {
    flex: 0 0 260px;
  }
}

/* ==========================================================================
   SECTION: HỆ SINH THÁI (STATS DASHBOARD)
   ========================================================================== */

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 1.25rem;
}

.ecosystem-cell {
  background: var(--bg-primary);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background var(--transition-fast);
}

.ecosystem-cell:hover {
  background: var(--bg-surface);
}

.cell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 0.5rem;
}

.cell-platform {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  white-space: nowrap;
}

.cell-growth {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.cell-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  white-space: nowrap;
}

.cell-unit {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ecosystem-grid {
    grid-template-columns: 1fr;
  }
  .ecosystem-cell {
    padding: 1.5rem 1.25rem;
  }
}

/* ==========================================================================
   KINETIC MOTIF BANNER (CON NGƯỜI ĐIỀU KHIỂN AI)
   ========================================================================== */

.kinetic-motif-banner {
  padding: 2.25rem 0;
  background: #000;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.motif-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  text-align: center;
}

.motif-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-surface);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.motif-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.motif-primary {
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 1.3vw, 1.15rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  white-space: nowrap;
}

.motif-symbol {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent);
  margin: 0.25rem 0;
}

.motif-secondary {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .motif-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

/* ==========================================================================
   SECTION: GÓC NHÌN / BÀI VIẾT
   ========================================================================== */

.articles-table {
  margin-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.article-row {
  display: grid;
  grid-template-columns: 50px 130px 1fr 120px;
  align-items: center;
  gap: 1.25rem;
  padding: 1.15rem 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
}

.article-row:hover {
  background: rgba(255, 255, 255, 0.02);
  border-bottom-color: var(--border-accent);
}

.article-number {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.article-category {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.article-main {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.article-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.article-row:hover .article-title {
  color: var(--accent);
  transform: translateX(4px);
}

.article-summary {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
  max-width: 760px;
}

.article-meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  white-space: nowrap;
}

.article-readtime {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.article-action {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.article-row:hover .article-action {
  color: var(--accent);
}

@media (max-width: 992px) {
  .article-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 1.25rem 0.25rem;
  }
  .article-meta-right {
    align-items: flex-start;
  }
}

/* ==========================================================================
   SECTION: CỘNG ĐỒNG FACEBOOK GROUP (REALTIME TELEMETRY HUD)
   ========================================================================== */

.highlight-growth {
  color: var(--accent) !important;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(183, 255, 0, 0.3);
}

.fb-telemetry-dashboard {
  margin-top: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.fb-telemetry-dashboard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), #00e5ff, transparent);
  pointer-events: none;
}

/* 1. HUD TOPBAR */
.fb-hud-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.fb-hud-badge-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
}

.fb-live-radar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: fbPulse 1.8s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes fbPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.35); opacity: 1; box-shadow: 0 0 16px var(--accent); }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.fb-hud-badge-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  white-space: nowrap;
}

.fb-hud-badge-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.fb-hud-meta-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.fb-hud-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  padding: 0.22rem 0.55rem;
  border-radius: 2px;
  font-weight: 600;
  white-space: nowrap;
}

.fb-hud-pill.pill-moderated {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.fb-hud-pill.pill-active {
  background: rgba(183, 255, 0, 0.1);
  color: var(--accent);
  border: 1px solid rgba(183, 255, 0, 0.3);
}

/* 2. METRICS GRID */
.fb-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border-subtle);
}

.fb-metric-card {
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.01);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  position: relative;
}

.fb-metric-card:last-child {
  border-right: none;
}

.fb-metric-card:hover {
  background: rgba(255, 255, 255, 0.03);
}

.fb-metric-top {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fb-metric-name {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.fb-metric-trend {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: inline-block;
  white-space: nowrap;
}

.fb-metric-trend.trend-up {
  color: var(--accent);
  text-shadow: 0 0 6px rgba(183, 255, 0, 0.25);
}

.fb-metric-trend.trend-neutral {
  color: #00e5ff;
}

.fb-metric-trend.trend-live {
  color: #00f5a0;
  animation: fbPulse 2s infinite ease-in-out;
}

.fb-metric-number {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  white-space: nowrap;
}

.fb-metric-number-inline {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.fb-metric-unit-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.fb-metric-unit {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.fb-metric-footnote {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.footnote-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

/* 3. 7-DAY ACTIVITY SPARKLINE */
.fb-activity-sparkline {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  height: 42px;
  padding: 0.35rem 0.5rem 0.2rem 0.5rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  margin: 0.2rem 0;
}

.sparkline-bar-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 0.2rem;
  position: relative;
  cursor: pointer;
}

.sparkline-bar-fill {
  width: 100%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 1px 1px 0 0;
  transition: height 0.4s ease, background 0.2s ease, box-shadow 0.2s ease;
  min-height: 4px;
}

.sparkline-bar-col:hover .sparkline-bar-fill,
.sparkline-bar-col.active-peak .sparkline-bar-fill {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(183, 255, 0, 0.45);
}

.sparkline-lbl {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-muted);
  line-height: 1;
}

.sparkline-bar-col:hover .sparkline-lbl,
.sparkline-bar-col.active-peak .sparkline-lbl {
  color: var(--accent);
  font-weight: 700;
}

/* Tooltip on sparkline bar */
.sparkline-bar-col::after {
  content: attr(data-posts) " bài";
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  border: 1px solid var(--accent);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.sparkline-bar-col:hover::after {
  opacity: 1;
}

/* 4. HUD FOOTER */
.fb-hud-footer {
  padding: 1.75rem 1.5rem;
  background: rgba(0, 0, 0, 0.25);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}

.fb-hud-philosophy-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  white-space: nowrap;
}

.fb-hud-philosophy-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.fb-topics-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.fb-topic-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.fb-topic-tag:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.fb-hud-footer-right {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-start;
}

.fb-join-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.85rem;
  width: 100%;
  justify-content: center;
  background: var(--accent);
  color: #000;
  border: none;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(183, 255, 0, 0.25);
  white-space: nowrap;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.fb-join-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(183, 255, 0, 0.4);
  background: #caff26;
  color: #000;
}

.fb-icon-glyph {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  background: #000;
  color: var(--accent);
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  line-height: 1;
}

.fb-cta-subtext {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: center;
  width: 100%;
  white-space: nowrap;
}

/* RESPONSIVE CHO TELEMETRY HUD */
@media (max-width: 1100px) {
  .fb-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fb-metric-card:nth-child(2) {
    border-right: none;
  }
  .fb-metric-card:nth-child(1),
  .fb-metric-card:nth-child(2) {
    border-bottom: 1px solid var(--border-subtle);
  }
  .fb-hud-footer {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .fb-metrics-grid {
    grid-template-columns: 1fr;
  }
  .fb-metric-card {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem 1.25rem;
  }
  .fb-metric-card:last-child {
    border-bottom: none;
  }
  .fb-hud-topbar,
  .fb-hud-footer {
    padding: 1.25rem 1rem;
  }
}

/* ==========================================================================
   SECTION: HỌC VÀ XÂY CÙNG DŨNG (PRODUCTS / PROGRAMS)
   ========================================================================== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.product-dossier-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
}

.product-dossier-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.product-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.product-number {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.product-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  padding: 0.25rem 0.55rem;
  border-radius: 2px;
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.product-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.product-punchline {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.product-card-btn {
  width: 100%;
  padding: 0.65rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  text-align: center;
  white-space: nowrap;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.product-dossier-card:hover .product-card-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SECTION: ĐANG XÂY DỰNG (NOW RADAR)
   ========================================================================== */

.radar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.radar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color var(--transition-fast);
  position: relative;
}

.radar-card:hover {
  border-color: var(--accent);
}

.radar-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.radar-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.25rem 0.55rem;
  border-radius: 2px;
  border: 1px solid var(--border-accent);
  white-space: nowrap;
}

.radar-pulse-ring {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
}

.radar-progress {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.radar-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.radar-note {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .radar-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FINAL CTA & FOOTER
   ========================================================================== */

.final-cta-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  text-align: center;
  background: #040404;
  border-bottom: 1px solid var(--border-subtle);
}

.final-cta-container {
  max-width: 780px;
  margin: 0 auto;
}

.final-cta-headline {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1rem;
  white-space: nowrap;
}

.final-cta-headline span {
  color: var(--accent);
}

.final-cta-subhead {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  line-height: 1.55;
}

.final-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.final-cta-buttons a {
  white-space: nowrap;
}

.site-footer {
  padding: 4rem 0 3rem;
  background: #000;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.footer-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 2.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  white-space: nowrap;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 0.35rem;
}

.footer-channels {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  list-style: none;
}

.footer-channel-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.footer-channel-link:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  white-space: nowrap;
}

/* ==========================================================================
   INTERACTIVE VIDEO MODAL
   ========================================================================== */

.video-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-window {
  width: 100%;
  max-width: 960px;
  background: #0f0f0f;
  border: 1px solid var(--border-accent);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(183, 255, 0, 0.15);
  transform: scale(0.95);
  transition: transform 0.3s var(--ease-out);
}

.video-modal-backdrop.active .video-modal-window {
  transform: scale(1);
}

.video-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #141414;
  border-bottom: 1px solid var(--border-subtle);
}

.video-modal-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.video-modal-close {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: transparent;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.video-modal-close:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.video-player-container {
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-player-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
}

.video-player-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
}

.video-player-overlay-msg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.video-player-overlay-msg p {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-primary);
  max-width: 480px;
}

/* ==========================================================================
   OUTGROWD / MUSIC WEBSITE INSPIRED MOTION & SEAMLESS EXPERIENCE
   - Live Audio Equalizer Waveform Bars
   - Rotating Kinetic Vinyl Stamp Emblem
   - Infinite Smooth Kinetic Marquee
   - Floating Seamless Media Player Dock (Bottom)
   - 3D Magnetic Tilt Physics
   ========================================================================== */

/* 1. EQUALIZER SOUNDWAVE BARS */
.equalizer-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
  padding: 0 4px;
}

.eq-bar {
  width: 3px;
  background-color: var(--accent);
  border-radius: 1px;
  box-shadow: 0 0 6px var(--accent-glow);
  animation: eqPulse 1.2s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) { height: 30%; animation-duration: 0.9s; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 85%; animation-duration: 1.3s; animation-delay: 0.3s; }
.eq-bar:nth-child(3) { height: 50%; animation-duration: 1.0s; animation-delay: 0.2s; }
.eq-bar:nth-child(4) { height: 100%; animation-duration: 1.4s; animation-delay: 0.4s; }
.eq-bar:nth-child(5) { height: 40%; animation-duration: 0.8s; animation-delay: 0.15s; }

.equalizer-bars.paused .eq-bar {
  animation-play-state: paused;
  height: 25% !important;
  opacity: 0.5;
}

@keyframes eqPulse {
  0% { height: 20%; transform: scaleY(0.4); }
  50% { height: 100%; transform: scaleY(1); }
  100% { height: 40%; transform: scaleY(0.5); }
}

/* 2. THE HUMAN-AI QUANTUM GYROSCOPE 3D EMBLEM */
.hero-brand-3d-wrapper {
  position: absolute;
  top: 3.5rem;
  right: 1.5rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
}

@media (max-width: 992px) {
  .hero-brand-3d-wrapper {
    position: relative;
    top: 0;
    right: 0;
    margin: 1.5rem auto 2.5rem;
    justify-content: center;
  }
}

.brand-3d-scene {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: transform 0.35s var(--ease-out);
}

.brand-3d-scene::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 180px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(183, 255, 0, 0.12) 0%, rgba(0, 245, 160, 0.05) 45%, transparent 70%);
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.brand-3d-scene:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.25);
  background: radial-gradient(circle, rgba(183, 255, 0, 0.22) 0%, rgba(0, 245, 160, 0.1) 50%, transparent 70%);
}

#brand-3d-canvas {
  width: 220px;
  height: 220px;
  display: block;
  filter: drop-shadow(0 0 16px rgba(183, 255, 0, 0.25));
  transition: filter 0.3s ease;
}

.brand-3d-scene:hover #brand-3d-canvas {
  filter: drop-shadow(0 0 24px rgba(183, 255, 0, 0.5));
}

.brand-3d-hud-tag {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(8, 8, 8, 0.92);
  border: 1px solid var(--border-accent);
  padding: 0.22rem 0.65rem;
  border-radius: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8), 0 0 10px rgba(183, 255, 0, 0.15);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  pointer-events: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.brand-3d-scene:hover .brand-3d-hud-tag {
  border-color: var(--accent);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.9), 0 0 14px rgba(183, 255, 0, 0.35);
}

.brand-3d-hud-tag .hud-pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse-live 1.8s infinite ease-in-out;
}

.brand-3d-hud-tag .hud-text {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  text-transform: uppercase;
}

@keyframes spinContinuous {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 3. INFINITE KINETIC MARQUEE STRIP */
.marquee-ribbon {
  overflow: hidden;
  background: #020202;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.1rem 0;
  white-space: nowrap;
  user-select: none;
}

.marquee-track {
  display: inline-flex;
  gap: 2rem;
  animation: marqueeScroll 28s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.marquee-item .bullet {
  color: var(--accent);
  font-size: 1rem;
}

.marquee-item.accent {
  color: var(--accent);
}

@keyframes marqueeScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* 4. FLOATING SEAMLESS MEDIA DOCK (BOTTOM LISTENER/VIEWER BAR) */
.floating-media-dock {
  position: fixed;
  bottom: 1.75rem;
  left: 50%;
  transform: translate(-50%, 150%);
  z-index: 9990;
  background: rgba(12, 12, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-accent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 24px rgba(183, 255, 0, 0.12);
  border-radius: 40px;
  padding: 0.5rem 0.65rem 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.4s ease;
  max-width: 90vw;
}

.floating-media-dock.visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.floating-media-dock.minimized {
  transform: translate(-50%, calc(100% - 10px));
}

.dock-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.dock-thumb-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: #000;
  border: 1px solid var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

.dock-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: rotateVinyl 8s linear infinite;
}

.floating-media-dock.paused .dock-thumb-wrapper img {
  animation-play-state: paused;
}

@keyframes rotateVinyl {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.dock-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.dock-label-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dock-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.dock-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dock-play-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dock-play-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 14px var(--accent-glow);
}

.dock-play-toggle svg {
  width: 14px;
  height: 14px;
  fill: #000;
  transform: translateX(1px);
}

.dock-action-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.45rem 0.95rem;
  border-radius: 20px;
  transition: border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.dock-action-btn:hover {
  border-color: var(--accent);
  background: rgba(183, 255, 0, 0.1);
  color: var(--accent);
}

.dock-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.dock-close-btn:hover {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .floating-media-dock {
    padding: 0.45rem 0.6rem 0.45rem 0.85rem;
    gap: 0.75rem;
    border-radius: 24px;
    bottom: 1rem;
  }
  .dock-title {
    max-width: 160px;
    font-size: 0.78rem;
  }
  .dock-action-btn {
    display: none;
  }
}

/* 5. 3D MAGNETIC TILT CARD PHYSICS */
.magnetic-card {
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.25s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

/* ==========================================================================
   6. HERO YOUTUBE FILMSTRIP REEL (CHUỖI LƯỚT VIDEO PHẦN ĐẦU)
   ========================================================================== */
.hero-video-reel-wrap {
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  position: relative;
}

.reel-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.reel-label-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reel-title-text {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.reel-counter-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.reel-nav-controls {
  display: flex;
  gap: 0.5rem;
}

.reel-arrow-btn {
  width: 38px;
  height: 38px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.reel-arrow-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(183, 255, 0, 0.06);
}

.hero-video-reel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.5rem 0.25rem 1.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide scrollbar for clean cinema look */
}

.hero-video-reel-track::-webkit-scrollbar {
  display: none;
}

.hero-reel-card {
  flex: 0 0 320px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
}

.hero-reel-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 20px rgba(183, 255, 0, 0.12);
}

.hero-reel-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.hero-reel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-reel-card:hover .hero-reel-thumb img {
  transform: scale(1.05);
}

.hero-reel-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.hero-reel-play-btn svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
  transform: translateX(1px);
}

.hero-reel-card:hover .hero-reel-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
  background: var(--accent);
  opacity: 1;
}

.hero-reel-card:hover .hero-reel-play-btn svg {
  fill: #000;
}

.hero-reel-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.85);
  color: var(--text-primary);
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
}

.hero-reel-info {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-reel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.hero-reel-tag {
  color: var(--accent);
  letter-spacing: 0.08em;
  font-weight: 700;
}

.hero-reel-views {
  color: var(--text-muted);
}

.hero-reel-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-reel-card {
    flex: 0 0 270px;
  }
}

/* ==========================================================================
   6B. INTERACTIVE VIDEO BUBBLE CLUSTER (SÂN KHẤU BÓNG VIDEO KÉO KHUẤY)
   ========================================================================== */
.reel-mode-toggle {
  display: flex;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.mode-toggle-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.mode-toggle-btn:hover {
  color: var(--text-primary);
}

.mode-toggle-btn.active {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 10px rgba(183, 255, 0, 0.3);
}

.video-bubble-stage {
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(183, 255, 0, 0.05) 0%, rgba(8, 8, 8, 0.96) 75%), var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.bubble-stage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(12, 12, 12, 0.75);
  backdrop-filter: blur(8px);
}

.bubble-time-tabs {
  display: flex;
  gap: 0.4rem;
}

.bubble-tab {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.65rem;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bubble-tab:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.bubble-tab.active {
  background: #000;
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(183, 255, 0, 0.35);
}

.bubble-hint-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(183, 255, 0, 0.08);
  border: 1px solid var(--border-accent);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

@media (max-width: 680px) {
  .bubble-hint-badge {
    display: none;
  }
}

.bubble-canvas-container {
  position: relative;
  width: 100%;
  height: 540px;
  cursor: grab;
  touch-action: none;
  background-image: radial-gradient(rgba(183, 255, 0, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.bubble-canvas-container.grabbing {
  cursor: grabbing;
}

#video-bubble-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.bubble-hover-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 0.95rem 1.25rem;
  max-width: 360px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(183, 255, 0, 0.25);
  opacity: 0;
  transform: translate(-50%, -125%) scale(0.95);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

.bubble-hover-tooltip.show {
  opacity: 1;
  transform: translate(-50%, -120%) scale(1);
}

.bubble-hover-tooltip .tooltip-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.bubble-hover-tooltip .tooltip-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  color: #FFFFFF;
  margin-bottom: 0.45rem;
  letter-spacing: -0.01em;
}

.bubble-hover-tooltip .tooltip-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.bubble-hover-tooltip .tooltip-action {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.bubble-stage-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px dashed var(--border-subtle);
  background: rgba(12, 12, 12, 0.85);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-align: center;
}

.bubble-stage-caption .caption-icon {
  color: var(--accent);
  animation: pulse-live 2s infinite ease-in-out;
}

@media (max-width: 768px) {
  .bubble-canvas-container {
    height: 420px;
  }
  .bubble-stage-caption {
    font-size: 0.7rem;
    padding: 0.6rem 0.85rem;
  }
}

/* ==========================================================================
   7. VERTICAL INTERACTIVE PROGRESS SPINE (TIẾP NỐI TOÀN TRANG)
   ========================================================================== */
.scroll-progress-spine {
  position: fixed;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9980;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  pointer-events: none;
}

@media (max-width: 1180px) {
  .scroll-progress-spine {
    display: none;
  }
}

.spine-track {
  position: relative;
  width: 2px;
  height: 220px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.spine-fill-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transition: height 0.1s linear;
}

.spine-node-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  list-style: none;
  pointer-events: auto;
}

.spine-node {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  position: relative;
}

.spine-node-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
}

.spine-node-label {
  position: absolute;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.25s ease;
  background: rgba(8, 8, 8, 0.9);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  border: 1px solid var(--border-subtle);
  pointer-events: none;
}

.spine-node:hover .spine-node-label {
  opacity: 1;
  transform: translateX(0);
}

.spine-node.active .spine-node-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.spine-node.active .spine-node-label {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent);
  border-color: var(--border-accent);
}

/* ==========================================================================
   8. SECTION TRANSITION CONDUIT (GIAO THOA TIẾP NỐI GIỮA CÁC PHẦN)
   ========================================================================== */
.section-connector-conduit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 2rem;
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px dashed var(--border-subtle);
  border-bottom: 1px dashed var(--border-subtle);
  margin-top: 5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.connector-pulse-beam {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--accent);
}

.connector-pulse-beam::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-live 1.8s infinite ease-in-out;
}

.connector-next-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-weight: 700;
  transition: transform 0.2s ease, color 0.2s ease;
}

.section-connector-conduit:hover .connector-next-hint {
  color: var(--accent);
  transform: translateX(6px);
}

/* ==========================================================================
   ANIMATIONS & ACCESSIBILITY
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .preloader {
    display: none !important;
  }
  .spinning-stamp svg, .dock-thumb-wrapper img, .marquee-track {
    animation: none !important;
  }
}

/* ==========================================================================
   GOOGLE AUTHENTICATION & USER PROFILE STYLES
   ========================================================================== */

.nav-auth-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-google-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.15rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-google-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(183, 255, 0, 0.25);
  transform: translateY(-1px);
}

.google-icon-svg {
  flex-shrink: 0;
}

/* USER PROFILE DROPDOWN MENU */
.user-profile-menu {
  position: relative;
  display: inline-block;
}

.user-avatar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.8rem 0.4rem 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-primary);
}

.user-avatar-btn:hover {
  border-color: var(--accent);
  background: rgba(183, 255, 0, 0.08);
}

.user-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent);
}

.user-avatar-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-avatar-caret {
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.user-profile-menu.open .user-avatar-caret {
  transform: rotate(180deg);
}

.user-dropdown-pane {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: rgba(15, 16, 20, 0.96);
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(16px);
  padding: 1.25rem;
  border-radius: 4px;
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1000;
  animation: dropdownFadeIn 0.2s ease forwards;
}

.user-profile-menu.open .user-dropdown-pane {
  display: flex;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.dropdown-avatar-large {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.dropdown-user-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow: hidden;
}

.dropdown-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-email {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  background: rgba(183, 255, 0, 0.15);
  color: var(--accent);
  border-radius: 2px;
  border: 1px solid rgba(183, 255, 0, 0.3);
  margin-top: 0.2rem;
}

.user-dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.25rem 0;
}

.dropdown-menu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.45rem 0.5rem;
  border-radius: 2px;
  transition: all 0.15s ease;
}

.dropdown-menu-item:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
}

.dropdown-logout-btn {
  width: 100%;
  padding: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: #ff5252;
  background: rgba(255, 82, 82, 0.08);
  border: 1px solid rgba(255, 82, 82, 0.25);
  border-radius: 2px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.dropdown-logout-btn:hover {
  background: #ff5252;
  color: #000;
}

/* GOOGLE AUTH MODAL */
.google-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.google-auth-modal.active {
  display: flex;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.auth-modal-box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85);
  padding: 2.5rem 2.25rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  animation: authModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.auth-modal-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #4285F4, #34A853, #FBBC05, #EA4335);
}

@keyframes authModalPop {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease;
}

.auth-modal-close:hover {
  color: var(--accent);
}

.auth-modal-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.auth-modal-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.auth-modal-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.auth-modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.google-gis-btn-wrapper {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.auth-or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.auth-or-divider::before,
.auth-or-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}

.auth-or-divider span {
  padding: 0 0.75rem;
}

.auth-demo-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.auth-demo-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-demo-login-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(183, 255, 0, 0.25);
}

.auth-demo-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: center;
}

.auth-client-id-details {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
}

.auth-client-id-details summary {
  cursor: pointer;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  user-select: none;
}

.auth-client-id-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.auth-client-id-form label {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.auth-modal-footer {
  text-align: center;
  font-size: 0.74rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

@media (max-width: 600px) {
  .user-avatar-name {
    display: none;
  }
  .nav-google-btn span {
    display: none;
  }
  .nav-google-btn {
    padding: 0.6rem 0.7rem;
  }
}
