/* 🌐 Global Styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: #f8f8f8;
  overflow-x: hidden;
  padding-top: 80px; /* Space for fixed navbar */
}

/* Hero Section with Animated Text */
.hero-animated-text {
  position: relative; /* Needed for video background positioning */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* Full viewport height */
  background: transparent; /* Make the hero section transparent */
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.hero-video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Place video behind the text */
  overflow: hidden;
}

.hero-video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure video covers the entire area */
}

.animated-text-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1; /* Ensure text is above the video */
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for readability */
  padding: 0; /* Remove padding */
  border-radius: 0; /* Remove rounded corners */
}

.animated-typing {
  font-family: 'Montserrat', sans-serif; /* New modern, bold font */
  font-size: 6rem; /* Increased font size */
  font-weight: 700; /* Bold */
  white-space: nowrap;
  overflow: hidden;
  border-right: 0.15em solid #00aaff; /* Blinking cursor */
  display: inline-block;
  animation: blink-caret 0.75s step-end infinite; /* Only keep the blinking cursor animation */
}

.hero-tagline {
  font-size: 1.5rem;
  margin-top: 20px;
  color: #a0aec0; /* Lighter text color */
  opacity: 0;
  animation: fadeIn 2s ease 3.5s forwards; /* Fade in after typing animation */
}

/* Fade-in Animation */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Typing Animation Keyframes */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* Cursor Blinking Animation Keyframes */
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: #00aaff; }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .animated-typing {
    font-size: 3rem; /* Increased from 2.5rem */
  }
  .hero-tagline {
    font-size: 1.2rem; /* Decrease tagline size */
    padding: 0 15px; /* Add some horizontal padding */
  }
}

@media (max-width: 480px) {
  .animated-typing {
    font-size: 2.2rem; /* Increased from 1.8rem */
  }
  .hero-tagline {
    font-size: 1rem; /* Decrease tagline size further */
  }
}

/* 🔷 Navbar Styling */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Space out items */
  padding: 10px 5%;
  background-color: #e6f4f1;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.nav-logo img {
  height: 60px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.nav-logo:hover img {
  transform: scale(1.1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 600;
}

.nav-link {
  color: #0f172a;
  text-decoration: none;
  font-size: 16px;
  position: relative;
  transition: all 0.3s ease;
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: #0077b6;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: #0077b6;
  transform: translateY(-3px);
}

.user-type {
  background-color: #38bdf8;
  color: white;
  border-radius: 40px;
  padding: 8px 12px;
  font-size: 12px;
  /* position: absolute; */
  /* top: -5px;
  right: -12px; */
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

/* .nav-item:hover .badge {
  transform: scale(1.2);
} */


/* 🔽 Dropdown */
.dropdown {
  position: relative;
}

/* Hide mobile-only links on desktop */
.mobile-only-links {
  display: none;
}



.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  border-radius: 6px;
  min-width: 160px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: #0f172a;
  text-decoration: none;
  transition: all 0.3s;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
}

.login-btn-liquid {
  position: relative;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  border: none;
  border-radius: 50px;
  background: linear-gradient(90deg, #A1ECFF, #D9B4FF, #F7B0E6);
  background-size: 200% auto;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(161, 236, 255, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease-in-out;
  z-index: 1;
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 10px rgba(161, 236, 255, 0.4), 0 0 0 rgba(217, 180, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(161, 236, 255, 0.6), 0 0 10px rgba(247, 176, 230, 0.3);
  }
  100% {
    box-shadow: 0 0 10px rgba(161, 236, 255, 0.4), 0 0 0 rgba(217, 180, 255, 0.2);
  }
}

.login-btn-liquid:hover {
  background-position: right center;
  transform: translateY(-3px) scale(1.05);
}

/* Menu Toggle for Mobile */
.menu-toggle {
  display: none; /* Hidden by default */
  flex-direction: column;
  cursor: pointer;
  gap: 6px; /* Space between bars */
  /* Explicitly set width, but let height be determined by children + gap */
  width: 30px; 
  justify-content: center; /* Center spans vertically */
  align-items: center; /* Center spans horizontally */
}

.menu-toggle span {
  width: 30px;
  height: 4px;
  background: #0f172a;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Open/Close Menu Toggle Animation */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}


/* 🚀 Hero Video Section */
.hero-video {
  position: relative;
  width: 100%;
  height: 87vh;
  overflow: hidden;
  background-color: #000;
}

.hero-full-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* 🎥 Background Video Section */
.plans-video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.plans-video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

/* ✅ Plans Section */
.plans-section {
  position: relative;
  padding: 60px 20px;
  z-index: 1;
  color: white;
}

/* ✅ Plans Heading */
.plans-heading {
  text-align: center;
  margin-bottom: 60px;
}

.plans-heading h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
}

.plans-heading .subheading {
  font-size: 18px;
  font-weight: 500;
  color: #ffffffcc;
}

/* ✅ Plan Cards Layout */
.plans-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

/* ✅ Individual Plan Card */
.plan-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 40px 30px;
  width: 340px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box; /* Added for consistent box model */
}

.plan-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.plan-card h3 {
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #ffffff;
  text-align: center;
  width: 100%;
}

/* ✅ Plan Points */
.plan-point {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  position: relative;
  padding-left: 28px;
  width: 100%; /* Ensure it takes full available width */
  color: #ffffff;
  word-wrap: break-word; /* Ensure long words break and wrap */
  box-sizing: border-box; /* Added for consistent box model */
  min-height: fit-content; /* Ensure content fits */
}

.plan-point::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #00ff9f;
  font-size: 18px;
  font-weight: bold;
}

/* ✅ Enroll Button */
.enroll-btn {
  margin-top: auto;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.enroll-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

/* ✅ Responsive Design */
@media (max-width: 768px) {
  .hero-video {
    height: calc(100vh - 80px);
  }
  .hero-full-video {
    object-fit: cover;
    object-position: center;
  }
  .plans-row {
    flex-direction: column;
    align-items: center;
  }

  .plan-card {
    width: 100%;
    max-width: 90%;
  }

  .plans-heading h2 {
    font-size: 28px;
  }

  .plans-heading .subheading {
    font-size: 16px;
  }
}

/* Only for "Why Choose" Section Below */
.why-section {
  padding: 60px 20px;
  background-color: #dbeafe; /* calm soft light-blue */
}

.why-section h2 {
  font-size: 35px;
  text-align: center;
  margin-bottom: 60px;
  color: #000; /* Main heading black */
}

.feature-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.feature-block.reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
  padding-left: 25px; /* slight left padding for better alignment */
  transition: transform 0.3s ease;
}

.feature-text h3 {
  font-size: 25px;
  margin-bottom: 15px;
  color: #000; /* dark black heading */
}

.feature-text p {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 550; /* slightly bold */
}

.feature-text:hover {
  transform: translateY(-5px); /* hover lift effect */
}

.feature-image {
  flex: 1;
  text-align: center;
}

.feature-image img {
  max-width: 100%;
  max-height: 260px;
  border-radius: 10px;
  object-fit: cover;
}

/* Gradient Background Animation */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Payment Page Styles */
.payment-outer {
  padding: 40px 20px;
  background-color: #f8f8f8;
  min-height: calc(100vh - 80px);
}

.payment-section {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.payment-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #1a1a1a;
}

.plan-select-section {
  margin-bottom: 30px;
}

.plan-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.plan-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 2px solid #e2e8f0;
}

.plan-item:hover {
  transform: translateY(-2px);
  border-color: #38bdf8;
  background-color: #f0f9ff;
  box-shadow: 0 4px 15px rgba(0, 119, 182, 0.1);
}

.plan-name {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

.plan-price {
  font-size: 20px;
  font-weight: 700;
  color: #0077b6;
  color: #0077b6;
}

.payment-referral-group {
  margin-bottom: 30px;
}

.payment-referral-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.payment-referral-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
}

.row-title {
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0;
  color: #333;
}

.payment-row {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.method-box {
  flex: 1;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.method-box:hover {
  border-color: #38bdf8;
  background-color: #f0f9ff;
}

.method-icon {
  margin-bottom: 15px;
}

.method-title {
  font-weight: 600;
  margin-bottom: 5px;
  color: #1a1a1a;
}

.method-desc {
  font-size: 14px;
  color: #666;
}

.card-form {
  margin-top: 20px;
}

.card-form .form-group {
  margin-bottom: 20px;
}

.pay-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(90deg, #0077b6, #00b4d8);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
}

.whatsapp-box {
  margin-top: 30px;
  padding: 20px;
  background-color: #f0fdf4;
  border-radius: 12px;
  border: 1px solid #86efac;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background-color: #25d366;
  color: white !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.whatsapp-btn:hover {
  background-color: #22c55e;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .payment-row {
    flex-direction: column;
  }
  
  .method-box {
    width: 100%;
  }
}

/* Responsive for mobile devices */
@media (max-width: 768px) {
  .feature-block,
  .feature-block.reverse {
    flex-direction: column;
    text-align: center;
  }

  .feature-text {
    padding-left: 0;
  }
}

/* Testimonials Section Styling */
.testimonial-section {
  background: linear-gradient(to right, #e3f2fd, #ffffff); /* Light blueish gradient */
  padding: 80px 20px;
  text-align: center;
}

.testimonial-heading {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 60px;
  color: #0d47a1; /* Deep blue */
}

.testimonial-container {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.testimonial-box {
  background-color: #fefefe; /* very light box bg */
  border-left: 5px solid #42a5f5; /* blue accent on left */
  border-radius: 12px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  padding: 25px 20px;
  flex: 1 1 300px;
  max-width: 350px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
  background-color: #f1f8ff; /* subtle hover background */
}

.testimonial-text {
  font-size: 18px;
  font-weight: 700; /* uniform weight */
  color: #37474f;
  line-height: 1.7;
  margin-bottom: 15px;
}

.testimonial-user {
  font-size: 16px;
  font-weight: 600;
  color: #1565c0; /* distinctive blue for name */
  margin-top: 10px;
  letter-spacing: 0.5px;
}

/* ====== Footer Section Styling ====== */
.footer {
  background-color: #d0efff;
  color: #0a1734;
  padding: 60px 20px 30px;
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
}

/* 🔹 Sections */
.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  max-width: 280px;
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 16px;
  font-weight: 600;
  color: #0a1734;
}

/* 🔹 Titles */
.footer-title {
  font-size: 18px;
  font-weight: 700;
  margin: 25px 0 15px;
}

/* 🔹 Buttons */
.footer-btn {
  display: block;
  margin: 6px 0;
  padding: 10px 20px;
  background: linear-gradient(90deg, #38bdf8, #3b82f6);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  max-width: 200px;
}

.footer-btn:hover {
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  transform: translateY(-2px);
}

/* 🔹 Copyright */
.footer .copyright {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: #5c6e85;
}

/* 🔹 Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-section {
    margin-bottom: 30px;
  }

  .footer-btn {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Specific Navbar Responsiveness */
/* Adjusted breakpoint for initial navbar changes, to give more room before full collapse */
@media (max-width: 850px) { /* Common breakpoint for medium tablets */
  .navbar {
    padding: 10px 3%; /* Slightly reduce horizontal padding */
  }
  .nav-links {
    gap: 15px; /* Reduce gap between links */
  }
  .login-btn-liquid {
    padding: 10px 20px; /* Smaller button */
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 10px 20px;
    justify-content: space-between; /* Ensure space between items */
    flex-wrap: nowrap; /* Prevent wrapping before menu toggle */
  }

  .nav-links {
    /* Hide nav links on smaller screens and only show when active */
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: #e6f4f1;
    position: absolute;
    top: 80px; /* Below the fixed navbar */
    left: 0;
    width: 100%;
    padding: 15px;
    z-index: 999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
  }

  .nav-links.active {
    display: flex; /* Show when active */
  }

  .nav-links .nav-link,
  .nav-links .dropdown {
    display: block;
    width: 100%; /* Full width for menu items */
    text-align: left;
    padding: 12px 0; /* Add vertical padding */
    text-decoration: none;
    color: #0f172a;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  }

  .nav-links .nav-link:last-child {
    border-bottom: none;
  }

  .nav-links .dropdown-content {
    position: static; /* Remove absolute positioning */
    transform: none; /* Remove transform */
    width: 100%;
    box-shadow: none; /* No shadow for dropdown in mobile */
    background-color: transparent; /* Transparent background */
    border-radius: 0;
    padding-left: 20px; /* Indent dropdown items */
    display: block; /* Always show in mobile */
  }

  .nav-links .dropdown-content a {
    padding: 8px 0;
  }

  /* Disable hover behavior on mobile */
  .dropdown:hover .dropdown-content {
    display: none; /* Disable hover behavior on mobile */
  }

  /* Hide dropdown arrow on mobile - replace text */
  .nav-links .dropdown-btn {
    position: relative;
  }

  .nav-links .dropdown-btn::before {
    content: 'Other';
    position: absolute;
    left: 0;
    top: 0;
    background: inherit;
    color: inherit;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
  }

  /* Ensure dropdown content shows on mobile when nav is active */
  .nav-links.active .dropdown-content {
    display: block !important;
  }

  /* Hide desktop dropdown on mobile, show mobile-only links */
  .nav-links .dropdown {
    display: none;
  }

  .nav-links .mobile-only-links {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .nav-links .mobile-dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 0 10px 20px; /* Indent mobile dropdown items */
    border-left: 3px solid transparent;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #64748b;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 2px;
  }

  .nav-links .mobile-dropdown-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }

  .nav-links .mobile-dropdown-item:hover,
  .nav-links .mobile-dropdown-item.active {
    border-left-color: #0ea5e9;
    background-color: rgba(14, 165, 233, 0.1);
  }

  .menu-toggle {
    display: flex; /* Show the menu toggle button */
    order: 3; /* Ensure it appears after login/signup if they are on same line */
    margin-left: 15px; /* Space from the login/signup button */
  }

  .login-signup {
    order: 2; /* Ensure it's between logo and menu toggle if needed */
    margin-left: auto; /* Push login/signup to the right */
  }
  .nav-logo {
    order: 1;
  }

  /* Plan section responsiveness (already good) */
  .plan-card {
    width: 100%;
    max-width: 90%; /* Adjust max-width if needed */
    padding: 25px 15px; /* Reduce padding inside the card for smaller screens */
  }

  .plan-point {
    font-size: 14px; /* Slightly reduce font size for better fit */
    padding-left: 25px; /* Adjust padding to ensure checkmark is visible */
    margin-bottom: 10px; /* Reduce bottom margin */
    line-height: 1.4; /* Adjust line height for better text wrapping */
  }

  .plan-point::before {
    font-size: 16px; /* Keep checkmark slightly larger if desired */
    top: 2px; /* Adjust vertical alignment of checkmark */
  }

  .plans-heading h2 {
    font-size: 24px;
  }

  .plans-heading .subheading {
    font-size: 14px;
  }
}

/* Targeting specific small screen sizes for fine-tuning */
@media (max-width: 480px) { /* General for most small phones */
  .navbar {
    padding: 10px 10px; /* Reduced padding for more space */
  }
  .nav-logo img {
    height: 48px; /* Slightly smaller logo */
  }
  .login-btn-liquid {
    padding: 7px 16px; /* Smaller button */
    font-size: 12px;
  }
  .menu-toggle {
    /* Removed explicit height from here! */
    width: 28px; /* Keeping this for the container's flexible width */
    gap: 4px; /* Reduced gap */
    margin-left: 8px; /* Reduced margin to keep it on screen */
  }
  .menu-toggle span {
    width: 28px; /* Control span width */
    height: 3px; /* Control span thickness */
  }
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg); /* Adjusted transform for smaller size */
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg); /* Adjusted transform for smaller size */
  }
}

@media (max-width: 425px) {
  .hero-video {
    height: calc(100vh - 80px);
  }
  .hero-full-video {
    object-fit: cover;
    object-position: center;
  }
  .plan-card {
    padding: 20px 10px; /* Further reduce padding for very small screens */
  }
  .plan-point {
    font-size: 13px; /* Further reduce font size */
    padding-left: 22px; /* Adjust checkmark padding */
  }
  .plan-point::before {
    font-size: 15px;
  }
  .navbar .nav-logo img {
    height: 45px; /* Even smaller logo */
  }
  .login-btn-liquid {
    padding: 6px 14px; /* Smaller button */
    font-size: 11px;
  }
  .menu-toggle {
    /* Removed explicit height from here! */
    width: 25px;
    gap: 3px;
    margin-left: 6px;
  }
  .menu-toggle span {
    width: 25px;
    height: 3px;
  }
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg); /* Adjusted transform */
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg); /* Adjusted transform */
  }
}

@media (max-width: 375px) {
  .navbar {
    padding: 10px 8px; /* Even tighter padding */
  }
  .navbar .nav-logo img {
    height: 40px; /* Smaller logo */
  }
  .login-btn-liquid {
    padding: 5px 12px; /* Smaller button */
    font-size: 10px; /* Smallest font size for button */
  }
  .menu-toggle {
    /* Removed explicit height from here! */
    width: 22px;
    gap: 3px;
    margin-left: 5px;
  }
  .menu-toggle span {
    width: 22px;
    height: 2px; /* Thinner bars */
  }
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }
  .plan-card h3 {
    font-size: 20px;
  }
  .plan-point {
    font-size: 11px;
    padding-left: 18px;
  }
  .plan-point::before {
    font-size: 13px;
  }
}

/* 💳 Payment Instructions Section */
.payment-instructions {
  margin: 40px 0;
  padding: 40px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.payment-instructions::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9, #06b6d4);
  border-radius: 20px 20px 0 0;
}

.instructions-title {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
  color: #1e293b;
  background: linear-gradient(90deg, #1e293b, #0f172a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-bottom: 15px;
}

.instructions-title::after {
  content: "📋";
  position: absolute;
  right: -40px;
  top: 0;
  font-size: 24px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

.instructions-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.instruction-step {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 2px solid #f1f5f9;
  position: relative;
  transition: all 0.4s ease;
  overflow: hidden;
}

.instruction-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.05), rgba(14, 165, 233, 0.02));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.instruction-step:hover {
  transform: translateY(-8px);
  border-color: #38bdf8;
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.15);
}

.instruction-step:hover::before {
  opacity: 1;
}

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.instruction-step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.step-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 15px 0;
  background: linear-gradient(90deg, #1e293b, #334155);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.step-content p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 1;
}

.whatsapp-contact {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white !important;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  margin-top: 15px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  position: relative;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  border: none;
  outline: none;
}

.whatsapp-contact::before {
  content: "📱";
  margin-right: 8px;
}

.whatsapp-contact:hover,
.whatsapp-contact:focus {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  color: white !important;
  text-decoration: none;
  background: linear-gradient(135deg, #128c7e, #25d366);
}

.whatsapp-contact:active {
  transform: scale(0.98);
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.5);
}

/* WhatsApp Click Animation */
@keyframes whatsappPulse {
  0% { 
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    transform: scale(1.02);
  }
  100% { 
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transform: scale(1);
  }
}

.whatsapp-contact {
  animation: whatsappPulse 2s infinite;
}

.whatsapp-contact:hover {
  animation: none;
}

/* Tooltip for WhatsApp Contact */
.whatsapp-contact::after {
  content: "Click to open WhatsApp chat";
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}

.whatsapp-contact:hover::after {
  opacity: 1;
  visibility: visible;
  bottom: -40px;
}

.payment-note {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 16px;
  padding: 30px;
  border-left: 5px solid #f59e0b;
  position: relative;
  overflow: hidden;
}

.payment-note::before {
  content: "⚠️";
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 24px;
  opacity: 0.7;
}

.payment-note h3 {
  font-size: 20px;
  font-weight: 700;
  color: #92400e;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-note h3::before {
  content: "🔔";
  font-size: 20px;
}

.payment-note ul {
  margin: 0;
  padding-left: 20px;
  color: #78350f;
}

.payment-note li {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.6;
  position: relative;
  transition: transform 0.3s ease;
}

.payment-note li:hover {
  transform: translateX(5px);
}

.payment-note li::marker {
  color: #f59e0b;
}

/* ✨ Enhanced Animations and Effects */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% { box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3); }
  50% { box-shadow: 0 6px 25px rgba(56, 189, 248, 0.5); }
  100% { box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3); }
}

.instruction-step {
  animation: fadeInUp 0.6s ease forwards;
}

.instruction-step:nth-child(1) { animation-delay: 0.1s; }
.instruction-step:nth-child(2) { animation-delay: 0.2s; }
.instruction-step:nth-child(3) { animation-delay: 0.3s; }
.instruction-step:nth-child(4) { 
  animation-delay: 0.4s; 
  grid-column: 1 / -1;
  max-width: 500px;
  margin: 0 auto;
}

.step-number:hover {
  animation: pulse 1.5s infinite;
}

.payment-instructions {
  animation: fadeInUp 0.8s ease forwards;
}

.payment-note {
  animation: fadeInUp 1s ease forwards;
}

/* 🔄 Loading State Animation */
.payment-instructions::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9, #06b6d4);
  border-radius: 20px;
  animation: loadingBar 3s ease-in-out infinite;
}

@keyframes loadingBar {
  0% { width: 0%; }
  50% { width: 100%; }
  100% { width: 0%; }
}

/* Enhanced Payment Methods Section */
.payment-methods-section {
  margin-top: 50px;
  padding: 40px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 16px;
  position: relative;
}

.payment-methods-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
  background: linear-gradient(90deg, #1e293b, #0f172a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  border-radius: 2px;
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.payment-method-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  border: 2px solid #e2e8f0;
  position: relative;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}

.payment-method-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(14, 165, 233, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.payment-method-card:hover {
  transform: translateY(-8px);
  border-color: #38bdf8;
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.12);
}

.payment-method-card:hover::before {
  opacity: 1;
}

.payment-method-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f1f5f9;
  position: relative;
  flex-shrink: 0;
}

.payment-method-header::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  transition: width 0.3s ease;
}

.payment-method-card:hover .payment-method-header::after {
  width: 100%;
}

.payment-logo {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  padding: 8px;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.payment-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1) contrast(1.1);
  transition: all 0.3s ease;
}

.payment-method-card:hover .payment-logo {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.payment-method-card:hover .payment-logo img {
  filter: brightness(1.1) contrast(1.2);
}

.payment-logo-placeholder {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.payment-method-card:hover .payment-logo-placeholder {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.payment-method-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  background: linear-gradient(90deg, #1e293b, #334155);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.payment-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-details p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  transition: transform 0.3s ease;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.payment-details p:hover {
  transform: translateX(3px);
  color: #0ea5e9;
}

.payment-details strong {
  color: #334155;
  font-weight: 600;
  min-width: 100px;
  flex-shrink: 0;
}

/* 📱 Responsive Design for Payment Instructions */
@media (max-width: 1024px) {
  .instructions-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .payment-instructions {
    padding: 30px 20px;
    margin: 30px 0;
  }
  
  .instructions-title {
    font-size: 28px;
  }
  
  .instructions-title::after {
    right: -30px;
    font-size: 20px;
  }
  
  .instructions-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .instruction-step {
    padding: 25px;
  }
  
  .step-number {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
  
  .step-content h3 {
    font-size: 18px;
  }
  
  .payment-note {
    padding: 25px;
  }
  
  .payment-note::before {
    top: 15px;
    right: 20px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .payment-instructions {
    padding: 25px 15px;
  }
  
  .instructions-title {
    font-size: 24px;
  }
  
  .instructions-title::after {
    display: none;
  }
  
  .instruction-step {
    padding: 20px;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .step-content h3 {
    font-size: 16px;
  }
  
  .step-content p {
    font-size: 14px;
  }
  
  .whatsapp-contact {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .whatsapp-contact::after {
    font-size: 11px;
    padding: 3px 8px;
    bottom: -30px;
  }
  
  .whatsapp-contact:hover::after {
    bottom: -35px;
  }
  
  .payment-note {
    padding: 20px;
  }
  
  .payment-note h3 {
    font-size: 18px;
  }
  
  .payment-note li {
    font-size: 14px;
  }
}

/* 📱 Enhanced Responsive Design for Payment Methods */
@media (max-width: 1200px) {
  .payment-methods-grid {
    gap: 20px;
  }
  
  .payment-method-card {
    padding: 20px;
    min-height: 170px;
  }
  
  .payment-details p {
    font-size: 13px;
  }
  
  .payment-details strong {
    min-width: 90px;
  }
}

@media (max-width: 900px) {
  .payment-methods-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  
  .payment-method-card {
    min-height: 160px;
  }
  
  .payment-method-header h3 {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .payment-methods-section {
    padding: 30px 20px;
  }
  
  .payment-methods-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .payment-method-card {
    padding: 20px;
    min-height: auto;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .payment-details strong {
    min-width: 80px;
  }
}

@media (max-width: 480px) {
  .payment-method-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .payment-method-header::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .payment-logo {
    width: 60px;
    height: 60px;
  }
  
  .payment-details p {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }
  
  .payment-details strong {
    min-width: auto;
  }
}

@media (max-width: 320px) {
  .navbar {
    padding: 10px 5px; /* Absolute minimal padding */
  }
  .nav-logo img {
    height: 35px; /* Smallest logo size */
  }
  .login-btn-liquid {
    padding: 4px 8px; /* Smallest button size */
    font-size: 9px; /* Absolute smallest font size for button */
    white-space: nowrap; /* Ensure button text does not wrap */
  }
  .menu-toggle {
    /* Removed explicit height from here! */
    width: 20px;
    gap: 2px; /* Smallest gap */
    margin-left: 4px; /* Minimal margin */
  }
  .menu-toggle span {
    width: 20px;
    height: 2px;
  }
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(4.5px) rotate(45deg); /* Adjusted transform for tight fit */
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-4.5px) rotate(-45deg); /* Adjusted transform for tight fit */
  }
  .plans-heading h2 {
    font-size: 20px;
  }
  .plans-heading .subheading {
    font-size: 12px;
  }
  .plan-card h3 {
    font-size: 18px;
  }
  .plan-point {
    font-size: 10px;
    padding-left: 16px;
  }
  .plan-point::before {
    font-size: 12px;
  }
}

/* ====== Login Page Styles (Centered, No Image) ====== */
.login-section {
  padding: 20px;
  background-color: #f8f8f8;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  width: 420px;
  max-width: 90vw;
  margin: 0 auto;
  flex-shrink: 0;
  position: relative;
}

.login-card {
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

.login-card h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 10px;
  color: #0f172a;
}

.login-subtext {
  text-align: center;
  font-size: 15px;
  color: #64748b;
  margin-bottom: 25px;
}

/* ====== Signup Page Styles (Full-width with Image) ====== */
.signup-section {
  padding: 60px 20px;
  background-color: #f8f8f8;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

.signup-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  box-sizing: border-box;
}

.signup-card {
  flex: 1;
  padding: 50px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.signup-hero {
  flex: 1;
  position: relative;
  display: flex;
  background: linear-gradient(135deg, #e6f4f1, #d0efff);
}

.signup-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.signup-quote {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
}

/* ====== Common Form Styles ====== */
.login-form,
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  overflow: hidden;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100% !important;
  box-sizing: border-box;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.form-group input {
  padding: 12px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.form-group input:focus {
  border-color: #0077b6;
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
  outline: none;
}

.forgot-link {
  font-size: 12px;
  color: #0077b6;
  text-decoration: none;
  align-self: flex-end;
  margin-top: 3px;
}

/* ====== Error Message Styles ====== */
.error-container {
  background: linear-gradient(135deg, #fff5f5, #fed7d7);
  border: 1px solid #fc8181;
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 2px 4px rgba(252, 129, 129, 0.1);
  width: 100% !important;
  max-width: 100% !important;
  word-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
  overflow: hidden;
}

.error-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.error-content {
  flex: 1;
  max-width: calc(100% - 30px);
  word-wrap: break-word;
  word-break: break-word;
  overflow: hidden;
}

.error-message {
  color: #c53030;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 5px;
}

.error-message:last-child {
  margin-bottom: 0;
}

/* Field-specific errors */
.field-error-container {
  margin-top: 5px;
}

.field-error {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fed7d7;
  border: 1px solid #fc8181;
  border-radius: 4px;
  padding: 6px 10px;
  margin-bottom: 3px;
}

.field-error .error-icon {
  font-size: 12px;
  color: #c53030;
}

.field-error .error-text {
  color: #c53030;
  font-size: 12px;
  font-weight: 500;
}

.field-error:last-child {
  margin-bottom: 0;
}

/* Success messages */
.success-container {
  background: linear-gradient(135deg, #f0fff4, #c6f6d5);
  border: 1px solid #68d391;
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 2px 4px rgba(104, 211, 145, 0.1);
  width: 100% !important;
  max-width: 100% !important;
  word-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
  overflow: hidden;
}

.success-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.success-content {
  flex: 1;
  color: #2f855a;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  max-width: calc(100% - 30px);
  word-wrap: break-word;
  word-break: break-word;
  overflow: hidden;
}

/* Form input error state */
.form-group input.error {
  border-color: #fc8181;
  background-color: #fff5f5;
}

.form-group input.error:focus {
  border-color: #c53030;
  box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.1);
}

.auth-btn {
  padding: 12px;
  background: linear-gradient(90deg, #0072ff, #00c6ff);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 114, 255, 0.3);
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 8px 0;
  color: #64748b;
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
  margin: 0 8px;
}

.social-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-btn {
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: white;
  width: 100%;
  box-sizing: border-box;
}

.social-btn img {
  width: 18px;
  height: 18px;
}

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

.auth-switch a {
  color: #0077b6;
  text-decoration: none;
  font-weight: 600;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-check label {
  font-size: 12px;
  color: #64748b;
}

/* ====== Responsive Adjustments ====== */
@media (max-width: 768px) {
  /* Signup page adjustments */
  .signup-section {
    padding: 40px 15px;
  }
  
  .signup-container {
    flex-direction: column;
    margin: 0 10px;
  }
  
  .signup-card {
    padding: 40px 30px;
  }
  
  .signup-hero {
    min-height: 250px;
  }
  
/* ===== LOGIN PAGE RESPONSIVE DESIGN ===== */

/* Tablet and small desktop (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .login-section {
    padding: 30px 20px;
  }
  
  .login-container {
    width: 450px;
    max-width: 85vw;
  }
  
  .login-card {
    padding: 35px 25px;
  }
  
  .login-card h2 {
    font-size: 26px;
  }
}

/* Tablet (768px and below) */
@media (max-width: 768px) {
  .login-section {
    padding: 20px 15px;
    min-height: calc(100vh - 70px);
  }
  
  .login-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 12px;
  }
  
  .login-card {
    padding: 30px 25px;
  }
  
  .login-card h2 {
    font-size: 24px;
    margin-bottom: 8px;
  }
  
  .login-subtext {
    font-size: 14px;
    margin-bottom: 20px;
  }
  
  .form-group {
    margin-bottom: 18px;
  }
  
  .form-group input {
    padding: 12px 15px;
    font-size: 15px;
  }
  
  .auth-btn {
    padding: 14px;
    font-size: 16px;
  }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 767px) and (min-width: 577px) {
  .login-section {
    padding: 15px 10px;
  }
  
  .login-container {
    width: calc(100vw - 20px);
    max-width: 450px;
    margin: 10px auto;
  }
  
  .login-card {
    padding: 25px 20px;
  }
  
  .login-card h2 {
    font-size: 22px;
  }
}

/* Mobile (576px and below) */
@media (max-width: 576px) {
  .login-section {
    padding: 10px 5px;
    min-height: calc(100vh - 60px);
  }
  
  .login-container {
    width: calc(100vw - 20px);
    max-width: 400px;
    margin: 10px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }
  
  .login-card {
    padding: 20px 15px;
  }
  
  .login-card h2 {
    font-size: 20px;
    margin-bottom: 6px;
  }
  
  .login-subtext {
    font-size: 13px;
    margin-bottom: 18px;
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  
  .form-group label {
    font-size: 14px;
    margin-bottom: 6px;
  }
  
  .form-group input {
    padding: 11px 12px;
    font-size: 14px;
    border-radius: 6px;
  }
  
  .auth-btn {
    padding: 12px;
    font-size: 15px;
    border-radius: 6px;
  }
  
  .auth-switch {
    font-size: 13px;
    margin-top: 15px;
  }
  
  .forgot-link {
    font-size: 12px;
  }
  
  /* Error messages responsive */
  .error-container,
  .success-container {
    padding: 10px 12px;
    margin-bottom: 15px;
    border-radius: 6px;
  }
  
  .error-content,
  .success-content {
    font-size: 13px;
  }
  
  .field-error {
    font-size: 12px;
    margin-top: 4px;
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  .login-section {
    padding: 8px 3px;
  }
  
  .login-container {
    width: calc(100vw - 16px);
    max-width: 350px;
    margin: 8px auto;
  }
  
  .login-card {
    padding: 18px 12px;
  }
  
  .login-card h2 {
    font-size: 18px;
  }
  
  .login-subtext {
    font-size: 12px;
    margin-bottom: 15px;
  }
  
  .form-group input {
    padding: 10px;
    font-size: 13px;
  }
  
  .auth-btn {
    padding: 11px;
    font-size: 14px;
  }
}

/* Extra Small Mobile (390px and below) */
@media (max-width: 390px) {
  .login-section {
    padding: 5px 2px;
    min-height: calc(100vh - 50px);
  }
  
  .login-container {
    width: calc(100vw - 12px);
    max-width: 320px;
    margin: 6px auto;
    border-radius: 8px;
  }
  
  .login-card {
    padding: 15px 10px;
  }
  
  .login-card h2 {
    font-size: 16px;
    margin-bottom: 4px;
  }
  
  .login-subtext {
    font-size: 11px;
    margin-bottom: 12px;
  }
  
  .form-group {
    margin-bottom: 12px;
  }
  
  .form-group label {
    font-size: 13px;
    margin-bottom: 4px;
  }
  
  .form-group input {
    padding: 9px 8px;
    font-size: 12px;
    border-radius: 4px;
  }
  
  .auth-btn {
    padding: 10px;
    font-size: 13px;
    border-radius: 4px;
  }
  
  .auth-switch {
    font-size: 12px;
    margin-top: 12px;
  }
  
  .forgot-link {
    font-size: 11px;
  }
}

/* Ultra Small Mobile (320px and below) */
@media (max-width: 320px) {
  .login-section {
    padding: 3px 1px;
  }
  
  .login-container {
    width: calc(100vw - 8px);
    max-width: 300px;
    margin: 4px auto;
  }
  
  .login-card {
    padding: 12px 8px;
  }
  
  .login-card h2 {
    font-size: 15px;
  }
  
  .login-subtext {
    font-size: 10px;
    margin-bottom: 10px;
  }
  
  .form-group input {
    padding: 8px 6px;
    font-size: 11px;
  }
  
  .auth-btn {
    padding: 9px;
    font-size: 12px;
  }
  
  .auth-switch {
    font-size: 11px;
  }
  
  .forgot-link {
    font-size: 10px;
  }
}
}

@media (max-width: 576px) {
  .signup-section {
    padding: 30px 10px;
  }
  
  .signup-container {
    margin: 0 5px;
    border-radius: 12px;
  }
  
  .login-container,
  .signup-card {
    padding: 25px 20px;
  }
  
  .login-card h2,
  .signup-card h2 {
    font-size: 24px;
  }
  
  .form-group input {
    padding: 10px 12px;
    font-size: 14px;
  }
  
  .auth-btn {
    padding: 10px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .signup-section {
    padding: 20px 5px;
  }
  
  .signup-container {
    margin: 0 2px;
    border-radius: 8px;
  }
  
  .signup-card {
    padding: 20px 15px;
  }
  
  .signup-card h2 {
    font-size: 22px;
    margin-bottom: 10px;
  }
  
  .auth-subtext {
    font-size: 13px;
    margin-bottom: 20px;
  }
  
  .form-group {
    gap: 4px;
  }
  
  .form-group label {
    font-size: 12px;
  }
  
  .form-group input {
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 6px;
  }
  
  .auth-btn {
    padding: 8px;
    font-size: 13px;
    border-radius: 6px;
  }
  
  .social-btn {
    padding: 8px;
    font-size: 13px;
  }
  
  .auth-switch {
    font-size: 12px;
  }
  
  .form-check label {
    font-size: 11px;
  }
}

@media (max-width: 375px) {
  .signup-section {
    padding: 15px 2px;
  }
  
  .signup-container {
    margin: 0 1px;
  }
  
  .signup-card {
    padding: 15px 10px;
  }
  
  .signup-card h2 {
    font-size: 20px;
  }
  
  .form-group input {
    padding: 7px 8px;
    font-size: 12px;
  }
  
  .auth-btn {
    padding: 7px;
    font-size: 12px;
  }
  
  .social-btn {
    padding: 7px;
    font-size: 12px;
  }
  
  .social-btn img {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 320px) {
  .signup-section {
    padding: 10px 1px;
  }
  
  .signup-container {
    margin: 0;
    border-radius: 6px;
  }
  
  .signup-card {
    padding: 12px 8px;
  }
  
  .signup-card h2 {
    font-size: 18px;
  }
  
  .auth-subtext {
    font-size: 12px;
  }
  
  .form-group input {
    padding: 6px 7px;
    font-size: 11px;
  }
  
  .auth-btn {
    padding: 6px;
    font-size: 11px;
  }
  
  .social-btn {
    padding: 6px;
    font-size: 11px;
  }
  
  .social-btn img {
    width: 14px;
    height: 14px;
  }
  
  .auth-switch {
    font-size: 11px;
  }
  
  .form-check label {
    font-size: 10px;
  }
}

/* ===== Invite a Friend Button ===== */
.invite-friend-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 5000;
  background: linear-gradient(90deg, #10b981, #38bdf8);
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 14px 28px 14px 20px;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(16,185,129,0.18);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  outline: none;
}
.invite-friend-btn:hover {
  transform: scale(1.07) translateY(-2px);
  box-shadow: 0 10px 32px rgba(56,189,248,0.22);
  background: linear-gradient(90deg, #38bdf8, #10b981);
}
@media (max-width: 600px) {
  .invite-friend-btn {
    bottom: 16px;
    right: 10px;
    padding: 10px 16px;
    font-size: 15px;
  }
}

.logout-btn {
  width: 100%;
  margin-top: 18px;
  padding: 10px 0;
  background: linear-gradient(90deg, #ef4444, #f87171);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.logout-btn:hover {
  background: linear-gradient(90deg, #b91c1c, #ef4444);
  transform: translateY(-2px) scale(1.03);
}

/* ===== Start Learning Button ===== */
.start-learning-btn {
  display: inline-block;
  background: linear-gradient(90deg, #38bdf8, #10b981);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 32px;
  border: none;
  border-radius: 28px;
  box-shadow: 0 4px 18px rgba(56,189,248,0.13);
  text-decoration: none;
  transition: background 0.2s, transform 0.18s, box-shadow 0.18s;
  margin-top: 18px;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-align: center;
}
.start-learning-btn:hover {
  background: linear-gradient(90deg, #10b981, #38bdf8);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 32px rgba(16,185,129,0.18);
  color: #fff;
}
@media (max-width: 480px) {
  .start-learning-btn {
    font-size: 15px;
    padding: 10px 18px;
  }
}


/* Privacy Policy and Terms & Conditions Pages Styles */
.privacy-policy-section,
.terms-conditions-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 120px 20px 60px;
  position: relative;
  overflow: hidden;
}

.privacy-policy-section::before,
.terms-conditions-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.policy-content,
.terms-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.policy-content h1,
.terms-content h1 {
  color: #2c3e50;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

       .policy-intro,
       .terms-intro {
         font-size: 1rem;
         color: #34495e;
         text-align: center;
         margin-bottom: 30px;
         line-height: 1.5;
         font-weight: 500;
       }

       .policy-section,
       .terms-section {
         margin-bottom: 20px;
         padding: 20px;
         background: rgba(255, 255, 255, 0.7);
         border-radius: 15px;
         border-left: 4px solid #667eea;
         transition: transform 0.3s ease, box-shadow 0.3s ease;
       }

.policy-section:hover,
.terms-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

       .policy-section h2,
       .terms-section h2 {
         color: #2c3e50;
         font-size: 1.2rem;
         font-weight: 600;
         margin-bottom: 12px;
         display: flex;
         align-items: center;
         gap: 10px;
       }

       .policy-section p,
       .terms-section p {
         color: #34495e;
         line-height: 1.5;
         margin-bottom: 12px;
         font-size: 0.9rem;
       }

       .policy-section ul,
       .terms-section ul {
         list-style: none;
         padding-left: 0;
       }

       .policy-section li,
       .terms-section li {
         color: #34495e;
         line-height: 1.5;
         margin-bottom: 8px;
         padding-left: 20px;
         position: relative;
         font-size: 0.9rem;
       }

.policy-section li::before,
.terms-section li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #27ae60;
  font-weight: bold;
  font-size: 1.1rem;
}

.policy-highlight {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white !important;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 20px;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Responsive Design for Policy Pages */
@media (max-width: 768px) {
  .privacy-policy-section,
  .terms-conditions-section {
    padding: 100px 15px 40px;
  }

  .policy-content,
  .terms-content {
    padding: 30px 20px;
  }

  .policy-content h1,
  .terms-content h1 {
    font-size: 2rem;
  }

  .policy-intro,
  .terms-intro {
    font-size: 1.1rem;
  }

  .policy-section,
  .terms-section {
    padding: 20px 15px;
  }

  .policy-section h2,
  .terms-section h2 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .privacy-policy-section,
  .terms-conditions-section {
    padding: 90px 10px 30px;
  }

  .policy-content,
  .terms-content {
    padding: 25px 15px;
  }

  .policy-content h1,
  .terms-content h1 {
    font-size: 1.8rem;
  }

  .policy-intro,
  .terms-intro {
    font-size: 1rem;
  }

  .policy-section,
  .terms-section {
    padding: 15px 12px;
  }

  .policy-section h2,
  .terms-section h2 {
    font-size: 1.1rem;
  }

  .policy-section li,
  .terms-section li {
    font-size: 0.95rem;
    padding-left: 20px;
  }
  
  /* Login container mobile fixes */
  .login-container {
    width: calc(100vw - 40px) !important;
    max-width: 380px !important;
    min-width: 280px !important;
    margin: 0 auto;
  }
  
  .login-section {
    padding: 15px 10px;
  }
  
  .login-card {
    padding: 25px 20px !important;
  }
}

/* 📊 User Dashboard Styles */
.user-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Plan Status Section */
.plan-status {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 30px;
  text-align: center;
}

.plan-status h2 {
  margin: 0 0 15px 0;
  font-size: 24px;
}

.current-plan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Plan Badges */
.plan-badge {
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.plan-none {
  background-color: #6c757d;
  color: white;
}

.plan-basic {
  background-color: #28a745;
  color: white;
}

.plan-standard {
  background-color: #007bff;
  color: white;
}

.plan-advance {
  background-color: #fd7e14;
  color: white;
}

.plan-pro {
  background-color: #dc3545;
  color: white;
}

/* Course Section */
.plan-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #2c3e50;
  text-align: center;
  position: relative;
}

.plan-title::after {
  content: '';
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.courses-row {
  margin-top: 30px;
  display: flex;
  justify-content: center; /* Center the row contents */
  width: 100%;
}

/* Courses Container - Centered Flex Layout */
.courses-container {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center; /* Center the cards */
  align-items: stretch;
  width: 100%;
  max-width: 1200px; /* Limit max width for better centering */
  margin: 0 auto; /* Center the container itself */
}

/* Bootstrap-style Course Cards */
.card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: all 0.4s ease, height 0.4s ease, transform 0.3s ease; /* Smooth transitions */
  overflow: visible; /* Allow content to expand */
  position: relative;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 420px; /* Minimum height for consistency */
  height: auto; /* Allow dynamic height */
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-color: #667eea;
}

/* Card Image Container */
.card-image-container {
  position: relative;
  overflow: hidden;
  height: 160px; /* Reduced from 200px */
}

/* Card Image */
.card-img-top {
  width: 100%;
  height: 160px; /* Reduced from 200px */
  object-fit: cover;
  border-top-left-radius: calc(0.375rem - 1px);
  border-top-right-radius: calc(0.375rem - 1px);
  transition: transform 0.3s ease;
  display: block;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

/* Image Placeholder */
.card-img-placeholder {
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  position: relative;
  height: 160px; /* Reduced from 200px */
}

.card-img-placeholder::before {
  content: '📷';
  font-size: 2.5rem; /* Slightly smaller */
  opacity: 0.3;
}

/* Plan Badge */
.card-badge-container {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

.card-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge-basic { background: #28a745; }
.badge-standard { background: #007bff; }
.badge-advance { background: #fd7e14; }
.badge-pro { background: #dc3545; }
.badge-free { background: #17a2b8; }

/* Card Body */
.card-body {
  padding: 1rem; /* Reduced padding */
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 260px; /* Remaining height after image */
}

.card-content {
  flex: 1;
  overflow: visible; /* Allow content to expand */
}

.card-title {
  margin-bottom: 0.5rem; /* Reduced margin */
  font-size: 1.1rem; /* Slightly smaller */
  font-weight: 600;
  line-height: 1.2;
  color: #212529;
  height: 2.4em; /* Fixed height for 2 lines */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
}

.card-description {
  margin-bottom: 0.75rem; /* Reduced margin */
  flex: 1;
}

.card-text {
  margin-bottom: 0.25rem;
  color: #6c757d;
  font-size: 0.8rem; /* Slightly smaller */
  line-height: 1.4;
  transition: all 0.4s ease, max-height 0.4s ease; /* Smooth transition for expansion */
  overflow: hidden; /* Initially hidden for animation */
  word-wrap: break-word; /* Handle long words properly */
  max-height: 100px; /* Initial collapsed height */
}

.card-text.expanded {
  max-height: 1000px; /* Large enough for any content */
  overflow: visible;
  transition: all 0.4s ease, max-height 0.4s ease;
}

/* See More Button */
.see-more-btn {
  background: none;
  border: none;
  color: #007bff;
  font-size: 0.75rem; /* Smaller size */
  text-decoration: none;
  cursor: pointer;
  padding: 2px 4px;
  margin-bottom: 0.25rem;
  text-align: left;
  transition: all 0.4s ease, color 0.3s ease, transform 0.2s ease; /* Enhanced smooth transitions */
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.see-more-btn:hover {
  color: #0056b3;
  text-decoration: underline;
  transform: translateX(2px); /* Subtle movement on hover */
}

/* Card Action Area */
.card-action {
  margin-top: auto;
  padding-top: 0.5rem; /* Reduced padding */
}

/* Text Expansion Animation */
.card-text.expanding {
  transition: max-height 0.4s ease-out, opacity 0.3s ease;
  max-height: 200px;
}

.card-text.collapsing {
  transition: max-height 0.4s ease-in, opacity 0.3s ease;
  max-height: 3.6em; /* About 3 lines */
}

.see-more-btn:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Course Card Buttons */
.course-btn {
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border-radius: 0.375rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.course-btn-primary {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}

.course-btn-primary:hover {
  color: #fff;
  background-color: #0069d9;
  border-color: #0062cc;
  text-decoration: none;
}

.course-btn-secondary {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
}

.course-btn-secondary:disabled {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
  opacity: 0.65;
  cursor: not-allowed;
}

.course-btn i {
  margin-right: 0.5rem;
}

.no-courses {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.no-courses h3 {
  color: #2c3e50;
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 600;
}

.no-courses p {
  font-size: 16px;
  line-height: 1.5;
  max-width: 400px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .courses-row {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .courses-row {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 5px;
  }
  
  .course-card {
    margin: 0 auto;
    max-width: 400px;
  }
  
  .course-content {
    padding: 20px;
  }
  
  .course-title {
    font-size: 18px;
  }
  
  .plan-title {
    font-size: 28px;
    margin-bottom: 25px;
  }
  
  .plan-status {
    margin: 15px;
    padding: 15px;
  }
  
  .user-dashboard {
    padding: 15px;
  }
  
  .course-thumbnail {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .courses-row {
    padding: 0;
  }
  
  .course-card {
    border-radius: 15px;
    max-width: none;
  }
  
  .course-content {
    padding: 18px;
  }
  
  .course-title {
    font-size: 16px;
  }
  
  .course-description {
    font-size: 13px;
  }
  
  .start-learning-btn {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .course-thumbnail {
    height: 160px;
  }
  
  .plan-title {
    font-size: 24px;
  }
}

/* User Avatar and Dropdown Styles */
.user-info-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid #e2e8f0;
  min-width: 280px;
  padding: 20px;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.user-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-meta {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.user-meta h2 {
  font-size: 18px;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 5px 0;
}

.username {
  color: #667eea;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 3px;
}

.user-meta > div:not(.username):not(h2) {
  color: #718096;
  font-size: 13px;
  line-height: 1.4;
}

.referral {
  margin-bottom: 15px;
  text-align: center;
  padding: 15px;
  background: #f7fafc;
  border-radius: 10px;
}

.referral > div:first-child {
  font-size: 12px;
  color: #4a5568;
  margin-bottom: 8px;
  font-weight: 500;
}

.code {
  font-size: 16px;
  font-weight: 700;
  color: #667eea;
  background: white;
  padding: 8px 15px;
  border-radius: 8px;
  border: 2px dashed #e2e8f0;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.small {
  font-size: 11px;
  color: #a0aec0;
}

.user-details {
  margin-bottom: 10px;
}

.user-details .small {
  font-size: 13px;
  color: #718096;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .user-dropdown {
    min-width: 250px;
    right: 0;
    left: auto;
  }
  
  .avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* Mobile specific dropdown positioning */
@media (max-width: 480px) {
  .user-dropdown {
    position: fixed;
    top: 80px !important;
    right: 10px;
    left: 10px;
    min-width: auto;
    width: calc(100% - 20px);
    max-width: 320px;
    margin: 0 auto;
    z-index: 9999;
  }
  
  .user-dropdown.active {
    transform: translateY(0) !important;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .user-dropdown {
    right: 5px;
    left: 5px;
    width: calc(100% - 10px);
    max-width: 300px;
    padding: 15px;
  }
}

/* 🎯 Team Reward Page Styles */
.team-reward-page {
  margin: 0;
  padding: 0;
}

.video-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.video-section video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reward-section {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  color: white;
  min-height: 100vh;
  overflow: hidden;
  background: #000; /* Fallback background */
}

.bg-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bg-video-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay to reduce brightness */
  z-index: 1;
}

.bg-video-container video,
.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.reward-content {
  position: relative;
  z-index: 2; /* Above the video overlay */
  width: 100%;
  height: 100%;
}

.reward-section h2 {
  font-size: 3rem;
  margin-bottom: 50px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.reward-box {
  background: rgba(255, 255, 255, 0.15); /* Slightly more opaque */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3); /* More visible border */
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); /* Added shadow for better contrast */
}

.reward-box:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Center the last reward box when it appears alone */
.reward-box:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 500px;
  margin: 0 auto;
}

.reward-box h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #fff;
}

.reward-box p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* 💰 Commission Page Styles */
.commission-page {
  margin: 0;
  padding: 0;
}

.commission-section {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  color: white;
  min-height: 100vh;
  overflow: hidden;
}

.commission-section h2 {
  font-size: 3rem;
  margin-bottom: 50px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.commission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.commission-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 30px;
  text-align: left;
  transition: all 0.3s ease;
}

.commission-box:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Center the 4th commission box (Pro Plan) */
.commission-box:nth-child(4) {
  grid-column: 1 / -1;
  max-width: 500px;
  margin: 0 auto;
}

.commission-box h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #fff;
  text-align: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 10px;
}

.commission-box p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.commission-box strong {
  color: #ffd700;
  font-weight: 600;
}

.commission-box em {
  color: #87ceeb;
  font-style: italic;
  display: block;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .reward-section h2,
  .commission-section h2 {
    font-size: 2rem;
  }
  
  .reward-grid,
  .commission-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .reward-box,
  .commission-box {
    padding: 20px;
  }
  
  .commission-box h3 {
    font-size: 1.4rem;
  }
}

/* 🎯 Referrals Section Styling */
.referrals-section {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 20px 0;
}

.referrals-section h3 {
  color: #1e3a8a;
  margin-bottom: 25px;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
}

.referral-summary {
  margin-bottom: 30px;
  display: flex !important;
  justify-content: center;
  align-items: stretch;
  gap: 25px;
  flex-wrap: wrap;
}

.total-referrals-card,
.total-earnings-card {
  color: white;
  padding: 25px;
  border-radius: 12px;
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.total-referrals-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
}

.total-earnings-card {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25);
}

.total-referrals-card:hover,
.total-earnings-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.total-referrals-card h4,
.total-earnings-card h4 {
  margin: 0 0 15px 0;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  opacity: 0.9;
}

.total-count,
.total-amount {
  font-size: 2.8rem;
  font-weight: 800;
  display: block;
  text-align: center;
  margin: 0;
  line-height: 1.1;
}

.plan-referrals-breakdown h4 {
  color: #374151;
  margin-bottom: 20px;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
}

.plan-cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.plan-referral-card {
  background: white;
  border-radius: 12px;
  padding: 30px 25px;
  border-left: 5px solid;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 280px;
  flex-shrink: 0;
}

.plan-referral-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pro-plan {
  border-left-color: #dc2626;
  background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
}

.advance-plan {
  border-left-color: #7c3aed;
  background: linear-gradient(135deg, #faf5ff 0%, #e9d5ff 100%);
}

.standard-plan {
  border-left-color: #059669;
  background: linear-gradient(135deg, #f0fdf4 0%, #bbf7d0 100%);
}

.basic-plan {
  border-left-color: #2563eb;
  background: linear-gradient(135deg, #eff6ff 0%, #bfdbfe 100%);
}

.no-plan {
  border-left-color: #6b7280;
  background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
}

.plan-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.plan-header h5 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #374151;
  text-align: center;
}

.plan-count {
  background: #374151;
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  font-weight: 800;
  font-size: 1.4rem;
  min-width: 50px;
  text-align: center;
}

.pro-plan .plan-count {
  background: #dc2626;
}

.advance-plan .plan-count {
  background: #7c3aed;
}

.standard-plan .plan-count {
  background: #059669;
}

.basic-plan .plan-count {
  background: #2563eb;
}

.referral-users {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-item {
  background: white;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.user-item:hover {
  background: #f8fafc;
  border-color: #d1d5db;
}

.username {
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
}

.email {
  font-size: 0.85rem;
  color: #6b7280;
}

.empty-referrals {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
  font-style: italic;
}

.empty-referrals p {
  font-size: 1.1rem;
  margin: 0;
}

.empty-plan-message {
  text-align: center;
  padding: 20px;
  color: #6b7280;
  font-style: italic;
}

.empty-plan-message p {
  margin: 0;
  font-size: 0.95rem;
}

/* 📱 Medium Small Mobile (391px to 480px) */
@media (max-width: 480px) and (min-width: 391px) {
  .plan-cards-container {
    gap: 18px;
    padding: 0 15px;
  }
  
  .plan-referral-card {
    width: calc(100% - 30px);
    max-width: 320px;
    padding: 25px 20px;
  }
  
  .referral-summary {
    gap: 20px;
  }
  
  .total-referrals-card,
  .total-earnings-card {
    min-width: 280px;
  }
}

/* 📱 Medium Mobile (480px to 391px) - Referrals overview and plan cards optimization */
@media (max-width: 480px) and (min-width: 391px) {
  .referrals-section {
    padding: 18px 12px;
    margin: 12px 0;
  }
  
  .referrals-section h3 {
    font-size: 1.4rem;
    margin-bottom: 18px;
  }
  
  .plan-cards-container {
    gap: 18px;
    padding: 0 15px;
  }
  
  .plan-referral-card {
    width: calc(100% - 30px);
    max-width: 320px;
    padding: 25px 20px;
  }
  
  .referral-summary {
    gap: 18px;
    margin-bottom: 22px;
  }
  
  .total-referrals-card,
  .total-earnings-card {
    min-width: 280px;
    padding: 22px 18px;
  }
  
  .total-referrals-card h4,
  .total-earnings-card h4 {
    font-size: 1.15rem;
    margin-bottom: 12px;
  }
  
  .total-count,
  .total-amount {
    font-size: 2.4rem;
  }
}

/* 📱 Small Mobile (390px to 320px) - Fix plan cards and referrals overview responsiveness */
@media (max-width: 390px) and (min-width: 320px) {
  .referrals-section {
    padding: 15px 8px;
    margin: 10px 0;
  }
  
  .referrals-section h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }
  
  .plan-cards-container {
    gap: 15px;
    padding: 0 10px;
  }
  
  .plan-referral-card {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 20px 15px;
    margin: 0 auto;
    box-sizing: border-box;
  }
  
  .plan-header h5 {
    font-size: 1.1rem;
  }
  
  .plan-count {
    padding: 6px 12px;
    font-size: 1.2rem;
  }
  
  .referral-summary {
    gap: 12px;
    margin-bottom: 20px;
    padding: 0 5px;
  }
  
  .total-referrals-card,
  .total-earnings-card {
    min-width: 260px;
    padding: 18px 12px;
  }
  
  .total-referrals-card h4,
  .total-earnings-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  
  .total-count,
  .total-amount {
    font-size: 2rem;
  }
}

/* 📱 Extra Small Mobile (below 320px) - Complete referrals overview responsiveness */
@media (max-width: 319px) {
  .referrals-section {
    padding: 12px 5px;
    margin: 8px 0;
  }
  
  .referrals-section h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
  
  .plan-referral-card {
    width: calc(100% - 10px);
    min-width: 260px;
    padding: 15px 10px;
  }
  
  .plan-header h5 {
    font-size: 1rem;
  }
  
  .plan-count {
    padding: 5px 10px;
    font-size: 1.1rem;
  }
  
  .referral-summary {
    gap: 10px;
    margin-bottom: 15px;
    padding: 0 2px;
  }
  
  .total-referrals-card,
  .total-earnings-card {
    min-width: 240px;
    max-width: 280px;
    padding: 15px 10px;
  }
  
  .total-referrals-card h4,
  .total-earnings-card h4 {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }
  
  .total-count,
  .total-amount {
    font-size: 1.8rem;
  }
}

/* 📱 Mobile Responsive - Enhanced for all screen sizes */
@media (max-width: 768px) {
  .referrals-section {
    padding: 20px 10px;
    margin: 15px 0;
  }
  
  .referrals-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  
  .plan-cards-container {
    flex-direction: column;
    align-items: center;
  }
  
  .plan-referral-card {
    width: 100%;
    max-width: 280px;
  }
  
  .referral-summary {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
  }
  
  .total-referrals-card,
  .total-earnings-card {
    min-width: 240px;
    max-width: 100%;
    padding: 20px 15px;
  }
  
  .total-referrals-card h4,
  .total-earnings-card h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  
  .total-count,
  .total-amount {
    font-size: 2.2rem;
  }
  
  .user-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .plan-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ==========================================
   TEAM REWARDS SECTION STYLING
   ========================================== */

.rewards-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 50px 20px;
  margin: 30px 0;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.rewards-container {
  max-width: 1200px;
  margin: 0 auto;
}

.rewards-section h3 {
  text-align: center;
  font-size: 2.5rem;
  color: #2d3748;
  margin-bottom: 10px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rewards-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #4a5568;
  margin-bottom: 30px;
  font-style: italic;
}

/* Reward Instructions */
.reward-instructions {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 25px 30px;
  border-radius: 15px;
  margin-bottom: 40px;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.reward-instructions h4 {
  margin: 0 0 15px 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.reward-instructions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.reward-instructions li {
  margin: 12px 0;
  padding: 8px 0;
  font-size: 1.05rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.reward-instructions li:last-child {
  border-bottom: none;
}

/* Rewards Grid */
.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

/* Individual Reward Card */
.reward-card {
  background: white;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.reward-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #ffeaa7, #fab1a0, #fd79a8, #a29bfe);
  border-radius: 20px 20px 0 0;
}

.reward-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.reward-card.eligible {
  border-color: #48bb78;
  background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
}

.reward-card.achieved {
  border-color: #4299e1;
  background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
}

/* Center the last reward card when it appears alone */
.reward-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 600px;
  margin: 0 auto;
}

/* Reward Header */
.reward-header {
  text-align: center;
  margin-bottom: 25px;
}

.reward-icon {
  font-size: 3rem;
  margin-bottom: 10px;
  display: block;
}

.reward-header h4 {
  font-size: 1.3rem;
  color: #2d3748;
  margin: 0 0 8px 0;
  font-weight: 600;
  line-height: 1.3;
}

.reward-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #38a169;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Progress Section */
.progress-section {
  margin-bottom: 20px;
}

.progress-item {
  margin-bottom: 15px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #4a5568;
  font-weight: 500;
}

.progress-count {
  background: #edf2f7;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.85rem;
  color: #2d3748;
  font-weight: 600;
}

/* Progress Bars */
.progress-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-bottom: 5px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4299e1, #3182ce);
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: progressShine 2s infinite;
}

@keyframes progressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.advance-bar .progress-fill {
  background: linear-gradient(90deg, #ed8936, #dd6b20);
}

.pro-bar .progress-fill {
  background: linear-gradient(90deg, #9f7aea, #805ad5);
}

.progress-percentage {
  font-size: 0.8rem;
  color: #718096;
  text-align: right;
  font-weight: 500;
}
.progress-percentage {
  font-size: 0.8rem;
  color: #718096;
  text-align: right;
  font-weight: 500;
}

/* Reward Conditions */
.reward-conditions {
  background: #f7fafc;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  border-left: 4px solid #4299e1;
}

.condition-text {
  font-size: 0.9rem;
  color: #4a5568;
  font-weight: 500;
  margin: 0;
}

.condition-text.no-conditions {
  color: #38a169;
  font-style: italic;
}

/* Status Badge */
.reward-status {
  text-align: center;
  margin-bottom: 15px;
}

.status-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.achieved {
  background: linear-gradient(135deg, #48bb78, #38a169);
  color: white;
  box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.status-badge.eligible {
  background: linear-gradient(135deg, #ed8936, #dd6b20);
  color: white;
  box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
}

.status-badge.pending {
  background: linear-gradient(135deg, #a0aec0, #718096);
  color: white;
  box-shadow: 0 4px 15px rgba(160, 174, 192, 0.3);
}

/* What's Needed Section */
.whats-needed {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 10px;
  padding: 15px;
  margin-top: 10px;
}

.whats-needed h5 {
  margin: 0 0 10px 0;
  font-size: 0.9rem;
  color: #e53e3e;
  font-weight: 600;
}

.need-item {
  background: #feb2b2;
  color: #742a2a;
  padding: 6px 12px;
  border-radius: 15px;
  display: inline-block;
  margin: 3px 5px 3px 0;
  font-size: 0.8rem;
  font-weight: 500;
}

/* No Rewards State */
.no-rewards {
  text-align: center;
  padding: 60px 20px;
  color: #718096;
  font-size: 1.1rem;
  grid-column: 1 / -1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .rewards-section {
    padding: 30px 15px;
    margin: 20px 0;
  }

  .rewards-section h3 {
    font-size: 2rem;
  }

  .rewards-subtitle {
    font-size: 1rem;
  }

  .rewards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .reward-card {
    padding: 20px;
  }

  .reward-instructions {
    padding: 20px 25px;
  }

  .reward-instructions h4 {
    font-size: 1.2rem;
  }

  .reward-instructions li {
    font-size: 1rem;
  }

  .reward-header h4 {
    font-size: 1.2rem;
  }

  .reward-amount {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .rewards-section {
    padding: 25px 10px;
    border-radius: 15px;
  }

  .rewards-section h3 {
    font-size: 1.8rem;
  }

  .reward-card {
    padding: 18px;
    border-radius: 15px;
  }

  .reward-instructions {
    padding: 18px 20px;
  }

  .progress-label {
    font-size: 0.85rem;
  }

  .progress-count {
    font-size: 0.8rem;
  }

  .need-item {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
}

/* ========================================= */
/* 📱 COMPREHENSIVE MOBILE RESPONSIVENESS   */
/* ========================================= */

/* Extra Small Devices - 320px and below */
@media (max-width: 320px) {
  
  /* Global Typography */
  body {
    font-size: 14px;
    padding-top: 70px; /* Smaller navbar height */
  }
  
  h1 { font-size: 1.6rem !important; }
  h2 { font-size: 1.4rem !important; }
  h3 { font-size: 1.2rem !important; }
  
  /* Navigation */
  .navbar {
    padding: 8px 3% !important;
    min-height: 60px;
  }
  
  .nav-logo img {
    height: 30px !important;
  }
  
  .login-btn-liquid {
    padding: 6px 10px !important;
    font-size: 10px !important;
    min-width: 60px;
  }
  
  .nav-links {
    top: 60px !important;
    padding: 15px 10px !important;
  }
  
  .nav-link {
    padding: 10px 5px !important;
    font-size: 14px !important;
  }
  
  /* Hero Section */
  .hero-animated-text {
    padding: 0 10px;
    min-height: 300px;
  }
  
  .animated-typing {
    font-size: 1.8rem !important;
    line-height: 1.2;
  }
  
  .hero-tagline {
    font-size: 0.9rem !important;
    padding: 0 10px !important;
  }
  
  /* Forms - Signup/Login */
  .signup-container,
  .login-container {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    margin: 10px auto !important;
    padding: 10px !important;
  }
  
  .signup-card,
  .login-card {
    padding: 15px 10px !important;
  }
  
  .form-group {
    margin-bottom: 15px !important;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100% !important;
    padding: 10px 8px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
  }
  
  .auth-btn,
  .signup-btn,
  .login-btn {
    width: 100% !important;
    padding: 12px !important;
    font-size: 14px !important;
  }
  
  /* Dashboard Cards */
  .dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 0 10px !important;
  }
  
  .dashboard-card {
    padding: 15px 10px !important;
  }
  
  .dashboard-card h3 {
    font-size: 1.1rem !important;
  }
  
  /* Plans Section */
  .plans-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    padding: 0 10px !important;
  }
  
  .plan-card {
    padding: 15px !important;
    margin: 0 5px !important;
  }
  
  .plan-price {
    font-size: 1.8rem !important;
  }
  
  .plan-btn {
    width: 100% !important;
    padding: 10px !important;
    font-size: 14px !important;
  }
  
  /* Course Cards */
  .courses-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    padding: 0 10px !important;
  }
  
  .course-card {
    padding: 15px !important;
  }
  
  /* Tables - Commission, Payments */
  .commission-table,
  .payments-table,
  .table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin: 10px 0 !important;
  }
  
  .table-header,
  .table-row {
    display: block !important;
    padding: 10px 5px !important;
    font-size: 12px !important;
    border-bottom: 2px solid rgba(255,255,255,0.2) !important;
  }
  
  .table-header > *,
  .table-row > * {
    display: block !important;
    padding: 3px 0 !important;
    text-align: left !important;
    word-break: break-word !important;
  }
  
  /* Add labels for mobile table view */
  .table-row > *:nth-child(1)::before { content: "User: "; font-weight: bold; color: #ffd700; }
  .table-row > *:nth-child(2)::before { content: "Email: "; font-weight: bold; color: #ffd700; }
  .table-row > *:nth-child(3)::before { content: "Level: "; font-weight: bold; color: #ffd700; }
  .table-row > *:nth-child(4)::before { content: "Rate: "; font-weight: bold; color: #ffd700; }
  .table-row > *:nth-child(5)::before { content: "Amount: "; font-weight: bold; color: #ffd700; }
  .table-row > *:nth-child(6)::before { content: "Date: "; font-weight: bold; color: #ffd700; }
  
  /* Stats and Numbers */
  .stat-value {
    font-size: 1.5rem !important;
  }
  
  .earning-card .amount {
    font-size: 1.2rem !important;
  }
  
  /* Footer */
  .footer-container {
    padding: 20px 10px !important;
    text-align: center !important;
  }
  
  .footer-section {
    margin-bottom: 15px !important;
  }
  
  .footer-links {
    flex-direction: column !important;
    gap: 10px !important;
  }
  
  .footer-btn {
    width: 100% !important;
    margin: 5px 0 !important;
    padding: 8px !important;
    font-size: 12px !important;
  }
  
  /* User Panel */
  .user-avatar {
    width: 30px !important;
    height: 30px !important;
    font-size: 12px !important;
  }
  
  .user-panel {
    right: 5px !important;
    width: 200px !important;
    font-size: 12px !important;
  }
  
  /* Error/Success Messages */
  .error-container,
  .success-container {
    padding: 10px !important;
    margin: 10px 0 !important;
    font-size: 12px !important;
  }
  
  /* Buttons General */
  .btn,
  button {
    padding: 10px 15px !important;
    font-size: 14px !important;
    min-height: 44px !important; /* Touch target size */
  }
  
  /* Dropdown Menus */
  .dropdown-content {
    position: static !important;
    display: block !important;
    box-shadow: none !important;
    padding: 10px 0 !important;
  }
  
  /* Video Elements */
  .hero-video-background video,
  .plans-video-background video {
    object-fit: cover !important;
    height: 100% !important;
  }
  
  /* Touch-friendly improvements */
  a, button, .btn, input[type="submit"] {
    min-height: 44px !important;
    min-width: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* Prevent text scaling issues */
  input, textarea, select {
    font-size: 16px !important; /* Prevents iOS zoom */
    transform: none !important;
  }
  
  /* Fix horizontal scrolling */
  * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Hide horizontal scrollbar but allow scrolling */
  .table-container {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE/Edge */
  }
  
  .table-container::-webkit-scrollbar {
    display: none !important; /* Chrome/Safari */
  }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-animated-text {
    min-height: 250px !important;
  }
  
  .animated-typing {
    font-size: 1.8rem !important;
  }
  
  .navbar {
    padding: 5px 3% !important;
  }
}

/* Small Mobile Devices - 360px to 480px */
@media (min-width: 321px) and (max-width: 480px) {
  
  .navbar {
    padding: 10px 4% !important;
  }
  
  .animated-typing {
    font-size: 2rem !important;
  }
  
  .signup-container,
  .login-container {
    width: calc(100vw - 30px) !important;
    max-width: 400px !important;
    margin: 15px auto !important;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
  }
  
  .plans-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .table-header,
  .table-row {
    font-size: 13px !important;
    padding: 12px 8px !important;
  }
}

/* ======================================
   RESPONSIVE COMMISSION & TEAM REWARDS PAGES
   (Now using home page hero section)
====================================== */

/* Fix hero section position below navbar for commission & team rewards pages */
.commission-page .hero-animated-text,
.team-reward-page .hero-animated-text {
  margin-top: 80px !important; /* Account for fixed navbar height */
}

/* Tablet and small desktop */
@media (max-width: 1024px) {
  .commission-page .hero-animated-text,
  .team-reward-page .hero-animated-text {
    height: 60vh !important;
    margin-top: 80px !important;
  }
  
  .reward-section,
  .commission-section {
    min-height: auto !important;
    padding: 60px 15px !important;
  }
}

/* Mobile screens */
@media (max-width: 768px) {
  .commission-page .hero-animated-text,
  .team-reward-page .hero-animated-text {
    height: 40vh !important;
    min-height: 250px !important;
    margin-top: 80px !important;
  }
  
  .reward-section,
  .commission-section {
    min-height: auto !important;
    padding: 40px 15px !important;
  }
  
  .bg-video-container {
    height: 100% !important;
  }
  
  .bg-video-container video,
  .bg-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}

/* Small mobile screens */
@media (max-width: 480px) {
  .commission-page .hero-animated-text,
  .team-reward-page .hero-animated-text {
    height: 30vh !important;
    min-height: 200px !important;
    margin-top: 80px !important;
  }
  
  .reward-section,
  .commission-section {
    padding: 30px 10px !important;
  }
  
  .reward-grid,
  .commission-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  
  .reward-box,
  .commission-box {
    padding: 20px 15px !important;
    margin-bottom: 15px !important;
  }
  
  .reward-section h2,
  .commission-section h2 {
    font-size: 1.8rem !important;
    margin-bottom: 20px !important;
  }
}

/* Extra small screens */
@media (max-width: 320px) {
  .commission-page .hero-animated-text,
  .team-reward-page .hero-animated-text {
    height: 25vh !important;
    min-height: 180px !important;
    margin-top: 80px !important;
  }
  
  .reward-section,
  .commission-section {
    padding: 20px 8px !important;
  }
  
  .reward-box,
  .commission-box {
    padding: 15px 10px !important;
  }
  
  .reward-box h3,
  .commission-box h3 {
    font-size: 1.2rem !important;
    line-height: 1.3 !important;
  }
  
  .reward-box p,
  .commission-box p {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
  }
}

/* Landscape orientation for mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .commission-page .hero-animated-text,
  .team-reward-page .hero-animated-text {
    height: 50vh !important;
    min-height: 200px !important;
    margin-top: 80px !important;
  }
}

/* Hero section performance optimizations for commission & rewards pages */
@media (max-width: 768px) {
  .commission-page .hero-video-background video,
  .team-reward-page .hero-video-background video {
    /* Optimize video rendering on mobile */
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    will-change: transform !important;
  }
  
  /* Reduce background video sections overlay for better visibility */
  .bg-video-container::after {
    background: rgba(0, 0, 0, 0.3) !important;
  }
}

/* Floating WhatsApp Button Styles */
.floating-whatsapp-btn {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  z-index: 9999 !important;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
  color: white !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 12px 15px !important;
  cursor: pointer !important;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4) !important;
  transition: all 0.3s ease !important;
  animation: float 3s ease-in-out infinite;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 110px !important;
  backdrop-filter: blur(10px) !important;
  transition: ease-in-out 0.3s !important;
  max-height: 30px !important;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6) !important;
}

.floating-whatsapp-btn:active {
  transform: scale(0.95) !important;
}

/* Floating animation */
@keyframes float {
  0%, 100% {
    transform: translateY(-50%);
  }
  50% {
    transform: translateY(-55%);
  }
}

/* WhatsApp Invite Button Styles */
.whatsapp-invite-btn {
  transition: all 0.3s ease !important;
}

.whatsapp-invite-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2) !important;
  background: #f0f9ff !important;
}

.whatsapp-invite-btn:active {
  transform: translateY(0px) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

/* Responsive styles for floating button */
@media (max-width: 768px) {
  .floating-whatsapp-btn {
    right: 15px !important;
    top: 45% !important;
    padding: 6px 12px !important;
    min-width: 100px !important;
    gap: 6px !important;
  }
  
  .floating-whatsapp-btn svg {
    width: 20px !important;
    height: 20px !important;
  }
  
  .floating-whatsapp-btn div {
    font-size: 9px !important;
  }
  
  .floating-whatsapp-btn div:last-child {
    font-size: 7px !important;
  }
}

@media (max-width: 480px) {
  .floating-whatsapp-btn {
    right: 10px !important;
    top: 40% !important;
    padding: 5px 10px !important;
    min-width: 90px !important;
    gap: 5px !important;
    display: flex !important;
  }
  
  .floating-whatsapp-btn svg {
    width: 18px !important;
    height: 18px !important;
  }
  
  .floating-whatsapp-btn div {
    font-size: 15px !important;
  }
  
  .floating-whatsapp-btn div:last-child {
    font-size: 6px !important;
  }
}

/* Invite Section Responsive */
@media (max-width: 768px) {
  .invite-section {
    margin: 20px 0 !important;
    padding: 20px !important;
  }
  
  .whatsapp-invite-btn {
    padding: 12px 25px !important;
    font-size: 1rem !important;
  }
  
  .referral-info {
    padding: 12px !important;
  }
}
