/* ==========================================================================
   ESPINZAR SELF-CONTAINED MASTER STYLESHEET (CI-Book v4.0 Standard)
   Zero External CDN Dependency - 100% Offline & Local Standalone Resilient
   Colors: Forest Green (#0D2D22), Crimson (#6B0A14), Radiant Gold (#D4AF37)
   ========================================================================== */

/* 1. Reset & Global Box Model */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-forest-700: #0D2D22;
  --color-forest-900: #061510;
  --color-crimson-700: #6B0A14;
  --color-crimson-900: #360408;
  --color-gold-500: #D4AF37;
  --color-gold-300: #EBD38D;
  --color-obsidian: #070A09;
  --color-charcoal: #111714;
  --color-espin-white: #F8FAF9;
  --gold-gradient: linear-gradient(135deg, #FFF3C4 0%, #D4AF37 50%, #9B7C1D 100%);
  --crimson-gradient: linear-gradient(135deg, #9E1020 0%, #6B0A14 100%);
}

body {
  background-color: var(--color-obsidian);
  color: var(--color-espin-white);
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
}

body[dir="ltr"] {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

svg {
  display: inline-block;
  vertical-align: middle;
}

/* 2. Display & Layout Utilities */
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none !important; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }

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

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:w-auto { width: auto !important; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
  .md\:hidden { display: none !important; }
  .md\:h-14 { height: 3.5rem !important; }
  .md\:w-14 { width: 3.5rem !important; }
  .md\:px-7 { padding-left: 1.75rem !important; padding-right: 1.75rem !important; }
  .md\:min-h-screen { min-height: 100vh !important; }
  .md\:text-5xl { font-size: 3rem !important; line-height: 1 !important; }
  .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\:col-span-2 { grid-column: span 2 / span 2; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex !important; }
  .lg\:inline-flex { display: inline-flex !important; }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
  .lg\:col-span-6 { grid-column: span 6 / span 6 !important; }
  .lg\:order-1 { order: 1 !important; }
  .lg\:order-2 { order: 2 !important; }
  .lg\:gap-12 { gap: 3rem !important; }
  .lg\:px-12 { padding-left: 3rem !important; padding-right: 3rem !important; }
  .lg\:text-\[3\.25rem\] { font-size: 3.25rem !important; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:mb-0 { margin-bottom: 0 !important; }
}

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

/* 3. Width, Height & Sizing */
.w-full { width: 100%; }
.w-1\.5 { width: 6px; }
.w-2 { width: 8px; }
.w-3\.5 { width: 14px; }
.w-4 { width: 16px; }
.w-5 { width: 20px; }
.w-6 { width: 24px; }
.w-8 { width: 32px; }
.w-9 { width: 36px; }
.w-10 { width: 40px; }
.w-11 { width: 2.75rem !important; }
.w-12 { width: 3rem !important; }
.w-14 { width: 3.5rem !important; }
.w-16 { width: 64px; }
.w-20 { width: 80px; }
.w-32 { width: 128px; }

.h-1\.5 { height: 6px; }
.h-2 { height: 8px; }
.h-3\.5 { height: 14px; }
.h-4 { height: 16px; }
.h-5 { height: 20px; }
.h-6 { height: 24px; }
.h-8 { height: 32px; }
.h-9 { height: 36px; }
.h-10 { height: 40px; }
.h-11 { height: 2.75rem !important; }
.h-12 { height: 3rem !important; }
.h-14 { height: 3.5rem !important; }
.h-16 { height: 64px; }
.h-20 { height: 80px; }
.h-5 { height: 20px; }
.h-6 { height: 24px; }
.h-8 { height: 32px; }
.h-10 { height: 40px; }
.h-12 { height: 48px; }
.h-16 { height: 64px; }
.h-20 { height: 80px; }
.h-52 { height: 208px; }
.h-56 { height: 224px; }
.h-auto { height: auto; }
.h-\[360px\] { height: 360px; }
.h-\[420px\] { height: 420px; }

.min-h-screen { min-height: 100vh; }
.min-h-\[85vh\] { min-height: 85vh; }
.max-w-none { max-width: none; }
.max-w-xs { max-width: 20rem; }
.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; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }

/* 4. Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.top-2 { top: 8px; }
.top-3 { top: 12px; }
.top-4 { top: 16px; }
.top-5 { top: 20px; }
.top-24 { top: 96px; }
.bottom-0 { bottom: 0; }
.bottom-3 { bottom: 12px; }
.bottom-6 { bottom: 24px; }
.bottom-10 { bottom: 40px; }
.bottom-16 { bottom: 64px; }
.bottom-20 { bottom: 80px; }
.left-0 { left: 0; }
.left-3 { left: 12px; }
.left-4 { left: 16px; }
.left-5 { left: 20px; }
.left-6 { left: 24px; }
.left-10 { left: 40px; }
.left-1\/2 { left: 50%; }
.right-0 { right: 0; }
.right-3 { right: 12px; }
.right-4 { right: 16px; }
.right-6 { right: 24px; }
.right-10 { right: 40px; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.-translate-x-1\/2 { transform: translateX(-50%); }
[dir="rtl"] .-translate-x-1\/2 { transform: translateX(50%); }

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* 5. Spacing (Paddings, Margins, Gaps) */
.p-1 { padding: 4px; }
.p-1\.5 { padding: 6px; }
.p-2 { padding: 8px; }
.p-2\.5 { padding: 10px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }

.px-2 { padding-left: 8px; padding-right: 8px; }
.px-2\.5 { padding-left: 10px; padding-right: 10px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-5 { padding-left: 20px; padding-right: 20px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.px-8 { padding-left: 32px; padding-right: 32px; }

.py-0\.5 { padding-top: 2px; padding-bottom: 2px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-1\.5 { padding-top: 6px; padding-bottom: 6px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-2\.5 { padding-top: 10px; padding-bottom: 10px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-3\.5 { padding-top: 14px; padding-bottom: 14px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.py-16 { padding-top: 64px; padding-bottom: 64px; }
.py-20 { padding-top: 80px; padding-bottom: 80px; }

.pt-2 { padding-top: 8px; }
.pt-3 { padding-top: 12px; }
.pt-4 { padding-top: 16px; }
.pt-6 { padding-top: 24px; }
.pt-8 { padding-top: 32px; }
.pb-1 { padding-bottom: 4px; }
.pb-3 { padding-bottom: 12px; }

.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-auto { margin-top: auto; margin-bottom: auto; }
.mt-0\.5 { margin-top: 2px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }
.mt-20 { margin-top: 80px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }
.ml-1 { margin-left: 4px; }
.mr-1 { margin-right: 4px; }
.mr-2 { margin-right: 8px; }
.mr-auto { margin-right: auto; }

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

/* Gap */
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-12 { gap: 48px; }

/* RTL space helpers */
.space-x-1 > :not([hidden]) ~ :not([hidden]) { margin-left: 4px; }
.space-x-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-left: 6px; }
.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: 8px; }
.space-x-3 > :not([hidden]) ~ :not([hidden]) { margin-left: 12px; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 16px; }
.space-x-8 > :not([hidden]) ~ :not([hidden]) { margin-left: 32px; }

.space-x-reverse > :not([hidden]) ~ :not([hidden]) { margin-left: 0; margin-right: 8px; }
.space-x-1\.5.space-x-reverse > :not([hidden]) ~ :not([hidden]) { margin-left: 0; margin-right: 6px; }
.space-x-2.space-x-reverse > :not([hidden]) ~ :not([hidden]) { margin-left: 0; margin-right: 8px; }
.space-x-3.space-x-reverse > :not([hidden]) ~ :not([hidden]) { margin-left: 0; margin-right: 12px; }
.space-x-4.space-x-reverse > :not([hidden]) ~ :not([hidden]) { margin-left: 0; margin-right: 16px; }
.space-x-8.space-x-reverse > :not([hidden]) ~ :not([hidden]) { margin-left: 0; margin-right: 32px; }

.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 6px; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 8px; }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 10px; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 12px; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 16px; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 24px; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 32px; }
.space-y-12 > :not([hidden]) ~ :not([hidden]) { margin-top: 48px; }

/* 6. Typography */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-\[10px\] { font-size: 10px; line-height: 14px; }
.text-\[11px\] { font-size: 11px; line-height: 15px; }
.text-xs { font-size: 12px; line-height: 16px; }
.text-sm { font-size: 14px; line-height: 20px; }
.text-base { font-size: 16px; line-height: 24px; }
.text-lg { font-size: 18px; line-height: 28px; }
.text-xl { font-size: 20px; line-height: 28px; }
.text-2xl { font-size: 24px; line-height: 32px; }
.text-3xl { font-size: 30px; line-height: 36px; }
.text-4xl { font-size: 36px; line-height: 40px; }
.text-5xl { font-size: 48px; line-height: 1.1; }
.text-6xl { font-size: 60px; line-height: 1; }

.font-light { font-weight: 300; }
.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; }
.font-black { font-weight: 900; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-pre-line { white-space: pre-line; }

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

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

/* 7. Colors & Backgrounds */
.bg-black { background-color: #000; }
.bg-black\/60 { background-color: rgba(0, 0, 0, 0.6); }
.bg-black\/80 { background-color: rgba(0, 0, 0, 0.8); }
.bg-black\/90 { background-color: rgba(0, 0, 0, 0.9); }
.bg-white { background-color: #fff; }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-\[\#070A09\] { background-color: #070A09; }
.bg-\[\#061510\] { background-color: #061510; }
.bg-\[\#0D2D22\] { background-color: #0D2D22; }
.bg-\[\#111714\] { background-color: #111714; }
.bg-\[\#0D2D22\]\/80 { background-color: rgba(13, 45, 34, 0.8); }
.bg-\[\#0D2D22\]\/60 { background-color: rgba(13, 45, 34, 0.6); }
.bg-\[\#0D2D22\]\/30 { background-color: rgba(13, 45, 34, 0.3); }

.bg-emerald-400 { background-color: #34d399; }
.bg-emerald-500\/20 { background-color: rgba(16, 185, 129, 0.2); }
.bg-emerald-600 { background-color: #059669; }
.bg-emerald-950 { background-color: #022c22; }

.bg-amber-400 { background-color: #fbbf24; }
.bg-amber-500\/10 { background-color: rgba(245, 158, 11, 0.1); }
.bg-amber-500\/20 { background-color: rgba(245, 158, 11, 0.2); }

.bg-blue-500\/10 { background-color: rgba(59, 130, 246, 0.1); }
.bg-blue-950 { background-color: #172554; }
.bg-purple-500\/10 { background-color: rgba(168, 85, 247, 0.1); }
.bg-purple-950 { background-color: #3b0764; }

.bg-red-500\/20 { background-color: rgba(239, 68, 68, 0.2); }
.bg-red-500\/30 { background-color: rgba(239, 68, 68, 0.3); }
.bg-red-600 { background-color: #dc2626; }
.bg-red-600\/80 { background-color: rgba(220, 38, 38, 0.8); }
.bg-red-950 { background-color: #450a0a; }
.bg-red-950\/90 { background-color: rgba(69, 10, 10, 0.9); }

.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-200 { background-color: #e2e8f0; }
.bg-slate-500 { background-color: #64748b; }
.bg-slate-700 { background-color: #334155; }
.bg-slate-800 { background-color: #1e293b; }

.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-\[\#D4AF37\] { color: #D4AF37; }
.text-\[\#F8FAF9\] { color: #F8FAF9; }
.text-\[\#A39E93\] { color: #A39E93; }
.text-amber-200\/90 { color: rgba(253, 230, 138, 0.9); }
.text-amber-300 { color: #fcd34d; }
.text-amber-400 { color: #fbbf24; }
.text-emerald-300 { color: #6ee7b7; }
.text-emerald-400 { color: #34d399; }
.text-blue-300 { color: #93c5fd; }
.text-blue-400 { color: #60a5fa; }
.text-purple-300 { color: #d8b4fe; }
.text-purple-400 { color: #c084fc; }
.text-red-200 { color: #fecaca; }
.text-red-300 { color: #fca5a5; }
.text-red-400 { color: #f87171; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.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; }

/* Gradient backgrounds */
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops, #000, #fff));
}
.bg-gradient-to-t {
  background-image: linear-gradient(to top, var(--tw-gradient-stops, #000, transparent));
}

.from-\[\#061510\] { --tw-gradient-from: #061510; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(6, 21, 16, 0)); }
.via-\[\#0D2D22\] { --tw-gradient-stops: var(--tw-gradient-from), #0D2D22, var(--tw-gradient-to, rgba(13, 45, 34, 0)); }
.to-\[\#061510\] { --tw-gradient-to: #061510; }

.from-\[\#D4AF37\] { --tw-gradient-from: #D4AF37; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(212, 175, 55, 0)); }
.via-\[\#E8CA68\] { --tw-gradient-stops: var(--tw-gradient-from), #E8CA68, var(--tw-gradient-to, rgba(232, 202, 104, 0)); }
.to-\[\#9B7C1D\] { --tw-gradient-to: #9B7C1D; }
.from-\[\#070A09\] { --tw-gradient-from: #070A09; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(7, 10, 9, 0)); }
.via-transparent { --tw-gradient-stops: var(--tw-gradient-from), transparent, var(--tw-gradient-to, rgba(0, 0, 0, 0)); }
.to-transparent { --tw-gradient-to: transparent; }

/* 8. Borders & Radii */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-b-2 { border-bottom-width: 2px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; border-style: solid; }

.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-\[\#D4AF37\] { border-color: #D4AF37; }
.border-\[\#D4AF37\]\/20 { border-color: rgba(212, 175, 55, 0.2); }
.border-\[\#D4AF37\]\/30 { border-color: rgba(212, 175, 55, 0.3); }
.border-\[\#D4AF37\]\/40 { border-color: rgba(212, 175, 55, 0.4); }
.border-\[\#D4AF37\]\/50 { border-color: rgba(212, 175, 55, 0.5); }
.border-amber-500\/30 { border-color: rgba(245, 158, 11, 0.3); }
.border-emerald-800 { border-color: #065f46; }
.border-blue-800 { border-color: #1e40af; }
.border-red-500 { border-color: #ef4444; }
.border-red-500\/50 { border-color: rgba(239, 68, 68, 0.5); }
.border-t-transparent { border-top-color: transparent !important; }

.rounded { border-radius: 4px; }
.rounded-lg { border-radius: 8px; }
.rounded-xl { border-radius: 12px; }
.rounded-2xl { border-radius: 16px; }
.rounded-3xl { border-radius: 24px; }
.rounded-full { border-radius: 9999px; }

/* 9. Effects, Shadows & Transitions */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7); }

.transition { transition: all 0.2s ease-in-out; }
.transition-all { transition: all 0.3s ease-in-out; }
.transition-transform { transition: transform 0.3s ease-in-out; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.duration-700 { transition-duration: 700ms; }

.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop-blur-xl { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.object-cover { object-fit: cover; }
.cursor-pointer { cursor: pointer; }
.opacity-0 { opacity: 0; }
.opacity-70 { opacity: 0.7; }
.opacity-100 { opacity: 1; }
.pointer-events-none { pointer-events: none; }

/* Hover States */
.hover\:underline:hover { text-decoration: underline; }
.hover\:scale-105:hover { transform: scale(1.03); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:block { display: block !important; }
.group:hover .group-hover\:rotate-180 { transform: rotate(180deg); }
.hover\:text-white:hover { color: #ffffff !important; }
.hover\:text-\[\#D4AF37\]:hover { color: #D4AF37 !important; }
.hover\:text-black:hover { color: #000000 !important; }
.hover\:text-amber-400:hover { color: #fbbf24 !important; }
.hover\:bg-white\/5:hover { background-color: rgba(255, 255, 255, 0.05) !important; }
.hover\:bg-white\/10:hover { background-color: rgba(255, 255, 255, 0.1) !important; }
.hover\:bg-\[\#D4AF37\]:hover { background-color: #D4AF37 !important; }
.hover\:bg-\[\#0D2D22\]:hover { background-color: #0D2D22 !important; }
.hover\:border-\[\#D4AF37\]:hover { border-color: #D4AF37 !important; }
.hover\:bg-slate-700:hover { background-color: #334155 !important; }
.hover\:bg-slate-800:hover { background-color: #1e293b !important; }

/* Form Focus */
.focus\:outline-none:focus { outline: none; }
.focus\:border-\[\#D4AF37\]:focus { border-color: #D4AF37 !important; box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2); }

/* SVG Fills */
.fill-none { fill: none; }
.fill-amber-400 { fill: #fbbf24; }

/* 10. Brand Custom Utilities */
.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-panel {
  background: rgba(17, 23, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.glass-card {
  background: linear-gradient(180deg, rgba(13, 45, 34, 0.45) 0%, rgba(7, 10, 9, 0.85) 100%);
  border: 1px solid rgba(212, 175, 55, 0.18);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.12);
}

/* Mobile Fixed Bottom Nav */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(7, 10, 9, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
}

@media (min-width: 1024px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}

.nav-item-active {
  color: var(--color-gold-500) !important;
}

.nav-item-active svg {
  stroke: var(--color-gold-500) !important;
}

.badge-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--color-crimson-700);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9999px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-obsidian);
}

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

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

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.animate-ping {
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pulseSubtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.02); }
}

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

/* ========================================================
   Floating Luxury Capsule Navigation & Mockup Hero Styles
   ======================================================== */
.floating-pill-nav {
  flex: 1 1 0% !important;
  width: 100% !important;
  max-width: 56rem !important;
  height: 3.5rem !important;
  background: rgba(13, 29, 23, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.floating-sq-badge {
  width: 3.5rem !important;
  height: 3.5rem !important;
  min-width: 3.5rem !important;
  min-height: 3.5rem !important;
  max-width: 3.5rem !important;
  max-height: 3.5rem !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(8, 17, 14, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  padding: 0.5rem !important;
  overflow: hidden !important;
}

.floating-sq-badge img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

.hero-mockup-bg {
  background-color: #07140F;
  background-image: 
    radial-gradient(circle at 35% 50%, rgba(15, 53, 40, 0.75) 0%, rgba(9, 28, 20, 0.55) 45%, rgba(5, 12, 9, 0.98) 90%),
    radial-gradient(circle at 85% 25%, rgba(107, 10, 20, 0.12) 0%, transparent 45%);
}

.gold-action-btn {
  background: linear-gradient(135deg, #F3C766 0%, #E5B54E 60%, #C99632 100%);
  color: #0A1713;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(229, 181, 78, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.gold-action-btn:hover {
  background: linear-gradient(135deg, #FFE194 0%, #F3C766 60%, #D4A33B 100%);
  box-shadow: 0 14px 32px rgba(229, 181, 78, 0.5);
  transform: translateY(-2px);
  color: #050B08;
}

.gold-cart-btn {
  background: linear-gradient(135deg, #F3C766 0%, #E5B54E 100%);
  color: #0A1713;
  border-radius: 0.75rem;
  box-shadow: 0 6px 18px rgba(229, 181, 78, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.gold-cart-btn:hover {
  background: linear-gradient(135deg, #FFE194 0%, #F3C766 100%);
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(229, 181, 78, 0.45);
}

.iso-badge-pill {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 181, 78, 0.35);
  color: #E5B54E;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.iso-badge-pill:hover {
  border-color: rgba(229, 181, 78, 0.7);
  box-shadow: 0 8px 25px rgba(229, 181, 78, 0.2);
}

/* ========================================================
   LIGHT MODE THEME ENGINE (LUXURY IVORY & FOREST SYSTEM)
   ======================================================== */
html.light body {
  background-color: #F6F8F6 !important;
  color: #071712 !important;
}

html.light .floating-pill-nav {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(13, 45, 34, 0.14) !important;
  box-shadow: 0 16px 36px rgba(13, 45, 34, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

html.light .floating-pill-nav a,
html.light .floating-pill-nav button {
  color: #0D2D22 !important;
}

html.light .floating-pill-nav a:hover,
html.light .floating-pill-nav button:hover {
  color: #B8860B !important;
}

html.light .floating-pill-nav .text-white {
  color: #071712 !important;
}

html.light .floating-pill-nav .text-slate-200,
html.light .floating-pill-nav .text-slate-300,
html.light .floating-pill-nav .text-slate-400 {
  color: #374740 !important;
}

html.light .floating-sq-badge {
  background: #0D2D22 !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
  box-shadow: 0 12px 30px rgba(13, 45, 34, 0.25) !important;
}

html.light .hero-mockup-bg {
  background-color: #F1F5F2 !important;
  background-image: 
    radial-gradient(circle at 35% 50%, rgba(13, 45, 34, 0.08) 0%, rgba(212, 175, 55, 0.06) 45%, rgba(246, 248, 246, 0.98) 90%),
    radial-gradient(circle at 85% 25%, rgba(107, 10, 20, 0.04) 0%, transparent 45%) !important;
}

html.light .hero-mockup-bg h1 {
  color: #071712 !important;
}

html.light .hero-mockup-bg p {
  color: #374740 !important;
}

html.light .iso-badge-pill {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(184, 134, 11, 0.4) !important;
  color: #8A6715 !important;
  box-shadow: 0 4px 15px rgba(13, 45, 34, 0.08) !important;
}

html.light .glass-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(13, 45, 34, 0.12) !important;
  box-shadow: 0 8px 24px rgba(13, 45, 34, 0.06) !important;
}

html.light .glass-card:hover {
  border-color: rgba(212, 175, 55, 0.6) !important;
  box-shadow: 0 16px 36px rgba(13, 45, 34, 0.12), 0 0 20px rgba(212, 175, 55, 0.15) !important;
  transform: translateY(-3px) !important;
}

html.light .glass-card h2,
html.light .glass-card h3 {
  color: #071712 !important;
}

html.light .glass-card p {
  color: #495852 !important;
}

html.light .glass-card a {
  color: #8A6715 !important;
}

html.light .glass-card a:hover {
  color: #5E4306 !important;
}

html.light .glass-card svg {
  color: #8A6715 !important;
}

html.light .glass-card .bg-\[\#E5B54E\]\/10 {
  background-color: rgba(184, 134, 11, 0.08) !important;
  border-color: rgba(184, 134, 11, 0.25) !important;
}

html.light .glass-panel {
  background: #FFFFFF !important;
  border: 1px solid rgba(13, 45, 34, 0.12) !important;
  box-shadow: 0 10px 30px rgba(13, 45, 34, 0.06) !important;
}

html.light .glass-panel h1,
html.light .glass-panel h2,
html.light .glass-panel h3,
html.light .glass-panel h4 {
  color: #071712 !important;
}

html.light .glass-panel p,
html.light .glass-panel span.text-slate-400 {
  color: #495852 !important;
}

html.light .mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.95) !important;
  border-top: 1px solid rgba(13, 45, 34, 0.12) !important;
  box-shadow: 0 -4px 20px rgba(13, 45, 34, 0.08) !important;
}

html.light .mobile-bottom-nav a {
  color: #495852 !important;
}

html.light .mobile-bottom-nav a.text-\[\#D4AF37\] {
  color: #A67C1E !important;
}

html.light #authModal .bg-\[\#111714\],
html.light #productModal .bg-\[\#0A130F\],
html.light #productModal .bg-\[\#111714\] {
  background-color: #FFFFFF !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25) !important;
}

html.light #authModal h2,
html.light #productModal h2 {
  color: #071712 !important;
}

html.light #authModal p,
html.light #productModal p {
  color: #495852 !important;
}

html.light input,
html.light textarea,
html.light select {
  background-color: #F8FAF9 !important;
  border-color: rgba(13, 45, 34, 0.18) !important;
  color: #071712 !important;
}

html.light input:focus,
html.light textarea:focus,
html.light select:focus {
  border-color: #D4AF37 !important;
  background-color: #FFFFFF !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2) !important;
}

html.light .text-white {
  color: #071712;
}

html.light .text-gold-gradient {
  background: linear-gradient(135deg, #7C5A0B 0%, #A27918 50%, #654605 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

html.light .text-\[\#D4AF37\],
html.light .text-\[\#E5B54E\] {
  color: #8A6715 !important;
}

html.light .text-slate-400 {
  color: #4A5B53 !important;
}

html.light .text-slate-300 {
  color: #2D3D36;
}

html.light .text-slate-200 {
  color: #17241F;
}

html.light .border-white\/10,
html.light .border-white\/5 {
  border-color: rgba(13, 45, 34, 0.1) !important;
}

html.light .bg-white\/5 {
  background-color: rgba(13, 45, 34, 0.05) !important;
}

html.light .bg-white\/10 {
  background-color: rgba(13, 45, 34, 0.08) !important;
}

html.light .bg-\[\#061510\] {
  background-color: #F0F4F1 !important;
}

html.light .bg-\[\#111714\] {
  background-color: #FFFFFF !important;
}

html.light .bg-\[\#07140F\] {
  background-color: #F7F9F7 !important;
}

/* Grounded luxury dark footer in light mode */
html.light footer {
  background-color: #081B14 !important;
  color: #F8FAF9 !important;
}

html.light footer .text-white {
  color: #FFFFFF !important;
}

html.light footer .text-slate-400 {
  color: #94A3B8 !important;
}

html.light footer .text-slate-300 {
  color: #CBD5E1 !important;
}

html.light footer .text-slate-500 {
  color: #64748B !important;
}

html.light footer .border-white\/5 {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Smooth theme transition */
body, .floating-pill-nav, .glass-card, .glass-panel, main, footer {
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Digikala-Style Interactive Product Quantity Stepper (100% Pure SVG Vectors)
   -------------------------------------------------------------------------- */
.product-add-btn {
  background-color: #0D2D22;
  color: #D4AF37;
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-add-btn:hover {
  background-color: #D4AF37;
  color: #061510;
  border-color: #D4AF37;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
}

/* Language Dropdown Seamless Bridge (Prevents hover disconnect) */
.lang-dropdown-wrapper {
  padding-top: 8px;
}
.lang-dropdown-wrapper::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 18px;
  background: transparent;
}

.product-stepper {
  background-color: #061510;
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  height: 38px;
  animation: digikalaStepperPop 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes digikalaStepperPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.product-stepper button {
  transition: all 0.18s ease;
}

.product-stepper button:hover {
  transform: scale(1.12);
}

.product-stepper button:active {
  transform: scale(0.92);
}

/* Light Mode Overrides for Digikala-Style Stepper */
html.light .product-add-btn {
  background-color: #F0F5F2 !important;
  color: #8A6715 !important;
  border: 1.5px solid rgba(138, 103, 21, 0.4) !important;
  box-shadow: 0 2px 8px rgba(13, 45, 34, 0.08) !important;
}

html.light .product-add-btn:hover {
  background-color: #D4AF37 !important;
  color: #071712 !important;
  border-color: #D4AF37 !important;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.3) !important;
}

html.light .product-stepper {
  background-color: #FFFFFF !important;
  border: 1.5px solid rgba(138, 103, 21, 0.5) !important;
  box-shadow: 0 4px 14px rgba(13, 45, 34, 0.1) !important;
}

html.light .product-stepper span {
  color: #071712 !important;
}

html.light .product-stepper button {
  color: #8A6715 !important;
}

html.light .product-stepper button:hover {
  background-color: rgba(138, 103, 21, 0.12) !important;
}

html.light .product-stepper button.text-rose-400 {
  color: #DC2626 !important;
}

html.light .product-stepper button.text-rose-400:hover {
  background-color: rgba(220, 38, 38, 0.12) !important;
}


