/**
 * Aone Tarot - World-Class Theme (Dark + Light)
 */

* { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
html { scroll-padding-top: 5rem; }
@media (max-width: 639px) {
  html { scroll-padding-top: 4.5rem; }
}

body { transition: background-color 0.35s ease, color 0.35s ease; }

/* Comfortable reading rhythm (all pages) */
main {
  line-height: 1.65;
  font-size: 1.0625rem;
}
@media (min-width: 768px) {
  main { line-height: 1.72; }
}
main h1, main h2, main h3, main h4 {
  line-height: 1.25;
  letter-spacing: 0.02em;
}

/* ========== DARK MODE — cool cosmic ink (high contrast body copy) ========== */
body[data-theme="dark"] {
  --bg-page: #070a10;
  --bg-elevated: #0e131c;
  --bg-card: #121923;
  --bg-sidebar: #080c12;
  --text-primary: #f2f5f9;
  --text-secondary: #c4ced9;
  --text-muted: #94a3b8;
  --accent: #e0c766;
  --accent-muted: #b89c4a;
  --accent-dim: rgba(224, 199, 102, 0.14);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(224, 199, 102, 0.28);
  --dm-readable: var(--text-secondary);
  --dm-muted: var(--text-muted);
}
body[data-theme="dark"],
body[data-theme="dark"] main {
  background-color: var(--bg-page) !important;
  color: var(--text-primary) !important;
}
body[data-theme="dark"] .text-gray-400 { color: var(--text-secondary) !important; }
body[data-theme="dark"] .text-gray-500 { color: var(--text-muted) !important; }
body[data-theme="dark"] .text-gray-300 { color: #e2e8f0 !important; }
body[data-theme="dark"] section .text-gray-400,
body[data-theme="dark"] footer .text-gray-400 { color: var(--text-secondary) !important; }
body[data-theme="dark"] section .text-gray-500,
body[data-theme="dark"] footer .text-gray-500 { color: var(--text-muted) !important; }
body[data-theme="dark"] .text-slate-100,
body[data-theme="dark"] .text-slate-200 { color: var(--text-primary) !important; }
body[data-theme="dark"] .text-slate-300,
body[data-theme="dark"] .text-slate-400 { color: var(--text-secondary) !important; }
body[data-theme="dark"] .text-slate-500,
body[data-theme="dark"] .text-slate-600 { color: var(--text-muted) !important; }
body[data-theme="dark"] .blog-prose { color: #e2e7ee !important; }
body[data-theme="dark"] .blog-excerpt { color: #c5cdd8 !important; }
body[data-theme="dark"] .blog-listing-subtitle,
body[data-theme="dark"] .blog-listing-card-excerpt,
body[data-theme="dark"] .blog-related-date { color: #c5cdd8 !important; }
body[data-theme="dark"] h1,
body[data-theme="dark"] h2,
body[data-theme="dark"] .font-cinzel:not(.text-cosmic-accent) {
  color: var(--text-primary) !important;
}

/* ========== LIGHT MODE — warm paper (clearly different from dark; WCAG-friendly) ========== */
body[data-theme="light"] {
  --bg-page: #f5f1ea;
  --bg-elevated: #ebe5db;
  --bg-card: #fffefb;
  --bg-card-hover: #f0ebe3;
  --text-primary: #0c1222;
  --text-secondary: #2a3a4f;
  --text-muted: #4d5f73;
  --accent: #6b4e0a;
  --accent-hover: #523c08;
  --accent-bright: #9a7618;
  --border: rgba(12, 18, 34, 0.1);
  --border-strong: rgba(12, 18, 34, 0.16);
}

body.theme-light,
body[data-theme="light"],
body[data-theme="light"] main {
  background-color: var(--bg-page) !important;
  color: var(--text-primary) !important;
}
.theme-light-nav {
  background-color: rgba(255, 254, 251, 0.94) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(12, 18, 34, 0.08) !important;
  box-shadow: 0 1px 0 0 rgba(12, 18, 34, 0.06);
}

body[data-theme="light"] .text-gray-400,
body[data-theme="light"] .text-gray-300 { color: var(--text-secondary) !important; }
body[data-theme="light"] .text-gray-500 { color: var(--text-muted) !important; }
body[data-theme="light"] .text-gray-600 { color: var(--text-muted) !important; }
body[data-theme="light"] .text-white { color: var(--text-primary) !important; }
body[data-theme="light"] .text-slate-100,
body[data-theme="light"] .text-slate-200 { color: var(--text-primary) !important; }
body[data-theme="light"] .text-slate-300,
body[data-theme="light"] .text-slate-400 { color: var(--text-secondary) !important; }
body[data-theme="light"] .text-slate-500,
body[data-theme="light"] .text-slate-600 { color: var(--text-muted) !important; }

body[data-theme="light"] .bg-cosmic-primary,
body[data-theme="light"] .bg-\[#0B0B2E\] { background-color: var(--bg-page) !important; }
body[data-theme="light"] .bg-cosmic-secondary,
body[data-theme="light"] .bg-cosmic-secondary\/30,
body[data-theme="light"] .bg-cosmic-secondary\/50 { background-color: var(--bg-card) !important; }
body[data-theme="light"] .bg-cosmic-primary\/50,
body[data-theme="light"] .bg-cosmic-primary\/60,
body[data-theme="light"] .bg-cosmic-primary\/70,
body[data-theme="light"] .bg-cosmic-primary\/90 { background-color: rgba(255, 252, 247, 0.94) !important; }
body[data-theme="light"] .bg-cosmic-accent\/20 { background-color: rgba(139, 105, 20, 0.12) !important; }
body[data-theme="light"] .bg-cosmic-accent\/10 { background-color: rgba(139, 105, 20, 0.07) !important; }
body[data-theme="light"] .bg-cosmic-accent\/25 { background-color: rgba(139, 105, 20, 0.14) !important; }

body[data-theme="light"] .border-cosmic-accent\/20,
body[data-theme="light"] .border-cosmic-accent\/30,
body[data-theme="light"] .border-cosmic-accent\/40,
body[data-theme="light"] .border-cosmic-accent\/50 { border-color: var(--border) !important; }

body[data-theme="light"] input,
body[data-theme="light"] textarea,
body[data-theme="light"] select {
  background-color: #ffffff !important;
  color: var(--text-primary) !important;
  border-color: var(--border-strong) !important;
}
body[data-theme="light"] input::placeholder,
body[data-theme="light"] textarea::placeholder { color: var(--text-muted) !important; }

body[data-theme="light"] nav {
  background-color: var(--bg-page) !important;
  border-color: var(--border-strong) !important;
}
body[data-theme="light"] nav a,
body[data-theme="light"] nav span { color: var(--text-primary) !important; }
body[data-theme="light"] nav a:hover { color: var(--accent) !important; }
body[data-theme="light"] nav .text-cosmic-accent { color: var(--accent) !important; }
body[data-theme="light"] #mobile-menu { background-color: var(--bg-card) !important; border-color: var(--border) !important; }
body[data-theme="light"] #mobile-menu a,
body[data-theme="light"] #mobile-menu span { color: var(--text-primary) !important; }

body[data-theme="light"] .service-card,
body[data-theme="light"] .review-card,
body[data-theme="light"] .blog-card,
body[data-theme="light"] .empty-state,
body[data-theme="light"] .stat-card,
body[data-theme="light"] .booking-card {
  background-color: var(--bg-card) !important;
  border-color: var(--border) !important;
  color: var(--text-primary) !important;
}
body[data-theme="light"] .service-card h3 {
  color: var(--accent) !important;
}
body[data-theme="light"] .service-card .text-cosmic-accent,
body[data-theme="light"] .service-card a.bg-cosmic-accent\/20 {
  color: var(--accent) !important;
  background-color: rgba(139, 105, 20, 0.1) !important;
  border-color: var(--border) !important;
}
body[data-theme="light"] .service-card a.bg-cosmic-accent\/20:hover {
  background-color: var(--accent) !important;
  color: #fff !important;
}
body[data-theme="light"] .service-card p,
body[data-theme="light"] .review-card p,
body[data-theme="light"] .blog-card p { color: var(--text-secondary) !important; }
body[data-theme="light"] .service-card:hover,
body[data-theme="light"] .review-card:hover,
body[data-theme="light"] .blog-card:hover {
  background-color: var(--bg-card-hover) !important;
  border-color: var(--border-strong) !important;
}

body[data-theme="light"] .dashboard-nav,
body[data-theme="light"] aside nav { background-color: var(--bg-card) !important; border-color: var(--border) !important; }
body[data-theme="light"] .dashboard-nav a,
body[data-theme="light"] aside nav a { color: var(--text-secondary) !important; }
body[data-theme="light"] .dashboard-nav a:hover,
body[data-theme="light"] aside nav a:hover { color: var(--accent) !important; background-color: rgba(139, 105, 20, 0.08) !important; }

body[data-theme="light"] table th,
body[data-theme="light"] table td { color: var(--text-primary) !important; border-color: var(--border) !important; }
body[data-theme="light"] thead { border-color: var(--border) !important; }

body[data-theme="light"] .text-red-400,
body[data-theme="light"] .text-red-300 { color: #b91c1c !important; }
body[data-theme="light"] .text-green-400,
body[data-theme="light"] .text-green-500 { color: #15803d !important; }
body[data-theme="light"] .text-amber-400 { color: #b45309 !important; }
body[data-theme="light"] .text-blue-400 { color: #1d4ed8 !important; }

/* If <main> has no rendered children (wrong bootstrap / PHP abort), still show layout noise */
body > main {
  min-height: 50vh;
}

/* Hero: structural fallback when Tailwind (CDN) does not load — otherwise only
   absolute children => section height 0 => blank page below fixed nav. */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Hero - ensure cosmic image displays beautifully */
.hero-section img[alt="Cosmic wisdom"] {
  animation: hero-image-fade 1.2s ease-out;
}
@keyframes hero-image-fade {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

/* Hero content - always readable, background doesn't affect text */
.hero-content {
  position: relative;
  z-index: 10;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.4);
}
.hero-headline > span:first-of-type {
  color: #ffffff;
}
.hero-headline > span.drop-shadow-glow {
  color: #ffd166;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 4px 24px rgba(0,0,0,0.5), 0 0 20px rgba(255,209,102,0.3);
}
.hero-headline span {
  text-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 4px 20px rgba(0,0,0,0.5);
}
.hero-tagline {
  color: #FFFFFF !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.5);
}
.hero-content .btn-hero-primary,
.hero-content .btn-hero-secondary {
  text-shadow: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Hero logo - medium size, floating */
.hero-logo-float {
  animation: logo-float 4s ease-in-out infinite;
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Hero light mode - clean white veil + high-contrast type */
body[data-theme="light"] .hero-section .hero-overlay {
  background: linear-gradient(to bottom, rgba(255, 253, 248, 0.94) 0%, rgba(245, 241, 234, 0.9) 45%, rgba(255, 253, 248, 0.96) 100%) !important;
}
body[data-theme="light"] .hero-content,
body[data-theme="light"] .hero-tagline,
body[data-theme="light"] .hero-section h1,
body[data-theme="light"] .hero-section p {
  color: var(--text-primary) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}
body[data-theme="light"] .hero-headline > span:first-of-type {
  color: var(--text-primary) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}
body[data-theme="light"] .hero-headline > span.drop-shadow-glow,
body[data-theme="light"] .hero-section .text-cosmic-accent {
  color: var(--accent) !important;
  text-shadow: none !important;
}
body[data-theme="light"] .hero-section a.border-cosmic-accent,
body[data-theme="light"] .hero-section .btn-hero-secondary {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  background-color: transparent !important;
}
body[data-theme="light"] .hero-section .btn-hero-secondary:hover {
  background-color: rgba(139, 105, 20, 0.1) !important;
}
body[data-theme="light"] .hero-section .scroll-indicator,
body[data-theme="light"] .hero-section .scroll-indicator svg {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}
body[data-theme="light"] .hero-section .stars { opacity: 0.2; }

/* Offers & Coupons ads - light mode */
body[data-theme="light"] .offer-ad,
body[data-theme="light"] .coupon-ad {
  background: var(--bg-card) !important;
  border-color: var(--border-strong) !important;
  color: var(--text-primary) !important;
}
body[data-theme="light"] .offer-ad:hover,
body[data-theme="light"] .coupon-ad:hover {
  background: var(--bg-card-hover) !important;
  border-color: var(--accent) !important;
}
body[data-theme="light"] .offer-ad .text-gray-400,
body[data-theme="light"] .coupon-ad .text-gray-400 { color: var(--text-secondary) !important; }

/* CTA section - light mode */
body[data-theme="light"] .cta-box,
body[data-theme="light"] .bg-gradient-to-br.from-cosmic-secondary,
body[data-theme="light"] .bg-gradient-to-br.from-\[\#2A0F4D\] {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%) !important;
  border-color: var(--border-strong) !important;
}
body[data-theme="light"] .cta-box h2,
body[data-theme="light"] .cta-box p { color: var(--text-primary) !important; }
body[data-theme="light"] section .text-gray-400,
body[data-theme="light"] section .text-gray-300,
body[data-theme="light"] section .text-gray-500 { color: var(--text-secondary) !important; }
body[data-theme="light"] section h2,
body[data-theme="light"] section h3:not(.text-cosmic-accent) { color: var(--text-primary) !important; }
body[data-theme="light"] span.bg-cosmic-accent\/20,
body[data-theme="light"] .bg-cosmic-accent\/20.text-cosmic-accent {
  background-color: rgba(139, 105, 20, 0.12) !important;
  color: var(--accent) !important;
}
body[data-theme="light"] a.bg-cosmic-accent\/20,
body[data-theme="light"] a.bg-cosmic-accent\/30 {
  background-color: rgba(139, 105, 20, 0.12) !important;
  color: var(--accent) !important;
  border-color: var(--border-strong) !important;
}
body[data-theme="light"] a.bg-cosmic-accent\/20:hover,
body[data-theme="light"] a.bg-cosmic-accent\/30:hover {
  background-color: var(--accent) !important;
  color: #fff !important;
}

/* Payment page - light mode */
body[data-theme="light"] .bg-cosmic-primary\/30,
body[data-theme="light"] .bg-cosmic-primary\/50 { background-color: rgba(255, 252, 247, 0.96) !important; }

/* Section headings - ensure light mode */
body[data-theme="light"] h1, body[data-theme="light"] h2 { color: var(--text-primary) !important; }
body[data-theme="light"] h3:not(.text-cosmic-accent) { color: var(--text-primary) !important; }
body[data-theme="light"] .font-cinzel { color: inherit; }
body[data-theme="light"] .text-cosmic-accent { color: var(--accent-bright) !important; }

/* Gradient section backgrounds */
body[data-theme="light"] .bg-gradient-to-b.from-cosmic-secondary\/50 { background: linear-gradient(to bottom, var(--bg-card), transparent) !important; }

/* Light mode - badges, pills, inline elements */
body[data-theme="light"] .bg-cosmic-primary\/60,
body[data-theme="light"] .bg-cosmic-accent\/30 { background-color: rgba(255, 252, 247, 0.96) !important; }
body[data-theme="light"] .bg-cosmic-accent\/90 { background-color: var(--accent) !important; }
body[data-theme="light"] .bg-cosmic-accent\/90,
body[data-theme="light"] span.bg-cosmic-accent\/90 { color: #fff !important; }
/* Light mode - ensure footer and all sections readable */
body[data-theme="light"] footer { background-color: var(--bg-elevated) !important; border-color: var(--border) !important; }
body[data-theme="light"] footer h3,
body[data-theme="light"] footer h4,
body[data-theme="light"] footer p,
body[data-theme="light"] footer li { color: var(--text-primary) !important; }
body[data-theme="light"] footer .text-cosmic-accent,
body[data-theme="light"] footer a { color: var(--accent) !important; }
body[data-theme="light"] footer .text-gray-400,
body[data-theme="light"] footer .text-gray-500 { color: var(--text-secondary) !important; }

/* Light mode - offers grid (replace dark purple gradients) */
body[data-theme="light"] #offers .grid > a {
  background: linear-gradient(145deg, #ffffff 0%, var(--bg-elevated) 100%) !important;
  border-color: var(--border-strong) !important;
}
body[data-theme="light"] #offers .grid > a h3 { color: var(--accent) !important; }
body[data-theme="light"] #offers .grid > a .text-gray-400,
body[data-theme="light"] #offers .grid > a .text-gray-500 { color: var(--text-secondary) !important; }

/* Light mode - reviews: inner cards + CTA column */
body[data-theme="light"] #reviews [class*="from-cosmic-primary"].bg-gradient-to-br,
body[data-theme="light"] #reviews .border-2.border-cosmic-accent\/30.bg-gradient-to-br {
  background: linear-gradient(to bottom right, var(--bg-card), var(--bg-elevated)) !important;
  border-color: var(--border-strong) !important;
}
body[data-theme="light"] #reviews .review-card > div.h-full {
  background: var(--bg-card) !important;
  background-image: none !important;
}
body[data-theme="light"] #reviews .review-card .text-white { color: var(--text-primary) !important; }
body[data-theme="light"] #reviews .review-card .text-gray-300,
body[data-theme="light"] #reviews .review-card .text-gray-400 { color: var(--text-secondary) !important; }
body[data-theme="light"] .reviews-nav {
  background-color: var(--bg-card) !important;
  color: var(--accent) !important;
  border-color: var(--border-strong) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
}

/* Light mode - notification dropdown */
body[data-theme="light"] #nav-notif-panel {
  background-color: var(--bg-card) !important;
  border-color: var(--border-strong) !important;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12) !important;
}
body[data-theme="light"] #nav-notif-panel [class*="border-white"] { border-color: var(--border) !important; }
body[data-theme="light"] #nav-notif-panel [class*="bg-black"] { background-color: var(--bg-elevated) !important; }
body[data-theme="light"] #nav-notif-panel .text-white { color: var(--text-primary) !important; }
body[data-theme="light"] #nav-notif-panel .text-gray-400 { color: var(--text-secondary) !important; }
body[data-theme="light"] #nav-notif-panel .text-gray-500 { color: var(--text-muted) !important; }

/* ========== Cards & Interactions ========== */
.service-card { transition: all 0.3s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -15px rgba(255, 209, 102, 0.25); }
body[data-theme="light"] .service-card:hover { box-shadow: 0 20px 40px -15px rgba(139, 105, 20, 0.18); }

.review-card, .blog-card { transition: all 0.3s ease; }
.review-card:hover { transform: translateY(-2px); }
/* Review cards - star fill for rating */
.review-card .opacity-25 svg { fill: currentColor; opacity: 0.3; }
.review-card .opacity-100 svg { fill: currentColor; }
.blog-card:hover { box-shadow: 0 10px 30px -10px rgba(255, 209, 102, 0.2); }

.btn-glow, a.bg-cosmic-accent, button[type="submit"] { transition: all 0.25s ease; }
.btn-glow:hover, a.bg-cosmic-accent:hover, button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 209, 102, 0.4);
}

/* ========== Glow & Accents (Divine Gold #FFD166, #D4AF37, #F5C96A) ========== */
.drop-shadow-glow { filter: drop-shadow(0 0 12px rgba(255, 209, 102, 0.5)) drop-shadow(0 0 24px rgba(212, 175, 55, 0.4)); }
.nav-glow-border { box-shadow: 0 1px 0 0 rgba(198, 168, 85, 0.22); }
.btn-hero-primary:hover, .btn-hero-secondary:hover { box-shadow: 0 0 35px rgba(255, 209, 102, 0.5); }

/* ========== Star Particles (Golden sparkles) ========== */
.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255,209,102,0.8), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 90px 40px, rgba(255,209,102,0.5), transparent),
    radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 160px 120px, rgba(212,175,55,0.6), transparent),
    radial-gradient(2px 2px at 200px 50px, rgba(255,209,102,0.4), transparent),
    radial-gradient(1.5px 1.5px at 250px 150px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 300px 90px, rgba(245,201,106,0.5), transparent),
    radial-gradient(2px 2px at 350px 200px, rgba(255,209,102,0.3), transparent);
  background-size: 400px 250px;
  background-repeat: repeat;
  animation: stars-twinkle 4s ease-in-out infinite;
  opacity: 0.9;
}
@keyframes stars-twinkle {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* ========== Animations ========== */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fade-in 0.6s ease-out forwards; }

@keyframes pulse-glow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.5; }
}
.animate-pulse-glow { animation: pulse-glow 2.5s ease-in-out infinite; }

/* ========== Form & Focus ========== */
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(198, 168, 85, 0.38);
}
body[data-theme="light"] input:focus,
body[data-theme="light"] textarea:focus,
body[data-theme="light"] select:focus {
  box-shadow: 0 0 0 2px rgba(139, 105, 20, 0.35);
}

/* ========== Reviews Carousel - Left-to-right, responsive ========== */
.reviews-carousel-wrapper { position: relative; }
.reviews-carousel::-webkit-scrollbar { display: none; }
.reviews-carousel { -ms-overflow-style: none; scrollbar-width: none; }
.reviews-carousel { scroll-behavior: smooth; }
@media (max-width: 1023px) {
  .reviews-carousel { padding-bottom: 0.5rem; margin-bottom: 0; }
  .reviews-nav { display: none !important; }
}
/* Touch-friendly horizontal scroll on mobile */
.reviews-carousel {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
}
.reviews-carousel .review-card { scroll-snap-align: center; min-height: 200px; }
/* Prevent horizontal overflow on small screens */
@media (max-width: 639px) {
  #reviews { padding-left: 0.75rem; padding-right: 0.75rem; }
  .reviews-carousel { margin-left: -0.5rem; margin-right: -0.5rem; padding-left: 0.5rem; padding-right: 0.5rem; }
}
.stat-card, .booking-card { transition: all 0.2s; }
.stat-card:hover { transform: translateY(-2px); }
.booking-card:hover { border-color: rgba(255, 209, 102, 0.5); }
#messages-container > div { animation: fade-in 0.2s ease-out; }

/* ========== Chat - Advanced UI ========== */
.chat-box { -webkit-overflow-scrolling: touch; }
.chat-msg { }
.chat-msg-enter {
  animation: chat-msg-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes chat-msg-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-bubble-inner {
  padding: 0.7rem 1rem 0.65rem;
  border-radius: 1.15rem;
  word-break: break-word;
  box-shadow: 0 4px 20px rgba(0,0,0,0.22);
  max-width: 100%;
}
.chat-bubble-own {
  background: linear-gradient(145deg, rgba(212,175,55,0.32) 0%, rgba(255,209,102,0.22) 100%);
  border: 1px solid rgba(212,175,55,0.45);
  border-bottom-right-radius: 0.35rem;
}
.chat-bubble-other {
  background: rgba(35, 20, 60, 0.72);
  border: 1px solid rgba(212,175,55,0.22);
  border-bottom-left-radius: 0.35rem;
  backdrop-filter: blur(8px);
}
body[data-theme="light"] .chat-bubble-own {
  background: linear-gradient(145deg, rgba(180,83,9,0.22) 0%, rgba(245,201,106,0.2) 100%) !important;
  border-color: var(--border-strong) !important;
}
body[data-theme="light"] .chat-bubble-other {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: var(--border) !important;
}
.chat-img { max-height: 280px; cursor: pointer; }
.chat-audio { max-width: 100%; }
.chat-text { line-height: 1.5; }
.chat-meta { opacity: 0.8; }
.chat-sender { color: inherit; }
.chat-shell .chat-message-area {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(75, 46, 131, 0.15), transparent 55%);
}
.chat-live-header {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}
.chat-tool-btn:active { transform: scale(0.98); }
.chat-send-btn:active { transform: scale(0.98); }
.typing-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 209, 102, 0.9);
  animation: typing-bounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}
@media (max-width: 639px) {
  .chat-bubble-inner { max-width: 100% !important; }
  .chat-img { max-height: 220px; }
}

/* Header notifications (FB-style dropdown) */
.nav-notif-dropdown {
  box-shadow: 0 12px 48px rgba(0,0,0,0.45), 0 0 1px rgba(255,255,255,0.08);
}
.notif-feed-row {
  transition: background-color 0.15s ease;
}
.notif-feed-row:hover {
  background-color: rgba(212, 175, 55, 0.08);
}
.notif-feed-row.notif-unread {
  background-color: rgba(59, 130, 246, 0.08);
}
body[data-theme="light"] .notif-feed-row.notif-unread {
  background-color: rgba(59, 130, 246, 0.12);
}
body[data-theme="light"] .nav-notif-dropdown {
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.safe-area-pb { padding-bottom: env(safe-area-inset-bottom, 0); }
.safe-area-inset { padding-left: env(safe-area-inset-left, 0); padding-right: env(safe-area-inset-right, 0); }
.safe-area-top { padding-top: env(safe-area-inset-top, 0); }
/* Global touch-friendly & responsive */
button, a, input, select, textarea, label { touch-action: manipulation; }
@media (max-width: 639px) {
  .max-w-7xl { padding-left: 0.75rem; padding-right: 0.75rem; }
}

/* ========== Dashboard Page Types & Tabs ========== */
.dashboard-page-header { animation: fade-in 0.6s ease-out; }
.dashboard-tabs { animation: fade-in 0.6s ease-out 0.1s both; }
.dashboard-tab-panel { animation: fade-in 0.6s ease-out 0.15s both; }
.dashboard-tab { transition: all 0.2s ease; }
.dashboard-tab:hover { transform: translateY(-1px); }
@media (max-width: 639px) {
  .dashboard-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .dashboard-tabs::-webkit-scrollbar { display: none; }
  .dashboard-tab { flex-shrink: 0; }
}

/* ========== Responsive Dashboard & Sidebar ========== */
.dashboard-nav { transition: all 0.3s; }
.dashboard-nav a { transition: all 0.2s; } 
.dashboard-sidebar .dashboard-nav { background: transparent; }
@media (min-width: 1024px) {
  .dashboard-sidebar .dashboard-nav { background: transparent; }
}
/* Mobile: ensure drawer is above content */
.dashboard-sidebar { will-change: transform; }
@media (max-width: 1023px) {
  .dashboard-sidebar .dashboard-nav { background: rgba(20, 26, 36, 0.98); }
  body[data-theme="light"] .dashboard-sidebar .dashboard-nav { background: rgba(255, 255, 255, 0.98) !important; }
}
/* Touch-friendly: min tap target 44px */
.dashboard-nav a, .admin-sidebar nav a { min-height: 44px; }
/* Responsive tables: horizontal scroll on small screens */
@media (max-width: 767px) {
  .overflow-x-auto { -webkit-overflow-scrolling: touch; }
  table { font-size: 0.875rem; }
  table th, table td { padding: 0.75rem 0.5rem !important; }
}
/* Safe area for mobile FAB (notch/home indicator) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .pb-24 { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
}

/* Admin services - responsive touch targets */
@media (max-width: 640px) {
  .admin-sidebar nav a { padding: 0.75rem 1rem; }
}

/* ========== Admin panel (shares site tokens; light = same as public light) ========== */
body.admin-app[data-theme="dark"] main {
  background: transparent;
}
body.admin-app[data-theme="light"],
body.admin-app[data-theme="light"].bg-cosmic-primary {
  background-color: var(--bg-page) !important;
  color: var(--text-primary) !important;
}
body.admin-app[data-theme="light"] aside.admin-sidebar {
  background-color: var(--bg-card) !important;
  border-right-color: var(--border-strong) !important;
  box-shadow: 1px 0 0 var(--border);
}
body.admin-app[data-theme="light"] aside.admin-sidebar [class*="border-white"] {
  border-color: var(--border) !important;
}
body.admin-app[data-theme="light"] aside.admin-sidebar .font-cinzel.text-cosmic-accent {
  color: var(--accent) !important;
}
body.admin-app[data-theme="light"] aside.admin-sidebar .text-slate-300,
body.admin-app[data-theme="light"] aside.admin-sidebar .text-slate-500,
body.admin-app[data-theme="light"] aside.admin-sidebar .text-slate-400 {
  color: var(--text-secondary) !important;
}
body.admin-app[data-theme="light"] aside.admin-sidebar a.border-cosmic-accent\/20,
body.admin-app[data-theme="light"] aside.admin-sidebar a.border-cosmic-accent {
  border-color: var(--border) !important;
}
body.admin-app[data-theme="light"] aside.admin-sidebar nav a.text-cosmic-accent-bright,
body.admin-app[data-theme="light"] aside.admin-sidebar nav a.bg-cosmic-accent\/15 {
  color: var(--accent) !important;
  background-color: rgba(139, 105, 20, 0.12) !important;
  border-color: rgba(139, 105, 20, 0.25) !important;
}
body.admin-app[data-theme="light"] aside.admin-sidebar nav a.text-slate-300:hover {
  background-color: var(--bg-card-hover) !important;
  color: var(--accent) !important;
}
body.admin-app[data-theme="light"] #admin-theme-toggle {
  color: var(--text-secondary) !important;
  border-color: var(--border-strong) !important;
  background: var(--bg-elevated) !important;
}
body.admin-app[data-theme="light"] #admin-theme-toggle:hover {
  color: var(--accent) !important;
  border-color: rgba(139, 105, 20, 0.35) !important;
}
body.admin-app[data-theme="light"] #admin-menu-btn {
  background-color: var(--bg-card) !important;
  border-color: var(--border-strong) !important;
  color: var(--accent) !important;
}
body.admin-app[data-theme="light"] #admin-sidebar-overlay {
  background-color: rgba(15, 23, 42, 0.35) !important;
}
body.admin-app[data-theme="light"] main .bg-cosmic-secondary,
body.admin-app[data-theme="light"] main .border-cosmic-accent\/20,
body.admin-app[data-theme="light"] main [class*="border-cosmic-accent"] {
  border-color: var(--border) !important;
}
body.admin-app[data-theme="light"] main .bg-cosmic-secondary\/40,
body.admin-app[data-theme="light"] main .bg-cosmic-secondary {
  background-color: var(--bg-card) !important;
}
body.admin-app[data-theme="light"] main .text-white { color: var(--text-primary) !important; }
body.admin-app[data-theme="light"] main .text-gray-300,
body.admin-app[data-theme="light"] main .text-gray-400 { color: var(--text-secondary) !important; }

/* ========== Blog - Magazine-Style UI/UX ========== */

.blog-article {
  overflow-x: hidden;
  max-width: 100%;
}

/* Single post hero */
.blog-hero {
  position: relative;
  min-height: clamp(18rem, 45vh, 40rem);
  max-height: none;
  display: flex;
  align-items: flex-end;
  padding: 5rem 1rem 2.25rem;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .blog-hero {
    min-height: clamp(22rem, 52vh, 40rem);
    padding: 6rem 2rem 3.5rem;
  }
}
.blog-hero-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.blog-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,15,22,0.97) 0%, rgba(12,15,22,0.55) 42%, transparent 72%);
}
.blog-hero-content {
  position: relative;
  z-index: 2;
  max-width: 48rem;
  margin: 0 auto;
  width: 100%;
}
.blog-breadcrumb {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.75rem;
  line-height: 1.45;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.blog-breadcrumb a { color: rgba(255,255,255,0.8); }
.blog-breadcrumb a:hover { color: #D4AF37; }
.blog-breadcrumb-sep { margin: 0 0.35rem; opacity: 0.5; }
.blog-title {
  font-family: Cinzel, serif;
  font-size: clamp(1.65rem, 4.2vw, 3.25rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.blog-meta {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.75rem;
}
.blog-meta-dot { margin: 0 0.5rem; opacity: 0.6; }
.blog-meta-updated {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}
.blog-toc-link--active {
  color: #FFD166 !important;
  font-weight: 600;
}
.blog-toc-level3.blog-toc-link--active {
  border-left-color: rgba(212, 175, 55, 0.55);
}

/* Blog layout: article grid + reading progress */
.blog-read-indicator {
  position: fixed;
  top: 3.5rem;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 45;
  pointer-events: none;
  background: rgba(255, 209, 102, 0.12);
}
@media (min-width: 640px) {
  .blog-read-indicator { top: 4rem; }
}
.blog-read-indicator::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--blog-read-pct, 0%);
  background: linear-gradient(90deg, #B8860B, #FFD166);
  transition: width 0.12s ease-out;
}
.blog-article-inner {
  padding-bottom: 3rem;
  max-width: min(92rem, 100%);
  margin: 0 auto;
}
.blog-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: min(52rem, 100%);
  margin: 0 auto;
  width: 100%;
  min-width: 0;
}
@media (min-width: 1024px) {
  .blog-body-grid {
    max-width: min(88rem, 100%);
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
    padding: 0 0.5rem;
  }
  /* When there is no TOC, one wide column (avoids empty sidebar eating width) */
  .blog-body-grid--full {
    grid-template-columns: 1fr !important;
    max-width: min(65rem, 100%) !important;
  }
}
@media (min-width: 1280px) {
  .blog-body-grid:not(.blog-body-grid--full) {
    max-width: min(92rem, 100%);
  }
  .blog-body-grid--full {
    max-width: min(70rem, 100%) !important;
  }
}
.blog-toc-sidebar { display: none; }
@media (min-width: 1024px) {
  .blog-toc-sidebar { display: block; }
}
.blog-toc-sticky {
  position: sticky;
  top: 5.25rem;
  padding: 1rem 0;
  border-left: 2px solid rgba(212, 175, 55, 0.35);
  padding-left: 1rem;
}
.blog-toc-heading {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 0.75rem;
}
.blog-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: min(70vh, 28rem);
  overflow-y: auto;
  scrollbar-width: thin;
}
.blog-toc-link {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.15s ease;
}
.blog-toc-link:hover,
.blog-toc-link:focus-visible {
  color: #FFD166;
}
.blog-toc-level3 {
  padding-left: 0.65rem;
  border-left: 2px solid rgba(212, 175, 55, 0.2);
  margin-left: 0.15rem;
}
.blog-disclaimer {
  margin-top: 2.5rem;
  padding: 1.125rem 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #94a3b8;
  background: rgba(42, 15, 77, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 0.75rem;
}
.blog-disclaimer strong { color: #cbd5e1; }
.blog-share-row { flex-wrap: wrap; align-items: center; }
.blog-copy-link {
  border: none;
  cursor: pointer;
  background: rgba(212, 175, 55, 0.15);
  color: #D4AF37;
}
.blog-copy-link.blog-copy-done {
  background: rgba(34, 197, 94, 0.25);
  color: #86efac;
}
.blog-back-top {
  position: fixed;
  right: 1rem;
  bottom: 1.5rem;
  z-index: 40;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.35), rgba(42, 15, 77, 0.9));
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #FFD166;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.blog-back-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.blog-back-top:hover { color: #fff; }

/* Blog body & content */
.blog-body {
  padding: 1.25rem 0 3rem;
  max-width: 48rem;
  margin: 0 auto;
  min-width: 0;
  width: 100%;
}
@media (min-width: 640px) {
  .blog-body {
    padding: 2rem 0 4rem;
  }
}
@media (min-width: 1024px) {
  .blog-body {
    max-width: none;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }
}
.blog-content-wrapper {
  width: 100%;
  min-width: 0;
}
.blog-toc-nav--mobile .blog-toc-link {
  padding: 0.55rem 0.35rem;
  border-radius: 0.375rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.blog-excerpt {
  font-size: 1.0625rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  font-weight: 500;
  max-width: min(72ch, 100%);
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
}
@media (min-width: 640px) {
  .blog-excerpt { font-size: 1.125rem; }
}
.blog-body-grid--full .blog-excerpt,
.blog-body-grid--full .blog-prose,
.blog-body-grid--full .blog-disclaimer {
  margin-left: auto;
  margin-right: auto;
}

/* Blog prose — editorial typography (consistent spacing, no “editor gaps”) */
.blog-prose {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #e2e8f0;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  max-width: min(72ch, 100%);
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
@media (min-width: 1024px) {
  .blog-prose { font-size: 1.085rem; line-height: 1.78; }
}
.blog-prose > *:first-child { margin-top: 0; }
.blog-prose > *:last-child { margin-bottom: 0; }
/* Generic wrappers from rich text editors */
.blog-prose div { margin: 0; }
.blog-prose p {
  margin: 0 0 1.125em;
  text-align: left;
  hyphens: auto;
  -webkit-hyphens: auto;
}
@media (min-width: 768px) {
  .blog-prose p { text-align: justify; }
}
.blog-prose p:last-child { margin-bottom: 0; }
.blog-prose br + br { display: none; }
.blog-prose > p:first-child::first-letter {
  font-family: Cinzel, serif;
  font-size: 3.25rem;
  float: left;
  line-height: 0.92;
  margin-right: 0.45rem;
  margin-top: 0.12rem;
  color: #D4AF37;
  font-weight: 600;
}
.blog-prose h1, .blog-prose h2, .blog-prose h3, .blog-prose h4 {
  font-family: Cinzel, serif;
  color: #FFD166;
  scroll-margin-top: 6rem;
  margin-top: 2.25rem;
  margin-bottom: 0.65rem;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0.02em;
}
.blog-prose > h2:first-child,
.blog-prose > h3:first-child,
.blog-prose > h4:first-child { margin-top: 0; }
.blog-prose h1 { font-size: 1.625rem; }
.blog-prose h2 { font-size: 1.4rem; }
.blog-prose h3 { font-size: 1.2rem; }
.blog-prose h4 { font-size: 1.0625rem; color: #F5C96A; }
.blog-prose ul, .blog-prose ol {
  margin: 1rem 0 1.125em;
  padding-left: 1.5rem;
}
.blog-prose li {
  margin-bottom: 0.4em;
  line-height: 1.65;
}
.blog-prose li > p { margin: 0.35em 0; }
.blog-prose a {
  color: #FFD166;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  word-break: break-word;
}
.blog-prose a:hover { color: #F5C96A; }
.blog-prose img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.75rem auto;
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: 0 12px 40px -18px rgba(0, 0, 0, 0.55);
}
.blog-prose iframe,
.blog-prose video,
.blog-prose embed {
  max-width: 100%;
}
.blog-prose figure {
  margin: 1.75rem 0;
}
.blog-prose figcaption {
  font-size: 0.875rem;
  line-height: 1.45;
  color: #94a3b8;
  margin-top: 0.6rem;
  text-align: center;
  font-style: italic;
}
.blog-prose hr {
  border: 0;
  height: 1px;
  margin: 2rem 0;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.45), transparent);
}
.blog-prose blockquote {
  border-left: 4px solid #D4AF37;
  padding: 0.25rem 0 0.25rem 1.15rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #C8B6FF;
  font-size: 1.045rem;
  line-height: 1.65;
}
.blog-prose blockquote p { margin: 0 0 0.65em; }
.blog-prose blockquote p:last-child { margin-bottom: 0; }
.blog-prose .blog-prose-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.75rem 0;
  border-radius: 0.5rem;
  border: 1px solid rgba(212, 175, 55, 0.15);
}
.blog-prose table {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.9375rem;
}
.blog-prose th, .blog-prose td {
  border: 1px solid rgba(212, 175, 55, 0.22);
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: top;
}
.blog-prose th {
  background: rgba(212, 175, 55, 0.12);
  color: #FFD166;
  font-weight: 600;
}
.blog-prose pre, .blog-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: rgba(42, 15, 77, 0.55);
  border-radius: 0.5rem;
  font-size: 0.88em;
}
.blog-prose code {
  padding: 0.15rem 0.4rem;
  word-break: break-word;
}
.blog-prose pre {
  padding: 1rem 1.15rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  line-height: 1.55;
  border: 1px solid rgba(212, 175, 55, 0.18);
}
.blog-prose pre code { padding: 0; background: none; font-size: inherit; }
.blog-prose mark {
  background: linear-gradient(120deg, rgba(212, 175, 55, 0.38), rgba(198, 168, 85, 0.22));
  color: inherit;
  padding: 0.08em 0.22em;
  border-radius: 0.2em;
}
.blog-prose sub,
.blog-prose sup {
  font-size: 0.75em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
.blog-prose sup { top: -0.35em; }
.blog-prose sub { bottom: -0.2em; }

/* Blog footer - share & back */
.blog-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(212,175,55,0.2);
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .blog-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
}
.blog-share { display: flex; align-items: center; gap: 0.5rem; }
.blog-share-label {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-right: 0.25rem;
}
.blog-share-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(212,175,55,0.15);
  color: #D4AF37;
  transition: all 0.2s;
}
.blog-share-btn:hover {
  background: rgba(212,175,55,0.3);
  color: #FFD166;
  transform: translateY(-2px);
}
.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #D4AF37;
  font-weight: 500;
  transition: color 0.2s;
}
.blog-back:hover { color: #FFD166; }

/* Related posts */
.blog-related {
  padding: 3rem 1rem 4rem;
  background: linear-gradient(to top, rgba(42,15,77,0.3), transparent);
}
.blog-related-inner { max-width: 72rem; margin: 0 auto; }
.blog-related-title {
  font-family: Cinzel, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #D4AF37;
  margin-bottom: 1.5rem;
}
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}
@media (min-width: 640px) {
  .blog-related-grid { gap: 1.5rem; }
}
.blog-related-card {
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(212,175,55,0.2);
  background: rgba(42,15,77,0.3);
  transition: all 0.3s;
}
.blog-related-card:hover {
  border-color: rgba(212,175,55,0.5);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(212,175,55,0.2);
}
.blog-related-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.blog-related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.blog-related-card:hover .blog-related-image img { transform: scale(1.08); }
.blog-related-content { padding: 1rem 1.25rem; }
.blog-related-card-title {
  font-family: Cinzel, serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-related-date {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Blog listing page */
.blog-listing-hero {
  padding: 4rem 1rem 3rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(42,15,77,0.4) 0%, transparent 100%);
}
.blog-listing-hero-inner { max-width: 40rem; margin: 0 auto; }
.blog-listing-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: rgba(212,175,55,0.2);
  color: #D4AF37;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 9999px;
  margin-bottom: 1rem;
}
.blog-listing-title {
  font-family: Cinzel, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.blog-listing-subtitle {
  font-size: 1.125rem;
  color: #94a3b8;
}

/* Featured post — editorial hero card */
.blog-listing-featured-wrap {
  position: relative;
}
.blog-listing-featured {
  display: grid;
  gap: 0;
  border-radius: 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.32);
  background: rgba(20, 26, 36, 0.92);
  text-decoration: none;
  color: inherit;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 28px 60px -28px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(0, 0, 0, 0.25);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
@media (min-width: 900px) {
  .blog-listing-featured {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: stretch;
    min-height: 20rem;
  }
}
.blog-listing-featured:hover {
  border-color: rgba(255, 209, 102, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 36px 80px -32px rgba(198, 168, 85, 0.18),
    0 0 0 1px rgba(212, 175, 55, 0.12);
  transform: translateY(-3px);
}
.blog-listing-featured-media {
  position: relative;
  min-height: 14rem;
  overflow: hidden;
}
@media (min-width: 900px) {
  .blog-listing-featured-media { min-height: 100%; }
}
.blog-listing-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}
.blog-listing-featured:hover .blog-listing-featured-media img {
  transform: scale(1.05);
}
.blog-listing-featured-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(198, 168, 85, 0.12) 55%, transparent 85%);
  mix-blend-mode: screen;
  opacity: 0.6;
}
.blog-listing-featured-copy {
  padding: 1.75rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
}
@media (min-width: 640px) {
  .blog-listing-featured-copy { padding: 2.25rem 2.5rem; }
}
.blog-listing-featured-kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c6a855;
}
.blog-listing-featured-title {
  font-family: Cinzel, serif;
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.18;
  margin: 0;
  transition: color 0.25s ease;
}
.blog-listing-featured:hover .blog-listing-featured-title {
  color: #FFD166;
}
.blog-listing-featured-excerpt {
  font-size: 1.02rem;
  line-height: 1.65;
  color: #b4c0d4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-listing-featured-meta {
  font-size: 0.875rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.blog-listing-meta-dot { opacity: 0.55; }
.blog-listing-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #D4AF37;
  transition: color 0.2s ease, gap 0.2s ease;
}
.blog-listing-featured:hover .blog-listing-featured-cta {
  color: #FFD166;
  gap: 0.55rem;
}

.blog-listing-section-title {
  font-family: Cinzel, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0 0 0.25rem;
}
.blog-listing-section-sub {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0;
}

.blog-listing-content {
  padding: 0 1rem 4rem;
  max-width: 72rem;
  margin: 0 auto;
}
.blog-listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}
.blog-listing-card {
  display: block;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(212,175,55,0.2);
  background: rgba(42,15,77,0.25);
  transition: all 0.4s;
}
.blog-listing-card:hover {
  border-color: rgba(212,175,55,0.5);
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -20px rgba(212,175,55,0.25);
}
.blog-listing-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.blog-listing-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.blog-listing-card:hover .blog-listing-card-image img { transform: scale(1.1); }
.blog-listing-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,11,46,0.6), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.blog-listing-card:hover .blog-listing-card-overlay { opacity: 1; }
.blog-listing-card-body { padding: 1.5rem; }
.blog-listing-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.blog-listing-card-date {
  font-size: 0.8125rem;
  color: #D4AF37;
}
.blog-listing-card-read {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
  flex-shrink: 0;
}
.blog-listing-card-title {
  font-family: Cinzel, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.blog-listing-card:hover .blog-listing-card-title { color: #FFD166; }
.blog-listing-card-excerpt {
  font-size: 0.9375rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-listing-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #D4AF37;
  transition: gap 0.2s;
}
.blog-listing-card:hover .blog-listing-card-link { gap: 0.5rem; color: #FFD166; }

/* Blog empty state */
.blog-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(42,15,77,0.2);
  border-radius: 1.25rem;
  border: 1px solid rgba(212,175,55,0.2);
}
.blog-empty-icon {
  color: rgba(212,175,55,0.4);
  margin-bottom: 1rem;
}
.blog-empty-title {
  font-family: Cinzel, serif;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.blog-empty-text { color: #94a3b8; margin-bottom: 1.5rem; }
.blog-empty-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: rgba(212,175,55,0.2);
  color: #D4AF37;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s;
}
.blog-empty-btn:hover { background: rgba(212,175,55,0.35); color: #FFD166; }

/* Light mode blog */
body[data-theme="light"] .blog-prose,
body[data-theme="light"] .blog-excerpt { color: var(--text-secondary) !important; }
body[data-theme="light"] .blog-prose h1,
body[data-theme="light"] .blog-prose h2,
body[data-theme="light"] .blog-prose h3,
body[data-theme="light"] .blog-prose h4 { color: var(--accent) !important; }
body[data-theme="light"] .blog-prose a { color: var(--accent) !important; }
body[data-theme="light"] .blog-prose blockquote { color: var(--text-secondary) !important; border-left-color: var(--accent) !important; }

/* Light mode - blog listing & hero (readable on white) */
body[data-theme="light"] .blog-hero-overlay {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.82) 42%, transparent 72%) !important;
}
body[data-theme="light"] .blog-title,
body[data-theme="light"] .blog-listing-title,
body[data-theme="light"] .blog-related-title,
body[data-theme="light"] .blog-listing-card-title,
body[data-theme="light"] .blog-related-card-title,
body[data-theme="light"] .blog-empty-title {
  color: var(--text-primary) !important;
  text-shadow: none !important;
}
body[data-theme="light"] .blog-breadcrumb,
body[data-theme="light"] .blog-breadcrumb a { color: var(--text-secondary) !important; }
body[data-theme="light"] .blog-meta { color: var(--text-muted) !important; }
body[data-theme="light"] .blog-listing-hero {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, transparent 100%) !important;
}
body[data-theme="light"] .blog-related {
  background: linear-gradient(to top, var(--bg-elevated), transparent) !important;
}
body[data-theme="light"] .blog-listing-card,
body[data-theme="light"] .blog-related-card {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
}
body[data-theme="light"] .blog-listing-card-title { color: var(--text-primary) !important; }
body[data-theme="light"] .blog-listing-card:hover .blog-listing-card-title { color: var(--accent) !important; }
body[data-theme="light"] .blog-empty {
  background: var(--bg-elevated) !important;
  border-color: var(--border) !important;
}
body[data-theme="light"] .blog-empty-text { color: var(--text-secondary) !important; }
body[data-theme="light"] .blog-prose pre,
body[data-theme="light"] .blog-prose code {
  background: var(--bg-elevated) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border);
}
body[data-theme="light"] .blog-read-indicator { background: rgba(15, 23, 42, 0.07) !important; }
body[data-theme="light"] .blog-toc-heading { color: var(--text-muted) !important; }
body[data-theme="light"] .blog-toc-link { color: var(--text-secondary) !important; }
body[data-theme="light"] .blog-toc-link:hover { color: var(--accent) !important; }
body[data-theme="light"] .blog-toc-sticky { border-left-color: var(--border-strong) !important; }
body[data-theme="light"] .blog-disclaimer {
  background: var(--bg-elevated) !important;
  border-color: var(--border) !important;
  color: var(--text-secondary) !important;
}
body[data-theme="light"] .blog-disclaimer strong { color: var(--text-primary) !important; }
body[data-theme="light"] .blog-back-top {
  background: linear-gradient(145deg, #ffffff, var(--bg-elevated)) !important;
  border-color: var(--border-strong) !important;
  color: var(--accent) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}
body[data-theme="light"] .blog-prose { color: var(--text-secondary) !important; }
body[data-theme="light"] .blog-prose figcaption { color: var(--text-muted) !important; }
body[data-theme="light"] .blog-prose h4 { color: var(--accent) !important; }

/* ========== Static pages: About, Privacy Policy, Terms ========== */
.content-page {
  max-width: min(46rem, 100%);
  margin: 0 auto;
  padding: 2.75rem 1rem 4.5rem;
}
@media (min-width: 1024px) {
  .content-page { max-width: min(52rem, 100%); padding-left: 1.5rem; padding-right: 1.5rem; }
}
.content-page-hero {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.content-page h1 {
  font-family: Cinzel, serif;
  font-size: clamp(1.85rem, 4.2vw, 2.35rem);
  font-weight: 700;
  color: #FFD166;
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
  line-height: 1.2;
}
.content-page .content-lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #cbd5e1;
  max-width: 36rem;
  margin: 0 auto;
}
.content-page .content-meta {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-top: 1.1rem;
}
.content-page section { margin-bottom: 2rem; }
.content-page h2 {
  font-family: Cinzel, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #D4AF37;
  margin: 2.25rem 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  letter-spacing: 0.03em;
}
.content-page p,
.content-page li {
  font-size: 0.96875rem;
  line-height: 1.74;
  color: #e2e8f0;
}
.content-page ul, .content-page ol {
  padding-left: 1.35rem;
  margin: 0.65rem 0 1rem;
}
.content-page li { margin-bottom: 0.45rem; }
.content-page a {
  color: #FFD166;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.content-page a:hover { color: #F5C96A; }
.content-page .content-cta {
  margin-top: 2.25rem;
  padding: 1.35rem 1.5rem;
  text-align: center;
  background: rgba(42, 15, 77, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 0.85rem;
}
.content-page .content-cta p { margin: 0 0 1rem; font-size: 0.9375rem; }
body[data-theme="light"] .content-page h1,
body[data-theme="light"] .content-page h2 { color: var(--accent) !important; border-bottom-color: var(--border) !important; }
body[data-theme="light"] .content-page .content-lead,
body[data-theme="light"] .content-page p,
body[data-theme="light"] .content-page li { color: var(--text-secondary) !important; }
body[data-theme="light"] .content-page .content-meta { color: var(--text-muted) !important; }
body[data-theme="light"] .content-page-hero { border-bottom-color: var(--border) !important; }
body[data-theme="light"] .content-page .content-cta {
  background: var(--bg-elevated) !important;
  border-color: var(--border) !important;
}

/* ========== About page — premium editorial layout ========== */
.about-premium {
  overflow-x: hidden;
}
.about-hero {
  position: relative;
  padding: 4.5rem 1.25rem 3.5rem;
  text-align: center;
  background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(42, 53, 68, 0.42) 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(198, 168, 85, 0.09) 0%, transparent 45%),
    linear-gradient(180deg, #151a24 0%, #0c0f16 55%, #080a10 100%);
  border-bottom: 1px solid rgba(198, 168, 85, 0.2);
}
@media (min-width: 640px) {
  .about-hero { padding: 5.5rem 2rem 4rem; }
}
.about-hero-auras {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(2px 2px at 10% 20%, rgba(255,209,102,0.35), transparent),
    radial-gradient(2px 2px at 90% 30%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 50% 80%, rgba(212,175,55,0.3), transparent);
  background-size: 280px 220px, 320px 200px, 240px 180px;
  opacity: 0.45;
}
.about-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin: 0 auto;
}
.about-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #F5C96A;
  margin: 0 0 1.25rem;
}
.about-hero-eyebrow-icon { opacity: 0.95; display: flex; }
.about-hero-title {
  font-family: Cinzel, serif;
  font-size: clamp(2rem, 5.5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: #fff;
  margin: 0 0 1.25rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.about-hero-lead {
  font-size: 1.0625rem;
  line-height: 1.72;
  color: #cbd5e1;
  margin: 0 0 2rem;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}
.about-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
}
.about-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  min-height: 48px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2B0B4F;
  text-decoration: none;
  border-radius: 0.75rem;
  background: linear-gradient(95deg, #C97A1F, #E8A63A 45%, #F7C85A);
  border: 1px solid rgba(255, 215, 120, 0.55);
  box-shadow: 0 8px 28px rgba(232, 166, 58, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.about-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(232, 166, 58, 0.38);
}
.about-btn-primary-lg { padding-left: 2rem; padding-right: 2rem; }
.about-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.5rem;
  min-height: 48px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FFD166;
  text-decoration: none;
  border-radius: 0.75rem;
  border: 2px solid rgba(255, 209, 102, 0.45);
  background: rgba(11, 11, 46, 0.35);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.about-btn-ghost:hover {
  background: rgba(255, 209, 102, 0.1);
  border-color: rgba(255, 209, 102, 0.65);
}
.about-btn-text {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 209, 102, 0.85);
  text-decoration: none;
}
.about-btn-text:hover { color: #FFD166; }

.about-trust-strip {
  background: rgba(42, 15, 77, 0.55);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}
.about-trust-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .about-trust-inner {
    grid-template-columns: repeat(3, 1fr);
    padding: 1.5rem 1.5rem;
    gap: 2rem;
  }
}
.about-trust-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  justify-content: flex-start;
}
@media (min-width: 768px) {
  .about-trust-item { justify-content: center; }
}
.about-trust-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  color: #FFD166;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.25);
}
.about-trust-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.35;
  color: #e2e8f0;
}
.about-trust-text strong { color: #fff; font-weight: 600; }
.about-trust-sub { font-size: 0.75rem; color: #94a3b8; font-weight: 400; }

.about-shell {
  max-width: 56rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 3.5rem;
}
@media (min-width: 640px) {
  .about-shell { padding: 3.5rem 2rem 4rem; }
}

.about-mission { margin-bottom: 3rem; }
.about-mission-card {
  position: relative;
  padding: 2rem 1.5rem 2.25rem;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgba(42, 15, 77, 0.65) 0%, rgba(11, 11, 46, 0.85) 100%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: 0 20px 50px -25px rgba(0, 0, 0, 0.5);
}
@media (min-width: 640px) {
  .about-mission-card { padding: 2.5rem 2.25rem 2.75rem; }
}
.about-mission-quote {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  color: rgba(212, 175, 55, 0.15);
  pointer-events: none;
}
.about-section-label {
  font-family: Cinzel, serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #F5C96A;
  margin: 0 0 0.75rem;
}
.about-mission-text {
  font-size: 1.0625rem;
  line-height: 1.78;
  color: #e2e8f0;
  margin: 0;
  max-width: 42rem;
}

.about-section-head { margin-bottom: 2rem; text-align: center; }
.about-heading-xl {
  font-family: Cinzel, serif;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #FFD166;
  margin: 0 0 0.75rem;
}
.about-section-deck {
  font-size: 1rem;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0 auto;
  max-width: 36rem;
}

.about-service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .about-service-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
.about-service-card {
  padding: 1.5rem 1.35rem;
  border-radius: 1rem;
  background: rgba(26, 26, 62, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.18);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.about-service-card:hover {
  border-color: rgba(255, 209, 102, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -20px rgba(255, 209, 102, 0.15);
}
.about-service-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  color: #FFD166;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.22);
}
.about-service-title {
  font-family: Cinzel, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}
.about-service-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0;
}

.about-services-block { margin-bottom: 3.5rem; }
.about-process { margin-bottom: 3.5rem; }
.about-process-title { text-align: center; margin-bottom: 2rem; }
.about-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
@media (min-width: 900px) {
  .about-steps {
    flex-direction: row;
    gap: 1.5rem;
  }
}
.about-step {
  flex: 1;
  display: flex;
  gap: 1rem;
  padding: 1.35rem 1.15rem;
  border-radius: 1rem;
  background: rgba(11, 11, 46, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.12);
  margin-bottom: 1rem;
}
@media (min-width: 900px) {
  .about-step { flex-direction: column; margin-bottom: 0; text-align: center; align-items: center; }
}
.about-step-num {
  flex-shrink: 0;
  font-family: Cinzel, serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 209, 102, 0.85);
  opacity: 0.9;
}
.about-step-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.4rem;
}
.about-step-body p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0;
}

.about-values { margin-bottom: 0; }
.about-value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 768px) {
  .about-value-grid { grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
}
.about-value-pill {
  padding: 1.25rem 1.15rem;
  border-radius: 0.85rem;
  background: rgba(42, 15, 77, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.16);
}
.about-value-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FFD166;
  margin-bottom: 0.6rem;
}
.about-value-pill p {
  font-size: 0.875rem;
  line-height: 1.62;
  color: #cbd5e1;
  margin: 0;
}
.about-value-pill a {
  color: #FFD166;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.about-value-pill a:hover { color: #F5C96A; }

.about-cta-panel {
  margin-top: 2rem;
  padding: 3.5rem 1.25rem 4rem;
  background: linear-gradient(165deg, #1a2230 0%, #0c0f16 42%, #141c28 100%);
  border-top: 1px solid rgba(198, 168, 85, 0.22);
  position: relative;
  overflow: hidden;
}
.about-cta-panel::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50%;
  max-width: 28rem;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.about-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}
.about-cta-title {
  font-family: Cinzel, serif;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  margin: 0 0 0.75rem;
}
.about-cta-deck {
  font-size: 1.015rem;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0 0 1.75rem;
}
.about-cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

/* About — light mode */
body[data-theme="light"] .about-hero {
  background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(139, 105, 20, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
  border-bottom-color: var(--border);
}
body[data-theme="light"] .about-hero-title { color: var(--text-primary); text-shadow: none; }
body[data-theme="light"] .about-hero-lead { color: var(--text-secondary); }
body[data-theme="light"] .about-hero-eyebrow { color: var(--accent); }
body[data-theme="light"] .about-btn-ghost {
  color: var(--accent);
  border-color: rgba(139, 105, 20, 0.35);
  background: rgba(255, 255, 255, 0.6);
}
body[data-theme="light"] .about-btn-text { color: var(--accent); }
body[data-theme="light"] .about-trust-strip {
  background: var(--bg-elevated);
  border-bottom-color: var(--border);
}
body[data-theme="light"] .about-trust-text { color: var(--text-secondary); }
body[data-theme="light"] .about-trust-text strong { color: var(--text-primary); }
body[data-theme="light"] .about-trust-sub { color: var(--text-muted); }
body[data-theme="light"] .about-trust-icon {
  color: var(--accent);
  background: rgba(139, 105, 20, 0.1);
  border-color: var(--border);
}
body[data-theme="light"] .about-mission-card {
  background: linear-gradient(145deg, #ffffff 0%, var(--bg-elevated) 100%);
  border-color: var(--border);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}
body[data-theme="light"] .about-mission-quote { color: rgba(139, 105, 20, 0.12); }
body[data-theme="light"] .about-section-label { color: var(--accent); }
body[data-theme="light"] .about-mission-text { color: var(--text-secondary); }
body[data-theme="light"] .about-heading-xl { color: var(--accent); }
body[data-theme="light"] .about-section-deck { color: var(--text-muted); }
body[data-theme="light"] .about-service-card {
  background: var(--bg-card);
  border-color: var(--border);
}
body[data-theme="light"] .about-service-card:hover {
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}
body[data-theme="light"] .about-service-icon {
  color: var(--accent);
  background: rgba(139, 105, 20, 0.08);
  border-color: var(--border);
}
body[data-theme="light"] .about-service-title { color: var(--text-primary); }
body[data-theme="light"] .about-service-desc { color: var(--text-muted); }
body[data-theme="light"] .about-step {
  background: var(--bg-elevated);
  border-color: var(--border);
}
body[data-theme="light"] .about-step-num { color: var(--accent); }
body[data-theme="light"] .about-step-title { color: var(--text-primary); }
body[data-theme="light"] .about-step-body p { color: var(--text-muted); }
body[data-theme="light"] .about-value-pill {
  background: var(--bg-card);
  border-color: var(--border);
}
body[data-theme="light"] .about-value-tag { color: var(--accent); }
body[data-theme="light"] .about-value-pill p { color: var(--text-secondary); }
body[data-theme="light"] .about-cta-panel {
  background: linear-gradient(165deg, var(--bg-elevated) 0%, #ffffff 55%, var(--bg-card) 100%);
  border-top-color: var(--border);
}
body[data-theme="light"] .about-cta-title { color: var(--text-primary); }
body[data-theme="light"] .about-cta-deck { color: var(--text-secondary); }

/* ========== Homepage — service cards & detail modal ========== */
.home-service-desc-preview {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: 3;
}

.service-detail-dialog {
  width: calc(100vw - 1.5rem);
  max-width: 36rem;
  padding: 0;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 1rem;
  background: #141a24;
  color: #e2e8f0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65);
}
@media (min-width: 768px) {
  .service-detail-dialog {
    max-width: 52rem;
  }
}
.service-detail-dialog::backdrop {
  background: rgba(12, 15, 22, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.service-detail-dialog__inner {
  position: relative;
  max-height: min(92vh, 44rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
}
@media (min-width: 768px) {
  .service-detail-dialog__inner {
    max-height: min(88vh, 36rem);
  }
}
.service-detail-dialog__layout {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
@media (min-width: 768px) {
  .service-detail-dialog__layout {
    flex-direction: row;
    align-items: stretch;
  }
}
.service-detail-dialog__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 9999px;
  background: rgba(12, 15, 22, 0.75);
  color: #f1f5f9;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.service-detail-dialog__close:hover {
  background: rgba(212, 175, 55, 0.25);
  color: #ffd166;
}
.service-detail-dialog__media {
  aspect-ratio: 16 / 9;
  background: #0c0f16;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .service-detail-dialog__media {
    width: 42%;
    max-width: 360px;
    aspect-ratio: auto;
    min-height: 240px;
    align-self: stretch;
  }
}
.service-detail-dialog__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) {
  .service-detail-dialog__media img {
    min-height: 100%;
  }
}
.service-detail-dialog__body {
  padding: 1.25rem 1.35rem 1.35rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-width: 0;
}
.service-detail-dialog__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}
.service-detail-dialog__title {
  margin: 0 0 0.5rem;
  font-family: Cinzel, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #d4af37;
  line-height: 1.2;
}
.service-detail-dialog__price {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fbbf24;
}
.service-detail-dialog__tagline {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #94a3b8;
  font-style: italic;
}
.service-detail-dialog__section {
  margin: 0 0 1.1rem;
}
.service-detail-dialog__section-title {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d4af37;
}
.service-detail-dialog__highlights {
  margin: 0;
  padding: 0 0 0 1.15rem;
  list-style: disc;
  color: #e2e8f0;
  font-size: 0.9rem;
  line-height: 1.55;
}
.service-detail-dialog__highlights li {
  margin: 0.35rem 0;
  padding-left: 0.15rem;
}
.service-detail-dialog__highlights li::marker {
  color: rgba(212, 175, 55, 0.85);
}
.service-detail-dialog__about-heading {
  margin-top: 0.15rem;
}
.service-detail-dialog__desc {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.service-detail-dialog__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
@media (min-width: 400px) {
  .service-detail-dialog__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}
.service-detail-dialog__book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  color: #2b0b4f;
  background: linear-gradient(90deg, #c97a1f, #e8a63a, #f7c85a);
  border: 1px solid rgba(255, 215, 120, 0.45);
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}
.service-detail-dialog__book:hover {
  filter: brightness(1.05);
  box-shadow: 0 8px 24px rgba(232, 166, 58, 0.35);
}
.service-detail-dialog__secondary {
  flex: 1;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid rgba(212, 175, 55, 0.45);
  background: transparent;
  color: #d4af37;
  transition: background 0.15s ease;
}
.service-detail-dialog__secondary:hover {
  background: rgba(212, 175, 55, 0.12);
}

body[data-theme="light"] .service-detail-dialog {
  background: var(--bg-card) !important;
  border-color: var(--border-strong) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 25px 50px -12px rgba(12, 18, 34, 0.18);
}
body[data-theme="light"] .service-detail-dialog__close {
  background: var(--bg-card) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border) !important;
}
body[data-theme="light"] .service-detail-dialog__title {
  color: var(--accent) !important;
}
body[data-theme="light"] .service-detail-dialog__price {
  color: #9a3412 !important;
}
body[data-theme="light"] .service-detail-dialog__desc {
  color: #475569;
}
body[data-theme="light"] .service-detail-dialog__tagline {
  color: #64748b;
}
body[data-theme="light"] .service-detail-dialog__highlights {
  color: #334155;
}
body[data-theme="light"] .service-detail-dialog__section-title {
  color: #865a0c;
}
body[data-theme="light"] .service-detail-dialog__media {
  background: #f1f5f9;
}
body[data-theme="light"] .service-detail-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

/* ========== Homepage — how to book, help, FAQ ========== */
.home-guide__placeholder {
  min-height: 200px;
}
.home-faq__summary::-webkit-details-marker {
  display: none;
}
.home-faq__summary::marker {
  display: none;
  content: '';
}
.home-faq__item .home-faq__summary:focus {
  outline: 2px solid rgba(212, 175, 55, 0.45);
  outline-offset: 2px;
}
.home-faq__item .home-faq__summary:focus:not(:focus-visible) {
  outline: none;
}
body[data-theme="light"] .home-faq__item {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(139, 105, 20, 0.22);
}
body[data-theme="light"] .home-help-card {
  background: rgba(255, 255, 255, 0.7);
}
body[data-theme="light"] .home-guide__video-shell {
  border-color: rgba(139, 105, 20, 0.25);
}

/* Guide / Help / FAQ — explicit contrast both themes */
body[data-theme="dark"] .home-faq__summary {
  color: var(--text-primary) !important;
}
body[data-theme="dark"] .home-faq__item > div:last-child,
body[data-theme="dark"] .home-faq__item .text-gray-400 {
  color: var(--text-secondary) !important;
}
body[data-theme="dark"] .home-faq__item a.text-cosmic-accent {
  color: var(--accent) !important;
}
body[data-theme="dark"] .home-faq__item strong.text-gray-300 {
  color: var(--text-primary) !important;
}
body[data-theme="dark"] .home-help-card h3,
body[data-theme="dark"] .home-guide h3.text-cosmic-accent {
  color: var(--accent) !important;
}
body[data-theme="dark"] .home-help-card .text-white,
body[data-theme="dark"] .home-guide .text-white,
body[data-theme="dark"] .home-guide .font-semibold.text-white {
  color: var(--text-primary) !important;
}
body[data-theme="dark"] .home-help-card p,
body[data-theme="dark"] .home-guide .text-gray-400,
body[data-theme="dark"] .home-guide__placeholder .text-gray-400 {
  color: var(--text-secondary) !important;
}
body[data-theme="dark"] .home-guide__step .font-semibold.text-white {
  color: var(--text-primary) !important;
}
body[data-theme="light"] .home-faq__summary {
  color: var(--text-primary) !important;
}
body[data-theme="light"] .home-faq__item > div:last-child,
body[data-theme="light"] .home-faq__item .text-gray-400 {
  color: var(--text-secondary) !important;
}
body[data-theme="light"] .home-faq__item strong.text-gray-300,
body[data-theme="light"] .home-faq__item strong {
  color: var(--text-primary) !important;
}
body[data-theme="light"] .home-faq__item a.text-cosmic-accent {
  color: var(--accent) !important;
  font-weight: 600;
}
body[data-theme="light"] .home-help-card h3 {
  color: var(--text-primary) !important;
}
body[data-theme="light"] .home-help-card p,
body[data-theme="light"] .home-help-card .text-gray-400 {
  color: var(--text-secondary) !important;
}
body[data-theme="light"] .home-guide h2,
body[data-theme="light"] .home-guide h3:not(.text-cosmic-accent),
body[data-theme="light"] .home-guide .text-white,
body[data-theme="light"] .home-guide .font-semibold.text-white {
  color: var(--text-primary) !important;
}
body[data-theme="light"] .home-guide h3.text-cosmic-accent {
  color: var(--accent) !important;
}
body[data-theme="light"] .home-guide .text-gray-400,
body[data-theme="light"] .home-help .text-gray-400,
body[data-theme="light"] #help .text-gray-400,
body[data-theme="light"] #faq .text-gray-400 {
  color: var(--text-secondary) !important;
}
body[data-theme="light"] .home-guide__placeholder .font-cinzel.text-lg {
  color: var(--text-primary) !important;
}
body[data-theme="light"] .home-guide__placeholder .text-gray-400 {
  color: var(--text-secondary) !important;
}

/* Modal: tie to theme tokens for consistent readability */
body[data-theme="dark"] .service-detail-dialog {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-strong) !important;
}
body[data-theme="dark"] .service-detail-dialog__title {
  color: var(--accent) !important;
}
body[data-theme="dark"] .service-detail-dialog__desc,
body[data-theme="dark"] .service-detail-dialog__tagline {
  color: var(--text-secondary) !important;
}
body[data-theme="dark"] .service-detail-dialog__highlights {
  color: var(--text-primary) !important;
}
body[data-theme="dark"] .service-detail-dialog__section-title {
  color: var(--accent) !important;
}
body[data-theme="dark"] .service-detail-dialog__price {
  color: #fbbf24 !important;
}
body[data-theme="light"] .service-detail-dialog__desc {
  color: var(--text-secondary) !important;
}
body[data-theme="light"] .service-detail-dialog__tagline {
  color: var(--text-muted) !important;
}
body[data-theme="light"] .service-detail-dialog__highlights {
  color: var(--text-primary) !important;
}
body[data-theme="light"] .service-detail-dialog__section-title {
  color: var(--accent) !important;
}
body[data-theme="dark"] .service-detail-dialog__eyebrow {
  color: var(--text-muted) !important;
}
body[data-theme="light"] .service-detail-dialog__eyebrow {
  color: var(--text-muted) !important;
}
body[data-theme="light"] .service-detail-dialog__secondary {
  color: var(--accent) !important;
  border-color: rgba(107, 78, 10, 0.35) !important;
}
