/* ============================================================
   LIGHT THEME — Warm Gold & Ruby (acsva9.com theme match)
   Ruby: #8B6914  |  Gold: #D4AF37  |  Amber: #E7B84B  |  Cream: #FFF9E6
   Sirf `html[data-theme="light"]` pe apply hota hai
   ============================================================ */

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -36px) scale(1.06); }
  66% { transform: translate(-18px, 24px) scale(0.96); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-28px, 28px) scale(1.07); }
  66% { transform: translate(18px, -22px) scale(0.94); }
}
@keyframes float3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(32px, 18px) scale(1.08); }
}
@keyframes float4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-22px, -18px) scale(1.08); }
}
@keyframes shine {
  0% { transform: translateX(-120%) skewX(-12deg); }
  100% { transform: translateX(220%) skewX(-12deg); }
}
@keyframes prismShift {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(12deg); }
}
@keyframes pulse {
  50% { opacity: 0.5; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes lightBlobShift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(20px, -24px) scale(1.04); }
  66%  { transform: translate(-16px, 18px) scale(0.98); }
  100% { transform: translate(0, 0) scale(1); }
}

/* ============================================================
   ROOT LIGHT OVERRIDES — WARM GOLD/RUBY
   ============================================================ */
html[data-theme="light"] {
  --bg2: #FFF9E6;
  --gold: #8B6914;              /* ruby — primary accent */
  --gold-2: #B98728;            /* deep gold */
  --gold-3: #D4AF37;            /* gold */
  --accent-cyan: #E7B84B;       /* amber */
  --text-primary: #3a2812;      /* warm dark brown */
  --text-muted: #7a5a2e;        /* warm brown */
  --text-faint: #a08560;        /* light warm brown */
  --prism-gradient: linear-gradient(100deg, #8B6914 0%, #B98728 42%, #D4AF37 100%);
  --prism-text-gradient: linear-gradient(92deg, #8B6914 0%, #B98728 35%, #D4AF37 70%, #E7B84B 100%);

  /* Safe fallback tokens */
  --background: #FFF9E6;
  --foreground: #3a2812;
  --card: rgba(255, 251, 240, 0.78);
  --card-foreground: #3a2812;
  --primary: #8B6914;
  --primary-foreground: #ffffff;
  --secondary: #B98728;
  --accent: #E7B84B;
  --muted: #7a5a2e;
  --muted-foreground: #a08560;
  --border: rgba(212, 175, 55, 0.35);
  --ring: rgba(139, 105, 20, 0.3);
}

/* ============================================================
   BODY BG
   ============================================================ */
html[data-theme="light"],
html[data-theme="light"] body {
  background-color: transparent !important;
  color: var(--text-primary) !important;
  font-family: ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, sans-serif !important;
  position: relative;
  width: 100%;
  max-width: 100%;
}

/* ============================================================
   MESH-BG + BLOBS — Light mode warm gold backdrop
   ============================================================ */
html[data-theme="light"] .mesh-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
  max-width: 100vw;
  max-height: 100vh;
}

/* ✅ Blobs ko warm-tint karo (pink/mint/peach → warm gold/brown) */
html[data-theme="light"] .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px) sepia(0.7) hue-rotate(-10deg) saturate(0.85);
  opacity: 0.35;
  mix-blend-mode: multiply;
  max-width: 92vw;
  pointer-events: none;
}

/* Fallback warm cream mesh under blobs */
html[data-theme="light"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(254, 243, 199, 0.85) 0%, transparent 48%),
    radial-gradient(circle at 88% 22%, rgba(253, 230, 138, 0.55) 0%, transparent 45%),
    radial-gradient(circle at 22% 82%, rgba(252, 211, 77, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 78% 78%, rgba(245, 230, 166, 0.75) 0%, transparent 48%),
    radial-gradient(circle at 50% 50%, rgba(254, 249, 231, 0.9) 0%, transparent 50%),
    #FFF9E6;
  opacity: 1;
  animation: lightBlobShift 24s ease-in-out infinite alternate;
}

/* ============================================================
   HEADER
   ============================================================ */
html[data-theme="light"] #top {
  background-color: transparent !important;
}
html[data-theme="light"] .logo_top img,
html[data-theme="light"] #top a img {
  filter: none !important;
}

/* ============================================================
   NAV — WARM GLASS
   ============================================================ */
html[data-theme="light"] .site-nav,
html[data-theme="light"] .site-nav.banner-nav {
  background: rgba(255, 252, 245, 0.82) !important;
  backdrop-filter: blur(22px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25) !important;
}
html[data-theme="light"] .nav-links a {
  color: var(--text-muted) !important;
  font-weight: 600 !important;
}
html[data-theme="light"] .nav-links a.active {
  color: #8B6914 !important;
  border-bottom-color: #8B6914 !important;
  font-weight: 800 !important;
}
html[data-theme="light"] .nav-links a:hover {
  color: var(--text-primary) !important;
}
html[data-theme="light"] .dropdown button {
  color: var(--text-muted) !important;
  font-weight: 700 !important;
}
html[data-theme="light"] .dropdown button:hover {
  color: #8B6914 !important;
}
html[data-theme="light"] .dropdown-box {
  background: rgba(255, 252, 245, 0.95) !important;
  backdrop-filter: blur(28px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.5) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  box-shadow: 0 30px 80px rgba(139, 105, 20, 0.18) !important;
}
html[data-theme="light"] .dropdown-title {
  color: #8B6914 !important;
  font-weight: 800 !important;
}
html[data-theme="light"] .grid-2 div {
  background: rgba(255, 251, 240, 0.72) !important;
  border: 1px solid rgba(212, 175, 55, 0.25) !important;
  color: var(--text-primary) !important;
  font-weight: 600 !important;
}
html[data-theme="light"] .grid-2 div:hover {
  background: rgba(255, 249, 230, 0.95) !important;
  border-color: rgba(139, 105, 20, 0.5) !important;
  color: #8B6914 !important;
}
html[data-theme="light"] .nav-actions a {
  color: var(--text-primary) !important;
  font-weight: 700 !important;
}
html[data-theme="light"] .nav-actions a:hover {
  color: #8B6914 !important;
}
html[data-theme="light"] .mobile-brand {
  color: #8B6914 !important;
  font-weight: 900 !important;
}
html[data-theme="light"] .menu-btn {
  background: rgba(255, 252, 245, 0.82) !important;
  border: 1px solid rgba(212, 175, 55, 0.25) !important;
  color: var(--text-primary) !important;
  backdrop-filter: blur(22px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4) !important;
  box-shadow: 0 6px 18px rgba(139, 105, 20, 0.1) !important;
}
html[data-theme="light"] .mobile-menu {
  background: rgba(255, 252, 245, 0.95) !important;
  backdrop-filter: blur(28px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.5) !important;
  border-top: 1px solid rgba(212, 175, 55, 0.25) !important;
  box-shadow: 0 20px 60px rgba(139, 105, 20, 0.15) !important;
}
html[data-theme="light"] .mobile-links a {
  color: var(--text-primary) !important;
  font-weight: 600 !important;
  border-bottom-color: rgba(139, 105, 20, 0.08) !important;
}
html[data-theme="light"] .mobile-links a:hover {
  color: #8B6914 !important;
  background: rgba(139, 105, 20, 0.06) !important;
}
html[data-theme="light"] .mobile-dropdown-btn {
  color: var(--text-primary) !important;
  font-weight: 700 !important;
}
html[data-theme="light"] .mobile-dropdown-box {
  background: rgba(255, 251, 240, 0.6) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}
html[data-theme="light"] .mobile-dropdown-box a {
  color: var(--text-muted) !important;
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
html[data-theme="light"] .lang-switcher-nav {
  background: rgba(255, 252, 245, 0.82) !important;
  backdrop-filter: blur(22px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4) !important;
  border: 1px solid rgba(212, 175, 55, 0.25) !important;
  box-shadow: 0 6px 18px rgba(139, 105, 20, 0.08) !important;
}
html[data-theme="light"] .lang-btn-nav {
  color: var(--text-muted) !important;
}
html[data-theme="light"] .lang-btn-nav:hover {
  color: #8B6914 !important;
  background: rgba(139, 105, 20, 0.08) !important;
}
html[data-theme="light"] .lang-btn-nav.active {
  background: var(--prism-gradient) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(139, 105, 20, 0.3) !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
html[data-theme="light"] footer {
  background: rgba(255, 252, 245, 0.82) !important;
  backdrop-filter: blur(22px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4) !important;
  border-top: 1px solid rgba(212, 175, 55, 0.25) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 -10px 40px rgba(139, 105, 20, 0.08) !important;
}
html[data-theme="light"] .footer-top {
  background: rgba(255, 251, 240, 0.5) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
}
html[data-theme="light"] .footer-buttons a {
  background: rgba(255, 252, 245, 0.82) !important;
  backdrop-filter: blur(22px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  color: var(--text-primary) !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 18px rgba(139, 105, 20, 0.08) !important;
}
html[data-theme="light"] .footer-buttons a:hover {
  background: var(--prism-gradient) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(139, 105, 20, 0.28) !important;
  transform: translateY(-1px) !important;
}
html[data-theme="light"] .footer-middle {
  background: transparent !important;
}
html[data-theme="light"] .footer-commitment {
  background: rgba(255, 252, 245, 0.82) !important;
  backdrop-filter: blur(22px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  box-shadow: 0 22px 50px rgba(139, 105, 20, 0.1) !important;
}
html[data-theme="light"] .commitment-title {
  color: #8B6914 !important;
  font-weight: 800 !important;
}
html[data-theme="light"] .commitment-text {
  background: var(--prism-text-gradient) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
  font-weight: 800 !important;
}
html[data-theme="light"] .commitment-sub {
  color: var(--text-muted) !important;
}
html[data-theme="light"] .commitment-quote {
  background: rgba(255, 252, 245, 0.82) !important;
  backdrop-filter: blur(22px) !important;
  -webkit-backdrop-filter: blur(22px) !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
  color: #B98728 !important;
  font-weight: 700 !important;
}
html[data-theme="light"] .footer-powered {
  background: rgba(255, 251, 240, 0.6) !important;
  border-top: 1px solid rgba(212, 175, 55, 0.2) !important;
}
html[data-theme="light"] .footer-powered p {
  color: var(--text-primary) !important;
  font-weight: 600 !important;
}

/* ============================================================
   THEME TOGGLE
   ============================================================ */
html[data-theme="light"] .themeToggleFixed {
  background: rgba(255, 252, 245, 0.9) !important;
  backdrop-filter: blur(28px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.5) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  box-shadow: 0 12px 32px rgba(139, 105, 20, 0.18) !important;
}
html[data-theme="light"] .themeToggleTrack {
  background: linear-gradient(100deg, #8B6914 0%, #B98728 42%, #D4AF37 100%) !important;
}
html[data-theme="light"] .themeToggleIcon {
  color: var(--text-muted) !important;
}
html[data-theme="light"] .themeToggleIconActive {
  color: #8B6914 !important;
}

/* ============================================================
   SHIMMER / SKELETON — WARM GOLD
   ============================================================ */
html[data-theme="light"] .banner-skeleton {
  background: linear-gradient(
    90deg,
    rgba(245, 230, 166, 0.6) 25%,
    rgba(254, 249, 231, 0.6) 50%,
    rgba(245, 230, 166, 0.6) 75%
  ) !important;
  background-size: 200% 100% !important;
}

/* ============================================================
   SCROLLBAR — WARM GOLD
   ============================================================ */
html[data-theme="light"] ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
html[data-theme="light"] ::-webkit-scrollbar-track {
  background: rgba(255, 251, 240, 0.6);
}
html[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(100deg, #8B6914 0%, #B98728 42%, #D4AF37 100%);
  border-radius: 999px;
}
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(100deg, #8B6914 0%, #B98728 100%);
}

/* ============================================================
   TEXT SELECTION — GOLD
   ============================================================ */
html[data-theme="light"] ::selection {
  background: rgba(212, 175, 55, 0.3) !important;
  color: #3a2812 !important;
}
html[data-theme="light"] ::-moz-selection {
  background: rgba(212, 175, 55, 0.3) !important;
  color: #3a2812 !important;
}

/* ============================================================
   LINKS
   ============================================================ */
html[data-theme="light"] a {
  color: inherit;
  transition: color 0.2s;
}
html[data-theme="light"] a:hover {
  color: #8B6914;
}

/* ============================================================
   INPUTS / PLACEHOLDERS
   ============================================================ */
html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select {
  color: var(--text-primary);
}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: var(--text-faint);
}

/* ============================================================
   GLASS SURFACES
   ============================================================ */
html[data-theme="light"] .glass,
html[data-theme="light"] .glass-strong {
  background: rgba(255, 252, 245, 0.78) !important;
  backdrop-filter: blur(22px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4) !important;
  border: 1px solid rgba(212, 175, 55, 0.25) !important;
}
html[data-theme="light"] .glass-strong {
  background: rgba(255, 252, 245, 0.92) !important;
  backdrop-filter: blur(28px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.5) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
}

/* ============================================================
   BOOK GLOW
   ============================================================ */
html[data-theme="light"] .book-glow {
  filter: blur(22px);
  opacity: 0.5;
  max-width: 100%;
}

/* ============================================================
   NO SCROLLBAR
   ============================================================ */
html[data-theme="light"] .no-scrollbar::-webkit-scrollbar {
  display: none;
}
html[data-theme="light"] .no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* ============================================================
   PRISM TEXT + BUTTON — WARM GOLD
   ============================================================ */
html[data-theme="light"] .prism-text {
  background: var(--prism-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
html[data-theme="light"] .prism-btn {
  background: var(--prism-gradient);
  position: relative;
  overflow: hidden;
}
html[data-theme="light"] .prism-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-120%) skewX(-12deg);
  animation: shine 2.8s ease-in-out infinite;
}

/* ============================================================
   PULSE / ANIMATE-PULSE
   ============================================================ */
html[data-theme="light"] .animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ============================================================
   UTILITY HELPERS
   ============================================================ */
html[data-theme="light"] .rotate-180 {
  transform: rotate(180deg);
}

/* ============================================================
   TAILWIND BG OVERRIDES — WARM GOLD
   ============================================================ */
html[data-theme="light"] .bg-\[\#00DFD8\] {
  background-color: rgb(212 175 55 / 1) !important;
}
html[data-theme="light"] .bg-\[\#E0F7FF\]\/70 {
  background-color: rgba(254, 243, 199, 0.7) !important;
}
html[data-theme="light"] .bg-\[\#FFE8F2\]\/60 {
  background-color: rgba(245, 230, 166, 0.6) !important;
}
html[data-theme="light"] .bg-white {
  background-color: #FFFCF5 !important;
}
html[data-theme="light"] .border-white\/60 {
  border-color: rgba(212, 175, 55, 0.4) !important;
}
html[data-theme="light"] .hover\:bg-white:hover {
  background-color: #FFFCF5 !important;
}
html[data-theme="light"] .hover\:bg-white\/90:hover {
  background-color: rgba(255, 252, 245, 0.9) !important;
}
html[data-theme="light"] .placeholder\:text-\[\#9A8DB8\]::placeholder {
  color: #a08560 !important;
}


html[data-theme="light"] .cart {
  color: #8B6914 !important;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  html[data-theme="light"] #top {
    background: transparent !important;
  }
}