/* RTL aware off-canvas logic */
    html[dir="rtl"] .off-canvas-hidden {
      transform: translateX(-100%);
    }
    html:not([dir="rtl"]) .off-canvas-hidden {
      transform: translateX(100%);
    }
    html[dir="rtl"] .off-canvas-hidden-start {
      transform: translateX(100%);
    }
    html:not([dir="rtl"]) .off-canvas-hidden-start {
      transform: translateX(-100%);
    }
    .off-canvas-visible {
      transform: translateX(0) !important;
    }
    /* Custom Scrollbar */
    ::-webkit-scrollbar {
      width: 8px;
    }
    ::-webkit-scrollbar-track {
      background: #14161c;
    }
    ::-webkit-scrollbar-thumb {
      background: #2b3346;
      border-radius: 4px;
      border: 2px solid #14161c;
    }
    ::-webkit-scrollbar-thumb:hover {
      background: var(--accent-color, #00e5ff);
    }

    /* CSS variable for dynamic accent toggle */
    :root {
      --accent-color: #00e5ff;
      --accent-glow: rgba(0, 229, 255, 0.22);
      --accent-hover: #00b8cc;
    }

    .theme-orange {
      --accent-color: #ff3f00;
      --accent-glow: rgba(255, 63, 0, 0.22);
      --accent-hover: #cc3200;
    }

    .accent-text {
      color: var(--accent-color);
      transition: color 0.3s ease;
    }
    .accent-bg {
      background-color: var(--accent-color);
      transition: background-color 0.3s ease;
    }
    .accent-border {
      border-color: var(--accent-color);
      transition: border-color 0.3s ease;
    }
    .accent-glow-shadow {
      box-shadow: 0 0 20px var(--accent-glow);
      transition: box-shadow 0.3s ease;
    }
    .accent-glow-shadow-hover:hover {
      box-shadow: 0 0 25px var(--accent-glow);
    }

    /* Keyboard focus ring (was missing entirely — WCAG 2.4.7) */
    :focus-visible {
      outline: 2px solid var(--accent-color, #00e5ff);
      outline-offset: 2px;
      border-radius: 3px;
    }

    /* Respect users who ask for reduced motion (WCAG 2.3.1 / 2.2.2) */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }
      #scanlines-overlay, #matrix-canvas { display: none !important; }
    }

    /* Background grids & patterns */
    .bg-grid {
      background-image: 
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
      background-size: 50px 50px;
    }

    .carbon-texture {
      background-color: #14161c;
      background-image:
        linear-gradient(45deg, #191c24 25%, transparent 25%, transparent 75%, #191c24 75%, #191c24),
        linear-gradient(45deg, #191c24 25%, transparent 25%, transparent 75%, #191c24 75%, #191c24);
      background-size: 8px 8px;
      background-position: 0 0, 4px 4px;
    }

    .hex-bg {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cpath fill='%23171c2b' fill-opacity='0.12' d='M13.9 10.5L0 2.4v16.2l13.9 8.1 13.9-8.1V2.4L13.9 10.5zm0 24.3L0 26.7v16.2l13.9 8.1 13.9-8.1V26.7l-13.9 8.1z'/%3E%3C/svg%3E");
    }

    .glass-panel {
      background: rgba(30, 34, 44, 0.72);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border: 1px solid rgba(255, 255, 255, 0.10);
    }

    .glass-panel-heavy {
      background: rgba(18, 20, 27, 0.94);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .glowing-card {
      position: relative;
      overflow: hidden;
      transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    }
    
    /* Interactive Mouse-Tracking Glow Layer */
    .glowing-card::after {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(400px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), var(--accent-glow), transparent 60%);
      opacity: 0;
      transition: opacity 0.4s ease;
      z-index: 0;
      pointer-events: none;
    }
    
    .glowing-card:hover::after {
      opacity: 1;
    }
    
    /* Ensure card content stacks beautifully over the glow backer */
    .glowing-card > * {
      position: relative;
      z-index: 1;
    }
    
    /* Higher specificity ensures hover overrides the active scroll-entrance position smoothly */
    .glowing-card.animated:hover {
      transform: translateY(-8px) scale(1.02);
      border-color: var(--accent-color);
      box-shadow: 
        0 20px 40px -15px rgba(0, 0, 0, 0.7), 
        0 0 30px var(--accent-glow);
    }

    /* Keyframes for subtle animations */
    @keyframes pulse-slow {
      0%, 100% { opacity: 0.15; transform: scale(1); }
      50% { opacity: 0.3; transform: scale(1.05); }
    }
    .animate-pulse-slow {
      animation: pulse-slow 8s infinite ease-in-out;
    }

    @keyframes spin-slow {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    .animate-spin-slow {
      animation: spin-slow 25s infinite linear;
    }

    @keyframes float {
      0%, 100% { transform: translateY(0px) rotate(0deg); }
      50% { transform: translateY(-6px) rotate(0.5deg); }
    }
    .animate-float {
      animation: float 6s infinite ease-in-out;
    }

    .shimmer-btn {
      position: relative;
      overflow: hidden;
    }
    .shimmer-btn::after {
      content: '';
      position: absolute;
      top: -50%;
      left: -60%;
      width: 30%;
      height: 200%;
      background: rgba(255, 255, 255, 0.15);
      transform: rotate(30deg);
      transition: none;
    }
    .shimmer-btn:hover::after {
      left: 130%;
      transition: all 0.8s ease-in-out;
    }

    /* 3D Visual Preview Name Tag Container */
    .nametag-perspective {
      perspective: 800px;
    }
    
    .nametag-card-3d {
      transform-style: preserve-3d;
      transition: transform 0.1s ease;
      background: linear-gradient(135deg, #111420 0%, #08090d 100%);
      box-shadow: 
        0 15px 35px rgba(0,0,0,0.5), 
        inset 0 1px 0 rgba(255,255,255,0.1);
      position: relative;
    }
    
    /* Simulate real carbon fiber weave inside preview */
    .nametag-fiber {
      background-image: 
        linear-gradient(45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.02) 75%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.02) 75%);
      background-size: 6px 6px;
      background-position: 0 0, 3px 3px;
    }

    /* Plastic extruded text depth shadow effect */
    .extruded-text {
      text-shadow: 
        0 1px 0 #000,
        0 2px 0 var(--depth-color, #00b8cc),
        0 3px 0 var(--depth-color, #00b8cc),
        0 4px 1px rgba(0,0,0,0.6);
      transform: translateZ(10px);
    }

    /* Scroll-triggered slide & fade entrance animations */
    .scroll-animate {
      opacity: 0;
      will-change: opacity, transform, clip-path;
    }
    
    .scroll-slide-up {
      transform: translateY(40px);
      transition: opacity 1.0s cubic-bezier(0.16, 1, 0.3, 1), transform 1.0s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .scroll-slide-left {
      transform: translateX(-60px) rotate(-1.5deg);
      transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .scroll-slide-right {
      transform: translateX(60px) rotate(1.5deg);
      transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .scroll-scale-up {
      transform: scale(0.93);
      transition: opacity 1.0s cubic-bezier(0.16, 1, 0.3, 1), transform 1.0s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .scroll-reveal-mask {
      clip-path: inset(0 100% 0 0);
      transition: opacity 0.3s ease, clip-path 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .scroll-animate.animated {
      opacity: 1;
      transform: translateY(0) translateX(0) scale(1) rotate(0deg);
      clip-path: inset(0 0 0 0);
    }

    /* 3D Parallax Card Tilt Mechanics */
    .card-3d-perspective {
      perspective: 1200px;
    }
    .tilt-card {
      transform-style: preserve-3d;
      will-change: transform;
      transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    }

    /* STL Upload Drag & Drop Panel */
    .stl-dropzone {
      border: 2px dashed rgba(255, 255, 255, 0.1);
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .stl-dropzone.drag-active {
      border-color: var(--accent-color);
      background: rgba(0, 229, 255, 0.05);
      box-shadow: 0 0 20px var(--accent-glow);
    }
    .theme-orange .stl-dropzone.drag-active {
      background: rgba(255, 63, 0, 0.05);
    }

    /* 3D STL Canvas Viewport Frame */
    .stl-viewport-container {
      position: relative;
      background: #0d0f14;
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
    }
    .stl-viewport-container::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.05);
      pointer-events: none;
      z-index: 10;
    }

    /* Custom high-tech slider */
    input[type="range"] {
      -webkit-appearance: none;
      appearance: none;
      background: #252a37;
      height: 6px;
      border-radius: 3px;
      outline: none;
    }
    input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: var(--accent-color);
      cursor: pointer;
      box-shadow: 0 0 8px var(--accent-glow);
      transition: transform 0.1s ease;
    }
    input[type="range"]::-webkit-slider-thumb:hover {
      transform: scale(1.2);
    }

    /* Bouncing Mouse Helper */
    @keyframes scroll-mouse {
      0% { transform: translateY(0); opacity: 0.8; }
      50% { transform: translateY(8px); opacity: 0.3; }
      100% { transform: translateY(0); opacity: 0.8; }
    }
    .mouse-scroll-indicator {
      animation: scroll-mouse 2s infinite ease-in-out;
    }

    /* Magnetic pull helper */
    .magnetic-btn {
      will-change: transform;
      transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    }

    /* ── PREMIUM SECTION HEADER with animated gradient underline ── */
    .section-label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-family: 'Orbitron', sans-serif;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--accent-color);
      margin-bottom: 12px;
    }
    .section-label::before {
      content: '';
      display: inline-block;
      width: 24px;
      height: 2px;
      background: var(--accent-color);
      box-shadow: 0 0 8px var(--accent-glow);
      border-radius: 2px;
    }
    .section-label::after {
      content: '';
      display: inline-block;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--accent-color);
      box-shadow: 0 0 6px var(--accent-glow);
      animation: pulse-dot 2s infinite;
    }
    @keyframes pulse-dot {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.4; transform: scale(0.7); }
    }

    /* ── GRADIENT SECTION TITLE ── */
    .gradient-title {
      background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 40%, var(--accent-color) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    /* ── NEON BORDER CARD (accent top-line glow) ── */
    .neon-card {
      position: relative;
    }
    .neon-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 16px;
      right: 16px;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
      box-shadow: 0 0 12px var(--accent-glow);
      border-radius: 2px;
      opacity: 0.7;
      transition: opacity 0.4s ease;
    }
    .neon-card:hover::before {
      opacity: 1;
      left: 8px;
      right: 8px;
    }

    /* ── ANIMATED COUNTER DIGITS ── */
    @keyframes countup-flash {
      0% { opacity: 0; transform: translateY(8px); }
      100% { opacity: 1; transform: translateY(0); }
    }
    .counter-value {
      display: inline-block;
      font-variant-numeric: tabular-nums;
    }
    .counter-value.animating {
      animation: countup-flash 0.4s ease-out forwards;
    }

    /* ── AVAILABILITY BADGE PULSE ── */
    @keyframes ping-ring {
      0% { transform: scale(1); opacity: 0.9; }
      70% { transform: scale(2.5); opacity: 0; }
      100% { transform: scale(2.5); opacity: 0; }
    }
    .ping-ring {
      position: absolute;
      inset: 0;
      border-radius: 50%;
      background: var(--accent-color);
      animation: ping-ring 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
      opacity: 0.3;
    }

    /* ── GALLERY STRIP ── */
    .gallery-strip {
      display: flex;
      gap: 16px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      scrollbar-width: none;
      -ms-overflow-style: none;
      padding-bottom: 4px;
    }
    .gallery-strip::-webkit-scrollbar { display: none; }
    .gallery-item {
      position: relative;
      flex: 0 0 auto;
      width: clamp(220px, 28vw, 340px);
      aspect-ratio: 3/4;
      border-radius: 16px;
      overflow: hidden;
      scroll-snap-align: start;
      border: 1px solid rgba(255,255,255,0.07);
      cursor: pointer;
      transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), border-color 0.4s ease, box-shadow 0.4s ease;
    }
    .gallery-item:hover {
      transform: scale(1.03) translateY(-4px);
      border-color: var(--accent-color);
      box-shadow: 0 16px 40px -10px rgba(0,0,0,0.6), 0 0 20px var(--accent-glow);
    }
    .gallery-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
    }
    .gallery-item:hover img {
      transform: scale(1.08);
    }
    .gallery-item-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(4,5,7,0.92) 0%, rgba(4,5,7,0.3) 50%, transparent 100%);
      opacity: 0;
      transition: opacity 0.4s ease;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 18px;
    }
    .gallery-item:hover .gallery-item-overlay {
      opacity: 1;
    }

    /* ── FLOATING WHATSAPP CTA ── */
    .float-wa-btn {
      position: fixed;
      bottom: 28px;
      right: 28px;
      z-index: 90;
      display: flex;
      align-items: center;
      gap: 10px;
      background: #25d366;
      color: #0a0d14;
      font-weight: 800;
      font-size: 13px;
      padding: 14px 22px;
      border-radius: 50px;
      box-shadow: 0 8px 32px rgba(37,211,102,0.35), 0 2px 8px rgba(0,0,0,0.4);
      cursor: pointer;
      font-family: 'Orbitron', sans-serif;
      letter-spacing: 0.5px;
      transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease, background 0.2s ease;
      overflow: hidden;
      border: none;
    }
    .float-wa-btn:hover {
      transform: translateY(-3px) scale(1.04);
      box-shadow: 0 16px 40px rgba(37,211,102,0.45), 0 4px 12px rgba(0,0,0,0.5);
      background: #1ebe5d;
    }
    .float-wa-btn .fa-whatsapp {
      font-size: 20px;
    }
    @keyframes wa-appear {
      from { transform: translateY(80px) scale(0.8); opacity: 0; }
      to { transform: translateY(0) scale(1); opacity: 1; }
    }
    .float-wa-btn {
      animation: wa-appear 0.6s 1.5s cubic-bezier(0.16,1,0.3,1) both;
    }
    /* label that collapses on mobile */
    @media (max-width: 640px) {
      .float-wa-btn span.wa-label { display: none; }
      .float-wa-btn { padding: 16px; border-radius: 50%; }
    }

    /* ── STAT CARD ── */
    .stat-card {
      background: rgba(16,19,29,0.8);
      backdrop-filter: blur(12px);
      border: 1px solid rgba(255,255,255,0.06);
      border-radius: 16px;
      padding: 20px 24px;
      position: relative;
      overflow: hidden;
      transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1);
    }
    .stat-card:hover {
      border-color: var(--accent-color);
      box-shadow: 0 0 24px var(--accent-glow);
      transform: translateY(-4px);
    }
    .stat-card::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
      opacity: 0;
      transition: opacity 0.4s ease;
    }
    .stat-card:hover::after {
      opacity: 1;
    }

    /* ── HERO SPLIT VISUAL ── */
    .hero-image-panel {
      position: relative;
      border-radius: 24px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,0.08);
      box-shadow:
        0 0 0 1px rgba(255,255,255,0.04),
        0 40px 80px -20px rgba(0,0,0,0.7),
        0 0 60px -10px var(--accent-glow);
    }
    .hero-image-panel::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(
        135deg,
        rgba(0, 229, 255, 0.04) 0%,
        transparent 50%,
        rgba(112, 0, 255, 0.04) 100%
      );
      pointer-events: none;
    }

    /* ── TYPING CURSOR BLINK ── */
    @keyframes blink-cursor {
      0%, 100% { opacity: 1; }
      50% { opacity: 0; }
    }
    .cursor-blink::after {
      content: '|';
      margin-left: 2px;
      color: var(--accent-color);
      animation: blink-cursor 1.1s infinite;
    }

    /* ── FEATURE PILL ── */
    .feature-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      font-weight: 600;
      padding: 5px 12px;
      border-radius: 100px;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(16,19,29,0.8);
      color: #8B9BB4;
      font-family: 'Share Tech Mono', monospace;
      letter-spacing: 0.5px;
      transition: border-color 0.3s, color 0.3s;
    }
    .feature-pill:hover {
      border-color: var(--accent-color);
      color: var(--accent-color);
    }

    /* ── NAV LINK ACTIVE STATE ── */
    .nav-link::after {
      content: '';
      position: absolute;
      bottom: -4px;
      left: 0;
      right: 0;
      height: 2px;
      border-radius: 2px;
      background: var(--accent-color);
      box-shadow: 0 0 8px var(--accent-glow);
      transform: scaleX(0);
      transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
      transform-origin: center;
    }
    .nav-link.active {
      color: #ffffff;
    }
    .nav-link.active::after {
      transform: scaleX(1);
    }
/* Task 3: Premium UI/UX Micro-Interactions */
@keyframes text-reveal {
  0% { transform: translateY(100%); opacity: 0; clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); }
  100% { transform: translateY(0); opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}
.hero-text-reveal {
  animation: text-reveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes skeleton-pulse {
  0% { background-color: rgba(255,255,255,0.05); }
  50% { background-color: rgba(255,255,255,0.15); }
  100% { background-color: rgba(255,255,255,0.05); }
}
.skeleton-loader {
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: 4px;
}

.card-expansion {
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  overflow: hidden;
}

.color-shift-node {
  transition: background-color 0.4s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.color-shift-node:hover {
  transform: scale(1.15);
  box-shadow: 0 0 15px currentColor;
}

/* Task 3: Premium UI/UX Micro-Interactions */
@keyframes text-reveal {
  0% { transform: translateY(100%); opacity: 0; clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); }
  100% { transform: translateY(0); opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}
.hero-text-reveal {
  animation: text-reveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes skeleton-pulse {
  0% { background-color: rgba(255,255,255,0.05); }
  50% { background-color: rgba(255,255,255,0.15); }
  100% { background-color: rgba(255,255,255,0.05); }
}
.skeleton-loader {
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: 4px;
}

.card-expansion {
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  overflow: hidden;
}

.color-shift-node {
  transition: background-color 0.4s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.color-shift-node:hover {
  transform: scale(1.15);
  box-shadow: 0 0 15px currentColor;
}

/* Task 3: Premium UI/UX Micro-Interactions */
@keyframes text-reveal {
  0% { transform: translateY(100%); opacity: 0; clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); }
  100% { transform: translateY(0); opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}
.hero-text-reveal {
  animation: text-reveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes skeleton-pulse {
  0% { background-color: rgba(255,255,255,0.05); }
  50% { background-color: rgba(255,255,255,0.15); }
  100% { background-color: rgba(255,255,255,0.05); }
}
.skeleton-loader {
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: 4px;
}

.card-expansion {
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  overflow: hidden;
}

.color-shift-node {
  transition: background-color 0.4s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.color-shift-node:hover {
  transform: scale(1.15);
  box-shadow: 0 0 15px currentColor;
}

/* Task 7: Advanced Responsive & Constraint Fixes */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Ensure heavy data blocks and canvases resize flawlessly */
canvas {
  max-width: 100%;
}

/* Increase touch targets for mobile accessibility */
@media (max-width: 768px) {
  button, a.nav-link, input, select {
    min-height: 44px; /* Minimum Apple Touch Target Standard */
    min-width: 44px;
  }
}

/* ═══════════════════════════════════════════════════════════
   HACKER AESTHETIC LAYER — Advanced Animations & Effects
   ═══════════════════════════════════════════════════════════ */

/* ── BOOT SEQUENCE OVERLAY ── */
#boot-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 5vw 8vw;
  font-family: 'Share Tech Mono', monospace;
  color: var(--accent-color);
  font-size: clamp(10px, 1.4vw, 14px);
  line-height: 1.8;
  overflow: hidden;
  transition: opacity 0.8s ease;
}
#boot-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}
#boot-overlay .boot-line {
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
  max-width: 700px;
  animation: boot-line-in 0.1s ease forwards;
}
@keyframes boot-line-in {
  to { opacity: 1; }
}
#boot-overlay .boot-cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--accent-color);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink-cursor 0.8s infinite;
}
#boot-overlay .boot-bar-wrap {
  width: 300px;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin: 8px 0;
}
#boot-overlay .boot-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-glow);
  border-radius: 2px;
  transition: width 0.08s linear;
}
#boot-overlay .boot-hkm-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(28px, 6vw, 60px);
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--accent-color);
  text-shadow: 0 0 20px var(--accent-glow), 0 0 60px var(--accent-glow);
  margin-bottom: 24px;
  animation: neon-flicker 0.8s ease 0.1s both;
}

/* ── CRT SCANLINES OVERLAY ── */
#scanlines-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.08) 3px,
    rgba(0, 0, 0, 0.08) 4px
  );
  animation: scanline-drift 12s linear infinite;
}
@keyframes scanline-drift {
  0% { background-position: 0 0; }
  100% { background-position: 0 100%; }
}

/* ── MATRIX RAIN CANVAS ── */
#matrix-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
}

/* ── GLITCH TEXT EFFECT ── */
.glitch {
  position: relative;
  display: inline-block;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
}
.glitch::before {
  color: #00e5ff;
  left: 2px;
  top: -2px;
  clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%);
  animation: glitch-before 4s infinite;
  opacity: 0.8;
}
.glitch::after {
  color: #ff3f00;
  left: -2px;
  top: 2px;
  clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
  animation: glitch-after 4s 0.15s infinite;
  opacity: 0.8;
}
@keyframes glitch-before {
  0%, 90%, 100% { transform: translateX(0); opacity: 0; clip-path: polygon(0 0, 0 0, 0 0, 0 0); }
  91% { transform: translateX(-4px); opacity: 0.8; clip-path: polygon(0 15%, 100% 15%, 100% 35%, 0 35%); }
  93% { transform: translateX(4px); opacity: 0.8; clip-path: polygon(0 50%, 100% 50%, 100% 70%, 0 70%); }
  95% { transform: translateX(-2px); opacity: 0.8; clip-path: polygon(0 5%, 100% 5%, 100% 25%, 0 25%); }
  97% { transform: translateX(0); opacity: 0; }
}
@keyframes glitch-after {
  0%, 90%, 100% { transform: translateX(0); opacity: 0; clip-path: polygon(0 0, 0 0, 0 0, 0 0); }
  91% { transform: translateX(4px); opacity: 0.8; clip-path: polygon(0 65%, 100% 65%, 100% 80%, 0 80%); }
  93% { transform: translateX(-4px); opacity: 0.8; clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%); }
  95% { transform: translateX(2px); opacity: 0.8; clip-path: polygon(0 75%, 100% 75%, 100% 95%, 0 95%); }
  97% { transform: translateX(0); opacity: 0; }
}

/* ── NEON FLICKER ANIMATION ── */
@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow:
      0 0 10px var(--accent-color),
      0 0 20px var(--accent-color),
      0 0 40px var(--accent-glow),
      0 0 80px var(--accent-glow);
  }
  20%, 24%, 55% {
    text-shadow: none;
  }
}
.neon-flicker {
  animation: neon-flicker 5s infinite alternate;
}

/* ── HUD CORNER BRACKETS ── */
.hud-card {
  position: relative;
}
.hud-card::before,
.hud-card::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--accent-color);
  border-style: solid;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 10;
  pointer-events: none;
}
.hud-card::before {
  top: 8px;
  left: 8px;
  border-width: 2px 0 0 2px;
  border-radius: 2px 0 0 0;
}
.hud-card::after {
  bottom: 8px;
  right: 8px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 2px 0;
}
.hud-card:hover::before,
.hud-card:hover::after {
  opacity: 1;
}
/* Additional pseudo-element corners via box-shadow */
.hud-card .hud-corner-tr,
.hud-card .hud-corner-bl {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--accent-color);
  border-style: solid;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 10;
  pointer-events: none;
}
.hud-card .hud-corner-tr {
  top: 8px;
  right: 8px;
  border-width: 2px 2px 0 0;
  border-radius: 0 2px 0 0;
}
.hud-card .hud-corner-bl {
  bottom: 8px;
  left: 8px;
  border-width: 0 0 2px 2px;
  border-radius: 0 0 0 2px;
}
.hud-card:hover .hud-corner-tr,
.hud-card:hover .hud-corner-bl {
  opacity: 1;
}

/* ── TERMINAL TYPEWRITER TEXT ── */
.typewriter-text {
  overflow: hidden;
  border-right: 2px solid var(--accent-color);
  white-space: nowrap;
  animation: type-in 2.5s steps(60, end) 2s forwards, blink-border 0.8s step-end infinite 4.5s;
  max-width: 0;
}
.typewriter-text.typed {
  max-width: 100%;
  border-right: none;
}
@keyframes type-in {
  from { max-width: 0; }
  to { max-width: 100%; }
}
@keyframes blink-border {
  0%, 100% { border-color: var(--accent-color); }
  50% { border-color: transparent; }
}

/* ── DATA STREAM TICKER ── */
.data-ticker {
  position: relative;
  overflow: hidden;
}
.data-ticker-inner {
  display: inline-flex;
  gap: 40px;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── ANIMATED NEON BORDER ── */
@keyframes border-run {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.neon-border-animated {
  position: relative;
  border: 1px solid transparent !important;
  background-clip: padding-box;
}
.neon-border-animated::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent, transparent);
  background-size: 300% 300%;
  animation: border-run 3s linear infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
}
.neon-border-animated:hover::before {
  opacity: 1;
}

/* ── GLITCH SECTION LABEL ── */
@keyframes glitch-shift {
  0%, 95%, 100% { transform: translateX(0); opacity: 1; }
  96% { transform: translateX(-3px); opacity: 0.8; }
  97% { transform: translateX(3px); opacity: 0.8; }
  98% { transform: translateX(-1px); opacity: 1; }
}
.section-label {
  animation: glitch-shift 6s infinite;
}

/* ── TERMINAL WINDOW HEADER ── */
.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(8, 9, 12, 0.9);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px 12px 0 0;
}
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; box-shadow: 0 0 6px rgba(39,201,63,0.4); }

/* ── FLOATING HEX PARTICLE ── */
@keyframes hex-float {
  0%   { transform: translateY(0)   rotate(0deg)   scale(1);   opacity: 0.3; }
  33%  { transform: translateY(-20px) rotate(60deg)  scale(1.1); opacity: 0.5; }
  66%  { transform: translateY(10px)  rotate(120deg) scale(0.95); opacity: 0.25; }
  100% { transform: translateY(0)   rotate(180deg) scale(1);   opacity: 0.3; }
}
.hex-particle {
  position: absolute;
  width: 60px;
  height: 60px;
  opacity: 0.3;
  pointer-events: none;
  animation: hex-float 10s ease-in-out infinite;
}

/* ── RADAR SWEEP (hero section) ── */
@keyframes radar-sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.radar-sweep {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(0,229,255,0.08);
  top: 50%;
  left: 50%;
  transform-origin: center;
  pointer-events: none;
  overflow: hidden;
}
.radar-sweep::after {
  content: '';
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, transparent 340deg, rgba(0,229,255,0.15) 360deg);
  border-radius: 50%;
  animation: radar-sweep 4s linear infinite;
}

/* ── NAV GLITCH ON HOVER ── */
.nav-link:hover {
  text-shadow: 0 0 8px var(--accent-color), 0 0 20px var(--accent-glow);
}

/* ── STAT CARD NUMBER GLOW ── */
.stat-card .counter-value {
  text-shadow: 0 0 16px var(--accent-glow);
  transition: text-shadow 0.4s;
}
.stat-card:hover .counter-value {
  text-shadow: 0 0 30px var(--accent-color), 0 0 60px var(--accent-glow);
}

/* ── ANIMATED LOGO SCAN LINE ── */
@keyframes logo-scan {
  0% { top: 0%; opacity: 0.6; }
  100% { top: 100%; opacity: 0; }
}
.logo-scan-wrap {
  position: relative;
  overflow: hidden;
  display: inline-block;
}
.logo-scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: logo-scan 2.5s ease-in-out infinite;
  pointer-events: none;
}

/* ── SYSTEM STATUS BAR (hero) ── */
.sys-status-bar {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: rgba(0,229,255,0.5);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 16px;
}
.sys-status-bar .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00ff66;
  box-shadow: 0 0 8px rgba(0,255,102,0.6);
  animation: ping-ring 1.8s infinite;
  display: inline-block;
}

/* ── GLITCH IMAGE EFFECT ── */
@keyframes img-glitch {
  0%, 95%, 100% { clip-path: none; transform: translateX(0); }
  96% { clip-path: inset(10% 0 80% 0); transform: translateX(-5px); }
  97% { clip-path: inset(50% 0 30% 0); transform: translateX(5px); }
  98% { clip-path: inset(80% 0 5% 0); transform: translateX(-3px); }
}
.hero-image-panel img {
  animation: img-glitch 8s infinite;
}

/* ── SCROLL PROGRESS HACKER STYLE ── */
#scroll-progress {
  background: linear-gradient(90deg, var(--accent-color), #00ff66);
  box-shadow: 0 0 10px var(--accent-glow), 0 0 20px var(--accent-glow);
}

/* ── HACK TICKER BAR ── */
.hack-ticker {
  background: rgba(0, 229, 255, 0.04);
  border-top: 1px solid rgba(0,229,255,0.08);
  border-bottom: 1px solid rgba(0,229,255,0.08);
  padding: 8px 0;
  overflow: hidden;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: rgba(0, 229, 255, 0.45);
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
}
.hack-ticker .hack-ticker-inner {
  display: inline-flex;
  gap: 60px;
  animation: ticker-scroll 40s linear infinite;
}

/* ═══════════════════════════════════════════════
   MATERIAL COMPARISON ENGINE — CSS
   ═══════════════════════════════════════════════ */

/* ── MATERIAL TOGGLE CHIPS ── */
.mat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(28, 31, 40, 0.8);
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.mat-chip:hover {
  border-color: var(--mat-color);
  color: var(--mat-color);
  background: rgba(16,19,29,0.95);
}
.mat-chip.active {
  border-color: var(--mat-color);
  color: var(--mat-color);
  background: rgba(16,19,29,0.95);
  box-shadow: 0 0 16px color-mix(in srgb, var(--mat-color) 30%, transparent),
              inset 0 0 20px color-mix(in srgb, var(--mat-color) 8%, transparent);
}
.mat-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mat-color);
  flex-shrink: 0;
  transition: box-shadow 0.3s;
}
.mat-chip.active .mat-chip-dot {
  box-shadow: 0 0 8px var(--mat-color), 0 0 16px var(--mat-color);
  animation: ping-ring 1.8s infinite;
}

/* ── PROPERTY BAR ROWS ── */
.mat-bar-row {
  display: grid;
  grid-template-columns: 90px 1fr 60px;
  gap: 10px;
  align-items: center;
}
.mat-bar-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.mat-bar-track {
  position: relative;
  height: 6px;
  background: rgba(255,255,255,0.04);
  border-radius: 3px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mat-bar-fill {
  height: 6px;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  position: absolute;
  top: 0;
}
.mat-bar-fill:nth-child(2) { top: 8px; }
.mat-bar-fill:nth-child(3) { top: 16px; }
.mat-bar-track {
  height: calc(6px + 8px * 2);
}
.mat-bar-vals {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.4;
}

/* ── SPEC CARDS ── */
.mat-spec-card {
  background: rgba(28, 31, 40, 0.8);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.mat-spec-card::before {
  content: '';
  position: absolute;
  top: 0; left: 12px; right: 12px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mat-color), transparent);
  box-shadow: 0 0 10px var(--mat-color);
  border-radius: 2px;
}
.mat-spec-card:hover {
  border-color: var(--mat-color);
  transform: translateY(-3px);
}
.mat-spec-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.mat-spec-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  display: block;
  text-shadow: 0 0 12px currentColor;
}
.mat-spec-badge {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  border: 1px solid;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-top: 4px;
}
.mat-spec-grade {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: #8b95a7;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.mat-spec-note {
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.5;
  margin-bottom: 12px;
  border-left: 2px solid var(--mat-color);
  padding-left: 8px;
}
.mat-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.mat-spec-grid > div {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 6px 8px;
}
.mat-spec-key {
  display: block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: #8b95a7;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.mat-spec-val {
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #e5e7eb;
}

/* ── TABLE ROWS ── */
.mat-table-row {
  transition: background 0.2s;
}
.mat-table-row:hover {
  background: rgba(255,255,255,0.025);
}
.mat-table-row:last-child {
  border-bottom: none;
}

/* ═══════════════════════════════════════════════
   TEXT JUSTIFY — Professional Reading
   ═══════════════════════════════════════════════ */
.glass-panel p,
section p.text-gray-400,
section p.text-gray-300,
.glowing-card p {
  text-align: start;
}

/* ═══════════════════════════════════════════════
   HERO CTA BUTTON — Pulsing Pop-Out Effect
   ═══════════════════════════════════════════════ */
.hero-cta-primary {
  position: relative;
}
.hero-cta-primary::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 16px;
  border: 2px solid var(--accent-color);
  opacity: 0;
  animation: cta-ring-pulse 2s ease-in-out infinite;
}
@keyframes cta-ring-pulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.06); }
}
.hero-cta-primary {
  animation: cta-glow-pulse 2s ease-in-out infinite;
}
@keyframes cta-glow-pulse {
  0%, 100% { box-shadow: 0 0 16px var(--accent-glow), 0 8px 32px rgba(0,0,0,0.4); }
  50%       { box-shadow: 0 0 32px var(--accent-color), 0 0 60px var(--accent-glow), 0 8px 32px rgba(0,0,0,0.4); }
}

/* ═══════════════════════════════════════════════
   BUSINESS CARD FOOTER — Contact Panel
   ═══════════════════════════════════════════════ */
.biz-card {
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(8, 9, 14, 0.95);
  backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 20px 60px rgba(0,0,0,0.6),
    0 0 40px var(--accent-glow);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
  position: relative;
}
.biz-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 30px 80px rgba(0,0,0,0.7),
    0 0 60px var(--accent-glow);
}

/* Left accent stripe */
.biz-card-stripe {
  width: 5px;
  flex-shrink: 0;
  background: linear-gradient(to bottom, var(--accent-color), transparent 70%);
  box-shadow: 2px 0 20px var(--accent-glow);
}

.biz-card-body {
  flex: 1;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.biz-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.biz-card-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: 100px;
  padding: 3px 10px;
}

.biz-card-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--accent-color), transparent);
  opacity: 0.15;
}

.biz-card-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.biz-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.biz-contact-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 1px;
}
.biz-contact-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: #8b95a7;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 2px;
}
.biz-contact-val {
  font-size: 12px;
  color: #d1d5db;
  font-weight: 500;
  line-height: 1.4;
}

.biz-card-footer {
  padding-top: 2px;
}
.biz-social-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 11px;
  transition: all 0.25s ease;
}
.biz-social-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--accent-color);
  color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ═══════════════════════════════════════════════
   CYBER UI UPGRADES (Cursor, HUD, Scan, Terminal)
   ═══════════════════════════════════════════════ */

/* ── Custom Cybernetic Cursor ── */
/* Hide the native cursor ONLY on pages that actually render the
   custom cursor element — otherwise the pointer just vanishes
   (profile/admin/legal pages load this stylesheet too). */
@media (pointer: fine) {
  body:has(#cyber-cursor),
  body:has(#cyber-cursor) a,
  body:has(#cyber-cursor) button,
  body:has(#cyber-cursor) input,
  body:has(#cyber-cursor) .mat-chip,
  body:has(#cyber-cursor) .shimmer-btn {
    cursor: none !important;
  }
}
#cyber-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 24px; height: 24px;
  border: 1px solid var(--accent-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
  box-shadow: 0 0 10px var(--accent-glow);
  mix-blend-mode: difference;
}
#cyber-cursor::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 4px; height: 4px;
  background: var(--accent-color);
  transform: translate(-50%, -50%);
}
#cyber-cursor-trail {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--accent-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  transition: transform 0.1s linear;
  opacity: 0.5;
  box-shadow: 0 0 8px var(--accent-color);
}
body.cursor-hover #cyber-cursor {
  width: 40px; height: 40px;
  background-color: rgba(0, 240, 255, 0.1);
  border-style: dashed;
  animation: spin 4s linear infinite;
}
body.cursor-hover #cyber-cursor-trail {
  opacity: 0;
}
@keyframes spin { 100% { transform: translate(-50%, -50%) rotate(360deg); } }

/* Touch devices get no mousemove events, so the cursor divs would sit
   frozen in the top-left corner — hide them unless a fine pointer exists. */
@media (pointer: coarse), (pointer: none) {
  #cyber-cursor, #cyber-cursor-trail { display: none !important; }
}

/* ── Hero Print Status HUD ── */
.print-status-hud {
  position: absolute;
  bottom: 20px; right: -20px;
  background: rgba(8, 9, 14, 0.9);
  border: 1px solid var(--accent-color);
  border-left: 3px solid var(--accent-color);
  padding: 10px 15px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--accent-color);
  box-shadow: 0 0 20px rgba(0,240,255,0.15);
  backdrop-filter: blur(10px);
  z-index: 10;
  border-radius: 4px;
  max-width: 250px;
  opacity: 0;
  animation: hud-fade-in 1s forwards 2s;
}
@keyframes hud-fade-in { to { opacity: 1; right: 20px; } }
.hud-line {
  display: flex;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hud-line::before {
  content: '>';
  margin-right: 8px;
  color: #fff;
  opacity: 0.5;
}
.hud-blink {
  animation: blink 1s step-end infinite;
}

/* ── Gallery Laser Scan Effect ── */
.gallery-item {
  position: relative;
  overflow: hidden;
}
.laser-scanner {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-color);
  box-shadow: 0 0 15px 2px var(--accent-glow), 0 0 30px var(--accent-color);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}
.gallery-item:hover .laser-scanner {
  animation: scan-laser 2.5s linear infinite;
  opacity: 0.8;
}
@keyframes scan-laser {
  0% { top: 0; opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { top: 100%; opacity: 0; }
}

/* ── Secret Terminal Section ── */
.terminal-section {
  background: #000;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 20px 0;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: #00ff00;
}
.terminal-window {
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid #333;
  border-radius: 8px;
  padding: 15px;
  box-shadow: inset 0 0 20px rgba(0,0,0,1);
  position: relative;
  overflow: hidden;
}
.terminal-window::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
}
.terminal-output {
  margin-bottom: 10px;
  white-space: pre-wrap;
  line-height: 1.5;
  text-shadow: 0 0 5px rgba(0,255,0,0.5);
}
.terminal-input-line {
  display: flex;
  align-items: center;
}
.terminal-prompt {
  color: #00ff00;
  margin-right: 8px;
}
.terminal-input {
  background: transparent;
  border: none;
  color: #00ff00;
  font-family: inherit;
  font-size: inherit;
  flex: 1;
  outline: none;
  text-shadow: 0 0 5px rgba(0,255,0,0.5);
}

/* ── Easter Egg Glitch Mode ── */
body.glitch-mode {
  animation: intense-shake 0.2s infinite;
  filter: invert(1) hue-rotate(180deg) contrast(1.5);
  background: #fff;
}
@keyframes intense-shake {
  0% { transform: translate(2px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(0px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(2px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(2px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

/* MARQUEE ANIMATION */
@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.animate-scroll-x {
  animation: scroll-x 25s linear infinite;
}

/* ══════════════════════════════════════════════════════════════
   GLASSMORPHIC METALLIC PANEL SYSTEM
   Premium frosted-glass panels with metallic sheen borders
   ══════════════════════════════════════════════════════════════ */

/* Metallic shimmer sweep animation */
@keyframes metal-sweep {
  0%   { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(300%)  skewX(-15deg); }
}
@keyframes metal-border-glow {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

/* ── Core glass-metal card ── */
.glass-metal {
  background:
    linear-gradient(135deg,
      rgba(38, 45, 65, 0.72) 0%,
      rgba(18, 22, 36, 0.82) 50%,
      rgba(30, 36, 54, 0.72) 100%);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-top-color: rgba(255, 255, 255, 0.22);   /* metallic top highlight */
  border-left-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.08) inset,     /* inner top gloss */
    0 -1px 0 rgba(0, 0, 0, 0.3) inset;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
/* Metallic sheen sweep on hover */
.glass-metal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.055) 50%,
    transparent 65%
  );
  transform: translateX(-100%) skewX(-15deg);
  transition: none;
  pointer-events: none;
  z-index: 1;
}
.glass-metal:hover::before {
  animation: metal-sweep 0.7s ease forwards;
}
.glass-metal:hover {
  border-color: rgba(255, 255, 255, 0.22);
  border-top-color: rgba(255, 255, 255, 0.38);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.55),
    0 0 24px var(--accent-glow),
    0 1px 0 rgba(255, 255, 255, 0.14) inset;
  transform: translateY(-4px);
}
/* Ensure children appear above the sheen layer */
.glass-metal > * { position: relative; z-index: 2; }

/* ── Darker variant — for section backgrounds / modals ── */
.glass-metal-dark {
  background:
    linear-gradient(160deg,
      rgba(12, 15, 25, 0.88) 0%,
      rgba(8, 10, 18, 0.94) 100%);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-top-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.6),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  position: relative;
  overflow: hidden;
}
.glass-metal-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255,255,255,0.04) 50%,
    transparent 65%
  );
  transform: translateX(-100%) skewX(-15deg);
  pointer-events: none;
  z-index: 1;
}
.glass-metal-dark:hover::before { animation: metal-sweep 0.75s ease forwards; }
.glass-metal-dark > * { position: relative; z-index: 2; }
.glass-metal-dark:hover {
  border-top-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 20px 60px rgba(0,0,0,0.65), 0 0 30px var(--accent-glow);
}

/* ── Accent-tinted glass — for highlighted / featured cards ── */
.glass-metal-accent {
  background:
    linear-gradient(135deg,
      rgba(0, 229, 255, 0.07) 0%,
      rgba(18, 22, 36, 0.88) 40%,
      rgba(0, 229, 255, 0.04) 100%);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-top-color: rgba(0, 229, 255, 0.35);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(0, 229, 255, 0.08),
    0 1px 0 rgba(0, 229, 255, 0.12) inset;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.glass-metal-accent::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(0, 229, 255, 0.06) 50%,
    transparent 65%
  );
  transform: translateX(-100%) skewX(-15deg);
  pointer-events: none;
  z-index: 1;
}
.glass-metal-accent:hover::before { animation: metal-sweep 0.7s ease forwards; }
.glass-metal-accent > * { position: relative; z-index: 2; }
.glass-metal-accent:hover {
  border-color: rgba(0, 229, 255, 0.35);
  border-top-color: rgba(0, 229, 255, 0.55);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.55),
    0 0 36px rgba(0, 229, 255, 0.18),
    0 1px 0 rgba(0, 229, 255, 0.2) inset;
  transform: translateY(-4px);
}

/* Orange-accent variant for theme-orange mode */
.theme-orange .glass-metal-accent {
  background: linear-gradient(135deg, rgba(255,63,0,0.07) 0%, rgba(18,22,36,0.88) 40%, rgba(255,63,0,0.04) 100%);
  border-color: rgba(255,63,0,0.18);
  border-top-color: rgba(255,63,0,0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 0 20px rgba(255,63,0,0.08), 0 1px 0 rgba(255,63,0,0.12) inset;
}
.theme-orange .glass-metal-accent::before {
  background: linear-gradient(105deg, transparent 35%, rgba(255,63,0,0.06) 50%, transparent 65%);
}
.theme-orange .glass-metal-accent:hover {
  border-color: rgba(255,63,0,0.35);
  border-top-color: rgba(255,63,0,0.55);
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 36px rgba(255,63,0,0.18), 0 1px 0 rgba(255,63,0,0.2) inset;
}

/* ── Metal Badge / Pill ── */
.metal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(40,48,72,0.9) 0%, rgba(22,27,44,0.95) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.14);
  border-top-color: rgba(255,255,255,0.24);
  box-shadow: 0 2px 12px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.06) inset;
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  color: #c8d4e8;
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.5px;
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.metal-badge:hover, .metal-badge.active {
  border-color: var(--accent-color);
  border-top-color: var(--accent-color);
  color: var(--accent-color);
  box-shadow: 0 2px 12px rgba(0,0,0,0.35), 0 0 12px var(--accent-glow);
}

/* ── Upgrade existing glass-panel to be more visible ── */
.glass-panel {
  background: rgba(30, 34, 44, 0.78) !important;
  backdrop-filter: blur(18px) saturate(1.3) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.3) !important;
  border-color: rgba(255,255,255,0.1) !important;
  border-top-color: rgba(255,255,255,0.18) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.07) inset !important;
}

/* ── Upgrade stat-card ── */
.stat-card {
  background: linear-gradient(135deg, rgba(30,36,58,0.82) 0%, rgba(14,18,32,0.9) 100%) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-top-color: rgba(255,255,255,0.2) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.07) inset !important;
}

/* ── Section divider with metallic gradient ── */
.metal-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.06) 20%,
    rgba(255,255,255,0.18) 50%,
    rgba(255,255,255,0.06) 80%,
    transparent 100%
  );
  margin: 0;
  border: none;
}


@keyframes scan {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
\n
/* Mobile fixes for Designer Layout */
@media (max-width: 768px) {
  #card-edit-pos-wrap {
    flex-direction: column !important;
    gap: 15px !important;
  }
  .card-side-btn {
    flex-direction: row !important;
    width: 100% !important;
    justify-content: center !important;
    padding: 12px !important;
  }
  .card-side-btn br {
    display: none !important;
  }
  .card-side-btn i {
    font-size: 16px !important;
    margin-right: 8px !important;
}
}

/* ==========================================================================
   ── LIGHT MODE OVERRIDES ──
   ========================================================================== */
body.light-mode {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

/* Base dark backgrounds mapping to light backgrounds */
body.light-mode .bg-brand-dark,
body.light-mode .bg-\[\#08090c\],
body.light-mode .bg-brand-darker,
body.light-mode .bg-\[\#040507\],
body.light-mode .bg-brand-darker\/85,
body.light-mode .bg-\[\#040507\]\/85 {
  background-color: #f8fafc !important;
}

body.light-mode .bg-\[\#06080F\],
body.light-mode .bg-\[\#06080f\],
body.light-mode footer.bg-\[\#06080F\],
body.light-mode footer.bg-\[\#06080f\],
body.light-mode section.bg-\[\#06080F\],
body.light-mode section.bg-\[\#06080f\],
body.light-mode .bg-\[\#0a0f1e\],
body.light-mode .bg-\[\#0a0f1e\]\/60 {
  background-color: #ffffff !important;
}

body.light-mode .bg-\[\#0B1120\],
body.light-mode .bg-\[\#0b1120\],
body.light-mode .bg-\[\#0A0F1C\],
body.light-mode .bg-\[\#0a0f1c\],
body.light-mode .bg-\[\#0a1020\],
body.light-mode .bg-\[\#0c1424\] {
  background-color: #f1f5f9 !important;
}

/* Cards & Panel overrides */
body.light-mode .glass-panel,
body.light-mode .glass-panel-mobile,
body.light-mode header.glass-panel {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03) !important;
}

body.light-mode .bg-\[\#06080F\]\/50,
body.light-mode .bg-\[\#0a0f1c\]\/50,
body.light-mode .bg-\[\#0A0F1C\]\/50,
body.light-mode .bg-\[\#06080f\]\/50,
body.light-mode .bg-brand-gray,
body.light-mode .bg-brand-gray\/40,
body.light-mode .bg-brand-gray\/50,
body.light-mode .bg-brand-lightGray,
body.light-mode .bg-brand-lightGray\/40,
body.light-mode .bg-brand-lightGray\/30,
body.light-mode .bg-\[\#10131d\],
body.light-mode .bg-\[\#111520\],
body.light-mode .bg-\[\#181d2c\] {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03) !important;
}

body.light-mode .bg-\[\#181d2c\] {
  background-color: #f8fafc !important;
}

/* Borders */
body.light-mode .border-white\/5,
body.light-mode .border-white\/10,
body.light-mode .border-white\/20,
body.light-mode .border-t-white\/10,
body.light-mode .border-b-white\/5,
body.light-mode .border-b-white\/10 {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Text overrides (safely excluding previews and products) */
body.light-mode .text-white:not(#card-preview-wrap *):not(#showcase-card *):not([data-src-id^="showcase-card-"] *):not(#visual-3d-nametag *):not(#metal-preview-container *),
body.light-mode .text-gray-100:not(#card-preview-wrap *):not(#showcase-card *):not([data-src-id^="showcase-card-"] *):not(#visual-3d-nametag *):not(#metal-preview-container *),
body.light-mode .text-gray-200:not(#card-preview-wrap *):not(#showcase-card *):not([data-src-id^="showcase-card-"] *):not(#visual-3d-nametag *):not(#metal-preview-container *),
body.light-mode .text-gray-300:not(#card-preview-wrap *):not(#showcase-card *):not([data-src-id^="showcase-card-"] *):not(#visual-3d-nametag *):not(#metal-preview-container *),
body.light-mode h1:not(#card-preview-wrap *):not(#showcase-card *):not([data-src-id^="showcase-card-"] *):not(#visual-3d-nametag *):not(#metal-preview-container *),
body.light-mode h2:not(#card-preview-wrap *):not(#showcase-card *):not([data-src-id^="showcase-card-"] *):not(#visual-3d-nametag *):not(#metal-preview-container *),
body.light-mode h3:not(#card-preview-wrap *):not(#showcase-card *):not([data-src-id^="showcase-card-"] *):not(#visual-3d-nametag *):not(#metal-preview-container *),
body.light-mode h4:not(#card-preview-wrap *):not(#showcase-card *):not([data-src-id^="showcase-card-"] *):not(#visual-3d-nametag *):not(#metal-preview-container *),
body.light-mode h5:not(#card-preview-wrap *):not(#showcase-card *):not([data-src-id^="showcase-card-"] *):not(#visual-3d-nametag *):not(#metal-preview-container *),
body.light-mode h6:not(#card-preview-wrap *):not(#showcase-card *):not([data-src-id^="showcase-card-"] *):not(#visual-3d-nametag *):not(#metal-preview-container *),
body.light-mode .font-orbitron:not(#card-preview-wrap *):not(#showcase-card *):not([data-src-id^="showcase-card-"] *):not(#visual-3d-nametag *):not(#metal-preview-container *) {
  color: #0f172a !important;
}

body.light-mode .text-gray-400:not(#card-preview-wrap *):not(#showcase-card *):not([data-src-id^="showcase-card-"] *):not(#visual-3d-nametag *):not(#metal-preview-container *),
body.light-mode .text-gray-500:not(#card-preview-wrap *):not(#showcase-card *):not([data-src-id^="showcase-card-"] *):not(#visual-3d-nametag *):not(#metal-preview-container *) {
  color: #475569 !important;
}

body.light-mode p:not(#card-preview-wrap *):not(#showcase-card *):not([data-src-id^="showcase-card-"] *):not(#visual-3d-nametag *):not(#metal-preview-container *),
body.light-mode span:not(.accent-text):not(.wa-label):not(.badge):not(.metal-badge):not(.cart-badge-desktop):not(#card-preview-wrap *):not(#showcase-card *):not([data-src-id^="showcase-card-"] *):not(#visual-3d-nametag *):not(#metal-preview-container *) {
  color: #334155 !important;
}

/* Language and Cart Controls */
body.light-mode #btn-lang-toggle,
body.light-mode button[onclick="toggleCartDrawer()"],
body.light-mode #mobile-menu-btn {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Nav links */
body.light-mode .nav-link {
  color: #475569 !important;
}
body.light-mode .nav-link:hover,
body.light-mode .nav-link.active {
  color: var(--accent-color) !important;
}

/* Mobile Nav Drawer */
body.light-mode #mobile-menu {
  background-color: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}
body.light-mode #mobile-menu a {
  color: #334155 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}
body.light-mode #mobile-menu a:hover {
  color: var(--accent-color) !important;
}

/* Inputs and Forms */
body.light-mode input[type="text"],
body.light-mode input[type="number"],
body.light-mode input[type="tel"],
body.light-mode input[type="email"],
body.light-mode input[type="url"],
body.light-mode textarea,
body.light-mode select {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}
body.light-mode input[type="text"]::placeholder,
body.light-mode input[type="number"]::placeholder,
body.light-mode input[type="tel"]::placeholder,
body.light-mode input[type="email"]::placeholder,
body.light-mode input[type="url"]::placeholder,
body.light-mode textarea::placeholder {
  color: #94a3b8 !important;
}

/* Interactive elements */
body.light-mode .stl-dropzone {
  border-color: rgba(0, 0, 0, 0.15) !important;
  background-color: #f8fafc !important;
}
body.light-mode .stl-viewport-container {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-mode #hero-section .bg-gradient-to-r.from-\[\#060c1a\]\/40 {
  background: linear-gradient(90deg, rgba(248, 250, 252, 0.8) 0%, transparent 50%, rgba(248, 250, 252, 0.8) 100%) !important;
}
body.light-mode #hero-section .bg-\[\#06080F\]\/10 {
  background-color: rgba(255, 255, 255, 0.3) !important;
}
body.light-mode #hero-section div.absolute.z-0 {
  opacity: 0.85 !important;
}
body.light-mode #hero-section video {
  filter: brightness(0.9) contrast(1.45) saturate(1.3) !important;
  opacity: 0.75 !important;
}

/* Floating WA CTA */
body.light-mode .float-wa-btn * {
  color: #ffffff !important;
}

/* Ensure accent colors are kept glowing */
body.light-mode .accent-text,
body.light-mode .accent-text * {
  color: var(--accent-color) !important;
}

/* Active theme mode button styling using CSS variables */
.theme-mode-active {
  background-color: var(--brand-light-gray, #171c2b) !important;
  border: 1px solid var(--accent-color) !important;
  box-shadow: 0 0 10px var(--accent-glow) !important;
  color: #ffffff !important;
}
.theme-mode-inactive {
  background-color: transparent !important;
  border: 1px solid transparent !important;
  color: #64748b !important;
}
.theme-mode-inactive:hover {
  background-color: var(--brand-light-gray, #171c2b) !important;
  color: #94a3b8 !important;
}

/* ==========================================================================
   ── LIGHT MODE POLISH & UI ADDITIONS ──
   ========================================================================== */

/* High-contrast accessible accent overrides for light mode */
body.light-mode {
  --accent-color: #0099b3 !important; /* Darker cyan for light background legibility */
  --accent-glow: rgba(0, 153, 179, 0.2) !important;
  --accent-hover: #00778c !important;
}
body.light-mode.theme-orange {
  --accent-color: #e03200 !important; /* Darker orange for light background legibility */
  --accent-glow: rgba(224, 50, 0, 0.25) !important;
  --accent-hover: #b32800 !important;
}

/* Exclude the 3D showcase card from text/color inversions */
body.light-mode #showcase-card *,
body.light-mode [data-src-id^="showcase-card-"] * {
  color: inherit !important; /* keeps original card styling */
}

/* Light mode overrides for structural elements & grids */
body.light-mode .carbon-texture {
  background-color: #f1f5f9 !important;
  background-image: 
    linear-gradient(45deg, #e2e8f0 25%, transparent 25%, transparent 75%, #e2e8f0 75%, #e2e8f0), 
    linear-gradient(45deg, #e2e8f0 25%, transparent 25%, transparent 75%, #e2e8f0 75%, #e2e8f0) !important;
}

body.light-mode .bg-grid {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px) !important;
}

/* Specific Page Section & Hero Overrides
   (#hero-section = custom-orders hero, #hero = index hero) */
body.light-mode #hero-section,
body.light-mode #hero {
  background: linear-gradient(160deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%) !important;
}
body.light-mode #hero-section div.absolute.bg-gradient-to-b,
body.light-mode #hero div.absolute.bg-gradient-to-b {
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.6), #f8fafc) !important;
}
body.light-mode #drag-viewer-section {
  background-color: #ffffff !important;
}
body.light-mode #drag-viewer-ambient {
  background: radial-gradient(ellipse at 50% 50%, var(--accent-glow), transparent 65%) !important;
}
body.light-mode #dashboard-showcase {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border-top-color: rgba(0, 0, 0, 0.08) !important;
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

/* Section styling for Benefits on custom orders page */
body.light-mode section.py-20[style*="background:linear-gradient"] {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
}
body.light-mode section.py-20 div.bg-\[\#0a0f1e\]\/60 {
  background-color: rgba(255, 255, 255, 0.6) !important;
}

/* Drawers & Overlays (Cart Drawer, Mobile Nav, Config Drawer) */
body.light-mode .glass-panel-heavy {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15) !important;
}

/* Custom UI Component Overrides (Benefit Cards) */
body.light-mode .benefit-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.95) 100%) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.03), 0 1px 0 rgba(255, 255, 255, 0.9) inset !important;
}
body.light-mode .benefit-card:hover {
  border-color: rgba(0, 0, 0, 0.12) !important;
  border-top-color: var(--accent-color) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08), 0 0 28px var(--accent-glow) !important;
}

/* Tool Sections */
body.light-mode .tool-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.95) 100%) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03), 0 1px 0 rgba(255, 255, 255, 0.9) inset !important;
}

/* Font Picker Overrides */
body.light-mode #font-picker-panel {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1) !important;
}
body.light-mode #font-search-input {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}
body.light-mode .font-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.03) !important;
  color: #334155 !important;
}
body.light-mode .font-item:hover {
  background: rgba(0, 229, 255, 0.05) !important;
  color: var(--accent-color) !important;
}
body.light-mode .font-item.active {
  background: rgba(0, 229, 255, 0.1) !important;
  color: var(--accent-color) !important;
}

/* Size Stepper Overrides */
body.light-mode .size-stepper {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}
body.light-mode .size-stepper-val {
  color: #0f172a !important;
  border-left-color: rgba(0, 0, 0, 0.08) !important;
  border-right-color: rgba(0, 0, 0, 0.08) !important;
}
body.light-mode .size-stepper-btn {
  color: #475569 !important;
}
body.light-mode .size-stepper-btn:hover {
  background: rgba(0, 229, 255, 0.08) !important;
  color: var(--accent-color) !important;
}

/* Design Selector Navigation buttons */
body.light-mode .design-arrow-btn {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #475569 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}
body.light-mode .design-arrow-btn:hover {
  background: #ffffff !important;
  border-color: var(--accent-color) !important;
  color: var(--accent-color) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), 0 0 10px var(--accent-glow) !important;
}
body.light-mode #design-name-label {
  color: #0f172a !important;
}

/* Mode Selectors Active/Inactive overrides */
body.light-mode .theme-mode-active {
  background-color: #ffffff !important;
  border-color: var(--accent-color) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), 0 0 8px var(--accent-glow) !important;
  color: var(--accent-color) !important;
}
body.light-mode .theme-mode-inactive {
  color: #94a3b8 !important;
}
body.light-mode .theme-mode-inactive:hover {
  background-color: rgba(0, 0, 0, 0.03) !important;
  color: #475569 !important;
}

/* Accessible color contrast overrides for specific buttons & tags */
body.light-mode .text-\[\#25D366\] {
  color: #15803d !important; /* Darker WhatsApp green for accessibility */
}
body.light-mode .border-\[\#25D366\]\/50 {
  border-color: rgba(21, 128, 61, 0.4) !important;
}
body.light-mode .bg-\[\#25D366\]\/20 {
  background-color: rgba(34, 197, 94, 0.1) !important;
}
body.light-mode .bg-\[\#25D366\]\/20:hover {
  background-color: rgba(34, 197, 94, 0.2) !important;
}

/* Glass-Metal Card Overrides in Light Mode */
body.light-mode .glass-metal {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.95) 50%, rgba(255, 255, 255, 0.9) 100%) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  border-top-color: rgba(255, 255, 255, 0.9) !important;
  border-left-color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.03), 
    0 1px 0 rgba(255, 255, 255, 0.9) inset !important;
}

body.light-mode .glass-metal:hover {
  border-color: rgba(0, 0, 0, 0.12) !important;
  border-top-color: var(--accent-color) !important;
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.06), 
    0 0 24px var(--accent-glow), 
    0 1px 0 rgba(255, 255, 255, 0.9) inset !important;
}

body.light-mode .glass-metal-dark {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.04), 
    0 1px 0 rgba(255, 255, 255, 0.9) inset !important;
}

body.light-mode .glass-metal-dark:hover {
  border-color: var(--accent-color) !important;
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.06), 
    0 0 24px var(--accent-glow), 
    0 1px 0 rgba(255, 255, 255, 0.9) inset !important;
}

body.light-mode .glass-metal-accent {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.95) 40%, rgba(255, 255, 255, 0.9) 100%) !important;
  border-color: var(--accent-color) !important;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.04), 
    0 0 20px var(--accent-glow), 
    0 1px 0 rgba(255, 255, 255, 0.9) inset !important;
}

body.light-mode .glass-metal-accent:hover {
  border-color: var(--accent-color) !important;
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.06), 
    0 0 36px var(--accent-glow), 
    0 1px 0 rgba(255, 255, 255, 0.9) inset !important;
}

/* Gradient Title Overrides in Light Mode */
body.light-mode .gradient-title {
  background: linear-gradient(135deg, #0f172a 0%, #334155 60%, var(--accent-color) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Disable Multiplying Dark Section Overlays in Light Mode */
body.light-mode #services div.absolute.bg-brand-darker\/90,
body.light-mode section div.absolute.bg-brand-darker\/90 {
  background-color: transparent !important;
  mix-blend-mode: normal !important;
}

/* Subtle dark border gradients for section dividers in Light Mode */
body.light-mode section {
  border-image: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.08), transparent) 1 !important;
}

/* ==========================================================================
   ── LIGHT MODE CONTRAST & CARD POLISH ──
   ========================================================================== */

/* Hero Badges & Pills */
body.light-mode .metal-badge {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.98) 100%) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #334155 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03), 0 1px 0 rgba(255, 255, 255, 0.9) inset !important;
}
body.light-mode .metal-badge * {
  color: #334155 !important;
}
body.light-mode .metal-badge i.accent-text {
  color: var(--accent-color) !important;
}
body.light-mode .metal-badge:hover,
body.light-mode .metal-badge.active {
  border-color: var(--accent-color) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03), 0 0 12px var(--accent-glow) !important;
}
body.light-mode .metal-badge:hover *,
body.light-mode .metal-badge.active * {
  color: var(--accent-color) !important;
}

/* Hero Status Bar */
body.light-mode .sys-status-bar {
  color: var(--accent-color) !important;
  opacity: 0.8 !important;
}

/* Secondary CTA "Get a Quote" */
body.light-mode .bg-brand-gray\/80 {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #0f172a !important;
}
body.light-mode .bg-brand-gray\/80:hover {
  background-color: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
  color: #0f172a !important;
}
body.light-mode .bg-brand-gray\/80 * {
  color: #0f172a !important;
}
body.light-mode .bg-brand-gray\/80:hover * {
  color: var(--accent-color) !important;
}

/* Hero Stats Cards */
body.light-mode .stat-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.98) 100%) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  border-top-color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.03), 0 1px 0 rgba(255, 255, 255, 0.9) inset !important;
}
body.light-mode .stat-card:hover {
  border-color: var(--accent-color) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.05), 0 0 15px var(--accent-glow) !important;
}
body.light-mode .stat-card .counter-value {
  color: #0f172a !important;
}
body.light-mode .stat-card:hover .counter-value {
  color: var(--accent-color) !important;
}
body.light-mode .stat-card p,
body.light-mode .stat-card span {
  color: #334155 !important;
}

/* Glass-Metal Cards Text Color Enforcements */
body.light-mode .glass-metal:not(#card-preview-wrap *):not(#showcase-card *):not([data-src-id^="showcase-card-"] *):not(#visual-3d-nametag *):not(#metal-preview-container *) h1,
body.light-mode .glass-metal:not(#card-preview-wrap *):not(#showcase-card *):not([data-src-id^="showcase-card-"] *):not(#visual-3d-nametag *):not(#metal-preview-container *) h2,
body.light-mode .glass-metal:not(#card-preview-wrap *):not(#showcase-card *):not([data-src-id^="showcase-card-"] *):not(#visual-3d-nametag *):not(#metal-preview-container *) h3,
body.light-mode .glass-metal:not(#card-preview-wrap *):not(#showcase-card *):not([data-src-id^="showcase-card-"] *):not(#visual-3d-nametag *):not(#metal-preview-container *) h4,
body.light-mode .glass-metal:not(#card-preview-wrap *):not(#showcase-card *):not([data-src-id^="showcase-card-"] *):not(#visual-3d-nametag *):not(#metal-preview-container *) p,
body.light-mode .glass-metal:not(#card-preview-wrap *):not(#showcase-card *):not([data-src-id^="showcase-card-"] *):not(#visual-3d-nametag *):not(#metal-preview-container *) span:not(.accent-text),
body.light-mode .glass-metal:not(#card-preview-wrap *):not(#showcase-card *):not([data-src-id^="showcase-card-"] *):not(#visual-3d-nametag *):not(#metal-preview-container *) li {
  color: #334155 !important;
}
body.light-mode .glass-metal strong {
  color: #0f172a !important;
}

/* Overlaid Text inside GIF Containers (needs to stay white on dark gradients) */
body.light-mode .group\/gif * {
  color: #ffffff !important;
}
body.light-mode .group\/gif .accent-text,
body.light-mode .group\/gif .accent-text * {
  color: var(--accent-color) !important;
}

/* Dark Section Background Multiplier Overlays */
body.light-mode .bg-brand-darker\/90 {
  background-color: rgba(255, 255, 255, 0.4) !important;
  mix-blend-mode: normal !important;
}

/* Footer Business Contact Card (`.biz-card`) */
body.light-mode .biz-card {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
}
body.light-mode .biz-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06), 0 0 20px var(--accent-glow) !important;
}
body.light-mode .biz-card-body {
  color: #0f172a !important;
}
body.light-mode .biz-card-divider {
  background: rgba(0, 0, 0, 0.08) !important;
  opacity: 1 !important;
}
body.light-mode .biz-contact-icon {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}
body.light-mode .biz-contact-label {
  color: #64748b !important;
}
body.light-mode .biz-contact-val {
  color: #0f172a !important;
}
body.light-mode .biz-social-btn {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #475569 !important;
}
body.light-mode .biz-social-btn:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: var(--accent-color) !important;
  color: var(--accent-color) !important;
}

/* Secret Terminal Window (`.terminal-window`) */
body.light-mode .terminal-section {
  background-color: #f8fafc !important;
  border-top-color: rgba(0, 0, 0, 0.08) !important;
}
body.light-mode .terminal-window {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}
body.light-mode .terminal-window::before {
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.03),
    rgba(0, 0, 0, 0.03) 1px,
    transparent 1px,
    transparent 2px
  ) !important;
}
body.light-mode .terminal-prompt {
  color: #15803d !important;
}
body.light-mode .terminal-input {
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  color: #0f172a !important;
}
body.light-mode .terminal-output {
  color: #334155 !important;
  text-shadow: none !important;
}

/* Material Intelligence Database Selector Chips */
body.light-mode .mat-chip {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #64748b !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
}
body.light-mode .mat-chip:hover {
  background: #ffffff !important;
  border-color: var(--mat-color) !important;
  color: var(--mat-color) !important;
}
body.light-mode .mat-chip.active {
  background: #ffffff !important;
  border-color: var(--mat-color) !important;
  color: var(--mat-color) !important;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--mat-color) 15%, transparent),
              0 0 10px color-mix(in srgb, var(--mat-color) 10%, transparent) !important;
}

/* Material Spec Comparison Cards */
body.light-mode .mat-spec-card {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}
body.light-mode .mat-spec-card:hover {
  border-color: var(--mat-color) !important;
  box-shadow: 0 8px 28px color-mix(in srgb, var(--mat-color) 12%, transparent) !important;
}
body.light-mode .mat-spec-grade {
  color: #64748b !important;
}
body.light-mode .mat-spec-note {
  color: #475569 !important;
}
body.light-mode .mat-spec-grid > div {
  background: #f8fafc !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}
body.light-mode .mat-spec-key {
  color: #64748b !important;
}
body.light-mode .mat-spec-val {
  color: #0f172a !important;
}

/* Material Table Layout Updates */
body.light-mode .mat-table-row:hover {
  background: rgba(0, 0, 0, 0.025) !important;
}
body.light-mode .mat-table-row.border-b {
  border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}

/* Custom Card Designer Font Button & Brand Banner */
body.light-mode #font-btn {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #0f172a !important;
}
body.light-mode #font-btn * {
  color: #0f172a !important;
}
body.light-mode .biz-banner {
  background: linear-gradient(90deg, #ffffff 0%, #f1f5f9 50%, #ffffff 100%) !important;
  border-top-color: rgba(0, 0, 0, 0.08) !important;
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}
body.light-mode .biz-banner h3 {
  color: #0f172a !important;
}
body.light-mode .biz-banner p {
  color: #475569 !important;
}
body.light-mode .biz-banner a {
  border-color: var(--accent-color) !important;
  color: var(--accent-color) !important;
}
body.light-mode .biz-banner a:hover {
  background-color: var(--accent-color) !important;
  color: #ffffff !important;
}

#designer {
  background: radial-gradient(circle at 50% 25%, #3c4257 0%, #212633 70%, #0d1017 100%);
}

.text-glow {
  text-shadow: 0 0 8px var(--accent-glow);
}
body.light-mode .text-glow {
  text-shadow: none !important;
}

/* Card Designer Section Background Override in Light Mode */
body.light-mode #designer {
  background: radial-gradient(circle at 50% 25%, #f1f5f9 0%, #f8fafc 70%, #ffffff 100%) !important;
}

/* Card Designer Text Labels & Contrast Overrides */
body.light-mode #designer .hkm-label {
  color: #475569 !important;
}
body.light-mode #designer h3,
body.light-mode #designer .text-gray-400,
body.light-mode #designer .text-gray-500 {
  color: #475569 !important;
}
body.light-mode #designer .text-white {
  color: #0f172a !important;
}

/* Reset button and Upload button overrides in light mode */
body.light-mode #designer button[onclick="resetDesigner()"] {
  background-color: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}
body.light-mode #designer button[onclick="resetDesigner()"]:hover {
  background-color: #cbd5e1 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}
body.light-mode #designer button[onclick*="f-logo"] {
  border-color: #cbd5e1 !important;
  color: #475569 !important;
  background-color: rgba(0, 0, 0, 0.02) !important;
}
body.light-mode #designer button[onclick*="f-logo"]:hover {
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  background-color: rgba(0, 0, 0, 0.05) !important;
}

/* Form Inputs Explicit Overrides */
body.light-mode .hkm-input {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}
body.light-mode .hkm-input::placeholder {
  color: #94a3b8 !important;
}

/* Card Designer SVG Export Button Override in Light Mode */
body.light-mode .export-btn-svg {
  background: #ffffff !important;
  color: #334155 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: none !important;
}
body.light-mode .export-btn-svg:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}

/* Benefits Section Background Video (disables screen blending to prevent washing out) */
body.light-mode section.py-20 video.mix-blend-screen {
  mix-blend-mode: normal !important;
  opacity: 0.45 !important;
  filter: brightness(0.9) contrast(1.45) saturate(1.3) !important;
}

/* ===================================================================
   Light-mode fixes — injected panels that kept their hardcoded dark
   background (the `/95` opacity variant was missing from the maps above),
   producing dark-text-on-dark-background. Added 2026-06-13.
   =================================================================== */

/* Cookie & Storage consent banner (injected by JS, class bg-[#06080F]/95) */
body.light-mode #cookie-consent-banner {
  background-color: rgba(255, 255, 255, 0.97) !important;
  border-top-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.08) !important;
}
body.light-mode #cookie-consent-banner h4,
body.light-mode #cookie-consent-banner p,
body.light-mode #cookie-consent-banner span,
body.light-mode #cookie-consent-banner strong {
  color: #0f172a !important;
}
/* Keep the secondary "Decline" action readable on the now-light surface. */
body.light-mode #cookie-consent-banner button:not(.bg-brand-blue):not([class*="bg-["]) {
  color: #334155 !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}

/* Generic safety net: any remaining /90 or /95 dark surfaces. */
body.light-mode .bg-\[\#06080F\]\/90,
body.light-mode .bg-\[\#06080f\]\/90,
body.light-mode .bg-\[\#06080F\]\/95,
body.light-mode .bg-\[\#06080f\]\/95 {
  background-color: rgba(255, 255, 255, 0.97) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Sub-page headers (privacy.html / terms.html) use bg-brand-darker with /70,
   /80, /90 opacities — variants that weren't in the maps above, so the sticky
   header stayed dark while its text was forced dark (dark-on-dark). Map them. */
body.light-mode header.bg-brand-darker\/70,
body.light-mode header.bg-brand-darker\/80,
body.light-mode header.bg-brand-darker\/90,
body.light-mode .bg-brand-darker\/70,
body.light-mode .bg-brand-darker\/80,
body.light-mode .bg-brand-darker\/90 {
  background-color: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* ═══════════════════════════════════════════════
   HKM UI LAYER — shared beautification utilities
   Added 2026-07: consistent panels, cards, buttons,
   prices and toasts used across all pages.
   Every class here has a light-mode counterpart at
   the bottom of this section.
   ═══════════════════════════════════════════════ */

.hkm-panel {
  background: linear-gradient(150deg, rgba(37, 42, 55, 0.55), rgba(20, 22, 28, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* Product / feature card: consistent radius, quiet border,
   lift + accent edge on hover. Wrap media in .hkm-media. */
.hkm-card {
  background: linear-gradient(160deg, rgba(37, 42, 55, 0.5), rgba(13, 15, 20, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease, box-shadow 0.35s ease;
}
.hkm-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent-color) 45%, transparent);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 22px var(--accent-glow);
}

/* Fixed-ratio media frame with gentle zoom on card hover. */
.hkm-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: block;
}
.hkm-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hkm-card:hover .hkm-media img { transform: scale(1.05); }

/* Buttons: one base, two variants. Sized for touch (min 44px). */
.hkm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.4rem;
  border-radius: 0.75rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.25s ease,
              background-color 0.25s ease, border-color 0.25s ease;
  user-select: none;
}
.hkm-btn:active { transform: scale(0.97); }
.hkm-btn-accent {
  background: var(--accent-color);
  color: #0d0f14;
  box-shadow: 0 0 18px var(--accent-glow);
}
.hkm-btn-accent:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 28px var(--accent-glow);
}
.hkm-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #e5e7eb;
  border-color: rgba(255, 255, 255, 0.14);
}
.hkm-btn-ghost:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  box-shadow: 0 0 14px var(--accent-glow);
}

/* Price chip shown on product cards. */
.hkm-price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-color);
  text-shadow: 0 0 12px var(--accent-glow);
  white-space: nowrap;
}
.hkm-price .hkm-price-note {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  color: #9ca3af;
  text-shadow: none;
}

/* Toast notifications (used by designer + quote tools). */
#hkm-toast-stack {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  pointer-events: none;
}
.hkm-toast {
  pointer-events: auto;
  max-width: min(92vw, 26rem);
  padding: 0.7rem 1.1rem;
  border-radius: 0.75rem;
  background: rgba(20, 22, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f3f4f6;
  font-size: 0.85rem;
  line-height: 1.4;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: hkm-toast-in 0.25s ease;
}
.hkm-toast.hkm-toast-error { border-color: rgba(248, 113, 113, 0.6); }
.hkm-toast.hkm-toast-success { border-color: color-mix(in srgb, var(--accent-color) 60%, transparent); }
.hkm-toast.hkm-toast-out { animation: hkm-toast-out 0.3s ease forwards; }
@keyframes hkm-toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes hkm-toast-out { to { opacity: 0; transform: translateY(10px); } }

/* Section rhythm helpers. */
.hkm-eyebrow {
  display: inline-block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 0.75rem;
}

/* Invalid form field highlight (designer validation). */
.hkm-field-invalid {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.55), 0 0 14px rgba(248, 113, 113, 0.25) !important;
}

/* ── Light-mode counterparts ── */
body.light-mode .hkm-panel {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.09);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}
body.light-mode .hkm-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}
body.light-mode .hkm-card:hover {
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12), 0 0 18px var(--accent-glow);
}
body.light-mode .hkm-btn-ghost {
  background: rgba(15, 23, 42, 0.03);
  color: #1f2937;
  border-color: rgba(0, 0, 0, 0.16);
}
body.light-mode .hkm-price .hkm-price-note { color: #6b7280; }
body.light-mode .hkm-toast {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(0, 0, 0, 0.12);
  color: #111827;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.15);
}


/* ── Light-mode fixes 2026-09-22 (audit: dark-on-dark text in light theme) ──
   Purpose: light mode recolours grey text to dark slate, but some containers
   kept their dark backgrounds. These rules give those containers light
   backgrounds (or darken inline-coloured text) so text stays readable. */
/* Terminal-style card headers (index: radar / property / spec cards). */
body.light-mode .terminal-header {
  background: rgba(241, 245, 249, 0.95);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
/* Dark tinted badges ("Popular", warnings, info pills). */
body.light-mode .bg-emerald-950 { background-color: #d1fae5 !important; }
body.light-mode .bg-emerald-950 span,
body.light-mode span.bg-emerald-950 { color: #047857 !important; }
body.light-mode .bg-amber-950\/40 { background-color: #fef3c7 !important; }
body.light-mode .bg-sky-950\/40 { background-color: #e0f2fe !important; }
body.light-mode .bg-red-950\/40,
body.light-mode .bg-red-900\/60 { background-color: #fee2e2 !important; }
/* Materials comparison table: inline neon colours are too light on white. */
body.light-mode #mat-table .mat-th,
body.light-mode #mat-table td span[style*="color"] { filter: brightness(0.62) saturate(1.5); }
body.light-mode .mat-bar-label { color: #4b5563; }
/* Captions drawn over dark photos (bg-black image frames) must stay white in light mode. */
body.light-mode .bg-black .text-white,
body.light-mode .bg-black .text-gray-400 { color: #ffffff !important; }
body.light-mode .bg-black .text-gray-400 { color: #d1d5db !important; }
/* Footer on instant-quote + custom-orders uses bg-[#0d0f14]; give it a light twin. */
body.light-mode footer.bg-\[\#0d0f14\] {
  background-color: #f1f5f9 !important;
  border-top-color: rgba(0, 0, 0, 0.08) !important;
}
body.light-mode footer.bg-\[\#0d0f14\] .text-white { color: #0f172a !important; }
body.light-mode footer.bg-\[\#0d0f14\] .text-gray-600 { color: #475569 !important; }
/* Card designer 3D viewer: back face is a dark card, keep its text white; make hints readable on white. */
body.light-mode #showcase-card-back .back-logo { color: rgba(255, 255, 255, 0.92) !important; }
body.light-mode #showcase-card-back .back-caption { color: rgba(255, 255, 255, 0.6) !important; }
body.light-mode #drag-hint { color: #0369a1 !important; }
body.light-mode #drag-reset-hint { color: #64748b !important; }
