/* ============================================================
 * MedRx Bangladesh - Premium Clinical Design System
 * Matches https://rxbangladesh.com/ (Light & Dark Mode)
 * ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --cta-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%);
}

* {
  font-family: var(--font-family);
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

body {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Default / Light Mode */
html,
html[data-theme="light"] {
  --bg-page: #ffffff;
  --bg-section-alt: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --border-card: #e2e8f0;
  --border-card-hover: rgba(99, 102, 241, 0.35);
  --card-bg: #ffffff;
  --card-inner-bg: #f8fafc;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.04), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 20px 40px -10px rgba(99, 102, 241, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.04);
  --nav-bg: rgba(255, 255, 255, 0.85);
  --nav-border: rgba(226, 232, 240, 0.8);
}

/* Dark Mode overrides */
html[data-theme="dark"] {
  --bg-page: #0b1320;
  --bg-section-alt: #0f172a;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --border-card: rgba(255, 255, 255, 0.08);
  --border-card-hover: rgba(99, 102, 241, 0.4);
  --card-bg: rgba(30, 41, 59, 0.7);
  --card-inner-bg: rgba(15, 23, 42, 0.6);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 20px 50px rgba(99, 102, 241, 0.2);
  --nav-bg: rgba(11, 19, 32, 0.85);
  --nav-border: rgba(255, 255, 255, 0.06);
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* ===== AMBIENT ORBS ===== */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.orb-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  left: -120px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.04) 70%, transparent 100%);
}

.orb-2 {
  width: 550px;
  height: 550px;
  top: 100px;
  right: -100px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(99, 102, 241, 0.04) 70%, transparent 100%);
}

.orb-3 {
  width: 400px;
  height: 400px;
  bottom: 0px;
  left: 25%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
}

[data-theme="dark"] .orb {
  opacity: 0.35;
}

/* ===== NAVBAR ===== */
.navbar-premium {
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--nav-border);
  transition: all 0.3s ease;
}

/* ===== THEME TOGGLE SWITCH ===== */
.theme-toggle {
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
}

.toggle-track {
  width: 54px;
  height: 28px;
  background: #e2e8f0;
  border-radius: 9999px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
  border: 1px solid #cbd5e1;
  transition: all 0.3s ease;
}

[data-theme="dark"] .toggle-track {
  background: #1e293b;
  border-color: #334155;
}

.toggle-icon {
  font-size: 11px;
  color: #94a3b8;
  z-index: 1;
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 9999px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

[data-theme="dark"] .toggle-thumb {
  transform: translateX(26px);
  background: #6366f1;
}

[data-theme="light"] .toggle-thumb,
:root:not([data-theme="dark"]) .toggle-thumb {
  transform: translateX(0px);
}

/* ===== BADGE PREMIUM ===== */
.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid #e0e7ff;
  box-shadow: 0 1px 2px rgba(99, 102, 241, 0.05);
}

[data-theme="dark"] .badge-premium {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.3);
}

/* ===== GLASS & GLASS CARDS ===== */
.glass {
  background: var(--card-bg);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid var(--border-card);
  box-shadow: 0 20px 45px -10px rgba(99, 102, 241, 0.08), 0 8px 20px -4px rgba(0, 0, 0, 0.03);
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-card-hover);
}

/* ===== STAT NUMBERS ===== */
.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== FEATURE SQUIRCLE ICONS (3x3 Grid in Light Mode) ===== */
.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
  transition: all 0.3s ease;
  background: #f1f5f9;
}

.glass-card:hover .feature-icon-wrap {
  transform: scale(1.1);
}

/* Card 1: All Medicines (Blue) */
#features .glass-card:nth-child(1) .feature-icon-wrap {
  background: #eff6ff;
  color: #3b82f6;
}

#features .glass-card:nth-child(1) .feature-icon-wrap i {
  color: #3b82f6 !important;
}

/* Card 2: Pediatric Adjustment (Emerald) */
#features .glass-card:nth-child(2) .feature-icon-wrap {
  background: #ecfdf5;
  color: #10b981;
}

#features .glass-card:nth-child(2) .feature-icon-wrap i {
  color: #10b981 !important;
}

/* Card 3: Hepatic Adjustment (Rose) */
#features .glass-card:nth-child(3) .feature-icon-wrap {
  background: #fff1f2;
  color: #f43f5e;
}

#features .glass-card:nth-child(3) .feature-icon-wrap i {
  color: #f43f5e !important;
  background-color: #f43f5e !important;
}

/* Card 4: Renal Adjustment (Purple) */
#features .glass-card:nth-child(4) .feature-icon-wrap {
  background: #f5f3ff;
  color: #8b5cf6;
}

#features .glass-card:nth-child(4) .feature-icon-wrap i {
  color: #8b5cf6 !important;
  background-color: #8b5cf6 !important;
}

/* Card 5: Pregnancy Adjustment (Pink) */
#features .glass-card:nth-child(5) .feature-icon-wrap {
  background: #fdf2f8;
  color: #ec4899;
}

#features .glass-card:nth-child(5) .feature-icon-wrap i {
  color: #ec4899 !important;
}

/* Card 6: Duplication & Interaction (Red) */
#features .glass-card:nth-child(6) .feature-icon-wrap {
  background: #fef2f2;
  color: #ef4444;
}

#features .glass-card:nth-child(6) .feature-icon-wrap i {
  color: #ef4444 !important;
}

/* Card 7: Drug Shuffling (Blue) */
#features .glass-card:nth-child(7) .feature-icon-wrap {
  background: #eff6ff;
  color: #3b82f6;
}

#features .glass-card:nth-child(7) .feature-icon-wrap i {
  color: #3b82f6 !important;
}

/* Card 8: Smart Templates (Violet) */
#features .glass-card:nth-child(8) .feature-icon-wrap {
  background: #f5f3ff;
  color: #7c3aed;
}

#features .glass-card:nth-child(8) .feature-icon-wrap i {
  color: #7c3aed !important;
}

/* Card 9: Smart History & Scoring (Cyan) */
#features .glass-card:nth-child(9) .feature-icon-wrap {
  background: #ecfeff;
  color: #06b6d4;
}

#features .glass-card:nth-child(9) .feature-icon-wrap i {
  color: #06b6d4 !important;
}

/* ===== PRICING BADGES & BUTTONS ===== */
.btn-trial {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  color: #ffffff;
  border-radius: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
  transition: all 0.25s ease;
}

.btn-trial:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.feature-badge:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

[data-theme="dark"] .feature-badge {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

/* ===== INPUT PREMIUM ===== */
.input-premium {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

[data-theme="dark"] .input-premium {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.input-premium:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.9rem;
  pointer-events: none;
}

/* ===== MODAL & OFFCANVAS ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex !important;
}

.modal-container {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
}

.offcanvas-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9990;
  display: none;
}

.offcanvas-overlay.active {
  display: block;
}

.offcanvas-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  background: #ffffff;
  z-index: 9991;
  padding: 1.75rem;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

[data-theme="dark"] .offcanvas-menu {
  background: #0f172a;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-menu.active {
  transform: translateX(0);
}

/* ===== FOOTER & SOCIAL ICONS ===== */
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.social-icon:hover {
  background: #6366f1;
  color: #ffffff;
  border-color: #6366f1;
  transform: translateY(-2px);
}

[data-theme="dark"] .social-icon {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

[data-theme="dark"] .social-icon:hover {
  background: #6366f1;
  color: #ffffff;
}

/* ===== FOOTER LINKS RESPONSIVE 3-COLUMN GRID ===== */
.footer-links-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.75rem !important;
  width: 100% !important;
}

@media (min-width: 640px) {
  .footer-links-grid {
    gap: 2rem !important;
  }
}

.footer-links-grid > div {
  min-width: 0 !important;
}

.footer-links-grid a.footer-link {
  display: inline-block;
  white-space: nowrap;
}

/* ===== ANIMATIONS ===== */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeScale {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fadeUp {
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fadeScale {
  animation: fadeScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

.delay-5 {
  animation-delay: 0.5s;
}

/* Custom Liver Icon SVG Mask */
.fa-liver {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg fill='%23000000' version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 57.983 57.983' xml:space='preserve'%3E%3Cpath d='M57.391,3.951c-0.499-0.61-1.236-0.96-2.022-0.96H33.983v1c0,8.271-6.729,15-15,15c-0.553,0-1-0.447-1-1s0.447-1,1-1c7.168,0,13-5.832,13-13v-1H14.262c-3.239,0-7.883,2.145-10.956,6.936c-3.679,5.735-6.131,16.771,2.999,36.798l-0.011,0.297c-0.017,0.516,0.171,1.003,0.528,1.372c0.356,0.368,0.835,0.571,1.347,0.571l0.11-0.004c2.481-0.143,9.644-1.035,13.703-6.289v11.32c0,0.553,0.447,1,1,1s1-0.447,1-1V39.013c0.069,0.001,0.144,0.001,0.221,0.001c0.258,0,0.52-0.016,0.779-0.023v15c0,0.553,0.447,1,1,1s1-0.447,1-1V38.874c8.511-0.778,17.249-5.246,19.086-15.854c6.479-4.293,10.473-9.977,11.864-16.909C58.085,5.345,57.888,4.558,57.391,3.951z M24.204,37.014c-0.032,0-0.055-0.001-0.086-0.001c0.439-1.732,1.998-3.022,3.865-3.022c0.553,0,1-0.447,1-1s-0.447-1-1-1c-2.527,0-4.69,1.573-5.573,3.789c-0.883-0.491-2.071-0.789-3.427-0.789c-0.553,0-1,0.447-1,1s0.447,1,1,1c0.655,0,1.201,0.089,1.649,0.213c-3.304,0.614-5.649,2.497-5.649,4.787c0,0.553,0.447,1,1,1c0.553,0,1-0.447,1-1c0-1.257,1.935-2.639,4.834-2.938c-2.853,6.639-10.814,7.729-13.52,7.903l0.072-2.16c0.024-0.132,0.051-0.267,0.08-0.404c0.015-0.068,0.032-0.139,0.048-0.209c0.015-0.066,0.03-0.133,0.047-0.2c0.025-0.098,0.052-0.199,0.08-0.3c0.01-0.038,0.021-0.076,0.031-0.114c0.035-0.123,0.073-0.248,0.114-0.375c0.004-0.012,0.008-0.025,0.012-0.037c1.32-4.079,5.463-9.941,18.027-13.178l-0.001-0.004c0.046-0.012,0.095-0.023,0.141-0.035l0.001,0.002c0.591-0.15,1.202-0.294,1.826-0.432l0.512-0.111c0.696-0.147,1.408-0.291,2.15-0.423l0,0c0.327-0.054,5.733-1,11.669-4.186c0.073-0.039,0.145-0.078,0.218-0.117c0.135-0.074,0.269-0.142,0.404-0.218C40.599,36.067,28.133,37.014,24.204,37.014z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg fill='%23000000' version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 57.983 57.983' xml:space='preserve'%3E%3Cpath d='M57.391,3.951c-0.499-0.61-1.236-0.96-2.022-0.96H33.983v1c0,8.271-6.729,15-15,15c-0.553,0-1-0.447-1-1s0.447-1,1-1c7.168,0,13-5.832,13-13v-1H14.262c-3.239,0-7.883,2.145-10.956,6.936c-3.679,5.735-6.131,16.771,2.999,36.798l-0.011,0.297c-0.017,0.516,0.171,1.003,0.528,1.372c0.356,0.368,0.835,0.571,1.347,0.571l0.11-0.004c2.481-0.143,9.644-1.035,13.703-6.289v11.32c0,0.553,0.447,1,1,1s1-0.447,1-1V39.013c0.069,0.001,0.144,0.001,0.221,0.001c0.258,0,0.52-0.016,0.779-0.023v15c0,0.553,0.447,1,1,1s1-0.447,1-1V38.874c8.511-0.778,17.249-5.246,19.086-15.854c6.479-4.293,10.473-9.977,11.864-16.909C58.085,5.345,57.888,4.558,57.391,3.951z M24.204,37.014c-0.032,0-0.055-0.001-0.086-0.001c0.439-1.732,1.998-3.022,3.865-3.022c0.553,0,1-0.447,1-1s-0.447-1-1-1c-2.527,0-4.69,1.573-5.573,3.789c-0.883-0.491-2.071-0.789-3.427-0.789c-0.553,0-1,0.447-1,1s0.447,1,1,1c0.655,0,1.201,0.089,1.649,0.213c-3.304,0.614-5.649,2.497-5.649,4.787c0,0.553,0.447,1,1,1c0.553,0,1-0.447,1-1c0-1.257,1.935-2.639,4.834-2.938c-2.853,6.639-10.814,7.729-13.52,7.903l0.072-2.16c0.024-0.132,0.051-0.267,0.08-0.404c0.015-0.068,0.032-0.139,0.048-0.209c0.015-0.066,0.03-0.133,0.047-0.2c0.025-0.098,0.052-0.199,0.08-0.3c0.01-0.038,0.021-0.076,0.031-0.114c0.035-0.123,0.073-0.248,0.114-0.375c0.004-0.012,0.008-0.025,0.012-0.037c1.32-4.079,5.463-9.941,18.027-13.178l-0.001-0.004c0.046-0.012,0.095-0.023,0.141-0.035l0.001,0.002c0.591-0.15,1.202-0.294,1.826-0.432l0.512-0.111c0.696-0.147,1.408-0.291,2.15-0.423l0,0c0.327-0.054,5.733-1,11.669-4.186c0.073-0.039,0.145-0.078,0.218-0.117c0.135-0.074,0.269-0.142,0.404-0.218C40.599,36.067,28.133,37.014,24.204,37.014z'/%3E%3C/svg%3E") no-repeat center / contain;
  vertical-align: -0.125em;
}

/* Custom Kidney Icon SVG Mask */
.fa-kidneys {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58.143 58.143'%3E%3Cpath d='M18.769,21.096c0,0-10.5-19,11-21s32.375,27.875,25,39c0,0,3.625,19.125-13,19c0,0-10.51,1.75-11-16C30.193,21.217,18.769,21.096,18.769,21.096z'/%3E%3Cpath d='M40.072,36.552h-3.53c-4.153-4.108-10.104-4.965-14.895-2.54c2.578-4.523,5.516-6.07,7.705-6.521c2.218-0.457,3.971,0.181,4.416,0.625l2.829,2.83c0.195,0.195,0.451,0.293,0.707,0.293s0.512-0.098,0.707-0.293c0.391-0.391,0.391-1.023,0-1.414l-2.121-2.122l2.121-2.121c0.391-0.391,0.391-1.023,0-1.414s-1.023-0.391-1.414,0l-2.244,2.244c-1.241-0.67-3.226-1.036-5.405-0.586c-2.56,0.528-5.965,2.255-8.876,7.206v-5.641c0-4.411,3.589-8,8-8h4c0.553,0,1-0.447,1-1s-0.447-1-1-1h-3v-3c0-0.553-0.447-1-1-1s-1,0.447-1,1v3.051c-5.046,0.503-9,4.773-9,9.949v10c0,8.822-7.178,16-16,16c-0.553,0-1,0.447-1,1s0.447,1,1,1c9.768,0,17.728-7.827,17.977-17.537c4.235-3.966,10.732-3.828,15.023,0.356v3.636c0,0.553,0.447,1,1,1s1-0.447,1-1v-3h3c0.553,0,1-0.447,1-1S40.624,36.552,40.072,36.552z'/%3E%3Cpath d='M52.358,31.821c0.035-0.263-0.036-0.53-0.198-0.74c-0.079-0.102-0.176-0.187-0.286-0.252c-0.003-0.001-0.004-0.004-0.006-0.006l0,0h0c-2.083-1.203-3.566-3.119-4.176-5.395c-0.61-2.276-0.283-4.678,0.92-6.761c0.012-0.02,0.011-0.043,0.021-0.063c0.047-0.096,0.088-0.197,0.103-0.305c0.035-0.263-0.036-0.529-0.198-0.74c-0.161-0.21-0.399-0.348-0.661-0.382c-0.132-0.017-0.265-0.009-0.392,0.025c-2.327,0.622-4.748,0.303-6.829-0.898c-2.08-1.201-3.569-3.143-4.191-5.467c-0.142-0.533-0.69-0.851-1.225-0.707c-0.533,0.143-0.85,0.691-0.707,1.225c0.761,2.84,2.58,5.213,5.123,6.682c1.693,0.978,3.574,1.477,5.479,1.477c0.306,0,0.613-0.035,0.92-0.06c-0.759,2.086-0.873,4.333-0.295,6.493c0.578,2.156,1.797,4.042,3.493,5.469c-4.709,2.228-7.316,7.574-5.921,12.782c0.119,0.447,0.523,0.741,0.965,0.741c0.086,0,0.173-0.011,0.26-0.034c0.533-0.143,0.85-0.691,0.707-1.225c-1.284-4.794,1.57-9.739,6.363-11.023c0.003-0.001,0.004-0.003,0.007-0.003c0.111-0.031,0.213-0.086,0.309-0.153c0.023-0.016,0.045-0.032,0.066-0.05c0.087-0.073,0.166-0.156,0.226-0.26c0.012-0.02,0.011-0.043,0.021-0.063C52.302,32.03,52.343,31.929,52.358,31.821z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58.143 58.143'%3E%3Cpath d='M18.769,21.096c0,0-10.5-19,11-21s32.375,27.875,25,39c0,0,3.625,19.125-13,19c0,0-10.51,1.75-11-16C30.193,21.217,18.769,21.096,18.769,21.096z'/%3E%3Cpath d='M40.072,36.552h-3.53c-4.153-4.108-10.104-4.965-14.895-2.54c2.578-4.523,5.516-6.07,7.705-6.521c2.218-0.457,3.971,0.181,4.416,0.625l2.829,2.83c0.195,0.195,0.451,0.293,0.707,0.293s0.512-0.098,0.707-0.293c0.391-0.391,0.391-1.023,0-1.414l-2.121-2.122l2.121-2.121c0.391-0.391,0.391-1.023,0-1.414s-1.023-0.391-1.414,0l-2.244,2.244c-1.241-0.67-3.226-1.036-5.405-0.586c-2.56,0.528-5.965,2.255-8.876,7.206v-5.641c0-4.411,3.589-8,8-8h4c0.553,0,1-0.447,1-1s-0.447-1-1-1h-3v-3c0-0.553-0.447-1-1-1s-1,0.447-1,1v3.051c-5.046,0.503-9,4.773-9,9.949v10c0,8.822-7.178,16-16,16c-0.553,0-1,0.447-1,1s0.447,1,1,1c9.768,0,17.728-7.827,17.977-17.537c4.235-3.966,10.732-3.828,15.023,0.356v3.636c0,0.553,0.447,1,1,1s1-0.447,1-1v-3h3c0.553,0,1-0.447,1-1S40.624,36.552,40.072,36.552z'/%3E%3Cpath d='M52.358,31.821c0.035-0.263-0.036-0.53-0.198-0.74c-0.079-0.102-0.176-0.187-0.286-0.252c-0.003-0.001-0.004-0.004-0.006-0.006l0,0h0c-2.083-1.203-3.566-3.119-4.176-5.395c-0.61-2.276-0.283-4.678,0.92-6.761c0.012-0.02,0.011-0.043,0.021-0.063c0.047-0.096,0.088-0.197,0.103-0.305c0.035-0.263-0.036-0.529-0.198-0.74c-0.161-0.21-0.399-0.348-0.661-0.382c-0.132-0.017-0.265-0.009-0.392,0.025c-2.327,0.622-4.748,0.303-6.829-0.898c-2.08-1.201-3.569-3.143-4.191-5.467c-0.142-0.533-0.69-0.851-1.225-0.707c-0.533,0.143-0.85,0.691-0.707,1.225c0.761,2.84,2.58,5.213,5.123,6.682c1.693,0.978,3.574,1.477,5.479,1.477c0.306,0,0.613-0.035,0.92-0.06c-0.759,2.086-0.873,4.333-0.295,6.493c0.578,2.156,1.797,4.042,3.493,5.469c-4.709,2.228-7.316,7.574-5.921,12.782c0.119,0.447,0.523,0.741,0.965,0.741c0.086,0,0.173-0.011,0.26-0.034c0.533-0.143,0.85-0.691,0.707-1.225c-1.284-4.794,1.57-9.739,6.363-11.023c0.003-0.001,0.004-0.003,0.007-0.003c0.111-0.031,0.213-0.086,0.309-0.153c0.023-0.016,0.045-0.032,0.066-0.05c0.087-0.073,0.166-0.156,0.226-0.26c0.012-0.02,0.011-0.043,0.021-0.063C52.302,32.03,52.343,31.929,52.358,31.821z'/%3E%3C/svg%3E") no-repeat center / contain;
  vertical-align: -0.125em;
}
/* ==========================================================================
   LIGHT MODE TEXT CONTRAST & MODULE CARDS ENHANCEMENT
   ========================================================================== */

/* High-contrast headings and descriptions on cards in Light Mode */
html[data-theme="light"] .glass-card h3,
:root:not([data-theme="dark"]) .glass-card h3 {
  color: #0f172a !important; /* Deep slate - crystal clear */
}

html[data-theme="light"] .glass-card p,
:root:not([data-theme="dark"]) .glass-card p {
  color: #334155 !important; /* Slate 700 - high contrast readability */
}

/* Light mode card borders and background */
html[data-theme="light"] .motion-module-card,
:root:not([data-theme="dark"]) .motion-module-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.02) !important;
}

html[data-theme="light"] .motion-module-card:hover,
:root:not([data-theme="dark"]) .motion-module-card:hover {
  border-color: rgba(99, 102, 241, 0.4) !important;
  box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.14), 0 8px 16px -4px rgba(0, 0, 0, 0.04) !important;
}

/* Light Mode Module Icon Squircle containers */
html[data-theme="light"] .motion-module-icon,
:root:not([data-theme="dark"]) .motion-module-icon {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

/* High contrast saturated icons in Light Mode */
html[data-theme="light"] .motion-module-icon i.text-indigo-400,
:root:not([data-theme="dark"]) .motion-module-icon i.text-indigo-400 { color: #4f46e5 !important; }

html[data-theme="light"] .motion-module-icon i.text-emerald-400,
:root:not([data-theme="dark"]) .motion-module-icon i.text-emerald-400 { color: #059669 !important; }

html[data-theme="light"] .motion-module-icon i.text-violet-400,
:root:not([data-theme="dark"]) .motion-module-icon i.text-violet-400 { color: #7c3aed !important; }

html[data-theme="light"] .motion-module-icon i.text-amber-400,
:root:not([data-theme="dark"]) .motion-module-icon i.text-amber-400 { color: #d97706 !important; }

html[data-theme="light"] .motion-module-icon i.text-cyan-400,
:root:not([data-theme="dark"]) .motion-module-icon i.text-cyan-400 { color: #0891b2 !important; }

html[data-theme="light"] .motion-module-icon i.text-blue-400,
:root:not([data-theme="dark"]) .motion-module-icon i.text-blue-400 { color: #2563eb !important; }

/* Light Mode High-Contrast Module Pill Badges */
html[data-theme="light"] .motion-module-card .badge,
:root:not([data-theme="dark"]) .motion-module-card .badge {
  font-weight: 600 !important;
  border-width: 1px !important;
  border-style: solid !important;
  padding: 0.25rem 0.6rem !important;
}

html[data-theme="light"] .motion-module-card .badge.text-indigo-300,
:root:not([data-theme="dark"]) .motion-module-card .badge.text-indigo-300 {
  background-color: #eef2ff !important;
  color: #3730a3 !important; /* Indigo 800 - WCAG AAA */
  border-color: #c7d2fe !important;
}

html[data-theme="light"] .motion-module-card .badge.text-amber-300,
:root:not([data-theme="dark"]) .motion-module-card .badge.text-amber-300 {
  background-color: #fffbeb !important;
  color: #92400e !important; /* Amber 800 - WCAG AAA */
  border-color: #fde68a !important;
}

html[data-theme="light"] .motion-module-card .badge.text-rose-300,
:root:not([data-theme="dark"]) .motion-module-card .badge.text-rose-300 {
  background-color: #fff1f2 !important;
  color: #9f1239 !important; /* Rose 800 - WCAG AAA */
  border-color: #fecdd3 !important;
}

html[data-theme="light"] .motion-module-card .badge.text-pink-300,
:root:not([data-theme="dark"]) .motion-module-card .badge.text-pink-300 {
  background-color: #fdf2f8 !important;
  color: #9d174d !important; /* Pink 800 - WCAG AAA */
  border-color: #fbcfe8 !important;
}

html[data-theme="light"] .motion-module-card .badge.text-emerald-300,
:root:not([data-theme="dark"]) .motion-module-card .badge.text-emerald-300 {
  background-color: #ecfdf5 !important;
  color: #065f46 !important; /* Emerald 800 - WCAG AAA */
  border-color: #a7f3d0 !important;
}

html[data-theme="light"] .motion-module-card .badge.text-blue-300,
:root:not([data-theme="dark"]) .motion-module-card .badge.text-blue-300 {
  background-color: #eff6ff !important;
  color: #1e40af !important; /* Blue 800 - WCAG AAA */
  border-color: #bfdbfe !important;
}

html[data-theme="light"] .motion-module-card .badge.text-violet-300,
:root:not([data-theme="dark"]) .motion-module-card .badge.text-violet-300 {
  background-color: #f5f3ff !important;
  color: #5b21b6 !important; /* Violet 800 - WCAG AAA */
  border-color: #ddd6fe !important;
}

html[data-theme="light"] .motion-module-card .badge.text-cyan-300,
:root:not([data-theme="dark"]) .motion-module-card .badge.text-cyan-300 {
  background-color: #ecfeff !important;
  color: #155e75 !important; /* Cyan 800 - WCAG AAA */
  border-color: #a5f3fc !important;
}

html[data-theme="light"] .motion-module-card .badge.text-orange-300,
:root:not([data-theme="dark"]) .motion-module-card .badge.text-orange-300 {
  background-color: #fff7ed !important;
  color: #9a3412 !important; /* Orange 800 - WCAG AAA */
  border-color: #fed7aa !important;
}

html[data-theme="light"] .motion-module-card .badge.text-red-300,
:root:not([data-theme="dark"]) .motion-module-card .badge.text-red-300 {
  background-color: #fef2f2 !important;
  color: #991b1b !important; /* Red 800 - WCAG AAA */
  border-color: #fecaca !important;
}

html[data-theme="light"] .motion-module-card .badge.text-teal-300,
:root:not([data-theme="dark"]) .motion-module-card .badge.text-teal-300 {
  background-color: #f0fdfa !important;
  color: #115e59 !important; /* Teal 800 - WCAG AAA */
  border-color: #99f6e4 !important;
}

html[data-theme="light"] .motion-module-card .badge.text-purple-300,
:root:not([data-theme="dark"]) .motion-module-card .badge.text-purple-300 {
  background-color: #faf5ff !important;
  color: #6b21a8 !important; /* Purple 800 - WCAG AAA */
  border-color: #e9d5ff !important;
}
