/* ==========================================================================
   AI Smart Clinic - Ultra-Premium Glassmorphic Design System (From Scratch)
   ========================================================================== */

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

:root {
  /* Brand Colors */
  --paytm-navy: #002e6e;
  --hdfc-blue: #003366;
  --paytm-cyan: #00baf2;
  --hdfc-red: #EE1C25;
  --paytm-green: #00b86b;
  --paytm-orange: #ff9900;
  
  /* Light Theme Variables - Optimized Premium Palettes */
  --bg-primary: #f4f6fb;
  --bg-secondary: #ffffff;
  --bg-tertiary: #edf2f7;
  --card-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.4) 100%);
  --card-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 
    0 10px 30px -10px rgba(0, 46, 110, 0.08),
    0 1px 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 0 0 1px rgba(0, 46, 110, 0.03);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-color: rgba(0, 46, 110, 0.06);
  --active-tab-bg: rgba(0, 186, 242, 0.08);
  --footer-bg: #002e6e;
  --footer-text: #e2e8f0;
  --glass-blur: 24px;
  
  /* Form Inputs (Glass style) */
  --input-bg: rgba(255, 255, 255, 0.6);
  --input-border: rgba(0, 46, 110, 0.1);
  
  /* Radius Rules */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  
  --font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme Variables */
html[data-theme="dark"] {
  --bg-primary: #030712;
  --bg-secondary: #0b0f19;
  --bg-tertiary: #111827;
  --card-bg: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.4) 100%);
  --card-border: rgba(255, 255, 255, 0.06);
  --glass-shadow: 
    0 20px 40px -15px rgba(0, 0, 0, 0.5),
    0 1px 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 0 0 1px rgba(255, 255, 255, 0.02);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.05);
  --active-tab-bg: rgba(0, 186, 242, 0.12);
  --footer-bg: #020617;
  --footer-text: #8b949e;
  
  /* Form Inputs (Glass style) */
  --input-bg: rgba(15, 23, 42, 0.6);
  --input-border: rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   Background Glowing Blobs
   -------------------------------------------------------------------------- */
.bg-glow-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}
.blob-cyan {
  background: var(--paytm-cyan);
  top: 10%;
  left: -5%;
  animation: blob-float 15s ease-in-out infinite alternate;
}
.blob-navy {
  background: var(--paytm-navy);
  bottom: 20%;
  right: -5%;
  animation: blob-float 20s ease-in-out infinite alternate-reverse;
}
.blob-red {
  background: var(--hdfc-red);
  top: 50%;
  left: 30%;
  width: 350px;
  height: 350px;
  animation: blob-float 18s ease-in-out infinite alternate;
}
@keyframes blob-float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -60px) scale(1.1); }
  100% { transform: translate(-20px, 30px) scale(0.9); }
}

/* --------------------------------------------------------------------------
   Base Styles
   -------------------------------------------------------------------------- */
html, body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Label legibility and accessibility defaults */
label, .form-label {
  color: var(--text-primary) !important;
  font-weight: 600;
  transition: var(--transition);
}

/* Universal Glass Panel System */
.glass-panel {
  background: var(--card-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--card-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  padding: 30px;
}
.glass-panel:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 186, 242, 0.4);
  box-shadow: 
    0 20px 40px -15px rgba(0, 186, 242, 0.15),
    0 1px 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 0 0 1px rgba(0, 186, 242, 0.2);
}
html[data-theme="dark"] .glass-panel:hover {
  border-color: rgba(0, 186, 242, 0.3);
  box-shadow: 
    0 20px 40px -15px rgba(0, 186, 242, 0.25),
    0 1px 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 0 0 1px rgba(0, 186, 242, 0.1);
}

/* --------------------------------------------------------------------------
   Animations & Transitions (Immersive Slide-In Up)
   -------------------------------------------------------------------------- */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.slide-in-active {
  animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}
.float-effect {
  animation: float 6s ease-in-out infinite;
}

section {
  display: none;
  opacity: 0;
}
section.active-view {
  display: block;
  opacity: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--paytm-cyan);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--hdfc-blue);
}

/* --------------------------------------------------------------------------
   Premium Form Controls (Glass Design)
   -------------------------------------------------------------------------- */
.form-control, .form-select {
  background-color: var(--input-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--input-border);
  color: var(--text-primary) !important;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  background-color: var(--bg-secondary);
  border-color: var(--paytm-cyan);
  box-shadow: 0 0 0 4px rgba(0, 186, 242, 0.18);
  outline: none;
}
.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}
html[data-theme="dark"] .form-control, html[data-theme="dark"] .form-select {
  background-color: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .form-control:focus, html[data-theme="dark"] .form-select:focus {
  background-color: #0b0f19;
}

/* --------------------------------------------------------------------------
   Buttons with Multi-Shadows & Inset Highlights
   -------------------------------------------------------------------------- */
.btn-paytm-cyan {
  background: linear-gradient(135deg, var(--paytm-cyan) 0%, #0099cc 100%);
  color: #002e6e;
  font-weight: 700;
  border: none;
  box-shadow: 
    0 4px 15px rgba(0, 186, 242, 0.3),
    0 2px 0 rgba(255, 255, 255, 0.3) inset;
  transition: var(--transition);
}
.btn-paytm-cyan:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 10px 25px rgba(0, 186, 242, 0.45),
    0 2px 0 rgba(255, 255, 255, 0.4) inset;
  color: #ffffff;
}

.btn-hdfc-blue {
  background: linear-gradient(135deg, var(--hdfc-blue) 0%, var(--paytm-navy) 100%);
  color: #ffffff;
  font-weight: 600;
  border: none;
  box-shadow: 
    0 4px 15px rgba(0, 51, 102, 0.25),
    0 2px 0 rgba(255, 255, 255, 0.2) inset;
  transition: var(--transition);
}
.btn-hdfc-blue:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 10px 25px rgba(0, 51, 102, 0.35),
    0 2px 0 rgba(255, 255, 255, 0.3) inset;
  color: #ffffff;
}

/* Doctor Slots wizard buttons */
.slot-btn {
  border-color: var(--border-color);
  color: var(--text-primary);
  background: var(--bg-secondary);
}
.slot-btn:hover {
  background: var(--active-tab-bg);
  color: var(--paytm-cyan);
  border-color: var(--paytm-cyan);
}

/* --------------------------------------------------------------------------
   Sticky Glass Top Navbar
   -------------------------------------------------------------------------- */
.top-navbar {
  height: 85px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border-color);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}
html[data-theme="dark"] .top-navbar {
  background: rgba(11, 17, 33, 0.55);
}

.navbar-brand-logo {
  font-size: 1.6rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.navbar-brand-logo span {
  background: linear-gradient(135deg, var(--paytm-cyan) 0%, var(--hdfc-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[data-theme="dark"] .navbar-brand-logo span {
  background: linear-gradient(135deg, var(--paytm-cyan) 0%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navbar Location Button */
.navbar-location-btn {
  background: transparent;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
}
.navbar-location-btn:hover {
  background: var(--active-tab-bg);
  color: var(--paytm-cyan);
}

.navbar-menu-links {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 32px;
  align-items: center;
}
.navbar-link-item {
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 8px 4px;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
  background: transparent;
  border: none;
  vertical-align: middle;
}
.navbar-link-item:hover {
  color: var(--hdfc-blue);
}
html[data-theme="dark"] .navbar-link-item:hover {
  color: var(--paytm-cyan);
}
.navbar-link-item.active {
  color: var(--hdfc-blue);
}
html[data-theme="dark"] .navbar-link-item.active {
  color: var(--paytm-cyan);
}
.navbar-link-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--paytm-cyan), var(--hdfc-blue));
  border-radius: 2px;
}

.theme-toggle-btn {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.theme-toggle-btn:hover {
  background: var(--active-tab-bg);
}

.content-section {
  width: 100%;
  margin: 0 auto;
}

.section-container {
  padding: 60px 48px;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
}

/* Mobile Dropdown Menu Drawer styling */
.mobile-dropdown-menu {
  display: none;
  background: var(--card-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border-color);
  width: 100%;
  position: absolute;
  top: 85px;
  left: 0;
  z-index: 999;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}
.mobile-dropdown-menu.active {
  display: block;
}
.mobile-menu-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 12px;
  transition: var(--transition);
}
.mobile-menu-item:hover, .mobile-menu-item.active {
  background: var(--active-tab-bg);
  color: var(--paytm-cyan);
}

/* --------------------------------------------------------------------------
   Homepage Components
   -------------------------------------------------------------------------- */
/* Hero Banner (Massive Full-Width naturally) */
.hero-banner {
  background: linear-gradient(135deg, var(--paytm-navy) 0%, var(--hdfc-blue) 40%, #0052a3 100%);
  color: #ffffff;
  border-radius: 0 !important;
  width: 100%;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 46, 110, 0.3);
}
.hero-banner-title {
  font-weight: 800;
  font-size: 4rem;
  line-height: 1.1;
  letter-spacing: -1px;
}
.hero-search-bar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 12px 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
  margin-top: 40px;
  max-width: 900px;
  border: 1px solid rgba(255,255,255,0.8);
}
.hero-search-input {
  border: none;
  outline: none;
  font-size: 1rem;
  padding: 10px 12px;
  width: 100%;
  color: #0f172a;
  background: transparent;
}
.hero-search-divider {
  width: 1px;
  height: 35px;
  background-color: #cbd5e1;
  align-self: center;
}

/* Stats */
.stat-counter-card {
  padding: 30px 20px;
  text-align: center;
}
.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--paytm-cyan) 0%, var(--hdfc-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

/* Service Highlights (Premium Hover Grid) */
.service-icon-container {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(0, 186, 242, 0.1);
  color: var(--hdfc-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 20px;
  transition: var(--transition);
}
html[data-theme="dark"] .service-icon-container {
  color: var(--paytm-cyan);
  background: rgba(0, 186, 242, 0.15);
}
.glass-panel:hover .service-icon-container {
  transform: scale(1.1) rotate(5deg);
  background: var(--paytm-cyan);
  color: #ffffff;
}

/* Doctor & Hospital Cards */
.doctor-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.doc-img-wrapper {
  height: 240px;
  overflow: hidden;
  position: relative;
}
.doc-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.doctor-card:hover .doc-img-wrapper img {
  transform: scale(1.08);
}
.doc-badge-live {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(0, 184, 107, 0.9) !important;
}

.hospital-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hospital-img-wrapper {
  height: 220px;
  overflow: hidden;
}
.hospital-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hospital-card:hover .hospital-img-wrapper img {
  transform: scale(1.08);
}

/* Specialty Card */
.specialty-item-card {
  padding: 22px 14px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--glass-shadow);
}
.specialty-item-card:hover {
  transform: translateY(-6px);
  border-color: var(--paytm-cyan);
  box-shadow: 0 15px 30px rgba(0, 186, 242, 0.18);
}

/* Available Cities */
.city-card {
  padding: 24px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
}
.city-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glass-shadow);
}

/* Lightbox Photo Gallery */
.gallery-thumbnail-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  box-shadow: var(--glass-shadow);
}
.gallery-thumbnail-wrapper img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-thumbnail-wrapper:hover img {
  transform: scale(1.08);
}
.gallery-overlay-hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 51, 102, 0.5);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2rem;
  transition: var(--transition);
}
.gallery-thumbnail-wrapper:hover .gallery-overlay-hover {
  opacity: 1;
}

/* Infinite Marquee Slider for Partner Hospitals (No viewport breakout hack) */
.partner-marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
  padding: 30px 0;
  background: rgba(0, 46, 110, 0.03);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
html[data-theme="dark"] .partner-marquee-container {
  background: rgba(255, 255, 255, 0.02);
}
.partner-marquee-track {
  display: inline-flex;
  gap: 80px;
  animation: marquee-scroll 20s linear infinite;
}
.partner-logo-item {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  display: inline-flex;
  align-items: center;
}
.partner-logo-item:hover {
  color: var(--paytm-cyan);
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Guides & File Uploads
   -------------------------------------------------------------------------- */
.rx-mockup-guide-container {
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border-color);
}
.rx-sample-paper {
  background-color: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 24px;
  color: #0f172a;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.rx-circle-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--hdfc-blue);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-right: 10px;
}

.rx-upload-dropzone {
  border: 2px dashed var(--paytm-cyan);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 55px 30px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.rx-upload-dropzone:hover {
  background: var(--active-tab-bg);
  border-color: var(--hdfc-blue);
}

/* --------------------------------------------------------------------------
   HD Video Consultations
   -------------------------------------------------------------------------- */
.video-consultation-view {
  background: #080c14;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 500px;
  position: relative;
  box-shadow: var(--glass-shadow);
}
.video-feed-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}
.video-feed-doctor {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 140px;
  height: 180px;
  border-radius: var(--radius-md);
  border: 3px solid #ffffff;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
  overflow: hidden;
}
.video-feed-doctor img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-controls-overlay {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 10;
}
.video-control-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition);
}
.video-control-btn:hover {
  background: #ffffff;
  color: #0f172a;
}
.video-control-btn.btn-hangup {
  background: var(--hdfc-red);
}
.video-control-btn.btn-hangup:hover {
  background: #c71217;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   AI Chatbot
   -------------------------------------------------------------------------- */
.ai-chatbot-drawer {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 390px;
  height: 540px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(120%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.ai-chatbot-drawer.active {
  transform: translateY(0);
}
.chat-drawer-header {
  background: linear-gradient(135deg, var(--hdfc-blue) 0%, var(--paytm-navy) 100%);
  color: #ffffff;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-messages-container {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chat-msg-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.45;
}
.chat-msg-bubble.user {
  background: var(--paytm-navy);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}
.chat-msg-bubble.ai {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  border-left: 4px solid var(--paytm-cyan);
}
.chat-floating-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--paytm-navy) 0%, var(--paytm-cyan) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 15px 35px rgba(0, 186, 242, 0.35);
  cursor: pointer;
  z-index: 999;
  transition: var(--transition);
  border: 2px solid #ffffff;
}
.chat-floating-fab:hover {
  transform: scale(1.08) rotate(5deg);
}

/* --------------------------------------------------------------------------
   Corporate Footer
   ========================================================================== */
.corporate-footer {
  background-color: var(--paytm-navy);
  color: #94a3b8;
  padding: 80px 48px 40px;
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .corporate-footer {
  background-color: #020612;
}

/* Social Icons */
.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}
.footer-social-icon:hover {
  background: var(--paytm-cyan);
  color: var(--paytm-navy);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Universal Contrast & Mode Text Colors (Defensive Override)
   ========================================================================== */
.text-navy {
  color: var(--paytm-navy) !important;
}
.text-secondary {
  color: var(--text-secondary) !important;
}
.text-muted {
  color: var(--text-muted) !important;
}
.text-primary {
  color: var(--hdfc-blue) !important;
}

html[data-theme="dark"] .text-navy {
  color: #ffffff !important;
}
html[data-theme="dark"] .text-secondary {
  color: var(--text-secondary) !important;
}
html[data-theme="dark"] .text-muted {
  color: var(--text-muted) !important;
}
html[data-theme="dark"] .text-primary {
  color: var(--paytm-cyan) !important;
}

html[data-theme="dark"] .bg-light {
  background-color: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
}
html[data-theme="dark"] .card {
  background-color: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-color) !important;
}
html[data-theme="dark"] .modal-content {
  background-color: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
}
html[data-theme="dark"] .modal-header, html[data-theme="dark"] .modal-footer {
  border-color: var(--border-color) !important;
}
html[data-theme="dark"] .list-group-item {
  background-color: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-color) !important;
}
html[data-theme="dark"] .alert-success {
  background-color: rgba(0, 184, 107, 0.15) !important;
  color: #00b86b !important;
  border-color: rgba(0, 184, 107, 0.25) !important;
}
html[data-theme="dark"] .corporate-footer a {
  color: #94a3b8;
}
html[data-theme="dark"] .corporate-footer a:hover {
  color: var(--paytm-cyan);
}

/* Invert Close SVG buttons in dark mode */
html[data-theme="dark"] .btn-close {
  filter: invert(1) grayscale(1) brightness(2);
}

/* Adapt light borders inside cards in dark mode */
html[data-theme="dark"] .border-light {
  border-color: var(--border-color) !important;
}

/* Ensure text inside elements with pure white backgrounds in dark mode is a legible blue */
html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-white *,
html[data-theme="dark"] [class*="bg-white"],
html[data-theme="dark"] [class*="bg-white"] * {
  color: var(--paytm-navy) !important;
}
html[data-theme="dark"] .bg-white .text-navy,
html[data-theme="dark"] .bg-white.text-navy,
html[data-theme="dark"] [class*="bg-white"] .text-navy {
  color: var(--paytm-navy) !important;
}
html[data-theme="dark"] .bg-white .text-primary,
html[data-theme="dark"] .bg-white.text-primary,
html[data-theme="dark"] [class*="bg-white"] .text-primary {
  color: var(--hdfc-blue) !important;
}

html[data-theme="dark"] .bg-white .btn-paytm-cyan,
html[data-theme="dark"] [class*="bg-white"] .btn-paytm-cyan {
  color: #002e6e !important;
  background: var(--paytm-cyan) !important;
}
html[data-theme="dark"] .bg-white .btn-hdfc-blue,
html[data-theme="dark"] [class*="bg-white"] .btn-hdfc-blue {
  color: #ffffff !important;
  background: var(--hdfc-blue) !important;
}

/* High priority hover color for social links inside dark corporate footers */
html[data-theme="dark"] .footer-social-icon:hover {
  background: var(--paytm-cyan) !important;
  color: var(--paytm-navy) !important;
}
html[data-theme="dark"] .footer-social-icon:hover i {
  color: var(--paytm-navy) !important;
}

/* Override corporate footer badges in dark mode to avoid low contrast */
html[data-theme="dark"] .corporate-footer .badge {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* --------------------------------------------------------------------------
   Responsive Mobile Adjustments
   ========================================================================== */
@media (max-width: 991.98px) {
  .top-navbar {
    height: 75px;
    padding: 0 20px;
    flex-direction: row; /* Horizontal navbar even on mobile */
    justify-content: space-between;
    align-items: center;
  }
  .section-container {
    padding: 30px 16px;
  }
  .hero-banner {
    padding: 50px 0;
  }
  .hero-banner-title {
    font-size: 2.4rem;
  }
}

@media (max-width: 575.98px) {
  .top-navbar {
    padding: 0 16px; /* Extra horizontal space for hamburger menu */
  }
  .navbar-brand-logo {
    font-size: 1.25rem; /* Scale brand text down so it fits perfectly on small screens */
  }
}
