/* ============================================================
   LIGHT THEME — Prism Pastel Aesthetic (COMPLETE)
   Aapke HTML (Artist-CSV-A9) se inspired
   Sirf `html[data-theme="light"]` pe apply hota hai
   ============================================================ */

/* ============================================================
   KEYFRAMES — Global (light + dark dono ke liye)
   ============================================================ */
@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
   ============================================================ */
html[data-theme="light"] {
  --bg2: #FFF7FB;
  --gold: #FF0080;
  --gold-2: #7928CA;
  --gold-3: #0070F3;
  --accent-cyan: #00DFD8;
  --text-primary: #2D1B4E;
  --text-muted: #7A6A9A;
  --text-faint: #9A8DB8;
  --prism-gradient: linear-gradient(100deg, #FF0080 0%, #7928CA 42%, #0070F3 100%);
  --prism-text-gradient: linear-gradient(92deg, #FF0080 0%, #7928CA 35%, #0070F3 70%, #00DFD8 100%);

  /* Safe fallback tokens */
  --background: #FFF7FB;
  --foreground: #2D1B4E;
  --card: rgba(255, 255, 255, 0.72);
  --card-foreground: #2D1B4E;
  --primary: #FF0080;
  --primary-foreground: #ffffff;
  --secondary: #7928CA;
  --accent: #00DFD8;
  --muted: #7A6A9A;
  --muted-foreground: #9A8DB8;
  --border: rgba(255, 255, 255, 0.85);
  --ring: rgba(255, 0, 128, 0.3);
}

/* ============================================================
   BODY BG — PASTEL MESH
   ============================================================ */
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;
  /* ✅ overflow-x: clip HATA DIYA — sticky safe */
  /* ✅ overflow-y: auto HATA DIYA — sticky safe */
  width: 100%;
  max-width: 100%;
}

/* ============================================================
   MESH-BG + BLOBS — Light mode animated pastel 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;
}

html[data-theme="light"] .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.62;
  mix-blend-mode: multiply;
  max-width: 92vw;
  pointer-events: none;
}

/* Fallback if no .mesh-bg exists — use body::before */
html[data-theme="light"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, #FFDEE9 0%, transparent 42%),
    radial-gradient(circle at 88% 22%, #B5FFFC 0%, transparent 40%),
    radial-gradient(circle at 22% 82%, #FFC3A0 0%, transparent 42%),
    radial-gradient(circle at 78% 78%, #D9AFD9 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, #FFEFB3 0%, transparent 45%);
  opacity: 0.55;
  filter: blur(60px);
  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 — GLASS PRISM
   ============================================================ */
html[data-theme="light"] .site-nav,
html[data-theme="light"] .site-nav.banner-nav {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(22px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 12px 40px rgba(121, 40, 202, 0.1) !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: #FF0080 !important;
  border-bottom-color: #FF0080 !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: #FF0080 !important;
}

html[data-theme="light"] .dropdown-box {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(28px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 30px 80px rgba(121, 40, 202, 0.18) !important;
}

html[data-theme="light"] .dropdown-title {
  color: #FF0080 !important;
  font-weight: 800 !important;
}

html[data-theme="light"] .grid-2 div {
  background: rgba(255, 255, 255, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  color: var(--text-primary) !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .grid-2 div:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(255, 0, 128, 0.4) !important;
  color: #FF0080 !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: #FF0080 !important;
}

html[data-theme="light"] .mobile-brand {
  color: #0b1c33 !important;
  font-weight: 900 !important;
}

html[data-theme="light"] .menu-btn {
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !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(121, 40, 202, 0.1) !important;
}

html[data-theme="light"] .mobile-menu {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(28px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.5) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 20px 60px rgba(121, 40, 202, 0.15) !important;
}

html[data-theme="light"] .mobile-links a {
  color: var(--text-primary) !important;
  font-weight: 600 !important;
  border-bottom-color: rgba(255, 0, 128, 0.08) !important;
}

html[data-theme="light"] .mobile-links a:hover {
  color: #FF0080 !important;
  background: rgba(255, 0, 128, 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, 255, 255, 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, 255, 255, 0.72) !important;
  backdrop-filter: blur(22px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 6px 18px rgba(121, 40, 202, 0.08) !important;
}

html[data-theme="light"] .lang-btn-nav {
  color: var(--text-muted) !important;
}

html[data-theme="light"] .lang-btn-nav:hover {
  color: #FF0080 !important;
  background: rgba(255, 0, 128, 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(255, 0, 128, 0.3) !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
html[data-theme="light"] footer {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(22px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.85) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 -10px 40px rgba(121, 40, 202, 0.08) !important;
}

html[data-theme="light"] .footer-top {
  background: rgba(255, 255, 255, 0.4) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6) !important;
}

html[data-theme="light"] .footer-buttons a {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(22px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  color: var(--text-primary) !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 18px rgba(121, 40, 202, 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(255, 0, 128, 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, 255, 255, 0.72) !important;
  backdrop-filter: blur(22px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 22px 50px rgba(255, 0, 128, 0.1) !important;
}

html[data-theme="light"] .commitment-title {
  color: #FF0080 !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, 255, 255, 0.72) !important;
  backdrop-filter: blur(22px) !important;
  -webkit-backdrop-filter: blur(22px) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  color: #7928CA !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .footer-powered {
  background: rgba(255, 255, 255, 0.5) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.7) !important;
}

html[data-theme="light"] .footer-powered p {
  color: var(--text-primary) !important;
  font-weight: 600 !important;
}

/* ============================================================
   THEME TOGGLE — LIGHT MODE
   ============================================================ */
html[data-theme="light"] .themeToggleFixed {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(28px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 12px 32px rgba(255, 0, 128, 0.18) !important;
}

html[data-theme="light"] .themeToggleTrack {
  background: linear-gradient(100deg, #FF0080 0%, #7928CA 42%, #0070F3 100%) !important;
}

html[data-theme="light"] .themeToggleIcon {
  color: var(--text-muted) !important;
}

html[data-theme="light"] .themeToggleIconActive {
  color: #FF0080 !important;
}

/* ============================================================
   SHIMMER / SKELETON
   ============================================================ */
html[data-theme="light"] .banner-skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 222, 233, 0.6) 25%,
    rgba(181, 255, 252, 0.6) 50%,
    rgba(255, 222, 233, 0.6) 75%
  ) !important;
  background-size: 200% 100% !important;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
html[data-theme="light"] ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html[data-theme="light"] ::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.5);
}

html[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(100deg, #FF0080 0%, #7928CA 42%, #0070F3 100%);
  border-radius: 999px;
}

html[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(100deg, #FF0080 0%, #7928CA 100%);
}

/* ============================================================
   TEXT SELECTION
   ============================================================ */
html[data-theme="light"] ::selection {
  background: rgba(255, 0, 128, 0.2) !important;
  color: #2D1B4E !important;
}

html[data-theme="light"] ::-moz-selection {
  background: rgba(255, 0, 128, 0.2) !important;
  color: #2D1B4E !important;
}

/* ============================================================
   LINKS
   ============================================================ */
html[data-theme="light"] a {
  color: inherit;
  transition: color 0.2s;
}

html[data-theme="light"] a:hover {
  color: #FF0080;
}

/* ============================================================
   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, 255, 255, 0.72) !important;
  backdrop-filter: blur(22px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
}

html[data-theme="light"] .glass-strong {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(28px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
}

/* ============================================================
   BOOK GLOW
   ============================================================ */
html[data-theme="light"] .book-glow {
  filter: blur(22px);
  opacity: 0.52;
  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
   ============================================================ */
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 (Modals etc.)
   ============================================================ */
html[data-theme="light"] .bg-\[\#00DFD8\] {
  background-color: rgb(0 223 216 / 1) !important;
}

html[data-theme="light"] .bg-\[\#E0F7FF\]\/70 {
  background-color: rgba(224, 247, 255, 0.7) !important;
}

html[data-theme="light"] .bg-\[\#FFE8F2\]\/60 {
  background-color: rgba(255, 232, 242, 0.6) !important;
}

html[data-theme="light"] .bg-white {
  background-color: #ffffff !important;
}

html[data-theme="light"] .border-white\/60 {
  border-color: rgba(255, 255, 255, 0.6) !important;
}

html[data-theme="light"] .hover\:bg-white:hover {
  background-color: #ffffff !important;
}

html[data-theme="light"] .hover\:bg-white\/90:hover {
  background-color: rgba(255, 255, 255, 0.9) !important;
}

html[data-theme="light"] .placeholder\:text-\[\#9A8DB8\]::placeholder {
  color: #9A8DB8 !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  html[data-theme="light"] #top {
    background: transparent !important;
  }
}