/* ═══════════════════════════════════════════════════════════
   MOTION SYSTEM — 3Desher Cinematic
   Spring easing: cubic-bezier(0.22, 1, 0.36, 1)
   Colors: #FF6B00 · #080808 · #f0f0f0
   ═══════════════════════════════════════════════════════════ */

/* ── Global Theme Transition ─────────────────────────────── */
body,
.site-navbar-shell,
.pp-hero,
.pp-section,
.site-footer,
.card, .pp-card, .product-card, .category-card,
.dropdown-menu, .modal-content,
.form-control, .form-select, .input-group-text,
.btn, .btn-orange, .btn-ghost, .btn-outline-primary,
.nav-icon-btn, .theme-toggle,
.shop-tab, .material-tab, .footer-link {
  transition-property: background-color, color, border-color, box-shadow;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}

/* ── 1. Page Transition Overlay ──────────────────────────── */
#fm-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg, #080808);
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
}

#fm-overlay.fm-visible {
  opacity: 1;
  pointer-events: all;
}

/* Page enter */
@keyframes fm-enter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fm-page-enter {
  animation: fm-enter 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── 2. Scroll Motion — Base States ─────────────────────── */
[data-motion],
.motion-item {
  opacity: 0;
  will-change: opacity, transform;
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-motion="fade-up"]    { transform: translateY(36px); }
[data-motion="fade-down"]  { transform: translateY(-36px); }
[data-motion="fade-left"]  { transform: translateX(36px); }
[data-motion="fade-right"] { transform: translateX(-36px); }
[data-motion="scale"]      { transform: scale(0.9); }
[data-motion="fade"]       { transform: none; }

[data-motion].in-view,
.motion-item.in-view {
  opacity: 1;
  transform: none !important;
}

/* Delay utilities */
.md-1 { transition-delay: 0.08s !important; }
.md-2 { transition-delay: 0.16s !important; }
.md-3 { transition-delay: 0.24s !important; }
.md-4 { transition-delay: 0.32s !important; }
.md-5 { transition-delay: 0.40s !important; }
.md-6 { transition-delay: 0.50s !important; }

/* ── 3. Stagger Grids ────────────────────────────────────── */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-stagger].in-view > *:nth-child(1)   { opacity: 1; transform: none; transition-delay: 0.04s; }
[data-stagger].in-view > *:nth-child(2)   { opacity: 1; transform: none; transition-delay: 0.10s; }
[data-stagger].in-view > *:nth-child(3)   { opacity: 1; transform: none; transition-delay: 0.16s; }
[data-stagger].in-view > *:nth-child(4)   { opacity: 1; transform: none; transition-delay: 0.22s; }
[data-stagger].in-view > *:nth-child(5)   { opacity: 1; transform: none; transition-delay: 0.28s; }
[data-stagger].in-view > *:nth-child(6)   { opacity: 1; transform: none; transition-delay: 0.34s; }
[data-stagger].in-view > *:nth-child(7)   { opacity: 1; transform: none; transition-delay: 0.40s; }
[data-stagger].in-view > *:nth-child(8)   { opacity: 1; transform: none; transition-delay: 0.46s; }
[data-stagger].in-view > *:nth-child(n+9) { opacity: 1; transform: none; transition-delay: 0.52s; }

/* ── 4. Card Hover Lift ──────────────────────────────────── */
.card,
.product-card,
.pp-card,
.blog-card,
.model-card,
.category-card {
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    background-color 0.3s ease !important;
  transform-origin: center bottom;
  backface-visibility: hidden;
}

.card:hover,
.product-card:hover,
.pp-card:hover,
.blog-card:hover,
.model-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 24px 60px rgba(255,107,0,0.14),
    0 8px 24px rgba(0,0,0,0.2) !important;
  border-color: rgba(255,107,0,0.22) !important;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 44px rgba(255,107,0,0.18) !important;
}

/* Card image zoom */
.product-card .card-img-top,
.pp-card .card-img-top,
.blog-card .card-img-top,
.model-card .card-img-top,
.product-card img,
.pp-card img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.product-card:hover .card-img-top,
.pp-card:hover .card-img-top,
.blog-card:hover .card-img-top,
.model-card:hover .card-img-top,
.product-card:hover img,
.pp-card:hover img {
  transform: scale(1.06);
}

/* ── 5. Button Interactions ──────────────────────────────── */
.btn {
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.2s ease,
    box-shadow 0.25s ease,
    border-color 0.2s ease,
    color 0.15s ease;
}

.btn:active { transform: scale(0.95) !important; }

.btn-orange {
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    background-color 0.2s ease !important;
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255,107,0,0.45) !important;
}

.btn-orange:active {
  transform: scale(0.95) translateY(0) !important;
  box-shadow: 0 4px 12px rgba(255,107,0,0.2) !important;
}

/* ── 6. Navbar Scroll ────────────────────────────────────── */
.site-navbar {
  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease,
    -webkit-backdrop-filter 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.site-navbar.navbar-scrolled {
  background: rgba(8,8,8,0.96) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  box-shadow: 0 4px 32px rgba(0,0,0,0.4) !important;
}

[data-theme="light"] .site-navbar.navbar-scrolled {
  background: rgba(248,248,248,0.95) !important;
  box-shadow: 0 4px 32px rgba(0,0,0,0.08) !important;
}

.site-navbar.navbar-hidden {
  transform: translateY(-110%) !important;
  opacity: 0;
  pointer-events: none;
}

/* Nav link underline animation */
.site-nav-center .nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.site-nav-center .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary, #FF6B00);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav-center .nav-link:hover::after { width: 55%; }
.site-nav-center .nav-link.active::after { width: 65%; }

/* ── 7. Form Focus ───────────────────────────────────────── */
.form-control,
.form-select {
  transition:
    border-color 0.25s ease,
    box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.25s ease !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary, #FF6B00) !important;
  box-shadow:
    0 0 0 3px rgba(255,107,0,0.15),
    0 2px 8px rgba(255,107,0,0.08) !important;
  outline: none;
}

/* ── 8. Calculator Modal ─────────────────────────────────── */
.print-calc-overlay {
  opacity: 0;
  transition: opacity 0.32s ease !important;
  pointer-events: none;
}

.print-calc-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.print-calc-overlay .print-calc-modal {
  transform: translateY(28px) scale(0.95);
  opacity: 0;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.32s ease !important;
}

.print-calc-overlay.open .print-calc-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ── 9. Floating Calc Button ─────────────────────────────── */
.floating-calc-btn {
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease,
    background-color 0.2s ease !important;
}

.floating-calc-btn:hover {
  transform: translateY(-5px) scale(1.06) !important;
  box-shadow: 0 16px 44px rgba(255,107,0,0.52) !important;
}

.floating-calc-btn:active { transform: scale(0.95) !important; }

/* ── 10. Admin Sidebar ───────────────────────────────────── */
.sidebar .nav-link {
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.sidebar .nav-link:hover  { transform: translateX(4px) !important; }
.sidebar .nav-link.active { transform: translateX(4px) !important; }

/* ── 11. Admin Stat Cards ────────────────────────────────── */
.stat-card,
[class*="admin-stat"],
.dashboard-stat {
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease !important;
}

.stat-card:hover,
[class*="admin-stat"]:hover,
.dashboard-stat:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 48px rgba(255,107,0,0.12),
    0 4px 14px rgba(0,0,0,0.2) !important;
}

/* ── 12. Table Row Hover ─────────────────────────────────── */
.table tbody tr {
  transition: background-color 0.18s ease;
}

.table tbody tr:hover {
  background-color: var(--orange-dim) !important;
}

/* ── 13. Toast ───────────────────────────────────────────── */
@keyframes toast-slide-in {
  from { opacity: 0; transform: translateX(110%) scale(0.9); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toast-slide-out {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to   { opacity: 0; transform: translateX(110%) scale(0.9); }
}

.toast.show    { animation: toast-slide-in  0.38s cubic-bezier(0.22, 1, 0.36, 1) both; }
.toast.hiding  { animation: toast-slide-out 0.26s ease forwards; }

/* ── 14. Alert ───────────────────────────────────────────── */
@keyframes alert-drop {
  from { opacity: 0; transform: translateY(-14px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.alert { animation: alert-drop 0.35s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ── 15. Dropdown ────────────────────────────────────────── */
@keyframes dropdown-pop {
  from { opacity: 0; transform: translateY(-10px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

.dropdown-menu.show {
  animation: dropdown-pop 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── 16. Hero ────────────────────────────────────────────── */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pp-hero-badge   { animation: hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both; }
.pp-hero h1      { animation: hero-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both; }
.pp-hero p       { animation: hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both; }
.pp-hero .d-flex { animation: hero-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.36s both; }

.pp-printer-stage { animation: hero-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both; }

/* Generic hero classes */
.hero-title,
.hero h1  { animation: hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both; }
.hero-subtitle,
.hero .lead,
.hero h2  { animation: hero-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both; }
.hero .btn,
.hero .hero-actions { animation: hero-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.38s both; }

/* ── 17. Skeleton Shimmer ────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -800px 0; }
  100% { background-position:  800px 0; }
}

.skeleton {
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    var(--bg-soft, #0d0d0d) 25%,
    var(--border, rgba(255,255,255,0.08)) 50%,
    var(--bg-soft, #0d0d0d) 75%
  );
  background-size: 800px 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

/* ── 18. Scroll-to-top ───────────────────────────────────── */
#fm-scroll-top {
  position: fixed;
  bottom: 88px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary, #FF6B00);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 490;
  box-shadow: 0 6px 24px rgba(255,107,0,0.38);
  opacity: 0;
  transform: scale(0) translateY(10px);
  transition:
    opacity 0.32s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  font-size: 1.1rem;
}

#fm-scroll-top.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

#fm-scroll-top:hover {
  transform: scale(1.14) translateY(-2px);
  box-shadow: 0 12px 34px rgba(255,107,0,0.52);
}

#fm-scroll-top:active { transform: scale(0.92); }

/* ── 19. Theme Toggle ────────────────────────────────────── */
.theme-toggle {
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease !important;
}

.theme-toggle:active {
  transform: scale(0.86) rotate(-18deg) !important;
}

/* ── 20. Badge Pulse ─────────────────────────────────────── */
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,0,0.45); }
  50%       { box-shadow: 0 0 0 6px rgba(255,107,0,0); }
}

.cart-count,
.badge.bg-danger {
  animation: badge-pulse 2.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

/* ── 21. Nav Icon ────────────────────────────────────────── */
.nav-icon-btn {
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease !important;
}

.nav-icon-btn:hover  { transform: scale(1.12) translateY(-1px) !important; }
.nav-icon-btn:active { transform: scale(0.92) !important; }

/* ── 22. Topbar ──────────────────────────────────────────── */
.topbar {
  transition:
    background 0.25s ease,
    border-color 0.25s ease !important;
}

/* ── 23. Auth Card ───────────────────────────────────────── */
@keyframes auth-card-in {
  from { opacity: 0; transform: translateY(36px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

.auth-card,
.login-card,
.register-card {
  animation: auth-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

/* ── 24. Range Input ─────────────────────────────────────── */
.form-range { transition: none; }

.form-range::-webkit-slider-thumb {
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.form-range::-webkit-slider-thumb:active { transform: scale(1.3); }

/* ── 25. Material Controls ───────────────────────────────── */
.material-tab {
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.material-tab:hover { transform: translateY(-1px) !important; }

.material-row-choice {
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.material-row-choice:hover { transform: translateX(4px) !important; }

/* ── 26. Quantity Stepper ────────────────────────────────── */
.quantity-stepper .btn {
  transition:
    transform 0.16s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.16s ease !important;
}

.quantity-stepper .btn:active { transform: scale(0.88) !important; }

/* ── 27. Orange glow CTA pulse ───────────────────────────── */
@keyframes cta-glow {
  0%, 100% { box-shadow: 0 8px 26px rgba(255,107,0,0.35); }
  50%       { box-shadow: 0 12px 40px rgba(255,107,0,0.6); }
}

.pp-hero .btn-orange:not(:hover) {
  animation: cta-glow 3s ease-in-out infinite;
}

/* ── 28. Reduce Motion ───────────────────────────────────── */
@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;
  }

  [data-motion],
  .motion-item,
  [data-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── 29. Feature icon bounce ─────────────────────────────── */
@keyframes icon-bounce {
  0%, 100% { transform: scale(1) rotate(0deg); }
  30%       { transform: scale(1.18) rotate(-8deg); }
  60%       { transform: scale(1.08) rotate(4deg); }
}

.pp-feature-card:hover .pp-feature-icon i {
  animation: icon-bounce 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── 30. Category card lift ──────────────────────────────── */
.pp-category-card {
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease !important;
}
.pp-category-card:hover {
  transform: translateY(-6px) scale(1.01) !important;
  box-shadow:
    0 24px 60px rgba(255,107,0,0.16),
    0 8px 24px rgba(0,0,0,0.25) !important;
}

/* ── 31. Hero badge entrance ────────────────────────────── */
@keyframes badge-glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,0,0); }
  50%       { box-shadow: 0 0 0 8px rgba(255,107,0,0.08); }
}
.pp-hero-badge {
  animation: hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both,
             badge-glow-pulse 3s ease-in-out 1s infinite;
}

/* ── 32. Stat number pulse on enter ─────────────────────── */
@keyframes stat-pop {
  0%   { transform: scale(0.7); opacity: 0; }
  60%  { transform: scale(1.1); }
  100% { transform: scale(1);   opacity: 1; }
}
.pp-hero-stats.in-view .pp-hero-stat-num {
  animation: stat-pop 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.pp-hero-stats.in-view .pp-hero-stat:nth-child(1) .pp-hero-stat-num { animation-delay: 0.05s; }
.pp-hero-stats.in-view .pp-hero-stat:nth-child(3) .pp-hero-stat-num { animation-delay: 0.12s; }
.pp-hero-stats.in-view .pp-hero-stat:nth-child(5) .pp-hero-stat-num { animation-delay: 0.19s; }
.pp-hero-stats.in-view .pp-hero-stat:nth-child(7) .pp-hero-stat-num { animation-delay: 0.26s; }

/* ── 33. Gradient border on product card image ──────────── */
.pp-product-media {
  transition: box-shadow 0.35s ease;
}
.pp-product-card:hover .pp-product-media {
  box-shadow: inset 0 0 0 2px rgba(255,107,0,0.22);
}

/* ── 34. Form label slide in ────────────────────────────── */
.form-label {
  transition: color 0.2s ease;
}
.form-control:focus + .form-label,
.form-select:focus + .form-label {
  color: var(--orange);
}

/* ── 35. Floating calc button continuous breathe ────────── */
@keyframes calc-breathe {
  0%, 100% { box-shadow: 0 8px 32px rgba(255,107,0,0.40); }
  50%       { box-shadow: 0 12px 48px rgba(255,107,0,0.62); }
}
.floating-calc-btn:not(:hover) {
  animation: calc-breathe 3.5s ease-in-out infinite;
}

/* ── Enhanced Card Hover Lift ────────────────────────────── */
.pp-process-step,
.pp-material-card,
.pp-feature-card {
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease !important;
  backface-visibility: hidden;
}

/* ── Number Counter ─────────────────────────────────────── */
@keyframes count-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pp-hero-stat-num.counting {
  animation: count-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Process step entrance ───────────────────────────────── */
[data-stagger].in-view > .pp-process-step:nth-child(1) { transition-delay: 0.05s; }
[data-stagger].in-view > .pp-process-step:nth-child(2) { transition-delay: 0.15s; }
[data-stagger].in-view > .pp-process-step:nth-child(3) { transition-delay: 0.25s; }

/* ── Material card entrance ──────────────────────────────── */
[data-stagger].in-view > .pp-material-card:nth-child(1) { transition-delay: 0.04s; }
[data-stagger].in-view > .pp-material-card:nth-child(2) { transition-delay: 0.12s; }
[data-stagger].in-view > .pp-material-card:nth-child(3) { transition-delay: 0.20s; }
[data-stagger].in-view > .pp-material-card:nth-child(4) { transition-delay: 0.28s; }

/* ── CTA section entrance ────────────────────────────────── */
[data-motion="zoom-in"] { transform: scale(0.94); opacity: 0; }
[data-motion="zoom-in"].in-view {
  transform: scale(1);
  opacity: 1;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
}

/* ── Hero orb parallax hint ──────────────────────────────── */
@keyframes hero-badge-in {
  from { opacity: 0; transform: translateY(-12px) scale(0.92); }
  to   { opacity: 1; transform: none; }
}
.pp-hero-badge {
  animation: hero-badge-in 0.6s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.pp-hero h1 {
  animation: fm-enter 0.7s 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.pp-hero p {
  animation: fm-enter 0.65s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.pp-hero .d-flex.gap-3 {
  animation: fm-enter 0.6s 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.pp-hero-stats {
  animation: fm-enter 0.55s 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Floating chips ─────────────────────────────────────── */
@keyframes chip-in {
  from { opacity: 0; transform: scale(0.8) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.pp-printer-chip:nth-child(1) { animation: chip-float 6s 0.3s ease-in-out infinite, chip-in 0.6s 0.8s cubic-bezier(0.22,1,0.36,1) both; }
.pp-printer-chip:nth-child(2) { animation: chip-float 6s 2.5s ease-in-out infinite, chip-in 0.6s 1.0s cubic-bezier(0.22,1,0.36,1) both; }
.pp-printer-chip:nth-child(3) { animation: chip-float 6s 4.5s ease-in-out infinite, chip-in 0.6s 1.2s cubic-bezier(0.22,1,0.36,1) both; }

/* ── Printer levitate ─────────────────────────────────────── */
.pp-printer-float {
  animation: printer-levitate 5s 0.6s ease-in-out infinite, fm-enter 0.8s 0.3s cubic-bezier(0.22,1,0.36,1) both;
}

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .pp-hero-orb,
  .pp-printer-ring,
  .pp-printer-ring-2,
  .pp-printer-chip,
  .pp-printer-float,
  .pp-marquee-inner,
  .pp-hero h1, .pp-hero p,
  .pp-hero-badge, .pp-hero .d-flex.gap-3, .pp-hero-stats {
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   GSAP CINEMATIC LAYER
   Applied when html.gsap-loaded — GSAP owns all scroll states.
   ═══════════════════════════════════════════════════════════ */

/* ── When GSAP loads, disable CSS fallback opacity/transform ── */
html.gsap-loaded [data-motion],
html.gsap-loaded .motion-item {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  will-change: auto;
}

html.gsap-loaded [data-stagger] > * {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ── 36. PRELOADER ──────────────────────────────── */
#dshr-pre {
  position: fixed;
  inset: 0;
  background: var(--bg, #080808);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

.dshr-pre-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.dshr-pre-logo {
  font-size: clamp(2.2rem, 7vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #FF6B00 0%, #FF8C3A 55%, #FFB347 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  opacity: 0; /* GSAP animates in */
}

.dshr-pre-tagline {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted, #777);
  opacity: 0;
}

.dshr-pre-bar {
  width: 160px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}

.dshr-pre-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #FF6B00, #FFB347);
  border-radius: 2px;
}

/* ── 37. CUSTOM CURSOR ──────────────────────────── */
#dshr-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99998;
  opacity: 0; /* revealed on first mousemove */
}

.dshr-cur-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FF6B00;
  margin-left: -3px;
  margin-top: -3px;
  will-change: transform;
}

.dshr-cur-ring {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 107, 0, 0.6);
  margin-left: -17px;
  margin-top: -17px;
  will-change: transform;
  transform-origin: center center;
}

/* Custom cursor removed — native cursor used */

/* ── 38. PROGRESS BAR (GSAP-driven scaleX) ──────── */
html.gsap-loaded #page-progress,
html.gsap-loaded #pp-progress {
  /* GSAP sets scaleX; keep width:100% */
  width: 100% !important;
}

/* ── 39. Hero CSS animations — disabled when GSAP runs ── */
html.gsap-loaded .pp-hero-badge,
html.gsap-loaded .pp-hero h1,
html.gsap-loaded .pp-hero p,
html.gsap-loaded .pp-hero .d-flex.gap-3,
html.gsap-loaded .pp-hero-stats,
html.gsap-loaded .pp-printer-stage,
html.gsap-loaded .lp-hero .lp-eyebrow,
html.gsap-loaded .lp-hero .lp-hero-h1,
html.gsap-loaded .lp-hero .lp-hero-sub,
html.gsap-loaded .lp-hero .lp-hero-actions,
html.gsap-loaded .lp-hero .lp-hero-points,
html.gsap-loaded .lp-hero .lp-stats-bar,
html.gsap-loaded .hero-title,
html.gsap-loaded .hero .lead,
html.gsap-loaded .hero .hero-actions {
  animation: none !important;
  opacity: 1;      /* GSAP sets from 0 */
  transform: none; /* GSAP sets initial y/scale */
}

/* ── 40. Card hover — keep CSS transitions for hover effects ── */
/* (GSAP handles entrance; CSS handles hover state changes) */
html.gsap-loaded .product-card,
html.gsap-loaded .pp-card,
html.gsap-loaded .blog-card,
html.gsap-loaded .model-card,
html.gsap-loaded .category-card,
html.gsap-loaded .pp-category-card {
  will-change: transform, box-shadow;
}

/* ── 41. Auth card — handled by GSAP batch ──────── */
html.gsap-loaded .auth-card,
html.gsap-loaded .login-card,
html.gsap-loaded .register-card {
  animation: none !important;
}

/* ── 42. Stat cards — pop handled by GSAP counter ── */
html.gsap-loaded .pp-hero-stats.in-view .pp-hero-stat-num {
  animation: none !important;
}

/* ── 43. Floating chips — keep levitate, GSAP handles entrance ── */
html.gsap-loaded .pp-printer-chip {
  /* Remove chip-in, keep chip-float */
  animation-delay: 0s;
}

/* ══════════════════════════════════════════════════════════
   44. AUTH SPLIT LAYOUT — cinematic premium auth pages
   ══════════════════════════════════════════════════════════ */

.auth-split-page {
  min-height: 100vh;
  display: flex;
  background: var(--bg, #080808);
  position: relative;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* ambient orbs */
.auth-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.auth-orb--1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(255,107,0,0.22) 0%, transparent 68%);
  top: -160px; left: -120px;
  animation: auth-orb-drift1 14s ease-in-out infinite;
}

.auth-orb--2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255,140,58,0.16) 0%, transparent 68%);
  bottom: 5%; right: 38%;
  animation: auth-orb-drift2 18s ease-in-out infinite;
}

.auth-orb--3 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,107,0,0.10) 0%, transparent 68%);
  top: 35%; left: 18%;
  animation: auth-orb-drift3 11s ease-in-out infinite;
}

@keyframes auth-orb-drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(50px, 40px) scale(1.06); }
  66%  { transform: translate(-25px, 55px) scale(0.94); }
}
@keyframes auth-orb-drift2 {
  0%, 100% { transform: translate(0, 0); }
  50%  { transform: translate(-35px, -45px); }
}
@keyframes auth-orb-drift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(22px, -32px) scale(1.12); }
}

/* panels */
.auth-panel { position: relative; z-index: 1; }

.auth-panel--left {
  flex: 0 0 46%;
  max-width: 46%;
  padding: 3rem 3.5rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border, rgba(255,255,255,0.06));
  background: linear-gradient(155deg, rgba(255,107,0,0.05) 0%, transparent 55%);
  min-height: 100vh;
}

.auth-panel--right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 2.5rem;
  overflow-y: auto;
  min-height: 100vh;
}

@media (max-width: 991px) {
  .auth-panel--left { display: none; }
  .auth-panel--right {
    flex: none;
    width: 100%;
    padding: 2rem 1rem;
    align-items: flex-start;
    padding-top: 3rem;
    justify-content: center;
  }
}

/* left panel — brand */
.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-bottom: 3.5rem;
}

.auth-brand:hover { text-decoration: none; }

.auth-brand-mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FF6B00, #FF8C3A);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 6px 24px rgba(255,107,0,0.38);
  flex-shrink: 0;
}

.auth-brand-name {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text, #f0f0f0);
}

/* left panel — content */
.auth-left-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FF6B00;
  margin-bottom: 0.85rem;
}

.auth-headline {
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 900;
  line-height: 1.07;
  letter-spacing: -0.04em;
  color: var(--text, #f0f0f0);
  margin: 0 0 0.9rem;
}

.auth-headline span {
  background: linear-gradient(135deg, #FF6B00 0%, #FF8C3A 55%, #FFB347 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-left-sub {
  font-size: 0.97rem;
  color: var(--text-muted, #888);
  line-height: 1.65;
  margin: 0;
}

/* left panel — features */
.auth-features {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.auth-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: var(--bg-card, rgba(255,255,255,0.028));
  border: 1px solid var(--border, rgba(255,255,255,0.055));
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-feature:hover {
  background: rgba(255,107,0,0.07);
  border-color: rgba(255,107,0,0.2);
  transform: translateX(5px);
}

.auth-feature-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,107,0,0.18), rgba(255,107,0,0.07));
  border: 1px solid rgba(255,107,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF6B00;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.auth-feature-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text, #f0f0f0);
  margin-bottom: 0.12rem;
}

.auth-feature-sub {
  font-size: 0.76rem;
  color: var(--text-muted, #888);
  line-height: 1.45;
}

/* left panel — stats bar */
.auth-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.15rem 1.5rem;
  border-radius: 14px;
  background: var(--bg-card, rgba(255,255,255,0.028));
  border: 1px solid var(--border, rgba(255,255,255,0.055));
}

.auth-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  flex: 1;
}

.auth-stat-num {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FF6B00;
}

.auth-stat-lab {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted, #888);
}

.auth-stat-divider {
  width: 1px;
  height: 30px;
  background: var(--border, rgba(255,255,255,0.07));
  flex-shrink: 0;
}

/* right panel — form card */
.auth-form-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card, rgba(14,14,14,0.92));
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 24px;
  padding: 2.25rem 2.5rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 32px 80px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.035);
}

.auth-form-card--wide {
  max-width: 520px;
}

@media (max-width: 575px) {
  .auth-form-card {
    border-radius: 18px;
    padding: 1.65rem 1.4rem;
  }
}

/* mobile brand (shown only on mobile) */
.auth-mobile-brand {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.auth-mobile-brand:hover { text-decoration: none; }

@media (max-width: 991px) {
  .auth-mobile-brand { display: flex; }
}

.auth-mobile-brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FF6B00, #FF8C3A);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(255,107,0,0.3);
}

.auth-mobile-brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text, #f0f0f0);
}

/* form card — headings */
.auth-form-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text, #f0f0f0);
  margin-bottom: 0.3rem;
}

.auth-form-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted, #888);
  margin-bottom: 1.4rem;
}

/* pills row */
.auth-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
}

.auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.32rem 0.7rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(255,107,0,0.08);
  border: 1px solid rgba(255,107,0,0.18);
  color: #FF6B00;
  user-select: none;
}

/* divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.2rem 0;
  color: var(--text-muted, #888);
  font-size: 0.78rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border, rgba(255,255,255,0.07));
}

/* quick links row */
.auth-links-row {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.auth-quick-link-new {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.85rem;
  border-radius: 100px;
  font-size: 0.73rem;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--text-muted, #888);
  transition:
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-quick-link-new:hover {
  background: rgba(255,107,0,0.09);
  border-color: rgba(255,107,0,0.22);
  color: #FF6B00;
  transform: translateY(-2px);
  text-decoration: none;
}

/* utility — orange text */
.text-orange { color: #FF6B00 !important; }
.text-orange:hover { color: #e55a00 !important; }

/* ── light theme overrides ── */
[data-theme="light"] .auth-split-page { background: #f5f5f5; }

[data-theme="light"] .auth-panel--left {
  background: linear-gradient(155deg, rgba(255,107,0,0.05) 0%, rgba(255,107,0,0.015) 55%);
  border-color: rgba(0,0,0,0.06);
}

[data-theme="light"] .auth-headline { color: #111; }
[data-theme="light"] .auth-brand-name { color: #111; }
[data-theme="light"] .auth-mobile-brand-name { color: #111; }
[data-theme="light"] .auth-feature-title { color: #111; }
[data-theme="light"] .auth-form-title { color: #111; }

[data-theme="light"] .auth-feature {
  background: rgba(0,0,0,0.022);
  border-color: rgba(0,0,0,0.06);
}

[data-theme="light"] .auth-feature:hover {
  background: rgba(255,107,0,0.055);
  border-color: rgba(255,107,0,0.18);
}

[data-theme="light"] .auth-stats {
  background: rgba(0,0,0,0.022);
  border-color: rgba(0,0,0,0.06);
}

[data-theme="light"] .auth-form-card {
  background: rgba(255,255,255,0.96);
  border-color: rgba(0,0,0,0.07);
  box-shadow: 0 24px 70px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.04);
}

[data-theme="light"] .auth-quick-link-new {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.07);
  color: #666;
}

[data-theme="light"] .auth-divider::before,
[data-theme="light"] .auth-divider::after {
  background: rgba(0,0,0,0.08);
}

[data-theme="light"] .auth-orb--1 { opacity: 0.55; }
[data-theme="light"] .auth-orb--2 { opacity: 0.35; }
[data-theme="light"] .auth-orb--3 { opacity: 0.25; }

/* ── 45. Landing page card variants in batch ── */
.lp-bc,
.lp-mat-card,
.lp-step,
.lp-dl-card,
.lp-product-card {
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease !important;
  backface-visibility: hidden;
}

.lp-bc:hover {
  transform: translateY(-5px) !important;
  box-shadow:
    0 20px 52px rgba(255,107,0,0.13),
    0 6px 18px rgba(0,0,0,0.18) !important;
}

.lp-mat-card:hover,
.lp-step:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 40px rgba(255,107,0,0.12) !important;
}

.lp-dl-card:hover {
  transform: translateY(-6px) scale(1.01) !important;
  box-shadow: 0 24px 60px rgba(255,107,0,0.15) !important;
}

/* ── 46. Equipment / freelance card hover ── */
.equipment-card,
.freelance-card {
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease !important;
  backface-visibility: hidden;
}

.equipment-card:hover,
.freelance-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 52px rgba(255,107,0,0.12),
    0 6px 18px rgba(0,0,0,0.18) !important;
  border-color: rgba(255,107,0,0.2) !important;
}

/* ── 47. Auth form card — GSAP handles entrance ── */
html.gsap-loaded .auth-form-card {
  animation: none !important;
}


