/* ==========================================================================
   SWAN COMPANY THEME - CORE HUD & CYBERNETIC DESIGN SYSTEM
   PT Dipa Swantara Global Teknologi (DSGT)
   ========================================================================== */

:root {
  --cyber-glow-cyan: rgba(0, 240, 255, 0.4);
  --cyber-glow-purple: rgba(157, 78, 221, 0.35);
  --cyber-glow-amber: rgba(255, 183, 3, 0.35);
  --text-cyan: #00f0ff;
  --bg-deep: #090e17;
  --bg-card: rgba(13, 21, 36, 0.75);
}

html,
body {
  background-color: #090e17;
  color: #e2e8f0;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

/* Ambient Glowing Background Canvas */
#cyberParticleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* Floating Ambient Glow Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  animation: floatOrb 12s ease-in-out infinite alternate;
}
.glow-orb-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.22) 0%, rgba(0, 240, 255, 0) 70%);
  top: -100px;
  left: -100px;
}
.glow-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.18) 0%, rgba(157, 78, 221, 0) 70%);
  top: 300px;
  right: 0;
  animation-delay: -6s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.1); }
  100% { transform: translate(-30px, -20px) scale(0.95); }
}

/* Cyber Laser Border Card */
.cyber-laser-box {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(13, 21, 36, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.25);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
}
.cyber-laser-box:hover {
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
  transform: translateY(-3px);
}
.cyber-laser-inner {
  position: relative;
  z-index: 2;
  background: transparent;
}

/* Continuous Running Logo Marquee */
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.marquee-track {
  display: inline-flex;
  gap: 3rem;
  animation: marqueeScroll 25s linear infinite;
}
.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hover-cyan:hover {
  color: #00f0ff !important;
}

/* Typography Utilities */
.font-display {
  font-family: 'Space Grotesk', sans-serif;
}
.font-monospace {
  font-family: 'JetBrains Mono', monospace;
}
.font-sans-serif {
  font-family: 'Inter', sans-serif;
}
.text-cyan {
  color: #00f0ff !important;
}
.text-slate {
  color: #cbd5e1 !important;
}

/* ==========================================================================
   COMPREHENSIVE LIGHT MODE ARCHITECTURE (SWANTARA DESIGN SYSTEM)
   ========================================================================== */
[data-bs-theme="light"] {
  color-scheme: light;
}

/* Dual Theme Logo Switcher */
.swan-logo-light {
  display: inline-block !important;
}
.swan-logo-dark {
  display: none !important;
}
[data-bs-theme="dark"] .swan-logo-dark {
  display: inline-block !important;
}
[data-bs-theme="dark"] .swan-logo-light {
  display: none !important;
}
[data-bs-theme="light"] .swan-logo-dark {
  display: none !important;
}
[data-bs-theme="light"] .swan-logo-light {
  display: inline-block !important;
}

/* Light Theme High-Tech Architecture Blueprint Background */
[data-bs-theme="light"] html,
[data-bs-theme="light"] body {
  background-color: #f8fafc !important;
  background-image:
    radial-gradient(at 10% 8%, rgba(2, 132, 199, 0.08) 0px, transparent 40%),
    radial-gradient(at 90% 12%, rgba(99, 102, 241, 0.06) 0px, transparent 40%),
    linear-gradient(to right, rgba(2, 132, 199, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(2, 132, 199, 0.04) 1px, transparent 1px) !important;
  background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px !important;
  background-attachment: fixed !important;
  color: #0f172a !important;
}

/* Ambient canvas & glow orbs */
[data-bs-theme="light"] #cyberParticleCanvas {
  opacity: 0.55 !important;
}
[data-bs-theme="light"] .glow-orb-1 {
  background: radial-gradient(circle, rgba(2, 132, 199, 0.12) 0%, rgba(2, 132, 199, 0) 70%) !important;
  filter: blur(80px);
}
[data-bs-theme="light"] .glow-orb-2 {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0) 70%) !important;
  filter: blur(80px);
}

/* Base Cards & Laser Boxes */
[data-bs-theme="light"] .cyber-laser-box {
  background: #ffffff !important;
  border-color: rgba(2, 132, 199, 0.25) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 0 20px rgba(2, 132, 199, 0.04) !important;
}
[data-bs-theme="light"] .cyber-laser-box:hover {
  border-color: rgba(2, 132, 199, 0.55) !important;
  box-shadow: 0 16px 36px rgba(2, 132, 199, 0.12) !important;
}

/* Top Telemetry HUD Bar (All Pages) */
[data-bs-theme="light"] .swantara-telemetry-bar {
  background: #f1f5f9 !important;
  border-bottom-color: #cbd5e1 !important;
  color: #475569 !important;
}
[data-bs-theme="light"] .swantara-telemetry-bar .hud-item {
  color: #475569 !important;
}
[data-bs-theme="light"] .swantara-telemetry-bar .hud-item .text-white {
  color: #0f172a !important;
}
[data-bs-theme="light"] .swantara-telemetry-bar .hud-sep {
  background: rgba(2, 132, 199, 0.25) !important;
}
[data-bs-theme="light"] .swantara-telemetry-bar .hud-badge-ownership {
  background: rgba(2, 132, 199, 0.08) !important;
  border-color: rgba(2, 132, 199, 0.3) !important;
  color: #0284c7 !important;
}

/* Top HUD Navbar (All Pages) */
[data-bs-theme="light"] .swantara-hud-nav {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom-color: #cbd5e1 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}
[data-bs-theme="light"] .hud-nav-link {
  color: #334155 !important;
}
[data-bs-theme="light"] .hud-nav-link:hover,
[data-bs-theme="light"] .hud-nav-link.active,
[data-bs-theme="light"] .hud-dropdown-static:hover > .hud-nav-link,
[data-bs-theme="light"] .hud-dropdown-rel:hover > .hud-nav-link {
  color: #0284c7 !important;
  background: rgba(2, 132, 199, 0.08) !important;
}
[data-bs-theme="light"] .hud-nav-link::before {
  background: #0284c7 !important;
  box-shadow: 0 0 8px #0284c7 !important;
}

/* Mega Menus & Dropdowns */
[data-bs-theme="light"] .hud-mega-dropdown {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12) !important;
}
[data-bs-theme="light"] .hud-mega-header,
[data-bs-theme="light"] .hud-mega-footer {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
[data-bs-theme="light"] .hud-mega-item {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
[data-bs-theme="light"] .hud-mega-item:hover {
  background: #f0f9ff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.1) !important;
}
[data-bs-theme="light"] .hud-mega-item .item-title {
  color: #0f172a !important;
}
[data-bs-theme="light"] .hud-mega-item:hover .item-title {
  color: #0284c7 !important;
}
[data-bs-theme="light"] .hud-mega-item .item-desc {
  color: #64748b !important;
}
[data-bs-theme="light"] .hud-col-title {
  color: #0284c7 !important;
}
[data-bs-theme="light"] .hud-dropdown-menu {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12) !important;
}
[data-bs-theme="light"] .hud-dropdown-item {
  color: #1e293b !important;
}
[data-bs-theme="light"] .hud-dropdown-item:hover {
  background: #f0f9ff !important;
  color: #0284c7 !important;
}
[data-bs-theme="light"] .hud-dropdown-title {
  color: #0f172a !important;
}
[data-bs-theme="light"] .hud-dropdown-desc {
  color: #64748b !important;
}
[data-bs-theme="light"] .hud-icon-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}
[data-bs-theme="light"] .hud-icon-btn:hover {
  background: #e2e8f0 !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
}

/* Language Switcher */
[data-bs-theme="light"] .swan-lang-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}
[data-bs-theme="light"] .swan-lang-btn:hover {
  background: #e2e8f0 !important;
  border-color: #0284c7 !important;
}
[data-bs-theme="light"] .swan-lang-dropdown {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12) !important;
}
[data-bs-theme="light"] .swan-lang-item {
  color: #1e293b !important;
}
[data-bs-theme="light"] .swan-lang-item:hover {
  background: #f0f9ff !important;
  color: #0284c7 !important;
}

/* Selective High-Precision Text Colors */
[data-bs-theme="light"] h1,
[data-bs-theme="light"] h2,
[data-bs-theme="light"] h3,
[data-bs-theme="light"] h4,
[data-bs-theme="light"] h5,
[data-bs-theme="light"] h6 {
  color: #0f172a !important;
}

[data-bs-theme="light"] .text-white:not(.btn *):not(.badge:not(.bg-light)):not(.swan-terminal-card *):not(.swan-code-terminal *):not(.bg-primary *):not(.bg-success *):not(.bg-danger *):not(.bg-warning *) {
  color: #0f172a !important;
}
[data-bs-theme="light"] .text-secondary {
  color: #475569 !important;
}
[data-bs-theme="light"] .text-muted {
  color: #64748b !important;
}
[data-bs-theme="light"] .text-cyan {
  color: #0284c7 !important;
}
[data-bs-theme="light"] .text-slate {
  color: #334155 !important;
}

/* Background utilities */
[data-bs-theme="light"] .bg-dark {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}
[data-bs-theme="light"] .bg-black {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}
[data-bs-theme="light"] .border-secondary {
  border-color: #e2e8f0 !important;
}
[data-bs-theme="light"] .border-cyan {
  border-color: #0284c7 !important;
}

/* Global Footer */
[data-bs-theme="light"] footer {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  border-top-color: #cbd5e1 !important;
}
[data-bs-theme="light"] footer a {
  color: #334155 !important;
}
[data-bs-theme="light"] footer a:hover {
  color: #0284c7 !important;
}
[data-bs-theme="light"] footer .text-white {
  color: #0f172a !important;
}
[data-bs-theme="light"] footer .text-muted,
[data-bs-theme="light"] footer .text-secondary {
  color: #64748b !important;
}
[data-bs-theme="light"] footer .border-secondary {
  border-color: #cbd5e1 !important;
}
[data-bs-theme="light"] footer .bg-dark {
  background-color: #e2e8f0 !important;
  color: #1e293b !important;
}

/* HUD Button Primary */
.btn-hero-primary,
.btn-hud-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #00f0ff !important;
  color: #000000 !important;
  font-weight: 800 !important;
  font-family: 'Orbitron', 'JetBrains Mono', monospace !important;
  font-size: 12px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: 0px !important;
  border: none !important;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  z-index: 1;
  text-decoration: none;
}
.btn-hero-primary:hover,
.btn-hud-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.75), 0 8px 24px rgba(0, 0, 0, 0.6);
  color: #000000 !important;
}

/* Secondary HUD Button */
.btn-hero-secondary,
.btn-hud-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 15, 26, 0.88) !important;
  color: #00f0ff !important;
  font-weight: 700 !important;
  font-family: 'Orbitron', 'JetBrains Mono', monospace !important;
  font-size: 12px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: 0px !important;
  border: 1px solid rgba(0, 240, 255, 0.5) !important;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  backdrop-filter: blur(12px);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.12), inset 0 0 14px rgba(0, 240, 255, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  z-index: 1;
  text-decoration: none;
}
.btn-hero-secondary:hover,
.btn-hud-secondary:hover {
  transform: translateY(-2px);
  border-color: #00f0ff !important;
  background: rgba(0, 240, 255, 0.16) !important;
  color: #ffffff !important;
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.5), inset 0 0 18px rgba(0, 240, 255, 0.2);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.9);
}

/* Outline Cyan HUD Button */
.btn-outline-cyan {
  border: 1px solid rgba(0, 240, 255, 0.45) !important;
  color: #00f0ff !important;
  background: rgba(0, 240, 255, 0.05) !important;
  font-family: 'Orbitron', 'JetBrains Mono', monospace !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.1em !important;
  border-radius: 0px !important;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: all 0.25s ease;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
  text-decoration: none;
}
.btn-outline-cyan:hover {
  background: rgba(0, 240, 255, 0.2) !important;
  border-color: #00f0ff !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.45);
  transform: translateY(-1px);
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.8);
}

/* HUD Button Micro-Elements */
.hud-btn-prefix {
  color: rgba(0, 0, 0, 0.6);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0;
}
.btn-hero-secondary .hud-btn-prefix {
  color: #00f0ff;
}

/* Telemetry Bar */
.swantara-telemetry-bar {
  background: #060a12;
  border-bottom: 1px solid rgba(0, 240, 255, 0.15) !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  height: 36px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1030;
}
.hud-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  white-space: nowrap;
}
.hud-item-active {
  color: #00f0ff;
}
.hud-sep {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: rgba(0, 240, 255, 0.22);
  margin: 0 12px;
  flex-shrink: 0;
}
.hud-badge-ownership {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 4px;
  color: #00f0ff;
}

/* HUD Mega Navbar */
.swantara-hud-nav {
  background: rgba(9, 14, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  transition: all 0.3s ease;
  z-index: 1020;
}
.hud-nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #cbd5e1 !important;
  padding: 0.5rem 0.85rem !important;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}
.hud-nav-link:hover,
.hud-nav-link.active {
  color: #00f0ff !important;
  background: rgba(0, 240, 255, 0.08);
}
.hud-chevron {
  font-size: 10px;
  margin-left: 4px;
  transition: transform 0.2s ease;
}
.nav-item.dropdown:hover .hud-chevron {
  transform: rotate(180deg);
}

/* Mega Menu Dropdown */
.hud-mega-dropdown {
  background: #080d16 !important;
  border: 1px solid rgba(0, 240, 255, 0.28) !important;
  border-top: none !important;
  border-radius: 0 0 12px 12px !important;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 240, 255, 0.08) !important;
  min-width: 100%;
}
@media (min-width: 992px) {
  .hud-dropdown-static {
    position: static !important;
  }
  .hud-mega-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin-top: 1px !important;
  }
}
.hud-mega-header {
  background: rgba(6, 10, 18, 0.9);
}
.hud-mega-footer {
  background: rgba(6, 10, 18, 0.9);
}
.hud-mega-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}
.hud-mega-item:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateX(3px);
}
.item-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.item-icon-cyan {
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
}
.item-icon-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}
.item-icon-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}
.item-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}
.item-desc {
  font-size: 10.5px;
  line-height: 1.2;
}
.item-arrow {
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
  transition: transform 0.2s ease, color 0.2s ease;
}
.hud-mega-item:hover .item-arrow {
  color: #00f0ff;
  transform: translateX(2px);
}

/* Pills & Badges */
.hud-pill-cyan {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.1);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.3);
}
.hud-pill-emerald {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.hud-pill-amber {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Relative dropdown menu */
.hud-dropdown-menu {
  background: #090e17 !important;
  border: 1px solid rgba(0, 240, 255, 0.3) !important;
  border-radius: 10px;
  min-width: 260px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}
.hud-dropdown-item {
  color: #e2e8f0 !important;
  transition: all 0.2s ease;
}
.hud-dropdown-item:hover {
  background: rgba(0, 240, 255, 0.1) !important;
  color: #00f0ff !important;
}
.hud-dropdown-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.hud-dropdown-title {
  font-size: 12px;
}
.hud-dropdown-desc {
  font-size: 10.5px;
}

/* Action CTA & Buttons */
.hud-cta-btn {
  background: #00f0ff !important;
  color: #000000 !important;
  font-family: 'Orbitron', 'JetBrains Mono', monospace !important;
  font-size: 11.5px !important;
  letter-spacing: 0.08em !important;
  border-radius: 4px !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
}
.hud-cta-btn:hover {
  background: #38f8ff !important;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
  transform: translateY(-1px);
}
.hud-icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  transition: all 0.2s ease;
}
.hud-icon-btn:hover {
  border-color: rgba(0, 240, 255, 0.5);
  background: rgba(0, 240, 255, 0.1);
}

/* Dots and pulses */
.swan-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.swan-dot-success {
  background-color: #10b981;
}
.swan-dot-primary {
  background-color: #00f0ff;
}
.swan-dot-pulse {
  box-shadow: 0 0 0 rgba(0, 240, 255, 0.5);
  animation: swanPulse 2s infinite;
}
@keyframes swanPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(0, 240, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

/* Cookie Banner */
.hud-cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 490px;
  width: 100%;
  z-index: 99999;
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.hud-cookie-banner.hud-cookie-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.hud-cookie-card {
  background: rgba(9, 14, 23, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.38);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
@media (max-width: 575.98px) {
  .hud-cookie-banner {
    bottom: 12px;
    right: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
  }
}

/* ==========================================================================
   SWAN MULTILINGUAL LANGUAGE SWITCHER & FLAGS
   ========================================================================== */
.swan-lang-switcher {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.swan-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
  height: 38px;
}

.swan-lang-btn:hover,
.swan-lang-switcher.open .swan-lang-btn {
  background: rgba(0, 240, 255, 0.15);
  border-color: rgba(0, 240, 255, 0.5);
  color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.swan-lang-flag,
.swan-lang-btn img,
.swan-lang-item img {
  width: 18px !important;
  height: 12px !important;
  max-width: 18px !important;
  max-height: 12px !important;
  border-radius: 2px !important;
  object-fit: cover !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 !important;
}

.swan-lang-current-code {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-family: 'Orbitron', 'JetBrains Mono', monospace;
}

.swan-lang-arrow {
  width: 8px;
  height: 5px;
  margin-left: 0.15rem;
  transition: transform 0.2s ease;
  fill: none;
  stroke: currentColor;
}

.swan-lang-switcher.open .swan-lang-arrow {
  transform: rotate(180deg);
}

.swan-lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 13rem;
  background: rgba(9, 14, 23, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 8px;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 240, 255, 0.2);
  padding: 0.4rem 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
}

.swan-lang-switcher.open .swan-lang-dropdown,
.swan-lang-switcher:hover .swan-lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.swan-lang-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.95rem;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.swan-lang-item:hover {
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.08);
  padding-left: 1.15rem;
}

.swan-lang-item.active {
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.14);
  font-weight: 700;
}

.swan-lang-item-code {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: 'Orbitron', 'JetBrains Mono', monospace;
}

.swan-lang-item-name {
  flex: 1;
}

.swan-lang-item-check {
  font-size: 0.8rem;
  color: #00f0ff;
  font-weight: bold;
}

/* ==========================================================================
   SINGLE POST DOSSIER STYLES (Share Bar, Nav Cards, TOC, Code Terminal)
   ========================================================================== */

/* Reading Progress Bar */
.swan-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #00f0ff 0%, #0077ff 100%);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
  width: 0%;
  z-index: 99999;
  transition: width 0.1s linear;
}

/* Table of Contents */
.swan-toc {
  background: rgba(6, 11, 19, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 10px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.25rem;
  margin-bottom: 2rem;
}
.swan-toc-header {
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
}
.swan-toc-link {
  color: #94a3b8;
  font-size: 13.5px;
  line-height: 1.5;
  transition: all 0.2s ease;
  padding: 3px 0;
}
.swan-toc-link:hover {
  color: #00f0ff;
  transform: translateX(3px);
}

/* Social Share Bar */
.swan-share-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(0, 240, 255, 0.15);
  backdrop-filter: blur(8px);
}
.swan-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  outline: none;
  padding: 0;
}
.swan-share-btn:hover {
  transform: translateY(-2px);
}
.swan-share-wa:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: #25d366;
  color: #25d366;
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.35);
}
.swan-share-x:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}
.swan-share-fb:hover {
  background: rgba(24, 119, 242, 0.15);
  border-color: #1877f2;
  color: #1877f2;
  box-shadow: 0 0 12px rgba(24, 119, 242, 0.35);
}
.swan-share-in:hover {
  background: rgba(10, 102, 194, 0.15);
  border-color: #0a66c2;
  color: #0a66c2;
  box-shadow: 0 0 12px rgba(10, 102, 194, 0.35);
}
.swan-share-tg:hover {
  background: rgba(0, 136, 204, 0.15);
  border-color: #0088cc;
  color: #0088cc;
  box-shadow: 0 0 12px rgba(0, 136, 204, 0.35);
}
.swan-share-copy:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: #00f0ff;
  color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}
.swan-share-copy.swan-copied {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.15);
}
.swan-copy-notice {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 6px;
  color: #10b981;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  animation: swanFadeIn 0.2s ease;
}
@keyframes swanFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Post Navigation (Previous / Next Dual Cards) */
.swan-post-navigation {
  margin: 2rem 0;
}
.swan-nav-card {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 10px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  min-height: 85px;
}
.swan-nav-card:hover {
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 18px rgba(0, 240, 255, 0.2);
}
.swan-nav-card .swan-nav-meta {
  letter-spacing: 0.05em;
  font-size: 11px;
}
.swan-nav-card .swan-nav-title {
  font-size: 13.5px;
  line-height: 1.45;
  color: #e2e8f0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}
.swan-nav-card:hover .swan-nav-title {
  color: #00f0ff;
}

/* Terminal Code Block Enhancer */
.swan-code-terminal {
  background: #060b13;
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 10px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
  margin: 1.75rem 0;
}
.swan-code-header {
  background: #09101c;
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
}
.swan-mac-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot-red {
  background-color: #ff5f56;
}
.dot-yellow {
  background-color: #ffbd2e;
}
.dot-green {
  background-color: #27c93f;
}
.swan-code-copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.swan-code-copy-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: #00f0ff;
  color: #00f0ff;
}
.swan-code-terminal pre {
  margin-bottom: 0 !important;
  background: #060b13 !important;
  border-radius: 0 0 10px 10px !important;
  padding: 1.15rem 1.35rem !important;
  overflow-x: auto;
}
.swan-code-terminal code {
  font-family: 'JetBrains Mono', Consolas, monospace !important;
  font-size: 13.5px !important;
  line-height: 1.65 !important;
  color: #e2e8f0 !important;
}

/* Article Prose Typography Enhancements */
.article-prose h2,
.article-prose h3 {
  scroll-margin-top: 90px;
  color: #ffffff;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
}
.article-prose h2 {
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.18);
  padding-bottom: 0.5rem;
}
.article-prose h3 {
  font-size: 1.25rem;
}
.article-prose p {
  margin-bottom: 1.25rem;
}
.article-prose blockquote {
  border-left: 3px solid #00f0ff;
  background: rgba(0, 240, 255, 0.04);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: #cbd5e1;
}
.article-prose table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  background: rgba(6, 11, 19, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
  font-size: 14px;
}
.article-prose th {
  background: rgba(0, 240, 255, 0.12);
  color: #00f0ff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}
.article-prose td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}
.article-prose tr:last-child td {
  border-bottom: none;
}
.article-prose tr:hover td {
  background: rgba(0, 240, 255, 0.03);
}

/* Light Mode for Article Prose & Content */
[data-bs-theme="light"] .article-prose {
  color: #1e293b !important;
}
[data-bs-theme="light"] .article-prose h1,
[data-bs-theme="light"] .article-prose h2,
[data-bs-theme="light"] .article-prose h3,
[data-bs-theme="light"] .article-prose h4 {
  color: #0f172a !important;
  border-bottom-color: #e2e8f0 !important;
}
[data-bs-theme="light"] .article-prose p,
[data-bs-theme="light"] .article-prose li {
  color: #334155 !important;
}
[data-bs-theme="light"] .article-prose strong {
  color: #0f172a !important;
}
[data-bs-theme="light"] .article-prose a {
  color: #0284c7 !important;
}
[data-bs-theme="light"] .article-prose blockquote {
  background: #f8fafc !important;
  border-left-color: #0284c7 !important;
  color: #334155 !important;
}
[data-bs-theme="light"] .article-prose table {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}
[data-bs-theme="light"] .article-prose th {
  background: #f1f5f9 !important;
  color: #0284c7 !important;
  border-bottom-color: #cbd5e1 !important;
}
[data-bs-theme="light"] .article-prose td {
  border-bottom-color: #f1f5f9 !important;
  color: #334155 !important;
}
[data-bs-theme="light"] .article-prose tr:hover td {
  background: #f8fafc !important;
}
[data-bs-theme="light"] .article-lead {
  color: #334155 !important;
}

/* Terminal Code Block in Light Mode: Sleek High-Contrast Cyber Dark Terminal */
[data-bs-theme="light"] .swan-code-terminal {
  background: #080e18 !important;
  border: 1px solid rgba(0, 180, 216, 0.35) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 0 20px rgba(0, 240, 255, 0.08) !important;
}

[data-bs-theme="light"] .swan-code-terminal .swan-code-header {
  background: #0d1524 !important;
  border-bottom: 1px solid rgba(0, 180, 216, 0.25) !important;
}

[data-bs-theme="light"] .swan-code-terminal .swan-code-lang {
  color: #00f0ff !important;
}

[data-bs-theme="light"] .swan-code-terminal .swan-code-copy-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #cbd5e1 !important;
}

[data-bs-theme="light"] .swan-code-terminal .swan-code-copy-btn:hover {
  background: rgba(0, 240, 255, 0.2) !important;
  border-color: #00f0ff !important;
  color: #00f0ff !important;
}

[data-bs-theme="light"] .swan-code-terminal pre {
  background: #080e18 !important;
  color: #f1f5f9 !important;
  border: none !important;
}

[data-bs-theme="light"] .swan-code-terminal code,
[data-bs-theme="light"] .swan-code-terminal pre code {
  background: transparent !important;
  color: #f1f5f9 !important;
  border: none !important;
  padding: 0 !important;
  text-shadow: none !important;
}

/* Inline code in Light Mode */
[data-bs-theme="light"] .article-prose code:not(pre code) {
  background: rgba(2, 132, 199, 0.08) !important;
  color: #0284c7 !important;
  border: 1px solid rgba(2, 132, 199, 0.2) !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  font-size: 0.88em !important;
}



/* Blog & Blueprint Common Elements */
.hud-blueprint-bar {
  background: #050a12;
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
}
.hud-comment-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 240, 255, 0.2);
}
.hud-comment-bubble {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hud-reply-bubble {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Light Mode Adaptation for Common Elements */
[data-bs-theme="light"] .hud-blueprint-bar {
  background: #f1f5f9 !important;
  border-bottom-color: #cbd5e1 !important;
}
[data-bs-theme="light"] .hud-comment-box {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}
[data-bs-theme="light"] .hud-comment-bubble {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}
[data-bs-theme="light"] .hud-comment-bubble p {
  color: #334155 !important;
}
[data-bs-theme="light"] .hud-reply-bubble {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
[data-bs-theme="light"] .hud-reply-bubble p {
  color: #475569 !important;
}
[data-bs-theme="light"] .hud-pill-cyan {
  background: rgba(2, 132, 199, 0.1) !important;
  color: #0284c7 !important;
  border-color: rgba(2, 132, 199, 0.3) !important;
}

/* Universal text-light contrast fix for light mode */
[data-bs-theme="light"] .text-light {
  color: #334155 !important;
}

/* Terminal Console Card - Light Developer Studio Theme */
[data-bs-theme="light"] .swan-terminal-card {
  background: #ffffff !important;
  border-color: rgba(2, 132, 199, 0.25) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.06), 0 0 25px rgba(2, 132, 199, 0.05) !important;
}
[data-bs-theme="light"] .swan-terminal-card .border-bottom {
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}
[data-bs-theme="light"] .swan-terminal-card > div:first-child {
  background: #f1f5f9 !important;
}
[data-bs-theme="light"] .swan-terminal-card .text-secondary {
  color: #64748b !important;
}
[data-bs-theme="light"] .swan-terminal-card .text-white {
  color: #0f172a !important;
}
[data-bs-theme="light"] .swan-terminal-card .p-2.px-3.rounded-2 {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
[data-bs-theme="light"] .swan-terminal-card .btn.w-100 {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border-color: #cbd5e1 !important;
  color: #0284c7 !important;
}
[data-bs-theme="light"] .swan-terminal-card .btn.w-100:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
}

/* Services Section Consultation Banner & Feature Lists */
.services-consultation-banner {
  background: linear-gradient(135deg, rgba(16, 26, 44, 0.8) 0%, rgba(9, 14, 24, 0.95) 100%);
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}
[data-bs-theme="light"] .services-consultation-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%) !important;
  border-color: rgba(2, 132, 199, 0.25) !important;
  box-shadow: 0 12px 35px rgba(2, 132, 199, 0.08) !important;
}
[data-bs-theme="light"] .services-consultation-banner h4 {
  color: #0f172a !important;
}
[data-bs-theme="light"] .services-consultation-banner p {
  color: #475569 !important;
}
[data-bs-theme="light"] #home-services .p-3.rounded-3 {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

/* Marquee Tech Stack Light Mode Contrast */
[data-bs-theme="light"] .marquee-wrapper .text-white {
  color: #1e293b !important;
}
[data-bs-theme="light"] .marquee-wrapper .text-muted {
  color: #64748b !important;
}

/* Blog Navigation Buttons in Light Mode */
[data-bs-theme="light"] .blog-nav-prev,
[data-bs-theme="light"] .blog-nav-next {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0284c7 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
[data-bs-theme="light"] .blog-nav-prev:hover,
[data-bs-theme="light"] .blog-nav-next:hover {
  background-color: #f0f9ff !important;
  border-color: #0284c7 !important;
  color: #0369a1 !important;
}
[data-bs-theme="light"] .blog-pair-card [style*="background: #060910"] {
  background: #f1f5f9 !important;
}
[data-bs-theme="light"] .blog-pair-card .badge.bg-black {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(2, 132, 199, 0.3) !important;
  color: #0284c7 !important;
}
