/* ==========================================================================
   NAMK9.IO.VN - Modern Engineering & Telecom Design System
   Owner: Trần Văn Nam | TNUT - K57ĐVT.01
   Design Tokens: Preline / HeroUI / Tailwind Landing Page Inspired
   Typography: Inter + Plus Jakarta Sans + JetBrains Mono
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* Surface & Background Palette (Deep Obsidian / Slate Glass) */
  --bg-dark: #090d16;
  --bg-dark-elevated: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.65);
  --bg-glass-subtle: rgba(255, 255, 255, 0.03);
  
  /* Hairline Borders (Crisp & Subtle) */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-subtle-hover: rgba(255, 255, 255, 0.16);
  --border-glow: rgba(59, 130, 246, 0.25);
  --border-glow-hover: rgba(59, 130, 246, 0.55);
  
  /* Accents */
  --primary-blue: #2563eb;
  --primary-blue-hover: #1d4ed8;
  --primary-cyan: #06b6d4;
  --primary-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-gold: #f59e0b;
  --accent-neon: #38bdf8;
  --accent-purple: #8b5cf6;
  --accent-red: #ef4444;
  
  /* Text Contrast Hierarchy */
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-gold: #fde047;
  
  /* Modern Typography System */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  /* Transitions & Subtle Elevations */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --box-shadow-glow: 0 8px 24px -4px rgba(37, 99, 235, 0.35);
  --box-shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.07);
  --box-shadow-card-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(59, 130, 246, 0.35);
  --text-shadow-glow: none;
}

/* Ambient Mouse Spotlight Layer (Subtle optical illumination) */
.ambient-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50vw) var(--mouse-y, 50vh), rgba(37, 99, 235, 0.05), transparent 70%);
  transition: opacity 0.5s ease;
}

/* Global Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Atmosphere */
.background-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background-image: url('./bg_optimized.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(0.72) contrast(1.1);
}

.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: radial-gradient(circle at 50% 25%, rgba(7, 12, 24, 0.58) 0%, rgba(5, 9, 18, 0.88) 85%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: block !important;
}

.ambient-spotlight {
  display: none !important;
}

/* Typography Hierarchy (Human & Engineered) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
}

p, span, a, button, input, textarea, select, label {
  font-family: var(--font-sans);
}

code, kbd, pre, .mono-text, .terminal-text {
  font-family: var(--font-mono);
}

i, [class*="fa-"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
  font-style: normal !important;
  display: inline-block;
}

a {
  color: #38bdf8;
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: #7dd3fc;
  text-decoration: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #090d16;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.5);
}

/* Container */
.container {
  max-width: 890px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 66px;
  padding: 0;
  display: flex;
  align-items: center;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  background: rgba(5, 10, 21, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.16);
}

.navbar.scrolled {
  height: 66px;
  padding: 0;
  background: rgba(5, 10, 21, 0.96);
  border-bottom: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.brand-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-cyan);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
  transition: var(--transition-smooth);
}

.brand-logo:hover .brand-avatar {
  transform: rotate(360deg);
  box-shadow: 0 0 25px var(--primary-cyan);
}

.brand-text {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
  text-transform: uppercase;
}

.brand-text span {
  color: var(--primary-cyan);
}

.brand-text,
.nav-link,
.nav-dropdown-toggle,
.nav-dropdown-item,
.nav-cta,
.nav-search-btn {
  white-space: nowrap !important;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 1.05rem;
  color: #d1d5db;
  position: relative;
  padding: 0.3rem 0;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-cyan);
  transition: var(--transition-fast);
  box-shadow: 0 0 8px var(--primary-cyan);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-cyan);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* ==========================================================================
   Scalable Cyberpunk Dropdown Menu
   ========================================================================== */
.nav-item-dropdown {
  position: relative;
  list-style: none;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-chevron {
  font-size: 0.72rem;
  color: var(--primary-cyan);
  transition: transform 0.25s ease;
}

.nav-item-dropdown:hover .nav-chevron,
.nav-item-dropdown.active-open .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(96vw, 980px);
  background: rgba(8, 14, 28, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(56, 189, 248, 0.15);
  padding: 18px 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-height: 84vh;
  overflow-y: auto;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  width: 100%;
  height: 16px;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown.active-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-dropdown-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-col-header {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary-cyan);
  padding: 5px 10px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  text-decoration: none;
  transition: all 0.18s ease;
  border: 1px solid transparent;
}

.nav-dropdown-item:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateX(2px);
}

.nav-dropdown-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: rgba(56, 189, 248, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--primary-cyan);
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.nav-dropdown-item:hover .nav-dropdown-icon-box {
  background: var(--primary-cyan);
  color: #050a15;
  box-shadow: 0 0 12px var(--primary-cyan);
}

.nav-dropdown-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
}

.nav-dropdown-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-dropdown-desc {
  font-size: 0.7rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-new {
  background: linear-gradient(135deg, #38bdf8, #0070f3);
  color: #050a15;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.badge-hot {
  background: #fe2c55;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Navbar Right Actions & Quick Search Button
   ========================================================================== */
.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0.45rem 0.95rem;
  border-radius: 20px;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #94a3b8;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
  font-family: inherit;
}

.nav-search-btn:hover {
  background: rgba(56, 189, 248, 0.14);
  border-color: var(--primary-cyan);
  color: #fff;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

.nav-search-btn i {
  color: var(--primary-cyan);
  font-size: 0.9rem;
}

.search-kbd {
  display: inline-block;
  padding: 1px 6px;
  font-size: 0.68rem;
  font-family: monospace;
  font-weight: 700;
  color: var(--primary-cyan);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.nav-cta {
  padding: 0.55rem 1.3rem;
  border: 1px solid var(--primary-cyan);
  border-radius: 4px;
  color: var(--primary-cyan);
  font-weight: bold;
  letter-spacing: 0.5px;
  background: rgba(56, 189, 248, 0.05);
  transition: var(--transition-smooth);
  cursor: pointer;
  font-size: 0.95rem;
}

.nav-cta:hover {
  background: var(--primary-cyan);
  color: #050a15;
  box-shadow: var(--box-shadow-glow);
}

/* ==========================================================================
   Cyberpunk Spotlight Search Modal (Ctrl + K) - Modern Raycast & Linear Style
   ========================================================================== */
.spotlight-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 1rem 2rem 1rem;
  animation: spotlightFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes spotlightFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.spotlight-modal,
.spotlight-modal input,
.spotlight-modal button,
.spotlight-modal span,
.spotlight-modal div,
.spotlight-modal kbd {
  font-family: var(--font-sans);
}

.spotlight-modal i,
.spotlight-modal [class*="fa-"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
  font-style: normal !important;
  font-weight: 900 !important;
  display: inline-block;
}

.spotlight-modal {
  width: min(92vw, 860px);
  background: rgba(11, 18, 33, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 18px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 35px rgba(56, 189, 248, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.spotlight-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.85);
  flex-shrink: 0;
}

.spotlight-header i {
  color: #38bdf8;
  font-size: 1.25rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.5));
}

.spotlight-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.spotlight-input::placeholder {
  color: #64748b;
  font-size: 0.98rem;
  font-weight: 400;
}

.spotlight-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: #94a3b8;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.spotlight-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
}

.spotlight-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 14, 28, 0.9);
  flex-wrap: wrap; /* CRITICAL: Never clip elements! */
  flex-shrink: 0;
}

.spotlight-filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 13px;
  height: 32px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  white-space: nowrap !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  flex-shrink: 0;
  user-select: none;
}

.spotlight-filter-pill i {
  font-size: 0.8rem;
  color: #38bdf8;
}

.spotlight-filter-pill:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.35);
  color: #ffffff;
}

.spotlight-filter-pill.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #38bdf8;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.spotlight-filter-pill.active i {
  color: #38bdf8;
}

.spotlight-results {
  padding: 12px 16px 26px 16px; /* Generous bottom padding so last item is NEVER cut off! */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  scroll-padding-bottom: 24px;
}

.spotlight-results::-webkit-scrollbar {
  width: 6px;
}

.spotlight-results::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.spotlight-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 4px;
}

.spotlight-results::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.4);
}

.spotlight-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  text-decoration: none;
  background: transparent;
}

.spotlight-item:hover,
.spotlight-item.selected {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.28);
  transform: translateX(3px);
}

.spotlight-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.spotlight-item:hover .spotlight-item-icon,
.spotlight-item.selected .spotlight-item-icon {
  background: #0284c7;
  color: #ffffff;
}

.spotlight-item-body {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spotlight-item-title {
  color: #f8fafc;
  font-size: 0.98rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap !important;
}

.spotlight-item-desc {
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap !important;
}

.spotlight-item-cat {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  margin-left: auto;
  flex-shrink: 0;
}

.spotlight-highlight {
  color: #38bdf8;
  font-weight: bold;
}

.spotlight-empty {
  text-align: center;
  padding: 40px 20px;
  color: #64748b;
  font-size: 0.95rem;
}

.spotlight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 11, 24, 0.95);
  font-size: 0.78rem;
  color: #64748b;
  flex-shrink: 0;
}

.spotlight-footer-keys {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.spotlight-footer-key {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.spotlight-footer-key kbd {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}


/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section (Phần Giới Thiệu Kỹ Sư & Bệ Phóng Công Nghệ)
   ========================================================================== */
.hero-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 6.5rem 0 3.5rem 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 9999px;
  color: #60a5fa;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: clamp(1.85rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 0.8rem;
  letter-spacing: -0.025em;
}

.hero-title .name-highlight {
  background: linear-gradient(135deg, #ffffff 30%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Dynamic Terminal Role Bar */
.hero-role-terminal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  padding: 6px 14px;
  margin-bottom: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: #38bdf8;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  max-width: 100%;
}

.terminal-prompt {
  color: #22c55e;
  font-size: 0.85rem;
}

.typing-text-content {
  color: #f1f5f9;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: #38bdf8;
  animation: cursorBlink 1s infinite;
  vertical-align: middle;
}

@keyframes cursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.75;
  max-width: 650px;
}

.hero-desc strong {
  color: #ffffff;
  font-weight: 700;
}

/* Modern Academic & Engineering Bento Chips */
.hero-academic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 1.8rem;
}

@media (max-width: 1150px) {
  .hero-academic-grid {
    grid-template-columns: 1fr;
  }
}

.hero-academic-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.hero-academic-chip:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 0.85);
  transform: translateY(-2px);
}

.academic-chip-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(37, 99, 235, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.academic-chip-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.academic-chip-label {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
  line-height: 1.2;
}

.academic-chip-val {
  font-size: 0.83rem;
  color: #f8fafc;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}

/* Action Buttons & Quick Connect */
.hero-action-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1.6rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1.6rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main) !important;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.hero-quick-connect {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.quick-connect-label {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 600;
}

.quick-connect-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-connect-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-connect-btn.connect-zalo {
  width: auto;
  padding: 0 12px;
  font-weight: 800;
  font-size: 0.82rem;
  color: #0068ff;
  border-color: rgba(0, 104, 255, 0.3);
  background: rgba(0, 104, 255, 0.1);
}

.hero-connect-btn:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.hero-connect-btn.connect-zalo:hover {
  background: #0068ff;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 104, 255, 0.35);
}

.hero-connect-btn.connect-github:hover {
  background: #24292f;
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-connect-btn.connect-mail:hover {
  background: #ea4335;
  border-color: #ea4335;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(234, 67, 53, 0.35);
}

.hero-connect-btn.connect-phone:hover {
  background: #22c55e;
  border-color: #22c55e;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}

/* Portrait Visual Showcase Window */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-showcase-card {
  width: 100%;
  max-width: 420px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(56, 189, 248, 0.1);
  backdrop-filter: blur(16px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.hero-showcase-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 45px rgba(56, 189, 248, 0.2);
}

.showcase-window-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(8, 14, 28, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.window-title {
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.window-status {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #22c55e;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.5px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 1.5s infinite;
}

.showcase-portrait-box {
  position: relative;
  padding: 14px;
  overflow: hidden;
}

.showcase-portrait-img {
  width: 100%;
  aspect-ratio: 4/4.8;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease;
}

.hero-showcase-card:hover .showcase-portrait-img {
  transform: scale(1.02);
}

/* Floating Badges */
.floating-tech-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(11, 17, 32, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  z-index: 10;
  transition: all 0.25s ease;
}

.badge-top-right {
  top: 24px;
  right: 24px;
}

.badge-bottom-left {
  bottom: 24px;
  left: 24px;
}

.tech-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.tech-badge-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.tech-badge-sub {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Showcase Tech Strip */
.showcase-tech-strip {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px 14px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

.tech-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.tech-tag:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #ffffff;
}

/* Telemetry Highlights Strip (Below Hero) */
.hero-telemetry-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 3.5rem;
  padding: 22px 28px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.telemetry-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.telemetry-val {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 40%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.telemetry-plus {
  color: #38bdf8;
  font-size: 1.5rem;
}

.telemetry-desc {
  display: flex;
  flex-direction: column;
}

.telemetry-desc strong {
  font-size: 0.88rem;
  color: #f8fafc;
  font-weight: 700;
  line-height: 1.3;
}

.telemetry-desc span {
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.35;
}

@media (max-width: 992px) {
  .hero-telemetry-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .hero-telemetry-strip {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 20px;
  }
}

/* ==========================================================================
   Section Headers (Tiêu đề các phần - Chuẩn Hóa Kích Thước Toàn Trang)
   ========================================================================== */
.section-padding {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2.5rem auto;
}

.section-tag {
  color: #38bdf8;
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.4rem);
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-cyan), var(--accent-gold));
  margin: 0.7rem auto 0 auto;
  border-radius: 2px;
}

.section-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-style: normal;
  max-width: 760px;
  margin: 0 auto;
}

/* ==========================================================================
   Section: Chuyên Ngành & Năng Lực Viễn Thông (Specialization)
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 2.2rem;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.skill-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(56, 189, 248, 0.2);
}

.skill-icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-cyan);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.skill-card h3 {
  font-size: 1.45rem;
  color: #ffffff;
  margin-bottom: 1rem;
  font-weight: 600;
}

.skill-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Section: Đồ Án & Dự Án Thực Hành (Projects & Research)
   ========================================================================== */
.projects-filter-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.6rem;
  background: rgba(13, 22, 41, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  color: var(--text-muted);
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary-cyan);
  color: #050a15;
  border-color: var(--primary-cyan);
  font-weight: bold;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-cyan);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.25);
}

.project-img-holder {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-img {
  transform: scale(1.08);
}

.project-overlay-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(5, 10, 21, 0.85);
  border: 1px solid var(--primary-cyan);
  color: var(--primary-cyan);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
}

.project-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.45rem;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.project-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.2rem;
  margin-top: auto;
}

.project-details-btn {
  background: none;
  border: none;
  color: var(--primary-cyan);
  font-size: 1.05rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.project-details-btn:hover {
  gap: 0.8rem;
  color: var(--accent-neon);
}

/* ==========================================================================
   Section: Timeline Học Tập & Nghiên Cứu
   ========================================================================== */
.timeline-wrapper {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-cyan), rgba(56, 189, 248, 0.1));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 3rem;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 3rem;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--primary-cyan);
  border: 4px solid var(--bg-dark);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--primary-cyan);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.8rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.timeline-date {
  color: var(--accent-gold);
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.timeline-sub {
  color: var(--primary-cyan);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ==========================================================================
   Section: Contact & Footer
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  padding: 2.5rem;
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.contact-info-card h3 {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.contact-method-icon {
  width: 50px;
  height: 50px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-cyan);
  font-size: 1.4rem;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.contact-method-text label {
  display: block;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-method-text span, .contact-method-text a {
  font-size: 1.15rem;
  color: #ffffff;
  font-weight: 600;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem;
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: var(--text-main);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: rgba(5, 10, 21, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #ffffff;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-cyan);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Contact Consent Checkbox (Nghị định 13/2023/NĐ-CP & Bảo mật dữ liệu) */
.form-consent-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(10, 18, 36, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  transition: var(--transition-fast);
}

.form-consent-box:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(10, 18, 36, 0.85);
}

.form-consent-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--primary-cyan);
  cursor: pointer;
  flex-shrink: 0;
}

.form-consent-label {
  font-size: 0.86rem;
  color: #94a3b8;
  line-height: 1.55;
  cursor: pointer;
  margin: 0;
  user-select: none;
}

.form-consent-label strong {
  color: #f1f5f9;
}

.form-consent-link {
  color: #ff9800;
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, text-shadow 0.2s;
}

.form-consent-link:hover {
  color: #ffb74d;
  text-shadow: 0 0 8px rgba(255, 152, 0, 0.5);
}

.footer {
  padding: 14px 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 18, 30, 0.22);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  text-align: center;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.35;
  margin-bottom: 3px;
}

.footer-text span {
  color: var(--primary-cyan);
}

/* Modal Popup */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 10, 21, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #0a1223;
  border: 1px solid var(--primary-cyan);
  border-radius: 16px;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.3);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--primary-cyan);
}

/* Toast Alert */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
}

.toast {
  background: rgba(10, 18, 35, 0.95);
  border: 1px solid var(--accent-neon);
  color: #ffffff;
  padding: 1rem 1.8rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 245, 212, 0.3);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-smooth);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive Rules */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-academic-card {
    text-align: left;
  }
  .hero-actions {
    justify-content: center;
  }
  .portrait-wrapper {
    width: 300px;
    height: 380px;
  }
  .timeline-wrapper::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 3rem !important;
    padding-right: 0 !important;
    text-align: left !important;
  }
  .timeline-dot {
    left: 10px !important;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 993px) and (max-width: 1200px) {
  .nav-links {
    gap: 0.9rem;
  }
  .nav-link {
    font-size: 0.92rem;
  }
  .brand-text {
    font-size: 1.25rem;
  }
  .nav-search-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }
  .nav-cta {
    padding: 0.45rem 1rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(5, 10, 21, 0.98);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--primary-cyan);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    gap: 1.2rem;
    align-items: flex-start;
  }
  .nav-links.mobile-active {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    box-shadow: none;
    background: rgba(56, 189, 248, 0.03);
    border-left: 2px solid var(--primary-cyan);
    border-top: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0;
    margin-left: 0.8rem;
    padding: 6px 10px;
    min-width: unset;
    width: 100%;
    grid-template-columns: 1fr !important;
  }
  .nav-dropdown-menu::before {
    display: none;
  }
  .nav-search-btn span,
  .nav-search-btn kbd {
    display: none;
  }
  .nav-search-btn {
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 768px) {
  .hero-title, .section-title, .bento-section-title {
    font-size: clamp(1.55rem, 5vw, 1.85rem) !important;
  }
  .iptv-layout-grid {
    grid-template-columns: 1fr !important;
  }
  .studio-split-grid {
    grid-template-columns: 1fr !important;
  }
}
  .studio-split-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 576px) {
  .portrait-wrapper {
    width: 260px;
    height: 330px;
  }
  .stat-floating-card {
    position: static;
    margin-top: 14px;
    left: auto;
    bottom: auto;
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  .spotlight-modal {
    width: 96vw;
    max-height: 90vh;
    border-radius: 14px;
  }
  .spotlight-header {
    padding: 12px 14px;
    gap: 10px;
  }
  .spotlight-input {
    font-size: 1rem;
  }
  .spotlight-filter-bar {
    padding: 8px 12px;
    gap: 6px;
  }
  .spotlight-filter-pill {
    padding: 4px 10px;
    height: 28px;
    font-size: 0.76rem;
  }
  .spotlight-footer-keys {
    display: none;
  }
}

/* ==================== AI PROMPT OPTIMIZER STUDIO STYLES ==================== */
.prompt-preset-btn {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
}

.prompt-preset-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--primary-cyan);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.25);
}

.opt-mode-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.opt-mode-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.opt-mode-tab.active {
  background: linear-gradient(135deg, var(--primary-cyan), #0088cc);
  color: #000;
  border-color: var(--primary-cyan);
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.3);
}

/* ==================== SOFTWARE HUB & CATEGORY NAVIGATION ==================== */
.standalone-studios-hub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 auto 1.5rem auto;
  max-width: 960px;
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hub-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.hub-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.hub-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hub-pill-link:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--primary-cyan);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

.hub-arrow {
  font-size: 0.7rem;
  opacity: 0.6;
  transition: transform 0.2s;
}

.hub-pill-link:hover .hub-arrow {
  transform: translate(2px, -2px);
  opacity: 1;
}

/* Category Segmented Tabs */
.software-category-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 1.3rem auto;
  max-width: 820px;
  padding: 5px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.software-cat-btn {
  flex: 1;
  padding: 9px 16px;
  border-radius: 24px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.software-cat-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.software-cat-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(0, 112, 243, 0.28));
  border-color: rgba(56, 189, 248, 0.5);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 112, 243, 0.3);
}

.software-cat-btn.active i {
  color: var(--primary-cyan);
}

.cat-count {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.software-cat-btn.active .cat-count {
  background: var(--primary-cyan);
  color: #050a15;
}

/* Tool Buttons Container per Category */
.category-tools-group,
.software-tools-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 auto 2.2rem auto;
  max-width: 1040px;
  animation: fadeInTools 0.25s ease;
}

@keyframes fadeInTools {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== SLEEK APP DOCK & TOOL SWITCHER TABS ==================== */
.tool-switcher-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 auto 1.8rem auto;
  overflow-x: auto;
  padding: 6px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  backdrop-filter: blur(16px);
  max-width: 100%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  -webkit-overflow-scrolling: touch;
}
.tool-switcher-container::-webkit-scrollbar {
  display: none;
}

.tool-switcher-btn {
  text-decoration: none;
  user-select: none;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tool-switcher-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: #fff;
  transform: translateY(-1px);
}

.tool-switcher-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.95), rgba(0, 112, 243, 0.95));
  color: #050a15;
  font-weight: 700;
  border-color: #00f0ff;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
  transform: translateY(-1px);
}

.tool-switcher-btn.active span[style*="background"] {
  background: #050a15 !important;
  color: #00f0ff !important;
}

/* ==================== VIDEO DOWNLOADER STYLES ==================== */
.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  transition: all 0.3s ease;
}

.platform-pill.active {
  color: #fff;
  transform: scale(1.06);
}

.platform-pill.active.tiktok {
  background: rgba(254, 44, 85, 0.2);
  border-color: #fe2c55;
  color: #fe2c55;
  box-shadow: 0 0 15px rgba(254, 44, 85, 0.4);
}

.platform-pill.active.facebook {
  background: rgba(24, 119, 242, 0.2);
  border-color: #1877f2;
  color: #1877f2;
  box-shadow: 0 0 15px rgba(24, 119, 242, 0.4);
}

.platform-pill.active.instagram {
  background: rgba(225, 48, 108, 0.2);
  border-color: #e1306c;
  color: #e1306c;
  box-shadow: 0 0 15px rgba(225, 48, 108, 0.4);
}

.platform-pill.active.youtube {
  background: rgba(255, 0, 0, 0.2);
  border-color: #ff0000;
  color: #ff0000;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.dl-action-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 18px;
  padding: 1.8rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.1);
  backdrop-filter: blur(16px);
}

.dl-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  padding: 6px 10px 6px 18px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.dl-input-wrapper:focus-within {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.4), 0 8px 30px rgba(0, 0, 0, 0.5);
}

.dl-url-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1rem;
  padding: 12px 10px;
}

.dl-url-input::placeholder {
  color: #64748b;
  font-size: 0.95rem;
}

.dl-fetch-btn {
  background: linear-gradient(135deg, var(--primary-cyan), #0088cc);
  color: #050a15;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.35);
  white-space: nowrap;
}

.dl-fetch-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
}

.dl-fetch-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.dl-btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.dl-btn-primary {
  background: linear-gradient(135deg, #38bdf8, #0077ff);
  color: #050a15;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.35);
}

.dl-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(56, 189, 248, 0.55);
}

.dl-btn-audio {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #fff;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
}

.dl-btn-audio:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(168, 85, 247, 0.55);
}

.dl-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}

.dl-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .dl-input-wrapper {
    flex-direction: column;
    padding: 10px;
    gap: 10px;
  }
  .dl-fetch-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==================== DIFY AI ASSISTANT CHAT DRAWER ==================== */
.dify-trigger-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #7928ca);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.45), 0 0 20px rgba(121, 40, 202, 0.5);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.dify-trigger-btn:hover {
  transform: scale(1.15) translateY(-4px);
  box-shadow: 0 12px 35px rgba(56, 189, 248, 0.7), 0 0 30px rgba(121, 40, 202, 0.7);
}

.dify-trigger-pulse {
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 2px solid var(--primary-cyan);
  animation: difyPulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}

@keyframes difyPulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.4); opacity: 0; }
}

.dify-chat-drawer {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 580px;
  max-height: calc(100vh - 120px);
  background: rgba(10, 16, 31, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(56, 189, 248, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.dify-chat-drawer.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dify-chat-header {
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dify-chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dify-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #7928ca);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.dify-header-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dify-status-pill {
  font-size: 0.72rem;
  color: #27c93f;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dify-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dify-action-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.dify-action-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.dify-chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.3) transparent;
}

.dify-msg {
  display: flex;
  gap: 10px;
  max-width: 88%;
  animation: difyMsgIn 0.3s ease forwards;
}

@keyframes difyMsgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dify-msg.bot {
  align-self: flex-start;
}

.dify-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.dify-msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.55;
  word-break: break-word;
}

.dify-msg.bot .dify-msg-bubble {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border-top-left-radius: 4px;
}

.dify-msg.user .dify-msg-bubble {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(0, 136, 204, 0.35));
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #fff;
  border-top-right-radius: 4px;
}

.dify-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.dify-chip {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--primary-cyan);
  padding: 5px 10px;
  border-radius: 14px;
  font-size: 0.76rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dify-chip:hover {
  background: var(--primary-cyan);
  color: #050a15;
  transform: translateY(-1px);
}

.dify-typing-indicator {
  display: flex;
  gap: 4px;
  padding: 6px 10px;
  align-items: center;
}

.dify-typing-dot {
  width: 6px;
  height: 6px;
  background: var(--primary-cyan);
  border-radius: 50%;
  animation: difyBlink 1.4s infinite both;
}

.dify-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.dify-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes difyBlink {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.2); }
}

.dify-chat-footer {
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dify-input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 4px 6px 4px 12px;
  transition: border-color 0.3s;
}

.dify-input-wrapper:focus-within {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

.dify-chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.88rem;
  padding: 8px 0;
}

.dify-chat-input::placeholder {
  color: #64748b;
  font-size: 0.84rem;
}

.dify-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--primary-cyan);
  border: none;
  color: #050a15;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dify-send-btn:hover {
  background: #fff;
  transform: scale(1.05);
}

.dify-settings-panel {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(10, 16, 31, 0.96);
  border-bottom: 1px solid rgba(56, 189, 248, 0.3);
  padding: 14px;
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}

.dify-settings-panel.active {
  display: flex;
}

@media (max-width: 480px) {
  .dify-chat-drawer {
    right: 12px;
    bottom: 84px;
    width: calc(100vw - 24px);
    height: 520px;
  }
}

/* ==========================================================================
   DIFY AI STUDIO & WORKFLOW ORCHESTRATOR STYLES
   Trần Văn Nam | NAMK9.IO.VN
   ========================================================================== */

/* 1. Navbar AI Badge */
.nav-badge-ai {
  background: linear-gradient(135deg, #ff007f, #7928ca);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: 5px;
  letter-spacing: 0.5px;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.6);
  animation: pulseAiBadge 2.2s infinite ease-in-out;
}

@keyframes pulseAiBadge {
  0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(255, 0, 127, 0.5); }
  50% { transform: scale(1.12); box-shadow: 0 0 16px rgba(255, 0, 127, 0.9); }
}

/* 2. Studio Tabs Switcher */
.ai-studio-switcher {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.ai-tab-btn {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ai-tab-btn:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.15);
}

.ai-tab-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(121, 40, 202, 0.25));
  border-color: var(--primary-cyan);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
}

.ai-tab-btn.active i {
  color: var(--primary-cyan);
  filter: drop-shadow(0 0 8px var(--primary-cyan));
}

/* 3. Workflow Canvas Container */
.workflow-studio-container {
  background: rgba(10, 16, 31, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(56, 189, 248, 0.1);
  overflow: hidden;
  position: relative;
}

/* Canvas Toolbar */
.workflow-toolbar {
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.canvas-viewport {
  position: relative;
  min-height: 520px;
  padding: 40px 30px;
  overflow-x: auto;
  background-image: radial-gradient(rgba(56, 189, 248, 0.12) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  background-color: #060a14;
}

/* Connecting SVG overlay */
.flow-svg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.flow-cable {
  fill: none;
  stroke: rgba(56, 189, 248, 0.25);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke 0.3s, stroke-width 0.3s;
}

.flow-cable.active {
  stroke: var(--primary-cyan);
  stroke-width: 3.5;
  stroke-dasharray: 8 6;
  animation: flowCableAnim 1s linear infinite;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.8));
}

@keyframes flowCableAnim {
  to { stroke-dashoffset: -28; }
}

/* Nodes Grid Layout */
.workflow-nodes-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  position: relative;
  z-index: 2;
  min-width: 960px;
}

/* Node Block Card */
.workflow-node {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  width: 200px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: blur(14px);
  user-select: none;
}

.workflow-node:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 15px 35px rgba(56, 189, 248, 0.2);
}

.workflow-node.active-running {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.6), inset 0 0 15px rgba(56, 189, 248, 0.15);
  animation: nodeGlow 1.4s infinite alternate;
}

.workflow-node.completed {
  border-color: #27c93f;
  box-shadow: 0 0 18px rgba(39, 201, 63, 0.4);
}

@keyframes nodeGlow {
  from { box-shadow: 0 0 15px rgba(56, 189, 248, 0.4); }
  to { box-shadow: 0 0 30px rgba(56, 189, 248, 0.8); }
}

.node-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.node-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.node-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.node-type-label {
  font-size: 0.68rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.node-body {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.5;
}

.node-meta-tag {
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  color: #cbd5e1;
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Ports */
.node-port {
  width: 12px;
  height: 12px;
  background: #0f172a;
  border: 2px solid var(--primary-cyan);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.2s ease;
}

.port-input {
  left: -7px;
}

.port-output {
  right: -7px;
}

.workflow-node.active-running .node-port {
  background: var(--primary-cyan);
  box-shadow: 0 0 10px var(--primary-cyan);
}

/* Execution Terminal Log */
.workflow-console {
  background: #030712;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 20px;
  font-family: 'Consolas', 'Fira Code', monospace;
  font-size: 0.82rem;
  max-height: 180px;
  overflow-y: auto;
}

.console-entry {
  margin-bottom: 6px;
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.console-timestamp {
  color: #64748b;
  font-size: 0.75rem;
}

.console-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
}

.console-msg {
  color: #e2e8f0;
}

/* 4. RAG Knowledge & Document Section */
.rag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.rag-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(14px);
  transition: all 0.3s ease;
}

.rag-card:hover {
  border-color: var(--primary-cyan);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.15);
}

.rag-score-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin: 10px 0;
}

.rag-score-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #7928ca);
  border-radius: 3px;
  transition: width 0.8s ease;
}

/* 5. Dify Cloud Launch Banner */
.dify-cloud-banner {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(121, 40, 202, 0.15));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.code-snippet-box {
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  position: relative;
  font-family: 'Consolas', monospace;
  font-size: 0.85rem;
  color: #38bdf8;
  overflow-x: auto;
}

.code-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.code-copy-btn:hover {
  background: var(--primary-cyan);
  color: #050a15;
}

/* ==========================================================================
   AI BACKGROUND REMOVER (BRIA RMBG) STYLES
   Trần Văn Nam | NAMK9.IO.VN
   ========================================================================== */

.bg-remover-card {
  background: rgba(10, 16, 31, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(56, 189, 248, 0.1);
  margin-top: 1.5rem;
}

.bg-upload-dropzone {
  border: 2px dashed rgba(56, 189, 248, 0.35);
  border-radius: 20px;
  padding: 50px 24px;
  text-align: center;
  background: rgba(15, 23, 42, 0.5);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.bg-upload-dropzone:hover, .bg-upload-dropzone.dragover {
  border-color: var(--primary-cyan);
  background: rgba(56, 189, 248, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.2);
}

.bg-upload-icon-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(121, 40, 202, 0.25));
  border: 1px solid rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-cyan);
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.25);
  transition: all 0.3s ease;
}

.bg-upload-dropzone:hover .bg-upload-icon-circle {
  transform: scale(1.1);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.5);
}

/* Before & After Split Slider */
.ba-slider-box {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  user-select: none;
}

.checkerboard-pattern {
  background-color: #1a202c;
  background-image: 
    linear-gradient(45deg, #2d3748 25%, transparent 25%), 
    linear-gradient(-45deg, #2d3748 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #2d3748 75%), 
    linear-gradient(-45deg, transparent 75%, #2d3748 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.ba-container {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .ba-container {
    height: 320px;
  }
}

.ba-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ba-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-right: 2px solid var(--primary-cyan);
  box-shadow: 3px 0 15px rgba(56, 189, 248, 0.6);
  z-index: 2;
}

.ba-overlay img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: none;
}

.ba-slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-cyan);
  color: #050a15;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.8);
  cursor: ew-resize;
  z-index: 10;
  pointer-events: none;
}

/* Color Studio Buttons */
.bg-color-palette {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.bg-color-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-color-btn:hover, .bg-color-btn.active {
  transform: scale(1.18);
  border-color: #fff;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.6);
}

.bg-color-btn.active::after {
  content: '✓';
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* ==========================================================================
   LEGAL & PRIVACY CENTER MODAL STYLES (Tuân thủ Nghị định 13 & Bản quyền)
   ========================================================================== */
.legal-modal-box {
  max-width: 860px !important;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 2.2rem 2.4rem !important;
  background: linear-gradient(145deg, rgba(10, 24, 48, 0.92), rgba(6, 16, 32, 0.96)) !important;
  backdrop-filter: blur(36px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(36px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 28px !important;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.8), 0 0 45px rgba(212, 249, 130, 0.12) !important;
}

.legal-tab-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  margin: 1.1rem 0 1.3rem 0;
  scrollbar-width: none;
}

.legal-tab-bar::-webkit-scrollbar {
  display: none;
}

.legal-tab-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.legal-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.legal-tab-btn.active {
  background: #d4f982 !important;
  color: #06182c !important;
  border-color: #d4f982 !important;
  box-shadow: 0 4px 18px rgba(212, 249, 130, 0.35) !important;
}

.legal-content-area {
  overflow-y: auto;
  padding-right: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  line-height: 1.75;
}

.legal-section-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.3rem 1.5rem;
  margin-bottom: 1.15rem;
}

.legal-section-block h4 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   NETWORK DIAGNOSTICS & SPEEDTEST STUDIO (Cyberpunk Telecom Suite)
   ========================================================================== */
.speedtest-panel-wrapper {
  max-width: 1060px;
  margin: 0 auto;
}

/* IP & Network Intelligence Grid */
.ip-intel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.ip-intel-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  backdrop-filter: blur(10px);
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ip-intel-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(56, 189, 248, 0.12);
}

.ip-intel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.ip-intel-label {
  font-size: 0.78rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ip-intel-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f1f5f9;
  word-break: break-all;
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  line-height: 1.35;
}

.ip-intel-sub {
  font-size: 0.76rem;
  color: #64748b;
  margin-top: 4px;
}

.ip-copy-btn {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--primary-cyan);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ip-copy-btn:hover {
  background: var(--primary-cyan);
  color: #050a15;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* Speedometer Main Card & VNNIC Suite */
.vnnic-speed-container {
  background: linear-gradient(180deg, rgba(8, 20, 50, 0.95) 0%, rgba(3, 8, 24, 0.98) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  border-radius: 20px;
  padding: 2.2rem 2rem;
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.15), inset 0 0 40px rgba(56, 189, 248, 0.05);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.vnnic-header-title {
  text-align: center;
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 1.8rem 0;
  letter-spacing: 0.5px;
}

/* 4 Metric Top Row - Exact VNNIC Layout */
.vnnic-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.vnnic-metric-col {
  padding: 1rem 0.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.vnnic-metric-col.active {
  border-color: var(--primary-cyan);
  background: rgba(56, 189, 248, 0.08);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.vnnic-metric-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}

.vnnic-metric-value {
  font-size: 2.6rem;
  font-weight: 900;
  color: #ffffff;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  line-height: 1.1;
  letter-spacing: -1px;
}

.vnnic-metric-unit {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 4px;
}

/* Share Bar */
.vnnic-share-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vnnic-share-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.vnnic-share-btn.fb:hover {
  background: #1877f2;
  color: #fff;
  border-color: #1877f2;
  box-shadow: 0 0 12px rgba(24, 119, 242, 0.4);
}

.vnnic-share-btn.tw:hover {
  background: #1da1f2;
  color: #fff;
  border-color: #1da1f2;
  box-shadow: 0 0 12px rgba(29, 161, 242, 0.4);
}

.vnnic-share-btn.copy:hover {
  background: var(--primary-cyan);
  color: #050a15;
  border-color: var(--primary-cyan);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

/* Gauge Graphic Inside */
.speedometer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0.5rem auto 1.5rem auto;
  max-width: 420px;
}

.speedometer-svg-box {
  width: 100%;
  max-width: 360px;
  height: auto;
  overflow: visible;
  position: relative;
}

.gauge-bg-arc {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 14;
  stroke-linecap: round;
}

.gauge-val-arc {
  fill: none;
  stroke: url(#speedGaugeGradient);
  stroke-width: 14;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.12s linear;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.6));
}

.gauge-needle {
  transform-origin: 190px 170px;
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.4, 1);
}

.gauge-tick-label {
  fill: #64748b;
  font-size: 11px;
  font-weight: 600;
  text-anchor: middle;
  font-family: 'Space Grotesk', monospace;
}

.speed-readout-box {
  text-align: center;
  margin-top: -55px;
  z-index: 2;
}

.speed-digital-number {
  font-size: 3.8rem;
  font-weight: 900;
  color: #ffffff;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  letter-spacing: -2px;
  line-height: 1;
  text-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
  background: linear-gradient(180deg, #ffffff 30%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.speed-unit-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
}

.speed-phase-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  color: #cbd5e1;
  font-weight: 600;
  margin-top: 10px;
}

.speed-phase-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  transition: background 0.3s ease;
}

.speed-phase-dot.active {
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: speedPulse 1.2s infinite;
}

.speed-phase-dot.downloading {
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: speedPulse 0.8s infinite;
}

.speed-phase-dot.uploading {
  background: #a855f7;
  box-shadow: 0 0 10px #a855f7;
  animation: speedPulse 0.8s infinite;
}

@keyframes speedPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* Bottom 3-Column Info Layout - Exact VNNIC Layout */
.vnnic-bottom-grid {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding-top: 1.2rem;
}

/* Big Round Button */
.vnnic-circle-btn {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, rgba(5, 15, 38, 0.9) 100%);
  border: 3px solid var(--primary-cyan);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.vnnic-circle-btn:hover:not(:disabled) {
  transform: scale(1.06);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.7);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(5, 15, 38, 1) 100%);
}

.vnnic-circle-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  animation: speedPulse 1s infinite;
}

/* Middle Info: Server & Client */
.vnnic-info-stack {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.vnnic-info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.vnnic-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #ffffff;
  flex-shrink: 0;
}

.vnnic-info-text h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.vnnic-info-text p {
  margin: 2px 0 4px 0;
  font-size: 0.82rem;
  color: #94a3b8;
  word-break: break-all;
}

.vnnic-change-server-link {
  color: #f59e0b;
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
  transition: color 0.2s;
}

.vnnic-change-server-link:hover {
  color: #fbbf24;
}

/* Right Rating Box */
.vnnic-rating-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.2rem;
  text-align: center;
}

.vnnic-rating-title {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 8px;
  font-weight: 600;
}

.vnnic-stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 1.3rem;
  color: #64748b;
  cursor: pointer;
  margin-bottom: 12px;
}

.vnnic-stars .fa-star.active {
  color: #f59e0b;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

.vnnic-submit-rating-btn {
  background: #1877f2;
  color: #ffffff;
  border: none;
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vnnic-submit-rating-btn:hover {
  background: #166fe5;
  box-shadow: 0 0 15px rgba(24, 119, 242, 0.5);
}

/* Application Assessment Cards */
.speed-app-eval-section {
  margin-top: 2rem;
}

.speed-app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.speed-app-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s ease;
}

.speed-app-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
}

.speed-app-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.speed-app-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.speed-app-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f1f5f9;
}

.speed-app-status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  align-self: flex-start;
}

.speed-app-status-badge.excellent {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.speed-app-status-badge.good {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.speed-app-status-badge.fair {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.speed-app-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* Responsive Rules for Speedtest */
@media (max-width: 992px) {
  .ip-intel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .vnnic-bottom-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .vnnic-info-row {
    justify-content: center;
    text-align: left;
  }
  .vnnic-metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .speed-app-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ip-intel-grid {
    grid-template-columns: 1fr;
  }
  .vnnic-metrics-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }
  .vnnic-metric-value {
    font-size: 2rem;
  }
  .speed-app-grid {
    grid-template-columns: 1fr;
  }
  .speed-digital-number {
    font-size: 3.2rem;
  }
  .vnnic-speed-container {
    padding: 1.5rem 1rem;
  }
}

/* Server Picker Modal */
.server-picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 24, 0.85);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.server-picker-box {
  background: #0d1527;
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.2);
  padding: 1.5rem;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.server-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.server-picker-header h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.server-picker-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.server-picker-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.server-item-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
}

.server-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.server-item-card:hover {
  border-color: var(--primary-cyan);
  background: rgba(56, 189, 248, 0.08);
  transform: translateX(4px);
}

.server-item-card.active {
  border-color: var(--primary-cyan);
  background: rgba(56, 189, 248, 0.12);
}

.server-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
}

.server-item-sub {
  font-size: 0.76rem;
  color: #94a3b8;
  margin-top: 2px;
}

.server-item-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* ==================== 1. SMART IMAGE COMPRESSOR STYLES ==================== */
.compressor-container {
  background: linear-gradient(180deg, rgba(12, 30, 24, 0.95) 0%, rgba(5, 15, 12, 0.98) 100%);
  border: 1.5px solid rgba(34, 197, 94, 0.4);
  border-radius: 20px;
  padding: 2.2rem 2rem;
  box-shadow: 0 0 35px rgba(34, 197, 94, 0.15), inset 0 0 40px rgba(34, 197, 94, 0.05);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.compressor-dropzone {
  border: 2px dashed rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.04);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.compressor-dropzone:hover, .compressor-dropzone.dragover {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.25);
  transform: translateY(-2px);
}

.compressor-dropzone-icon {
  font-size: 3rem;
  color: #22c55e;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.5));
}

.compressor-dropzone-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.compressor-dropzone-sub {
  font-size: 0.85rem;
  color: #94a3b8;
}

.compressor-presets {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1.5rem 0;
}

.compressor-preset-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.compressor-preset-btn:hover {
  border-color: #22c55e;
  color: #fff;
  background: rgba(34, 197, 94, 0.1);
}

.compressor-preset-btn.active {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  color: #4ade80;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.35);
}

.compressor-settings-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.compressor-setting-item label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.compressor-slider {
  width: 100%;
  accent-color: #22c55e;
  height: 6px;
  cursor: pointer;
}

.compressor-select {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  outline: none;
}

.compressor-select:focus {
  border-color: #22c55e;
}

.compressor-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.compressor-compare-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compressor-img-wrapper {
  width: 100%;
  height: 220px;
  border-radius: 10px;
  background: #020617;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.compressor-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.compressor-badge-save {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.compressor-btn-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.4);
}

.compressor-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(34, 197, 94, 0.6);
}

.compressor-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==================== 2. CYBERPUNK QR STUDIO STYLES ==================== */
.qrstudio-container {
  background: linear-gradient(180deg, rgba(28, 20, 8, 0.95) 0%, rgba(15, 10, 3, 0.98) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: 20px;
  padding: 2.2rem 2rem;
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.15), inset 0 0 40px rgba(245, 158, 11, 0.05);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.qrstudio-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.8rem;
}

.qrstudio-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qrstudio-tab-btn:hover {
  border-color: #f59e0b;
  color: #fff;
  background: rgba(245, 158, 11, 0.08);
}

.qrstudio-tab-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(239, 68, 68, 0.15));
  border-color: #f59e0b;
  color: #fbbf24;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.qrstudio-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.qrstudio-form-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
}

.qrstudio-field {
  margin-bottom: 1.1rem;
}

.qrstudio-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.qrstudio-input, .qrstudio-textarea, .qrstudio-select {
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.qrstudio-input:focus, .qrstudio-textarea:focus, .qrstudio-select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.qrstudio-preview-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.qr-canvas-holder {
  background: #ffffff;
  padding: 16px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.25);
  margin-bottom: 1.5rem;
  max-width: 100%;
  min-width: 332px;
  min-height: 332px;
}

.qr-canvas-holder canvas, .qr-canvas-holder svg {
  max-width: 100%;
  height: auto !important;
  border-radius: 8px;
}

.qrstudio-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.qrstudio-btn-dl {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #050a15;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.qrstudio-btn-dl:hover {
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
}

.qrstudio-btn-svg {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.qrstudio-btn-svg:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .compressor-compare-grid {
    grid-template-columns: 1fr;
  }
  .qrstudio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .qr-canvas-holder {
    min-width: 260px;
    min-height: 260px;
    padding: 10px;
  }
}

/* ==========================================================================
   EMBEDDED & IOT ENGINEERING STUDIO (FIRMWARE.HTML)
   Hex / Binary / ASCII / Base64 Converter & ROM Checksum CRC32/MD5 Engine
   ========================================================================== */

.embedded-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.embedded-tab-btn {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: #94a3b8;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.embedded-tab-btn:hover {
  color: #fff;
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.25);
}

.embedded-tab-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22) 0%, rgba(168, 85, 247, 0.22) 100%);
  border-color: var(--primary-cyan);
  color: #fff;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.35);
}

.embedded-container {
  max-width: 1280px;
  margin: 0 auto;
}

/* Top toolbar & presets */
.radix-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.radix-presets {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.radix-preset-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.radix-preset-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--primary-cyan);
  color: #fff;
}

.radix-action-btn {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--primary-cyan);
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.radix-action-btn:hover {
  background: var(--primary-cyan);
  color: #000;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

/* Multi-radix cards grid */
.radix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
  margin-bottom: 2rem;
}

.radix-card {
  background: rgba(10, 15, 29, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 16px;
  padding: 16px 20px;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.radix-card:focus-within {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.25);
}

.radix-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.radix-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.radix-card-meta {
  font-size: 0.76rem;
  color: #94a3b8;
  font-family: 'JetBrains Mono', Consolas, monospace;
}

.radix-textarea {
  width: 100%;
  min-height: 125px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #38bdf8;
  padding: 12px 14px;
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.radix-textarea:focus {
  border-color: var(--primary-cyan);
  background: rgba(0, 0, 0, 0.5);
}

.radix-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.radix-copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.radix-copy-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--primary-cyan);
  color: #fff;
}

.radix-format-select {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  outline: none;
  cursor: pointer;
}

/* Checksum Dropzone */
.checksum-dropzone {
  background: rgba(10, 15, 29, 0.6);
  border: 2px dashed rgba(245, 158, 11, 0.4);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.checksum-dropzone:hover, .checksum-dropzone.dragover {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.25);
  transform: translateY(-2px);
}

.checksum-dropzone-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #f59e0b;
}

.checksum-info-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 1.5rem;
}

/* Checksum results cards */
.checksum-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 2rem;
}

.checksum-card {
  background: rgba(10, 15, 29, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  backdrop-filter: blur(12px);
  position: relative;
  transition: all 0.2s ease;
}

.checksum-card:hover {
  transform: translateY(-2px);
}

.checksum-card-label {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checksum-card-val {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  word-break: break-all;
  line-height: 1.4;
  padding: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  margin-bottom: 10px;
  user-select: all;
}

/* Checksum Matcher */
.checksum-matcher {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
}

.checksum-matcher-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  padding: 10px 14px;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.9rem;
  outline: none;
  box-sizing: border-box;
}

.checksum-matcher-input:focus {
  border-color: var(--primary-cyan);
}

.checksum-match-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-top: 12px;
}

/* Firmware Repo Cards */
.fw-repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.fw-card {
  background: rgba(10, 15, 29, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.fw-card:hover {
  border-color: var(--primary-cyan);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.2);
  transform: translateY(-4px);
}

.fw-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.fw-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.fw-card-desc {
  font-size: 0.86rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 16px;
}

.fw-code-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.8rem;
  color: #38bdf8;
  position: relative;
  margin-bottom: 16px;
  word-break: break-all;
}

.fw-btn-dl {
  background: linear-gradient(135deg, var(--primary-cyan), #0072ff);
  color: #000;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.fw-btn-dl:hover {
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
}


/* ==========================================================================
   Bento Grid Section (Preline & HeroUI Inspired)
   ========================================================================== */
.bento-section {
  padding: 5rem 0;
  position: relative;
}

.bento-section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.bento-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 9999px;
  color: #60a5fa;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.bento-section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 0.85rem;
  line-height: 1.25;
}

.bento-section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(37, 99, 235, 0.12);
}

.bento-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.bento-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(37, 99, 235, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.25s ease;
}

.bento-card:hover .bento-icon-box {
  transform: scale(1.05);
  background: rgba(37, 99, 235, 0.22);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.4);
}

.bento-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.bento-tag-blue {
  background: rgba(37, 99, 235, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.bento-tag-green {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.bento-tag-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.bento-tag-purple {
  background: rgba(139, 92, 246, 0.12);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.bento-tag-red {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.bento-tag-indigo {
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.bento-tag-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.bento-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
  letter-spacing: -0.015em;
}

.bento-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.bento-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.bento-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #38bdf8;
  transition: all 0.2s ease;
  text-decoration: none;
}

.bento-link i {
  transition: transform 0.2s ease;
  font-size: 0.82rem;
}

.bento-card:hover .bento-link {
  color: #60a5fa;
}

.bento-card:hover .bento-link i {
  transform: translateX(4px);
}

.bento-meta-badge {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: #64748b;
}

/* Bento Column Spans */
.col-span-12 { grid-column: span 12; }
.col-span-8 { grid-column: span 8; }
.col-span-7 { grid-column: span 7; }
.col-span-6 { grid-column: span 6; }
.col-span-5 { grid-column: span 5; }
.col-span-4 { grid-column: span 4; }

/* Interactive Bento Preview Elements */
.bento-telemetry-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 1.2rem;
  padding: 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.bento-telemetry-item {
  text-align: center;
}

.bento-telemetry-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.bento-telemetry-lbl {
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Bento Flagship & Compact Cards */
.bento-flagship-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.55) 100%);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.bento-flagship-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(56, 189, 248, 0.12);
}

.bento-card-compact {
  padding: 1.35rem 1.5rem;
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.bento-card-compact:hover {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 15px 30px -8px rgba(0, 0, 0, 0.5), 0 0 18px rgba(56, 189, 248, 0.08);
}

.bento-card-compact .bento-card-header {
  margin-bottom: 0.9rem;
}

.bento-card-compact .bento-icon-box {
  width: 42px;
  height: 42px;
  font-size: 1.15rem;
  border-radius: 10px;
}

.bento-card-compact .bento-card-title {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.bento-card-compact .bento-card-desc {
  font-size: 0.86rem;
  line-height: 1.55;
  margin-bottom: 0.9rem;
}

.bento-card-compact .bento-card-footer {
  padding-top: 0.85rem;
}

/* Bento Tier 2 Divider */
.bento-tier-divider {
  grid-column: span 12;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 1.25rem 0 0.25rem 0;
}

.bento-tier-divider::before,
.bento-tier-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.bento-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono, monospace);
  font-size: 0.74rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.75px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.bento-tier-badge i {
  color: #38bdf8;
}

/* Mini Previews for Flagship Cards */
.bento-cli-preview {
  margin: 14px 0 8px 0;
  background: rgba(8, 12, 22, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--font-mono, monospace);
}

.bento-cli-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bento-cli-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.bento-cli-dot.red { background: #ef4444; }
.bento-cli-dot.yellow { background: #eab308; }
.bento-cli-dot.green { background: #22c55e; }

.bento-cli-title {
  margin-left: 6px;
  font-size: 0.72rem;
  color: #94a3b8;
}

.bento-cli-body {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.74rem;
  color: #cbd5e1;
  line-height: 1.4;
  overflow-x: auto;
}

.bento-cli-body code {
  font-family: inherit;
  white-space: nowrap;
}

.bento-cli-body .cli-p {
  color: #38bdf8;
  font-weight: 600;
  margin-right: 4px;
}

/* Fortinet FortiOS Matrix Stepper */
.bento-matrix-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 14px 0 8px 0;
  padding: 9px 12px;
  background: rgba(8, 12, 22, 0.7);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.matrix-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  flex-shrink: 0;
}

.matrix-v {
  font-family: var(--font-mono, monospace);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
}

.matrix-step.active .matrix-v {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.matrix-step.next .matrix-v {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.matrix-step.target .matrix-v {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.matrix-lbl {
  font-size: 0.62rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.matrix-arrow {
  color: #475569;
  font-size: 0.72rem;
  flex-shrink: 0;
}


/* NamK9 Drop Preview */
.bento-drop-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 14px 0 8px 0;
  padding: 8px 12px;
  background: rgba(8, 12, 22, 0.7);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 10px;
}

.drop-peer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #cbd5e1;
}

.drop-peer i {
  color: #34d399;
}

.drop-line {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  position: relative;
  padding: 0 4px;
}

.drop-line-bar {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #10b981, #38bdf8);
  border-radius: 2px;
}

.drop-speed {
  font-family: var(--font-mono, monospace);
  font-size: 0.66rem;
  color: #34d399;
  font-weight: 600;
}

/* CamScanner Preview */
.bento-scanner-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 8px 0;
}

.scanner-pill {
  font-size: 0.72rem;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.scanner-pill i {
  color: #818cf8;
}

/* Wi-Fi Heatmap Preview */
.bento-heatmap-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0 8px 0;
  padding: 8px;
  background: rgba(8, 12, 22, 0.7);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 10px;
}

.rf-metric {
  text-align: center;
}

.rf-val {
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fbbf24;
  display: block;
}

.rf-lbl {
  font-size: 0.64rem;
  color: #94a3b8;
  display: block;
}

/* Telemetry Strip Banner */
.telemetry-strip {
  margin: 3rem 0 1rem 0;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 1.1rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
  backdrop-filter: blur(12px);
}

.telemetry-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.telemetry-item i {
  font-size: 1.2rem;
  color: #38bdf8;
}

.telemetry-item-text {
  display: flex;
  flex-direction: column;
}

.telemetry-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.telemetry-item-sub {
  font-size: 0.76rem;
  color: #94a3b8;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-badge-tag {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .academic-item {
    text-align: left;
  }
  .hero-visual {
    margin-top: 2rem;
  }
  .col-span-8, .col-span-7, .col-span-6, .col-span-5, .col-span-4 {
    grid-column: span 12;
  }
}

.spotlight-overlay.active {
  display: flex !important;
}

.nav-search-btn {
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 1020;
}


/* ==========================================================================
   UNIFIED HEADER & SECTION TYPOGRAPHY STANDARD (NAMK9 DESIGN SYSTEM)
   ========================================================================== */
.hero-title,
.section-title,
.bento-section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  color: #ffffff !important;
  margin-bottom: 0.75rem !important;
  letter-spacing: -0.02em !important;
  text-align: center;
}

.hero-title {
  text-align: left;
}

.section-tag {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  padding: 5px 14px !important;
  border-radius: 9999px !important;
  background: rgba(56, 189, 248, 0.1) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  color: #38bdf8 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 0.75rem !important;
}

.section-desc {
  font-size: 0.96rem !important;
  color: var(--text-muted) !important;
  line-height: 1.65 !important;
  font-style: normal !important;
  max-width: 760px !important;
  margin: 0.6rem auto 0 auto !important;
  text-align: center !important;
}

/* SUB-TITLES FOR TOOL PANELS INSIDE TABS */
.tool-sub-header {
  margin-bottom: 1.8rem;
  text-align: center;
}

.tool-sub-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.5rem;
}

.tool-sub-title {
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.3 !important;
  margin: 0.4rem 0 0.5rem 0 !important;
  letter-spacing: -0.015em !important;
}

.tool-sub-desc {
  font-size: 0.92rem !important;
  color: #94a3b8 !important;
  line-height: 1.6 !important;
  max-width: 700px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

/* ==========================================================================
   Quick Tool Hub Navigation Bar & Pills
   ========================================================================== */
.quick-tool-hub-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 4px 14px 4px;
  margin: 0 auto 1.8rem auto;
  max-width: 1200px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.quick-tool-hub-bar::-webkit-scrollbar {
  height: 4px;
}
.quick-tool-hub-bar::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.3);
  border-radius: 4px;
}
.quick-hub-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  flex-shrink: 0;
}
.quick-hub-pill:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--primary-cyan, #00f0ff);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
}
.quick-hub-pill.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(0, 112, 243, 0.25));
  border-color: var(--primary-cyan, #00f0ff);
  color: var(--primary-cyan, #00f0ff);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
}
.quick-hub-pill.search-pill {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.35);
  color: #fff;
}
.quick-hub-pill.search-pill:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #00f0ff;
}

@media (max-width: 992px) {
  .tool-switcher-btn {
    padding: 10px 18px;
    font-size: 0.88rem;
    gap: 8px;
  }
}
@media (max-width: 640px) {
  .tool-switcher-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
    gap: 6px;
  }
  .tool-switcher-btn span {
    font-size: 0.82rem;
  }
}

/* ==========================================================================
   THEME TOGGLE COMPONENT & LIGHT THEME ENGINE
   NAMK9.IO.VN - Engineering Design System
   ========================================================================== */

/* 1. Theme Toggle UI Component */
.theme-toggle-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0 4px;
  z-index: 1025;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.22s ease;
  backdrop-filter: blur(8px);
}

.theme-toggle-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.45);
  color: #60a5fa;
  transform: translateY(-1px);
}

.theme-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 195px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.65), 0 0 20px rgba(56, 189, 248, 0.1);
  backdrop-filter: blur(16px);
  display: none;
  flex-direction: column;
  gap: 3px;
  animation: themeDropdownIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
}

.theme-dropdown-menu.show {
  display: flex;
}

.theme-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s ease;
  width: 100%;
  text-align: left;
}

.theme-menu-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-menu-item:hover {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}

.theme-menu-item.active {
  background: rgba(37, 99, 235, 0.22);
  color: #38bdf8;
  font-weight: 700;
}

.theme-menu-item .check-icon {
  display: none;
  font-size: 0.75rem;
  color: #38bdf8;
}

.theme-menu-item.active .check-icon {
  display: inline-block;
}

@keyframes themeDropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 2. Global Smooth Transitions */
html, body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar, .bento-card, .academic-card, .footer, .hero-academic-card, .stat-floating-card, .telemetry-strip {
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

/* 3. LIGHT MODE CSS VARIABLE OVERRIDES */
[data-theme="light"] {
  --bg-dark: #f8fafc;
  --bg-dark-elevated: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-subtle: rgba(15, 23, 42, 0.03);

  --border-subtle: rgba(15, 23, 42, 0.09);
  --border-subtle-hover: rgba(15, 23, 42, 0.18);
  --border-glow: rgba(37, 99, 235, 0.25);
  --border-glow-hover: rgba(37, 99, 235, 0.5);

  --primary-blue: #2563eb;
  --primary-blue-hover: #1d4ed8;
  --primary-cyan: #0284c7;
  --primary-indigo: #4f46e5;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --accent-gold: #ca8a04;
  --accent-neon: #0284c7;
  --accent-purple: #7c3aed;
  --accent-red: #dc2626;

  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --text-gold: #b45309;

  --box-shadow-glow: 0 8px 24px -4px rgba(37, 99, 235, 0.2);
  --box-shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --box-shadow-card-hover: 0 16px 36px -6px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(37, 99, 235, 0.3);
}

/* /* 4. LIGHT MODE COMPONENT SPECIFIC STYLING (SITE-WIDE COMPREHENSIVE) */
[data-theme="light"] body {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

[data-theme="light"] .background-wrapper {
  opacity: 0.03 !important;
  filter: grayscale(1) invert(0.9) !important;
}

[data-theme="light"] .background-overlay {
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.05) 0%, transparent 60%),
              linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
}

[data-theme="light"] #signal-canvas {
  opacity: 0.22 !important;
  filter: invert(0.9) hue-rotate(180deg) !important;
}

[data-theme="light"] .ambient-spotlight {
  background: radial-gradient(600px circle at var(--mouse-x, 50vw) var(--mouse-y, 50vh), rgba(37, 99, 235, 0.04), transparent 70%) !important;
}

/* Global Headings & Typography */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] .hero-title,
[data-theme="light"] .section-title,
[data-theme="light"] .page-title,
[data-theme="light"] .bento-section-title,
[data-theme="light"] .net-hero-title,
[data-theme="light"] .tool-sub-title,
[data-theme="light"] .category-title {
  color: #0f172a !important;
}

[data-theme="light"] p,
[data-theme="light"] .hero-desc,
[data-theme="light"] .section-desc,
[data-theme="light"] .page-desc,
[data-theme="light"] .net-hero-desc,
[data-theme="light"] .tool-sub-desc,
[data-theme="light"] .card-desc,
[data-theme="light"] .bento-card-desc {
  color: #475569 !important;
}

[data-theme="light"] .hero-badge-tag,
[data-theme="light"] .bento-section-badge,
[data-theme="light"] .section-badge,
[data-theme="light"] .net-hero-tag,
[data-theme="light"] .tool-sub-tag {
  background: rgba(37, 99, 235, 0.08) !important;
  border: 1px solid rgba(37, 99, 235, 0.25) !important;
  color: #2563eb !important;
}

/* Navbar */
[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.88) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .brand-text {
  color: #0f172a !important;
}

[data-theme="light"] .nav-link {
  color: #334155 !important;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: #2563eb !important;
}

[data-theme="light"] .nav-dropdown-menu {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.15) !important;
}

[data-theme="light"] .nav-dropdown-title {
  color: #0f172a !important;
}

[data-theme="light"] .nav-dropdown-desc {
  color: #64748b !important;
}

[data-theme="light"] .nav-dropdown-item:hover {
  background: rgba(37, 99, 235, 0.06) !important;
}

[data-theme="light"] .nav-search-btn {
  background: rgba(15, 23, 42, 0.05) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #64748b !important;
}

[data-theme="light"] .nav-search-btn:hover {
  background: rgba(15, 23, 42, 0.09) !important;
  color: #0f172a !important;
}

[data-theme="light"] .search-kbd {
  background: #e2e8f0 !important;
  color: #475569 !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] .theme-toggle-btn {
  background: rgba(15, 23, 42, 0.05) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #2563eb !important;
}

[data-theme="light"] .theme-toggle-btn:hover {
  background: rgba(37, 99, 235, 0.1) !important;
  border-color: rgba(37, 99, 235, 0.35) !important;
  color: #1d4ed8 !important;
}

[data-theme="light"] .theme-dropdown-menu {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.15) !important;
}

[data-theme="light"] .theme-menu-item {
  color: #334155 !important;
}

[data-theme="light"] .theme-menu-item:hover {
  background: rgba(37, 99, 235, 0.08) !important;
  color: #2563eb !important;
}

[data-theme="light"] .theme-menu-item.active {
  background: rgba(37, 99, 235, 0.12) !important;
  color: #2563eb !important;
}

/* Light Mode for Mega Dropdown Menu */
[data-theme="light"] .nav-dropdown-menu {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14), 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .mega-col-header {
  color: #0284c7 !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .nav-dropdown-item {
  color: #0f172a !important;
}

[data-theme="light"] .nav-dropdown-item:hover {
  background: #f1f5f9 !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
}

[data-theme="light"] .nav-dropdown-icon-box {
  background: #f1f5f9 !important;
  color: #0284c7 !important;
}

[data-theme="light"] .nav-dropdown-item:hover .nav-dropdown-icon-box {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.3) !important;
}

[data-theme="light"] .nav-dropdown-title {
  color: #0f172a !important;
}

[data-theme="light"] .nav-dropdown-desc {
  color: #64748b !important;
}

[data-theme="light"] .hero-title .name-highlight {
  background: linear-gradient(135deg, #0f172a 30%, #2563eb 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

[data-theme="light"] .hero-role-terminal {
  background: #f1f5f9 !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
  color: #2563eb !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .typing-text-content {
  color: #0f172a !important;
}

[data-theme="light"] .typing-cursor {
  background: #2563eb !important;
}

[data-theme="light"] .hero-desc {
  color: #475569 !important;
}

[data-theme="light"] .hero-desc strong {
  color: #0f172a !important;
}

[data-theme="light"] .hero-academic-chip {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.09) !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .hero-academic-chip:hover {
  background: #f8fafc !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
}

[data-theme="light"] .academic-chip-icon {
  background: #eff6ff !important;
  color: #2563eb !important;
  border-color: rgba(37, 99, 235, 0.2) !important;
}

[data-theme="light"] .academic-chip-label {
  color: #64748b !important;
}

[data-theme="light"] .academic-chip-val {
  color: #0f172a !important;
}

[data-theme="light"] .btn-secondary {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
  color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .btn-secondary:hover {
  background: #f8fafc !important;
  border-color: #2563eb !important;
  color: #2563eb !important;
}

[data-theme="light"] .quick-connect-label {
  color: #64748b !important;
}

[data-theme="light"] .hero-connect-btn {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #334155 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .hero-showcase-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12) !important;
}

[data-theme="light"] .showcase-window-bar {
  background: #f8fafc !important;
  border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .window-title {
  color: #64748b !important;
}

[data-theme="light"] .floating-tech-badge {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1) !important;
}

[data-theme="light"] .tech-badge-title {
  color: #0f172a !important;
}

[data-theme="light"] .tech-badge-sub {
  color: #64748b !important;
}

[data-theme="light"] .tech-badge-icon {
  background: #eff6ff !important;
  border-color: rgba(37, 99, 235, 0.2) !important;
  color: #2563eb !important;
}

[data-theme="light"] .showcase-tech-strip {
  background: #f8fafc !important;
  border-top-color: rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .tech-tag {
  background: #eff6ff !important;
  border-color: rgba(37, 99, 235, 0.2) !important;
  color: #2563eb !important;
}

[data-theme="light"] .tech-tag:hover {
  background: #2563eb !important;
  color: #ffffff !important;
}

[data-theme="light"] .hero-telemetry-strip {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .telemetry-val {
  background: linear-gradient(135deg, #0f172a 40%, #2563eb 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

[data-theme="light"] .telemetry-plus {
  color: #2563eb !important;
}

[data-theme="light"] .telemetry-desc strong {
  color: #0f172a !important;
}

[data-theme="light"] .telemetry-desc span {
  color: #64748b !important;
}

/* Global Tool Switchers & Navigation Tab Bars */
[data-theme="light"] .tool-switcher-container,
[data-theme="light"] .embedded-tabs-nav,
[data-theme="light"] .radix-toolbar,
[data-theme="light"] .category-nav,
[data-theme="light"] .filter-bar,
[data-theme="light"] .cloud-filter-bar {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .tool-switcher-btn,
[data-theme="light"] .embedded-tab-btn,
[data-theme="light"] .radix-preset-btn,
[data-theme="light"] .radix-action-btn,
[data-theme="light"] .cat-btn,
[data-theme="light"] .cloud-cat-btn,
[data-theme="light"] .filter-btn {
  background: #f1f5f9 !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  color: #334155 !important;
}

[data-theme="light"] .tool-switcher-btn:hover,
[data-theme="light"] .embedded-tab-btn:hover,
[data-theme="light"] .radix-preset-btn:hover,
[data-theme="light"] .radix-action-btn:hover,
[data-theme="light"] .cloud-cat-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
}

[data-theme="light"] .tool-switcher-btn.active,
[data-theme="light"] .embedded-tab-btn.active,
[data-theme="light"] .cloud-cat-btn.active {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
}

[data-theme="light"] .tool-switcher-btn.active span,
[data-theme="light"] .tool-switcher-btn.active i {
  color: #ffffff !important;
}

/* ==================== SOFTWARE HUB LIGHT THEME ==================== */
[data-theme="light"] .standalone-studios-hub {
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .hub-label {
  color: #0284c7 !important;
}

[data-theme="light"] .hub-pill-link {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  color: #334155 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .hub-pill-link:hover {
  background: #f0fdf4 !important;
  border-color: #22c55e !important;
  color: #0f172a !important;
}

[data-theme="light"] .software-category-nav {
  background: #f1f5f9 !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .software-cat-btn {
  color: #475569 !important;
}

[data-theme="light"] .software-cat-btn:hover {
  color: #0f172a !important;
  background: #e2e8f0 !important;
}

[data-theme="light"] .software-cat-btn.active {
  background: #ffffff !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
  color: #2563eb !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .software-cat-btn.active .cat-count {
  background: #2563eb !important;
  color: #ffffff !important;
}

/* ==================== WI-FI HEATMAP STUDIO LIGHT THEME ==================== */
[data-theme="light"] .hm-glass-panel {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .hm-title {
  color: #0284c7 !important;
}

[data-theme="light"] .hm-tool-btn {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

[data-theme="light"] .hm-tool-btn:hover {
  background: #e0f2fe !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
}

[data-theme="light"] .hm-tool-btn.active {
  background: #e0f2fe !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.25) !important;
}

[data-theme="light"] .wall-mat-item {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #1e293b !important;
}

[data-theme="light"] .wall-mat-item:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
}

[data-theme="light"] .wall-mat-item.active {
  background: #e0f2fe !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
}

[data-theme="light"] .wall-db-pill {
  background: #e2e8f0 !important;
  color: #0369a1 !important;
}

[data-theme="light"] .hm-stage-container {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .hm-stage-header {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .hm-viewport {
  background-color: #f8fafc !important;
  background-image: 
    linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px) !important;
}

[data-theme="light"] .signal-probe-hud {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
  color: #0f172a !important;
}

[data-theme="light"] .signal-probe-hud span,
[data-theme="light"] .signal-probe-hud div {
  color: #334155 !important;
}

[data-theme="light"] .ap-card-item {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

[data-theme="light"] .ap-card-item:hover {
  background: #f1f5f9 !important;
  border-color: #0284c7 !important;
}

[data-theme="light"] .ap-card-item.active {
  background: #e0f2fe !important;
  border-color: #0284c7 !important;
}

[data-theme="light"] .ap-card-header span {
  color: #0f172a !important;
}

/* Global Cards & Container Panels across all pages */
[data-theme="light"] .card,
[data-theme="light"] .glass-card,
[data-theme="light"] .tech-tool-card,
[data-theme="light"] .radix-card,
[data-theme="light"] .speedtest-panel-wrapper,
[data-theme="light"] .speedtest-main-card,
[data-theme="light"] .speed-metric-box,
[data-theme="light"] .rom-card,
[data-theme="light"] .ftg-matrix-card,
[data-theme="light"] .cctv-card,
[data-theme="light"] .vpn-card,
[data-theme="light"] .unattend-card,
[data-theme="light"] .fixlan-card,
[data-theme="light"] .video-card,
[data-theme="light"] .rmbg-card,
[data-theme="light"] .qr-card,
[data-theme="light"] .calc-card,
[data-theme="light"] .contact-card,
[data-theme="light"] .contact-info-card,
[data-theme="light"] .cloud-card,
[data-theme="light"] .cloud-device-card,
[data-theme="light"] .drop-card,
[data-theme="light"] .scanner-card,
[data-theme="light"] .editor-card,
[data-theme="light"] .heatmap-card,
[data-theme="light"] .bento-card,
[data-theme="light"] .telemetry-strip,
[data-theme="light"] .radar-wrapper-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05) !important;
  color: #0f172a !important;
}

[data-theme="light"] .card:hover,
[data-theme="light"] .tech-tool-card:hover,
[data-theme="light"] .bento-card:hover,
[data-theme="light"] .rom-card:hover,
[data-theme="light"] .cloud-card:hover {
  border-color: rgba(37, 99, 235, 0.35) !important;
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.1), 0 0 20px rgba(37, 99, 235, 0.08) !important;
}

[data-theme="light"] .bento-flagship-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

[data-theme="light"] .card-title,
[data-theme="light"] .bento-card-title,
[data-theme="light"] .radix-card-title,
[data-theme="light"] .rom-title,
[data-theme="light"] .cloud-card-title,
[data-theme="light"] .telemetry-item-title {
  color: #0f172a !important;
}

[data-theme="light"] .bento-matrix-preview,
[data-theme="light"] .bento-drop-preview,
[data-theme="light"] .bento-heatmap-preview,
[data-theme="light"] .scanner-pill {
  background: #f1f5f9 !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .drop-peer {
  color: #1e293b !important;
}

[data-theme="light"] .rf-lbl,
[data-theme="light"] .matrix-lbl,
[data-theme="light"] .radix-card-meta,
[data-theme="light"] .telemetry-item-sub {
  color: #64748b !important;
}

[data-theme="light"] .bento-tier-divider::before,
[data-theme="light"] .bento-tier-divider::after {
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.15), transparent) !important;
}

[data-theme="light"] .bento-tier-badge {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #475569 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}

/* Form Controls & Inputs Across All Pages */
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="number"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="password"],
[data-theme="light"] input[type="search"],
[data-theme="light"] select,
[data-theme="light"] textarea,
[data-theme="light"] .tech-input,
[data-theme="light"] .tech-select,
[data-theme="light"] .radix-textarea,
[data-theme="light"] .radix-format-select,
[data-theme="light"] .contact-input,
[data-theme="light"] .contact-textarea,
[data-theme="light"] .form-input,
[data-theme="light"] .form-control {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.18) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] .tech-input:focus,
[data-theme="light"] .tech-select:focus,
[data-theme="light"] .radix-textarea:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
  background: #ffffff !important;
}

[data-theme="light"] ::placeholder {
  color: #94a3b8 !important;
}

[data-theme="light"] .tech-label,
[data-theme="light"] .form-label,
[data-theme="light"] label {
  color: #334155 !important;
}

/* Code Blocks & Terminals */
[data-theme="light"] .tech-code-box,
[data-theme="light"] .code-output,
[data-theme="light"] .xml-preview,
[data-theme="light"] pre,
[data-theme="light"] .bento-cli-preview {
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  color: #0f172a !important;
}

[data-theme="light"] .bento-cli-bar {
  background: #edf2f7 !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .bento-cli-title {
  color: #475569 !important;
}

[data-theme="light"] .bento-cli-body {
  color: #1e293b !important;
}

[data-theme="light"] .bento-cli-body .cli-p {
  color: #0284c7 !important;
}

[data-theme="light"] .radix-copy-btn,
[data-theme="light"] .btn-copy {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
}

[data-theme="light"] .radix-copy-btn:hover,
[data-theme="light"] .btn-copy:hover {
  background: #eff6ff !important;
  color: #2563eb !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
}

/* Network Devices Studio Complete Light Theme */
[data-theme="light"] .net-top-modes-bar {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .net-top-mode-btn {
  background: #f8fafc !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .net-top-mode-btn:hover {
  background: #ffffff !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
}

[data-theme="light"] .net-top-mode-btn.active {
  background: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15) !important;
}

[data-theme="light"] .net-top-mode-title {
  color: #0f172a !important;
}

[data-theme="light"] .net-top-mode-sub {
  color: #64748b !important;
}

[data-theme="light"] .net-top-mode-badge {
  background: rgba(2, 132, 199, 0.1) !important;
  color: #0284c7 !important;
}

[data-theme="light"] .net-brands-bar {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .net-brand-pill {
  color: #334155 !important;
}

[data-theme="light"] .net-brand-pill:hover {
  background: #f1f5f9 !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

[data-theme="light"] .net-brand-pill.active {
  background: #eff6ff !important;
  border-color: #2563eb !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15) !important;
}

[data-theme="light"] .net-pill-name {
  color: #0f172a !important;
}

[data-theme="light"] .net-pill-meta {
  color: #64748b !important;
}

[data-theme="light"] .net-pill-icon {
  background: #f1f5f9 !important;
}

[data-theme="light"] .net-sub-bar {
  background: transparent !important;
}

[data-theme="light"] .net-search-box {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .net-search-input {
  background: transparent !important;
  color: #0f172a !important;
}

[data-theme="light"] .net-search-input::placeholder {
  color: #94a3b8 !important;
}

[data-theme="light"] .net-mode-pills {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .net-mode-pill {
  color: #475569 !important;
}

[data-theme="light"] .net-mode-pill:hover {
  color: #0f172a !important;
  background: #f1f5f9 !important;
}

[data-theme="light"] .net-mode-pill.active {
  background: #eff6ff !important;
  color: #0284c7 !important;
  border: 1px solid rgba(2, 132, 199, 0.3) !important;
}

[data-theme="light"] .net-sidebar {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .net-sidebar-title {
  color: #0f172a !important;
}

[data-theme="light"] .net-topic-btn {
  border-color: transparent !important;
}

[data-theme="light"] .net-topic-btn:hover {
  background: #f8fafc !important;
}

[data-theme="light"] .net-topic-btn.active {
  background: #eff6ff !important;
  border-color: rgba(2, 132, 199, 0.25) !important;
  border-left-color: #0284c7 !important;
}

[data-theme="light"] .net-topic-label {
  color: #334155 !important;
}

[data-theme="light"] .net-topic-btn.active .net-topic-label {
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] .net-topic-num {
  background: #f1f5f9 !important;
  color: #64748b !important;
}

[data-theme="light"] .net-topic-btn.active .net-topic-num {
  background: #0284c7 !important;
  color: #ffffff !important;
}

[data-theme="light"] .net-content-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06) !important;
  color: #0f172a !important;
}

[data-theme="light"] .net-topic-header {
  border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .net-topic-title {
  color: #0f172a !important;
}

[data-theme="light"] .net-breadcrumbs {
  color: #64748b !important;
}

[data-theme="light"] .net-action-btn {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
}

[data-theme="light"] .net-action-btn:hover {
  background: #eff6ff !important;
  color: #2563eb !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
}

[data-theme="light"] .net-action-btn.copy-all {
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  color: #059669 !important;
}

[data-theme="light"] .cli-topic-alert {
  background: #eff6ff !important;
  border-left-color: #0284c7 !important;
  color: #1e293b !important;
}

[data-theme="light"] .cli-table-wrapper {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .cli-data-table thead th {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1) !important;
}

[data-theme="light"] .cli-data-table tbody tr {
  border-bottom-color: rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .cli-data-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.04) !important;
}

[data-theme="light"] .cli-data-table td {
  color: #334155 !important;
}

[data-theme="light"] .cli-cmd-text {
  color: #059669 !important;
  font-weight: 600 !important;
}

[data-theme="light"] .cli-mode-cell {
  color: #64748b !important;
}

[data-theme="light"] .cli-desc-cell {
  color: #334155 !important;
}

[data-theme="light"] .cli-inline-code {
  background: #f1f5f9 !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  color: #0284c7 !important;
}

[data-theme="light"] .cli-row-copy {
  background: #f1f5f9 !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  color: #64748b !important;
}

[data-theme="light"] .cli-row-copy:hover {
  background: #eff6ff !important;
  color: #2563eb !important;
  border-color: #2563eb !important;
}

[data-theme="light"] .cli-terminal-box {
  background: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.2) !important;
}

[data-theme="light"] .vis-container,
[data-theme="light"] .netdevops-box,
[data-theme="light"] .netdevops-panel,
[data-theme="light"] .terminal-window {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  color: #0f172a !important;
}

/* Cloud Ecosystem Page Specifics */
[data-theme="light"] .eco-segmented-tabs {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .eco-tab-btn {
  background: #f1f5f9 !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #334155 !important;
}

[data-theme="light"] .eco-tab-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

[data-theme="light"] .eco-tab-btn.active {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
}

[data-theme="light"] .eco-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05) !important;
  color: #0f172a !important;
}

[data-theme="light"] .eco-card-title {
  color: #0f172a !important;
}

[data-theme="light"] .eco-card-desc {
  color: #475569 !important;
}

[data-theme="light"] .eco-domain-pill,
[data-theme="light"] .eco-spec-pill {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

/* Contact Page Specifics */
[data-theme="light"] .contact-card,
[data-theme="light"] .contact-info,
[data-theme="light"] .contact-form {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .contact-method-text label {
  color: #64748b !important;
}

[data-theme="light"] .contact-method-text span,
[data-theme="light"] .contact-method-text a {
  color: #0f172a !important;
}

[data-theme="light"] .form-group label {
  color: #0f172a !important;
  font-weight: 600 !important;
}

[data-theme="light"] .form-consent-box {
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #475569 !important;
}

[data-theme="light"] .form-consent-label {
  color: #475569 !important;
}

[data-theme="light"] .form-consent-label strong {
  color: #0f172a !important;
}


/* Modals & Popups */
[data-theme="light"] #donateModal .modal-box {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25) !important;
  color: #0f172a !important;
}

[data-theme="light"] #donateModal p {
  color: #475569 !important;
}

[data-theme="light"] #donateModal strong {
  color: #0f172a !important;
}

[data-theme="light"] #donateModal div[style*="rgba(37, 99, 235"] {
  background: #f8fafc !important;
  border-color: rgba(37, 99, 235, 0.2) !important;
}

[data-theme="light"] #donateModal div[style*="rgba(37, 99, 235"] strong {
  color: #2563eb !important;
}

[data-theme="light"] #floatingShareBtn {
  background: #ffffff !important;
  border-color: rgba(37, 99, 235, 0.35) !important;
  color: #2563eb !important;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.2) !important;
}

[data-theme="light"] .legal-modal-container {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25) !important;
}

[data-theme="light"] .legal-modal-header {
  border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .legal-modal-title {
  color: #0f172a !important;
}

[data-theme="light"] .legal-modal-body {
  color: #334155 !important;
}

[data-theme="light"] .legal-modal-footer {
  border-top-color: rgba(15, 23, 42, 0.08) !important;
  background: #f8fafc !important;
}

[data-theme="light"] .spotlight-modal {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.2) !important;
}

[data-theme="light"] .spotlight-header {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .spotlight-header i {
  color: #2563eb !important;
  filter: none !important;
}

[data-theme="light"] .spotlight-input {
  color: #0f172a !important;
}

[data-theme="light"] .spotlight-input::placeholder {
  color: #94a3b8 !important;
}

[data-theme="light"] .spotlight-close-btn {
  background: #f1f5f9 !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  color: #64748b !important;
}

[data-theme="light"] .spotlight-close-btn:hover {
  background: #fee2e2 !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}

[data-theme="light"] .spotlight-filter-bar {
  background: #f8fafc !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .spotlight-filter-pill {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  color: #334155 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .spotlight-filter-pill i {
  color: #64748b !important;
}

[data-theme="light"] .spotlight-filter-pill:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
}

[data-theme="light"] .spotlight-filter-pill.active {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
}

[data-theme="light"] .spotlight-filter-pill.active i {
  color: #ffffff !important;
}

[data-theme="light"] .spotlight-results {
  background: #ffffff !important;
}

[data-theme="light"] .spotlight-results::-webkit-scrollbar-track {
  background: #f8fafc !important;
}

[data-theme="light"] .spotlight-results::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
}

[data-theme="light"] .spotlight-item {
  background: transparent !important;
}

[data-theme="light"] .spotlight-item:hover,
[data-theme="light"] .spotlight-item.selected {
  background: #eff6ff !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
}

[data-theme="light"] .spotlight-item-icon {
  background: #f1f5f9 !important;
  color: #2563eb !important;
}

[data-theme="light"] .spotlight-item:hover .spotlight-item-icon,
[data-theme="light"] .spotlight-item.selected .spotlight-item-icon {
  background: #2563eb !important;
  color: #ffffff !important;
}

[data-theme="light"] .spotlight-item-title {
  color: #0f172a !important;
}

[data-theme="light"] .spotlight-item-desc {
  color: #64748b !important;
}

[data-theme="light"] .spotlight-item-cat {
  background: #f1f5f9 !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #2563eb !important;
}

[data-theme="light"] .spotlight-footer {
  background: #f8fafc !important;
  border-top-color: rgba(15, 23, 42, 0.08) !important;
  color: #64748b !important;
}

/* Light Mode Footer */
[data-theme="light"] .footer {
  background: #f1f5f9 !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #475569 !important;
}

[data-theme="light"] .footer-title {
  color: #0f172a !important;
}

[data-theme="light"] .footer-text {
  color: #64748b !important;
}

[data-theme="light"] .footer-link {
  color: #475569 !important;
}

[data-theme="light"] .footer-link:hover {
  color: #2563eb !important;
}

[data-theme="light"] .footer-bottom {
  border-top-color: rgba(15, 23, 42, 0.08) !important;
  color: #64748b !important;
}

/* ==========================================================================
   ADVANCED LIGHT THEME: SPECIALIZED APPLICATION STUDIOS & SUBPAGES
   ========================================================================== */

/* 1. Cloud Ecosystem Enhancements (cloud.html) */
[data-theme="light"] .eco-tag {
  background: #f1f5f9 !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #334155 !important;
}

[data-theme="light"] .eco-actions .eco-btn-secondary,
[data-theme="light"] .eco-actions button:disabled,
[data-theme="light"] .eco-actions a[style*="opacity: 0.5"] {
  background: #f1f5f9 !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  color: #64748b !important;
}

/* 2. NamK9 Drop - P2P AirDrop Studio (drop.html) */
[data-theme="light"] .drop-mode-bar {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .drop-mode-btn {
  background: #f1f5f9 !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #334155 !important;
}

[data-theme="light"] .drop-mode-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

[data-theme="light"] .drop-mode-btn.active {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
}

[data-theme="light"] .drop-glass-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05) !important;
  color: #0f172a !important;
}

[data-theme="light"] .drop-glass-card span[style*="color: #fff"],
[data-theme="light"] .drop-glass-card span[style*="color:#fff"] {
  color: #0f172a !important;
}

[data-theme="light"] .drop-glass-card span[style*="color: #cbd5e1"],
[data-theme="light"] .drop-glass-card span[style*="color:#cbd5e1"] {
  color: #1e293b !important;
}

[data-theme="light"] .drop-glass-card div[style*="rgba(0, 0, 0, 0.4)"],
[data-theme="light"] .drop-glass-card div[style*="rgba(0, 0, 0, 0.3)"],
[data-theme="light"] .drop-glass-card div[style*="rgba(0,0,0,0.4)"],
[data-theme="light"] .drop-glass-card div[style*="rgba(0,0,0,0.3)"] {
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  color: #334155 !important;
}

[data-theme="light"] #myDeviceNameDisplay {
  color: #0f172a !important;
}

[data-theme="light"] #autoLanGuideBox {
  background: #f0fdf4 !important;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
  color: #166534 !important;
}

[data-theme="light"] #autoLanGuideBox p {
  color: #15803d !important;
}

[data-theme="light"] #autoLanGuideBox div[style*="rgba(0,0,0,0.4)"] {
  background: #ffffff !important;
  border: 1px solid rgba(34, 197, 94, 0.25) !important;
  color: #0284c7 !important;
}

[data-theme="light"] .p2p-radar-zone {
  background: radial-gradient(circle at center, #f1f5f9 0%, #e2e8f0 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
}

[data-theme="light"] .radar-sweep {
  border-color: rgba(37, 99, 235, 0.2) !important;
}

[data-theme="light"] .peer-node-label {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
  text-shadow: none !important;
}

[data-theme="light"] .peer-node-status {
  color: #0284c7 !important;
}

[data-theme="light"] .radar-empty-hint {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: #334155 !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .main-file-dropzone {
  background: #f8fafc !important;
  border: 2px dashed rgba(37, 99, 235, 0.3) !important;
}

[data-theme="light"] .main-file-dropzone:hover {
  background: #eff6ff !important;
  border-color: #2563eb !important;
}

[data-theme="light"] .main-file-dropzone h3 {
  color: #0f172a !important;
}

[data-theme="light"] .main-file-dropzone p {
  color: #64748b !important;
}

[data-theme="light"] .p2p-progress-card {
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] #transferFileName {
  color: #0f172a !important;
}

/* 3. CamScanner & PDF Studio (pdf-studio.html) */
[data-theme="light"] .cam-glass-panel {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
  color: #0f172a !important;
}

[data-theme="light"] .cam-section-title {
  color: #0f172a !important;
}

[data-theme="light"] .cam-canvas-stage {
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: none !important;
}

[data-theme="light"] .cam-stage-toolbar {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .cam-canvas-viewport {
  background: #f1f5f9 !important;
}

[data-theme="light"] #emptyDropzone h3 {
  color: #0f172a !important;
}

[data-theme="light"] #emptyDropzone p {
  color: #64748b !important;
}

[data-theme="light"] .cam-btn-outline {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.15) !important;
  color: #334155 !important;
}

[data-theme="light"] .cam-btn-outline:hover {
  background: #f1f5f9 !important;
  color: #2563eb !important;
  border-color: #2563eb !important;
}

[data-theme="light"] .page-thumb-item {
  background: #f8fafc !important;
  border: 2px solid rgba(15, 23, 42, 0.1) !important;
}

[data-theme="light"] .page-thumb-item.active {
  border-color: #2563eb !important;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.25) !important;
}

[data-theme="light"] .filter-opt-btn {
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  color: #334155 !important;
}

[data-theme="light"] .filter-opt-btn:hover {
  background: #eff6ff !important;
  border-color: #2563eb !important;
  color: #2563eb !important;
}

[data-theme="light"] .filter-opt-btn.active {
  background: #eff6ff !important;
  border-color: #2563eb !important;
  color: #2563eb !important;
}

/* 4. Wi-Fi Heatmap Studio (wifi-heatmap.html) */
[data-theme="light"] .hm-glass-panel {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
  color: #0f172a !important;
}

[data-theme="light"] .hm-stage-container {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: none !important;
}

[data-theme="light"] .hm-stage-header {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .hm-viewport {
  background-color: #f8fafc !important;
  background-image: 
    linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px) !important;
}

[data-theme="light"] .hm-tool-btn {
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #334155 !important;
}

[data-theme="light"] .hm-tool-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

[data-theme="light"] .hm-tool-btn.active {
  background: #eff6ff !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
}

[data-theme="light"] .wall-mat-item {
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #334155 !important;
}

[data-theme="light"] .wall-mat-item:hover {
  background: #eff6ff !important;
  border-color: #0284c7 !important;
}

[data-theme="light"] .wall-mat-item.active {
  background: #eff6ff !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
}

[data-theme="light"] .ap-card-item {
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #334155 !important;
}

[data-theme="light"] .ap-card-header {
  color: #0f172a !important;
}

[data-theme="light"] .signal-probe-hud {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1) !important;
  color: #0f172a !important;
}

[data-theme="light"] .probe-rssi-val {
  color: #0f172a !important;
}

[data-theme="light"] .heatmap-body div[style*="rgba(15, 23, 42, 0.6)"] {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
}

[data-theme="light"] .heatmap-body div[style*="rgba(15, 23, 42, 0.6)"] h4 {
  color: #0f172a !important;
}

/* 5. OpenCut Video Studio (video-editor.html) */
[data-theme="light"] .studio-hud-bar {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .studio-hud-left strong {
  color: #0f172a !important;
}

[data-theme="light"] .studio-hud-left div {
  color: #64748b !important;
}

[data-theme="light"] .studio-btn {
  background: #f1f5f9 !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  color: #334155 !important;
}

[data-theme="light"] .studio-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
}

[data-theme="light"] .studio-btn-primary {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}

[data-theme="light"] .studio-frame-wrapper {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .studio-feature-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .studio-feature-card h3 {
  color: #0f172a !important;
}

[data-theme="light"] .studio-feature-card p {
  color: #475569 !important;
}

/* 6. Remote Desktop Studio (remote.html) */
[data-theme="light"] .remote-hud-bar {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .remote-title-text {
  color: #0f172a !important;
}

[data-theme="light"] .remote-hud-metrics {
  color: #64748b !important;
}

[data-theme="light"] .hud-metric-item strong {
  color: #0f172a !important;
}

[data-theme="light"] .remote-viewport-wrapper {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] #noVncScreen,
[data-theme="light"] #noVncScreen > div {
  background: #f8fafc !important;
}

[data-theme="light"] .remote-pre-icon {
  background: rgba(37, 99, 235, 0.08) !important;
  border-color: #2563eb !important;
  color: #2563eb !important;
  box-shadow: 0 0 25px rgba(37, 99, 235, 0.2) !important;
}

[data-theme="light"] .preconnect-title {
  color: #0f172a !important;
}

[data-theme="light"] .preconnect-desc {
  color: #475569 !important;
}

[data-theme="light"] .remote-meta-pill {
  background: #f1f5f9 !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  color: #475569 !important;
}

[data-theme="light"] .remote-btn-secondary,
[data-theme="light"] .remote-action-buttons button:not(.remote-btn-primary) {
  background: #f1f5f9 !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}

/* 7. AI Studio & Dify Multi-Agent Orchestration (ai-studio.html) */
[data-theme="light"] .ai-tab-btn {
  background: #f1f5f9 !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #334155 !important;
}

[data-theme="light"] .ai-tab-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

[data-theme="light"] .ai-tab-btn.active {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
}

[data-theme="light"] .workflow-studio-container {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .workflow-toolbar {
  background: #f8fafc !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .workflow-toolbar .toolbar-left span {
  color: #0f172a !important;
}

[data-theme="light"] .canvas-ctrl-btn {
  background: #f1f5f9 !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  color: #334155 !important;
}

[data-theme="light"] .canvas-ctrl-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

[data-theme="light"] .canvas-viewport,
[data-theme="light"] .workflow-canvas {
  background-color: #f8fafc !important;
  background-image: radial-gradient(rgba(15, 23, 42, 0.08) 1.5px, transparent 1.5px) !important;
}

[data-theme="light"] .flow-cable {
  stroke: rgba(15, 23, 42, 0.2) !important;
}

[data-theme="light"] .workflow-node {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05) !important;
  color: #0f172a !important;
}

[data-theme="light"] .workflow-node .node-title {
  color: #0f172a !important;
}

[data-theme="light"] .workflow-node .node-body {
  color: #475569 !important;
}

[data-theme="light"] .workflow-node .node-meta-tag {
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #334155 !important;
}

[data-theme="light"] .workflow-console {
  background: #f8fafc !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #334155 !important;
}

[data-theme="light"] .console-timestamp {
  color: #64748b !important;
}

[data-theme="light"] .console-msg {
  color: #334155 !important;
}

[data-theme="light"] .pg-sidebar {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .pg-sidebar h3 {
  color: #0f172a !important;
}

[data-theme="light"] .pg-main {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .pg-msg.bot {
  background: #f1f5f9 !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #0f172a !important;
}

[data-theme="light"] #pg-system-prompt,
[data-theme="light"] #pg-model-select {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.18) !important;
  color: #0f172a !important;
}

/* 8. Additional Software & Subpage Tools */
[data-theme="light"] .speedtest-main-card,
[data-theme="light"] .cctv-card,
[data-theme="light"] .vpn-card,
[data-theme="light"] .unattend-card,
[data-theme="light"] .fixlan-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05) !important;
}

/* ==========================================================================
   9. UNIVERSAL LIGHT THEME ENHANCEMENTS & DARK ELEMENT ELIMINATION
   ========================================================================== */

/* Neon Variable Adjustment for Light Mode - High Contrast on White */
[data-theme="light"] {
  --cyan-neon: #0284c7;
  --pink-neon: #db2777;
  --blue-neon: #2563eb;
  --purple-neon: #9333ea;
  --cyan-glow: rgba(2, 132, 199, 0.25);
  --pink-glow: rgba(219, 39, 119, 0.25);
  --net-bg: #f8fafc;
  --net-card: #ffffff;
  --net-card-border: rgba(15, 23, 42, 0.1);
}

/* Universal Inline Dark Containers Override (Slate / Obsidian) */
[data-theme="light"] div[style*="background: rgba(15, 23, 42"]:not(.spotlight-overlay):not(.modal-backdrop):not(.sig-modal-backdrop):not([id*="Modal"]:not([class*="card"]):not([class*="box"])),
[data-theme="light"] div[style*="background:rgba(15, 23, 42"]:not(.spotlight-overlay):not(.modal-backdrop):not(.sig-modal-backdrop),
[data-theme="light"] div[style*="background: rgba(15,23,42"]:not(.spotlight-overlay):not(.modal-backdrop):not(.sig-modal-backdrop),
[data-theme="light"] div[style*="background:rgba(15,23,42"]:not(.spotlight-overlay):not(.modal-backdrop):not(.sig-modal-backdrop),
[data-theme="light"] div[style*="background: #0f172a"]:not(.spotlight-overlay):not(.modal-backdrop):not(.sig-modal-backdrop),
[data-theme="light"] div[style*="background:#0f172a"]:not(.spotlight-overlay):not(.modal-backdrop):not(.sig-modal-backdrop),
[data-theme="light"] div[style*="background: #090d16"]:not(.spotlight-overlay):not(.modal-backdrop):not(.sig-modal-backdrop),
[data-theme="light"] div[style*="background:#090d16"]:not(.spotlight-overlay):not(.modal-backdrop):not(.sig-modal-backdrop),
[data-theme="light"] div[style*="background: #050a15"]:not(.spotlight-overlay):not(.modal-backdrop):not(.sig-modal-backdrop),
[data-theme="light"] div[style*="background:#050a15"]:not(.spotlight-overlay):not(.modal-backdrop):not(.sig-modal-backdrop) {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05) !important;
}

/* Universal Soft / Nested Dark Containers Override (rgba(0,0,0,0.x)) */
[data-theme="light"] div[style*="background: rgba(0, 0, 0"]:not(.spotlight-overlay):not(.modal-backdrop):not(.sig-modal-backdrop):not([id*="Modal"]:not([class*="card"]):not([class*="box"])):not([style*="aspect-ratio"]):not(.video-viewport),
[data-theme="light"] div[style*="background: rgba(0,0,0"]:not(.spotlight-overlay):not(.modal-backdrop):not(.sig-modal-backdrop):not([style*="aspect-ratio"]):not(.video-viewport),
[data-theme="light"] div[style*="background:rgba(0, 0, 0"]:not(.spotlight-overlay):not(.modal-backdrop):not(.sig-modal-backdrop):not([style*="aspect-ratio"]):not(.video-viewport),
[data-theme="light"] div[style*="background:rgba(0,0,0"]:not(.spotlight-overlay):not(.modal-backdrop):not(.sig-modal-backdrop):not([style*="aspect-ratio"]):not(.video-viewport) {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.09) !important;
}

/* Text Contrast Inside Overridden Cards */
[data-theme="light"] .tech-grid-3 > div h4,
[data-theme="light"] .tech-grid-3 > div h3,
[data-theme="light"] .ftg-explorer-card h3,
[data-theme="light"] .ftg-explorer-card h4,
[data-theme="light"] #myDeviceNameDisplay,
[data-theme="light"] #autoLanGuideBox strong,
[data-theme="light"] #promptFileName {
  color: #0f172a !important;
}

[data-theme="light"] .tech-grid-3 > div p,
[data-theme="light"] .ftg-explorer-card p,
[data-theme="light"] #autoLanGuideBox p {
  color: #475569 !important;
}

/* Inputs & Textareas Inside Subpages */
[data-theme="light"] #quickTextClip,
[data-theme="light"] textarea.tech-input,
[data-theme="light"] input.tech-input,
[data-theme="light"] #ftgSearchInput,
[data-theme="light"] #manualRoomInput {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.15) !important;
  color: #0f172a !important;
}

[data-theme="light"] #quickTextClip::placeholder,
[data-theme="light"] textarea.tech-input::placeholder,
[data-theme="light"] input.tech-input::placeholder,
[data-theme="light"] #ftgSearchInput::placeholder,
[data-theme="light"] #manualRoomInput::placeholder {
  color: #94a3b8 !important;
}

/* Modals: Card Bodies vs Semi-transparent Backdrops */
[data-theme="light"] .modal-backdrop,
[data-theme="light"] .sig-modal-backdrop,
[data-theme="light"] #ftgProtectModal,
[data-theme="light"] #quickQrModal {
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(8px) !important;
}

[data-theme="light"] .modal-card,
[data-theme="light"] .modal-box:not(.legal-modal-box),
[data-theme="light"] .sig-modal-card,
[data-theme="light"] .project-modal-content,
[data-theme="light"] #ftgProtectModal > div,
[data-theme="light"] #quickQrModal > div {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 25px 70px rgba(15, 23, 42, 0.25) !important;
  color: #0f172a !important;
}

[data-theme="light"] .modal-card h1,
[data-theme="light"] .modal-card h2,
[data-theme="light"] .modal-card h3,
[data-theme="light"] .modal-card h4,
[data-theme="light"] .modal-box:not(.legal-modal-box) h1,
[data-theme="light"] .modal-box:not(.legal-modal-box) h2,
[data-theme="light"] .modal-box:not(.legal-modal-box) h3,
[data-theme="light"] .modal-box:not(.legal-modal-box) h4,
[data-theme="light"] .sig-modal-card h1,
[data-theme="light"] .sig-modal-card h2,
[data-theme="light"] .sig-modal-card h3,
[data-theme="light"] .sig-modal-card h4,
[data-theme="light"] .project-modal-content h1,
[data-theme="light"] .project-modal-content h2,
[data-theme="light"] .project-modal-content h3,
[data-theme="light"] .project-modal-content h4,
[data-theme="light"] #ftgProtectModal h1,
[data-theme="light"] #ftgProtectModal h2,
[data-theme="light"] #ftgProtectModal h3,
[data-theme="light"] #ftgProtectModal h4 {
  color: #0f172a !important;
}

[data-theme="light"] .modal-card p,
[data-theme="light"] .modal-box:not(.legal-modal-box) p,
[data-theme="light"] .sig-modal-card p,
[data-theme="light"] .project-modal-content p,
[data-theme="light"] #ftgProtectModal p {
  color: #475569 !important;
}

[data-theme="light"] .modal-close-btn,
[data-theme="light"] .modal-close-icon {
  background: #f1f5f9 !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  color: #64748b !important;
}

[data-theme="light"] .modal-close-btn:hover,
[data-theme="light"] .modal-close-icon:hover {
  background: #fee2e2 !important;
  color: #ef4444 !important;
  border-color: #ef4444 !important;
}

/* Firmware Live Explorer Table & Badges */
[data-theme="light"] #ftgTable {
  color: #0f172a !important;
}

[data-theme="light"] #ftgTable thead tr {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] #ftgTable tbody tr {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] #ftgTable tbody tr:hover {
  background: #eff6ff !important;
}

[data-theme="light"] #ftgTable tbody tr td span[style*="color: #fff"] {
  color: #0f172a !important;
}

[data-theme="light"] #ftgTable tbody tr td[style*="color: #cbd5e1"] {
  color: #334155 !important;
}

[data-theme="light"] #ftgTable tbody tr td[style*="color: #94a3b8"] {
  color: #64748b !important;
}

/* Network CLI Studio (network-devices.html) */
[data-theme="light"] .net-hero-title {
  color: #0f172a !important;
}

[data-theme="light"] .net-hero-desc {
  color: #475569 !important;
}

[data-theme="light"] .net-brands-bar,
[data-theme="light"] .net-sidebar,
[data-theme="light"] .net-content-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .net-brand-pill:hover {
  background: #f1f5f9 !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

[data-theme="light"] .net-brand-pill.active {
  background: #ffffff !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .net-pill-icon {
  background: #f1f5f9 !important;
}

[data-theme="light"] .net-pill-name {
  color: #0f172a !important;
}

[data-theme="light"] .net-search-box,
[data-theme="light"] .net-mode-pills {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

[data-theme="light"] .net-search-input {
  color: #0f172a !important;
}

[data-theme="light"] .net-mode-pill {
  color: #64748b !important;
}

[data-theme="light"] .net-mode-pill:hover {
  color: #0f172a !important;
  background: #f1f5f9 !important;
}

[data-theme="light"] .net-mode-pill.active {
  background: #eff6ff !important;
  color: #2563eb !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
}

[data-theme="light"] .net-sidebar-title {
  color: #0f172a !important;
}

[data-theme="light"] .net-topic-btn:hover {
  background: #f8fafc !important;
}

[data-theme="light"] .net-topic-btn.active {
  background: #eff6ff !important;
  border-color: rgba(37, 99, 235, 0.2) !important;
  border-left-color: #2563eb !important;
}

[data-theme="light"] .net-topic-label {
  color: #334155 !important;
}

[data-theme="light"] .net-topic-btn.active .net-topic-label {
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] .net-topic-num {
  background: #f1f5f9 !important;
  color: #64748b !important;
}

[data-theme="light"] .net-topic-btn.active .net-topic-num {
  background: #2563eb !important;
  color: #ffffff !important;
}

/* Quick QR Modal & Link Box in drop.html */
[data-theme="light"] #quickQrModal [style*="background: rgba(0,0,0,0.4)"] {
  background: #f1f5f9 !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: #0284c7 !important;
}

[data-theme="light"] #quickQrModal [style*="background: rgba(0,0,0,0.4)"] button {
  color: #334155 !important;
}


