/* ==============================================================================
   AAKANKSHA - Master Design System
   "Every Aspiration Deserves a Chance." | An initiative by K3 INFOSOFT
   ============================================================================== */

:root {
  --navy-dark: #0a1931;
  --navy-primary: #0f2963;
  --navy-light: #1e3a8a;
  --blue-royal: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-soft: #eff6ff;
  --gold-accent: #f59e0b;
  --gold-hover: #d97706;
  --gold-light: #fef3c7;
  --emerald-green: #10b981;
  --emerald-soft: #ecfdf5;
  --rose-red: #ef4444;
  --purple-accent: #8b5cf6;
  --purple-soft: #f5f3ff;
  --bg-slate: #f8fafc;
  --border-slate: #e2e8f0;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --font-family: 'Plus Jakarta Sans', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: 'Merriweather', Georgia, Cambria, 'Times New Roman', serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-slate);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* ==============================================================================
   TYPOGRAPHY & BRAND UTILITIES
   ============================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--navy-dark);
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: var(--blue-royal);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--blue-hover);
}

.brand-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--navy-dark);
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--gold-accent);
  font-weight: 600;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 0 #1d4ed8, 0 10px 18px rgba(37, 99, 235, 0.35);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #1d4ed8, 0 14px 22px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #1d4ed8, 0 4px 8px rgba(37, 99, 235, 0.3);
}

.btn-outline-primary {
  background-color: #ffffff;
  color: var(--blue-royal) !important;
  border-color: var(--blue-royal);
  box-shadow: 0 3px 0 rgba(37, 99, 235, 0.4), 0 6px 12px rgba(37, 99, 235, 0.15);
}

.btn-outline-primary:hover {
  background-color: var(--blue-soft);
  transform: translateY(-2px);
  box-shadow: 0 5px 0 rgba(37, 99, 235, 0.5), 0 10px 16px rgba(37, 99, 235, 0.2);
}

.btn-outline-primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(37, 99, 235, 0.4);
}

.btn-gold {
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%) !important;
  color: #0f172a !important;
  font-weight: 700;
  box-shadow: 0 4px 0 #b45309, 0 10px 18px rgba(245, 158, 11, 0.35);
  border: none;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #b45309, 0 14px 22px rgba(245, 158, 11, 0.4);
}

.btn-gold:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #b45309, 0 4px 8px rgba(245, 158, 11, 0.3);
}

.btn-emerald {
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 0 #047857, 0 10px 18px rgba(16, 185, 129, 0.35);
  border: none;
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #047857, 0 14px 22px rgba(16, 185, 129, 0.4);
}

.btn-emerald:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #047857, 0 4px 8px rgba(16, 185, 129, 0.3);
}

.btn-sm {
  padding: 5px 14px;
  font-size: 0.85rem;
}

.btn-outline-secondary {
  border-color: var(--border-slate);
  color: var(--text-dark);
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.btn-outline-secondary:hover {
  background-color: #f1f5f9;
  transform: translateY(-1px);
}

/* Cards with Smooth Elevation (No perspective or scale to prevent font blur on hover) */
.card {
  background-color: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--border-slate);
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(0, 0, 0, 0.03);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.card:not(.auth-card):not(.registration-card):not(:has(form)):hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -6px rgba(15, 41, 99, 0.12), 0 0 0 1px rgba(37, 99, 235, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Authentication & Form Cards: Completely stationary, sharp, crystal clear text without blur */
.auth-card,
.registration-card,
.card:has(form) {
  transform: none !important;
  transition: none !important;
  transform-style: flat !important;
  perspective: none !important;
  backface-visibility: hidden !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07) !important;
  background-color: #ffffff !important;
}

.auth-card:hover,
.registration-card:hover,
.card:has(form):hover,
.auth-card:focus-within,
.registration-card:focus-within,
.card:has(form):focus-within {
  transform: none !important;
  transition: none !important;
  perspective: none !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07) !important;
}

.card-body {
  padding: 24px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-free {
  background-color: var(--gold-light);
  color: var(--gold-hover);
  border: 1px solid #fde68a;
}

.badge-blue {
  background-color: var(--blue-soft);
  color: var(--blue-royal);
}

.badge-green {
  background-color: var(--emerald-soft);
  color: var(--emerald-green);
}

.badge-purple {
  background-color: var(--purple-soft);
  color: var(--purple-accent);
}

/* ==============================================================================
   NAVIGATION & HEADER (Ultra-Sleek 1-Liner to Minimize Vertical Space)
   ============================================================================== */
.main-navbar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-slate);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 6px 20px;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
}

.nav-container {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo-icon {
  background: linear-gradient(135deg, #0f2963, #2563eb);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 10px rgba(15, 41, 99, 0.28);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

/* Stylish Brand Logo System */
.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  user-select: none;
}

.brand-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0a1931 0%, #0f2963 55%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 41, 99, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
  position: relative;
}

.brand-logo-icon:hover {
  transform: rotate(-6deg) scale(1.08);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.brand-title {
  font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 1.48rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0 !important;
  white-space: nowrap;
  user-select: none;
}

/* Queen AA Container with Royal Mukut (Crown) */
.brand-queen-aa {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  padding-top: 10px;
  margin: 0 !important;
  padding-right: 0 !important;
}

.brand-mukut {
  position: absolute;
  top: -9px;
  left: 50%;
  width: 25px;
  height: 16px;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.45));
  z-index: 2;
  transform-origin: center center;
  animation: brand-crown-circulate 3.5s ease-in-out infinite;
}

@keyframes brand-crown-circulate {
  0% {
    transform: translateX(-50%) translate(0, -3px) rotate(-3deg);
  }

  25% {
    transform: translateX(-50%) translate(2.5px, 0px) rotate(1deg);
  }

  50% {
    transform: translateX(-50%) translate(0, 2px) rotate(4deg);
  }

  75% {
    transform: translateX(-50%) translate(-2.5px, 0px) rotate(-1deg);
  }

  100% {
    transform: translateX(-50%) translate(0, -3px) rotate(-3deg);
  }
}

.brand-logo-wrap:hover .brand-mukut,
a:hover .brand-mukut,
.brand-queen-aa:hover .brand-mukut {
  animation: brand-crown-circulate 1.8s ease-in-out infinite;
  filter: drop-shadow(0 3px 8px rgba(245, 158, 11, 0.8));
}

/* Stylish Queen "AA" in duo-tone gradient */
.brand-title .brand-aa {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  letter-spacing: -0.5px;
  position: relative;
  margin: 0 !important;
  padding-right: 0 !important;
}

/* Seamless Queen "KANKSHA" - zero gap with AA */
.brand-title .brand-rest {
  color: #0f2963;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin: 0 !important;
  margin-left: -2px !important;
  padding-left: 0 !important;
}

/* Light version for dark headers and footer */
.brand-title.brand-title-light .brand-aa {
  background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-title.brand-title-light .brand-rest {
  color: #ffffff;
}

.brand-title.brand-title-light .brand-mukut {
  filter: drop-shadow(0 2px 5px rgba(254, 240, 138, 0.5));
}

.brand-tagline-inline {
  font-size: 0.75rem;
  color: var(--gold-accent) !important;
  font-weight: 700;
  white-space: nowrap;
}

.brand-tagline-sub {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.25px;
  line-height: 1;
  margin-top: -1px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin-bottom: 0;
  padding-left: 0;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue-royal);
  background-color: #eff6ff;
  transform: translateY(-1px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ==============================================================================
   3D DESIGN SYSTEM & DEPTH UTILITIES
   ============================================================================== */
:root {
  --3d-perspective: 1200px;
}

/* 3D Shadows */
.shadow-3d-sm {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.shadow-3d {
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.shadow-3d-lg {
  box-shadow: 0 20px 40px -10px rgba(15, 41, 99, 0.25), 0 10px 15px -3px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

/* 3D Images with Bevel and Specular Border */
.shadow-3d-image {
  border: 4px solid #ffffff;
  border-radius: 24px;
  box-shadow: 0 22px 45px -12px rgba(15, 41, 99, 0.35), 0 0 0 1px rgba(37, 99, 235, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.5);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.shadow-3d-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 50px -12px rgba(15, 41, 99, 0.35);
}

/* 3D Floating Animation */
@keyframes float3D {

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

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

.animate-float-3d {
  animation: float3D 6s ease-in-out infinite;
}

/* 3D Top Feature Banner */
.hero-top-feature-card {
  box-shadow: 0 20px 45px -10px rgba(15, 41, 99, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border-radius: 22px;
  transform: perspective(var(--3d-perspective));
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-top-feature-card:hover {
  transform: perspective(var(--3d-perspective)) translateY(-4px);
  box-shadow: 0 28px 55px -12px rgba(15, 41, 99, 0.45);
}

.transform-img-3d {
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.3);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.transform-img-3d:hover {
  transform: perspective(var(--3d-perspective)) rotateY(-4deg) rotateX(2deg) scale(1.04);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.55);
}

/* 3D Action Cards (Mode Cards) */
.mode-card {
  padding: 22px;
  border-radius: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.mode-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px -5px rgba(37, 99, 235, 0.22);
}

.mode-card.blue {
  background: linear-gradient(180deg, #f0f7ff 0%, #e0effe 100%);
  border: 1px solid #bfdbfe;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.18), 0 4px 0 #93c5fd;
}

.mode-card.green {
  background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.18), 0 4px 0 #86efac;
}

.mode-card.orange {
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fef08a;
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.18), 0 4px 0 #fde047;
}

/* ==============================================================================
   HERO SECTION (Matching AAKANKSHA Online Exam Platform Hero.png)
   ============================================================================== */
.hero-wrapper {
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  padding: 30px 20px 60px;
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.hero-left {
  position: relative;
  text-align: center;
}

.hero-student-img {
  max-width: 100%;
  height: auto;
  border-radius: 28px;
  border: 4px solid #ffffff;
  box-shadow: 0 22px 45px -10px rgba(15, 41, 99, 0.35), 0 0 0 1px rgba(37, 99, 235, 0.15);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.hero-student-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 48px -10px rgba(15, 41, 99, 0.35);
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-title-main {
  font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--navy-dark);
  letter-spacing: -0.5px;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0 !important;
}

.hero-queen-aa {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  padding-top: 24px;
  margin: 0 !important;
  padding-right: 0 !important;
}

.hero-mukut {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 54px;
  height: 34px;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(245, 158, 11, 0.55));
  z-index: 2;
  transform-origin: center center;
  animation: hero-crown-circulate 4s ease-in-out infinite;
}

@keyframes hero-crown-circulate {
  0% {
    transform: translateX(-50%) translate(0, -6px) rotate(-4deg);
  }

  25% {
    transform: translateX(-50%) translate(5px, 0px) rotate(2deg);
  }

  50% {
    transform: translateX(-50%) translate(0, 4px) rotate(5deg);
  }

  75% {
    transform: translateX(-50%) translate(-5px, 0px) rotate(-2deg);
  }

  100% {
    transform: translateX(-50%) translate(0, -6px) rotate(-4deg);
  }
}

.hero-queen-aa:hover .hero-mukut,
.hero-title-main:hover .hero-mukut {
  animation: hero-crown-circulate 2s ease-in-out infinite;
  filter: drop-shadow(0 5px 14px rgba(245, 158, 11, 0.85));
}

.hero-title-main .hero-aa {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  letter-spacing: -1px;
  position: relative;
  margin: 0 !important;
  padding-right: 0 !important;
}

.hero-title-main .hero-rest {
  color: #0f2963;
  font-weight: 900;
  letter-spacing: -1px;
  margin: 0 !important;
  margin-left: -4px !important;
  padding-left: 0 !important;
}

.hero-tagline-brush {
  display: inline-block;
  background-color: #fde047;
  padding: 8px 24px;
  border-radius: 8px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e293b;
  transform: rotate(-1deg);
  box-shadow: 0 4px 0 #ca8a04, 0 8px 15px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #334155;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* 3 Main Action Cards Grid */
.hero-modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.mode-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 10px 0 6px;
}

.mode-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  min-height: 40px;
}

/* ==============================================================================
   WHY CHOOSE SECTION
   ============================================================================== */
.why-choose-section {
  padding: 40px 20px;
  background-color: #ffffff;
  border-top: 1px solid var(--border-slate);
  border-bottom: 1px solid var(--border-slate);
}

.why-choose-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: center;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.feature-title {
  font-size: 0.95rem;
  font-weight: 700;
}

/* ==============================================================================
   STUDENT DASHBOARD LAYOUT (Collage Top-Right)
   ============================================================================== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 70px);
}

.dashboard-sidebar {
  background-color: #ffffff;
  border-right: 1px solid var(--border-slate);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.sidebar-link:hover {
  background-color: #f1f5f9;
  color: var(--blue-royal);
}

.sidebar-link.active {
  background-color: var(--blue-royal);
  color: #ffffff;
}

.dashboard-main {
  padding: 32px;
  overflow-y: auto;
}

.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Dashboard Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 18px;
  color: #ffffff;
  box-shadow: 0 10px 24px -5px rgba(15, 23, 42, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -6px rgba(15, 23, 42, 0.28);
}

.stat-card.blue {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.stat-card.green {
  background: linear-gradient(135deg, #10b981, #059669);
}

.stat-card.purple {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.stat-card.orange {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* ==============================================================================
   CBT EXAMINATION SCREEN (Collage Bottom-Left)
   Zero Advertisements, Distraction-Free Layout
   ============================================================================== */
.cbt-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  background-color: #f1f5f9;
  overflow: hidden;
}

.cbt-header {
  background-color: var(--navy-primary);
  color: #ffffff;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  z-index: 20;
}

.cbt-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.cbt-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cbt-logo-icon {
  width: 22px;
  height: 22px;
}

.cbt-header-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cbt-header-right {
  display: flex;
  align-items: center;
}

.cbt-timer-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 5px 16px;
  border-radius: 9999px;
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.cbt-timer-icon {
  width: 18px;
  height: 18px;
}

.cbt-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.cbt-question-pane {
  padding: 24px 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #ffffff;
  flex: 1;
  min-height: 0;
}

.cbt-question-content {
  flex: 1;
}

.cbt-question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-slate);
}

.question-badge {
  background-color: var(--blue-royal);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
}

.question-statement {
  font-size: 1.1rem;
  font-weight: 400; /* Normal weight: NOT everything is bold */
  color: #1e293b;
  margin-bottom: 20px;
  line-height: 1.6;
  white-space: normal;
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Distinct subtle shade for Directions and Instructions */
.cbt-directions-card {
  background-color: #f1f5f9; /* Soft Slate/Indigo shade */
  border-left: 3.5px solid #6366f1; /* Distinct indigo border */
  padding: 6px 12px;
  border-radius: 6px;
  margin-top: 0 !important;
  margin-bottom: 14px !important; /* Exactly 1 line of vertical space after direction box */
}

.cbt-directions-header {
  font-size: 0.78rem;
  font-weight: 700;
  color: #4f46e5; /* Indigo shade */
  letter-spacing: 0.3px;
  text-transform: uppercase;
  line-height: 1.2;
  margin-top: 0 !important;
  margin-bottom: 2px !important; /* Kept compact between heading & text */
  padding-bottom: 0 !important;
}

.cbt-directions-card .directions-body {
  white-space: pre-wrap !important;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #334155; /* Distinct slate shade for instructions */
  font-weight: 400 !important; /* NOT BOLD */
  margin-top: 0 !important;
  padding-top: 0 !important;
  -webkit-font-smoothing: antialiased;
}

/* Distinct subtle shade for Reading Passages */
.cbt-passage-card {
  background-color: #fefce8; /* Soft Amber background */
  border-left: 3.5px solid #d97706;
  padding: 8px 14px;
  border-radius: 6px;
  margin-top: 0 !important;
  margin-bottom: 14px !important; /* Exactly 1 line of vertical space after passage box */
}

.cbt-passage-header {
  font-size: 0.78rem;
  font-weight: 700;
  color: #92400e;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  line-height: 1.2;
  margin-top: 0 !important;
  margin-bottom: 2px !important;
  padding-bottom: 0 !important;
}

.cbt-passage-card .passage-body {
  white-space: pre-wrap !important;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #1e293b;
  font-family: var(--font-serif);
  font-weight: 400 !important; /* NOT BOLD */
  margin-top: 0 !important;
  padding-top: 0 !important;
  -webkit-font-smoothing: antialiased;
}

/* ONLY THE ACTUAL QUESTION IS BOLD */
.cbt-actual-question {
  font-weight: 700 !important; /* ONLY QUESTION IS BOLD */
  color: #091e42 !important; /* Deep crisp black */
  font-size: 1.15rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
  margin-top: 0 !important;
  margin-bottom: 4px !important;
  white-space: pre-wrap !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Statements, conditions, options: normal weight (NOT BOLD) */
.cbt-statements-body {
  font-weight: 400 !important; /* NOT BOLD */
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.6;
  letter-spacing: -0.005em;
  white-space: pre-wrap !important;
  margin-top: 4px !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.option-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border: 1.5px solid var(--border-slate);
  border-radius: 12px;
  cursor: pointer;
  background-color: #ffffff;
  transition: all 0.2s ease;
  user-select: none;
}

.option-item:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
}

.option-item.selected {
  background-color: #eff6ff;
  border-color: var(--blue-royal);
  box-shadow: 0 0 0 1px var(--blue-royal);
}

.option-radio {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--blue-royal);
  flex-shrink: 0;
}

.option-text {
  font-size: 1.04rem;
  color: #1e293b;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.cbt-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-slate);
  background-color: #ffffff;
  flex-shrink: 0;
}

/* Question Palette (Right Panel) */
.cbt-palette-pane {
  background-color: #f8fafc;
  border-left: 1px solid var(--border-slate);
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.palette-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--navy-dark);
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.palette-btn {
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border-slate);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease;
  background-color: #ffffff;
}

.palette-btn:hover {
  transform: scale(1.05);
}

.palette-btn.active-current {
  outline: 2px solid var(--navy-dark);
  outline-offset: 2px;
}

/* Palette Status Colors */
.status-answered,
.palette-btn.status-answered {
  background-color: #22c55e !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
}

.status-not-answered,
.palette-btn.status-not-answered {
  background-color: #ef4444 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
}

.status-marked,
.palette-btn.status-marked {
  background-color: #8b5cf6 !important;
  color: #ffffff !important;
  border-color: #7c3aed !important;
}

.status-not-visited,
.palette-btn.status-not-visited {
  background-color: #e2e8f0 !important;
  color: #475569 !important;
  border-color: #cbd5e1 !important;
}

.status-answered-marked,
.palette-btn.status-answered-marked {
  background-color: #f59e0b !important;
  color: #ffffff !important;
  border-color: #d97706 !important;
}

.palette-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-slate);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

/* ==============================================================================
   RESULTS & ANALYSIS SCREEN (Collage Bottom-Right)
   ============================================================================== */
.result-header-card {
  text-align: center;
  padding: 36px 20px;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  border-radius: 20px;
  border: 1px solid #bbf7d0;
  margin-bottom: 24px;
}

.result-trophy {
  font-size: 3.5rem;
  margin-bottom: 12px;
}

.results-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.metric-card {
  background-color: #ffffff;
  border: 1px solid var(--border-slate);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.metric-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy-dark);
}

.metric-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Progress bar charts */
.progress-track {
  height: 12px;
  background-color: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 6px;
}

.progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.6s ease;
}

/* Footer Ribbon */
.site-footer {
  background-color: var(--navy-dark);
  color: #94a3b8;
  padding: 40px 20px 20px;
  margin-top: auto;
}

.footer-ribbon {
  background-color: #0b1f48;
  color: #ffffff;
  text-align: center;
  padding: 12px 20px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  max-width: 800px;
  margin: 0 auto 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==============================================================================
   REGISTRATION PAGE FOCUS BLUR SYSTEM
   ============================================================================== */
.registration-wrapper {
  position: relative;
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
}

.registration-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 20px 45px -10px rgba(15, 41, 99, 0.15);
  transition: all 0.3s ease;
  width: 100%;
  max-width: 580px;
}

/* Clear, crisp registration form without blur */
.registration-wrapper,
.registration-card,
.registration-form,
.registration-form *,
.registration-form .form-group,
.registration-form .form-control {
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.registration-form .form-group:focus-within,
.registration-form:focus-within .form-group,
.registration-form:focus-within .form-group:not(:focus-within) {
  filter: none !important;
  -webkit-filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Form control styling with clean crisp focus outline */
.registration-form .form-control {
  border-radius: 12px;
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-size: 0.95rem;
}

.registration-form .form-control:focus {
  border-color: #2563eb;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  outline: none;
}

/* ==============================================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS SYSTEM (Phone & Tablet)
   ============================================================================== */
@media (max-width: 991.98px) {

  /* Navbar */
  .main-navbar {
    padding: 8px 16px;
  }

  .nav-container {
    gap: 10px;
  }

  .brand-title {
    font-size: 1.2rem;
  }

  /* Hero Section */
  .hero-wrapper {
    padding: 20px 14px 40px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-title-main {
    font-size: 2.6rem;
  }

  .hero-tagline-brush {
    font-size: 1.15rem;
    padding: 6px 18px;
  }

  .hero-left h2 {
    font-size: 2.2rem !important;
  }

  .hero-student-img {
    max-height: 340px !important;
  }

  .hero-modes-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Downward Showcase Section */
  .transform-img-3d {
    max-height: 260px !important;
  }

  /* Grids */
  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  /* Dashboard Layout */
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    display: none;
  }

  .dashboard-main {
    padding: 16px;
  }

  /* ==============================================================================
     CBT Mobile Responsive Layout (< 992px)
     ============================================================================== */
  .cbt-header {
    padding: 8px 12px 0 12px !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  .cbt-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 6px;
  }

  .cbt-header-left .brand-title {
    font-size: 1.02rem !important;
  }

  .cbt-logo-icon {
    width: 18px !important;
    height: 18px !important;
  }

  .cbt-timer-badge {
    padding: 3px 10px !important;
    font-size: 0.92rem !important;
    letter-spacing: 0.5px !important;
  }

  .cbt-timer-icon {
    width: 14px !important;
    height: 14px !important;
  }

  .cbt-header-sub {
    width: 100%;
    padding: 4px 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 6px;
  }

  .cbt-sub-title {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    max-width: 65%;
  }

  .cbt-sub-counter {
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .cbt-header-progress-wrap {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
  }

  .cbt-header-progress-bar {
    height: 100%;
    background-color: #facc15;
    transition: width 0.3s ease;
  }

  .cbt-body {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    flex: 1;
    overflow: hidden;
    min-height: 0;
  }

  .cbt-question-pane {
    padding: 12px 14px 16px 14px !important;
    flex: 1;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
  }

  .cbt-question-header {
    margin-bottom: 12px !important;
    padding-bottom: 8px !important;
  }

  .question-badge {
    padding: 4px 10px !important;
    font-size: 0.9rem !important;
    border-radius: 6px !important;
  }

  .question-statement {
    font-size: 1.02rem !important;
    line-height: 1.55 !important;
    margin-bottom: 16px !important;
  }

  .options-list {
    gap: 10px !important;
    margin-bottom: 16px !important;
  }

  .option-item {
    padding: 11px 14px !important;
    border-radius: 10px !important;
    gap: 10px !important;
  }

  .option-text {
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
  }

  .option-radio {
    width: 17px !important;
    height: 17px !important;
    margin-top: 2px !important;
  }

  .cbt-actions-bar {
    position: sticky !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100 !important;
    padding: 10px 12px !important;
    padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
    background-color: #ffffff !important;
    border-top: 1px solid var(--border-slate) !important;
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.08) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  .cbt-btn-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    font-size: 0.85rem !important;
    padding: 7px 11px !important;
    font-weight: 600 !important;
  }

  .cbt-actions-bar #btn-next {
    padding: 7px 16px !important;
  }

  /* CBT Mobile Palette Pane (Slide-in Drawer) */
  .cbt-palette-pane {
    position: fixed;
    top: 0;
    right: -340px;
    width: min(320px, 86vw);
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    z-index: 1050;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex !important;
    flex-direction: column;
    padding: 16px 14px;
    overflow-y: auto;
  }

  .cbt-palette-pane.mobile-open {
    right: 0 !important;
  }

  .palette-header {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--navy-dark);
  }

  .palette-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 16px !important;
  }

  .palette-btn {
    height: 38px !important;
    font-size: 0.88rem !important;
    border-radius: 6px !important;
  }

  .palette-legend {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    font-size: 0.78rem;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
  }

  .legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .cbt-palette-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
  }

  .cbt-palette-backdrop.show {
    display: block !important;
  }
}

@media (max-width: 768px) {

  /* Motivational Quote Strip on Mobile */
  .motivational-quote-strip {
    padding: 9px 12px !important;
  }

  .quote-text-focus {
    font-size: 0.95rem !important;
    line-height: 1.4;
  }

  .quote-author-focus {
    font-size: 0.88rem !important;
  }

  .badge-3d-gold {
    font-size: 0.72rem !important;
    padding: 3px 10px !important;
  }

  .badge-3d-lang {
    font-size: 0.68rem !important;
    padding: 2px 7px !important;
  }

  /* Registration Form */
  .registration-wrapper {
    padding: 16px 12px;
  }

  .registration-card {
    padding: 24px 18px !important;
    border-radius: 18px;
  }

  /* Results Screen */
  .results-metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
}

@media (max-width: 576px) {

  /* Small Mobile Phones */
  .main-navbar {
    padding: 6px 12px !important;
  }

  .brand-logo-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 9px !important;
  }

  .brand-title {
    font-size: 1.2rem !important;
  }

  .brand-tagline-sub {
    font-size: 0.58rem !important;
  }

  @media (max-width: 420px) {
    .brand-tagline-sub {
      display: none !important;
    }
  }

  .hero-title-main {
    font-size: 1.85rem !important;
  }

  .hero-left h2 {
    font-size: 1.65rem !important;
  }

  .why-choose-grid {
    grid-template-columns: 1fr !important;
  }

  .stats-grid {
    grid-template-columns: 1fr !important;
  }

  .results-metrics-grid {
    grid-template-columns: 1fr !important;
  }

  .card,
  .mode-card {
    padding: 14px !important;
  }

  .pattern-table th,
  .pattern-table td {
    padding: 8px 10px !important;
    font-size: 0.8rem !important;
  }
}

/* ==============================================================================
   Language Switcher Controls (CBT Engine & Review)
   ============================================================================== */
.cbt-lang-switch-wrap, .review-lang-switch-wrap {
  display: inline-flex;
  align-items: center;
  background-color: #ffffff;
}

.cbt-lang-switch-wrap .btn, .review-lang-switch-wrap .btn {
  font-size: 0.82rem !important;
  padding: 3px 12px !important;
  border-radius: 9999px !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #334155 !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.cbt-lang-switch-wrap .btn:hover, .review-lang-switch-wrap .btn:hover {
  background-color: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f2963 !important;
}

.cbt-lang-switch-wrap .btn.active, .review-lang-switch-wrap .btn.active {
  background-color: #0f2963 !important;
  color: #ffffff !important;
  border-color: #0f2963 !important;
  box-shadow: 0 1px 3px rgba(15, 41, 99, 0.3) !important;
}

/* ==============================================================================
   FLOATING WHATSAPP BUTTON & HELP / DOUBT WIDGET
   ============================================================================== */
.floating-whatsapp-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1060;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

.floating-whatsapp-wrap * {
  pointer-events: auto;
}

.floating-whatsapp-bubble {
  background: #ffffff;
  color: #0f172a;
  padding: 9px 13px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(37, 211, 102, 0.2);
  margin-bottom: 10px;
  border: 1.5px solid rgba(37, 211, 102, 0.35);
  animation: floatWhatsappBubble 3s ease-in-out infinite alternate;
  max-width: 290px;
  position: relative;
}

.floating-whatsapp-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 28px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #ffffff;
}

.whatsapp-bubble-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.4);
}

.floating-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff !important;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid rgba(255, 255, 255, 0.35);
  position: relative;
}

.floating-whatsapp-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.6), 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff !important;
}

.floating-whatsapp-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.whatsapp-badge-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background-color: #ef4444;
  border: 2px solid #ffffff;
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes floatWhatsappBubble {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-4px); }
}

@media (max-width: 576px) {
  .floating-whatsapp-wrap {
    bottom: 20px;
    right: 16px;
  }
  .floating-whatsapp-btn {
    padding: 12px;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    justify-content: center;
  }
  .floating-whatsapp-text {
    display: none !important;
  }
  .floating-whatsapp-bubble {
    display: none !important;
  }
}
