/* SmartMusika POS - Modern Design System & Dual-Theme Engine */
:root {
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;
  --primary-950: #0f172a;

  --accent-orange: #ea580c;
  --accent-orange-light: #f97316;
  --accent-amber: #f59e0b;

  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', var(--font-sans);

  /* Light Theme Variables */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --border-subtle: #cbd5e1;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --nav-bg: rgba(255, 255, 255, 0.95);
  --input-bg: #ffffff;
}

/* Dark Theme Variables */
html.dark {
  --bg-page: #090d16;
  --bg-surface: #0f172a;
  --bg-surface-subtle: #1e293b;
  --border-color: #1e293b;
  --border-subtle: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --nav-bg: rgba(15, 23, 42, 0.95);
  --input-bg: #1e293b;
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

/* Smooth transition when toggling themes */
html.theme-transition,
html.theme-transition *,
html.theme-transition *:before,
html.theme-transition *:after {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease !important;
  transition-delay: 0 !important;
}

/* Custom Scrollbar - Light */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Custom Scrollbar - Dark */
html.dark ::-webkit-scrollbar-track {
  background: #090d16;
}

html.dark ::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 5px;
}

html.dark ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Gradients */
.gradient-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.gradient-orange {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.gradient-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Glassmorphism Utilities */
.glass {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

html.dark .glass {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff !important;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.75rem 1.75rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px 0 rgba(234, 88, 12, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px 0 rgba(234, 88, 12, 0.45);
}

.btn-secondary {
  background: #ffffff;
  color: #1e293b;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.75rem 1.75rem;
  border: 1px solid #cbd5e1;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html.dark .btn-secondary {
  background: #1e293b;
  color: #f8fafc;
  border-color: #334155;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

html.dark .btn-secondary:hover {
  background: #334155;
  border-color: #475569;
}

/* Card Hover Elevation */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html.dark .card-hover:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.25);
}

/* Anti-Spam Trap: Honeypot field invisible to humans, caught by bots */
.antispam-trap {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  pointer-events: none !important;
}

/* Floating WhatsApp Button */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1),
              background-color 250ms ease,
              box-shadow 250ms ease;
  animation: whatsapp-periodic-bounce 4s ease-in-out infinite;
  box-sizing: border-box;
}

.floating-whatsapp-btn i {
  font-size: 28px;
  color: #ffffff !important;
  line-height: 1;
}

.floating-whatsapp-btn:hover,
.floating-whatsapp-btn:focus-visible {
  background-color: #20ba5a;
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55), 0 4px 10px rgba(0, 0, 0, 0.2);
  animation-play-state: paused;
}

.floating-whatsapp-btn:focus-visible {
  outline: 3px solid #25D366;
  outline-offset: 3px;
}

@keyframes whatsapp-periodic-bounce {
  0%, 85%, 100% {
    transform: translateY(0);
  }
  90% {
    transform: translateY(-6px);
  }
  95% {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-whatsapp-btn {
    animation: none !important;
  }
}

/* Hero background pattern */
.hero-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ==========================================================================
   DUAL THEME — DARK MODE REMAP
   Pages use Tailwind light utilities; in dark mode they are remapped here.
   Elements that declare their own `dark:` variant for a property are skipped,
   so explicit per-element dark styling always wins.
   ========================================================================== */
html.dark {
  color-scheme: dark;
}

html.dark body {
  background-color: #020617;
  color: #f1f5f9;
}

html.dark .bg-white:not([class*="dark:bg-"]) { background-color: #0f172a; }
html.dark .bg-slate-50:not([class*="dark:bg-"]) { background-color: #020617; }
html.dark .bg-gray-50:not([class*="dark:bg-"]) { background-color: #020617; }
html.dark .bg-slate-100:not([class*="dark:bg-"]) { background-color: #1e293b; }
html.dark .bg-gray-100:not([class*="dark:bg-"]) { background-color: #1e293b; }
html.dark .bg-slate-200:not([class*="dark:bg-"]) { background-color: #334155; }
html.dark .bg-gray-200:not([class*="dark:bg-"]) { background-color: #334155; }
html.dark .bg-slate-300:not([class*="dark:bg-"]) { background-color: #475569; }
html.dark .bg-slate-50\/50:not([class*="dark:bg-"]) { background-color: rgba(15, 23, 42, 0.5); }
html.dark .bg-slate-50\/70:not([class*="dark:bg-"]) { background-color: rgba(15, 23, 42, 0.7); }
html.dark .bg-orange-50:not([class*="dark:bg-"]) { background-color: rgba(124, 45, 18, 0.28); }
html.dark .bg-orange-100:not([class*="dark:bg-"]) { background-color: rgba(124, 45, 18, 0.45); }
html.dark .bg-orange-50\/20:not([class*="dark:bg-"]) { background-color: rgba(124, 45, 18, 0.2); }
html.dark .bg-emerald-50:not([class*="dark:bg-"]) { background-color: rgba(6, 78, 59, 0.3); }
html.dark .bg-emerald-100:not([class*="dark:bg-"]) { background-color: rgba(6, 78, 59, 0.45); }
html.dark .bg-green-50:not([class*="dark:bg-"]) { background-color: rgba(6, 78, 59, 0.3); }
html.dark .bg-blue-50:not([class*="dark:bg-"]) { background-color: rgba(30, 58, 138, 0.3); }
html.dark .bg-indigo-50:not([class*="dark:bg-"]) { background-color: rgba(49, 46, 129, 0.3); }
html.dark .bg-purple-50:not([class*="dark:bg-"]) { background-color: rgba(88, 28, 135, 0.3); }
html.dark .bg-rose-50:not([class*="dark:bg-"]) { background-color: rgba(136, 19, 55, 0.3); }
html.dark .bg-red-50:not([class*="dark:bg-"]) { background-color: rgba(127, 29, 29, 0.3); }
html.dark .bg-amber-50:not([class*="dark:bg-"]) { background-color: rgba(120, 53, 15, 0.3); }
html.dark .bg-yellow-50:not([class*="dark:bg-"]) { background-color: rgba(113, 63, 18, 0.3); }
html.dark .bg-teal-50:not([class*="dark:bg-"]) { background-color: rgba(19, 78, 74, 0.3); }

html.dark .hover\:bg-white:not([class*="dark:hover:bg-"]):hover { background-color: #1e293b; }
html.dark .hover\:bg-slate-50:not([class*="dark:hover:bg-"]):hover { background-color: #1e293b; }
html.dark .hover\:bg-slate-100:not([class*="dark:hover:bg-"]):hover { background-color: #334155; }
html.dark .hover\:bg-slate-200:not([class*="dark:hover:bg-"]):hover { background-color: #334155; }
html.dark .hover\:bg-gray-100:not([class*="dark:hover:bg-"]):hover { background-color: #334155; }
html.dark .hover\:bg-orange-50:not([class*="dark:hover:bg-"]):hover { background-color: rgba(124, 45, 18, 0.35); }

html.dark .text-slate-900:not([class*="dark:text-"]) { color: #f8fafc; }
html.dark .text-gray-900:not([class*="dark:text-"]) { color: #f8fafc; }
html.dark .text-slate-800:not([class*="dark:text-"]) { color: #f1f5f9; }
html.dark .text-gray-800:not([class*="dark:text-"]) { color: #f1f5f9; }
html.dark .text-slate-700:not([class*="dark:text-"]) { color: #e2e8f0; }
html.dark .text-gray-700:not([class*="dark:text-"]) { color: #e2e8f0; }
html.dark .text-slate-600:not([class*="dark:text-"]) { color: #cbd5e1; }
html.dark .text-gray-600:not([class*="dark:text-"]) { color: #cbd5e1; }
html.dark .text-slate-500:not([class*="dark:text-"]) { color: #94a3b8; }
html.dark .text-gray-500:not([class*="dark:text-"]) { color: #94a3b8; }
html.dark .text-emerald-800:not([class*="dark:text-"]) { color: #a7f3d0; }
html.dark .text-emerald-900:not([class*="dark:text-"]) { color: #a7f3d0; }
html.dark .text-blue-800:not([class*="dark:text-"]) { color: #bfdbfe; }
html.dark .text-blue-900:not([class*="dark:text-"]) { color: #bfdbfe; }
html.dark .text-orange-800:not([class*="dark:text-"]) { color: #fed7aa; }
html.dark .text-orange-900:not([class*="dark:text-"]) { color: #fed7aa; }
html.dark .text-rose-800:not([class*="dark:text-"]) { color: #fecdd3; }
html.dark .text-rose-700:not([class*="dark:text-"]) { color: #fda4af; }
html.dark .text-orange-700:not([class*="dark:text-"]) { color: #fdba74; }
html.dark .text-orange-600:not([class*="dark:text-"]) { color: #fb923c; }
html.dark .text-emerald-600:not([class*="dark:text-"]) { color: #34d399; }
html.dark .text-blue-600:not([class*="dark:text-"]) { color: #60a5fa; }
html.dark .text-indigo-600:not([class*="dark:text-"]) { color: #818cf8; }
html.dark .text-purple-600:not([class*="dark:text-"]) { color: #c084fc; }
html.dark .text-rose-600:not([class*="dark:text-"]) { color: #fb7185; }
html.dark .text-red-600:not([class*="dark:text-"]) { color: #f87171; }
html.dark .text-green-600:not([class*="dark:text-"]) { color: #4ade80; }
html.dark .text-teal-600:not([class*="dark:text-"]) { color: #2dd4bf; }
html.dark .text-amber-600:not([class*="dark:text-"]) { color: #fbbf24; }

html.dark .hover\:text-slate-900:not([class*="dark:hover:text-"]):hover { color: #ffffff; }
html.dark .hover\:text-slate-800:not([class*="dark:hover:text-"]):hover { color: #f8fafc; }
html.dark .hover\:text-slate-600:not([class*="dark:hover:text-"]):hover { color: #e2e8f0; }
html.dark .hover\:text-orange-600:not([class*="dark:hover:text-"]):hover { color: #fb923c; }
html.dark .hover\:text-orange-700:not([class*="dark:hover:text-"]):hover { color: #fdba74; }

html.dark .border-slate-100:not([class*="dark:border-"]) { border-color: #1e293b; }
html.dark .border-gray-100:not([class*="dark:border-"]) { border-color: #1e293b; }
html.dark .border-slate-200:not([class*="dark:border-"]) { border-color: #1e293b; }
html.dark .border-gray-200:not([class*="dark:border-"]) { border-color: #1e293b; }
html.dark .border-slate-300:not([class*="dark:border-"]) { border-color: #334155; }
html.dark .border-gray-300:not([class*="dark:border-"]) { border-color: #334155; }
html.dark .border-slate-200\/60:not([class*="dark:border-"]) { border-color: rgba(51, 65, 85, 0.6); }
html.dark .border-slate-200\/80:not([class*="dark:border-"]) { border-color: rgba(51, 65, 85, 0.8); }
html.dark .border-slate-300\/80:not([class*="dark:border-"]) { border-color: rgba(71, 85, 105, 0.8); }
html.dark .border-rose-200:not([class*="dark:border-"]) { border-color: rgba(244, 63, 94, 0.35); }
html.dark .border-emerald-200:not([class*="dark:border-"]) { border-color: rgba(16, 185, 129, 0.35); }
html.dark .border-blue-200:not([class*="dark:border-"]) { border-color: rgba(59, 130, 246, 0.35); }
html.dark .border-orange-200:not([class*="dark:border-"]) { border-color: rgba(234, 88, 12, 0.35); }
html.dark .border-white:not([class*="dark:border-"]) { border-color: #0f172a; }

html.dark .divide-slate-200:not([class*="dark:divide-"]) > :not([hidden]) ~ :not([hidden]),
html.dark .divide-gray-200:not([class*="dark:divide-"]) > :not([hidden]) ~ :not([hidden]) {
  border-color: #1e293b;
}

/* Light pastel gradients (from-*-50 / to-white …) become a deep surface gradient */
html.dark [class*="bg-gradient-to-"]:is(.from-white, .from-slate-50, .from-gray-50, .from-orange-50, .from-blue-50, .from-purple-50, .from-green-50, .from-red-50, .from-emerald-50):not([class*="dark:from-"]) {
  background-image: linear-gradient(135deg, #0f172a 0%, #111c33 100%);
}

/* Form controls */
html.dark :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="submit"]):not([type="button"]), select, textarea):not([class*="dark:bg-"]) {
  background-color: #1e293b;
  color: #f8fafc;
  border-color: #334155;
}

html.dark :is(input, select, textarea):focus {
  border-color: #ea580c;
}

html.dark :is(input, textarea)::placeholder {
  color: #64748b;
}

html.dark .shadow-sm,
html.dark .shadow-md,
html.dark .shadow-lg,
html.dark .shadow-xl {
  --tw-shadow-color: rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   SMARTMUSIKA BRAND WORDMARK COLOURS ("Smart" blue, "Musika" orange)
   ========================================================================== */
.sm-brand-smart { color: #1939AF; }
.sm-brand-musika { color: #F25A18; }
html.dark .sm-brand-smart { color: #7B93F0; }

/* ==========================================================================
   THEME TOGGLE
   ========================================================================== */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sm-theme-toggle {
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 9999px;
  border: 1.5px solid #cbd5e1;
  background-color: transparent;
  color: #172A3A;
  flex-shrink: 0;
}

.sm-theme-toggle i { font-size: 0.95rem; }
.sm-theme-toggle:hover { transform: translateY(-1px); border-color: #EA580C; color: #EA580C; }
.theme-toggle-btn .fa-sun { color: #fbbf24; }

/* On the transparent navbar over a dark hero */
.sm-navbar:not(.scrolled):not(.mobile-open) .sm-theme-toggle {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

html.dark .sm-theme-toggle {
  border-color: rgba(241, 245, 249, 0.35);
  color: #f1f5f9;
}

/* ==========================================================================
   RESPONSIVE SAFEGUARDS
   ========================================================================== */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

img,
video,
svg,
canvas,
iframe {
  max-width: 100%;
}

img,
video {
  height: auto;
}

/* Long words, emails and URLs wrap instead of pushing the layout wider */
main :is(p, li, dd, td, th, h1, h2, h3, h4, h5, h6, a, span, label, blockquote) {
  overflow-wrap: anywhere;
}

main table {
  max-width: 100%;
}

/* Fixed navbar offset: the first section's background extends under the navbar
   while its content starts below it. */
main > :first-child {
  border-top: var(--sm-nav-height, 78px) solid transparent;
  background-origin: border-box;
}

/* ==========================================================================
   Modern Homepage & Navigation Styles
   ========================================================================== */

/* 1. Clean Navigation Link Hover with Smooth Center-Outward Underline & Text Transition */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  font-size: 0.9375rem;
  color: #334155;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0.25rem 0 !important;
  margin: 0 !important;
  text-decoration: none !important;
  outline: none;
  cursor: pointer;
  transition: color 200ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nav-link i {
  color: inherit;
  transition: color 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

html.dark .nav-link,
.dark .nav-link {
  color: #cbd5e1;
  background: transparent !important;
  background-color: transparent !important;
}

/* Thin 2px orange underline directly underneath text without layout shift */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-orange, #ea580c) !important;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  pointer-events: none;
}

/* Hover state: ONLY text color changes to orange and underline animates from center outward */
.nav-link:hover {
  color: var(--accent-orange, #ea580c) !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

html.dark .nav-link:hover,
.dark .nav-link:hover {
  color: #fb923c !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.nav-link:hover::after {
  transform: scaleX(1) !important;
}

/* Active Page State: subtle orange text & persistent underline */
.nav-link.active {
  color: var(--accent-orange, #ea580c) !important;
  font-weight: 600;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

html.dark .nav-link.active,
.dark .nav-link.active {
  color: #fb923c !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.nav-link.active::after {
  transform: scaleX(1) !important;
}

/* 3. Global Button Hover Interaction: Physical Upward Lift (2-4px) + Elevation Shadow */
.btn-primary,
.btn-secondary,
.btn-shop-login,
.btn-lift,
a.btn-primary,
button.btn-primary,
a[class*="bg-orange-600"],
button[class*="bg-orange-600"],
a[class*="bg-orange-500"],
button[class*="bg-orange-500"],
a[class*="btn-primary"],
button[type="submit"] {
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1),
    background-color 200ms ease,
    border-color 200ms ease !important;
  will-change: transform;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-lift:hover,
a.btn-primary:hover,
button.btn-primary:hover,
a[class*="bg-orange-600"]:hover,
button[class*="bg-orange-600"]:hover,
a[class*="bg-orange-500"]:hover,
button[class*="bg-orange-500"]:hover,
a[class*="btn-primary"]:hover,
button[type="submit"]:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.2), 0 4px 8px -2px rgba(0, 0, 0, 0.1) !important;
}

/* Orange shadow accent for primary buttons on hover */
a[class*="bg-orange-600"]:hover,
button[class*="bg-orange-600"]:hover,
a[class*="bg-orange-500"]:hover,
button[class*="bg-orange-500"]:hover,
.btn-primary:hover {
  box-shadow: 0 10px 24px -3px rgba(234, 88, 12, 0.35), 0 4px 8px -2px rgba(234, 88, 12, 0.2) !important;
}

/* 4. Standalone Feature / Capability Bar Component */
.capability-strip-container {
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

html.dark .capability-strip-container {
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4);
}

.capability-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  cursor: default;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.375rem 0.625rem;
  border-radius: 0.625rem;
}

.capability-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  background: rgba(241, 245, 249, 0.85);
  transition: transform 200ms ease, color 200ms ease, background-color 200ms ease;
}

html.dark .capability-icon {
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.7);
}

.capability-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: break-word;
  transition: color 200ms ease;
}

html.dark .capability-text {
  color: #e2e8f0;
}

/* Subtle capability item hover interaction: icon lifts 2px and becomes orange, text turns orange */
.capability-item:hover .capability-icon {
  color: var(--accent-orange, #ea580c);
  background: rgba(234, 88, 12, 0.1);
  transform: translateY(-2px);
}

.capability-item:hover .capability-text {
  color: var(--accent-orange, #ea580c);
}

/* 5. Floating Final CTA Panel - Prominent 3rem Rounded Corners & Elevation */
.floating-cta-panel {
  border-radius: 3rem !important;
  box-shadow: 0 35px 80px -20px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(249, 115, 22, 0.25) !important;
  border: 1px solid rgba(51, 65, 85, 0.7) !important;
}

/* Hide scrollbar for clean horizontal containers */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}

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



/* ================================================================
   SMARTMUSIKA NAVBAR — PREMIUM FIXED NAVIGATION + SCROLL TRANSITION
   ================================================================ */

:root {
  --sm-orange:         #EA580C;
  --sm-orange-hover:   #F97316;
  --sm-navy:           #172A3A;
  --sm-birch:          #F6EADB;
  --sm-birch-beige:    #EBD8BE;
  --sm-warm-white:     #FFFBF5;
  --sm-border-light:   #E5E7EB;
  --sm-nav-height:     78px;
  --sm-nav-h-scrolled: 62px;
  --sm-nav-transition: 250ms ease-out;
}

/* ── Base navbar: permanently fixed at top, transparent initially ─ */
.navbar,
.sm-navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;

  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  transition:
    background 250ms ease-out,
    backdrop-filter 250ms ease-out,
    -webkit-backdrop-filter 250ms ease-out,
    border-color 250ms ease-out,
    box-shadow 250ms ease-out,
    padding 250ms ease-out;
}

/* ── Scrolled state: #FFFBF5/white floating navigation surface ──── */
.navbar.scrolled,
.sm-navbar.scrolled {
  background: rgba(255, 251, 245, 0.96) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid #E5E7EB !important;
  box-shadow: 0 4px 20px rgba(23, 42, 58, 0.08) !important;
}

/* Dark mode scrolled state */
html.dark .navbar.scrolled,
html.dark .sm-navbar.scrolled {
  background: rgba(15, 23, 42, 0.96) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid rgba(51, 65, 85, 0.6) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

/* Mobile opened state */
.navbar.mobile-open,
.sm-navbar.mobile-open {
  background: #FFFBF5 !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid #E5E7EB !important;
}

html.dark .navbar.mobile-open,
html.dark .sm-navbar.mobile-open {
  background: #0F172A !important;
  border-bottom-color: rgba(51, 65, 85, 0.8) !important;
}

/* ── Inner row height / subtle shrink on scroll ────────────────── */
.sm-navbar-inner {
  height: var(--sm-nav-height);
  transition: height 250ms ease-out;
}

.navbar.scrolled .sm-navbar-inner,
.sm-navbar.scrolled .sm-navbar-inner {
  height: var(--sm-nav-h-scrolled);
}

/* ── Logo & Brand Link ──────────────────────────────────────────── */
.sm-brand-link {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  transform-origin: left center;
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform;
}

/* On hover: BOTH the cart icon AND the SmartMusika text scale up together simultaneously */
.sm-brand-link:hover {
  transform: scale(1.05) !important;
}

.sm-navbar .sm-logo-icon,
.navbar .sm-logo-icon {
  transition: height 250ms ease-out, width 250ms ease-out;
}

.navbar.scrolled .sm-logo-icon,
.sm-navbar.scrolled .sm-logo-icon {
  height: 2.35rem !important;
  width: auto;
}

.sm-navbar .sm-logo-wordmark,
.navbar .sm-logo-wordmark {
  transition: transform 250ms ease-out;
}

.navbar.scrolled .sm-logo-wordmark,
.sm-navbar.scrolled .sm-logo-wordmark {
  transform: scale(0.96);
  transform-origin: left center;
}

/* Logo "Smart" text color transition */
.sm-logo-smart {
  transition: color 250ms ease-out;
}

/* Before scroll: WHITE text */
.navbar:not(.scrolled) .sm-logo-smart,
.sm-navbar:not(.scrolled) .sm-logo-smart {
  color: #FFFFFF !important;
}

/* Once scrolled: #172A3A (dark navy/black) */
.navbar.scrolled .sm-logo-smart,
.sm-navbar.scrolled .sm-logo-smart {
  color: #172A3A !important;
}

html.dark .navbar.scrolled .sm-logo-smart,
html.dark .sm-navbar.scrolled .sm-logo-smart {
  color: #FFFFFF !important;
}

/* When mobile menu is opened */
.navbar.mobile-open .sm-logo-smart,
.sm-navbar.mobile-open .sm-logo-smart {
  color: #172A3A !important;
}

html.dark .navbar.mobile-open .sm-logo-smart,
html.dark .sm-navbar.mobile-open .sm-logo-smart {
  color: #FFFFFF !important;
}

/* ── Navigation links ───────────────────────────────────────────── */
.sm-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.25rem 0;
  letter-spacing: -0.01em;
  transition: color 250ms ease-out;
}

/* BEFORE SCROLL: ALL LINKS AND TEXT ARE WHITE */
.navbar:not(.scrolled) .sm-nav-link,
.sm-navbar:not(.scrolled) .sm-nav-link {
  color: #FFFFFF !important;
}

.navbar:not(.scrolled) .sm-nav-link:hover,
.sm-navbar:not(.scrolled) .sm-nav-link:hover {
  color: #EA580C !important;
}

.navbar:not(.scrolled) .sm-nav-link.active,
.sm-navbar:not(.scrolled) .sm-nav-link.active {
  color: #EA580C !important;
}

.navbar:not(.scrolled) .sm-nav-link .ext-arrow,
.sm-navbar:not(.scrolled) .sm-nav-link .ext-arrow {
  color: #FFFFFF;
  opacity: 0.85;
}

/* ONCE SCROLLED: ALL LINKS AND TEXT TRANSITION TO #172A3A */
.navbar.scrolled .sm-nav-link,
.sm-navbar.scrolled .sm-nav-link {
  color: #172A3A !important;
}

.navbar.scrolled .sm-nav-link:hover,
.sm-navbar.scrolled .sm-nav-link:hover {
  color: #EA580C !important;
}

.navbar.scrolled .sm-nav-link.active,
.sm-navbar.scrolled .sm-nav-link.active {
  color: #EA580C !important;
  font-weight: 600 !important;
}

.navbar.scrolled .sm-nav-link .ext-arrow,
.sm-navbar.scrolled .sm-nav-link .ext-arrow {
  color: #172A3A;
  opacity: 0.65;
}

/* Dark mode overrides for scrolled */
html.dark .navbar.scrolled .sm-nav-link,
html.dark .sm-navbar.scrolled .sm-nav-link {
  color: #F1F5F9 !important;
}

html.dark .navbar.scrolled .sm-nav-link:hover,
html.dark .sm-navbar.scrolled .sm-nav-link:hover,
html.dark .navbar.scrolled .sm-nav-link.active,
html.dark .sm-navbar.scrolled .sm-nav-link.active {
  color: #FB923C !important;
}

/* Subtle animated underline: starts at 0%, expands to 100% */
.sm-nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: #EA580C;
  border-radius: 999px;
  transition: transform 180ms ease-out;
}

.sm-nav-link:hover::after,
.sm-nav-link.active::after {
  transform: scaleX(1);
}

html.dark .sm-nav-link::after {
  background: #FB923C;
}

/* External link arrow */
.sm-nav-link .ext-arrow {
  margin-left: 0.35rem;
  font-size: 0.6875rem;
  transition: opacity 250ms ease, transform 180ms ease, color 250ms ease;
}

.sm-nav-link:hover .ext-arrow {
  opacity: 1;
  color: #EA580C !important;
  transform: translate(1px, -1px);
}

/* ── CTA Buttons ────────────────────────────────────────────────── */

/* 1. Shop Login Button (Outlined Rounded Pill) */
.btn-shop-login {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 2.5rem !important;
  padding: 0 1.35rem !important;
  border-radius: 9999px !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  cursor: pointer !important;
  font-family: inherit !important;
  transition:
    background 250ms ease-out,
    color 250ms ease-out,
    border-color 250ms ease-out,
    box-shadow 250ms ease-out,
    transform 200ms ease-out !important;
}

/* Before scroll: White text & white outline */
.navbar:not(.scrolled) .btn-shop-login,
.sm-navbar:not(.scrolled) .btn-shop-login {
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
  background: transparent !important;
}

.navbar:not(.scrolled) .btn-shop-login:hover,
.sm-navbar:not(.scrolled) .btn-shop-login:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #FFFFFF !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  transform: translateY(-1px) !important;
}

/* Scrolled: #172A3A text & #172A3A outline */
.navbar.scrolled .btn-shop-login,
.sm-navbar.scrolled .btn-shop-login {
  color: #172A3A !important;
  border: 1.5px solid #172A3A !important;
  background: transparent !important;
}

.navbar.scrolled .btn-shop-login:hover,
.sm-navbar.scrolled .btn-shop-login:hover {
  background: #172A3A !important;
  color: #FFFFFF !important;
  border-color: #172A3A !important;
  box-shadow: 0 4px 14px rgba(23, 42, 58, 0.18) !important;
  transform: translateY(-1px) !important;
}

html.dark .navbar.scrolled .btn-shop-login,
html.dark .sm-navbar.scrolled .btn-shop-login {
  color: #F1F5F9 !important;
  border-color: rgba(241, 245, 249, 0.45) !important;
}

html.dark .navbar.scrolled .btn-shop-login:hover,
html.dark .sm-navbar.scrolled .btn-shop-login:hover {
  background: #F1F5F9 !important;
  color: #0F172A !important;
  border-color: #F1F5F9 !important;
}

/* 2. Get Started Button (Solid Orange Rounded Pill) */
.btn-get-started {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  height: 2.5rem !important;
  padding: 0 1.35rem !important;
  border-radius: 9999px !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  background: #EA580C !important;
  border: 1.5px solid #EA580C !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: 0 3px 12px rgba(234, 88, 12, 0.25) !important;
  cursor: pointer !important;
  font-family: inherit !important;
  transition:
    background 200ms ease-out,
    border-color 200ms ease-out,
    box-shadow 200ms ease-out,
    transform 200ms ease-out !important;
}

.btn-get-started:hover {
  background: #F97316 !important;
  border-color: #F97316 !important;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.38) !important;
  transform: translateY(-2px) !important;
}

.btn-get-started .btn-arrow {
  display: inline-block;
  font-size: 0.75rem;
  transition: transform 200ms ease-out;
}

.btn-get-started:hover .btn-arrow {
  transform: translateX(3px);
}

/* ── Mobile Drawer Menu ─────────────────────────────────────────── */
.sm-mobile-menu {
  display: none;
  background: #FFFBF5;
  border-top: 1px solid #E5E7EB;
  box-shadow: 0 10px 30px rgba(23, 42, 58, 0.1);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 320ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 280ms ease;
}

html.dark .sm-mobile-menu {
  background: #0F172A;
  border-top-color: rgba(30, 41, 59, 0.8);
}

.sm-mobile-menu.open {
  display: block;
  max-height: calc(100vh - var(--sm-nav-height, 78px));
  max-height: calc(100dvh - var(--sm-nav-height, 78px));
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 1;
}

/* Mobile menu items are always dark on light #FFFBF5 drawer */
.sm-mobile-menu a,
.sm-mobile-menu button {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease, color 150ms ease, background 150ms ease;
}

.sm-mobile-menu.open a,
.sm-mobile-menu.open button {
  opacity: 1;
  transform: translateY(0);
}

.sm-mobile-menu.open a:nth-child(1) { transition-delay: 30ms; }
.sm-mobile-menu.open a:nth-child(2) { transition-delay: 65ms; }
.sm-mobile-menu.open a:nth-child(3) { transition-delay: 100ms; }
.sm-mobile-menu.open a:nth-child(4) { transition-delay: 130ms; }
.sm-mobile-menu.open a:nth-child(5) { transition-delay: 160ms; }
.sm-mobile-menu.open a:nth-child(6) { transition-delay: 190ms; }
.sm-mobile-menu.open a:nth-child(7) { transition-delay: 215ms; }
.sm-mobile-menu.open button         { transition-delay: 240ms; }

/* ── Hamburger button ───────────────────────────────────────────── */
.sm-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: background 200ms ease, color 250ms ease;
}

/* Before scroll: White hamburger */
.navbar:not(.scrolled) .sm-hamburger,
.sm-navbar:not(.scrolled) .sm-hamburger {
  color: #FFFFFF !important;
}

.navbar:not(.scrolled) .sm-hamburger:hover,
.sm-navbar:not(.scrolled) .sm-hamburger:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #EA580C !important;
}

/* Scrolled: #172A3A hamburger */
.navbar.scrolled .sm-hamburger,
.sm-navbar.scrolled .sm-hamburger {
  color: #172A3A !important;
}

.navbar.scrolled .sm-hamburger:hover,
.sm-navbar.scrolled .sm-hamburger:hover {
  background: rgba(23, 42, 58, 0.07);
  color: #EA580C !important;
}

/* When mobile menu is opened */
.navbar.mobile-open .sm-hamburger,
.sm-navbar.mobile-open .sm-hamburger {
  color: #172A3A !important;
}

html.dark .navbar.scrolled .sm-hamburger,
html.dark .sm-navbar.scrolled .sm-hamburger,
html.dark .navbar.mobile-open .sm-hamburger,
html.dark .sm-navbar.mobile-open .sm-hamburger {
  color: #E2E8F0 !important;
}

.sm-hamburger-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}

.sm-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 260ms ease, opacity 180ms ease, width 260ms ease;
  transform-origin: center;
}

.sm-hamburger.is-open .sm-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.sm-hamburger.is-open .sm-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.sm-hamburger.is-open .sm-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Accessibility & Reduced Motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .navbar,
  .sm-navbar,
  .sm-navbar-inner,
  .sm-nav-link,
  .sm-nav-link::after,
  .sm-nav-link .ext-arrow,
  .btn-shop-login,
  .btn-get-started,
  .btn-get-started .btn-arrow,
  .sm-brand-link,
  .sm-logo-icon,
  .sm-logo-wordmark,
  .sm-logo-smart,
  .sm-mobile-menu,
  .sm-mobile-menu a,
  .sm-mobile-menu button,
  .sm-hamburger,
  .sm-bar {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
}

/* Package cards: 1..N packages stay centred and never squeeze below a readable width. */
.sm-package-grid > * {
  flex: 1 1 18rem;
  max-width: 24rem;
  min-width: 0;
}

/* Registration package picker */
.package-card {
  border-color: #e2e8f0;
  background: rgba(248, 250, 252, 0.6);
  min-width: 0;
}
.package-card.selected-pkg {
  border-color: #ea580c;
  background: rgba(255, 237, 213, 0.45);
  box-shadow: 0 0 0 1px #ea580c, 0 1px 2px rgba(0, 0, 0, 0.05);
}
.package-card:has(input:focus-visible) {
  outline: 2px solid #ea580c;
  outline-offset: 2px;
}
html.dark .package-card {
  border-color: #334155;
  background: rgba(30, 41, 59, 0.6);
}
html.dark .package-card.selected-pkg {
  border-color: #fb923c;
  background: rgba(234, 88, 12, 0.15);
  box-shadow: 0 0 0 1px #fb923c;
}

@media (max-width: 400px) {
  .capability-item { padding: 0.375rem 0.25rem; gap: 0.5rem; }
  .capability-text { font-size: 0.8125rem; }
}
