/* =============================================
   MechPart.io — Premium Industrial B2B Stylesheet
   Palette: Deep tech black · Amber gold · Steel blues
   ============================================= */

/* ---- CSS Variables ---- */
:root {
  /* Core palette */
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-glow: rgba(245, 158, 11, 0.25);
  --accent-soft: rgba(245, 158, 11, 0.10);
  --accent-subtle: rgba(245, 158, 11, 0.06);
  --blue-accent: #3b82f6;
  --blue-soft: rgba(59, 130, 246, 0.10);

  /* Surfaces */
  --background: #080c14;
  --background-elevated: #0c1220;
  --card: #111827;
  --card-elevated: #1a2332;
  --card-hover: #1e2a3d;
  --border: #1e293b;
  --border-light: #334155;
  --border-subtle: #263040;

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Aliases */
  --surface: #111827;
  --brand-primary: #1a3a5c;
  --brand-secondary: #2a5a8c;

  /* Status colors */
  --status-pending: #f59e0b;
  --status-pending-bg: rgba(245, 158, 11, 0.15);
  --status-confirmed: #eab308;
  --status-confirmed-bg: rgba(234, 179, 8, 0.15);
  --status-production: #3b82f6;
  --status-production-bg: rgba(59, 130, 246, 0.15);
  --status-shipped: #a855f7;
  --status-shipped-bg: rgba(168, 85, 247, 0.15);
  --status-completed: #22c55e;
  --status-completed-bg: rgba(34, 197, 94, 0.15);

  /* Typography scale */
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

/* Light mode override */
[data-theme="light"] {
  --accent: #d97706;
  --accent-hover: #b45309;
  --accent-glow: rgba(217, 119, 6, 0.15);
  --accent-soft: rgba(217, 119, 6, 0.08);
  --accent-subtle: rgba(217, 119, 6, 0.04);
  --blue-accent: #2563eb;
  --blue-soft: rgba(37, 99, 235, 0.08);
  --background: #f4f6f9;
  --background-elevated: #eef1f5;
  --card: #ffffff;
  --card-hover: #f0f3f8;
  --border: #e0e4ea;
  --border-light: #cdd3dc;
  --border-subtle: #ebeef4;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --status-pending-bg: rgba(217, 119, 6, 0.10);
  --status-confirmed-bg: rgba(202, 138, 4, 0.10);
  --status-production-bg: rgba(37, 99, 235, 0.10);
  --status-shipped-bg: rgba(147, 51, 234, 0.10);
  --status-completed-bg: rgba(22, 163, 74, 0.10);
}

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  overflow-x: hidden;
  max-width: 100vw;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Headings ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.75rem; }
}

/* ---- Custom scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--background); }
[data-theme="light"] ::-webkit-scrollbar-track { background: #f0f0f0; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #d4d4d8; }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: #a1a1aa; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-none::-webkit-scrollbar { display: none; }

.scrollbar-thin {
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
}
.scrollbar-thin::-webkit-scrollbar { width: 5px; height: 5px; }
.scrollbar-thin::-webkit-scrollbar-track { background: transparent; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }

/* ---- Accessibility ---- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

@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;
  }
}

/* ---- Selection ---- */
::selection {
  background: var(--accent-soft);
  color: var(--text-primary);
}
[data-theme="light"] ::selection {
  background: rgba(217, 119, 6, 0.15);
  color: var(--text-primary);
}

/* ===== Keyframe Animations ===== */

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.90); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideDown {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 600px; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes scrollTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
}
@keyframes pulseGlowBlue {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(59, 130, 246, 0); }
}
@keyframes blinkCaret { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-12px) translateX(-50%); }
  60% { transform: translateY(-5px) translateX(-50%); }
}
@keyframes particleFloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-40px) translateX(20px); }
  50% { transform: translateY(-15px) translateX(-15px); }
  75% { transform: translateY(-50px) translateX(8px); }
}
@keyframes scrollDotBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.3; }
}
@keyframes gearSpin3D {
  from { transform: perspective(800px) rotateY(0deg) rotateZ(0deg); }
  to { transform: perspective(800px) rotateY(360deg) rotateZ(360deg); }
}
@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -25px) scale(1.06); }
  66% { transform: translate(-20px, 20px) scale(0.94); }
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes rippleSpread {
  to { transform: scale(4); opacity: 0; }
}
@keyframes borderGlow {
  0%, 100% { border-color: var(--border); }
  50% { border-color: rgba(245, 158, 11, 0.3); }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---- Animation Utility Classes ---- */
.animate-fade-in { animation: fadeIn 0.6s ease-out both; }
.animate-fade-in-up { animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.animate-fade-in-down { animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.animate-fade-in-left { animation: fadeInLeft 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.animate-slide-in-left { animation: slideInLeft 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.animate-slide-in-right { animation: slideInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.animate-scale-in { animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }
.animate-slide-down { animation: slideDown 0.35s ease-out both; overflow: hidden; }
.animate-slide-up { animation: slideUp 0.4s cubic-bezier(0.32, 0.72, 0, 1) both; }

/* Delayed variants */
.animate-fade-in-delay-100 { animation: fadeIn 0.6s ease-out 0.1s both; }
.animate-fade-in-delay-200 { animation: fadeIn 0.6s ease-out 0.2s both; }
.animate-fade-in-delay-300 { animation: fadeIn 0.6s ease-out 0.3s both; }
.animate-fade-in-delay-400 { animation: fadeIn 0.6s ease-out 0.4s both; }
.animate-fade-in-delay-500 { animation: fadeIn 0.6s ease-out 0.5s both; }
.animate-fade-in-up-delay-100 { animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.animate-fade-in-up-delay-200 { animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
.animate-fade-in-up-delay-300 { animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }
.animate-fade-in-up-delay-400 { animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both; }
.animate-fade-in-up-delay-500 { animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both; }

/* ---- Component: Glass Navbar ---- */
.nav-glass {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(8, 12, 20, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
[data-theme="light"] .nav-glass {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Scrolled nav variant */


/* ---- Component: Card Hover Lift ---- */
.card-hover-lift {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}
.card-hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.10), 0 6px 16px rgba(0,0,0,0.06);
  border-color: rgba(245, 158, 11, 0.3);
}

/* ---- Component: Premium Card ---- */
.card-premium {
  background: linear-gradient(135deg, var(--card) 0%, var(--card-elevated) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}
.card-premium::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.card-premium:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.30),
              0 0 0 1px rgba(245, 158, 11, 0.20);
  border-color: rgba(245, 158, 11, 0.25);
}
.card-premium:hover::before {
  opacity: 1;
}
[data-theme="light"] .card-premium:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

/* ---- Component: Image Zoom ---- */
.img-hover-zoom { overflow: hidden; }
.img-hover-zoom img, .img-hover-zoom .img-target {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-hover-zoom:hover img, .img-hover-zoom:hover .img-target {
  transform: scale(1.10);
}

/* ---- Component: Shimmer Overlay ---- */
.shimmer-overlay {
  position: relative;
  overflow: hidden;
}
.shimmer-overlay::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.08) 55%,
    transparent 60%);
  background-size: 200% 100%;
  background-position: 200% 0;
  transition: background-position 0.7s ease;
  pointer-events: none;
}
.shimmer-overlay:hover::after { background-position: -200% 0; }

/* ---- Component: Button Ripple ---- */
.btn-ripple {
  position: relative;
  overflow: hidden;
}
.btn-ripple .ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: rippleSpread 0.6s ease-out forwards;
  pointer-events: none;
}

/* ---- Component: Typewriter ---- */
.typewriter-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blinkCaret 0.8s step-end infinite;
}

/* ---- Component: Gear Spin ---- */
.gear-spin {
  animation: gearSpin3D 24s linear infinite;
}

/* ---- Component: Floating Blobs ---- */
.blob-float-1 { animation: floatBlob 10s ease-in-out infinite; }
.blob-float-2 { animation: floatBlob 12s ease-in-out infinite reverse; }
.blob-float-3 { animation: floatBlob 14s ease-in-out infinite 4s; }

/* ---- Component: Scroll Indicator ---- */
.scroll-indicator { animation: scrollBounce 2s ease-in-out infinite; }
.scroll-dot { animation: scrollDotBounce 1.8s ease-in-out infinite; }

/* ---- Component: Loading Spinner ---- */
.loading-spinner {
  display: inline-block;
  width: 1.25rem; height: 1.25rem;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-right-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ---- Component: Back to Top ---- */
.back-to-top {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ---- Component: Dark Inputs ---- */
.dark-input {
  background: var(--background);
  border: 1px solid var(--border);
  color: var(--text-primary);
  transition: all 0.25s ease;
  border-radius: 0.5rem;
}
.dark-input::placeholder { color: var(--text-muted); }
.dark-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 0 20px var(--accent-subtle);
  outline: none;
}

/* ---- Nav Link ---- */
.nav-link {
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}
.nav-link:hover { color: var(--text-primary); background: var(--card-hover); }
.nav-link.active { color: var(--accent); background: var(--accent-soft); }

/* Mobile nav link */
.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}
.mobile-nav-link:hover { color: var(--text-primary); background: var(--card-hover); }
.mobile-nav-link.active { color: var(--accent); background: var(--accent-soft); }

/* Footer link */
.footer-link {
  color: var(--text-secondary);
  transition: color 0.25s ease;
  font-size: 0.875rem;
}
.footer-link:hover { color: var(--accent); }

/* ---- Product Card ---- */
.product-card {
  background: linear-gradient(135deg, var(--card) 0%, var(--card-elevated) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 0.875rem;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
  display: block;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(245, 158, 11, 0.06),
              0 10px 24px rgba(0, 0, 0, 0.20);
  border-color: rgba(245, 158, 11, 0.30);
}

/* ---- Spec Row ---- */
.spec-row {
  transition: background-color 0.2s ease;
}
.spec-row:hover { background-color: var(--accent-soft); }

/* ---- Filter Pill ---- */
.filter-pill {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
}
.filter-pill.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #0b1120;
  border-color: var(--accent);
  box-shadow: 0 2px 12px var(--accent-glow);
}
.filter-pill:not(.active):hover {
  border-color: var(--border-light);
  background: var(--card-elevated);
}

/* ---- Prose for Content Pages ---- */
.prose {
  line-height: 1.8;
  color: var(--text-secondary);
  font-size: 1.0625rem;
}
.prose h1, .prose h2, .prose h3, .prose h4 {
  color: var(--text-primary);
  margin-top: 2em;
  margin-bottom: 0.75em;
  font-weight: 700;
}
.prose h2 { font-size: 1.625rem; letter-spacing: -0.015em; }
.prose h3 { font-size: 1.25rem; }
.prose p { margin-bottom: 1.25em; }
.prose ul, .prose ol { margin-bottom: 1.25em; padding-left: 1.75em; }
.prose li { margin-bottom: 0.375em; }
.prose strong { color: var(--text-primary); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin-left: 0;
  color: var(--text-muted);
  font-style: italic;
}

/* ---- Section Titles ---- */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.15;
}
@media (min-width: 768px) {
  .section-title { font-size: 2.75rem; }
}
.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 42rem;
  line-height: 1.65;
}

/* ---- Hero Decorative Elements ---- */
.hero-grid-pattern {
  background-image:
    linear-gradient(rgba(245, 158, 11, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 158, 11, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero-grid-dots {
  background-image: radial-gradient(circle, rgba(245, 158, 11, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ---- Hero Background (Theme-Aware) ---- */
.hero-bg { background-color: #080c14; }
[data-theme="light"] .hero-bg { background-color: #eff2f7; }

.hero-gradient-overlay {
  background: radial-gradient(ellipse at 60% 40%, rgba(8, 12, 20, 0.3) 0%, rgba(8, 12, 20, 0.85) 70%, rgba(8, 12, 20, 0.95) 100%);
}
[data-theme="light"] .hero-gradient-overlay {
  background: radial-gradient(ellipse at 50% 0%, rgba(59,130,246,0.06) 0%, transparent 70%) !important;
}

/* ---- Stats Card ---- */
.stat-card {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.6), rgba(26, 35, 50, 0.6));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  transition: all 0.4s ease;
}
.stat-card:hover {
  border-color: rgba(245, 158, 11, 0.2);
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.8), rgba(26, 35, 50, 0.8));
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
[data-theme="light"] .stat-card {
  background: #ffffff;
  border: 1px solid #e0e4ea;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.stat-value {
  font-family: var(--font-mono);
  letter-spacing: -0.03em;
}

/* ---- Trust Badge ---- */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  cursor: default;
  letter-spacing: 0.02em;
}
[data-theme="light"] .trust-badge {
  background: #ffffff;
  border: 1px solid #e0e4ea;
}
.trust-badge:hover {
  color: var(--accent);
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.06);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.06);
}

/* ---- Button: Gradient CTA ---- */
.btn-gradient {
  background: linear-gradient(135deg, var(--accent), #f59e0b, var(--accent-hover));
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
  color: #0b1120;
  border: none;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
  transition: all 0.3s ease;
}
.btn-gradient:hover {
  box-shadow: 0 8px 35px rgba(245, 158, 11, 0.40);
  transform: translateY(-2px);
}

/* ---- Button: Outline Glow ---- */
.btn-outline-glow {
  border: 2px solid var(--border-light);
  color: var(--text-secondary);
  background: transparent;
  transition: all 0.3s ease;
}
.btn-outline-glow:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.10);
  transform: translateY(-2px);
}

/* ---- CTA Section Background ---- */
.cta-gradient-bg {
  background: linear-gradient(160deg, #0f2440 0%, #1a3a5c 40%, #0c1a30 100%);
  position: relative;
  overflow: hidden;
}
[data-theme="light"] .cta-gradient-bg {
  background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
}
.cta-gradient-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* ---- Admin Styles ---- */
.admin-sidebar {
  background: var(--card);
  border-right: 1px solid var(--border);
}
.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.admin-sidebar-link:hover { color: var(--text-primary); background: var(--card-hover); }
.admin-sidebar-link.active { color: var(--accent); background: var(--accent-soft); }

.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--card);
  border-bottom: 2px solid var(--border);
}
.admin-table td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}
.admin-table tr:hover td { background: var(--card-hover); }

.admin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}
.admin-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.08);
}

/* ---- Form Styles ---- */
.form-group { margin-bottom: 1.125rem; }
.form-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--background);
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: all 0.25s ease;
  font-family: var(--font-body);
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-input::placeholder { color: var(--text-muted); }
.form-select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
}
textarea.form-input { resize: vertical; min-height: 120px; }

/* ---- Button Styles ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #f59e0b);
  color: #0b1120;
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.15);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  border-color: var(--accent-hover);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.30);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--card-hover);
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(245, 158, 11, 0.05);
  transform: translateY(-1px);
}
.btn-accent {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-accent:hover {
  background: var(--accent);
  color: #0b1120;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.30);
  transform: translateY(-1px);
}
.btn-lg { padding: 0.9375rem 2.25rem; font-size: 1.0625rem; }
.btn-sm { padding: 0.4375rem 0.9375rem; font-size: 0.8125rem; }
.btn-danger {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
}
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }

/* ---- Toast Notification ---- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.3s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { background: #16a34a; color: white; }
.toast-error { background: #dc2626; color: white; }
.toast-info { background: var(--accent); color: #0b1120; }

/* ---- Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-content {
  background: var(--card-elevated);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn 0.3s ease-out both;
}

/* ---- Status Badges ---- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.status-pending { background: var(--status-pending-bg); color: var(--status-pending); }
.status-confirmed { background: var(--status-confirmed-bg); color: var(--status-confirmed); }
.status-production { background: var(--status-production-bg); color: var(--status-production); }
.status-shipped { background: var(--status-shipped-bg); color: var(--status-shipped); }
.status-completed { background: var(--status-completed-bg); color: var(--status-completed); }

/* ---- Page Transition ---- */
.page-enter { animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* ---- Mobile Menu ---- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  z-index: 60;
  background: var(--background);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mobile-menu.open { transform: translateX(0); }

body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.mobile-menu-overlay.open { opacity: 1; pointer-events: auto; }

/* ---- Responsive Helpers ---- */
@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:block { display: block; }
}
@media (max-width: 1023px) {
  .lg-only { display: none; }
}

/* ---- Generic Card ---- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  transition: all 0.35s ease;
}
.card:hover {
  border-color: rgba(245, 158, 11, 0.2);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.05);
}

/* ---- Utility: Line Clamp ---- */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Form Inputs (Global Overrides) ---- */
.input, input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="url"], input[type="number"],
textarea, select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}
.input:focus, input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input::placeholder, input::placeholder {
  color: var(--text-muted);
}
textarea { min-height: 120px; resize: vertical; }

/* ---- Layout Components (header/footer) ---- */

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent);
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.125rem;
}
@media (min-width: 1024px) {
  .desktop-nav { display: flex; }
}

.footer-grid {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.product-thumb {
  cursor: pointer;
  transition: border-color 0.2s ease;
  flex-shrink: 0;
}

.prose-invert {
  color: var(--text-secondary);
  line-height: 1.8;
}
.prose-invert h1, .prose-invert h2, .prose-invert h3, .prose-invert h4,
.prose-invert strong, .prose-invert b {
  color: var(--text-primary);
}

/* ---- Footer CTA Badge ---- */
.footer-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.footer-cta-badge svg { color: var(--accent); }

/* ---- Section Divider ---- */
.section-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ---- Pulse Dot (live indicator) ---- */
.pulse-dot {
  position: relative;
  display: inline-flex;
  width: 0.5rem;
  height: 0.5rem;
}
.pulse-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseGlow 2s ease-in-out infinite;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
}

/* ============================================= */
/* MechPart - CSS Utility Classes (mp-*)         */
/* Fix for Tailwind CDN not supporting var()     */
/* Added: 2026-05-22                             */
/* ============================================= */

/* -- Backgrounds -- */
.mp-bg                { background-color: var(--background); color: var(--text-primary); }
.mp-card              { background-color: var(--card); color: var(--text-primary); border-color: var(--border); }
.mp-card-elevated     { background-color: var(--card-elevated); color: var(--text-primary); }
.mp-card-hover:hover  { background-color: var(--card-hover); }
.mp-surface           { background-color: var(--surface); color: var(--text-primary); }

/* -- Text -- */
.mp-text              { color: var(--text-primary); }
.mp-text-secondary    { color: var(--text-secondary); }
.mp-text-muted        { color: var(--text-muted); }
.mp-text-accent       { color: var(--accent); }
.mp-text-accent-hover:hover { color: var(--accent-hover); }

/* -- Borders -- */
.mp-border            { border-color: var(--border); }
.mp-border-light      { border-color: var(--border-light); }
.mp-border-subtle     { border-color: var(--border-subtle); }
.mp-border-b          { border-bottom-color: var(--border); }
.mp-border-t          { border-top-color: var(--border); }

/* -- Accent backgrounds -- */
.mp-bg-accent         { background-color: var(--accent); }
.mp-bg-accent-hover:hover { background-color: var(--accent-hover); }
.mp-bg-accent-soft    { background-color: var(--accent-soft); }

/* -- Inputs -- */
.mp-input {
  background-color: var(--background);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.mp-input:focus {
  border-color: var(--accent);
  outline: none;
}
.mp-input::placeholder { color: var(--text-muted); }

/* -- Select -- */
.mp-select {
  background-color: var(--background);
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.mp-select option {
  background-color: var(--card);
  color: var(--text-primary);
}

/* -- Modals -- */
.mp-modal-overlay { background-color: rgba(0, 0, 0, 0.6); }
.mp-modal {
  background-color: var(--card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
[data-theme="light"] .mp-modal-overlay { background-color: rgba(0, 0, 0, 0.3); }
[data-theme="light"] .mp-modal {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* -- Toast -- */
.mp-toast {
  background-color: var(--card);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

/* -- Table hover -- */
.mp-table-row-hover:hover { background-color: var(--card-hover); }

/* -- Back to top -- */
.mp-back-to-top {
  background-color: var(--accent);
  color: var(--background);
}
.mp-back-to-top:hover { background-color: var(--accent-hover); }

/* -- Filter buttons -- */
.mp-filter-active {
  background-color: var(--accent-soft);
  color: var(--accent);
}
.mp-filter-inactive {
  color: var(--text-secondary);
}
.mp-filter-inactive:hover { background-color: var(--surface); }

/* -- Additional edge case classes -- */
.mp-bg-brand { background-color: var(--brand-primary); color: var(--text-primary); }
.mp-border-bg { background-color: var(--border); }
.mp-border-text { color: var(--border); }
.mp-border-accent { border-color: var(--accent); opacity: 0.25; }
.mp-shadow-accent { box-shadow: 0 0 0 1px var(--accent); opacity: 0.25; }
.mp-text-on-brand { color: #ffffff; }

/* -- Edge case: ring/shadow accent -- */
.mp-ring-accent:focus { box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.05); }
[data-theme="light"] .mp-ring-accent:focus { box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.05); }

/* -- Footer light mode override -- */
[data-theme="light"] footer {
  background-color: #e2e8f0;
  border-top-color: #cbd5e1;
}
[data-theme="light"] footer .footer-link { color: #334155; }
[data-theme="light"] footer .footer-link:hover { color: var(--accent); }

/* -- Text opposite of background (for inverted buttons) -- */
.mp-text-opposite { color: var(--background); }
/* -- Border accent at 20% -- */
.mp-border-accent-20 { border-color: rgba(245, 158, 11, 0.2); }
[data-theme="light"] .mp-border-accent-20 { border-color: rgba(217, 119, 6, 0.2); }
/* -- Border accent solid -- */
.mp-border-accent-solid { border-color: var(--accent); }
/* -- Hover border light -- */
.mp-hover-border-light:hover { border-color: var(--border-light); }
/* -- Hover border accent at 30% -- */
.mp-hover-border-accent:hover { border-color: rgba(245, 158, 11, 0.3); }
[data-theme="light"] .mp-hover-border-accent:hover { border-color: rgba(217, 119, 6, 0.3); }
/* -- Accent color for form elements -- */
.mp-accent-color { accent-color: var(--accent); }
