/* DigiShop Ghana - Main Stylesheet */
/* Converted from Tailwind CSS to plain CSS */

:root {
  --background: hsl(220, 25%, 97%);
  --foreground: hsl(220, 40%, 12%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(220, 40%, 12%);
  --popover: hsl(0, 0%, 100%);
  --popover-foreground: hsl(220, 40%, 12%);
  --primary: hsl(25, 95%, 53%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(195, 75%, 35%);
  --secondary-foreground: hsl(0, 0%, 100%);
  --muted: hsl(220, 20%, 94%);
  --muted-foreground: hsl(220, 25%, 45%);
  --accent: hsl(45, 95%, 55%);
  --accent-foreground: hsl(220, 40%, 12%);
  --destructive: hsl(0, 72%, 51%);
  --destructive-foreground: hsl(0, 0%, 100%);
  --success: hsl(142, 70%, 45%);
  --success-foreground: hsl(0, 0%, 100%);
  --border: hsl(220, 20%, 88%);
  --input: hsl(220, 20%, 88%);
  --ring: hsl(25, 95%, 53%);
  --radius: 1rem;

  --gradient-primary: linear-gradient(135deg, hsl(25, 95%, 53%), hsl(15, 90%, 60%), hsl(45, 95%, 55%));
  --gradient-secondary: linear-gradient(135deg, hsl(195, 75%, 35%), hsl(200, 80%, 45%));
  --gradient-hero: linear-gradient(135deg, hsl(25, 95%, 53% / 0.15), hsl(195, 75%, 35% / 0.15));
  --gradient-card: linear-gradient(145deg, hsl(0, 0%, 100%), hsl(220, 25%, 98%));
  --gradient-premium: linear-gradient(135deg, hsl(280, 60%, 50%), hsl(195, 75%, 35%));

  --shadow-card: 0 2px 8px -2px hsl(220, 40%, 12% / 0.08), 0 4px 16px -4px hsl(220, 40%, 12% / 0.06);
  --shadow-lg: 0 8px 24px -4px hsl(220, 40%, 12% / 0.12), 0 16px 48px -8px hsl(220, 40%, 12% / 0.08);
  --shadow-premium: 0 12px 40px -8px hsl(25, 95%, 53% / 0.3), 0 4px 16px -2px hsl(195, 75%, 35% / 0.2);
  --shadow-glow: 0 0 32px hsl(25, 95%, 53% / 0.4);
  --shadow-inner: inset 0 2px 8px hsl(220, 40%, 12% / 0.06);
  --shadow-hover: 0 20px 60px -12px hsl(220, 40%, 12% / 0.15), 0 8px 24px -4px hsl(25, 95%, 53% / 0.2);
  --shadow-interactive: 0 16px 48px -8px hsl(25, 95%, 53% / 0.25), 0 4px 16px -2px hsl(195, 75%, 35% / 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background: linear-gradient(135deg, hsl(220, 25%, 97%) 0%, hsl(220, 20%, 99%) 100%);
  background-attachment: fixed;
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* Ensure icons are visible */
svg {
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
  stroke: currentColor;
}

/* Fix for blank icons - ensure SVG visibility */
svg[fill="none"] {
  fill: none;
  stroke: currentColor;
}

svg[stroke="currentColor"] {
  stroke: currentColor;
}

/* Ensure all SVG icons are visible */
svg.h-4,
svg.h-5,
svg.h-6,
svg.h-8,
svg.w-4,
svg.w-5,
svg.w-6,
svg.w-8 {
  display: inline-block !important;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Fix for icons in badges and buttons */
.badge svg,
.btn svg,
span[class*="inline-flex"] svg {
  display: inline-block !important;
  width: 1em;
  height: 1em;
  vertical-align: middle;
}

/* Ensure text-primary, text-secondary etc work on SVGs */
.text-primary svg,
svg.text-primary {
  color: var(--primary);
  stroke: var(--primary);
}

.text-secondary svg,
svg.text-secondary {
  color: var(--secondary);
  stroke: var(--secondary);
}

.text-accent svg,
svg.text-accent {
  color: var(--accent);
  stroke: var(--accent);
}

/* Animated background particles - optimized for performance */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, hsl(25, 95%, 53% / 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, hsl(195, 75%, 35% / 0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, hsl(45, 95%, 55% / 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  animation: backgroundShift 20s ease-in-out infinite;
}

/* Reduce animation on low-end devices for better performance */
@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }
}

@keyframes backgroundShift {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-20px, -20px) scale(1.05);
  }
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.min-h-screen {
  min-height: 100vh;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

/* Subtle motion for interactive elements */
.transition-transform {
  transition: transform 0.2s ease-in-out;
}
.hover\:scale-105:hover {
  transform: scale(1.05);
}
.hover\:-translate-y-1:hover {
  transform: translateY(-0.25rem);
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.grid-cols-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.grid-cols-8 {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .sm\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .md\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .md\:flex-row {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .lg\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-8 {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

/* Typography */
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-5xl {
  font-size: 3rem;
  line-height: 1;
}

.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}

.font-normal {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

.uppercase {
  text-transform: uppercase;
}

.lowercase {
  text-transform: lowercase;
}

.capitalize {
  text-transform: capitalize;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.leading-tight {
  line-height: 1.25;
}

/* Colors */
.text-foreground {
  color: var(--foreground);
}

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

.text-muted-foreground {
  color: var(--muted-foreground);
}

.text-success {
  color: var(--success);
}

.text-white {
  color: white;
}

.bg-background {
  background-color: var(--background);
}

.bg-card {
  background-color: var(--card);
}

.bg-gradient-primary {
  background: var(--gradient-primary);
}

.bg-gradient-secondary {
  background: var(--gradient-secondary);
}

.bg-gradient-hero {
  background: var(--gradient-hero);
}

.bg-gradient-card {
  background: var(--gradient-card);
}

.bg-muted {
  background-color: var(--muted);
}

.bg-primary {
  background-color: var(--primary);
}

.bg-secondary {
  background-color: var(--secondary);
}

.bg-accent {
  background-color: var(--accent);
}

.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
}

.text-transparent {
  color: transparent;
}

/* Spacing */
.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.px-10 {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.pl-10 {
  padding-left: 2.5rem;
}

.pr-10 {
  padding-right: 2.5rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-5 {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.input.pl-10 {
  padding-left: 2.5rem;
}

.input.pr-10 {
  padding-right: 2.5rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Borders */
.border {
  border-width: 1px;
  border-style: solid;
  border-color: var(--border);
}

.border-b {
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: var(--border);
}

.border-t {
  border-top-width: 1px;
  border-top-style: solid;
  border-top-color: var(--border);
}

.border-0 {
  border: none;
}

.border-2 {
  border-width: 2px;
}

.border-primary {
  border-color: var(--primary);
}

.border-border {
  border-color: var(--border);
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* Shadows */
.shadow-card {
  box-shadow: var(--shadow-card);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.shadow-lg-custom {
  box-shadow: var(--shadow-lg);
}

.shadow-premium {
  box-shadow: var(--shadow-premium);
}

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--radius) - 2px);
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  transform: translateY(0);
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:active {
  transform: translateY(2px) scale(0.98);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  border: none;
  box-shadow: 0 4px 14px 0 hsl(25, 95%, 53% / 0.25);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow), 0 8px 24px 0 hsl(25, 95%, 53% / 0.35);
  transform: translateY(-2px) scale(1.02);
}

.btn-primary:active {
  box-shadow: 0 2px 8px 0 hsl(25, 95%, 53% / 0.2);
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: var(--secondary-foreground);
  box-shadow: 0 4px 14px 0 hsl(195, 75%, 35% / 0.25);
}

.btn-secondary:hover {
  box-shadow: 0 8px 24px 0 hsl(195, 75%, 35% / 0.35);
  transform: translateY(-2px) scale(1.02);
}

.btn-success {
  background: var(--success);
  color: var(--success-foreground);
  border: none;
  box-shadow: 0 4px 14px 0 hsl(142, 70%, 45% / 0.25);
}

.btn-success:hover {
  box-shadow: 0 8px 24px 0 hsl(142, 70%, 45% / 0.35);
  transform: translateY(-2px) scale(1.02);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--border);
  color: var(--foreground);
  position: relative;
}

.btn-outline::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
  border-radius: inherit;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-foreground);
  transform: translateY(-2px);
}

.btn-outline:hover::after {
  opacity: 1;
}

.btn-ghost {
  background-color: transparent;
  color: var(--foreground);
}

.btn-ghost:hover {
  background-color: var(--muted);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-md {
  padding: 0.625rem 1.25rem;
  font-size: 1rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
}

/* Inputs */
.input {
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--input);
  background-color: var(--background);
  color: var(--foreground);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.input::placeholder {
  color: var(--muted-foreground);
}

/* Cards */
.card {
  background: linear-gradient(145deg, hsl(0, 0%, 100%), hsl(220, 25%, 99%));
  color: var(--card-foreground);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: hsl(25, 95%, 53% / 0.2);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-header {
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.card-content {
  padding: 1rem 0;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
}

.modal-content {
  background-color: var(--background);
  border-radius: 1rem;
  max-width: 28rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-premium);
  animation: scaleIn 0.2s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-in-up {
  animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-scale-in {
  animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Shimmer loading effect */
.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

.animate-scale-in {
  animation: scaleIn 0.2s ease-out;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Loading Spinner */
.spinner {
  border: 2px solid var(--muted);
  border-top-color: var(--primary);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Utilities */
.hidden {
  display: none;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.left-3 {
  left: 0.75rem;
}

.fixed {
  position: fixed;
}

.sticky {
  position: sticky;
}

.top-0 {
  top: 0;
}

.top-3 {
  top: 0.75rem;
}

.bottom-6 {
  bottom: 1.5rem;
}

.right-6 {
  right: 1.5rem;
}

.right-2 {
  right: 0.5rem;
}

.top-2 {
  top: 0.5rem;
}

.z-40 {
  z-index: 40;
}

.z-50 {
  z-index: 50;
}

.w-full {
  width: 100%;
}

.w-fit {
  width: fit-content;
}

.h-4 {
  height: 1rem;
}

.h-5 {
  height: 1.25rem;
}

.h-6 {
  height: 1.5rem;
}

.h-7 {
  height: 1.75rem;
}

.h-8 {
  height: 2rem;
}

.h-12 {
  height: 3rem;
}

.h-16 {
  height: 4rem;
}

.w-4 {
  width: 1rem;
}

.w-5 {
  width: 1.25rem;
}

.w-6 {
  width: 1.5rem;
}

.w-7 {
  width: 1.75rem;
}

.w-8 {
  width: 2rem;
}

.w-12 {
  width: 3rem;
}

.w-16 {
  width: 4rem;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-y-auto {
  overflow-y: auto;
}

.overflow-x-auto {
  overflow-x: auto;
}

.opacity-0 {
  opacity: 0;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-100 {
  opacity: 1;
}

.transition-all {
  transition: all 0.2s;
}

.transition-opacity {
  transition: opacity 0.2s;
}

.transition-transform {
  transition: transform 0.2s;
}

.transition-shadow {
  transition: box-shadow 0.2s;
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}

.hover\:shadow-lg:hover {
  box-shadow: var(--shadow-lg);
}

.hover\:shadow-glow:hover {
  box-shadow: var(--shadow-glow);
}

.hover\:-translate-y-1:hover {
  transform: translateY(-0.25rem);
}

.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}

.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

.max-w-md {
  max-width: 28rem;
}

.max-w-lg {
  max-width: 32rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.space-y-10 > * + * {
  margin-top: 2.5rem;
}

.leading-relaxed {
  line-height: 1.75;
}

.leading-tight {
  line-height: 1.25;
}

/* Extra top padding helper to prevent badge overlap in steps */
.pt-16 {
  padding-top: 4rem;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.375rem;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
  }
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

/* Drawer */
.drawer {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: 100%;
  max-width: 28rem;
  background-color: var(--card);
  box-shadow: var(--shadow-premium);
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
}

.drawer.open {
  transform: translateX(0);
}

/* Tabs */
.tabs {
  width: 100%;
}

.tabs-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background-color: var(--muted);
  padding: 0.25rem;
  border-radius: calc(var(--radius) - 2px);
}

.tab-trigger {
  padding: 0.5rem 1rem;
  border-radius: calc(var(--radius) - 4px);
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--muted-foreground);
}

.tab-trigger.active {
  background-color: var(--background);
  color: var(--foreground);
}

/* Password strength */
.strength {
  width: 100%;
  background-color: var(--muted);
  border-radius: calc(var(--radius) - 4px);
  height: 0.5rem;
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
}
.strength-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background-color: var(--destructive);
  transition: width 0.25s ease, background-color 0.25s ease;
}
.strength-bar[data-level="2"] {
  background-color: #f59e0b;
}
.strength-bar[data-level="3"] {
  background-color: #10b981;
}
.strength-bar[data-level="4"] {
  background-color: #0ea5e9;
}

/* Input icon helper */
.input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-field {
  position: relative;
}

.input-field .input {
  padding-left: 2.75rem;
}

.input-field .input.has-toggle {
  padding-right: 3rem;
}

.input-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}

.input-toggle:hover {
  color: var(--foreground);
}

.bg-gradient-radial {
  background: radial-gradient(circle at top left, rgba(255, 176, 31, 0.18), transparent 55%),
              radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.22), transparent 50%);
  position: relative;
  z-index: 1;
}

section.bg-gradient-radial .container {
  position: relative;
  z-index: 2;
}

section.bg-gradient-radial .container > * {
  position: relative;
  z-index: 2;
}

.bg-surface {
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 1.25rem;
  box-shadow: 0 20px 60px rgba(20, 34, 67, 0.12);
  padding: 2rem;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.glass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 25px rgba(20, 34, 67, 0.12);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.6);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.metrics-grid {
  display: grid;
  gap: 1rem;
}

.metrics-grid .metric-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(20, 34, 67, 0.08);
  box-shadow: 0 12px 30px rgba(20, 34, 67, 0.1);
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, #f97316, #ef4444, #facc15);
  -webkit-background-clip: text;
  color: transparent;
}

.metric-label {
  font-size: 0.95rem;
  color: var(--muted-foreground);
}

.floating-element {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.decor-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(0);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.decor-circle.primary {
  background: radial-gradient(circle, rgba(249, 115, 22, 0.28), transparent 70%);
}

.decor-circle.secondary {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25), transparent 70%);
}

.decor-circle.accent {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 70%);
}

.section-heading {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 2.6vw, 3rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.section-heading p {
  color: var(--muted-foreground);
  font-size: 1.1rem;
}

.gradient-outline {
  position: relative;
  border-radius: 1.5rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.6), rgba(59, 130, 246, 0.6));
}

.gradient-outline .inner {
  background: rgba(255, 255, 255, 0.92);
  border-radius: inherit;
  padding: 2.25rem;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(20, 34, 67, 0.08);
  box-shadow: 0 12px 35px rgba(20, 34, 67, 0.08);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.avatar-ring {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #f59e0b, #ef4444, #6366f1);
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.plan-card {
  padding: 2.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(250, 250, 255, 0.7));
  border: 1px solid rgba(20, 34, 67, 0.08);
  box-shadow: 0 25px 60px rgba(20, 34, 67, 0.12);
}

.plan-card ul {
  list-style: none;
  margin-top: 1.5rem;
  padding-left: 0;
}

.plan-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--muted-foreground);
}

.plan-card li::before {
  content: '✔';
  font-size: 0.9rem;
  color: var(--primary);
  margin-top: 0.2rem;
}
/* Select */
.select {
  position: relative;
}

.select-trigger {
  display: flex;
  align-items: center;
  padding: 0.625rem 1rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--input);
  background-color: var(--background);
  cursor: pointer;
  width: 100%;
}

.select-content {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.25rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  max-height: 20rem;
  overflow-y: auto;
}

.select-item {
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.select-item:hover {
  background-color: var(--muted);
}

/* Avatar */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scrollbar */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Additional Utilities */
.aspect-video {
  aspect-ratio: 16 / 9;
  position: relative;
}

/* Image Carousel Styles */
.carousel-image {
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cursor-pointer {
  cursor: pointer;
}

.backdrop-blur {
  backdrop-filter: blur(8px);
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

.backdrop-blur-lg {
  backdrop-filter: blur(16px);
}

.border-dashed {
  border-style: dashed;
}

.border-border-50 {
  border-color: hsl(var(--border) / 0.5);
}

.bg-card-95 {
  background-color: hsl(var(--card) / 0.95);
}

.bg-background\/95 {
  background-color: hsl(var(--background) / 0.95);
}

.bg-muted-30 {
  background-color: hsl(var(--muted) / 0.3);
}

.bg-muted-50 {
  background-color: hsl(var(--muted) / 0.5);
}

.bg-black-10 {
  background-color: rgba(0, 0, 0, 0.1);
}

.bg-black-60 {
  background-color: rgba(0, 0, 0, 0.6);
}

.text-white-90 {
  color: rgba(255, 255, 255, 0.9);
}

.text-secondary-foreground-80 {
  color: hsl(var(--secondary-foreground) / 0.8);
}

.text-secondary-foreground-70 {
  color: hsl(var(--secondary-foreground) / 0.7);
}

.border-secondary-foreground-20 {
  border-color: hsl(var(--secondary-foreground) / 0.2);
}

.object-cover {
  object-fit: cover;
}

/* Interactive Admin Dashboard Styles */
.interactive-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.interactive-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 0;
}

.interactive-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: var(--shadow-interactive);
}

.interactive-card:hover::after {
  opacity: 0.05;
}

.interactive-card > * {
  position: relative;
  z-index: 1;
}

.card-action-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(to top, rgba(249, 115, 22, 0.1), transparent);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.interactive-card:hover .card-action-hint {
  opacity: 1;
  transform: translateY(0);
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.interactive-card.loading {
  pointer-events: none;
  opacity: 0.7;
}

.interactive-card.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2rem;
  height: 2rem;
  margin: -1rem 0 0 -1rem;
  border: 3px solid var(--primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.stats-card {
  position: relative;
}

.counter-value {
  display: inline-block;
  transition: transform 0.3s ease;
}

.stats-card:hover .counter-value {
  transform: scale(1.1);
}

/* Auth Page Interactive Styles */
.input-focused {
  position: relative;
}

.input-focused::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

button.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

button.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1rem;
  margin: -0.5rem 0 0 -0.5rem;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Shop View Interactive Styles */
.product-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
  z-index: 1;
}

.product-card:hover::before {
  left: 100%;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.product-card img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover img {
  transform: scale(1.1);
}

#cart-count {
  transition: transform 0.2s ease;
  display: inline-block;
}

/* Responsive */
@media (max-width: 640px) {
  .hidden-mobile {
    display: none;
  }
  
  /* Mobile button improvements */
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    min-height: 44px; /* Better touch target */
  }
  
  .btn-sm {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    min-height: 40px;
  }
  
  .btn-md {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    min-height: 44px;
  }
  
  .btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1.125rem;
    min-height: 48px;
  }
  
  /* Mobile admin dashboard improvements */
  .container {
    padding: 0 0.75rem;
  }
  
  /* Mobile header adjustments */
header .container {
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Enhanced header with glassmorphism */
header {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
}

header:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Navigation enhancements */
nav {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s;
}

nav:hover {
  background: rgba(255, 255, 255, 0.95);
}
  
  /* Mobile product grid */
  #products-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  
  /* Mobile modal improvements */
  .modal-content {
    max-width: 95vw;
    margin: 1rem;
    max-height: 90vh;
  }
  
  /* Mobile QR code modal */
  #qrcode-container {
    padding: 1rem;
  }
  
  #qrcode-container canvas {
    max-width: 100%;
    height: auto;
  }
  
  /* Mobile announcement buttons */
  #announcements-list .btn {
    min-height: 44px;
    font-size: 0.95rem;
  }
  
  /* Mobile form improvements */
  .input {
    min-height: 44px;
    font-size: 1rem; /* Prevents zoom on iOS */
  }
  
  /* Mobile card spacing */
  .card {
    padding: 1rem;
  }
  
  /* Mobile text sizes */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
}

@media (min-width: 640px) {
  .sm\:flex {
    display: flex;
  }
  .sm\:hidden {
    display: none;
  }
  .sm\:w-\[180px\] {
    width: 180px;
  }
  .sm\:text-left {
    text-align: left;
  }
  .sm\:flex-row {
    flex-direction: row;
  }
  .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Footer visibility fix */
footer {
  position: relative;
  z-index: 10;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin-bottom: 0 !important;
}

body, html {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.min-h-screen {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Enhanced Toast Notifications */
.toast-notification {
  opacity: 0;
  transform: translateX(100%);
  animation: slideInRight 0.3s ease-out forwards;
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Enhanced Change Notifications */
.change-notification {
  opacity: 0;
  transform: translateX(100%);
  animation: slideInRight 0.3s ease-out forwards;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border-radius: 0.75rem;
}

.change-notification button {
  transition: opacity 0.2s;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0.25rem;
}

.change-notification button:hover {
  opacity: 1;
}

/* Ensure buttons don't have default form behavior */
button[type="button"] {
  cursor: pointer;
}

/* Fix button styling in product cards */
.card button {
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Enhanced notification visibility */
.toast-notification {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 0.75rem;
}

/* Tablet and mobile responsive improvements */
@media (max-width: 768px) {
  /* Admin dashboard cards */
  .grid.md\:grid-cols-2.lg\:grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  
  /* Product cards in admin */
  #products-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  /* Shop view product grid */
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }
  
  /* Homepage improvements */
  .text-5xl {
    font-size: 2.5rem;
  }
  
  .text-6xl {
    font-size: 3rem;
  }
  
  /* Navigation improvements */
  nav .container {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  /* Footer improvements */
  footer .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Large mobile and small tablet */
@media (min-width: 641px) and (max-width: 1023px) {
  #products-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Mobile chatbot improvements */
@media (max-width: 640px) {
  #chatbot-toggle {
    bottom: 1rem;
    right: 1rem;
    width: 3.5rem;
    height: 3.5rem;
  }
  
  #chatbot-window {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    width: auto;
    height: 70vh;
    max-height: 500px;
  }
  
  /* Mobile drawer improvements */
  .drawer {
    max-width: 100%;
  }
  
  /* Mobile quick actions grid */
  .grid.md\:grid-cols-2.lg\:grid-cols-4 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Mobile header search */
  #dashboard-search {
    width: 100%;
    max-width: 100%;
  }
  
  /* Mobile shop view header */
  header .flex.items-center.justify-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  /* Mobile cart button */
  #cart-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Homepage mobile improvements */
@media (max-width: 768px) {
  /* Hero section */
  .py-24 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  /* Solutions grid */
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  
  /* Timeline steps */
  .timeline-steps {
    grid-template-columns: 1fr;
  }
  
  /* Feature cards */
  .grid.md\:grid-cols-3 {
    grid-template-columns: 1fr;
  }
}

/* Glass morphism effect */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-4px);
  box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Enhanced animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  33% {
    transform: translateY(-20px) translateX(10px);
  }
  66% {
    transform: translateY(10px) translateX(-10px);
  }
}

@keyframes float-delayed {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  33% {
    transform: translateY(15px) translateX(-15px);
  }
  66% {
    transform: translateY(-10px) translateX(15px);
  }
}

.animate-float {
  animation: float 8s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 10s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.02);
  }
}

.animate-pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}

/* Enhanced input field styling */
.input-field {
  position: relative;
  display: flex;
  align-items: center;
}

.input-field .input-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

.input-field .input {
  padding-left: 2.75rem;
  padding-right: 2.75rem;
}

.input-field .input.has-toggle {
  padding-right: 4rem;
}

.input-field .input-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.2s;
  z-index: 2;
}

.input-field .input-toggle:hover {
  background: var(--muted);
  color: var(--foreground);
}

/* Enhanced border utilities */
.border-border\/50 {
  border-color: hsl(var(--border) / 0.5);
}

/* Transform utilities */
.transform {
  transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1));
}

.-translate-x-1\/2 {
  --tw-translate-x: -50%;
}

.-translate-y-1\/2 {
  --tw-translate-y: -50%;
}

/* Opacity utilities for backgrounds */
.bg-primary\/10 {
  background-color: hsl(var(--primary) / 0.1);
}

.bg-secondary\/10 {
  background-color: hsl(var(--secondary) / 0.1);
}

.bg-accent\/5 {
  background-color: hsl(var(--accent) / 0.05);
}

/* Additional utility classes for homepage */
.bg-primary\/10 {
  background-color: hsl(25, 95%, 53% / 0.1);
}

.bg-secondary\/10 {
  background-color: hsl(195, 75%, 35% / 0.1);
}

.text-primary\/10 {
  color: hsl(25, 95%, 53% / 0.1);
}

.text-secondary\/10 {
  color: hsl(195, 75%, 35% / 0.1);
}

/* Ensure eyebrow is visible */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: block;
}

/* Ensure badge content is visible */
.badge svg {
  display: inline-block;
  flex-shrink: 0;
}

.badge span,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.border-primary\/20 {
  border-color: hsl(var(--primary) / 0.2);
}

.border-primary\/40 {
  border-color: hsl(var(--primary) / 0.4);
}

.hover\:border-primary\/40:hover {
  border-color: hsl(var(--primary) / 0.4);
}

.hover\:bg-destructive\/10:hover {
  background-color: hsl(var(--destructive) / 0.1);
}

.hover\:text-destructive:hover {
  color: var(--destructive);
}

/* Blur utilities */
.blur-3xl {
  filter: blur(64px);
}

/* Pointer events */
.pointer-events-none {
  pointer-events: none;
}

/* Z-index utilities */
.z-10 {
  z-index: 10;
}

.animate-on-scroll {
  opacity: 1 !important;
  transform: none !important;
}

.solutions-interactive {
  display: grid;
  gap: 2.5rem;
}

.solutions-grid {
  gap: 1.5rem;
}

.solution-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-radius: 1.25rem;
  border: 2px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 255, 0.9));
  padding: 1.5rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
  min-height: 100%;
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.solution-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: var(--shadow-interactive);
  background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(255, 250, 240, 0.95));
}

.solution-card:hover::before {
  transform: scaleX(1);
}

.solution-card.active {
  border-color: rgba(249, 115, 22, 0.6);
  background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(255, 244, 234, 0.95));
  box-shadow: var(--shadow-premium);
  transform: translateY(-4px);
}

.solution-card.active::before {
  transform: scaleX(1);
}

.solution-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.solution-card.active {
  border-color: rgba(249, 115, 22, 0.6);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 234, 0.92));
  box-shadow: var(--shadow-premium);
}

.solution-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.35rem;
}

.solution-card p {
  font-size: 0.95rem;
  color: var(--muted-foreground);
}

.solution-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.04));
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.solution-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s;
}

.solution-card:hover .solution-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.2);
}

.solution-card:hover .solution-icon::before {
  opacity: 0.1;
}

.solution-card.active .solution-icon {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(250, 204, 21, 0.15));
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.25);
}

.solution-card.active .solution-icon::before {
  opacity: 0.15;
}

.solution-detail {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.solution-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: hsl(195, 75%, 35%);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.solution-detail-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--foreground);
}

.solution-detail-text {
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.8;
}

.solution-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.solution-bullets li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--muted-foreground);
  font-size: 0.96rem;
}

.solution-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.95), rgba(250, 204, 21, 0.9));
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.solution-detail-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.solution-highlight {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.92), rgba(45, 212, 191, 0.85));
  color: white;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 220px;
}

.solution-highlight-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.solution-highlight-value {
  font-weight: 600;
  font-size: 1.1rem;
}

.how-it-works-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .how-it-works-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: stretch;
  }
}

.timeline-steps {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .timeline-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.timeline-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  text-align: left;
  padding: 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.timeline-step:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.35);
}

.timeline-step:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.timeline-step.active {
  border-color: rgba(249, 115, 22, 0.6);
  background: rgba(249, 115, 22, 0.08);
  box-shadow: var(--shadow-premium);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.92), rgba(250, 204, 21, 0.85));
  color: white;
  font-weight: 700;
  flex-shrink: 0;
}

.timeline-step.active .step-index {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.9), rgba(56, 189, 248, 0.9));
}

.timeline-step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
  text-transform: capitalize;
}

.timeline-step p {
  font-size: 0.95rem;
  color: var(--muted-foreground);
}

.step-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: rgba(37, 99, 235, 1);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-detail-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--foreground);
}

.step-detail-text {
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.8;
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.step-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--muted-foreground);
  font-size: 0.96rem;
}

.step-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.92), rgba(250, 204, 21, 0.85));
  color: white;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.22);
}

.step-detail-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.step-duration {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.link-button {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.link-button::after {
  content: '→';
  transition: transform 0.2s ease;
}

.link-button:hover,
.link-button:focus-visible {
  color: var(--foreground);
}

.link-button:hover::after,
.link-button:focus-visible::after {
  transform: translateX(4px);
}

/* Product Grid */
.product-grid {
  display: grid;
  gap: 1rem;
}

/* Modal animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Ensure modal backdrop blur works */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Tab styles */
.tab-btn {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted-foreground);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: var(--foreground);
  background: var(--muted);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.tab-content {
  animation: fadeIn 0.3s ease-in;
}

.tab-content.hidden {
  display: none;
}

/* Mobile responsive utilities */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

@media (max-width: 640px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

