/* 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: #08090c;
    }
    ::-webkit-scrollbar-thumb {
      background: #192033;
      border-radius: 4px;
      border: 2px solid #08090c;
    }
    ::-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.35);
      --accent-hover: #00b8cc;
    }

    .theme-orange {
      --accent-color: #ff3f00;
      --accent-glow: rgba(255, 63, 0, 0.35);
      --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);
    }

    /* 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: #08090c;
      background-image: 
        linear-gradient(45deg, #0a0c14 25%, transparent 25%, transparent 75%, #0a0c14 75%, #0a0c14), 
        linear-gradient(45deg, #0a0c14 25%, transparent 25%, transparent 75%, #0a0c14 75%, #0a0c14);
      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(16, 19, 29, 0.7);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .glass-panel-heavy {
      background: rgba(8, 9, 13, 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: #040507;
      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: #171c2b;
      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(16, 19, 29, 0.8);
  color: #6b7280;
  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: #6b7280;
  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(16, 19, 29, 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: #4b5563;
  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: #4b5563;
  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: justify;
}

/* ═══════════════════════════════════════════════
   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: #4b5563;
  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: #6b7280;
  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 ── */
@media (pointer: fine) {
  body, a, button, input, .mat-chip, .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); } }

/* ── 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(22, 27, 45, 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;
  }
}
