/* ==========================================================================
   SMART VISION SHOWCASE - DESIGN SYSTEM & STYLE SYSTEM
   ========================================================================== */

:root {
  /* Color Palette (HSL curated for rich premium aesthetics) */
  --bg-space: hsl(224, 71%, 4%);
  --bg-deep: hsl(222, 47%, 7%);
  --bg-card: rgba(13, 17, 28, 0.7);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-glow: rgba(168, 85, 247, 0.15);
  
  --primary-neon: hsl(187, 92%, 50%);    /* Cyan */
  --secondary-neon: hsl(271, 91%, 65%);  /* Purple-Violet */
  --accent-neon: hsl(328, 100%, 54%);     /* Hot Pink */
  --success-neon: hsl(142, 70%, 50%);    /* Emerald */
  
  --text-main: hsl(210, 40%, 98%);
  --text-muted: hsl(215, 20%, 65%);
  --text-dark: hsl(222, 47%, 12%);
  
  /* Header config */
  --header-bg: rgba(13, 17, 28, 0.75);
  --header-scrolled-bg: rgba(8, 11, 19, 0.94);
  --header-scrolled-blur: 16px;

  /* Glow Blobs */
  --glow-blob-1: rgba(168, 85, 247, 0.12);
  --glow-blob-2: rgba(34, 211, 238, 0.08);
  --glow-blob-3: rgba(236, 72, 153, 0.06);

  /* Font Family */
  --font-family-sans: 'Outfit', sans-serif;
  --font-family-serif: 'Cormorant Garamond', serif;
  --font-family: var(--font-family-sans);
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Reset & Globals */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-space);
  background-image: 
    radial-gradient(at 0% 0%, hsla(271, 91%, 65%, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, hsla(187, 92%, 50%, 0.08) 0px, transparent 50%);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body.loading {
  overflow: hidden;
}

/* Custom Morphing Cursor */
.cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary-neon);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  transition: width 0.2s, height 0.2s, background-color 0.2s;
  top: -100px;
  left: -100px;
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, background-color 0.3s;
  top: -100px;
  left: -100px;
}

/* Cursor States */
body.hovering-link .cursor-ring {
  width: 56px;
  height: 56px;
  border-color: var(--primary-neon);
  background-color: rgba(34, 211, 238, 0.06);
}

body.hovering-link .cursor-dot {
  background-color: var(--secondary-neon);
}

body.hovering-btn .cursor-ring {
  width: 62px;
  height: 62px;
  border-color: var(--secondary-neon);
  background-color: rgba(168, 85, 247, 0.05);
  border-width: 2px;
}

/* Hide default cursor on desktop when active */
@media (min-width: 1025px) {
  body:not(.loading) {
    cursor: none;
  }
  body:not(.loading) a,
  body:not(.loading) button,
  body:not(.loading) input,
  body:not(.loading) select,
  body:not(.loading) textarea {
    cursor: none;
  }
}

/* Disable custom cursor on mobile */
@media (max-width: 1024px) {
  .cursor-dot, .cursor-ring {
    display: none !important;
  }
}

/* Awwwards-Inspired Entrance Preloader */
.preloader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #080b13;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: clip-path 1.2s cubic-bezier(0.85, 0, 0.15, 1);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.preloader-overlay.hidden {
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); /* Slide up reveal */
  pointer-events: none;
}

.preloader-content {
  width: 90%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.preloader-glitch-wrap {
  text-align: center;
}

.preloader-logo-txt {
  font-family: var(--font-family-sans);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: 0.28em;
  color: var(--text-main);
  text-transform: uppercase;
  position: relative;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

/* Preloader 3D Cube Styles */
.preloader-logo-3d {
  width: 70px;
  height: 70px;
  perspective: 350px;
}

.preloader-cube {
  width: 40px;
  height: 40px;
  transform-style: preserve-3d;
  animation: logo-spin 8s infinite linear;
}

.preloader-cube .cube-face {
  width: 40px;
  height: 40px;
  font-size: 16px;
  box-shadow: inset 0 0 10px rgba(34, 211, 238, 0.4), 0 0 20px rgba(34, 211, 238, 0.2);
}

.preloader-cube .face-front  { transform: rotateY(  0deg) translateZ(20px); }
.preloader-cube .face-back   { transform: rotateY(180deg) translateZ(20px); border-color: var(--secondary-neon); color: var(--secondary-neon); box-shadow: inset 0 0 10px rgba(168, 85, 247, 0.4), 0 0 20px rgba(168, 85, 247, 0.2); }
.preloader-cube .face-left   { transform: rotateY(-90deg) translateZ(20px); }
.preloader-cube .face-right  { transform: rotateY( 90deg) translateZ(20px); border-color: var(--secondary-neon); color: var(--secondary-neon); box-shadow: inset 0 0 10px rgba(168, 85, 247, 0.4), 0 0 20px rgba(168, 85, 247, 0.2); }
.preloader-cube .face-top    { transform: rotateX( 90deg) translateZ(20px); }
.preloader-cube .face-bottom { transform: rotateX(-90deg) translateZ(20px); }

.preloader-line-track {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.preloader-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-neon), var(--secondary-neon));
  box-shadow: 0 0 8px var(--primary-neon);
}

.preloader-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-family: var(--font-family-sans);
}

/* Typography Serif Helper */
.serif-title {
  font-family: var(--font-family-serif);
  font-weight: 400;
}

.serif-title.italic {
  font-style: italic;
}

.section-title {
  font-size: 3rem;
  line-height: 1.1;
  font-family: var(--font-family-sans);
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Tech Blueprint Gridlines & Coordinates */
.glass-card {
  position: relative;
}

.glass-card::before {
  content: '+';
  position: absolute;
  top: -8px;
  left: -8px;
  color: var(--primary-neon);
  font-size: 14px;
  font-family: var(--font-family-sans);
  font-weight: 300;
  opacity: 0.5;
  pointer-events: none;
}

.glass-card::after {
  content: '[SYS.' attr(id) ']';
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.1);
  font-family: var(--font-family-sans);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: none;
}

/* Background Glow Blobs */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -2;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: float-glow 20s infinite alternate ease-in-out;
}
.glow-blob-1 {
  top: 5%;
  left: 5%;
  width: 400px;
  height: 400px;
  background: var(--glow-blob-1);
  animation-duration: 25s;
}
.glow-blob-2 {
  top: 35%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: var(--glow-blob-2);
  animation-delay: -5s;
  animation-duration: 30s;
}
.glow-blob-3 {
  bottom: 15%;
  left: 15%;
  width: 380px;
  height: 380px;
  background: var(--glow-blob-3);
  animation-delay: -10s;
  animation-duration: 22s;
}

@keyframes float-glow {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.08); }
  66% { transform: translate(-25px, 25px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Scroll-Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Delay Utilities */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-space);
}
::-webkit-scrollbar-thumb {
  background: hsl(222, 20%, 20%);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-neon);
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 20px 40px rgba(168, 85, 247, 0.1);
  transform: translateY(-4px);
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-text {
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  background: var(--header-scrolled-bg);
  backdrop-filter: blur(var(--header-scrolled-blur));
  -webkit-backdrop-filter: blur(var(--header-scrolled-blur));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: var(--transition-smooth);
}

.site-header.scrolled .header-container {
  height: 70px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  z-index: 1001;
}

/* 3D Logo Cube Layout */
.logo-3d-container {
  width: 38px;
  height: 38px;
  perspective: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-3d-cube {
  width: 22px;
  height: 22px;
  position: relative;
  transform-style: preserve-3d;
  animation: logo-spin 10s infinite linear;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Pause spinning and tilt on hover */
.logo-link:hover .logo-3d-cube {
  animation-play-state: paused;
  transform: rotateX(30deg) rotateY(45deg) rotateZ(0deg);
}

.cube-face {
  position: absolute;
  width: 22px;
  height: 22px;
  background: rgba(13, 17, 28, 0.95);
  border: 1px solid var(--primary-neon);
  color: var(--primary-neon);
  font-family: var(--font-family-sans);
  font-weight: 800;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 5px rgba(34, 211, 238, 0.4), 0 0 10px rgba(34, 211, 238, 0.2);
  backface-visibility: visible;
  user-select: none;
}

/* 3D positions */
.face-front  { transform: rotateY(  0deg) translateZ(11px); }
.face-back   { transform: rotateY(180deg) translateZ(11px); border-color: var(--secondary-neon); color: var(--secondary-neon); box-shadow: inset 0 0 5px rgba(168, 85, 247, 0.4), 0 0 10px rgba(168, 85, 247, 0.2); }
.face-left   { transform: rotateY(-90deg) translateZ(11px); }
.face-right  { transform: rotateY( 90deg) translateZ(11px); border-color: var(--secondary-neon); color: var(--secondary-neon); box-shadow: inset 0 0 5px rgba(168, 85, 247, 0.4), 0 0 10px rgba(168, 85, 247, 0.2); }
.face-top    { transform: rotateX( 90deg) translateZ(11px); }
.face-bottom { transform: rotateX(-90deg) translateZ(11px); }

@keyframes logo-spin {
  0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

.logo-text-3d {
  font-family: var(--font-family-sans);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-text-3d .serif-title {
  font-family: var(--font-family-serif);
  font-weight: 400;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-space);
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.4);
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 1px;
}

/* Menu Toggle Button (Hamburger) */
.menu-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
  padding: 0;
}

.menu-toggle-btn:focus {
  outline: none;
}

.hamburger-bar {
  width: 100%;
  height: 2.5px;
  background-color: var(--text-main);
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.menu-toggle-btn.active .hamburger-bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background-color: var(--primary-neon);
}

.menu-toggle-btn.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle-btn.active .hamburger-bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  background-color: var(--primary-neon);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-neon), var(--secondary-neon));
  transition: var(--transition-smooth);
  box-shadow: 0 0 8px var(--primary-neon);
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary-neon);
}

/* Hero Section */
.hero-section {
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: var(--primary-neon);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-neon);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-neon);
  animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 1; }
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 24px;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
  color: var(--bg-space);
  border: none;
  box-shadow: 0 10px 20px rgba(34, 211, 238, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 15px 30px rgba(34, 211, 238, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-main);
}

/* Interactive Showcase / Systems Matrix */
.showcase-header {
  text-align: center;
  margin-bottom: 60px;
}

.showcase-header h2 {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.showcase-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
}

.systems-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.system-nav-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  transition: var(--transition-smooth);
}

.system-nav-btn i {
  font-size: 1.25rem;
}

.system-nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  padding-left: 32px;
}

.system-nav-btn.active {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(168, 85, 247, 0.1));
  border-color: var(--primary-neon);
  color: var(--primary-neon);
  padding-left: 32px;
  box-shadow: inset 0 0 12px rgba(34, 211, 238, 0.05);
}

.system-detail-card {
  padding: 40px;
  min-height: 520px;
  display: flex;
}

.system-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  width: 100%;
}

.system-detail-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.system-detail-image-wrap {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  background: rgba(8, 11, 19, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.system-detail-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: var(--transition-smooth);
}

.system-detail-card:hover .system-detail-image {
  transform: scale(1.03);
}

.system-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.system-icon-badge {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: var(--primary-neon);
}

.system-approval-badge {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.system-approval-badge.moi {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: hsl(0, 84%, 60%);
}

.system-approval-badge.qcd {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: hsl(150, 84%, 40%);
}

.system-approval-badge.std {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: var(--secondary-neon);
}

.system-detail-body h3 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.system-desc {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.system-tech-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.tech-spec-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  font-size: 0.95rem;
}

.tech-spec-item i {
  color: var(--primary-neon);
  font-size: 0.85rem;
}

.system-partners {
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
}

.system-partners-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.partners-logos {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.partner-logo-tag {
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Chat Assistant Widget Style */
.chatbot-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 30px;
  margin-top: 40px;
  align-items: stretch;
}

@media (max-width: 992px) {
  .chatbot-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Avatar Card */
.avatar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  height: 550px;
  text-align: center;
}

.glow-ring-container {
  position: relative;
  width: 170px;
  height: 170px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-image-container {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.08);
  z-index: 2;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.avatar-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.glow-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid transparent;
  z-index: 1;
  transition: var(--transition-smooth);
}

/* Glow Ring States */
.glow-ring.idle {
  border-color: var(--secondary-neon);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3), inset 0 0 12px rgba(168, 85, 247, 0.15);
  animation: glow-breathe 4s infinite alternate ease-in-out;
}

.glow-ring.listening {
  border-color: var(--primary-neon);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.5), inset 0 0 15px rgba(34, 211, 238, 0.3);
  animation: glow-pulse 1s infinite alternate ease-in-out;
}

.glow-ring.speaking {
  border-color: var(--accent-neon);
  box-shadow: 0 0 30px rgba(236, 72, 153, 0.5), inset 0 0 15px rgba(236, 72, 153, 0.3);
  animation: glow-pulse-speaking 1.2s infinite alternate ease-in-out;
}

.glow-ring.typing {
  border: 3px dashed var(--primary-neon);
  border-top-color: var(--secondary-neon);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
  animation: glow-spin 1.2s infinite linear;
}

@keyframes glow-breathe {
  0% { transform: scale(0.98); opacity: 0.7; }
  100% { transform: scale(1.02); opacity: 1; }
}

@keyframes glow-pulse {
  0% { transform: scale(0.96); box-shadow: 0 0 15px rgba(34, 211, 238, 0.3); }
  100% { transform: scale(1.04); box-shadow: 0 0 35px rgba(34, 211, 238, 0.7); }
}

@keyframes glow-pulse-speaking {
  0% { transform: scale(0.97); box-shadow: 0 0 15px rgba(236, 72, 153, 0.3); }
  100% { transform: scale(1.03); box-shadow: 0 0 35px rgba(236, 72, 153, 0.6); }
}

@keyframes glow-spin {
  100% { transform: rotate(360deg); }
}

/* Sound Waveform Overlay */
.waveform-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 11, 19, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.waveform-container.active {
  opacity: 1;
  pointer-events: auto;
}

.waveform-container .bar {
  width: 4px;
  height: 15px;
  background: var(--primary-neon);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--primary-neon);
}

.waveform-container.active .bar {
  animation: waveform-bounce 1s infinite ease-in-out;
}

.waveform-container .bar:nth-child(1) { height: 25px; animation-delay: 0.1s; }
.waveform-container .bar:nth-child(2) { height: 40px; animation-delay: 0.3s; }
.waveform-container .bar:nth-child(3) { height: 18px; animation-delay: 0s; }
.waveform-container .bar:nth-child(4) { height: 32px; animation-delay: 0.4s; }
.waveform-container .bar:nth-child(5) { height: 20px; animation-delay: 0.2s; }

@keyframes waveform-bounce {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

/* Status Indicator */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: var(--transition-fast);
}

.status-dot.online {
  background: var(--success-neon);
  box-shadow: 0 0 10px var(--success-neon);
}

.status-dot.listening {
  background: var(--primary-neon);
  box-shadow: 0 0 10px var(--primary-neon);
  animation: status-blink 1s infinite alternate;
}

.status-dot.speaking {
  background: var(--accent-neon);
  box-shadow: 0 0 10px var(--accent-neon);
  animation: status-blink 1s infinite alternate;
}

@keyframes status-blink {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* Chat Card Console styling */
.chat-card {
  display: flex;
  flex-direction: column;
  height: 550px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.chat-banner {
  background: linear-gradient(135deg, var(--bg-card), rgba(13, 17, 28, 0.95));
  padding: 16px 24px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-banner-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.chat-banner-info p {
  font-size: 0.8rem;
  color: var(--primary-neon);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-banner-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  transition: var(--transition-fast);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-neon);
  color: var(--primary-neon);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.2);
}

.whatsapp-btn-header:hover {
  border-color: #25d366 !important;
  color: #25d366 !important;
  box-shadow: 0 0 10px rgba(37, 211, 102, 0.2) !important;
}

.chat-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: radial-gradient(circle at center, rgba(13, 17, 28, 0.2) 0%, var(--bg-space) 100%);
}

.message {
  display: flex;
  width: 100%;
}

.msg-content {
  padding: 12px 18px;
  border-radius: 16px;
  max-width: 80%;
  font-size: 0.95rem;
  line-height: 1.45;
  animation: bubble-slide 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  transform: scale(0.95) translateY(5px);
}

@keyframes bubble-slide {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.system-msg .msg-content,
.bot-msg .msg-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.user-msg .msg-content {
  background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
  color: var(--bg-space);
  font-weight: 500;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  box-shadow: 0 4px 15px rgba(34, 211, 238, 0.12);
}

.user-msg {
  justify-content: flex-end;
}

.chat-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--glass-border);
  background: rgba(13, 17, 28, 0.45);
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.chat-footer .action-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.chat-footer .action-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-neon);
  color: var(--primary-neon);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.15);
}

.chat-footer .action-btn.active {
  border-color: var(--primary-neon);
  color: var(--primary-neon);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.2);
}

.chat-footer textarea {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.95rem;
  resize: none;
  max-height: 120px;
  min-height: 44px;
  height: 44px;
  transition: var(--transition-fast);
  line-height: 1.35;
}

.chat-footer textarea:focus {
  outline: none;
  border-color: var(--primary-neon);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.1);
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

/* Settings Overlay Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 11, 19, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 90%;
  max-width: 460px;
  padding: 30px;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.open .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 12px;
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.close-btn:hover {
  color: var(--accent-neon);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-body .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-body label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.modal-body input,
.modal-body select {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.modal-body select option {
  background: var(--bg-deep);
  color: var(--text-main);
}

.modal-body input:focus,
.modal-body select:focus {
  outline: none;
  border-color: var(--primary-neon);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.1);
}

.help-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.submit-btn {
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
  color: var(--bg-space);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 5px 15px rgba(34, 211, 238, 0.2);
  margin-top: 10px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 211, 238, 0.35);
}

/* Technical Assessment Lead Form Style */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-group select option {
  background-color: var(--bg-deep);
  color: var(--text-main);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-neon);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.1);
}

.form-submit-btn {
  width: 100%;
  padding: 16px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
  color: var(--bg-space);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(34, 211, 238, 0.2);
  transition: var(--transition-smooth);
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(34, 211, 238, 0.3);
}

.form-success-container {
  text-align: center;
  padding: 40px;
}

.form-success-icon {
  font-size: 3.5rem;
  color: var(--success-neon);
  margin-bottom: 24px;
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.3));
}

.form-success-container h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.form-success-container p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Footer Section */
.footer-wrap {
  background: var(--bg-space);
  border-top: 1px solid var(--glass-border);
  padding: 40px 0;
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Security Products Showcase Layout */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 50px;
}

.brand-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition-smooth);
}

.brand-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 15px 35px rgba(34, 211, 238, 0.08);
}

.brand-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.06), rgba(168, 85, 247, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary-neon);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.brand-card:hover .brand-icon-wrap {
  color: var(--text-main);
  background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
  border-color: transparent;
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.35);
}

.brand-compliance-tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-compliance-tag.moi {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.18);
  color: hsl(0, 84%, 60%);
}

.brand-compliance-tag.qcd {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.18);
  color: hsl(150, 84%, 40%);
}

.brand-compliance-tag.std {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.18);
  color: var(--secondary-neon);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-top: 5px;
}

.brand-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.brand-product-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid var(--glass-border);
}

.brand-product-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
}

.brand-product-list li i {
  color: var(--primary-neon);
  font-size: 0.8rem;
}

/* Responsive override for brands grid */
@media (max-width: 1024px) {
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

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

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-title {
    font-size: 3.2rem;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .system-detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .system-detail-image-wrap {
    min-height: 250px;
    height: 250px;
  }
  .systems-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }
  .systems-nav::-webkit-scrollbar {
    height: 4px;
  }
  .systems-nav::-webkit-scrollbar-track {
    background: transparent;
  }
  .systems-nav::-webkit-scrollbar-thumb {
    background: rgba(34, 211, 238, 0.3);
    border-radius: 2px;
  }
  .systems-nav::-webkit-scrollbar-thumb:hover {
    background: var(--primary-neon);
  }
  .system-nav-btn {
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  .menu-toggle-btn {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid var(--glass-border);
    padding: 100px 30px 40px;
    display: flex;
    flex-direction: column;
    z-index: 1050;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }

  .nav-links a {
    font-size: 1.15rem;
    padding: 8px 0;
    width: 100%;
    display: block;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .showcase-header h2 {
    font-size: 2.2rem;
  }
  
  /* Responsive Chatbot Adjustments */
  .avatar-card {
    height: 280px;
    padding: 24px;
  }
  .glow-ring-container {
    width: 130px;
    height: 130px;
    margin-bottom: 16px;
  }
  .avatar-image-container {
    width: 108px;
    height: 108px;
  }
  .chat-card {
    height: 480px;
  }
  .chat-banner {
    padding: 12px 20px;
  }
  .chat-body {
    padding: 16px 20px;
  }
  .chat-footer {
    padding: 12px 20px;
  }
}

/* Voice Toggle Button Style */
.voice-toggle-btn {
  transition: var(--transition-fast);
}
.voice-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-neon);
  color: var(--primary-neon) !important;
}

/* WhatsApp Chat Button Style inside Chatbot */
.whatsapp-chat-btn {
  transition: var(--transition-fast);
}
.whatsapp-chat-btn:hover {
  background: rgba(37, 211, 102, 0.1) !important;
  border-color: #25d366 !important;
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.4);
}

/* Settings Modal Tab Switcher & Leads CRM Styles */
.modal-tabs {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 20px;
  padding-bottom: 2px;
}

.modal-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-tab-btn:hover {
  color: var(--text-main);
}

.modal-tab-btn.active {
  color: var(--primary-neon);
  border-bottom-color: var(--primary-neon);
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
}

.modal-tab-content {
  display: none;
}

.modal-tab-content.active {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Leads CRM Manager CSS */
.crm-leads-list {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 6px;
  margin-top: 10px;
}

.crm-leads-list::-webkit-scrollbar {
  width: 6px;
}

.crm-leads-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
}

.crm-leads-list::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 3px;
}

.crm-lead-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition-fast);
  position: relative;
}

.crm-lead-card:hover {
  border-color: rgba(34, 211, 238, 0.3);
  background: rgba(255, 255, 255, 0.02);
}

.crm-lead-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.crm-lead-name-badge {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.crm-lead-name {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.95rem;
}

.crm-lead-source {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  width: max-content;
}

.crm-lead-source.chat {
  background: rgba(168, 85, 247, 0.15);
  color: var(--secondary-neon);
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.crm-lead-source.form {
  background: rgba(34, 211, 238, 0.15);
  color: var(--primary-neon);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.crm-lead-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.crm-lead-details {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.crm-lead-details p {
  margin: 0;
}

.crm-lead-details strong {
  color: var(--text-main);
}

.crm-lead-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.crm-btn {
  padding: 8px 12px;
  font-size: 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  font-family: var(--font-family);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.crm-btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.15);
}

.crm-btn-whatsapp:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.crm-btn-delete {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: hsl(0, 84%, 60%) !important;
}

.crm-btn-delete:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: hsl(0, 84%, 60%);
}

.crm-empty-state {
  text-align: center;
  padding: 30px 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 180px;
  border: 1px dashed var(--glass-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.005);
}

.crm-empty-icon {
  font-size: 2.2rem;
  color: rgba(255, 255, 255, 0.08);
}

/* Chat Transcript View Styles */
.crm-lead-transcript {
  background: rgba(8, 11, 19, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 12px;
  font-family: var(--font-family);
  font-size: 0.8rem;
  max-height: 140px;
  overflow-y: auto;
  margin-top: 8px;
  white-space: pre-wrap;
  display: none;
  color: var(--text-muted);
  line-height: 1.5;
}

.crm-lead-transcript::-webkit-scrollbar {
  width: 4px;
}
.crm-lead-transcript::-webkit-scrollbar-track {
  background: transparent;
}
.crm-lead-transcript::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 2px;
}

.crm-lead-transcript.active {
  display: block;
}

.crm-btn-transcript {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
}

.crm-btn-transcript:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Language Switcher */
.lang-switch {
  font-weight: 700 !important;
  color: var(--secondary-neon) !important;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 8px;
  padding: 6px 14px !important;
  transition: var(--transition-fast);
}
.lang-switch:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--secondary-neon);
}

/* Arabic RTL */
html[dir="rtl"] {
  direction: rtl;
}
html[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}
html[dir="rtl"] .hero-grid,
html[dir="rtl"] .chatbot-grid,
html[dir="rtl"] .form-grid {
  direction: rtl;
}

/* Custom Arabic Styling and Chatbot RTL Overrides */
html[lang="ar"] body,
html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ar"] button,
html[lang="ar"] select {
  font-family: 'Cairo', var(--font-family-sans) !important;
}

html[lang="ar"] .system-msg .msg-content,
html[lang="ar"] .bot-msg .msg-content {
  border-bottom-left-radius: 16px !important;
  border-bottom-right-radius: 4px !important;
  text-align: right;
}

html[lang="ar"] .user-msg .msg-content {
  border-bottom-right-radius: 16px !important;
  border-bottom-left-radius: 4px !important;
  text-align: right;
}

html[lang="ar"] .msg-content {
  text-align: right;
}

html[lang="ar"] .crm-lead-card {
  text-align: right;
}

/* ==========================================================================
   SEARCH & GENERATIVE ENGINE VISIBILITY SECTION
   ========================================================================== */
.visibility-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  margin-top: 40px;
}

@media (max-width: 992px) {
  .visibility-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.visibility-left {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.visibility-right {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Metrics Row */
.visibility-metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

@media (max-width: 640px) {
  .visibility-metrics-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.vis-metric-card {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vis-metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vis-metric-header i {
  color: var(--primary-neon);
  font-size: 0.95rem;
}

.vis-metric-val {
  font-family: var(--font-family-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  background: linear-gradient(135deg, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vis-metric-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Visibility Tabs */
.vis-tabs {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1px;
}

.vis-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 20px;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vis-tab-btn i {
  font-size: 0.95rem;
}

.vis-tab-btn:hover {
  color: var(--text-main);
}

.vis-tab-btn.active {
  color: var(--primary-neon);
}

.vis-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-neon), var(--secondary-neon));
  box-shadow: 0 0 8px var(--primary-neon);
}

/* Tab Contents */
.vis-tab-content {
  display: none;
  animation: tab-fade-in 0.4s ease forwards;
}

.vis-tab-content.active {
  display: block;
}

@keyframes tab-fade-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Keywords Tab Layout */
.vis-search-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.vis-search-wrapper .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
}

#vis-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 14px 16px 14px 44px;
  color: var(--text-main);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

#vis-search-input:focus {
  outline: none;
  border-color: var(--primary-neon);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.1);
}

.vis-table-container {
  overflow-x: auto;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(8, 11, 19, 0.35);
}

.vis-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.vis-table th {
  padding: 16px 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  border-bottom: 1px solid var(--glass-border);
}

.vis-table td {
  padding: 16px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.vis-table tbody tr:last-child td {
  border-bottom: none;
}

.vis-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

.vis-rank-badge {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: var(--primary-neon);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
}

.vis-rank-badge.top-1 {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--success-neon);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.1);
}

/* Citations Tab Chart Layout */
.vis-chart-container {
  height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 24px 20px 0;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(8, 11, 19, 0.25);
  border-radius: 12px;
}

.vis-bar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 80px;
}

.vis-bar-group {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 150px;
  width: 100%;
}

.vis-bar {
  flex: 1;
  background-color: var(--text-muted);
  border-radius: 6px 6px 0 0;
  min-height: 4px;
  transition: height 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  cursor: pointer;
}

.vis-bar:hover::after {
  content: attr(data-val);
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.75rem;
  padding: 4px 6px;
  border-radius: 4px;
  border: 1px solid var(--glass-border);
  z-index: 10;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.vis-bar.bar-gpt { background: linear-gradient(to top, #10B981, #059669); }
.vis-bar.bar-perplexity { background: linear-gradient(to top, #3B82F6, #2563EB); }
.vis-bar.bar-sge { background: linear-gradient(to top, #06B6D4, #0891B2); }

.vis-bar-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

.vis-chart-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  font-size: 0.8rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.gpt { background-color: var(--success-neon); }
.legend-dot.perplexity { background-color: #3B82F6; }
.legend-dot.sge { background-color: var(--primary-neon); }

/* Captured Snippet card style */
.vis-snippet-card {
  padding: 24px;
  background: rgba(8, 11, 19, 0.4);
  border: 1px dashed var(--glass-border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.snippet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.snippet-header span:first-child {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.badge-featured {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--success-neon);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.snippet-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.snippet-content {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  border-left: 3px solid var(--success-neon);
  padding-left: 16px;
  margin: 4px 0;
}

.snippet-link {
  font-size: 0.8rem;
  color: var(--primary-neon);
  text-decoration: none;
}

.snippet-link:hover {
  text-decoration: underline;
}

/* Engine Coverage Checklist Card */
.engine-coverage-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.engine-coverage-card h3,
.readability-gauge-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-main);
}

.engine-check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.engine-check-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
}

.engine-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.engine-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.engine-dot.gpt { background-color: var(--success-neon); }
.engine-dot.perplexity { background-color: #3B82F6; }
.engine-dot.sge { background-color: var(--primary-neon); }
.engine-dot.bing { background-color: var(--secondary-neon); }

.engine-status.active {
  color: var(--success-neon);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Readability Speedometer Gauge */
.readability-gauge-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vis-gauge-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
  margin-top: 10px;
}

.vis-gauge-svg {
  transform: rotate(-180deg);
}

.vis-gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 10;
  stroke-linecap: round;
}

.vis-gauge-fill {
  fill: none;
  stroke: url(#gaugeGradient);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 251.2;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.vis-gauge-text {
  position: absolute;
  bottom: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vis-gauge-score {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-main);
  background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vis-gauge-lbl {
  font-size: 0.65rem;
  color: var(--success-neon);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.vis-gauge-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

/* RTL Adjustments for Visibility Section */
html[dir="rtl"] .vis-table {
  text-align: right;
}
html[dir="rtl"] .vis-search-wrapper .search-icon {
  left: auto;
  right: 16px;
}
html[dir="rtl"] #vis-search-input {
  padding: 14px 44px 14px 16px;
}
html[dir="rtl"] .snippet-content {
  border-left: none;
  border-right: 3px solid var(--success-neon);
  padding-left: 0;
  padding-right: 16px;
}


/* ==========================================================================
   UTILITY CLASSES - Replace all inline styles (html-validate compliance)
   ========================================================================== */

/* Preloader glitch wrap layout */
.preloader-glitch-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 10px; }

/* Hero visual card overrides */
.hero-visual-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; border-color: rgba(34, 211, 238, 0.2); }
.hero-visual-img { height: 200px; background: url('assets/img/home_hero.webp') center/cover no-repeat; border-bottom: 1px solid var(--glass-border); position: relative; }
.hero-visual-badge { position: absolute; bottom: 12px; left: 20px; background: rgba(13, 17, 28, 0.85); border: 1px solid var(--glass-border); border-radius: 6px; padding: 4px 10px; font-size: 0.75rem; font-weight: 700; color: var(--primary-neon); }
.hero-visual-body { padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.hero-visual-row { display: flex; justify-content: space-between; align-items: center; }
.hero-visual-label { font-weight: 700; color: var(--primary-neon); letter-spacing: 0.1em; font-size: 0.8rem; text-transform: uppercase; }
.hero-visual-icon { color: var(--secondary-neon); font-size: 1.25rem; }
.hero-visual-headline { font-size: 1.8rem; font-weight: 800; line-height: 1.2; }
.hero-visual-desc { color: var(--text-muted); font-size: 0.9rem; }
.hero-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 6px; }
.hero-stat-box { padding: 16px; background: rgba(255,255,255,0.01); border: 1px solid var(--glass-border); border-radius: 12px; }
.hero-stat-val-cyan { color: var(--primary-neon); font-size: 1.8rem; font-weight: 800; }
.hero-stat-val-purple { color: var(--secondary-neon); font-size: 1.8rem; font-weight: 800; }
.hero-stat-lbl { color: var(--text-muted); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }

/* Section badge color variants */
.badge-cyan { background: rgba(34, 211, 238, 0.1); border-color: rgba(34, 211, 238, 0.2); color: var(--primary-neon); }
.badge-cyan .badge-dot { background-color: var(--primary-neon); box-shadow: 0 0 8px var(--primary-neon); }
.badge-purple { background: rgba(168, 85, 247, 0.1); border-color: rgba(168, 85, 247, 0.2); color: var(--secondary-neon); }
.badge-purple .badge-dot { background-color: var(--secondary-neon); box-shadow: 0 0 8px var(--secondary-neon); }

/* Section background variants */
.section-border-top { border-top: 1px solid var(--glass-border); }
.section-bg-deep-space { background: linear-gradient(180deg, var(--bg-deep), var(--bg-space)); }
.section-bg-space-deep { background: linear-gradient(180deg, var(--bg-space), var(--bg-deep)); }
.section-bg-space { background: var(--bg-space); }
.section-narrow { max-width: 800px; }

/* Bar chart height utilities */
.bar-h-35 { height: 35%; } .bar-h-45 { height: 45%; } .bar-h-50 { height: 50%; }
.bar-h-60 { height: 60%; } .bar-h-65 { height: 65%; } .bar-h-70 { height: 70%; }
.bar-h-80 { height: 80%; } .bar-h-85 { height: 85%; } .bar-h-92 { height: 92%; }
.bar-h-98 { height: 98%; }

/* Modal sizing */
.modal-content-md { max-width: 520px; }

/* FAQ item */
.faq-item-styled { padding: 24px; margin-bottom: 16px; border-color: rgba(34, 211, 238, 0.15); transition: var(--transition-smooth); }
.faq-question { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: var(--primary-neon); }
.faq-answer { color: var(--text-muted); font-size: 0.95rem; }

/* Form card */
.form-card-styled { padding: 40px; border-color: rgba(168, 85, 247, 0.2); }
.recaptcha-wrap { margin-bottom: 16px; }
.form-success-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.btn-email { background: linear-gradient(135deg, #a855f7, #6b21a8); border: none; box-shadow: 0 4px 15px rgba(168,85,247,0.2); padding: 14px 28px; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; border-radius: 10px; color: #fff; }
.btn-email:hover { opacity: 0.9; transform: translateY(-2px); }
.btn-whatsapp-cta { background: linear-gradient(135deg, #25d366, #128c7e); border: none; box-shadow: 0 4px 15px rgba(37,211,102,0.2); padding: 14px 28px; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; border-radius: 10px; color: #fff; }
.btn-whatsapp-cta:hover { opacity: 0.9; transform: translateY(-2px); }
.form-contact-footer { margin-top: 24px; font-size: 0.85rem; color: var(--text-muted); }
.form-contact-link { color: var(--primary-neon); text-decoration: underline; }
.form-hidden { display: none; }

/* CRM & settings panel */
.crm-actions-panel { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; width: 100%; }
.crm-btn-row { display: flex; gap: 10px; width: 100%; flex-wrap: wrap; }
.avatar-controls-row { display: flex; gap: 10px; align-items: center; margin-top: 5px; }
.avatar-preview-wrap { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 8px; border: 1px dashed var(--glass-border); border-radius: 8px; background: rgba(255,255,255,0.01); }
.avatar-preview-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid var(--glass-border); }
.avatar-preview-lbl { font-size: 0.8rem; color: var(--text-muted); }
.btn-icon-auto { width: auto; padding: 0 16px; font-size: 0.85rem; flex: 1; }
.btn-icon-danger { width: auto; padding: 0 16px; font-size: 0.85rem; border-color: rgba(239,68,68,0.3); color: hsl(0,84%,60%); flex: 1; }
.input-url-mt { margin-top: 8px; }
.save-btn-full { width: 100%; }
.crm-help-mb { margin-bottom: 5px; }
.help-text-mb { margin-bottom: 24px; }
.file-hidden { display: none; }
.export-btn-style { flex: 1; margin-top: 0; padding: 12px; font-size: 0.9rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 110px; }
.import-btn-style { flex: 1; margin-top: 0; padding: 12px; font-size: 0.9rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 110px; background: linear-gradient(135deg, #4f46e5, #3730a3); box-shadow: 0 4px 12px rgba(79,70,229,0.25); }
.wa-crm-btn-style { flex: 1; margin-top: 0; padding: 12px; font-size: 0.9rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; min-width: 110px; }
.clear-btn-style { width: 100%; margin-top: 0; padding: 12px; font-size: 0.9rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; background: rgba(239,68,68,0.1); }

/* App Download Section */
.app-download-wrap {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.app-download-card {
  background: linear-gradient(135deg, rgba(8, 11, 20, 0.9) 0%, rgba(3, 5, 10, 0.95) 100%);
  border: 1px solid rgba(253, 199, 0, 0.2);
  border-radius: 30px;
  padding: 60px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.app-download-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 991px) {
  .app-download-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
}

.app-badge-cyan {
  background: rgba(253, 199, 0, 0.1);
  border: 1px solid rgba(253, 199, 0, 0.25);
  color: #fdc700;
}

.app-download-info h2 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.app-download-info p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.app-features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 35px;
}

.app-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}

.app-feature-icon {
  background: rgba(253, 199, 0, 0.15);
  color: #fdc700;
  border-radius: 10px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 1px solid rgba(253, 199, 0, 0.25);
}

.app-feature-icon.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.25);
}

.app-feature-icon.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.25);
}

.app-feature-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.app-feature-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.4;
}

.app-buttons-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 991px) {
  .app-buttons-row {
    justify-content: center;
  }
}

.download-badge-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.3s ease;
}

.download-badge-btn:hover {
  border-color: #fdc700;
  background: rgba(253, 199, 0, 0.05);
  transform: translateY(-2px);
}

.download-badge-btn i {
  font-size: 1.6rem;
  color: var(--text-main);
}

.download-badge-btn:hover i {
  color: #fdc700;
}

.download-badge-btn.btn-apk {
  border-color: #fdc700;
  background: linear-gradient(135deg, rgba(253, 199, 0, 0.2), rgba(168, 85, 247, 0.1));
}

.download-badge-btn.btn-apk:hover {
  background: linear-gradient(135deg, rgba(253, 199, 0, 0.3), rgba(168, 85, 247, 0.2));
  box-shadow: 0 0 15px rgba(253, 199, 0, 0.2);
}

.download-badge-btn.btn-apk i {
  color: #fdc700;
}

.download-badge-btn-text {
  text-align: left;
}

.download-badge-btn-text span {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.download-badge-btn-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Phone Mockup Layout */
.phone-mockup-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-outer-frame {
  width: 270px;
  height: 540px;
  background: #000;
  border-radius: 40px;
  padding: 10px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  border: 4px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #070b13;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(253, 199, 0, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(253, 199, 0, 0.02) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
}

/* HUD elements */
.phone-hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.55rem;
  color: var(--text-muted);
  font-family: monospace;
  letter-spacing: 0.5px;
  z-index: 5;
}

.phone-recording-dot {
  color: #fdc700;
  animation: pulse 1s infinite alternate;
}

/* Face Scan Mesh */
.phone-scan-hud {
  position: relative;
  width: 180px;
  height: 180px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-laser-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fdc700, transparent);
  box-shadow: 0 0 10px #fdc700;
  animation: scan-move 4s infinite ease-in-out;
  z-index: 4;
}

@keyframes scan-move {
  0% { top: 10%; }
  50% { top: 90%; }
  100% { top: 10%; }
}

.svg-mesh {
  width: 100%;
  height: 100%;
  stroke: rgba(253, 199, 0, 0.15);
}

.phone-hud-footer {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 12px;
  text-align: center;
  z-index: 5;
}

.phone-hud-footer h5 {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--text-main);
}

.phone-hud-footer .index-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fdc700;
  font-family: monospace;
}

.phone-hud-footer span {
  font-size: 0.55rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: monospace;
}
