/* CSS Variables - converted from Tailwind theme */
:root {
  /* Colors - vintage watch aesthetic */
  --background: #fffafc; /* warm off-white */
  --foreground: #3d2914; /* deep brown */
  --card: #fbf3ef; /* cream white */
  --card-foreground: #3d2914; /* deep brown */
  --primary: #8b2635; /* deep burgundy red */
  --primary-foreground: #fefcf8; /* warm off-white */
  --secondary: #5d3a1a; /* rich brown */
  --secondary-foreground: #fefcf8; /* warm off-white */
  --muted: #f4ede9; /* light cream */
  --muted-foreground: #6b5b4f; /* neutral charcoal brown - matches React oklch(0.45 0.02 30) */
  --accent: #a12d3e; /* deeper red for hover */
  --accent-foreground: #fefcf8; /* warm off-white */
  --border: #e6e2dc; /* light cream border */
  --input: #fefcf8; /* warm off-white */
  --ring: #8b2635; /* deep burgundy red */

  /* Typography */
  --font-geist-sans: "Geist", "GeistSans Fallback", sans-serif;

  /* Added navbar background opacity variables for progressive enhancement */
  --background-95: rgba(254, 252, 248, 0.95);
  --background-60: rgba(254, 252, 248, 0.6);

  --gradient-from: transparent;
  --gradient-to: transparent;
  --gradient-stops: var(--gradient-from), var(--gradient-to);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  border: none;
  box-sizing: border-box;
  /* Added font synthesis and optical sizing fixes */
  font-synthesis: none;
  font-optical-sizing: auto;
}

/* Added base link styling overrides to remove browser defaults */
a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: none;
}

/* a:visited {
  color: inherit;
} */

a:focus {
  outline: none;
}

body {
  font-family: var(--font-geist-sans);
  background-color: var(--background);
  color: var(--foreground);
  /* Changed line-height from 1.6 to 1.5 to match React */
  line-height: 1.5;
  /* Added explicit font-weight and font properties */
  font-weight: 400;
  font-display: swap;
  font-variation-settings: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout utilities */
.min-h-screen {
  min-height: 100vh;
}

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

.flex-row {
  display: flex;
  flex-direction: row;
}

.flex-1 {
  flex: 1;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

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

/* Typography */
.font-sans {
  font-family: var(--font-geist-sans);
}

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

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

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

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

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

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

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

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

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

.text-balance {
  text-wrap: balance;
}

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

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

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

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

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

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

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

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

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

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

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

.bg-muted-20 {
  background-color: color-mix(in srgb, var(--muted) 20%, transparent);
}

.bg-muted-30 {
  background-color: color-mix(in srgb, var(--muted) 30%, transparent);
}

.bg-muted-40 {
  background-color: color-mix(in srgb, var(--muted) 40%, transparent);
}

/* Added missing bg-muted/30 class to match React version */
.bg-muted\/30 {
  background-color: color-mix(in srgb, var(--muted) 30%, transparent);
}

/* Spacing */
.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

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

.py-24 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

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

.py-40 {
  padding-top: 10rem;
  padding-bottom: 10rem;
}

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

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

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

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

.pt-6 {
  padding-top: 1.5rem;
}

.pt-8 {
  padding-top: 2rem;
}

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

.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-8 > * + * {
  margin-top: 2rem;
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.space-x-8 > * + * {
  margin-left: 2rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

.w-16 {
  width: 4rem;
}

.h-16 {
  height: 4rem;
}

.w-12 {
  width: 3rem;
}

.h-12 {
  height: 3rem;
}

.w-8 {
  width: 2rem;
}

.h-8 {
  height: 2rem;
}

.w-4 {
  width: 1rem;
}

.h-4 {
  height: 1rem;
}

.w-5 {
  width: 1.25rem;
}

.h-5 {
  height: 1.25rem;
}

.w-6 {
  width: 1.5rem;
}

.h-6 {
  height: 1.5rem;
}

/* Layout */
.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));
}

.flex {
  display: flex;
}

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

.items-start {
  align-items: flex-start;
}

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

.flex-wrap {
  flex-wrap: wrap;
}

/* Positioning */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.sticky {
  position: sticky;
}

.top-0 {
  top: 0;
}

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

.-top-4 {
  top: -1rem;
}

.-right-4 {
  right: -1rem;
}

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

.-left-4 {
  left: -1rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

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

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

.mt-8 {
  margin-top: 2rem;
}

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

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

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

.p-3 {
  padding: 0.75rem;
}

/* Borders and effects */
.border {
  border: 1px solid var(--border);
}

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

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

.border-0 {
  border: 0;
}

.border-red-500 {
  border-color: #ef4444;
}

/* Updated border radius classes to match React app exactly */
.rounded-md {
  border-radius: 0.375rem;
}

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

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

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

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

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.transition-shadow {
  transition: box-shadow 0.2s ease-in-out;
}

.transition-colors {
  transition: color 0.2s ease-in-out;
}

.overflow-hidden {
  overflow: hidden;
}

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

/* Backdrop effects */
.backdrop-blur {
  backdrop-filter: blur(8px);
}

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

/* Progressive enhancement: use more transparent background when backdrop-filter is supported */
@supports (backdrop-filter: blur(8px)) {
  .bg-background-95 {
    background-color: var(--background-60);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2rem; /* h-8 equivalent */
  padding: 0.5rem 1rem; /* px-4 py-2 equivalent */
  border-radius: 0.375rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  border: none;
  font-size: 0.875rem;
  gap: 0.5rem; /* Added gap for icon spacing */
  white-space: nowrap;
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn:focus-visible {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.5);
}

.btn-outline {
  background-color: var(--background);
  border: 1px solid var(--border); /* Added missing border */
  color: var(--foreground);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); /* shadow-xs */
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.btn svg {
  pointer-events: none;
  flex-shrink: 0;
  width: 1rem; /* h-4 w-4 */
  height: 1rem;
}

.btn:has(svg) {
  padding-left: 16px; /* px-2.5 when has svg */
  padding-right: 16px;
}

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

.btn-primary:hover {
  background-color: var(--accent);
}

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

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

.btn-lg {
  height: 2.5rem; /* h-10 equivalent */
  padding: 0 1.5rem; /* px-6 equivalent */
}

.btn-sm {
  height: 2rem; /* h-8 equivalent - matches React version */
  padding: 0 0.75rem; /* px-3 equivalent */
  font-size: 0.875rem; /* text-sm */
}

/* Images */
.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

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

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

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none;
}

.block {
  display: block;
}

/* Responsive utilities */
@media (min-width: 768px) {
  .md\:flex {
    display: flex !important;
  }

  .md\:hidden {
    display: none !important;
  }
  
  .md\:block {
    display: block;
  }

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

  /* Added missing md:grid-cols-3 utility class for testimonials */
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Added md:grid-cols-4 utility class for trust indicators */
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  /* Adding missing responsive text classes for membership hero */
  .md\:text-6xl {
    font-size: 3.75rem;
    line-height: 1;
  }

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

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

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

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

  .lg\:py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }

  .lg\:py-40 {
    padding-top: 10rem;
    padding-bottom: 10rem;
  }

  .lg\:py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

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

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

  /* Adding missing large screen text classes */
  .lg\:text-7xl {
    font-size: 4.5rem;
    line-height: 1;
  }

  .lg\:py-40 {
    padding-top: 10rem;
    padding-bottom: 10rem;
  }
}

@media (min-width: 640px) {
  .sm\:flex-row {
    flex-direction: row;
  }
}

/* Transitions */
.transition-colors {
  transition: color 0.2s ease-in-out;
}

.transition-shadow {
  transition: box-shadow 0.2s ease-in-out;
}

/* Hover states */
.hover\:text-foreground:hover {
  color: var(--foreground);
}

.hover\:bg-primary-90:hover {
  background-color: var(--accent);
}

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

/* Gradients */
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--background), var(--background), rgba(242, 240, 236, 0.2));
}

/* Max widths */
.max-w-lg {
  max-width: 32rem;
}

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

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

.max-w-4xl {
  max-width: 56rem;
}

.max-w-6xl {
  max-width: 72rem;
}

.max-w-7xl {
  max-width: 80rem;
}

/* Positioning utilities */
.-top-4 {
  top: -1rem;
}

.-right-4 {
  right: -1rem;
}

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

.-left-4 {
  left: -1rem;
}

/* Mobile menu styles */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background-color: var(--background);
  border-left: 1px solid var(--border);
  padding: 2rem;
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.mobile-menu-overlay.open {
  display: block;
}

@media (max-width: 767px) {
  .mobile-menu-trigger {
    display: block !important;
  }

  .md\:flex {
    display: none !important;
  }
}

.mobile-menu-trigger {
  display: none;
}

/* Badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem; /* rounded-md */
  border: 1px solid transparent;
  padding: 0.125rem 0.5rem; /* px-2 py-0.5 */
  font-weight: 500; /* font-medium */
  width: fit-content;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.75rem; /* text-xs */
  transition: color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  overflow: hidden;
}

.badge-era {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-color: transparent;
}

.badge-condition {
  background-color: transparent;
  color: var(--foreground);
  border-color: transparent;
}

/* Watch card styles */
.watch-card {
  transition: all 0.3s ease;
}

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

.watch-image {
  transition: transform 0.3s ease;
}

.watch-card:hover .watch-image {
  transform: scale(1.05);
}

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

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

.bg-primary\/10 {
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
}

.bg-muted\/50 {
  background-color: color-mix(in srgb, var(--muted) 50%, transparent);
}

.text-green-600 {
  color: #16a34a;
}

.text-gray-400 {
  color: #9ca3af;
}

.text-red-600 {
  color: #dc2626;
}

.text-blue-600 {
  color: #2563eb;
}

/* Table specific styles */
table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  vertical-align: middle;
}

th {
  font-weight: 600;
}

/* Card styles */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.card-header {
  padding: 1.5rem 1.5rem 0;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-weight: 600;
  line-height: 1;
}

/* Accordion styles */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: var(--card);
  overflow: hidden;
}

.accordion-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  font-weight: 600;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  color: var(--foreground);
}

.accordion-trigger:hover {
  background-color: var(--muted);
}

.accordion-trigger[aria-expanded="true"] .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-chevron {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease-in-out;
  flex-shrink: 0;
}

.accordion-content {
  padding: 0 1.5rem 1rem;
  color: var(--muted-foreground);
  line-height: 1.625;
}

.accordion-content[data-state="closed"] {
  display: none;
}

.accordion-content[data-state="open"] {
  display: block;
  animation: accordion-down 0.2s ease-out;
}

@keyframes accordion-down {
  from {
    height: 0;
    opacity: 0;
  }
  to {
    height: var(--radix-accordion-content-height);
    opacity: 1;
  }
}

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

.hover\:no-underline:hover {
  text-decoration: none;
}

/* Form validation and animation classes */
.animate-spin {
  animation: spin 1s linear infinite;
}

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

/* Additional utility classes */
.text-pretty {
  text-wrap: pretty;
}

.h-auto {
  height: auto;
}

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

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--gradient-stops));
}

.from-background {
  --gradient-from: hsl(var(--background));
  --gradient-to: hsl(var(--background) / 0);
  --gradient-stops: var(--gradient-from), var(--gradient-to);
}

.to-muted\/30 {
  --gradient-to: hsl(var(--muted) / 0.3);
}

.to-muted\/20 {
  --gradient-to: hsl(var(--muted) / 0.2);
}

.pb-6 {
  padding-bottom: 1.5rem;
}

.stroke-width-2 {
  stroke-width: 2;
}

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

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.checkbox {
  height: 1rem;
  width: 1rem;
  border-radius: 0.25rem;
  border: 1px solid var(--border);
  background-color: var(--input);
}

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

.input {
  background-color: var(--background);
  /* border: 1px solid var(--border); */
  padding: 12px 16px; /* This adds space around both placeholder and actual text */
  color: var(--foreground);
  font-size: 0.875rem;
  display: flex;
  width: 100%;
  border-radius: 0.375rem;
  transition: border-color 0.2s;
}

.input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(139, 38, 53, 0.1);
}

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

.text-xs {
  font-size: 0.80rem;
  line-height: 1.2rem;
}

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

.lg\:p-12 {
  padding: 3rem;
}

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

.underline-offset-4 {
  text-underline-offset: 4px;
}

.hover\:text-primary\/80:hover {
  color: hsl(var(--primary) / 0.8);
}

.mt-2 {
  margin-top: 0.5rem;
}

.space-x-3 > * + * {
  margin-left: 0.75rem;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.w-2 {
  width: 0.5rem;
}

.h-2 {
  height: 0.5rem;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.min-h-32 {
  min-height: 8rem;
}

.bg-muted\/20 {
  background-color: hsl(var(--muted) / 0.2);
}

.bg-primary\/5 { 
  background-color: transparent; 
} /* fallback first */

@supports (background-color: color-mix(in srgb, white, black)) {
  .bg-primary\/5 { background-color: color-mix(in srgb, var(--primary) 5%, transparent); }
}

.bg-transparent {
  background-color: transparent;
}

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

.border-muted-foreground\/25 {
  border-color: color-mix(in srgb, var(--muted-foreground) 100%, transparent 75%);
}

.hover\:bg-background\/50:hover {
  background-color: color-mix(in srgb, var(--background) 50%, transparent);
}

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

.p-8 {
  padding: 2rem;
}

.mt-4 {
  margin-top: 1rem;
}

.badge-counts {
    background-color: var(--muted);
    color: var(--muted-foreground);
    border: 1px solid var(--border);
}

.aspect-\[4\/3\] {
  aspect-ratio: 4 / 3;
}

/* Fallback first */
.border-primary\/20 { border-color: transparent; }

/* Modern override */
@supports (border-color: color-mix(in srgb, white, black)) {
  .border-primary\/20 {
    border-color: color-mix(in srgb, var(--primary) 20%, transparent);
  }
}

.inline-flex {
  display: inline-flex;
}

.leading-none {
  line-height: 1;
}

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

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

/* no alpha needed, just use the token */
.hover\:bg-accent:hover {
  background-color: var(--accent);
}

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

/* 50 percent alpha version with fallback */
.dark\:hover\:bg-accent\/50:hover { background-color: var(--accent); }

@supports (background-color: color-mix(in srgb, white, black)) {
  .dark\:hover\:bg-accent\/50:hover {
    background-color: color-mix(in srgb, var(--accent) 50%, transparent);
  }
}

/* keep the media-query version if you need that structure */
@media (prefers-color-scheme: dark) {
  .dark\:hover\:bg-accent\/50:hover { background-color: var(--accent); }
  @supports (background-color: color-mix(in srgb, white, black)) {
    .dark\:hover\:bg-accent\/50:hover {
      background-color: color-mix(in srgb, var(--accent) 50%, transparent);
    }
  }
}

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

.lg\:gap-12 {
  gap: 3rem;
}

.xl\:col-span-2 {
  grid-column: span 2 / span 2;
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

@media (min-width: 1024px) {
  .lg\:gap-12 {
    gap: 3rem;
  }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .xl\:col-span-2 {
    grid-column: span 2 / span 2;
  }
}

.gap-3 {
  gap: 0.75rem;
}

.w-24 {
  width: 6rem;
}

.h-24 {
  height: 6rem;
}

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

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-200 {
  transition-duration: 200ms;
}

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

.thumbnail-btn {
  /* Custom class - would need to be defined based on specific requirements */
}

.ring-2 {
  box-shadow: 0 0 0 2px var(--ring-color);
}

.px-2\.5 {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}

.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}

.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus\:ring-2:focus {
  box-shadow: 0 0 0 2px var(--ring);
}


.focus\:ring-offset-2:focus {
  box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
}

.border-transparent {
  border-color: transparent;
}

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

/* Fallbacks first */
.border-primary { border-color: var(--primary); }

.ring-primary\/20 { --ring-color: var(--primary); }

.focus\:ring-ring:focus { --ring-color: var(--ring); }

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

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

.hover\:bg-secondary\/80:hover { background-color: var(--secondary); }

/* Modern overrides */
@supports (color: color-mix(in srgb, white, black)) {
  .ring-primary\/20 {
    --ring-color: color-mix(in srgb, var(--primary) 20%, transparent);
  }
  .hover\:bg-secondary\/80:hover {
    background-color: color-mix(in srgb, var(--secondary) 80%, transparent);
  }
}

.whitespace-nowrap {
  white-space: nowrap;
}

.focus-visible\:outline-none:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus-visible\:ring-2:focus-visible {
  box-shadow: 0 0 0 2px var(--ring);
}

.focus-visible\:ring-offset-2:focus-visible {
  box-shadow: 0 0 0 2px var(--ring-offset-color), 0 0 0 4px var(--ring);
}

.disabled\:pointer-events-none:disabled {
  pointer-events: none;
}

.disabled\:opacity-50:disabled {
  opacity: 0.5;
}

.h-10 {
  height: 2.5rem;
}

.w-10 {
  width: 2.5rem;
}

/* Fallbacks first */
.hover\:bg-primary\/10:hover { background-color: transparent; } /* gentle no-op */
.ring-offset-background { --ring-offset-color: var(--background); }
.border-input { border-color: var(--input); }
.bg-background { background-color: var(--background); }
.focus-visible\:ring-ring:focus-visible { --ring-color: var(--ring); }

/* Modern overrides */
@supports (background-color: color-mix(in srgb, white, black)) {
  .hover\:bg-primary\/10:hover {
    background-color: color-mix(in srgb, var(--primary) 10%, transparent);
  }
}

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

@media (min-width: 1024px) {
  .lg\:text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
}

.xl\:col-span-1 {
  grid-column: span 1 / span 1;
}

.grid-rows-\[auto_1fr_auto\] {
  grid-template-rows: auto 1fr auto;
}

.xl\:h-\[calc$$100vh-16rem$$\] {
  height: calc(100vh - 16rem);
}

.xl\:max-h-\[600px\] {
  max-height: 600px;
}

@media (min-width: 1280px) {
  .xl\:col-span-1 {
    grid-column: span 1 / span 1;
  }
  
  .xl\:h-\[calc$$100vh-16rem$$\] {
    height: calc(100vh - 16rem);
  }
  
  .xl\:max-h-\[600px\] {
    max-height: 600px;
  }
}

/* Fallback first */
.border-primary\/30 { border-color: transparent; }

/* Modern override */
@supports (border-color: color-mix(in srgb, white, black)) {
  .border-primary\/30 {
    border-color: color-mix(in srgb, var(--primary) 30%, transparent);
  }
}

/* Fallbacks first */
.from-primary\/5 {
  --gradient-from: transparent;
  --gradient-to: transparent;
  --gradient-stops: var(--gradient-from), var(--gradient-to);
}
.to-primary\/10 { --gradient-to: transparent; }

/* Modern overrides */
@supports (color: color-mix(in srgb, white, black)) {
  .from-primary\/5 {
    --gradient-from: color-mix(in srgb, var(--primary) 5%, transparent);
    --gradient-to: transparent; /* equals 0 percent alpha */
    --gradient-stops: var(--gradient-from), var(--gradient-to);
  }
  .to-primary\/10 {
    --gradient-to: color-mix(in srgb, var(--primary) 10%, transparent);
  }
}

.bottom-4 {
  bottom: 1rem;
}

.right-4 {
  right: 1rem;
}

/* Fallback first */
.bg-background\/90 { background-color: var(--background); }

/* Modern override */
@supports (background-color: color-mix(in srgb, white, black)) {
  .bg-background\/90 {
    background-color: color-mix(in srgb, var(--background) 90%, transparent);
  }
}

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

.left-6 {
  left: 1.5rem;
}

.top-1\/2 {
  top: 50%;
}

.-translate-y-1\/2 {
  transform: translateY(-50%);
}

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

.right-6 {
  right: 1.5rem;
}

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

.h-1 {
  height: 0.25rem;
}

.divide-y > :not([hidden]) ~ :not([hidden]) {
  border-top-width: 1px;
  border-left-width: 0;
  border-right-width: 0;
  border-bottom-width: 0;
  border-style: solid;                 /* required */
  border-color: var(--border, currentColor);
}


/* Fallbacks first */
.divide-border > :not([hidden]) ~ :not([hidden]) {
  border-color: var(--border);
}

.hover\:bg-muted\/50:hover {
  background-color: var(--muted);
}

/* Modern overrides */
@supports (color: color-mix(in srgb, white, black)) {
  .hover\:bg-muted\/50:hover {
    background-color: color-mix(in srgb, var(--muted) 50%, transparent);
  }
}

.bottom-6 {
  bottom: 1.5rem;
}

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

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

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

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

.max-w-none {
  max-width: none;
}

.pr-48 {
  padding-right: 12rem;
}

.pb-12 {
  padding-bottom: 3rem;
}

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

.pt-16 {
  padding-top: 4rem;
}

.peer {
  /* Creates a peer element for sibling selectors */
}

.rounded-sm {
  border-radius: 0.125rem;
}

.cursor-not-allowed {
  cursor: not-allowed;
}

input[type="checkbox"] { accent-color: var(--primary); }

.p-2 {
  padding: 0.5rem;
}

.h-20 {
  height: 5rem;
}

.w-20 {
  width: 5rem;
}
