/**
 * OutBuy Production CSS
 * Modern SaaS UI with clean Tailwind CSS utility classes and custom components.
 */

:root {
  --color-primary: #e57555;
  --color-primary-dark: #cc5d3e;
  --color-primary-light: #fef1ed;
  --color-accent: #f08b6e;
  --color-gold: #f59e0b;
  --color-gold-light: #fef3c7;
  --color-surface: #ffffff;
  --color-bg: #fdf8f6;
  --color-border: #f2e4df;
  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Sizing & Dimensions */
.w-full {
  width: 100%;
}

.w-auto {
  width: auto;
}

.w-2 {
  width: 0.5rem;
}

.w-2\.5 {
  width: 0.625rem;
}

.w-3 {
  width: 0.75rem;
}

.w-4 {
  width: 1rem;
}

.w-5 {
  width: 1.25rem;
}

.w-6 {
  width: 1.5rem;
}

.w-8 {
  width: 2rem;
}

.w-10 {
  width: 2.5rem;
}

.w-11 {
  width: 2.75rem;
}

.w-12 {
  width: 3rem;
}

.w-14 {
  width: 3.5rem;
}

.w-16 {
  width: 4rem;
}

.w-20 {
  width: 5rem;
}

.w-24 {
  width: 6rem;
}

.h-full {
  height: 100%;
}

.h-auto {
  height: auto;
}

.h-2 {
  height: 0.5rem;
}

.h-2\.5 {
  height: 0.625rem;
}

.h-3 {
  height: 0.75rem;
}

.h-4 {
  height: 1rem;
}

.h-5 {
  height: 1.25rem;
}

.h-6 {
  height: 1.5rem;
}

.h-8 {
  height: 2rem;
}

.h-10 {
  height: 2.5rem;
}

.h-11 {
  height: 2.75rem;
}

.h-12 {
  height: 3rem;
}

.h-14 {
  height: 3.5rem;
}

.h-16 {
  height: 4rem;
}

.h-20 {
  height: 5rem;
}

.h-24 {
  height: 6rem;
}

.max-w-xs {
  max-width: 20rem;
}

.max-w-sm {
  max-width: 24rem;
}

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

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

.max-w-xl {
  max-width: 36rem;
}

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

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

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

.max-w-5xl {
  max-width: 64rem;
}

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

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

.overflow-hidden {
  overflow: hidden;
}

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

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.flex {
  display: flex;
}

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

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.block {
  display: block;
}

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

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

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

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

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

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

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

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

.justify-end {
  justify-content: flex-end;
}

.justify-start {
  justify-content: flex-start;
}

.flex-1 {
  flex: 1 1 0%;
}

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

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-10 {
  gap: 2.5rem;
}

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

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

  .sm\:flex-row {
    flex-direction: row;
  }
}

@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\:flex-row {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .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\:flex {
    display: flex;
  }

  .lg\:hidden {
    display: none;
  }
}

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

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-5 {
  padding: 1.25rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

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

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

.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

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

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

.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

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

.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

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

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

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

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

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

.m-auto {
  margin: auto;
}

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

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

.mb-10 {
  margin-bottom: 2.5rem;
}

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

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

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

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

.mr-2 {
  margin-right: 0.5rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.ml-auto {
  margin-left: auto;
}

.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-x-2>*+* {
  margin-left: 0.5rem;
}

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

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

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

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

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

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

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

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

.text-slate-400 {
  color: #94a3b8;
}

.text-slate-500 {
  color: #64748b;
}

.text-slate-600 {
  color: #475569;
}

.text-slate-700 {
  color: #334155;
}

.text-slate-800 {
  color: #1e293b;
}

.text-slate-900 {
  color: #0f172a;
}

.text-indigo-600 {
  color: #e57555;
}

.text-indigo-700 {
  color: #cc5d3e;
}

.text-emerald-600 {
  color: #059669;
}

.text-rose-600 {
  color: #e11d48;
}

.text-amber-600 {
  color: #d97706;
}

.text-white {
  color: #ffffff;
}

/* Surfaces, Borders & Shadows */
.bg-white {
  background-color: #ffffff;
}

.bg-slate-50 {
  background-color: #f8fafc;
}

.bg-slate-100 {
  background-color: #f1f5f9;
}

.bg-indigo-50 {
  background-color: #fef1ed;
}

.bg-indigo-600 {
  background-color: #e57555;
}

.bg-emerald-50 {
  background-color: #ecfdf5;
}

.bg-rose-50 {
  background-color: #fff1f2;
}

.bg-amber-50 {
  background-color: #fffbeb;
}

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

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

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

.border-slate-200 {
  border-color: #e2e8f0;
}

.border-indigo-100 {
  border-color: #fce4dc;
}

.border-indigo-200 {
  border-color: #fcd0c2;
}

.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-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

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

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

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

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
}

/* Components: Buttons (World-Class Tactile Modern SaaS Design) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
  gap: 0.4rem;
  user-select: none;
  position: relative;
}

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

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn-primary {
  background-color: #e57555;
  background-image: linear-gradient(180deg, #ea7e60 0%, #e57555 100%);
  color: #ffffff !important;
  border: 1px solid #d45f3f;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.08),
    0 3px 12px rgba(229, 117, 85, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  background-color: #ee8366;
  background-image: linear-gradient(180deg, #f0896d 0%, #eb795a 100%);
  color: #ffffff !important;
  border-color: #cc5636;
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.08),
    0 6px 20px rgba(229, 117, 85, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: translateY(-1.5px);
}

.btn-primary:active {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.15), inset 0 1px 2px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background-color: #ffffff;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.btn-secondary:hover {
  background-color: #fdf8f6;
  border-color: rgba(229, 117, 85, 0.4);
  color: #e57555 !important;
  box-shadow:
    0 4px 14px rgba(229, 117, 85, 0.12),
    0 1px 2px rgba(15, 23, 42, 0.04);
  transform: translateY(-1.5px);
}

.btn-secondary:active {
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary) !important;
  border: 1.5px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark) !important;
  border-color: var(--color-primary-dark);
  box-shadow: 0 4px 12px rgba(229, 117, 85, 0.15);
  transform: translateY(-1.5px);
}

.btn-gold {
  background-color: #f59e0b;
  background-image: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
  color: #ffffff !important;
  border: 1px solid #d97706;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.08),
    0 4px 14px rgba(245, 158, 11, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

.btn-gold:hover {
  background-color: #f59e0b;
  background-image: linear-gradient(180deg, #fcd34d 0%, #fbbf24 100%);
  color: #ffffff !important;
  border-color: #b45309;
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.08),
    0 6px 20px rgba(245, 158, 11, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
  transform: translateY(-1.5px);
}

.btn-violet {
  background-color: #8b5cf6;
  background-image: linear-gradient(180deg, #a855f7 0%, #7c3aed 100%);
  color: #ffffff !important;
  border: 1px solid #6d28d9;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.08),
    0 4px 14px rgba(139, 92, 246, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

.btn-violet:hover {
  background-color: #7c3aed;
  background-image: linear-gradient(180deg, #c084fc 0%, #9333ea 100%);
  color: #ffffff !important;
  border-color: #5b21b6;
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.08),
    0 6px 20px rgba(139, 92, 246, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
  transform: translateY(-1.5px);
}

.btn-danger {
  background-color: #ef4444;
  background-image: linear-gradient(180deg, #f87171 0%, #ef4444 100%);
  color: #ffffff !important;
  border: 1px solid #dc2626;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 3px 10px rgba(239, 68, 68, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-danger:hover {
  background-color: #f87171;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.45);
  transform: translateY(-1.5px);
}

.btn-sm {
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  border-radius: 9999px;
  gap: 0.3rem;
}

.btn-lg {
  padding: 0.75rem 1.65rem;
  font-size: 0.9375rem;
  border-radius: 9999px;
  gap: 0.5rem;
}

/* Header: Strictly 50px Height, Vertically Middle Aligned, Zero Border, Zero Shadow */
.site-nav-wrapper {
  background-color: var(--color-bg);
  position: relative;
  width: 100%;
  border: none !important;
  box-shadow: none !important;
  margin-top: 0;
  overflow: visible !important;
}

.site-header {
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  border: none !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
  background-color: var(--color-bg) !important;
  width: 100%;
  margin-top: 15px;
  overflow: visible !important;
}

.site-header .container {
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  overflow: visible !important;
}

.site-category-pills-bar {
  width: 100%;
  padding-top: 0.25rem;
  padding-bottom: 0.35rem;
}

#mobile-menu {
  box-shadow: none !important;
  border-top: none !important;
  border-bottom: 1px solid var(--color-border) !important;
}

/* Forms & Inputs */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.375rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: #0f172a;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(229, 117, 85, 0.2);
}

.form-help {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* Cards */
.card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 1.125rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03), 0 2px 8px -2px rgba(229, 117, 85, 0.04);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  /* hover effect removed */
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  line-height: 1;
}

.badge-indigo {
  background-color: #fef1ed;
  color: #cc5d3e;
  border: 1px solid #fce4dc;
}

.badge-gold {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
  color: #ffffff !important;
  border: 1px solid #b45309;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.badge-violet {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #ec4899 100%);
  color: #ffffff !important;
  border: 1px solid #6d28d9;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.badge-silver {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  color: #0f172a !important;
  border: 1px solid #94a3b8;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  text-shadow: none;
}

.badge-bronze {
  background: linear-gradient(135deg, #fdba74 0%, #ea580c 100%);
  color: #ffffff;
  border: 1px solid #c2410c;
}

.badge-emerald {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-rose {
  background-color: #ffe4e6;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

/* Dark Mode Badges - High contrast, deep dark solid surfaces, zero light/white */
html.dark .badge-indigo {
  background-color: #261611 !important;
  color: #f08b6e !important;
  border: 1px solid #4a2418 !important;
}

html.dark .badge-emerald {
  background-color: #0d231a !important;
  color: #34d399 !important;
  border: 1px solid #134e3a !important;
}

html.dark .badge-rose {
  background-color: #281116 !important;
  color: #fb7185 !important;
  border: 1px solid #4c1120 !important;
}

html.dark .badge-gold {
  background: linear-gradient(135deg, #78350f 0%, #92400e 50%, #b45309 100%) !important;
  color: #fef3c7 !important;
  border: 1px solid #b45309 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html.dark .badge-silver {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  color: #f1f5f9 !important;
  border: 1px solid #475569 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
  text-shadow: none !important;
}

html.dark .badge-slate {
  background-color: #1e293b !important;
  color: #94a3b8 !important;
  border: 1px solid #334155 !important;
}

html.dark .badge-amber,
html.dark .badge-yellow {
  background-color: #24180c !important;
  color: #fbbf24 !important;
  border: 1px solid #452b0d !important;
}

html.dark .badge-blue {
  background-color: #0f1d33 !important;
  color: #60a5fa !important;
  border: 1px solid #1e3a8a !important;
}

html.dark .badge-purple {
  background-color: #1d102e !important;
  color: #c084fc !important;
  border: 1px solid #431766 !important;
}

/* Dark Mode Overrides for Icon Boxes & Pastel Utility Classes */
html.dark .dropdown-icon-box {
  background-color: #1e130f !important;
  border: 1px solid #331d16 !important;
}

html.dark .dropdown-icon-box.bg-amber-50,
html.dark .bg-amber-50,
html.dark .bg-amber-100 {
  background-color: #24180c !important;
  color: #fbbf24 !important;
  border-color: #452b0d !important;
}

html.dark .dropdown-icon-box.bg-rose-50,
html.dark .bg-rose-50,
html.dark .bg-rose-100 {
  background-color: #241116 !important;
  color: #fb7185 !important;
  border-color: #4c1120 !important;
}

html.dark .dropdown-icon-box.bg-indigo-50,
html.dark .bg-indigo-50,
html.dark .bg-indigo-100 {
  background-color: #1a1228 !important;
  color: #a5b4fc !important;
  border-color: #312152 !important;
}

html.dark .dropdown-icon-box.bg-emerald-50,
html.dark .bg-emerald-50,
html.dark .bg-emerald-100 {
  background-color: #0d2219 !important;
  color: #34d399 !important;
  border-color: #134e3a !important;
}

html.dark .dropdown-icon-box.bg-blue-50,
html.dark .bg-blue-50,
html.dark .bg-blue-100 {
  background-color: #0f1d33 !important;
  color: #60a5fa !important;
  border-color: #1e3a8a !important;
}

html.dark .dropdown-icon-box.bg-orange-50,
html.dark .bg-orange-50,
html.dark .bg-orange-100 {
  background-color: #24130d !important;
  color: #fb923c !important;
  border-color: #452014 !important;
}

html.dark .dropdown-icon-box.bg-purple-50,
html.dark .bg-purple-50,
html.dark .bg-purple-100 {
  background-color: #1d102e !important;
  color: #c084fc !important;
  border-color: #431766 !important;
}

html.dark .dropdown-icon-box.bg-slate-100,
html.dark .bg-slate-50,
html.dark .bg-slate-100 {
  background-color: #171f2e !important;
  color: #94a3b8 !important;
  border-color: #243044 !important;
}

/* Mobile Navigation Hamburger Button */
.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background-color: #ffffff;
  color: #334155;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}

@media (max-width: 767px) {
  .hamburger-btn {
    display: inline-flex !important;
  }
}

.hamburger-btn:hover {
  background-color: #fdf8f6;
  border-color: rgba(229, 117, 85, 0.4);
  color: #e57555;
}

html.dark .hamburger-btn {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
}

html.dark .hamburger-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #f08b6e;
  color: #f08b6e;
}

.hamburger-btn svg {
  width: 20px !important;
  height: 20px !important;
  display: block;
}

/* Top Spotlight Hero Card (Large 45px Title + Quick Claim Form) */
.spotlight-hero-card {
  padding: 1rem 1rem;
  text-align: center;
  position: relative;
  overflow: visible;
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .spotlight-hero-card {
    padding: 0.5rem 0.25rem !important;
    margin-bottom: 0.25rem !important;
  }
}

.spotlight-hero-title {
  font-size: 45px !important;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin-top: 0.35rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .spotlight-hero-title {
    font-size: 1.625rem !important;
    line-height: 1.25 !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
  }
}

html.dark .spotlight-hero-title {
  color: #ffffff;
}

.spotlight-highlight {
  color: #e57555 !important;
  display: inline-block;
}

html.dark .spotlight-highlight {
  color: #f08b6e !important;
}

/* Quick Claim Inline Form */
.spotlight-quick-form {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  background-color: #ffffff;
  border: 1.5px solid rgba(229, 117, 85, 0.25);
  border-radius: 9999px;
  padding: 0.25rem 0.35rem;
  box-shadow: 0 2px 10px -2px rgba(229, 117, 85, 0.08), 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.spotlight-quick-form:focus-within {
  border-color: #e57555;
  box-shadow: 0 0 0 3px rgba(229, 117, 85, 0.16), 0 4px 16px rgba(229, 117, 85, 0.12);
}

html.dark .spotlight-quick-form {
  background-color: #1e130f;
  border-color: rgba(229, 117, 85, 0.35);
}

.spotlight-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0.75rem;
  min-width: 0;
  flex: 1;
}

.spotlight-input-icon {
  width: 15px;
  height: 15px;
  color: #e57555;
  flex-shrink: 0;
}

.spotlight-quick-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.8125rem;
  color: #0f172a;
  outline: none;
  font-family: inherit;
  font-weight: 500;
}

.spotlight-quick-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

html.dark .spotlight-quick-input {
  color: #f8fafc;
}

.spotlight-controls-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.spotlight-select-wrapper {
  flex-shrink: 0;
  border-left: 1.5px solid rgba(229, 117, 85, 0.2);
  padding-left: 0.4rem;
  padding-right: 0.15rem;
}

.spotlight-quick-select {
  border: none;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  outline: none;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  font-family: inherit;
}

html.dark .spotlight-quick-select {
  color: #cbd5e1;
  background-color: #1e130f;
}

.spotlight-claim-btn {
  flex-shrink: 0;
  padding: 0.42rem 1.15rem !important;
  font-size: 0.8125rem !important;
  border-radius: 9999px !important;
  transition: all 0.2s ease-in-out;
}

.spotlight-claim-btn:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  transform: none !important;
  box-shadow: none !important;
  filter: grayscale(35%) !important;
}

@media (max-width: 640px) {
  .spotlight-quick-form {
    flex-direction: column;
    align-items: stretch;
    border-radius: 1rem;
    padding: 0.6rem 0.75rem;
    gap: 0.45rem;
  }
  .spotlight-input-wrapper {
    width: 100%;
    padding-left: 0.25rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(229, 117, 85, 0.15);
  }
  .spotlight-controls-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .spotlight-select-wrapper {
    border-left: none !important;
    padding-left: 0 !important;
    flex: 1;
  }
  .spotlight-quick-select {
    width: 100%;
    padding: 0.35rem 0.25rem;
  }
  .spotlight-claim-btn {
    flex-shrink: 0;
  }
}

/* Top Leader Spotlight Announcement Bar (Modern Linear / Raycast Style) */
.spotlight-banner {
  background-color: #ffffff;
  border: 1px solid rgba(229, 117, 85, 0.28);
  border-radius: 9999px;
  padding: 0.65rem 1.15rem;
  box-shadow: 0 2px 10px -2px rgba(229, 117, 85, 0.1), 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 640px) {
  .spotlight-banner {
    border-radius: 1.25rem;
    padding: 0.875rem 1rem;
  }
}

.spotlight-banner:hover {
  border-color: rgba(229, 117, 85, 0.5);
  box-shadow: 0 4px 18px -2px rgba(229, 117, 85, 0.18);
}

html.dark .spotlight-banner {
  background-color: #1e130f;
  border-color: rgba(229, 117, 85, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.spotlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background-color: #fef1ed;
  color: #cc5d3e;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  max-width: 100%;
}

@media (max-width: 640px) {
  .spotlight-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
    line-height: 1.3;
  }
}

html.dark .spotlight-tag {
  background-color: #381a13;
  color: #f08b6e;
}

.spotlight-pulse {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.spotlight-amount {
  font-weight: 700;
  color: #cc5d3e;
  background-color: #fef1ed;
  padding: 0.15rem 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid #fce4dc;
}

html.dark .spotlight-amount {
  color: #f08b6e;
  background-color: #261612;
  border-color: #3d231a;
}

.spotlight-divider {
  color: #cbd5e1;
  font-weight: 300;
}

html.dark .spotlight-divider {
  color: #475569;
}

.spotlight-target {
  font-weight: 800;
  color: #059669;
  background-color: #ecfdf5;
  padding: 0.15rem 0.6rem;
  border-radius: 0.375rem;
  border: 1px solid #a7f3d0;
}

html.dark .spotlight-target {
  color: #34d399;
  background-color: #062b1e;
  border-color: #0d5e42;
}

/* Tabs & Category Filter Pills */
.tabs-pill-container {
  display: inline-flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.25rem;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  gap: 0.25rem;
}

html.dark .tabs-pill-container {
  background-color: #1e130f;
  border-color: #331d16;
}

.tab-pill-btn {
  padding: 0.45rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: #64748b;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.tab-pill-btn:hover {
  color: #e57555;
}

.tab-pill-btn.active {
  background-color: #e57555;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(229, 117, 85, 0.35);
}

.no-scrollbar {
  -ms-overflow-style: none; /* Internet Explorer 10+ */
  scrollbar-width: none; /* Firefox */
}
.no-scrollbar::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.category-pills-container {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.22rem 0.32rem;
  border-radius: 9999px;
  background-color: #fef5f2;
  border: 1px solid rgba(229, 117, 85, 0.18);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  width: 100%;
}

html.dark .category-pills-container {
  background-color: #1a100d;
  border-color: rgba(240, 139, 110, 0.2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cat-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 9999px;
  background-color: transparent;
  border: 1px solid transparent;
  color: #64748b;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: none;
}

.cat-filter-pill:hover {
  background-color: #ffffff;
  border-color: rgba(229, 117, 85, 0.25);
  color: #e57555;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(229, 117, 85, 0.08);
}

.cat-filter-pill.active {
  background-color: #e57555;
  border-color: #e57555;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(229, 117, 85, 0.25);
}

.cat-filter-pill.cat-filter-pill-primary {
  background-color: #e57555 !important;
  border-color: #e57555 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(229, 117, 85, 0.25);
}

.cat-filter-pill.cat-filter-pill-primary:hover {
  background-color: #d46444 !important;
  border-color: #d46444 !important;
  color: #ffffff !important;
}

.cat-filter-pill-explore {
  font-weight: 700;
  border: 1px dashed rgba(229, 117, 85, 0.4);
  color: #e57555;
  background-color: transparent;
}

.cat-filter-pill-explore:hover {
  background-color: #ffffff;
  border-style: solid;
  border-color: #e57555;
  color: #e57555;
}

html.dark .cat-filter-pill {
  background-color: transparent;
  border-color: transparent;
  color: #94a3b8;
}

html.dark .cat-filter-pill:hover {
  background-color: #261611;
  border-color: rgba(240, 139, 110, 0.3);
  color: #f08b6e;
}

html.dark .cat-filter-pill.active,
html.dark .cat-filter-pill.cat-filter-pill-primary {
  background-color: #e57555 !important;
  border-color: #e57555 !important;
  color: #ffffff !important;
}

html.dark .cat-filter-pill-explore {
  border-color: rgba(240, 139, 110, 0.4);
  color: #f08b6e;
}

html.dark .cat-filter-pill-explore:hover {
  background-color: #261611;
  border-color: #f08b6e;
}

/* Modern Product Card (All Cards Share Equal 100px Max Height & Zero Borders) */
.product-card {
  position: relative;
  border-radius: 1rem;
  padding: 0.75rem 1.15rem !important;
  display: flex !important;
  align-items: center !important;
  height: 100px !important;
  max-height: 100px !important;
  min-height: 100px !important;
  border: none !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.product-card:hover,
.product-card-top1:hover,
.product-card-top2:hover,
.product-card-top3:hover,
.product-card-top20:hover,
.product-card-rest:hover,
.product-card-default:hover {
  transform: none !important;
  border: none !important;
}

/* #1 Golden Premium Card Modern - Champagne Gold particles & gradient */
.product-card-top1 {
  height: 100px !important;
  max-height: 100px !important;
  min-height: 100px !important;
  padding: 0.75rem 1.15rem !important;
  background-color: #fffdf7;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(217, 119, 6, 0.45) 50%, transparent 100%),
    radial-gradient(2px 2px at 32% 78%, rgba(245, 158, 11, 0.5) 50%, transparent 100%),
    radial-gradient(1.2px 1.2px at 52% 28%, rgba(251, 191, 36, 0.6) 50%, transparent 100%),
    radial-gradient(2.5px 2.5px at 74% 20%, rgba(217, 119, 6, 0.45) 50%, transparent 100%),
    radial-gradient(1.8px 1.8px at 88% 72%, rgba(245, 158, 11, 0.5) 50%, transparent 100%),
    radial-gradient(2px 2px at 64% 84%, rgba(252, 211, 77, 0.55) 50%, transparent 100%),
    linear-gradient(135deg, #fffcf2 0%, #fef3c7 40%, #ffffff 75%, #fef9c3 100%);
  background-size: 150px 150px, 190px 190px, 120px 120px, 210px 210px, 170px 170px, 140px 140px, 100% 100%;
  border: none !important;
  box-shadow: 
    0 8px 24px -4px rgba(245, 158, 11, 0.28),
    0 2px 6px rgba(0, 0, 0, 0.03);
}

html.dark .product-card-top1 {
  background-color: #1a1309;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(251, 191, 36, 0.55) 50%, transparent 100%),
    radial-gradient(2px 2px at 32% 78%, rgba(245, 158, 11, 0.6) 50%, transparent 100%),
    radial-gradient(1.2px 1.2px at 52% 28%, rgba(252, 211, 77, 0.65) 50%, transparent 100%),
    radial-gradient(2.5px 2.5px at 74% 20%, rgba(245, 158, 11, 0.5) 50%, transparent 100%),
    radial-gradient(1.8px 1.8px at 88% 72%, rgba(251, 191, 36, 0.65) 50%, transparent 100%),
    radial-gradient(2px 2px at 64% 84%, rgba(253, 230, 138, 0.5) 50%, transparent 100%),
    linear-gradient(135deg, #23190b 0%, #1a1309 45%, #2a1c0d 100%);
  background-size: 150px 150px, 190px 190px, 120px 120px, 210px 210px, 170px 170px, 140px 140px, 100% 100%;
  border: none !important;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.28);
}

/* #2 Violet Premium Card Modern - Cosmic Violet particles & holographic gradients */
.product-card-top2 {
  height: 100px !important;
  max-height: 100px !important;
  min-height: 100px !important;
  padding: 0.75rem 1.15rem !important;
  background-color: #faf5ff;
  background-image:
    radial-gradient(1.5px 1.5px at 14% 24%, rgba(147, 51, 234, 0.5) 50%, transparent 100%),
    radial-gradient(2px 2px at 35% 76%, rgba(168, 85, 247, 0.55) 50%, transparent 100%),
    radial-gradient(1.2px 1.2px at 54% 25%, rgba(192, 132, 252, 0.6) 50%, transparent 100%),
    radial-gradient(2.5px 2.5px at 75% 22%, rgba(126, 34, 206, 0.45) 50%, transparent 100%),
    radial-gradient(1.8px 1.8px at 86% 70%, rgba(168, 85, 247, 0.55) 50%, transparent 100%),
    radial-gradient(2px 2px at 62% 82%, rgba(216, 180, 254, 0.6) 50%, transparent 100%),
    radial-gradient(at 0% 0%, rgba(192, 132, 252, 0.2) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(244, 114, 182, 0.15) 0px, transparent 50%),
    linear-gradient(135deg, #ffffff 0%, #fdf4ff 35%, #f5f3ff 70%, #ede9fe 100%);
  background-size: 150px 150px, 190px 190px, 120px 120px, 210px 210px, 170px 170px, 140px 140px, 100% 100%, 100% 100%, 100% 100%;
  border: none !important;
  box-shadow: 
    0 6px 20px -3px rgba(168, 85, 247, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.03);
}

html.dark .product-card-top2 {
  background-color: #170f24;
  background-image:
    radial-gradient(1.5px 1.5px at 14% 24%, rgba(192, 132, 252, 0.6) 50%, transparent 100%),
    radial-gradient(2px 2px at 35% 76%, rgba(168, 85, 247, 0.65) 50%, transparent 100%),
    radial-gradient(1.2px 1.2px at 54% 25%, rgba(216, 180, 254, 0.7) 50%, transparent 100%),
    radial-gradient(2.5px 2.5px at 75% 22%, rgba(192, 132, 252, 0.55) 50%, transparent 100%),
    radial-gradient(1.8px 1.8px at 86% 70%, rgba(168, 85, 247, 0.65) 50%, transparent 100%),
    radial-gradient(2px 2px at 62% 82%, rgba(233, 213, 255, 0.6) 50%, transparent 100%),
    radial-gradient(at 0% 0%, rgba(192, 132, 252, 0.25) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.18) 0px, transparent 50%),
    linear-gradient(135deg, #1d122e 0%, #150d22 55%, #25143a 100%);
  background-size: 150px 150px, 190px 190px, 120px 120px, 210px 210px, 170px 170px, 140px 140px, 100% 100%, 100% 100%, 100% 100%;
  border: none !important;
  box-shadow: 0 6px 22px rgba(147, 51, 234, 0.25);
}

/* #3 Silver Premium Card Modern - Metallic Silver particles */
.product-card-top3 {
  height: 100px !important;
  max-height: 100px !important;
  min-height: 100px !important;
  padding: 0.75rem 1.15rem !important;
  background-color: #f8fafc;
  background-image:
    radial-gradient(1.5px 1.5px at 16% 24%, rgba(100, 116, 139, 0.42) 50%, transparent 100%),
    radial-gradient(2px 2px at 38% 74%, rgba(148, 163, 184, 0.48) 50%, transparent 100%),
    radial-gradient(1.2px 1.2px at 58% 26%, rgba(71, 85, 105, 0.38) 50%, transparent 100%),
    radial-gradient(2.2px 2.2px at 80% 68%, rgba(148, 163, 184, 0.5) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 89% 22%, rgba(100, 116, 139, 0.4) 50%, transparent 100%),
    linear-gradient(135deg, #ffffff 0%, #f1f5f9 45%, #e2e8f0 85%, #cbd5e1 100%);
  background-size: 135px 135px, 175px 175px, 105px 105px, 195px 195px, 155px 155px, 100% 100%;
  border: none !important;
  box-shadow: 
    0 5px 16px -3px rgba(100, 116, 139, 0.18),
    0 2px 5px rgba(0, 0, 0, 0.03);
}

html.dark .product-card-top3 {
  background-color: #121820;
  background-image:
    radial-gradient(1.5px 1.5px at 16% 24%, rgba(226, 232, 240, 0.38) 50%, transparent 100%),
    radial-gradient(2px 2px at 38% 74%, rgba(203, 213, 225, 0.42) 50%, transparent 100%),
    radial-gradient(1.2px 1.2px at 58% 26%, rgba(241, 245, 249, 0.36) 50%, transparent 100%),
    radial-gradient(2.2px 2.2px at 80% 68%, rgba(203, 213, 225, 0.44) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 89% 22%, rgba(226, 232, 240, 0.38) 50%, transparent 100%),
    linear-gradient(135deg, #18202a 0%, #121820 50%, #1f2937 100%);
  background-size: 135px 135px, 175px 175px, 105px 105px, 195px 195px, 155px 155px, 100% 100%;
  border: none !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.35);
}

/* Top 4-20 High Visibility Cards */
.product-card-top20 {
  height: 100px !important;
  max-height: 100px !important;
  min-height: 100px !important;
  padding: 0.75rem 1.15rem !important;
  background-color: #ffffff;
  border: none !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

html.dark .product-card-top20 {
  background-color: #1a120f;
  border: none !important;
}

/* Rest of the List (Ranks 21-50+ Streamlined Cards) */
.product-card-rest {
  height: 100px !important;
  max-height: 100px !important;
  min-height: 100px !important;
  padding: 0.75rem 1.15rem !important;
  background-color: #ffffff;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

html.dark .product-card-rest {
  background-color: #17100e;
  border: none !important;
}

/* Regular Ranked Cards */
.product-card-default {
  height: 100px !important;
  max-height: 100px !important;
  min-height: 100px !important;
  padding: 0.75rem 1.15rem !important;
  background-color: #ffffff;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

html.dark .product-card-default {
  background-color: #1a120f;
  border: none !important;
}

@media (max-width: 640px) {
  .product-card,
  .product-card-top1,
  .product-card-top2,
  .product-card-top3,
  .product-card-top20,
  .product-card-rest,
  .product-card-default {
    height: 100px !important;
    max-height: 100px !important;
    min-height: 100px !important;
    padding: 0.6rem 0.75rem !important;
    border: none !important;
    overflow: hidden !important;
  }
}

/* Homepage Two-Column Layout (Main Cards Grid Left 75% + Normal List Right 25% with Normal Gap) */
.home-leaderboard-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.home-leaderboard-main {
  width: 100%;
  min-width: 0;
}

.home-leaderboard-side {
  width: 100%;
  min-width: 0;
}

@media (min-width: 860px) {
  .home-leaderboard-layout {
    display: grid !important;
    grid-template-columns: 3fr 1fr !important;
    gap: 1.5rem !important;
    align-items: flex-start !important;
  }
  .home-leaderboard-main {
    width: 100% !important;
    min-width: 0 !important;
  }
  .home-leaderboard-side {
    width: 100% !important;
    min-width: 0 !important;
  }
  .lg\:grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  }
  .lg\:col-span-8 {
    grid-column: span 8 / span 8 !important;
  }
  .lg\:col-span-4 {
    grid-column: span 4 / span 4 !important;
  }
}

/* Product Details Page Header Card (Full Card, Auto Height, Never Restricted) */
.product-header-card {
  position: relative;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
  display: block !important;
  border-radius: 1.25rem !important;
}

/* Side Normal Leaderboard List (Clean Normal List, No Card Effect) */
.side-leaderboard-wrapper {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.side-list-tab {
  font-size: 0.875rem;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  border: none;
  padding: 0.35rem 0;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
}

.side-list-tab:hover {
  color: #0f172a;
}

html.dark .side-list-tab {
  color: #94a3b8;
}

html.dark .side-list-tab:hover {
  color: #f8fafc;
}

.side-list-tab.active {
  color: #0f172a;
  font-weight: 800;
}

html.dark .side-list-tab.active {
  color: #ffffff;
}

.side-list-tab.active::after {
  content: '';
  position: absolute;
  bottom: -0.65rem;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #e57555;
  border-radius: 9999px;
}

.side-normal-list {
  display: flex;
  flex-direction: column;
}

.side-normal-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  text-decoration: none !important;
  color: inherit;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: opacity 0.15s ease;
}

.side-normal-item:last-child {
  border-bottom: none;
}

html.dark .side-normal-item {
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.side-normal-item:hover .side-normal-title {
  color: #e57555;
}

.side-normal-rank {
  font-size: 0.8125rem;
  font-weight: 800;
  color: #94a3b8;
  width: 1.25rem;
  text-align: right;
  flex-shrink: 0;
}

.side-normal-rank.rank-1 {
  color: #d97706;
}

.side-normal-rank.rank-2 {
  color: #7c3aed;
}

.side-normal-rank.rank-3 {
  color: #475569;
}

html.dark .side-normal-rank.rank-3 {
  color: #cbd5e1;
}

.side-normal-logo {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.35rem;
  object-fit: contain;
  flex-shrink: 0;
  background-color: #ffffff;
  padding: 1px;
}

html.dark .side-normal-logo {
  background-color: #241814;
}

.side-normal-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  transition: color 0.15s ease;
}

html.dark .side-normal-title {
  color: #f1f5f9;
}

.side-normal-amount {
  font-size: 0.8125rem;
  font-weight: 800;
  color: #e57555;
  flex-shrink: 0;
  margin-left: auto;
  text-align: right;
}

html.dark .side-normal-amount {
  color: #f08b6e;
}

/* Single Line Reset Countdown Timer */
.reset-timer-single-line {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.reset-timer-line-icon {
  width: 0.8125rem;
  height: 0.8125rem;
  stroke-width: 2;
  flex-shrink: 0;
  vertical-align: -0.05em;
}

.reset-timer-single-line .reset-timer-digits {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* Leaderboard Card Actions (Category, Visit, Outbid/Boost) */
.card-action-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.3rem;
  flex-wrap: nowrap;
  overflow: hidden;
}

.card-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.12rem 0.45rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 0.35rem;
  background-color: transparent !important;
  line-height: 1.2;
  text-decoration: none !important;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.card-action-btn:hover {
  color: #e57555 !important;
  border-color: #e57555 !important;
  background-color: transparent !important;
}

html.dark .card-action-btn {
  color: #94a3b8;
  border-color: #334155;
  background-color: transparent !important;
}

html.dark .card-action-btn:hover {
  color: #f08b6e !important;
  border-color: #f08b6e !important;
  background-color: transparent !important;
}

.card-action-btn svg {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
  stroke-width: 1.75;
  transition: stroke 0.15s ease;
}

.card-action-btn:hover svg {
  stroke: currentColor;
}

/* Boosted Thunder Icon */
.boost-thunder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
  font-size: 0.95rem;
  line-height: 1;
  cursor: help;
  vertical-align: middle;
  flex-shrink: 0;
  user-select: none;
}

/* Period Leaderboard Reset Timer Badge (Legacy compatibility) */
.reset-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.65rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 0.75rem;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  flex-shrink: 0;
}

html.dark .reset-timer-badge {
  background-color: #0f172a;
  border-color: #1e293b;
}

.reset-timer-badge .reset-timer-digits {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* Rank Badges */
.rank-badge-1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.rank-badge-2 {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(100, 116, 139, 0.25);
  flex-shrink: 0;
}

.rank-badge-3 {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #fdba74 0%, #ea580c 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.3);
  flex-shrink: 0;
}

.rank-badge-top20 {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
  background: #fdf8f6;
  color: #cc5d3e;
  border: 1px solid #fce4dc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  font-weight: 800;
  flex-shrink: 0;
}

html.dark .rank-badge-top20 {
  background: #261612;
  color: #f08b6e;
  border-color: #3d231a;
}

.rank-badge-rest {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
}

html.dark .rank-badge-rest {
  background: #1e130f;
  color: #94a3b8;
  border-color: #331d16;
}

.rank-badge-default {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
}

html.dark .rank-badge-top20 {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
  background: #fdf8f6;
  color: #cc5d3e;
  border: 1px solid #fce4dc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  font-weight: 800;
  flex-shrink: 0;
}

html.dark .rank-badge-top20 {
  background: #261612;
  color: #f08b6e;
  border-color: #3d231a;
}

.rank-badge-rest {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
}

html.dark .rank-badge-rest {
  background: #1e130f;
  color: #94a3b8;
  border-color: #331d16;
}

.rank-badge-default {
  background: #241814;
  color: #cbd5e1;
  border-color: #3d231a;
}

/* Modern Oval Rank Badges (Borderless, Shadowless, Minimal & Clean) */
.rank-badge-oval {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-family: inherit;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  border: none !important;
  box-shadow: none !important;
  transition: all 0.2s ease;
}

/* #1 Largest, Champagne Gold Color */
.rank-badge-top-1 {
  height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 1rem;
  font-weight: 900;
  color: #b45309;
  background-color: #fef3c7;
  border: none !important;
  box-shadow: none !important;
}

html.dark .rank-badge-top-1 {
  background-color: #2e1d08;
  color: #fbbf24;
  border: none !important;
  box-shadow: none !important;
}

/* #2 Medium-Tall, Violet Holographic Color */
.rank-badge-top-2 {
  height: 2.1rem;
  padding: 0 0.7rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #7c3aed;
  background-color: #f5f3ff;
  border: none !important;
  box-shadow: none !important;
}

html.dark .rank-badge-top-2 {
  background-color: #24143a;
  color: #c084fc;
  border: none !important;
  box-shadow: none !important;
}

/* #3 Slightly Smaller than #2, Metallic Silver Chrome */
.rank-badge-top-3 {
  height: 2rem;
  padding: 0 0.65rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #475569;
  background-color: #f1f5f9;
  border: none !important;
  box-shadow: none !important;
}

html.dark .rank-badge-top-3 {
  background-color: #1e293b;
  color: #e2e8f0;
  border: none !important;
  box-shadow: none !important;
}

/* Rest (#4+): Same Normal Size & Normal Color */
.rank-badge-normal {
  height: 1.9rem;
  padding: 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  background-color: #f8fafc;
  border: none !important;
  box-shadow: none !important;
}

html.dark .rank-badge-normal {
  background-color: #1a120f;
  color: #94a3b8;
  border: none !important;
  box-shadow: none !important;
}

/* Product Logo Box (Full Height & Width in Leaderboard Cards) */
.product-logo-box {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background-color: #ffffff;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

@media (max-width: 640px) {
  .product-logo-box {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 0.65rem;
  }
}

html.dark .product-logo-box {
  background-color: #241814;
  border-color: #3d231a;
}

.product-logo-box img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: inherit !important;
  display: block;
}

/* Product Hero Showcase Logo */
.product-hero-logo {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background-color: #ffffff;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

html.dark .product-hero-logo {
  background-color: #241814;
  border-color: #3d231a;
}

.product-hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.75rem;
}

/* Tables */
.table-container {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  background-color: #ffffff;
}

.table-container table {
  min-width: 600px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

th {
  background-color: #f8fafc;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: #475569;
  border-bottom: 1px solid var(--color-border);
}

td {
  padding: 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: #fafbfd;
}

/* Animations */
.transition {
  transition: all 0.15s ease-in-out;
}

/* Brand Logo Components (Pure HTML/CSS - No external SVG) */
.logo-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.2222rem;
  text-decoration: none;
}

.logo-icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.5px;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}

.logo-line-top {
  display: block;
  height: 3.5px;
  width: 12px;
  border-radius: 9999px;
  background-color: var(--color-primary);
}

.logo-line-mid {
  display: block;
  height: 3.5px;
  width: 18px;
  border-radius: 9999px;
  background-color: #0f172a;
  transition: background-color 0.15s ease-in-out;
}

.logo-line-bot {
  display: block;
  height: 3.5px;
  width: 24px;
  border-radius: 9999px;
  background-color: #0f172a;
  transition: background-color 0.15s ease-in-out;
}

html.dark .logo-line-mid,
html.dark .logo-line-bot,
.logo-white .logo-line-mid,
.logo-white .logo-line-bot {
  background-color: #ffffff !important;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  transform: translateY(-4px);
  transition: color 0.15s ease-in-out;
}

html.dark .logo-text,
.logo-white .logo-text {
  color: #ffffff !important;
}

/* Dark Mode Theme Variables & Overrides (Warm Primary Alignment) */
html.dark {
  --color-primary: #f08b6e;
  --color-primary-dark: #e57555;
  --color-primary-light: #381a13;
  --color-accent: #f59e0b;
  --color-surface: #1e130f;
  --color-bg: #140d0a;
  --color-border: #331d16;
  --color-text-main: #f9fafb;
  --color-text-muted: #a89893;
}

html.dark body {
  background-color: #140d0a;
  color: #f9fafb;
}

html.dark .card,
html.dark .bg-white {
  background-color: #1e130f;
  border-color: #331d16;
  color: #f9fafb;
}

html.dark .bg-slate-50,
html.dark .bg-slate-100 {
  background-color: #160e0b;
  border-color: #331d16;
}

html.dark .text-slate-900,
html.dark .text-slate-800,
html.dark .text-slate-700 {
  color: #f3f4f6;
}

html.dark .text-slate-600,
html.dark .text-slate-500 {
  color: #9ca3af;
}

html.dark .text-slate-400 {
  color: #6b7280;
}

html.dark .border-slate-100,
html.dark .border-slate-200 {
  border-color: #1f2937;
}

html.dark .btn-primary {
  background-color: #e57555;
  background-image: linear-gradient(180deg, #f0896d 0%, #e57555 100%);
  border-color: #e57555;
  color: #ffffff !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 6px 20px rgba(229, 117, 85, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

html.dark .btn-secondary {
  background-color: rgba(255, 255, 255, 0.06);
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html.dark .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #e57555;
  color: #f08b6e !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Form Elements & Typography in Dark Mode */
html.dark .form-label,
html.dark label {
  color: #f1f5f9 !important;
}

html.dark .form-help,
html.dark .form-text,
html.dark .form-description {
  color: #94a3b8 !important;
}

html.dark .form-input,
html.dark .form-select,
html.dark .form-textarea,
html.dark input[type="text"],
html.dark input[type="url"],
html.dark input[type="email"],
html.dark input[type="password"],
html.dark input[type="number"],
html.dark input[type="search"],
html.dark input[type="tel"],
html.dark textarea,
html.dark select {
  background-color: #111827 !important;
  color: #ffffff !important;
  border-color: #374151 !important;
}

html.dark .form-input:focus,
html.dark .form-select:focus,
html.dark .form-textarea:focus,
html.dark input[type="text"]:focus,
html.dark input[type="url"]:focus,
html.dark input[type="email"]:focus,
html.dark input[type="password"]:focus,
html.dark input[type="number"]:focus,
html.dark input[type="search"]:focus,
html.dark input[type="tel"]:focus,
html.dark textarea:focus,
html.dark select:focus {
  border-color: #f08b6e !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(240, 139, 110, 0.25) !important;
}

html.dark ::placeholder,
html.dark .form-input::placeholder,
html.dark .form-textarea::placeholder,
html.dark input::placeholder,
html.dark textarea::placeholder {
  color: #64748b !important;
  opacity: 1 !important;
}

html.dark select option,
html.dark .form-select option {
  background-color: #111827 !important;
  color: #f8fafc !important;
}

html.dark input[type="checkbox"],
html.dark input[type="radio"] {
  background-color: #1f2937 !important;
  border-color: #4b5563 !important;
  color: #e57555 !important;
}

html.dark .input-prefix,
html.dark .input-group-text,
html.dark .form-addon,
html.dark .relative > .text-slate-500 {
  color: #cbd5e1 !important;
  background-color: #1f2937 !important;
  border-color: #374151 !important;
}

/* Form Container & Text In Dark Mode */
html.dark form h1,
html.dark form h2,
html.dark form h3,
html.dark .card h1,
html.dark .card h2,
html.dark .card h3 {
  color: #ffffff !important;
}

html.dark .text-indigo-900,
html.dark .text-indigo-800,
html.dark .text-indigo-700 {
  color: #c7d2fe !important;
}

html.dark .text-indigo-600,
html.dark .text-indigo-500 {
  color: #a5b4fc !important;
}

html.dark .text-emerald-900,
html.dark .text-emerald-800,
html.dark .text-emerald-700 {
  color: #6ee7b7 !important;
}

html.dark .text-emerald-600 {
  color: #34d399 !important;
}

html.dark .text-amber-900,
html.dark .text-amber-800,
html.dark .text-amber-700 {
  color: #fde68a !important;
}

html.dark .text-amber-600 {
  color: #fbbf24 !important;
}

html.dark .text-rose-900,
html.dark .text-rose-800,
html.dark .text-rose-700 {
  color: #fca5a5 !important;
}

html.dark .bg-white\/80 {
  background-color: rgba(26, 18, 15, 0.85) !important;
  border-color: #331d16 !important;
}

html.dark .border-indigo-100,
html.dark .border-indigo-200 {
  border-color: rgba(99, 102, 241, 0.3) !important;
}

html.dark .border-emerald-100,
html.dark .border-emerald-200 {
  border-color: rgba(16, 185, 129, 0.3) !important;
}

html.dark .border-amber-100,
html.dark .border-amber-200 {
  border-color: rgba(245, 158, 11, 0.3) !important;
}

/* Submit & Boost Bid Amount Preview */
html.dark #bid-amount-preview,
html.dark #new-total-bid-preview {
  color: #f08b6e !important;
}

html.dark .submit-bid-box {
  background-color: rgba(30, 27, 75, 0.45) !important;
  border-color: rgba(99, 102, 241, 0.25) !important;
}

html.dark .submit-outbid-box {
  background-color: rgba(15, 23, 42, 0.75) !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
  color: #e2e8f0 !important;
}

html.dark .table-container,
html.dark table {
  background-color: #111827;
  border-color: #1f2937;
}

html.dark th {
  background-color: #0d1322;
  color: #9ca3af;
  border-color: #1f2937;
}

html.dark td {
  border-color: #1f2937;
  color: #f3f4f6;
}

html.dark tr:hover td {
  background-color: #1a2234;
}

/* Tiered Leaderboard Exposure Styles */
.tier-1-spotlight {
  position: relative;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.45) 0%, rgba(255, 255, 255, 1) 50%, rgba(224, 231, 255, 0.45) 100%);
  border: 2px solid #f59e0b;
  border-radius: 1.25rem;
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.15), 0 8px 10px -6px rgba(245, 158, 11, 0.1);
  overflow: hidden;
}

html.dark .tier-1-spotlight {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.6) 0%, #111827 50%, rgba(69, 26, 3, 0.45) 100%);
  border-color: #d97706;
  box-shadow: 0 10px 25px -5px rgba(217, 119, 6, 0.2);
}

.tier-2-5-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 640px) {
  .tier-2-5-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tier-compact-table {
  width: 100%;
}

/* ========================================================
 * Gold-Standard Modern SaaS Dashboard Layout (Unified Light/Dark Theme)
 * ======================================================== */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background-color: #f8fafc;
  transition: background-color 0.15s ease;
}

html.dark .app-layout {
  background-color: #090d16;
}

/* Sidebar: Unified Clean White in Light Mode; Deep Obsidian in Dark Mode */
.app-sidebar {
  width: 256px;
  background-color: #ffffff;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s ease, border-color 0.15s ease;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
  border-right: 1px solid #e2e8f0;
}

.sidebar-mobile-close-btn {
  display: none !important;
}

.sidebar-backdrop {
  display: none;
}

html.dark .app-sidebar {
  background-color: #0f172a;
  color: #f8fafc;
  border-right-color: #1e293b;
}

.app-sidebar.collapsed {
  width: 72px;
}

.app-sidebar .sidebar-header {
  height: 60px;
  padding: 0 0.875rem 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.app-sidebar.collapsed .sidebar-header {
  padding: 0;
  justify-content: center;
}

.sidebar-toggle-btn {
  display: none !important;
}

.sidebar-chevron-icon {
  display: block;
  transform-origin: center;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

html.dark .app-sidebar .sidebar-header {
  border-bottom-color: #1e293b;
}

.app-sidebar .sidebar-logo-text {
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.app-sidebar.collapsed .sidebar-logo-text .logo-text,
.app-sidebar.collapsed .sidebar-role-badge,
.app-sidebar.collapsed .nav-label,
.app-sidebar.collapsed .sidebar-badge,
.app-sidebar.collapsed .sidebar-user-text {
  display: none !important;
}

.app-sidebar.collapsed .nav-item {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.app-sidebar,
.sidebar-nav {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.app-sidebar::-webkit-scrollbar,
.sidebar-nav::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.875rem;
  border-radius: 0.625rem;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}

.nav-item:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.nav-item.active {
  background-color: #fef1ed;
  color: #cc5d3e;
  font-weight: 600;
  border-color: #fce4dc;
}

html.dark .nav-item {
  color: #94a3b8;
}

html.dark .nav-item:hover {
  background-color: #1e293b;
  color: #ffffff;
}

html.dark .nav-item.active {
  background-color: #e57555;
  color: #ffffff;
  border-color: transparent;
}

.sidebar-footer {
  padding: 0.875rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

html.dark .sidebar-footer {
  border-top-color: #1e293b;
}

.app-main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-small-header {
  height: 60px;
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  position: sticky;
  top: 0;
  z-index: 30;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

html.dark .app-small-header {
  background-color: #0f172a;
  border-color: #1e293b;
}

.app-content {
  flex: 1;
  padding: 2rem 2.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

html.dark .app-layout .card {
  background-color: #0f172a;
  border-color: #1e293b;
  color: #f8fafc;
}

/* ========================================================
 * Admin Mobile Responsiveness (< 768px Viewports)
 * ======================================================== */
@media (max-width: 767.98px) {
  .app-layout {
    display: block !important;
    width: 100% !important;
    overflow-x: hidden !important;
    position: relative !important;
  }

  .app-sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 280px !important;
    max-width: 82vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 1000 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease !important;
    box-shadow: none !important;
    display: flex !important;
    border-right: 1px solid #e2e8f0;
  }

  html.dark .app-sidebar {
    border-right-color: #1e293b;
  }

  .app-sidebar.mobile-open {
    transform: translateX(0) !important;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.45) !important;
  }

  /* Ensure labels are properly visible in mobile drawer */
  .app-sidebar.mobile-open .sidebar-logo-text,
  .app-sidebar.mobile-open .sidebar-logo-text .logo-text,
  .app-sidebar.mobile-open .sidebar-role-badge,
  .app-sidebar.mobile-open .nav-label,
  .app-sidebar.mobile-open .sidebar-badge,
  .app-sidebar.mobile-open .sidebar-user-text {
    display: inline-block !important;
  }

  .app-sidebar.mobile-open .nav-item {
    justify-content: flex-start !important;
    padding-left: 0.875rem !important;
    padding-right: 0.875rem !important;
  }

  .sidebar-toggle-btn {
    display: none !important;
  }

  .sidebar-mobile-close-btn {
    display: inline-flex !important;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  /* Backdrop Overlay */
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 990;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
  }

  .sidebar-backdrop.active {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.admin-sidebar-open {
    overflow: hidden !important;
    touch-action: none;
  }

  .app-small-header {
    padding: 0 0.875rem !important;
    height: 56px !important;
  }

  .app-content {
    padding: 1rem 0.875rem !important;
  }

  .table-container th,
  .table-container td {
    padding: 0.75rem 0.75rem !important;
    font-size: 0.8125rem !important;
  }

  .table-container .btn {
    white-space: nowrap !important;
  }
}

/* ========================================================
 * Admin Side-by-Side Split Layout (Categories, Modules)
 * ======================================================== */
.admin-split-layout {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
  width: 100% !important;
  align-items: stretch !important;
}

@media (min-width: 768px) {
  .admin-split-layout {
    display: grid !important;
    grid-template-columns: 360px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 1.5rem !important;
  }

  .admin-split-sidebar {
    width: 100% !important;
    max-width: 360px !important;
    min-width: 0 !important;
    flex-shrink: 0 !important;
  }

  .admin-split-content {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: 100% !important;
  }
}

/* ========================================================
 * Bulletproof Admin Universal Delete Modal Popup
 * ======================================================== */
.admin-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(15, 23, 42, 0.7) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important;
  box-sizing: border-box !important;
}

.admin-modal-overlay.hidden,
.admin-modal-overlay[hidden] {
  display: none !important;
}

.admin-modal-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 1rem !important;
  max-width: 480px !important;
  width: 100% !important;
  padding: 1.75rem !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35) !important;
  position: relative !important;
  box-sizing: border-box !important;
  animation: adminModalPop 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.dark .admin-modal-box {
  background: #1c1411 !important;
  border-color: #3b2820 !important;
  color: #f1f5f9 !important;
}

@keyframes adminModalPop {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ========================================================
 * Bulletproof Header Icon Buttons (Search & Theme Switcher)
 * ======================================================== */
.header-icon-btn,
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background-color: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  flex-shrink: 0;
}

.header-icon-btn:hover,
.theme-toggle-btn:hover {
  background-color: #fdf8f6;
  border-color: rgba(229, 117, 85, 0.35);
  color: #e57555;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(229, 117, 85, 0.15);
}

html.dark .header-icon-btn,
html.dark .theme-toggle-btn {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

html.dark .header-icon-btn:hover,
html.dark .theme-toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #f08b6e;
  color: #f08b6e;
}

.theme-toggle-btn .icon-sun {
  display: none !important;
  width: 1.125rem;
  height: 1.125rem;
  color: #fbbf24;
}

.theme-toggle-btn .icon-moon {
  display: block !important;
  width: 1.125rem;
  height: 1.125rem;
  color: #475569;
}

html.dark .theme-toggle-btn .icon-sun {
  display: block !important;
}

html.dark .theme-toggle-btn .icon-moon {
  display: none !important;
}

/* Theme visibility helper classes */
html.dark .dark\:hidden {
  display: none !important;
}

html.dark .dark\:block {
  display: block !important;
}

html.dark .dark\:inline-flex {
  display: inline-flex !important;
}


/* Chart / Graph Card Components */
.chart-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

html.dark .chart-card {
  background-color: #111827;
  border-color: #1f2937;
}

.chart-svg {
  width: 100%;
  height: 220px;
  overflow: visible;
}

.chart-grid-line {
  stroke: #e2e8f0;
  stroke-dasharray: 4 4;
  stroke-width: 1;
}

html.dark .chart-grid-line {
  stroke: #1f2937;
}

.chart-axis-text {
  font-size: 11px;
  fill: #94a3b8;
  font-family: inherit;
}

/* Pulsing Heart Animation for Footer Credit */
@keyframes heartPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }
}

.heart-pulse {
  display: inline-block;
  animation: heartPulse 1.25s infinite ease-in-out;
  color: #ef4444;
  vertical-align: middle;
}

/* Mobile Menu Desktop Safeguard - never display mobile menu on desktop screens */
@media (min-width: 768px) {
  #mobile-menu {
    display: none !important;
  }
}

/* ==========================================================================
   Comprehensive Tailwind Utility Extensions & Responsive Layout Helpers
   Ensures 100% layout consistency across desktop and mobile screens
   ========================================================================== */

/* Layout & Flexbox */
.flex-row {
  flex-direction: row;
}

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

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

.flex-1 {
  flex: 1 1 0%;
}

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

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

.min-w-0 {
  min-width: 0;
}

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

.min-h-\[150px\] {
  min-height: 150px;
}

.break-all {
  word-break: break-all;
}

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

.cursor-pointer {
  cursor: pointer;
}

.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.absolute {
  position: absolute;
}

.left-0 {
  left: 0;
}

.inset-y-0 {
  top: 0;
  bottom: 0;
}

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

/* Gaps */
.gap-1\.5 {
  gap: 0.375rem;
}

.gap-2\.5 {
  gap: 0.625rem;
}

.gap-3\.5 {
  gap: 0.875rem;
}

.gap-5 {
  gap: 1.25rem;
}

.gap-7 {
  gap: 1.75rem;
}

.gap-x-4 {
  column-gap: 1rem;
}

.gap-x-5 {
  column-gap: 1.25rem;
}

.gap-y-2 {
  row-gap: 0.5rem;
}

/* Margins & Paddings */
.mt-0\.5 {
  margin-top: 0.125rem;
}

.mt-1\.5 {
  margin-top: 0.375rem;
}

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

.mt-20 {
  margin-top: 5rem;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-0\.5 {
  margin-bottom: 0.125rem;
}

.mb-1\.5 {
  margin-bottom: 0.375rem;
}

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

.p-0\.5 {
  padding: 0.125rem;
}

.p-2\.5 {
  padding: 0.625rem;
}

.px-1\.5 {
  padding-left: 0.375rem;
  padding-right: 0.375rem;
}

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

.py-0 {
  padding-top: 0;
  padding-bottom: 0;
}

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

.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

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

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

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

.pt-14 {
  padding-top: 3.5rem;
}

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

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

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

.pl-3 {
  padding-left: 0.75rem;
}

.pl-8 {
  padding-left: 2rem;
}

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

.mr-1 {
  margin-right: 0.25rem;
}

.mx-2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.space-y-1> :not([hidden])~ :not([hidden]) {
  margin-top: 0.25rem;
}

.space-y-3\.5> :not([hidden])~ :not([hidden]) {
  margin-top: 0.875rem;
}

.space-y-8> :not([hidden])~ :not([hidden]) {
  margin-top: 2rem;
}

/* Dimensions & Widths */
.w-2\.5 {
  width: 0.625rem;
}

.h-2\.5 {
  height: 0.625rem;
}

.h-\[50px\] {
  height: 50px;
}

.max-w-\[850px\] {
  max-width: 850px;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-70 {
  opacity: 0.7;
}

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

/* Typography */
.font-black {
  font-weight: 900;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

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

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

.decoration-dotted {
  text-decoration-style: dotted;
}

.list-disc {
  list-style-type: disc;
}

.list-inside {
  list-style-position: inside;
}

.text-\[9px\] {
  font-size: 9px;
  line-height: 12px;
}

.text-\[10px\] {
  font-size: 10px;
  line-height: 14px;
}

.text-\[11px\] {
  font-size: 11px;
  line-height: 15px;
}

.text-slate-300 {
  color: #cbd5e1;
}

.text-\[\#e57555\] {
  color: #e57555;
}

.text-\[\#cc5d3e\] {
  color: #cc5d3e;
}

.text-amber-500 {
  color: #f59e0b;
}

.text-amber-900 {
  color: #78350f;
}

.text-emerald-700 {
  color: #047857;
}

.text-emerald-800 {
  color: #065f46;
}

.text-emerald-900 {
  color: #064e3b;
}

.text-indigo-300 {
  color: #a5b4fc;
}

.text-indigo-500 {
  color: #6366f1;
}

.text-indigo-900 {
  color: #312e81;
}

.text-rose-800 {
  color: #9f1239;
}

.text-current {
  color: currentColor;
}

/* Colors & Backgrounds */
.bg-\[\#fdf8f6\] {
  background-color: #fdf8f6;
}

.bg-\[\#fef1ed\]\/60 {
  background-color: rgba(254, 241, 237, 0.6);
}

.bg-emerald-100 {
  background-color: #d1fae5;
}

.bg-emerald-500 {
  background-color: #10b981;
}

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

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

.border-y {
  border-top-width: 1px;
  border-bottom-width: 1px;
}

.border-\[\#e57555\]\/30 {
  border-color: rgba(229, 117, 85, 0.3);
}

.border-\[\#fce4dc\] {
  border-color: #fce4dc;
}

.border-amber-100 {
  border-color: #fef3c7;
}

.border-amber-200 {
  border-color: #fde68a;
}

.border-emerald-100 {
  border-color: #d1fae5;
}

.border-emerald-200 {
  border-color: #a7f3d0;
}

.border-indigo-600 {
  border-color: #4f46e5;
}

.border-rose-200 {
  border-color: #fecdd3;
}

.border-slate-200\/70 {
  border-color: rgba(226, 232, 240, 0.7);
}

.border-slate-200\/80 {
  border-color: rgba(226, 232, 240, 0.8);
}

.divide-y> :not([hidden])~ :not([hidden]) {
  border-top-width: 1px;
}

.divide-slate-100> :not([hidden])~ :not([hidden]) {
  border-color: #f1f5f9;
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

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

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Hovers */
.hover\:bg-slate-50:hover {
  background-color: #f8fafc;
}

.hover\:border-indigo-300:hover {
  border-color: #a5b4fc;
}

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

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

.hover\:text-\[\#e57555\]:hover {
  color: #e57555;
}

.hover\:text-indigo-600:hover {
  color: #4f46e5;
}

.hover\:text-rose-600:hover {
  color: #e11d48;
}

.hover\:text-slate-600:hover {
  color: #475569;
}

.hover\:text-slate-800:hover {
  color: #1e293b;
}

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

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

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

  .sm\:justify-end {
    justify-content: flex-end;
  }

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

  .sm\:w-auto {
    width: auto;
  }

  .sm\:inline {
    display: inline;
  }

  .sm\:inline-block {
    display: inline-block;
  }

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

  .sm\:border-t-0 {
    border-top-width: 0;
  }

  .sm\:pt-0 {
    padding-top: 0;
  }

  .sm\:gap-4 {
    gap: 1rem;
  }

  .sm\:gap-5 {
    gap: 1.25rem;
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

  .sm\:col-span-4 {
    grid-column: span 4 / span 4;
  }

  .sm\:col-span-5 {
    grid-column: span 5 / span 5;
  }

  .sm\:flex-initial {
    flex: 0 1 auto;
  }

  .sm\:p-5 {
    padding: 1.25rem;
  }

  .sm\:p-6 {
    padding: 1.5rem;
  }

  .sm\:p-7 {
    padding: 1.75rem;
  }

  .sm\:p-8 {
    padding: 2rem;
  }

  .sm\:p-10 {
    padding: 2.5rem;
  }
}

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

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

  .md\:flex-row {
    flex-direction: row;
  }

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

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

  .md\:items-end {
    align-items: flex-end;
  }

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

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

  .md\:w-auto {
    width: auto;
  }

  .md\:border-t-0 {
    border-top-width: 0;
  }

  .md\:pt-0 {
    padding-top: 0;
  }

  .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\:col-span-2 {
    grid-column: span 2 / span 2;
  }
}

/* Dark Mode Overrides */
html.dark .dark\:bg-\[\#140d0a\] {
  background-color: #140d0a !important;
}

html.dark .dark\:bg-\[\#1a120f\] {
  background-color: #1a120f !important;
}

html.dark .dark\:bg-\[\#241713\] {
  background-color: #241713 !important;
}

html.dark .dark\:bg-emerald-950\/40 {
  background-color: rgba(6, 78, 59, 0.4) !important;
}

html.dark .dark\:bg-slate-800 {
  background-color: #1e293b !important;
}

html.dark .dark\:bg-slate-800\/60 {
  background-color: rgba(30, 41, 59, 0.6) !important;
}

html.dark .dark\:bg-slate-900 {
  background-color: #0f172a !important;
}

html.dark .dark\:border-\[\#331d16\] {
  border-color: #331d16 !important;
}

html.dark .dark\:border-\[\#e57555\]\/40 {
  border-color: rgba(229, 117, 85, 0.4) !important;
}

html.dark .dark\:border-emerald-800 {
  border-color: #065f46 !important;
}

html.dark .dark\:border-slate-700 {
  border-color: #334155 !important;
}

html.dark .dark\:border-slate-800 {
  border-color: #1e293b !important;
}

html.dark .dark\:border-slate-800\/80 {
  border-color: rgba(30, 41, 59, 0.8) !important;
}

html.dark .dark\:text-\[\#f08b6e\] {
  color: #f08b6e !important;
}

html.dark .dark\:text-emerald-300 {
  color: #6ee7b7 !important;
}

html.dark .dark\:text-emerald-400 {
  color: #34d399 !important;
}

html.dark .dark\:text-slate-100 {
  color: #f1f5f9 !important;
}

html.dark .dark\:text-slate-200 {
  color: #e2e8f0 !important;
}

html.dark .dark\:text-slate-300 {
  color: #cbd5e1 !important;
}

html.dark .dark\:text-slate-400 {
  color: #94a3b8 !important;
}

html.dark .dark\:text-slate-500 {
  color: #64748b !important;
}

html.dark .dark\:text-slate-700 {
  color: #334155 !important;
}

html.dark .dark\:text-white {
  color: #ffffff !important;
}

html.dark .dark\:hover\:text-\[\#f08b6e\]:hover {
  color: #f08b6e !important;
}

html.dark .dark\:hover\:bg-slate-800\/60:hover {
  background-color: rgba(30, 41, 59, 0.6) !important;
}

/* Additional Layout & Installer Support Utilities */
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.p-1 {
  padding: 0.25rem;
}

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

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

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

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

.pt-3 {
  padding-top: 0.75rem;
}

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

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

.animate-spin {
  animation: spin 1s linear infinite;
}

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

  to {
    transform: rotate(360deg);
  }
}

/* Dark mode step badges */
html.dark .dark\:bg-amber-950\/40 {
  background-color: rgba(69, 26, 3, 0.4) !important;
}

html.dark .dark\:bg-indigo-950\/40 {
  background-color: rgba(30, 27, 75, 0.4) !important;
}

html.dark .dark\:border-amber-900 {
  border-color: #78350f !important;
}

html.dark .dark\:border-indigo-900 {
  border-color: #312e81 !important;
}

html.dark .dark\:border-emerald-900 {
  border-color: #064e3b !important;
}

html.dark .dark\:text-amber-400 {
  color: #fbbf24 !important;
}

html.dark .dark\:text-indigo-400 {
  color: #818cf8 !important;
}

/* Footer Navigation Container */
.footer-navigation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* ==========================================================================
   Header Dropdown Menus (Auto on Hover)
   ========================================================================== */
.nav-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-link-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0;
  text-decoration: none;
  cursor: pointer;
}

.dropdown-chevron {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
  color: #94a3b8;
  flex-shrink: 0;
}

.nav-dropdown-wrapper:hover .dropdown-chevron {
  transform: rotate(180deg);
  color: #e57555;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 290px !important;
  min-width: 290px !important;
  max-width: 90vw !important;
  background-color: #ffffff;
  border: 1px solid rgba(229, 117, 85, 0.22);
  border-radius: 1rem;
  box-shadow: 0 16px 36px -4px rgba(229, 117, 85, 0.16), 0 4px 12px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s;
  z-index: 100;
  box-sizing: border-box;
}

/* Hover bridge: allows cursor to smoothly transition into the dropdown menu without breaking hover */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

html.dark .nav-dropdown-menu {
  background-color: #1a120f;
  border-color: rgba(229, 117, 85, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  text-decoration: none !important;
  transition: background-color 0.15s ease, transform 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.dropdown-item:hover {
  background-color: #fdf8f6;
  transform: translateX(2px);
}

html.dark .dropdown-item:hover {
  background-color: #261612;
}

.dropdown-item>div:last-child {
  min-width: 0;
  flex: 1;
}

.dropdown-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  white-space: nowrap;
}

.dropdown-desc {
  font-size: 0.6875rem;
  color: #64748b;
  margin-top: 0.15rem;
  line-height: 1.35;
  white-space: normal;
  display: block;
}

.dropdown-icon-box {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.dropdown-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  transition: color 0.15s ease;
}

.dropdown-item:hover .dropdown-title {
  color: #e57555;
}

html.dark .dropdown-title {
  color: #f8fafc;
}

html.dark .dropdown-item:hover .dropdown-title {
  color: #f08b6e;
}

.dropdown-desc {
  font-size: 0.6875rem;
  color: #64748b;
  margin-top: 0.15rem;
  line-height: 1.25;
  font-weight: 400;
}

html.dark .dropdown-desc {
  color: #94a3b8;
}

.dropdown-divider {
  height: 1px;
  background-color: rgba(229, 117, 85, 0.15);
  margin: 0.35rem 0.5rem;
}

html.dark .dropdown-divider {
  background-color: rgba(229, 117, 85, 0.25);
}

/* ==========================================================================
   Instant Search Modal & Real-Time Spotlight UI
   ========================================================================== */
#instant-search-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3.5rem 1rem 1rem;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.16s ease, visibility 0.16s ease;
}

#instant-search-modal.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.search-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 620px;
  background-color: #ffffff;
  border: 1.5px solid rgba(229, 117, 85, 0.3);
  border-radius: 1.25rem;
  box-shadow: 0 25px 50px -12px rgba(229, 117, 85, 0.25), 0 10px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

#instant-search-modal.active .search-modal-dialog {
  transform: translateY(0) scale(1);
}

html.dark .search-modal-dialog {
  background-color: #1c1310;
  border-color: rgba(229, 117, 85, 0.38);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.search-input-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.15rem;
  border-bottom: 1px solid rgba(229, 117, 85, 0.18);
}

html.dark .search-input-header {
  border-bottom-color: rgba(229, 117, 85, 0.25);
}

.search-modal-input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #0f172a;
  outline: none;
  font-family: inherit;
}

.search-modal-input::placeholder {
  color: #94a3b8;
}

html.dark .search-modal-input {
  color: #f8fafc;
}

.search-shortcut-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  padding: 0.15rem 0.45rem;
  line-height: 1;
}

html.dark .search-shortcut-badge {
  background: #2b1a15;
  border-color: #3d231a;
  color: #94a3b8;
}

.search-results-body {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.75rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 0.85rem;
  border-radius: 0.75rem;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.search-result-item:hover,
.search-result-item.selected {
  background-color: #fdf8f6;
  transform: translateX(2px);
}

html.dark .search-result-item:hover,
html.dark .search-result-item.selected {
  background-color: #281713;
}

.search-result-logo {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background-color: #ffffff;
  padding: 0.25rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.search-result-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

html.dark .search-result-logo {
  background-color: #261612;
  border-color: #3d231a;
}

.search-result-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.search-result-item:hover .search-result-title {
  color: #e57555;
}

html.dark .search-result-title {
  color: #f8fafc;
}

html.dark .search-result-item:hover .search-result-title {
  color: #f08b6e;
}

.search-result-desc {
  font-size: 0.71875rem;
  color: #64748b;
  margin-top: 0.2rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html.dark .search-result-desc {
  color: #94a3b8;
}

.search-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1rem;
  background-color: #faf6f4;
  border-top: 1px solid rgba(229, 117, 85, 0.15);
  font-size: 0.6875rem;
  color: #64748b;
}

html.dark .search-modal-footer {
  background-color: #170f0c;
  border-top-color: rgba(229, 117, 85, 0.2);
  color: #94a3b8;
}

/* Profile Dropdown Positioning & Trigger */
.profile-trigger-btn {
  cursor: pointer;
  outline: none;
  border-radius: 9999px;
  line-height: 1;
}

.profile-trigger-btn:hover .dropdown-chevron {
  transform: rotate(180deg);
  color: #e57555;
}

.nav-dropdown-menu-right {
  left: auto !important;
  right: 0 !important;
  width: 300px !important;
  min-width: 300px !important;
  max-width: 92vw !important;
  transform: translateY(6px) !important;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu-right {
  transform: translateY(0) !important;
}

/* Width utilities for dropdowns and panels */
.w-60 {
  width: 15rem !important;
}

.w-64 {
  width: 16rem !important;
}

.w-72 {
  width: 18rem !important;
}

.w-80 {
  width: 20rem !important;
}

.w-96 {
  width: 24rem !important;
}