@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&display=swap');

:root {
  /* ========================================================================
     1. SPHOTON BRAND COLOR TOKENS (GEMINI.md Section 1.3)
     ======================================================================== */
  --bg-dark: #080602;
  --bg-darker: #050401;
  --bg-card: rgba(22, 17, 6, 0.55);
  --bg-card-hover: rgba(35, 27, 10, 0.85);
  --border-cyan: rgba(245, 158, 11, 0.16);
  --border-cyan-glow: rgba(251, 191, 36, 0.65);
  --primary-cyan: #fbbf24;
  --primary-blue: #d97706;
  --accent-glow: #fcd34d;
  --text-primary: #fdfcf8;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;

  /* Standardized Token Aliases per GEMINI.md */
  --sphoton-bg-base: #080602;
  --sphoton-bg-obsidian: #050401;
  --sphoton-card-surface: rgba(22, 17, 6, 0.55);
  --sphoton-card-surface-hover: rgba(35, 27, 10, 0.85);
  --sphoton-card-solid: #140f06;
  --sphoton-amber-primary: #fbbf24;
  --sphoton-amber-deep: #d97706;
  --sphoton-amber-glow: #fcd34d;
  --sphoton-border-subtle: rgba(245, 158, 11, 0.16);
  --sphoton-border-active: rgba(251, 191, 36, 0.5);

  /* ========================================================================
     2. UNIFIED TYPOGRAPHY TOKENS (GEMINI.md Section 1.1)
     ======================================================================== */
  --font-family-primary: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: var(--font-family-primary);
  --font-body: var(--font-family-primary);
  --font-mono: var(--font-family-primary);

  /* Fluid Typography clamp() Scale */
  --h1-fluid: clamp(1.75rem, 3.5vw + 1rem, 3.25rem);
  --h2-fluid: clamp(1.375rem, 2vw + 0.875rem, 2.25rem);
  --h3-fluid: clamp(1.0625rem, 1vw + 0.875rem, 1.375rem);
  --eyebrow-fluid: clamp(0.75rem, 0.4vw + 0.65rem, 0.875rem);
  --body-fluid: clamp(0.875rem, 0.25vw + 0.8rem, 1rem);

  /* Diacritic & Spacing Ergonomics for Vietnamese */
  --letter-spacing-vietnamese: -0.005em;
  --line-height-heading: 1.25;
  --line-height-body: 1.6;

  /* ========================================================================
     3. 8-POINT GRID SYSTEM SPACING TOKENS (GEMINI.md Section 1.2)
     ======================================================================== */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-28: 7rem;     /* 112px */
  --space-32: 8rem;     /* 128px */

  /* ========================================================================
     4. TOUCH TARGETS & HEADER CLEARANCE (GEMINI.md 1.2.1 & 1.2.3)
     ======================================================================== */
  --header-height-desktop: 80px;
  --header-height-mobile: 72px;
  --touch-min-mobile: 44px;
  --touch-min-desktop: 38px;
}

/* ========================================================================
   MODERN CSS NORMALIZATION & BASE RESETS (Full Independence from Bootstrap)
   ======================================================================== */
*, ::before, ::after {
  box-sizing: border-box;
  font-family: var(--font-family-primary) !important;
}

code, kbd, samp, pre, .font-mono {
  font-family: var(--font-family-primary) !important;
}

html {
  scroll-behavior: smooth;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body) !important;
  font-size: 15px;
  line-height: var(--line-height-body);
  max-width: 100vw;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.body_wrapper {
  position: relative;
  overflow-x: clip;
  max-width: 100vw;
  width: 100%;
}

/* Base Form Controls & Button Normalization */
button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: inherit;
  margin: 0;
}

button, select {
  text-transform: none;
}

button, [type='button'], [type='reset'], [type='submit'] {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
  cursor: pointer;
}

button:focus, input:focus, select:focus, textarea:focus {
  outline: none;
}

textarea {
  resize: vertical;
}

input::placeholder, textarea::placeholder {
  opacity: 1;
  color: #94a3b8;
}

img, svg, video, canvas {
  display: block;
  max-width: 100%;
}

/* Headings with relaxed letter spacing specifically tuned for Vietnamese tone marks */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading) !important;
  letter-spacing: -0.005em !important; /* Fixes Vietnamese tone mark collision/distortion */
  line-height: 1.25 !important;
}

/* Neutralize negative tracking classes so Vietnamese diacritics never overlap */
.tracking-tight, .tracking-tighter {
  letter-spacing: -0.005em !important;
}

/* ========================================================================
   Japanese Typography & Line-Break Overrides (Noto Sans JP)
   ======================================================================== */
html[lang="ja"] {
  --font-family-primary: 'Noto Sans JP', 'Be Vietnam Pro', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
}

html[lang="ja"] body {
  line-height: 1.7;
  line-break: strict;
  overflow-wrap: break-word;
  word-break: normal;
  font-feature-settings: "palt" 0;
}

html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3,
html[lang="ja"] h4,
html[lang="ja"] h5,
html[lang="ja"] h6,
html[lang="ja"] .font-heading {
  letter-spacing: 0.01em !important;
  line-height: 1.35 !important;
}

/* ========================================================================
   Simplified Chinese Typography & Line-Break Overrides (Noto Sans SC)
   ======================================================================== */
html[lang^="zh"] {
  --font-family-primary: 'Noto Sans SC', 'Be Vietnam Pro', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

html[lang^="zh"] body {
  line-height: 1.7;
  line-break: strict;
  overflow-wrap: break-word;
  word-break: normal;
}

html[lang^="zh"] h1,
html[lang^="zh"] h2,
html[lang^="zh"] h3,
html[lang^="zh"] h4,
html[lang^="zh"] h5,
html[lang^="zh"] h6,
html[lang^="zh"] .font-heading {
  letter-spacing: 0.01em !important;
  line-height: 1.35 !important;
}

/* Hero Title H1 - Strictly conforming to GEMINI.md responsive matrix (Mobile: 28-32px, Tablet: 36-40px, Desktop: 44-52px) */
.hero-title-line {
  font-size: clamp(1.875rem, 3.2vw + 1rem, 3.25rem) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.005em !important;
}

/* Section Title H2 - Strictly conforming to GEMINI.md responsive matrix (Mobile: 22-24px, Tablet: 26-28px, Desktop: 32-36px) */
.section-title-h2 {
  font-size: clamp(1.375rem, 2vw + 0.875rem, 2.25rem) !important;
  line-height: 1.25 !important;
  letter-spacing: -0.005em !important;
}

/* ========================================================================
   SPHOTON SERVICE CARDS (DARK LUXURY GLASSMORPHISM & 3D TILT HOVER)
   ======================================================================== */
.sphoton-service-card {
  position: relative;
  background: rgba(20, 15, 6, 0.65);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 1.25rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.sphoton-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.sphoton-service-card:hover {
  background: rgba(30, 22, 9, 0.85);
  border-color: rgba(251, 191, 36, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(251, 191, 36, 0.15);
}

.sphoton-service-card:hover::before {
  opacity: 1;
}

.sphoton-service-icon-box {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.875rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.12);
  transition: all 0.3s ease;
}

.sphoton-service-card:hover .sphoton-service-icon-box {
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.6);
  transform: scale(1.08);
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.3);
}

.sphoton-service-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  white-space: nowrap;
}

/* Cyber Perspective Grid Overlay for Hero */
.cyber-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(245, 158, 11, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 158, 11, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 25%, #000 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 25%, #000 60%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Cyber Perspective Grid Overlay for Sub-Sections */
.cyber-grid-section {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(245, 158, 11, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 158, 11, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 50%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 50%, #000 35%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Luminous Photon Laser Section Divider */
.section-laser-divider {
  position: relative;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 158, 11, 0.15) 15%, rgba(251, 191, 36, 0.7) 50%, rgba(245, 158, 11, 0.15) 85%, transparent 100%);
  overflow: visible;
  z-index: 2;
}

.section-laser-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 3px;
  background: radial-gradient(ellipse at center, rgba(251, 191, 36, 0.95) 0%, rgba(245, 158, 11, 0.6) 40%, transparent 75%);
  filter: blur(1.5px);
}

/* Live Equalizer Activity Wave */
.equalizer-wrapper {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.equalizer-bar {
  width: 2.5px;
  background: #fbbf24;
  border-radius: 9999px;
  box-shadow: 0 0 8px #f59e0b;
  animation: equalize 1.2s ease-in-out infinite alternate;
}

.equalizer-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.equalizer-bar:nth-child(2) { height: 90%; animation-delay: 0.3s; }
.equalizer-bar:nth-child(3) { height: 60%; animation-delay: 0.2s; }
.equalizer-bar:nth-child(4) { height: 100%; animation-delay: 0.4s; }

@keyframes equalize {
  0% { height: 25%; }
  50% { height: 100%; }
  100% { height: 35%; }
}

/* Cyber Cursor Follower Glow (Delicate Luxury Ambient Spotlight) */
#cursor-glow {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 480px !important;
  height: 480px !important;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.11) 0%, rgba(217, 119, 6, 0.05) 40%, transparent 70%) !important;
  border-radius: 50% !important;
  pointer-events: none !important;
  z-index: 35 !important;
  transform: translate(-50%, -50%) !important;
  transition: opacity 0.3s ease !important;
  filter: blur(36px) !important;
}

@media (pointer: coarse), (max-width: 1023px) {
  #cursor-glow {
    display: none !important;
  }
}

/* Background Cosmic Lights & Firefly Particle Canvas (Floating over section bases) */
#particle-canvas {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 25 !important;
}

.cosmic-radial-top {
  position: absolute;
  top: -160px;
  right: -100px;
  width: 950px;
  height: 950px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.14) 0%, rgba(217, 119, 6, 0.06) 35%, rgba(8, 6, 2, 0) 68%);
  pointer-events: none;
  z-index: 1;
}

.cosmic-radial-hero {
  position: absolute;
  top: 10%;
  left: 25%;
  width: 1000px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(217, 119, 6, 0.13) 0%, rgba(251, 191, 36, 0.08) 40%, rgba(8, 6, 2, 0) 72%);
  pointer-events: none;
  z-index: 1;
}

.cosmic-radial-middle {
  position: absolute;
  top: 45%;
  left: -250px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.11) 0%, rgba(217, 119, 6, 0.05) 45%, rgba(8, 6, 2, 0) 72%);
  pointer-events: none;
  z-index: 1;
}

.cosmic-radial-bottom {
  position: absolute;
  bottom: 0;
  right: -120px;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.11) 0%, rgba(217, 119, 6, 0.05) 45%, rgba(8, 6, 2, 0) 72%);
  pointer-events: none;
  z-index: 1;
}

/* Glassmorphism Cards & Panels with Dynamic Mouse Spotlight */
.glass-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-cyan);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.06);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, -200px);
  left: var(--mouse-x, -200px);
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.06) 45%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 50%;
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-cyan-glow);
  box-shadow: 0 16px 45px -8px rgba(251, 191, 36, 0.28), 0 0 25px rgba(245, 158, 11, 0.18);
  transform: translateY(-5px);
}

.glass-card-static {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-cyan);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.06);
}

/* Open Feature Card (De-boxed, Breathable Layout with Glowing Top Accent) */
.open-feature-card {
  position: relative;
  padding-top: 1.75rem;
  padding-bottom: 0.5rem;
  border-top: 1px solid rgba(245, 158, 11, 0.25);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.open-feature-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 36px;
  height: 2px;
  background: #fbbf24;
  box-shadow: 0 0 12px #fbbf24;
  opacity: 0.85;
  transition: width 0.35s ease;
}

.open-feature-card:hover {
  border-top-color: #fbbf24;
}

.open-feature-card:hover::before {
  width: 72px;
}

/* Master Node Disc (Signature Cosmic Milestone Icon) */
.master-node-disc {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: radial-gradient(circle at 35% 35%, rgba(45, 33, 12, 0.95), rgba(16, 12, 4, 0.98));
  border: 1.5px solid rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.4), inset 0 0 10px rgba(251, 191, 36, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.master-node-disc:hover, .node-active .master-node-disc {
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.75), inset 0 0 14px rgba(251, 191, 36, 0.4);
  border-color: #fbbf24;
  color: #ffffff;
  transform: scale(1.08);
}

/* Gradient Texts & Neon Highlights (60-30-10 Color System) */
.text-gradient-cyan,
.cyan-gradient-text {
  background: linear-gradient(135deg, #ffffff 25%, #fde68a 60%, #fbbf24 85%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.32));
}

.hero-glow-title {
  text-shadow: 0 0 32px rgba(251, 191, 36, 0.30);
}

.text-cyan-glow {
  color: var(--primary-cyan);
  text-shadow: 0 0 14px rgba(251, 191, 36, 0.5);
}

/* 30% Neutral White for Numbers & Big Telemetry Stats */
.stat-counter {
  color: #ffffff !important;
  font-weight: 900 !important;
}

/* Primary Button Styling - High-End Crisp White with Black Text */
.btn-primary-glow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #ffffff;
  color: #000000 !important;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25), 0 0 15px rgba(251, 191, 36, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  text-decoration: none;
}

.btn-primary-glow span,
.btn-primary-glow svg {
  color: #000000 !important;
}

.btn-primary-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: rotate(30deg) translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary-glow:hover::after {
  transform: rotate(30deg) translateX(100%);
}

.btn-primary-glow:hover {
  background: #f1f5f9;
  box-shadow: 0 6px 30px rgba(255, 255, 255, 0.45), 0 0 25px rgba(251, 191, 36, 0.3);
  border-color: #ffffff;
  transform: translateY(-2px);
  color: #000000 !important;
}

.btn-secondary-ghost {
  background: #140f06;
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fef3c7;
  backdrop-filter: blur(14px);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.14);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary-ghost:hover {
  background: #1e1709;
  border-color: rgba(251, 191, 36, 0.85);
  color: #ffffff;
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.3);
  transform: translateY(-2px);
}

/* Dark-Tech Input & Select Elements */
.dark-tech-input {
  background: rgba(20, 15, 6, 0.88);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #ffffff;
  backdrop-filter: blur(16px);
  transition: all 0.3s ease;
}

.dark-tech-input:focus {
  border-color: #fbbf24;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.35);
  outline: none;
}

/* Animated Rotating Border Beam for Featured Cards */
.border-beam-box {
  position: relative;
  overflow: hidden;
}

.border-beam-box::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--beam-angle, 0deg) at 50% 50%, transparent 0%, #fbbf24 20%, #fde68a 40%, transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: rotateBeam 6s linear infinite;
}

@property --beam-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotateBeam {
  to {
    --beam-angle: 360deg;
  }
}

/* Pulsing Badge & Node Elements */
.pulse-node-ring {
  position: relative;
}

.pulse-node-ring::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.45) 0%, rgba(251, 191, 36, 0) 70%);
  animation: pulseNodeRing 2.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulseNodeRing {
  0% { transform: scale(0.85); opacity: 0.85; }
  50% { transform: scale(1.35); opacity: 0.15; }
  100% { transform: scale(0.85); opacity: 0.85; }
}

/* Flowing Laser Dash Lines */
.flowing-dash-line {
  stroke-dasharray: 10 14;
  animation: flowLine 20s linear infinite;
}

.flowing-dash-line-fast {
  stroke-dasharray: 8 16;
  animation: flowLine 12s linear infinite reverse;
}

@keyframes flowLine {
  to { stroke-dashoffset: -1000; }
}

/* Orbital Rings for Connected Architecture */
.orbital-ring {
  border: 1px dashed rgba(245, 158, 11, 0.28);
  border-radius: 50%;
  animation: rotateOrbit 55s linear infinite;
}

.orbital-ring-reverse {
  border: 1px dashed rgba(217, 119, 6, 0.32);
  border-radius: 50%;
  animation: rotateOrbitReverse 40s linear infinite;
}

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

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

/* Floating Animations */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-9px); }
}

.animate-float-slow {
  animation: floatSlow 5s ease-in-out infinite;
}

.animate-float-delayed {
  animation: floatSlow 6.5s ease-in-out infinite 2s;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #080602;
}

::-webkit-scrollbar-thumb {
  background: #2b200b;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

::-webkit-scrollbar-thumb:hover {
  background: #d97706;
}

/* Ensure absolute safety for visibility */
.reveal-up, .reveal-card, .hero-badge-node, .hero-stat-card {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Modal Backdrop */
.modal-backdrop {
  backdrop-filter: blur(16px);
  background: rgba(8, 6, 2, 0.90);
}

/* ==========================================================================
   Interactive Hero Graphic Enhancements (Nodes, HUD & KPI Pills)
   ========================================================================== */
.hero-badge-node {
  user-select: none;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.hero-badge-node:hover {
  transform: scale(1.08) translateY(-3px) !important;
  border-color: rgba(251, 191, 36, 0.9) !important;
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.5), 0 10px 20px rgba(0, 0, 0, 0.6) !important;
  z-index: 25 !important;
}

.node-active {
  border-color: #fbbf24 !important;
  box-shadow: 0 0 35px rgba(251, 191, 36, 0.75), 0 0 15px rgba(245, 158, 11, 0.9) !important;
  transform: scale(1.1) translateY(-4px) !important;
  z-index: 30 !important;
  background: rgba(35, 27, 10, 0.95) !important;
}

.node-dimmed {
  opacity: 0.45 !important;
  filter: grayscale(30%) !important;
  transform: scale(0.96) !important;
}

/* Floating HUD Inspection Card */
#hero-hud-inspector {
  left: 50% !important;
  transform: translate(-50%, 0) !important;
}

.hud-card-appear {
  animation: hudAppear 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes hudAppear {
  from {
    opacity: 0;
    transform: translate(-50%, 14px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

/* Interactive SVG path pulse & flowing dash lines */
#hero-galaxy-canvas, #hero-neural-svg {
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

.flowing-dash-line {
  stroke-dasharray: 12 16;
  animation: streamFlow 14s linear infinite;
  will-change: stroke-dashoffset;
}

.flowing-dash-line-fast {
  stroke-dasharray: 8 14;
  animation: streamFlow 9s linear infinite;
  will-change: stroke-dashoffset;
}

.flowing-dash-line-reverse {
  stroke-dasharray: 6 12;
  animation: streamFlowRev 12s linear infinite;
  will-change: stroke-dashoffset;
}

@keyframes streamFlow {
  from { stroke-dashoffset: 800; }
  to { stroke-dashoffset: 0; }
}

@keyframes streamFlowRev {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 800; }
}

.path-surging {
  stroke: #fbbf24 !important;
  stroke-width: 3.5px !important;
  filter: drop-shadow(0 0 25px #fbbf24) drop-shadow(0 0 40px #f59e0b) !important;
  transition: all 0.3s ease;
}

#hero-neural-svg,
#hero-interactive-canvas {
  overflow: visible !important;
}

/* Interactive KPI Pill Pulsing Border */
.kpi-interactive-card {
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.kpi-interactive-card:hover {
  transform: scale(1.06) translateY(-3px) !important;
  border-color: rgba(251, 191, 36, 0.8) !important;
  box-shadow: 0 12px 30px rgba(251, 191, 36, 0.35) !important;
  z-index: 25 !important;
}

.kpi-interactive-card:active {
  transform: scale(0.97) !important;
}

/* ========================================================================
   Master Mockup Design System Extensions
   ======================================================================== */
.btn-mockup-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #000000 !important;
  font-weight: 800;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.25), 0 4px 16px rgba(251, 191, 36, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.btn-mockup-white span,
.btn-mockup-white svg {
  color: #000000 !important;
}
.btn-mockup-white:hover {
  background: #f1f5f9;
  color: #000000 !important;
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.45), 0 6px 22px rgba(251, 191, 36, 0.3);
}

.btn-mockup-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 15, 6, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #ffffff;
  border-radius: 9999px;
  backdrop-filter: blur(14px);
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-mockup-glass:hover {
  background: rgba(35, 27, 10, 0.9);
  border-color: rgba(251, 191, 36, 0.7);
  color: #fbbf24;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
  transform: translateY(-2px);
}

/* Primary Gold / Amber CTA Button - Prevents Saasland a:hover purple/blue contamination */
.btn-gold-primary,
.chat-cta-section .bg-amber-400,
.chat-hero-section a[href*="dang-ky"] {
  background-color: #fbbf24 !important;
  color: #000000 !important;
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.35) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
}

.btn-gold-primary *,
.chat-cta-section .bg-amber-400 *,
.chat-hero-section a[href*="dang-ky"] * {
  color: #000000 !important;
  stroke: #000000 !important;
}

.btn-gold-primary:hover,
.chat-cta-section .bg-amber-400:hover,
.chat-hero-section a[href*="dang-ky"]:hover {
  background-color: #fcd34d !important;
  color: #000000 !important;
  box-shadow: 0 0 35px rgba(251, 191, 36, 0.65) !important;
  transform: translateY(-2px) !important;
  text-decoration: none !important;
}

.btn-gold-primary:hover *,
.chat-cta-section .bg-amber-400:hover *,
.chat-hero-section a[href*="dang-ky"]:hover * {
  color: #000000 !important;
  stroke: #000000 !important;
}

.chat-ecosystem-section .ecosystem-card {
  background: #140f06 !important;
  border: 1px solid rgba(251, 191, 36, 0.18) !important;
  border-radius: 1.5rem !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
}
.chat-ecosystem-section .ecosystem-card:hover {
  background: #1c1508 !important;
  border-color: rgba(251, 191, 36, 0.5) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(251, 191, 36, 0.15) !important;
}

.btn-mockup-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #140f06;
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #ffffff;
  border-radius: 9999px;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.2);
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-mockup-navy:hover {
  border-color: #fbbf24;
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.45);
  transform: translateY(-1px);
}

/* Hero Badge Nodes with Guaranteed No-Wrap Typography */
.hero-badge-node {
  white-space: nowrap !important;
  max-width: none !important;
  user-select: none;
  display: flex !important;
  align-items: center !important;
}

.hero-badge-node * {
  white-space: nowrap !important;
}

/* Master Mockup Circular Node Discs */
.master-node-disc {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(45, 33, 12, 0.95), rgba(16, 12, 4, 0.98));
  border: 1.5px solid rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.4), inset 0 0 10px rgba(251, 191, 36, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  position: relative;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.master-node-disc:hover, .node-active .master-node-disc {
  border-color: #fbbf24;
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 0 28px rgba(251, 191, 36, 0.75), inset 0 0 14px rgba(251, 191, 36, 0.4);
}

.master-node-ai-disc {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(217, 119, 6, 0.95), rgba(28, 20, 6, 0.98));
  border: 2px solid #fbbf24;
  box-shadow: 0 0 35px rgba(251, 191, 36, 0.8), inset 0 0 15px rgba(255, 243, 199, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  position: relative;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.master-node-ai-disc:hover, .node-active .master-node-ai-disc {
  transform: scale(1.12);
  box-shadow: 0 0 50px rgba(251, 191, 36, 0.95), inset 0 0 20px rgba(255, 255, 255, 0.7);
}

/* Master Telemetry Glass Cards */
.master-telemetry-card {
  background: rgba(20, 15, 6, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.15);
  border-radius: 1rem;
  transition: all 0.3s ease;
}
.master-telemetry-card:hover {
  border-color: rgba(251, 191, 36, 0.7);
  box-shadow: 0 12px 35px rgba(251, 191, 36, 0.3);
  transform: translateY(-2px);
}

/* ==========================================================================
   Header Navigation Alignment & Consistency
   Ensures all menu items are perfectly centered on the exact same baseline
   ========================================================================== */
#main-desktop-nav {
  display: flex !important;
  align-items: center !important;
  gap: 2rem !important;
  height: 100% !important;
}

#main-desktop-nav > a,
#main-desktop-nav > .nav-item-dropdown,
#main-desktop-nav > div {
  display: inline-flex !important;
  align-items: center !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
}

#main-desktop-nav .nav-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  font-size: 0.9375rem !important; /* 15px - Chuẩn quốc tế cho Desktop Navbar */
  font-weight: 500 !important;
  line-height: 1.5rem !important;
  color: #cbd5e1 !important;
  padding: 0.375rem 0.25rem !important;
  position: relative !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
  box-sizing: border-box !important;
}

#main-desktop-nav .nav-link:hover {
  color: #fbbf24 !important;
}

#main-desktop-nav .nav-link.active {
  color: #ffffff !important;
  font-weight: 700 !important;
}

#main-desktop-nav .nav-link.active::after {
  content: '' !important;
  position: absolute !important;
  bottom: -2px !important;
  left: 0 !important;
  width: 100% !important;
  height: 2px !important;
  background-color: #fbbf24 !important;
  border-radius: 9999px !important;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.8) !important;
}

#main-desktop-nav .nav-link span {
  display: inline !important;
  line-height: inherit !important;
  vertical-align: middle !important;
}

#main-desktop-nav .nav-link svg,
#main-desktop-nav .nav-link i,
#main-desktop-nav .chevron-icon {
  display: inline-block !important;
  flex-shrink: 0 !important;
  width: 0.875rem !important;
  height: 0.875rem !important;
  vertical-align: middle !important;
  transition: transform 0.25s ease, color 0.2s ease !important;
}

#main-desktop-nav .nav-item-dropdown:hover .nav-link svg,
#main-desktop-nav div.group:hover .nav-link svg,
#main-desktop-nav .nav-item-dropdown:hover .nav-link i,
#main-desktop-nav div.group:hover .nav-link i {
  transform: rotate(180deg) !important;
  color: #fbbf24 !important;
}

/* ==========================================================================
   Dark Luxury Tech Gold Enhancements
   ========================================================================== */
.text-gold-gradient {
  background: linear-gradient(135deg, #ffffff 20%, #fde68a 55%, #fbbf24 80%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.35));
}

.bg-gold-gradient {
  background: linear-gradient(135deg, #b45309 0%, #d97706 40%, #fbbf24 100%);
}

.border-gold-glow {
  border-color: rgba(251, 191, 36, 0.6) !important;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.25) !important;
}

/* Dark Luxury Obsidian Gold Overrides for Legacy Blue Containers */
[class*="bg-[#030611]"], [class*="bg-[#02040a]"], [class*="bg-[#02040c]"], [class*="bg-[#030718]"] {
  background-color: #080602 !important;
}

[class*="bg-[#07132e]"], [class*="bg-[#071126]"], [class*="bg-[#06122d]"], 
[class*="bg-[#060e24]"], [class*="bg-[#030919]"], [class*="bg-[#040c1f]"], 
[class*="bg-[#06102b]"], [class*="bg-[#080E1E]"], [class*="bg-[#09183d]"], 
[class*="bg-[#081533]"], [class*="bg-[#091124]"], [class*="bg-[#03091e]"],
[class*="bg-[#06102a]"] {
  background-color: #140f06 !important;
}

/* Subtle gold glow replacement for cold blue shadows */
[class*="shadow-cyan-950"] {
  --tw-shadow-color: rgba(69, 26, 3, 0.6) !important;
}

/* Selection highlight */
::selection {
  background: #f59e0b !important;
  color: #000000 !important;
}

/* Line clamp 3 utility */
.line-clamp-3 {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* =================================================================
   HERO 3D PHOTON STAGE & CONTROLS (USER INTEGRATION)
   ================================================================= */
#photon-stage {
  position: relative;
  width: 100%;
  height: 540px;
  min-height: 500px;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}
#photon-stage:active {
  cursor: grabbing;
}
@media (max-width: 1024px) {
  #photon-stage {
    height: 460px;
    min-height: 420px;
  }
}
@media (max-width: 640px) {
  #photon-stage {
    height: 380px;
    min-height: 360px;
  }
}

.hud-tag {
  position: absolute;
  pointer-events: none;
  padding: 5px 10px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(10, 12, 18, 0.88);
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: #FEF08A;
  border-radius: 6px;
  backdrop-filter: blur(8px);
  white-space: nowrap;
  transition: opacity 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 12px rgba(250, 204, 21, 0.15);
}

.hairline-t { border-top: 1px solid rgba(255, 255, 255, 0.085); }
.hairline-b { border-bottom: 1px solid rgba(255, 255, 255, 0.085); }
.hairline-l { border-left: 1px solid rgba(255, 255, 255, 0.085); }
.hairline-r { border-right: 1px solid rgba(255, 255, 255, 0.085); }

.text-photon { color: #FACC15 !important; }
.text-photonLight { color: #FEF08A !important; }
.text-amberGlow { color: #F59E0B !important; }
.bg-photon { background-color: #FACC15 !important; }

/* =================================================================
   SPHOTON HEADER SYSTEM & SMART STICKY REVEAL CONTROLS
   ================================================================= */
header#sphoton-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  background-color: rgba(8, 6, 2, 0.92) !important;
  border-bottom: 1px solid rgba(51, 65, 85, 0.6) !important;
  will-change: transform;
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Hidden state: Slide up off-screen when scrolling down */
header#sphoton-header.header-hidden {
  transform: translateY(-100%) !important;
}

/* Scrolled & Revealed state: Slide down when scrolling up with luxury amber glow border */
header#sphoton-header.header-scrolled-revealed {
  transform: translateY(0) !important;
  background-color: rgba(8, 6, 2, 0.95) !important;
  border-bottom: 1px solid rgba(251, 191, 36, 0.25) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65) !important;
}

/* At top state */
header#sphoton-header.header-at-top {
  transform: translateY(0) !important;
  background-color: rgba(8, 6, 2, 0.92) !important;
  border-bottom: 1px solid rgba(51, 65, 85, 0.6) !important;
  box-shadow: none !important;
}

/* ==========================================================================
   DYNAMIC WORDPRESS ADMIN BAR & FIXED HEADER OFFSET ARCHITECTURE
   ========================================================================== */
:root {
  --wp-admin-bar-height: 0px;
  --header-height: 80px;
  --header-total-offset: calc(var(--wp-admin-bar-height) + var(--header-height));
  --hero-breathing-space: 4.5rem; /* ~72px desktop */
}

/* Khi đăng nhập quản trị viên WP (Tự động thích ứng trên mọi màn hình) */
body.admin-bar {
  --wp-admin-bar-height: 32px;
}

@media screen and (max-width: 782px) {
  :root {
    --header-height: 72px;
    --hero-breathing-space: 3rem; /* 48px mobile */
  }
  body.admin-bar {
    --wp-admin-bar-height: 46px;
  }
}

/* Offset header cố định theo Admin Bar thực tế */
header#sphoton-header {
  top: var(--wp-admin-bar-height) !important;
}

@media screen and (max-width: 782px) {
  /* Khi cuộn qua admin bar trên mobile, header tự động bám mép đỉnh top 0 */
  body.admin-bar header#sphoton-header.admin-bar-mobile-scrolled {
    top: 0 !important;
  }
}

/* Universal Hero Clearance: Tự động thích ứng cho TẤT CẢ các trang (Home, Products, Services,...) */
.sphoton-hero-section,
.product-hero-section,
#home {
  padding-top: calc(var(--header-total-offset) + var(--hero-breathing-space)) !important;
}

@media (min-width: 640px) {
  :root {
    --hero-breathing-space: 4rem; /* 64px tablet */
  }
}

@media (min-width: 1024px) {
  :root {
    --hero-breathing-space: 5rem; /* 80px desktop */
  }
}

/* Brand Technology Badge */
header#sphoton-header .sphoton-badge-tech {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  padding: 2px 8px !important;
  border-radius: 9999px !important;
  background: rgba(245, 158, 11, 0.12) !important;
  color: #fcd34d !important;
  border: 1px solid rgba(251, 191, 36, 0.3) !important;
  user-select: none !important;
}

/* Desktop Nav vs Mobile Hamburger Visibility Controls */
@media screen and (max-width: 1023.98px) {
  header#sphoton-header nav#main-desktop-nav {
    display: none !important;
  }
  header#sphoton-header #mobile-menu-toggle {
    display: flex !important;
  }
}

@media screen and (min-width: 1024px) {
  header#sphoton-header nav#main-desktop-nav {
    display: flex !important;
  }
  header#sphoton-header #mobile-menu-toggle {
    display: none !important;
  }
  header#sphoton-header #mobile-menu-drawer {
    display: none !important;
  }
}

/* Button CTA Mockup Navy (Base Style & Hover Glow) */
header#sphoton-header /* Primary Gold / Amber CTA Button - Prevents Saasland a:hover purple/blue contamination */
.btn-gold-primary,
.chat-cta-section .bg-amber-400,
.chat-hero-section a[href*="dang-ky"] {
  background-color: #fbbf24 !important;
  color: #000000 !important;
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.35) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
}

.btn-gold-primary *,
.chat-cta-section .bg-amber-400 *,
.chat-hero-section a[href*="dang-ky"] * {
  color: #000000 !important;
  stroke: #000000 !important;
}

.btn-gold-primary:hover,
.chat-cta-section .bg-amber-400:hover,
.chat-hero-section a[href*="dang-ky"]:hover {
  background-color: #fcd34d !important;
  color: #000000 !important;
  box-shadow: 0 0 35px rgba(251, 191, 36, 0.65) !important;
  transform: translateY(-2px) !important;
  text-decoration: none !important;
}

.btn-gold-primary:hover *,
.chat-cta-section .bg-amber-400:hover *,
.chat-hero-section a[href*="dang-ky"]:hover * {
  color: #000000 !important;
  stroke: #000000 !important;
}

.chat-ecosystem-section .ecosystem-card {
  background: #140f06 !important;
  border: 1px solid rgba(251, 191, 36, 0.18) !important;
  border-radius: 1.5rem !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
}
.chat-ecosystem-section .ecosystem-card:hover {
  background: #1c1508 !important;
  border-color: rgba(251, 191, 36, 0.5) !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(251, 191, 36, 0.15) !important;
}

.btn-mockup-navy {
  align-items: center !important;
  justify-content: center !important;
  background: #140f06 !important;
  border: 1px solid rgba(251, 191, 36, 0.5) !important;
  color: #ffffff !important;
  font-size: 0.875rem !important; /* 14px - Chuẩn quốc tế cho Nút CTA Header */
  font-weight: 600 !important;
  min-height: 40px !important; /* Chuẩn 40px touch/click target */
  padding: 0 1.375rem !important;
  border-radius: 9999px !important;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.2) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

header#sphoton-header .btn-mockup-navy:hover,
header#sphoton-header .btn-mockup-navy:focus {
  background: #1e160a !important;
  border-color: #fbbf24 !important;
  color: #ffffff !important;
  box-shadow: 0 0 28px rgba(251, 191, 36, 0.6), 0 4px 14px rgba(0, 0, 0, 0.5) !important;
  transform: translateY(-2px) !important;
  text-decoration: none !important;
}

header#sphoton-header .btn-mockup-navy svg {
  transition: transform 0.25s ease !important;
  stroke: #ffffff !important;
}

header#sphoton-header .btn-mockup-navy:hover svg {
  transform: translateX(4px) !important;
}

/* Right Actions Container */
header#sphoton-header .header-right-actions {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-shrink: 0 !important;
}

/* =================================================================
   HEADER LANGUAGE DROPDOWN SYSTEM
   ================================================================= */
header#sphoton-header #header-lang-wrapper {
  position: relative !important;
}

header#sphoton-header #header-lang-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 7px 14px !important;
  min-height: 38px !important; /* Chuẩn touch target */
  border-radius: 9999px !important;
  border: 1px solid rgba(51, 65, 85, 0.8) !important;
  background-color: rgba(15, 12, 6, 0.6) !important;
  color: #cbd5e1 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  user-select: none !important;
}

header#sphoton-header #header-lang-wrapper:hover #header-lang-btn,
header#sphoton-header #header-lang-wrapper.is-open #header-lang-btn {
  color: #ffffff !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.35) !important;
  background-color: rgba(26, 20, 10, 0.95) !important;
}

header#sphoton-header #header-lang-btn .lang-globe {
  width: 15px !important;
  height: 15px !important;
  flex-shrink: 0 !important;
  color: #94a3b8 !important;
  transition: color 0.2s ease !important;
}

header#sphoton-header #header-lang-wrapper:hover #header-lang-btn .lang-globe,
header#sphoton-header #header-lang-wrapper.is-open #header-lang-btn .lang-globe {
  color: #fbbf24 !important;
}

header#sphoton-header #header-lang-btn .lang-chevron {
  width: 13px !important;
  height: 13px !important;
  transition: transform 0.25s ease, color 0.2s ease !important;
  color: #94a3b8 !important;
}

header#sphoton-header #header-lang-wrapper:hover #header-lang-btn .lang-chevron,
header#sphoton-header #header-lang-wrapper.is-open #header-lang-btn .lang-chevron {
  transform: rotate(180deg) !important;
  color: #fbbf24 !important;
}

/* Dropdown Menu Container */
header#sphoton-header .lang-dropdown-menu {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  min-width: 165px !important;
  padding: 8px !important;
  background-color: rgba(12, 9, 3, 0.96) !important;
  border: 1px solid rgba(251, 191, 36, 0.35) !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.85), 0 0 18px rgba(251, 191, 36, 0.15) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  z-index: 10000 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(6px) !important;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease !important;
}

/* Hover bridge: keeps hover active when cursor moves across margin */
header#sphoton-header .lang-dropdown-menu::before {
  content: '' !important;
  position: absolute !important;
  top: -10px !important;
  left: 0 !important;
  right: 0 !important;
  height: 10px !important;
}

/* Open states on hover and JS click */
header#sphoton-header #header-lang-wrapper:hover .lang-dropdown-menu,
header#sphoton-header #header-lang-wrapper.is-open .lang-dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

/* Dropdown Items */
header#sphoton-header .lang-dropdown-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 9px 12px !important;
  border-radius: 8px !important;
  font-size: 14px !important; /* 14px - Chuẩn quốc tế cho Menu Options */
  line-height: 1.5rem !important;
  color: #cbd5e1 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}
  border-radius: 8px !important;
  font-size: 13px !important;
  line-height: 1.25rem !important;
  color: #cbd5e1 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

header#sphoton-header .lang-dropdown-item:hover {
  background-color: rgba(251, 191, 36, 0.12) !important;
  color: #ffffff !important;
}

header#sphoton-header .lang-dropdown-item.active {
  background-color: rgba(251, 191, 36, 0.16) !important;
  color: #fbbf24 !important;
  font-weight: 600 !important;
}

/* Responsive Topbar Controls:
   1. On Mobile & Tablet (< 1024px), hide the desktop CTA button.
      It is fully provided inside the Mobile Drawer when opened.
   2. On Mobile (< 768px), also hide the topbar language dropdown.
      The topbar on mobile is strictly: Logo on left, Hamburger on right.
*/
@media screen and (max-width: 1023.98px) {
  header#sphoton-header .header-cta-desktop {
    display: none !important;
  }
}

@media screen and (min-width: 1024px) {
  header#sphoton-header .header-cta-desktop {
    display: inline-flex !important;
  }
}

@media screen and (max-width: 767.98px) {
  header#sphoton-header #header-lang-wrapper,
  header#sphoton-header #header-lang-btn {
    display: none !important;
  }
}

@media screen and (min-width: 768px) {
  header#sphoton-header #header-lang-wrapper {
    display: block !important;
  }
  header#sphoton-header #header-lang-btn {
    display: inline-flex !important;
  }
}

/* Mobile Drawer */
header#sphoton-header #mobile-menu-drawer.hidden {
  display: none !important;
}

header#sphoton-header #mobile-menu-drawer:not(.hidden) {
  display: block !important;
}

/* =================================================================
   SPHOTON FOOTER SYSTEM & MODALS (SCOPED ISOLATION)
   ================================================================= */
footer#sphoton-footer {
  background-color: #080602 !important;
  border-top: 1px solid rgba(51, 65, 85, 0.6) !important;
  color: #94a3b8 !important;
  position: relative !important;
  z-index: 10 !important;
  box-sizing: border-box !important;
}

footer#sphoton-footer a {
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

footer#sphoton-footer a:hover {
  text-decoration: none !important;
}

footer#sphoton-footer .footer-column-title {
  font-size: 0.875rem !important; /* 14px */
  font-weight: 700 !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin-bottom: 1.125rem !important;
}

footer#sphoton-footer ul.footer-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important; /* 12px vertical spacing between items - thoáng đãng chuẩn UI */
}

footer#sphoton-footer ul.footer-links li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

footer#sphoton-footer ul.footer-links li a {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 0.875rem !important; /* 14px - Chuẩn Web Accessibility & Readability */
  line-height: 1.5rem !important;
  color: #cbd5e1 !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

footer#sphoton-footer ul.footer-links li a:hover {
  color: #fbbf24 !important;
  transform: translateX(4px) !important;
}

footer#sphoton-footer .footer-highlight-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.375rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #fbbf24 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

footer#sphoton-footer .footer-highlight-link:hover {
  color: #fde68a !important;
  text-decoration: underline !important;
}

footer#sphoton-footer .footer-highlight-link .arrow-icon {
  display: inline-block !important;
  transition: transform 0.25s ease !important;
}

footer#sphoton-footer .footer-highlight-link:hover .arrow-icon {
  transform: translateX(4px) !important;
}

footer#sphoton-footer .legal-link {
  font-size: 0.75rem !important; /* 12px */
  color: #64748b !important;
  transition: color 0.2s ease !important;
}

footer#sphoton-footer .legal-link:hover {
  color: #cbd5e1 !important;
}

footer#sphoton-footer .sphoton-badge-tech {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  padding: 2px 8px !important;
  border-radius: 9999px !important;
  background: rgba(245, 158, 11, 0.12) !important;
  color: #fcd34d !important;
  border: 1px solid rgba(251, 191, 36, 0.3) !important;
  user-select: none !important;
}

/* Legal Modals */
.custom-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  background-color: rgba(8, 6, 2, 0.88) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  padding: 1rem !important;
}

.custom-modal.hidden {
  display: none !important;
}

.custom-modal.flex {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.custom-modal .modal-panel {
  background-color: #0e0b04 !important;
  border: 1px solid rgba(251, 191, 36, 0.35) !important;
  border-radius: 1.5rem !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.95), 0 0 35px rgba(251, 191, 36, 0.15) !important;
}

/* ==========================================================================
   Task 2.2: Core Services Interactive & Button UI Standards
   ========================================================================== */
#dich-vu .group:hover h3,
#dich-vu .group:hover h3 a,
#dich-vu h3 a:hover {
  color: #fbbf24 !important;
  text-decoration: underline;
  transition: color 0.2s ease;
}

#dich-vu .btn-primary-glow {
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 1024px) {
  #dich-vu .btn-primary-glow {
    font-size: 15px !important;
  }
}








/* ==========================================================================
   Product Category Navigator & Realtime Filter Tabs (san-pham.html)
   ========================================================================== */
.product-section-card {
  border: 1px solid rgba(30, 41, 59, 0.8) !important;
  background: rgba(20, 15, 6, 0.8) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.product-section-card:hover {
  border-color: rgba(251, 191, 36, 0.6) !important;
  box-shadow: 0 20px 45px rgba(245, 158, 11, 0.15) !important;
}

.product-card-btn {
  border: 1px solid rgba(251, 191, 36, 0.4) !important;
  background: transparent !important;
  color: #fcd34d !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 11px 20px !important;
  min-height: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.25s ease-in-out !important;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.1) !important;
  text-decoration: none !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 1024px) {
  .product-card-btn {
    font-size: 14.5px !important;
  }
}

.product-card-btn:hover {
  background: linear-gradient(to right, #fbbf24, #f59e0b) !important;
  border-color: #fbbf24 !important;
  color: #000000 !important;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.35) !important;
}

.product-card-btn span {
  color: inherit !important;
}

.product-architecture-banner {
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
  background: linear-gradient(to right, rgba(20, 16, 6, 0.95), rgba(13, 9, 3, 0.9), rgba(20, 16, 6, 0.95)) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

.btn-banner-tailored {
  padding: 12px 28px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  min-height: 44px !important;
  max-height: 48px !important;
  height: 44px !important;
  line-height: 1.25 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 1024px) {
  .btn-banner-tailored {
    font-size: 14.5px !important;
  }
}

.filter-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.filter-item.hidden-filter {
  display: none !important;
}

.sticky-product-nav,
.sticky-subnav {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: var(--header-total-offset) !important;
  z-index: 40 !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(8, 6, 2, 0.94);
  border-bottom: 1px solid rgba(251, 191, 36, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.sticky-nav-label {
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #e2e8f0 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  align-items: center !important;
  gap: 10px !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: none !important;
}

@media (min-width: 1200px) {
  .sticky-nav-label {
    display: flex !important;
  }
}

.sticky-nav-label svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  flex-shrink: 0 !important;
}

.sticky-nav-label span {
  white-space: nowrap !important;
}

#product-filter-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  gap: 8px 10px !important;
}

@media (min-width: 1200px) {
  #product-filter-tabs {
    width: auto !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
  }
}

.subnav-pill {
  border: 1px solid rgba(30, 41, 59, 0.8) !important;
  background: rgba(20, 16, 6, 0.7) !important;
  color: #cbd5e1 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  min-height: 40px !important;
  padding: 7px 12px !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  outline: none !important;
  transition: all 0.2s ease-in-out !important;
  -webkit-appearance: none;
  appearance: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (max-width: 480px) {
  .subnav-pill {
    font-size: 13px !important;
    padding: 6px 10px !important;
    min-height: 38px !important;
  }
  #product-filter-tabs {
    gap: 6px 8px !important;
  }
}

@media (min-width: 768px) {
  .subnav-pill {
    font-size: 14px !important;
    padding: 8px 14px !important;
  }
}

@media (min-width: 1200px) {
  .subnav-pill {
    font-size: 14.5px !important;
    padding: 8px 16px !important;
  }
}

.subnav-pill:hover {
  border-color: rgba(251, 191, 36, 0.5) !important;
  color: #fde68a !important;
  background: rgba(30, 22, 8, 0.85) !important;
}

.subnav-pill.active {
  background: #fbbf24 !important;
  border-color: #fbbf24 !important;
  color: #000000 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.45) !important;
}

.subnav-pill.active i,
.subnav-pill.active svg {
  color: #000000 !important;
  stroke: #000000 !important;
}

/* =================================================================
   iOS / MOBILE GPU COMPOSITING GUARD (Prevents 120Hz ProMotion Black Tile Flicker)
   ================================================================= */
@media (max-width: 1023.98px) {
  .glass-card,
  .glass-card-static,
  .featured-hero-card,
  .blog-card,
  .sidebar-widget-card,
  .cta-card-gradient,
  .chat-app-shell,
  .backdrop-blur-md,
  .backdrop-blur-lg,
  .backdrop-blur-xl,
  .backdrop-blur-2xl {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .glass-card,
  .glass-card-static {
    background: rgba(20, 15, 6, 0.94) !important;
  }

  /* Replace expensive offscreen Gaussian blur layers on mobile GPUs */
  [class*="blur-[100px]"],
  [class*="blur-[120px]"],
  [class*="blur-[140px]"],
  .blur-3xl {
    filter: none !important;
    opacity: 0.45 !important;
  }
}

/* iOS WebKit specific guard (covers iPadOS / ProMotion Safari at any width) */
@supports (-webkit-touch-callout: none) {
  .glass-card,
  .glass-card-static,
  .featured-hero-card,
  .blog-card,
  .sidebar-widget-card,
  .cta-card-gradient,
  .chat-app-shell {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background-color: rgba(20, 15, 6, 0.94) !important;
  }

  [class*="blur-[100px]"],
  [class*="blur-[120px]"],
  [class*="blur-[140px]"],
  .blur-3xl {
    filter: none !important;
    opacity: 0.45 !important;
  }
}
