/* ============================================
   LOLASHI - Static HTML/CSS/JS Styles
   Converted from React/Tailwind
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* CSS Custom Properties (from shadcn/tailwind config) */
:root {
  --background: hsl(35 30% 97%);
  --foreground: hsl(20 25% 12%);
  --card: hsl(35 25% 95%);
  --card-foreground: hsl(20 25% 12%);
  --popover: hsl(0 0% 100%);
  --popover-foreground: hsl(20 25% 12%);
  --primary: hsl(38 75% 42%);
  --primary-foreground: hsl(0 0% 100%);
  --secondary: hsl(350 45% 28%);
  --secondary-foreground: hsl(0 0% 100%);
  --muted: hsl(35 15% 93%);
  --muted-foreground: hsl(20 12% 38%);
  --accent: hsl(350 50% 35%);
  --accent-foreground: hsl(0 0% 100%);
  --destructive: hsl(0 84.2% 60.2%);
  --destructive-foreground: hsl(210 40% 98%);
  --border: hsl(35 20% 88%);
  --input: hsl(35 20% 88%);
  --ring: hsl(38 75% 42%);
  --radius: 0.5rem;

  --color-background: 35 30% 97%;
  --color-foreground: 20 25% 12%;
  --color-card: 35 25% 95%;
  --color-primary: 38 75% 42%;
  --color-secondary: 350 45% 28%;
  --color-muted: 35 15% 93%;
  --color-muted-foreground: 20 8% 46%;
  --color-border: 35 20% 88%;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Lora', serif;
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.02em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

/* ============================================
   UTILITY CLASSES (Tailwind equivalent)
   ============================================ */

/* Layout */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-14 { gap: 3.5rem; }
.gap-16 { gap: 4rem; }

.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)); }

.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Sizing */
.w-8 { width: 2rem; }
.w-9 { width: 2.25rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.w-64 { width: 16rem; }
.w-72 { width: 18rem; }
.w-full { width: 100%; }
.h-0\.5 { height: 0.125rem; }
.h-8 { height: 2rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.h-32 { height: 8rem; }
.h-80 { height: 20rem; }
.h-full { height: 100%; }
.min-h-\[92vh\] { min-height: 92vh; }

/* Padding */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.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-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.pt-0 { padding-top: 0; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-12 { padding-top: 3rem; }
.pt-20 { padding-top: 5rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-5 { padding-bottom: 1.25rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pl-6 { padding-left: 1.5rem; }
.pl-10 { padding-left: 2.5rem; }
.pr-4 { padding-right: 1rem; }

/* Margins */
.m-0 { margin: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-11 { margin-left: 2.75rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }

/* Positioning */
.top-0 { top: 0; }
.top-5 { top: 1.25rem; }
.top-1\/2 { top: 50%; }
.left-0 { left: 0; }
.left-3 { left: 0.75rem; }
.left-5 { left: 1.25rem; }
.right-0 { right: 0; }
.right-3 { right: 0.75rem; }
.right-5 { right: 1.25rem; }
.bottom-3 { bottom: 0.75rem; }
.bottom-6 { bottom: 1.5rem; }
.right-6 { right: 1.5rem; }
.-inset-2 { inset: -0.5rem; }
.-inset-3 { inset: -0.75rem; }
.-inset-4 { inset: -1rem; }
.-inset-6 { inset: -1.5rem; }
.-bottom-3 { bottom: -0.75rem; }
.-right-3 { right: -0.75rem; }
.inset-0 { inset: 0; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.-z-10 { z-index: -10; }

/* Transforms */
.-translate-y-1\/2 { transform: translateY(-50%); }
.translate-x-0 { transform: translateX(0); }

/* Width/Height */
.max-w-24 { max-width: 6rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-lg { max-width: 32rem; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-xs { max-width: 20rem; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1.1; }
.text-8xl { font-size: 6rem; line-height: 1; }
.text-\[3\.5rem\] { font-size: 3.5rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.italic { font-style: italic; }
.not-italic { font-style: normal; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-\[0\.15em\] { letter-spacing: 0.15em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.leading-relaxed { line-height: 1.625; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-\[1\.1\] { line-height: 1.1; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.whitespace-nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Colors */
.text-foreground { color: var(--foreground); }
.text-background { color: var(--background); }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-secondary { color: var(--secondary); }
.text-secondary-foreground { color: var(--secondary-foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-destructive { color: var(--destructive); }
.text-destructive-foreground { color: var(--destructive-foreground); }
.text-white { color: #ffffff; }
.text-white\/40 { color: rgba(255,255,255,0.4); }
.text-white\/50 { color: rgba(255,255,255,0.5); }
.text-white\/60 { color: rgba(255,255,255,0.6); }
.text-white\/70 { color: rgba(255,255,255,0.7); }
.text-white\/90 { color: rgba(255,255,255,0.9); }
.text-red-500 { color: #ef4444; }
.text-red-700 { color: #b91c1c; }
.text-green-400 { color: #4ade80; }
.text-green-600 { color: #16a34a; }
.text-blue-600 { color: #2563eb; }
.text-pink-600 { color: #db2777; }
.text-amber-400 { color: #fbbf24; }
.fill-amber-400 { fill: #fbbf24; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }

.bg-background { background-color: var(--background); }
.bg-foreground { background-color: var(--foreground); }
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-muted { background-color: var(--muted); }
.bg-card { background-color: var(--card); }
.bg-white { background-color: #ffffff; }
.bg-red-50 { background-color: #fef2f2; }
.bg-red-100 { background-color: #fee2e2; }
.bg-green-100 { background-color: #dcfce7; }
.bg-green-500\/20 { background-color: rgba(34, 197, 94, 0.2); }
.bg-blue-600 { background-color: #2563eb; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-primary\/5 { background-color: hsla(38, 75%, 42%, 0.05); }
.bg-primary\/8 { background-color: hsla(38, 75%, 42%, 0.08); }
.bg-primary\/10 { background-color: hsla(38, 75%, 42%, 0.1); }
.bg-primary\/15 { background-color: hsla(38, 75%, 42%, 0.15); }
.bg-primary\/20 { background-color: hsla(38, 75%, 42%, 0.2); }
.bg-primary\/30 { background-color: hsla(38, 75%, 42%, 0.3); }
.bg-muted\/30 { background-color: hsla(35, 15%, 93%, 0.3); }
.bg-muted\/40 { background-color: hsla(35, 15%, 93%, 0.4); }
.bg-\[\#FFFBF0\]\/95 { background-color: rgba(255, 251, 240, 0.95); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-card\/50 { background-color: hsla(35, 25%, 95%, 0.5); }
.bg-blue-600\/10 { background-color: rgba(37, 99, 235, 0.1); }

/* Borders */
.border { border: 1px solid var(--border); }
.border-2 { border-width: 2px; }
.border-t { border-top: 1px solid; }
.border-b { border-bottom: 1px solid; }
.border-l { border-left: 1px solid; }
.border-primary { border-color: var(--primary); }
.border-input { border-color: var(--input); }
.border-border { border-color: var(--border); }
.border-border\/50 { border-color: hsla(35, 20%, 88%, 0.5); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-primary\/10 { border-color: hsla(38, 75%, 42%, 0.1); }
.border-primary\/20 { border-color: hsla(38, 75%, 42%, 0.2); }
.border-primary\/30 { border-color: hsla(38, 75%, 42%, 0.3); }
.border-red-200 { border-color: #fecaca; }
.border-green-200 { border-color: #bbf7d0; }

.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: var(--radius); }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* Shadow */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.shadow-black\/15 { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); }
.shadow-primary\/20 { box-shadow: 0 10px 15px -3px hsla(38, 75%, 42%, 0.2); }
.shadow-primary\/25 { box-shadow: 0 10px 15px -3px hsla(38, 75%, 42%, 0.25); }

/* Object */
.object-cover { object-fit: cover; }
.object-top { object-position: top; }
.object-contain { object-fit: contain; }

/* Opacity */
.opacity-\[0\.03\] { opacity: 0.03; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* Blur */
.blur-xl { filter: blur(24px); }
.blur-2xl { filter: blur(40px); }

/* Background image */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }

.from-transparent { --tw-gradient-from: transparent; }
.via-primary\/30 { --tw-gradient-via: hsla(38, 75%, 42%, 0.3); }
.to-transparent { --tw-gradient-to: transparent; }

.from-\[\#FFFBF0\]\/85 { --tw-gradient-from: rgba(255, 251, 240, 0.85); }
.via-\[\#FFFBF0\]\/70 { --tw-gradient-via: rgba(255, 251, 240, 0.7); }
.to-\[\#FFFBF0\] { --tw-gradient-to: #FFFBF0; }

.from-purple-500\/10 { --tw-gradient-from: rgba(168, 85, 247, 0.1); }
.to-pink-500\/10 { --tw-gradient-to: rgba(236, 72, 153, 0.1); }

.from-purple-500 { --tw-gradient-from: #a855f7; }
.to-pink-500 { --tw-gradient-to: #ec4899; }

.from-gray-50 { --tw-gradient-from: #f9fafb; }
.to-blue-50 { --tw-gradient-to: #eff6ff; }

/* Backdrop */
.backdrop-blur-sm { backdrop-filter: blur(4px); }

/* Transitions */
.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; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.duration-700 { transition-duration: 700ms; }
.duration-1000 { transition-duration: 1000ms; }

/* Disabled */
.disabled\:pointer-events-none:disabled { pointer-events: none; }
.disabled\:opacity-50:disabled { opacity: 0.5; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }

/* Focus */
.focus-visible\:outline-none:focus-visible { outline: none; }
.focus-visible\:ring-2:focus-visible { box-shadow: 0 0 0 2px var(--ring); }
.focus-visible\:ring-ring:focus-visible { --tw-ring-color: var(--ring); }
.focus-visible\:ring-offset-2:focus-visible { --tw-ring-offset-width: 2px; }
.focus\:border-primary:focus { border-color: var(--primary); }

/* Hover */
.hover\:bg-primary:hover { background-color: var(--primary); }
.hover\:bg-primary\/90:hover { background-color: hsla(38, 75%, 42%, 0.9); }
.hover\:bg-muted:hover { background-color: var(--muted); }
.hover\:bg-accent:hover { background-color: var(--accent); }
.hover\:bg-blue-600:hover { background-color: #2563eb; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:bg-sky-500:hover { background-color: #0ea5e9; }
.hover\:bg-primary\/5:hover { background-color: hsla(38, 75%, 42%, 0.05); }
.hover\:bg-red-50:hover { background-color: #fef2f2; }
.hover\:opacity-90:hover { opacity: 0.9; }
.hover\:text-foreground:hover { color: var(--foreground); }
.hover\:text-primary:hover { color: var(--primary); }
.hover\:text-white:hover { color: #ffffff; }
.hover\:text-accent-foreground:hover { color: var(--accent-foreground); }
.hover\:underline:hover { text-decoration: underline; }
.hover\:border-primary:hover { border-color: var(--primary); }
.hover\:border-primary\/20:hover { border-color: hsla(38, 75%, 42%, 0.2); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:bg-green-100:hover { background-color: #dcfce7; }

/* Active */
.active\:bg-muted:active { background-color: var(--muted); }

/* ============================================
   RESPONSIVE (md = 768px, lg = 1024px)
   ============================================ */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:justify-between { justify-content: space-between; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:h-80 { height: 20rem; }
  .sm\:w-80 { width: 20rem; }
  .sm\:flex { display: flex; }
  .sm\:px-4 { padding-left: 1rem; padding-right: 1rem; }
  .sm\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .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\:items-start { align-items: flex-start; }
  .sm\:gap-4 { gap: 1rem; }
  .sm\:text-center { text-align: center; }
  .sm\:text-left { text-align: left; }
  .sm\:block { display: block; }
}

@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; }
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .md\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
  .md\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .md\:text-\[28rem\] { height: 28rem; }
  .md\:h-20 { height: 5rem; }
  .md\:h-12 { height: 3rem; }
  .md\:h-\[28rem\] { height: 28rem; }
  .md\:w-12 { width: 3rem; }
  .md\:w-80 { width: 20rem; }
  .md\:w-96 { width: 24rem; }
  .md\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .md\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
  .md\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
  .md\:pt-24 { padding-top: 6rem; }
  .md\:pb-28 { padding-bottom: 7rem; }
  .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .md\:p-8 { padding: 2rem; }
  .md\:gap-12 { gap: 3rem; }
  .md\:text-8xl { font-size: 4rem; line-height: 1.1; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:font-bold { font-weight: 700; }
  .md\:leading-\[1\.1\] { line-height: 1.1; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .md\:block { display: block; }
  .md\:text-\[28rem\] { height: 28rem; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:justify-end { justify-content: flex-end; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:text-\[3\.5rem\] { font-size: 3.5rem; }
  .lg\:text-5xl { font-size: 3rem; line-height: 1; }
}

/* ============================================
   COMPONENT STYLES
   ============================================ */

/* Container */
.container {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(255, 251, 240, 0.95);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid hsla(35, 20%, 88%, 0.5);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.navbar-inner {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 768px) {
  .navbar-content { height: 5rem; }
}

.nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 200ms, background-color 200ms;
}

.nav-link:hover {
  color: var(--foreground);
  background-color: var(--muted);
}

.nav-link.active {
  color: var(--primary);
  background-color: hsla(38, 75%, 42%, 0.1);
}

@media (min-width: 1024px) {
  .nav-link { display: block; }
}

/* Nav links desktop */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .desktop-nav { display: flex; }
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease, opacity 300ms ease;
  opacity: 0;
}

.mobile-menu.open {
  max-height: 500px;
  opacity: 1;
}

.mobile-menu-inner {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 200ms, background-color 200ms;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--primary);
  background-color: hsla(38, 75%, 42%, 0.1);
}

/* Hamburger button */
.hamburger-btn {
  display: block;
  padding: 0.5rem;
  border-radius: 0.375rem;
  color: var(--foreground);
  transition: background-color 200ms;
}

.hamburger-btn:hover {
  background-color: var(--muted);
}

@media (min-width: 1024px) {
  .hamburger-btn { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  transition: all 200ms;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover:not(:disabled) {
  background-color: hsla(38, 75%, 42%, 0.9);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover:not(:disabled) {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.btn-outline-primary {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.btn-outline-primary:hover:not(:disabled) {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-lg {
  height: 2.75rem;
  padding: 0.5rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  height: 2.25rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}

.btn-icon {
  height: 2.5rem;
  width: 2.5rem;
}

.btn-full {
  width: 100%;
}

.btn-shadow {
  box-shadow: 0 10px 15px -3px hsla(38, 75%, 42%, 0.2);
}

.btn-text-lg {
  font-size: 1.125rem;
}

.btn-py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.btn-px-10 {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

/* Form elements */
.form-input {
  display: flex;
  width: 100%;
  height: 2.5rem;
  border-radius: 0.375rem;
  border: 1px solid var(--input);
  background-color: var(--background);
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  color: var(--foreground);
  transition: box-shadow 200ms;
}

.form-input::placeholder {
  color: var(--muted-foreground);
}

.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--ring);
}

.form-input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ring);
}

.form-input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.form-input.h-12 {
  height: 3rem;
}

.form-input.w-24 {
  width: 6rem;
}

.form-input.pl-10 {
  padding-left: 2.5rem;
}

.form-textarea {
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid var(--input);
  background-color: var(--background);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--foreground);
  transition: box-shadow 200ms;
  resize: vertical;
}

.form-textarea::placeholder {
  color: var(--muted-foreground);
}

.form-textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--ring);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Cards */
.card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--card-foreground);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.5rem;
}

.card-content {
  padding: 1.5rem;
  padding-top: 0;
}

.card-footer {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  padding-top: 0;
}

.warm-card {
  background: linear-gradient(135deg, var(--card), hsl(35 30% 98%));
  border-radius: var(--radius);
  border: 1px solid hsla(35, 20%, 88%, 0.5);
  padding: 1.5rem;
  transition: box-shadow 300ms, border-color 300ms;
}

.warm-card:hover {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  border-color: hsla(38, 75%, 42%, 0.2);
}

.glow-border {
  box-shadow: 0 0 0 1px hsla(38, 75%, 42%, 0.1),
              0 0 20px -5px hsla(38, 75%, 42%, 0.15);
}

/* Ornamental divider */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem 0;
}

.ornament-divider::before,
.ornament-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  max-width: 6rem;
}

.ornament-divider::before {
  background: linear-gradient(to right, transparent, hsla(38, 75%, 42%, 0.4), transparent);
}

.ornament-divider::after {
  background: linear-gradient(to left, transparent, hsla(38, 75%, 42%, 0.4), transparent);
}

/* Scripture quote */
.scripture-quote {
  position: relative;
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--muted-foreground);
  font-family: 'Cormorant Garamond', serif;
  border-left: 3px solid hsla(38, 75%, 42%, 0.5);
}

/* Animated sections */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.from-left {
  transform: translateX(-40px);
}

.animate-on-scroll.from-left.visible {
  transform: translateX(0);
}

.animate-on-scroll.from-right {
  transform: translateX(40px);
}

.animate-on-scroll.from-right.visible {
  transform: translateX(0);
}

/* Hero animation */
.hero-fade-in {
  opacity: 0;
  transform: translateY(20px);
}

.hero-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 600ms ease, transform 600ms ease;
}

.hero-scale-in {
  opacity: 0;
  transform: scale(0.9);
}

.hero-scale-in.visible {
  opacity: 1;
  transform: scale(1);
  transition: opacity 800ms ease, transform 800ms ease;
}

/* Page sections */
.page-content {
  padding-top: 5rem;
}

@media (min-width: 768px) {
  .page-content {
    padding-top: 6rem;
  }
}

/* Section styles */
.section-header {
  text-align: center;
}

.section-header .section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.section-label-text {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

/* Section subtitle should be readable */
.section-subtitle {
  color: hsl(20 15% 35%) !important;
}

@media (min-width: 768px) {
  .section-title { font-size: 2.25rem; }
}

.section-subtitle {
  color: hsl(20 15% 35%) !important;
  font-size: 1.125rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Cormorant Garamond', serif;
}

/* Icon circle */
.icon-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: hsla(38, 75%, 42%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-circle-sm {
  width: 2.5rem;
  height: 2.5rem;
}

.icon-circle-lg {
  width: 3.5rem;
  height: 3.5rem;
}

/* Search toggle */
.search-toggle {
  display: flex;
  gap: 0.5rem;
  padding: 0.25rem;
  background-color: var(--muted);
  border-radius: 0.375rem;
}

.search-toggle-btn {
  flex: 1;
  padding: 0.625rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 200ms, background-color 200ms;
  cursor: pointer;
  border: none;
  background: none;
}

.search-toggle-btn.active {
  background-color: #ffffff;
  color: var(--foreground);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Status timeline */
.status-timeline {
  position: relative;
}

.status-timeline-bar {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  height: 2px;
  background-color: var(--muted);
}

.status-timeline-progress {
  height: 100%;
  background-color: var(--primary);
  transition: width 500ms;
}

.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.status-step-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  background-color: #ffffff;
  color: var(--muted-foreground);
  transition: all 200ms;
}

.status-step-icon.completed {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.status-step-icon.current {
  box-shadow: 0 0 0 4px hsla(38, 75%, 42%, 0.2);
}

.status-step-label {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
}

.status-step-label.completed {
  color: var(--primary);
}

.status-step-label:not(.completed) {
  color: var(--muted-foreground);
}

/* Scroll to top button */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 15px -3px hsla(38, 75%, 42%, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 200ms, transform 200ms, background-color 200ms;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.back-to-top:hover {
  background-color: hsla(38, 75%, 42%, 0.9);
}

/* SVG icons */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Share buttons */
.share-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid hsla(35, 20%, 88%, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  transition: all 200ms;
  cursor: pointer;
}

.share-btn:hover {
  background-color: var(--muted);
}

/* Newsletter */
.newsletter-section {
  background-color: var(--foreground);
  position: relative;
  overflow: hidden;
}

.newsletter-dots {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: radial-gradient(circle, hsl(38, 75%, 42%) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Script font */
.scripture-font {
  font-family: 'Cormorant Garamond', serif;
}

/* Footer */
.footer {
  background-color: var(--foreground);
  color: rgba(255, 255, 255, 0.9);
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: color 200ms;
  display: block;
  padding: 0.125rem 0;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: color 200ms;
}

.footer-contact-link:hover {
  color: var(--primary);
}

/* Main layout */
.main-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .main-content {
    margin-top: 5rem;
  }
}

/* Hero section */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 251, 240, 0.85), rgba(255, 251, 240, 0.7), #FFFBF0);
}

.hero-top-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
}

/* FAQ accordion */
.faq-item {
  border-radius: var(--radius);
  border: 1px solid hsla(35, 20%, 88%, 0.5);
  overflow: hidden;
  background: linear-gradient(135deg, var(--card), hsl(35 30% 98%));
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  text-align: left;
  cursor: pointer;
  border: none;
  background: none;
  transition: background-color 200ms;
}

.faq-question:hover {
  background-color: hsla(38, 75%, 42%, 0.05);
}

.faq-question-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-right: 1rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease, padding 300ms ease;
  padding: 0 1.25rem;
}

.faq-answer.open {
  max-height: 300px;
  padding: 0 1.25rem 1.25rem 2.75rem;
}

/* Page transition */
.page-section {
  position: relative;
}

.page-section-top-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, hsla(38, 75%, 42%, 0.3), transparent);
}

/* CTA dot pattern */
.dot-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: radial-gradient(circle, hsl(38, 75%, 42%) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Error/success messages */
.message-success {
  text-align: center;
}

.message-success-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  background-color: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.message-error-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  background-color: #fee2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

/* Social buttons */
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  transition: all 200ms;
}

.social-btn-facebook {
  background-color: #2563eb;
}

.social-btn-facebook:hover {
  background-color: #1d4ed8;
}

.social-btn-instagram {
  background: linear-gradient(to right, #a855f7, #ec4899);
}

.social-btn-instagram:hover {
  opacity: 0.9;
}

/* Trust badge */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: var(--card);
  border: 1px solid hsla(35, 20%, 88%, 0.5);
}

/* Order summary sticky */
.order-summary {
  position: sticky;
  top: 7rem;
}

/* Total display */
.total-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: hsla(38, 75%, 42%, 0.05);
  border-radius: 0.5rem;
}

/* Error alert */
.error-alert {
  margin-bottom: 1.25rem;
  padding: 1rem;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  color: #b91c1c;
  font-size: 0.875rem;
}

/* PayToday gateway panel */
.paytoday-gateway {
  margin-bottom: 1rem;
  padding: 1rem 1.125rem;
  border-radius: 0.75rem;
  border: 1px solid hsla(38, 75%, 42%, 0.25);
  background: linear-gradient(135deg, hsla(38, 75%, 42%, 0.06) 0%, hsla(35, 20%, 98%, 1) 100%);
}

.paytoday-gateway-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
}

.paytoday-gateway-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.paytoday-gateway-title {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--foreground);
  line-height: 1.2;
}

.paytoday-gateway-subtitle {
  margin: 0.125rem 0 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.paytoday-gateway-badge {
  flex-shrink: 0;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.paytoday-gateway-badge--loading {
  background-color: hsla(220, 14%, 96%, 1);
  color: var(--muted-foreground);
}

.paytoday-gateway-badge--ready {
  background-color: #dcfce7;
  color: #166534;
}

.paytoday-gateway-badge--setup {
  background-color: #fef3c7;
  color: #92400e;
}

.paytoday-gateway-badge--error {
  background-color: #fee2e2;
  color: #991b1b;
}

.paytoday-gateway-status {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.paytoday-gateway-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.paytoday-gateway-methods span {
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--foreground);
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid hsla(35, 20%, 88%, 0.8);
}

.currency-selector-wrap {
  margin-bottom: 1rem;
}

.currency-select {
  width: 100%;
  max-width: 100%;
  cursor: pointer;
}

.currency-select--compact {
  width: auto;
  min-width: 5.5rem;
  padding: 0.375rem 0.5rem;
  font-size: 0.8125rem;
  height: auto;
}

.navbar-currency {
  display: none;
  align-items: center;
}

@media (min-width: 1024px) {
  .navbar-currency {
    display: flex;
    margin-left: auto;
    margin-right: 0.75rem;
  }
}

.currency-note {
  margin: 0.375rem 0 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.4;
}

/* No results */
.no-results {
  text-align: center;
  padding: 3rem 0;
}

.no-results-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background-color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

/* Auth loading */
.auth-loading {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(to bottom right, #f9fafb, #eff6ff);
}

.auth-loading-spinner {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-bottom-color: #2563eb;
  animation: spin 0.6s linear infinite;
  margin: 0 auto 1rem;
}

/* Logout page */
.logout-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9fafb;
}

.logout-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: #dcfce7;
  margin: 0 auto 1rem;
}

/* 404 page */
.not-found-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

/* SVG icon sizing */
.icon-12 { width: 0.75rem; height: 0.75rem; }
.icon-14 { width: 0.875rem; height: 0.875rem; }
.icon-16 { width: 1rem; height: 1rem; }
.icon-18 { width: 1.125rem; height: 1.125rem; }
.icon-20 { width: 1.25rem; height: 1.25rem; }
.icon-22 { width: 1.375rem; height: 1.375rem; }
.icon-24 { width: 1.5rem; height: 1.5rem; }
.icon-26 { width: 1.625rem; height: 1.625rem; }
.icon-28 { width: 1.75rem; height: 1.75rem; }
.icon-32 { width: 2rem; height: 2rem; }
.icon-40 { width: 2.5rem; height: 2.5rem; }
.icon-48 { width: 3rem; height: 3rem; }

/* Newsletter input special */
.newsletter-input {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  height: 3rem;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px var(--primary);
}

/* Newsletter subscribe button */
.newsletter-btn {
  height: 3rem;
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 600;
  padding: 0 1.5rem;
  white-space: nowrap;
  border: none;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background-color 200ms;
}

.newsletter-btn:hover:not(:disabled) {
  background-color: hsla(38, 75%, 42%, 0.9);
}

.newsletter-btn:disabled {
  opacity: 0.5;
}

/* Newsletter success */
.newsletter-success-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background-color: rgba(34, 197, 94, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

/* Terms items */
.terms-item {
  padding: 1.5rem;
  border-radius: 0.75rem;
  background-color: var(--card);
  border: 1px solid hsla(35, 20%, 88%, 0.5);
}

.terms-item-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.terms-item-text {
  color: var(--muted-foreground);
  line-height: 1.625;
}

.terms-item-link {
  color: var(--primary);
}

.terms-item-link:hover {
  text-decoration: underline;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-item {
  padding: 1rem;
  background-color: #ffffff;
  border-radius: var(--radius);
  border: 1px solid hsla(35, 20%, 88%, 0.5);
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  font-family: 'Cinzel', serif;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Book info grid */
.book-info-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .book-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.book-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background-color: var(--card);
  border: 1px solid hsla(35, 20%, 88%, 0.5);
  transition: border-color 200ms;
}

.book-info-item:hover {
  border-color: hsla(38, 75%, 42%, 0.2);
}

.book-info-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.book-info-value {
  font-weight: 500;
  color: var(--foreground);
}

/* SVG icons inline */
svg {
  vertical-align: middle;
}

/* Page header */
.page-header {
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
  background-color: hsla(35, 15%, 93%, 0.3);
  position: relative;
}

@media (min-width: 768px) {
  .page-header {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

.page-header-top-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, hsla(38, 75%, 42%, 0.3), transparent);
}

.page-header-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.page-header-label-text {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.page-header-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .page-header-title { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .page-header-title { font-size: 3rem; }
}

.page-header-subtitle {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Cormorant Garamond', serif;
}

/* Newsletter form */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .newsletter-form {
    flex-direction: row;
  }
}

/* Scripture banner */
.scripture-banner {
  padding-top: 3rem;
  padding-bottom: 3rem;
  background-color: var(--secondary);
  color: #ffffff;
}

.scripture-banner-text {
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.625;
  font-family: 'Cormorant Garamond', serif;
}

@media (min-width: 768px) {
  .scripture-banner-text { font-size: 1.875rem; }
}

.scripture-banner-attr {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (min-width: 768px) {
  .scripture-banner-text { font-size: 2rem; }
  .scripture-banner-attr { font-size: 0.875rem; }
}

/* Book cover image wrapper */
.book-cover-wrapper {
  position: relative;
}

.book-cover-wrapper .book-cover-glow {
  position: absolute;
  inset: -1.5rem;
  background-color: hsla(38, 75%, 42%, 0.08);
  border-radius: 1.5rem;
  filter: blur(40px);
}

.book-cover-wrapper .book-cover-border {
  position: absolute;
  inset: -0.75rem;
  border: 1px solid hsla(38, 75%, 42%, 0.1);
  border-radius: 0.75rem;
}

.book-cover-img {
  position: relative;
  width: 16rem;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
  .book-cover-img { width: 20rem; }
}

/* About page author image */
.author-image-wrapper {
  position: relative;
}

.author-image-wrapper .author-image-glow {
  position: absolute;
  inset: -1rem;
  background-color: hsla(38, 75%, 42%, 0.1);
  border-radius: 1rem;
  filter: blur(40px);
}

.author-image-wrapper .author-image-border {
  position: absolute;
  inset: -0.5rem;
  border: 1px solid hsla(38, 75%, 42%, 0.1);
  border-radius: 0.75rem;
}

.author-image {
  position: relative;
  width: 18rem;
  height: 20rem;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  .author-image {
    width: 24rem;
    height: 28rem;
  }
}

/* Image with decorative border */
.image-with-deco {
  position: relative;
}

.image-with-deco .deco-border {
  position: absolute;
  bottom: -0.75rem;
  right: -0.75rem;
  width: 6rem;
  height: 6rem;
  border: 2px solid hsla(38, 75%, 42%, 0.2);
  border-radius: 0.75rem;
  z-index: -1;
}

/* Flex columns grid */
.content-grid-2 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .content-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5rem;
  }
}

/* Footer grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Footer bottom bar */
.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* Order details grid */
.order-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsla(35, 20%, 88%, 0.5);
}

@media (min-width: 768px) {
  .order-details-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.order-detail-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.order-detail-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.order-detail-value.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Back to home link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  transition: color 200ms;
  margin-bottom: 1.5rem;
}

.back-link:hover {
  color: var(--foreground);
}

/* Search input wrapper */
.search-input-wrapper {
  position: relative;
}

.search-input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
}

/* Testimonial card */
.testimonial-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-quote {
  color: hsla(38, 75%, 42%, 0.2);
  margin-bottom: 1rem;
}

.testimonial-text {
  color: hsl(20 15% 35%) !important;
  line-height: 1.625;
  flex: 1;
  margin-bottom: 1.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
}

.testimonial-stars {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.testimonial-name {
  font-weight: 600;
  color: var(--foreground);
}

.testimonial-location {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Contact info card */
.contact-info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-info-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.contact-info-value {
  font-weight: 500;
  color: var(--foreground);
  transition: color 200ms;
}

.contact-info-value:hover {
  color: var(--primary);
}

/* Order header */
.order-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .order-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Book preview card */
.book-preview {
  display: flex;
  gap: 1.25rem;
}

.book-preview-img {
  width: 6rem;
  height: 8rem;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.book-preview-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.book-preview-author {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.book-preview-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Cinzel', serif;
}

/* Payment success/error page */
.centered-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Button groups */
.btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .btn-group {
    flex-direction: row;
  }
}

/* Terms list */
.terms-list {
  margin-top: 0.75rem;
}

.terms-list li {
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

/* Loading spinner animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 0.6s linear infinite;
}

/* Newsletter email input */
.email-input {
  flex: 1;
  height: 3rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0.75rem;
  color: #ffffff;
  font-size: 1rem;
  transition: border-color 200ms;
}

.email-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.email-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}

/* Stay updated label */
.stay-updated-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.stay-updated-text {
  color: hsla(38, 75%, 42%, 0.8);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Testimonials grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Previous works grid */
.previous-works-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .previous-works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Order grid */
.order-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 3rem;
}

@media (min-width: 1024px) {
  .order-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Hero grid */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }
}

/* About grid */
.about-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

/* Book details grid */
.book-details-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .book-details-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

/* Book preview section grid */
.book-preview-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .book-preview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5rem;
  }
}

/* Auth error page */
.auth-error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(to bottom right, #f9fafb, #eff6ff);
}

.auth-error-icon-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.auth-error-icon-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(239, 68, 68, 0.2);
  filter: blur(1rem);
  border-radius: 9999px;
}

.auth-error-icon {
  position: relative;
  width: 3rem;
  height: 3rem;
  color: #ef4444;
  stroke-width: 1.5;
}
/* Order details grid */
.order-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.order-detail-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.order-detail-value {
  font-weight: 500;
  color: var(--foreground);
}

/* Status timeline */
.status-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 0.5rem;
}

.status-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
}

.status-step::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 2.5rem;
  bottom: -1.5rem;
  width: 2px;
  background-color: var(--border);
}

.status-step:last-child::before {
  display: none;
}

.status-step.completed::before {
  background-color: var(--primary);
}

.status-dot {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--border);
  border: 2px solid var(--border);
  z-index: 1;
}

.status-dot.filled {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

.status-dot.active {
  background-color: white;
  border-color: var(--primary);
  color: var(--primary);
}

.status-step-title {
  font-weight: 600;
  color: var(--foreground);
  font-size: 0.875rem;
}

.status-step-date {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.125rem;
}

/* Message success icon */
.message-success-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background-color: rgba(22, 163, 74, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

/* Newsletter success icon */
.newsletter-success-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background-color: rgba(22, 163, 74, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

/* Button group */
.btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .btn-group {
    flex-direction: row;
    justify-content: center;
  }
}
/* ============================================
   MOBILE RESPONSIVE FIXES
   ============================================ */

/* Hero heading: scale down on small screens */
@media (max-width: 767px) {
  .text-7xl {
    font-size: 2rem;
    line-height: 1.15;
  }
}

/* Ensure long words break properly on mobile */
@media (max-width: 640px) {
  h1, h2, h3 {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

/* Hero section: account for fixed navbar on all screen sizes */
.hero-section {
  padding-top: 5rem;
}

/* Hero grid columns should not overflow */
@media (min-width: 1024px) {
  .hero-grid > div:first-child {
    max-width: 100%;
    overflow: hidden;
  }
}

/* Scale down hero title on desktop to prevent cutoff */
@media (min-width: 1200px) {
  .hero-section h1 {
    font-size: 4rem !important;
    line-height: 1.1;
  }
}

@media (min-width: 1400px) {
  .hero-section h1 {
    font-size: 4.5rem !important;
    line-height: 1.1;
  }
}

@media (max-width: 767px) {
  .hero-section {
    padding-top: 4rem;
    min-height: 100vh;
    align-items: flex-start;
  }
  .hero-grid {
    padding-top: 1.5rem;
  }
}

/* ============================================
   GLOBAL RESPONSIVE FIXES — prevent content cutoff
   ============================================ */

/* Ensure all page content has proper top spacing below fixed navbar */
.page-header {
  padding-top: 4rem !important;
}
@media (min-width: 768px) {
  .page-header {
    padding-top: 5rem !important;
  }
}

/* Prevent horizontal overflow on all pages */
html, body {
  overflow-x: hidden;
  width: 100%;
}

/* ===== HERO SECTION FIXES ===== */
.hero-section {
  overflow: hidden;
}

.hero-section .container {
  max-width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.hero-section h1 {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Scale hero heading on medium screens to prevent cutoff */
@media (max-width: 1200px) {
  .hero-section h1 {
    font-size: 3rem !important;
    line-height: 1.15;
  }
}

@media (max-width: 767px) {
  .hero-section h1 {
    font-size: 2rem !important;
    line-height: 1.15;
  }
  .book-cover-wrapper {
    margin-top: 2rem;
  }
  .book-cover-img {
    width: 14rem;
  }
}

/* ===== PAGE HEADER FIXES ===== */
.page-header-title {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

@media (max-width: 767px) {
  .page-header-title {
    font-size: 1.75rem !important;
    line-height: 1.2;
  }
}

/* ===== SCRIPTURE BANNER FIXES ===== */
.scripture-banner {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.scripture-banner .max-w-4xl {
  max-width: 100%;
}

.scripture-banner-text {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .scripture-banner-text {
    font-size: 1.25rem;
  }
}

/* ===== BOOK PREVIEW SECTION FIXES ===== */
.book-preview-grid {
  gap: 2rem;
}

.book-preview-grid > div {
  max-width: 100%;
  overflow: hidden;
}

.book-preview-grid img {
  max-width: 100%;
  height: auto;
}

.image-with-deco {
  max-width: 100%;
  overflow: hidden;
}

.image-with-deco img {
  max-width: 100%;
  height: auto;
}

.image-with-deco .deco-border {
  display: none;
}

@media (min-width: 768px) {
  .image-with-deco .deco-border {
    display: block;
  }
}

/* ===== ABOUT PAGE FIXES ===== */
.about-grid {
  align-items: start;
}

.about-grid .scripture-font {
  color: var(--muted-foreground) !important;
}

.about-grid p {
  line-height: 1.7;
}

/* Biography section text readability — make text darker for readability */
.scripture-font {
  color: hsl(20 15% 35%) !important;
}

/* Keep white text in newsletter section */
.newsletter-section .scripture-font,
.newsletter-section p,
.newsletter-section .text-lg {
  color: rgba(255, 255, 255, 0.7) !important;
}

.newsletter-section .text-white,
.newsletter-section h2,
.newsletter-section h3 {
  color: #ffffff !important;
}

.newsletter-section .text-xs {
  color: rgba(255, 255, 255, 0.4) !important;
}

/* Footer text colors */
.footer .scripture-font {
  color: rgba(255, 255, 255, 0.7) !important;
}

.footer .text-sm {
  color: rgba(255, 255, 255, 0.5) !important;
}

.footer .text-white {
  color: #ffffff !important;
}

.footer .text-xs {
  color: rgba(255, 255, 255, 0.4) !important;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7) !important;
}

.footer-contact-link {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Section headings should always be visible (except in newsletter/footer) */
section h2 {
  color: var(--foreground) !important;
}

.newsletter-section h2 {
  color: #ffffff !important;
}

section h3 {
  color: var(--foreground) !important;
}

.newsletter-section h3 {
  color: #ffffff !important;
}

/* ===== BOOK DETAILS FIXES ===== */
.book-details-grid {
  gap: 2rem;
}

.book-details-grid > div {
  max-width: 100%;
}

.book-info-grid {
  overflow-wrap: break-word;
}

/* ===== SECTION TITLE VISIBILITY ===== */
.section-title {
  color: var(--foreground) !important;
}

.section-label-text {
  color: var(--primary) !important;
}

/* ===== FOOTER FIXES ===== */
.footer-bottom {
  flex-wrap: wrap;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-wrap: nowrap;
    text-align: left;
  }
}

/* ===== CTA SECTION FIXES ===== */
.cta-section h2 {
  color: var(--foreground) !important;
}

/* ===== ORDER PAGE FIXES ===== */
.order-summary {
  position: static;
}

@media (min-width: 1024px) {
  .order-summary {
    position: sticky;
    top: 7rem;
  }
}

.book-preview {
  flex-wrap: wrap;
}

.book-preview-title {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ===== CONTACT PAGE FIXES ===== */
.contact-info-card {
  flex-wrap: wrap;
}

.contact-info-value {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ===== MAIN CONTENT SPACING ===== */
main {
  margin-top: 0 !important;
}

.main-content {
  margin-top: 0 !important;
}

/* ===== GENERAL OVERFLOW PREVENTION ===== */
.container,
.max-w-7xl,
.max-w-4xl,
.max-w-3xl,
.max-w-2xl {
  max-width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container,
  .max-w-7xl,
  .max-w-4xl,
  .max-w-3xl,
  .max-w-2xl {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container,
  .max-w-7xl,
  .max-w-4xl,
  .max-w-3xl,
  .max-w-2xl {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Ensure text wraps properly on mobile everywhere */
@media (max-width: 640px) {
  /* Prevent text overflow in buttons and labels */
  .btn-primary,
  .btn-outline-primary,
  .nav-link,
  .mobile-nav-link {
    white-space: normal;
    word-break: break-word;
  }

  /* Fix card and grid content overflow */
  .warm-card,
  .faq-item {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* Prevent form inputs from overflowing */
  input, textarea, select {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Fix ALL grid layouts on small screens — force single column */
  .about-grid,
  .order-grid,
  .contact-grid,
  .features-grid,
  .testimonials-grid,
  .testimonials-grid .testimonials-grid-inner,
  .previous-works-grid,
  .book-preview-grid,
  .hero-grid,
  .book-details-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  /* Center the book cover image on mobile */
  .hero-grid > div:last-child,
  .book-preview-grid > div:first-child {
    display: flex !important;
    justify-content: center;
  }

  /* Ensure image-with-deco is centered on mobile */
  .image-with-deco {
    max-width: 100%;
    margin: 0 auto;
  }

  .image-with-deco img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  /* Prevent deco-border from overflowing */
  .image-with-deco .deco-border {
    width: 3rem;
    height: 3rem;
  }

  /* Fix flex layouts that may overflow */
  .flex.items-center.gap-4,
  .flex.items-start.gap-4,
  .flex.items-start.gap-6,
  .flex.items-start.gap-8 {
    flex-wrap: wrap;
  }

  /* Ensure page sections don't overflow */
  .max-w-4xl,
  .max-w-7xl,
  .max-w-3xl,
  .max-w-2xl,
  .max-w-lg {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Fix text sizes that may be too large */
  .text-4xl { font-size: 1.75rem; }
  .text-5xl { font-size: 2rem; }
  .text-6xl { font-size: 2.25rem; }
  .text-7xl { font-size: 2rem; line-height: 1.2; }
  .text-8xl { font-size: 2.25rem; line-height: 1.2; }

  /* Fix hero text on very small screens */
  .hero-heading {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

  /* Fix book cover image sizing on mobile */
  .book-cover-img {
    width: 14rem !important;
    max-width: 80%;
    margin: 0 auto;
    display: block;
  }

  /* Ensure the About the Book text section is properly spaced */
  .book-preview-grid > div:last-child {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Fix the features cards spacing */
  .features-grid .warm-card,
  .testimonials-grid .warm-card {
    padding: 1.25rem;
  }

  /* Fix section padding on mobile */
  section.py-16, section.py-20 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  /* Fix long text in track order results */
  #result-email,
  #result-name {
    word-break: break-all;
    max-width: 60%;
    text-align: right;
  }

  /* Fix order total display */
  #order-total {
    font-size: 1.5rem !important;
  }

  /* Ensure hero buttons stack on mobile */
  .hero-fade-in.flex.flex-col.sm\:flex-row {
    flex-direction: column !important;
    align-items: center;
  }

  /* Prevent ornamental divider from overflowing */
  .ornament-divider {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Tablet adjustments */
@media (min-width: 641px) and (max-width: 767px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem;
  }
}

/* Medium screen tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  .hero-section h1 {
    font-size: 2.75rem !important;
  }

  .book-preview-grid {
    grid-template-columns: 1fr !important;
  }

  .about-grid {
    grid-template-columns: 1fr !important;
  }

  .book-details-grid {
    grid-template-columns: 1fr !important;
  }

  .book-cover-img {
    width: 16rem;
  }

  .author-image {
    width: 18rem;
    height: 20rem;
  }

  .page-header-title {
    font-size: 2rem !important;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .order-grid {
    grid-template-columns: 1fr !important;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  .content-grid-2 {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================
   FINAL MOBILE ALIGNMENT & RESPONSIVE FIXES
   ============================================ */

@media (max-width: 767px) {
  /* 1. Global Centering & Spacing */
  .container, .max-w-7xl, .max-w-4xl, .max-w-3xl, .max-w-2xl {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  /* 2. Fix Grid Layouts - Ensure Single Column & No Overflow */
  .hero-grid, .features-grid, .book-preview-grid, .testimonials-grid, 
  .about-grid, .book-details-grid, .order-grid, .contact-grid, .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    width: 100% !important;
    padding: 0 !important;
  }

  /* 3. Hero Section Alignment */
  .hero-section {
    text-align: center !important;
    padding-top: 5rem !important;
    padding-bottom: 3rem !important;
  }
  
  .hero-section .flex-col.sm\:flex-row {
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
  }

  .hero-section h1 {
    font-size: 2.25rem !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-section .max-w-lg {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* 4. Book Cover & Images Centering */
  .book-cover-wrapper {
    margin: 2rem auto 0 !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }

  .book-cover-img {
    max-width: 12rem !important;
    height: auto !important;
  }

  .image-with-deco {
    display: flex !important;
    justify-content: center !important;
    margin: 0 auto !important;
  }

  /* 5. Typography Fixes */
  .section-title, .page-header-title {
    font-size: 1.85rem !important;
    text-align: center !important;
    word-break: break-word !important;
  }

  .section-subtitle, .page-header-subtitle {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* 6. Animations Fix - Prevent horizontal shift */
  .animate-on-scroll {
    transform: none !important;
    transition: opacity 0.6s ease-out !important;
  }
  
  .animate-on-scroll.visible {
    transform: none !important;
    opacity: 1 !important;
  }

  /* 7. Navbar Adjustments */
  .navbar-content {
    padding: 0 1rem !important;
  }

  /* 8. Card Padding */
  .warm-card {
    padding: 1.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 9. Order Form Alignment */
  .order-summary {
    width: 100% !important;
    margin-top: 2rem !important;
  }

  /* 10. Footer Centering */
  .footer-grid > div {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    gap: 1rem !important;
  }
}
