@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}
:root {
  --primary: #00bfff;
  --back-light: #fff;
  --back-dark: #f0f0f0;
  --text-color: #000;
}
/* ===== GENERAL STYLES ===== */
html {
  width: 100%;
}
body {
  color: var(--text-color);
  background-color: var(--back-light);
  min-height: 100vh;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
section {
  width: 100%;
  padding: 5% 15%;
}
.hidden {
  display: none;
}
.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 600;
}
/* ===== HEADER & NAVIGATION ===== */
header {
  width: 100%;
  height: 10vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1% 15%;
  background-color: transparent;
  position: fixed;
  top: 0;
  z-index: 1000;
}
.logo {
  width: 20%;
}
.logo img {
  width: 30%;
  cursor: pointer;
  margin-left: 50px;
}
nav {
  display: flex;
  gap: 30px;
}
nav a {
  position: relative;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding-bottom: 5px;
  transition: 0.2s;
}
nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.25s ease-in-out;
}
nav a:hover::after,
nav a.active::after {
  width: 100%;
}
/* ===== BUTTON STYLES ===== */
.btn {
  padding: 8px 20px;
  border-radius: 6px;
  border: 2px solid var(--text-color);
  background-color: transparent;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s;
}
.btn:hover {
  background-color: var(--text-color);
  color: var(--back-light);
}
.signup {
  border-color: var(--primary);
  color: var(--primary);
}
.signup:hover {
  background-color: var(--primary);
  color: var(--back-light);
}
.cta-button {
  padding: 0.9rem 1.7rem;
  border: 2px solid var(--primary);
  border-radius: 10px;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}
.cta-button:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--back-light);
}
.cta-button.main {
  border: 3px solid var(--primary);
  padding: 0.9 rem 1.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--back-light);
  background-color: var(--primary);
  box-shadow: 0 10px 20px rgba(0, 191, 255, 0.589);
}
.cta-button.main:hover {
  color: var(--primary);
  background-color: transparent;
  animation: pulse 2s ease-in 0s infinite;
}
@keyframes pulse {
  /* 0%{
      transform: scale(1);
   }
   50%{
      transform: scale(1.15);
   }
   100%{
      transform: scale(1);
   } */
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}
.cta-button.black {
  color: var(--back-light);
  background-color: var(--text-color);
  border-color: var(--text-color);
}
.cta-button.black:hover {
  color: var(--text-color);
  background-color: transparent;
}
.auth-buttons {
  display: flex;
  gap: 16px;
}
/* ===== MOBILE MENU ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  cursor: pointer;
  z-index: 9999;
}
.hamburger span {
  width: 26px;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 2px;
  transition: background-color 0.3s;
}
.hamburger:hover span {
  background-color: var(--primary);
}
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9997;
  display: none;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100%;
  width: 50%;
  min-width: 280px;
  max-width: 400px;
  background-color: var(--back-light);
  box-shadow: -3px 0 15px rgba(0, 0, 0, 0.1);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  z-index: 9998;
  transition: right 0.3s ease;
}
.mobile-menu.open {
  right: 0;
}
.mobile-overlay.active {
  display: block;
}
.mobile-menu-header {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}
.close-btn {
  font-size: 2rem;
  color: var(--text-color);
  cursor: pointer;
  transition: color 0.3s;
}
.close-btn:hover {
  color: var(--primary);
}
.mobile-menu a {
  font-size: 1.1rem;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  width: 100%;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  transition: color 0.3s;
}
.mobile-menu a:hover {
  color: var(--primary);
}
.mobile-menu .btn {
  width: 100%;
  text-align: center;
  padding: 10px 0;
  font-size: 1rem;
}
/* ===== PROGRESS BAR ===== */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 10000;
}
.progress-bar {
  height: 4px;
  background: var(--primary);
  width: 0%;
  transition: width 0.3s ease-out;
  border-radius: 0 2px 2px 0;
}
/* ===== SCROLL ANIMATIONS ===== */
.scroll-effect {
  opacity: 0;
  transition: all 0.8s ease-out;
  will-change: transform, opacity;
}
.from-left {
  transform: translateX(-100px);
}
.from-right {
  transform: translateX(100px);
}
.from-bottom {
  transform: translateY(100px);
}
.scroll-effect.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: #f0f0f0;
  padding: 3rem 0 0;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}
.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-tagline {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.4;
}
.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}
.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: var(--back-light);
  transition: all 0.3s ease;
  text-decoration: none;
}
.footer-socials a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--back-light);
  transform: translateY(-2px);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.links-column h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--back-light);
  position: relative;
}
.links-column h3::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 100%);
  border-radius: 2px;
}
.links-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.links-column li {
  margin-bottom: 0.75rem;
}
.links-column a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0;
}
.links-column a:hover {
  color: var(--back-light);
  padding-left: 8px;
}
.links-column a::after {
  content: "→";
  position: absolute;
  right: -12px;
  opacity: 0;
  transition: all 0.3s ease;
}
.links-column a:hover::after {
  opacity: 1;
  right: -20px;
}
.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.footer-newsletter h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--back-light);
}
.footer-newsletter p {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.5;
}
#mc_embed_signup {
  margin-top: 0.5rem;
}
#mc_embed_signup form {
  margin: 0;
  padding: 0;
}
.mc-field-group {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.mc-field-group:focus-within {
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}
/* ===== NEWSLETTER STYLES ===== */
.newsletter-form {
  margin-top: 1rem;
}
.newsletter-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.newsletter-field-group input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--back-light);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  outline: none;
}
.newsletter-field-group input::placeholder {
  color: #888;
}
.newsletter-field-group input:focus {
  border-color: rgba(0, 191, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(0, 191, 255, 0.1);
}
.footer-newsletter .newsletter-btn p {
  color: white;
  transition: all 0.3s;
}
.newsletter-btn {
  background-color: var(--primary);
  border: 2px var(--primary) solid;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  overflow: hidden;
}
.newsletter-btn:hover {
  background-color: transparent;
  color: var(--primary);
}
.newsletter-btn:hover svg {
  transition: all 0.3s;
}
.newsletter-btn:hover svg {
  transform: rotate(45deg);
}
.footer-newsletter .newsletter-btn:hover p {
  color: var(--primary);
}
.newsletter-message {
  font-size: 0.85rem;
  padding: 0.5rem;
  border-radius: 6px;
  text-align: center;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
}
.newsletter-message.success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.newsletter-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    align-items: center;
  }
  .brand-tagline,
  .footer-links h3,
  .footer-links li {
    text-align: center;
  }
  .links-column h3::after {
    left: calc(50% - 15px);
  }
  .newsletter-field-group {
    gap: 0.5rem;
  }
}
@media (max-width: 576px) {
  .newsletter-field-group {
    flex-direction: column;
  }
  .newsletter-btn {
    width: 100%;
    justify-content: center;
  }
}
.footer-links {
  display: flex;
  justify-content: space-evenly;
}
.auth-btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}
.login-btn {
  background: transparent;
  color: var(--back-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.login-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--back-light);
}
.signup-btn {
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary);
  border: 1px solid rgba(102, 126, 234, 0.2);
}
.signup-btn:hover {
  background: rgba(102, 126, 234, 0.2);
  color: var(--back-light);
}
.footer-bottom {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
}
.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.copyright {
  font-size: 0.85rem;
  color: #888;
}
.footer-meta span {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}
/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 1456px) {
  nav,
  .auth-buttons {
    display: none;
  }
  .hamburger {
    display: flex;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }
  .logo {
    width: 20%;
  }
  .logo img {
    width: 50%;
    margin-left: 0px;
  }
}
@media screen and (min-width: 1657px) {
  .mobile-menu,
  .mobile-overlay {
    display: none;
  }
}
@media (max-width: 1200px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .footer-newsletter {
    grid-column: 1 / -1;
  }
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 900px) {
  section {
    padding: 5%;
  }
  .logo {
    width: 40%;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-links {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .brand-logo {
    justify-content: center;
  }
  .footer-socials {
    justify-content: center;
  }
}
@media (max-width: 576px) {
  .footer {
    padding: 2rem 0 0;
  }
  .footer-container {
    padding: 0 1rem;
  }
}
@media screen and (max-width: 420px) {
  .hamburger {
    right: 15px;
  }
  .mobile-menu {
    width: 85%;
    min-width: unset;
  }
}

.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.auth-overlay.active {
  display: flex;
  opacity: 1;
}

.auth-popup {
  background-color: var(--back-light);
  border-radius: 12px;
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0;
  z-index: 1000;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  pointer-events: none;
}

.auth-popup.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.auth-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === LOGO === */
.logos {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* === HEADERS === */
.auth-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  text-align: center;
}

/* === FORM === */
form {
  width: 100%;
}

.field {
  margin-bottom: 1rem;
  width: 100%;
}

.field input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.field input:focus {
  outline: none;
  border-color: var(--primary);
}

/* === BUTTONS === */
.btna {
  border: none;
  border-radius: 8px;
  padding: 12px;
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.3s,
    color 0.3s;
}
.primary-btna {
  border: var(--primary) 2px solid;
  background-color: var(--primary);
  color: var(--back-light);
}
.primary-btna:hover {
  background-color: transparent;
  color: var(--primary);
}
.google-btna {
  background-color: var(--back-light);
  color: #444;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1rem;
}
.google-btna:hover {
  border-color: var(--primary);
}
.google-icon {
  width: 20px;
  height: 20px;
}
/* === CLOSE BUTTON === */
.close-btna {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s;
}
.close-btna:hover {
  color: var(--text-color);
}
/* === SEPARATOR === */
.separator {
  width: 100%;
  text-align: center;
  border-bottom: 1px solid #ddd;
  line-height: 0.1em;
  margin: 20px 0;
}
.separator span {
  background: var(--back-light);
  padding: 0 10px;
  color: #888;
  font-size: 0.85rem;
}
/* === TOGGLE LINK === */
.switch-auth {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.8rem;
}
.switch-auth strong {
  color: var(--primary);
  cursor: pointer;
}
/* === ERROR MESSAGE === */
.auth-error {
  color: red;
  font-size: 0.85rem;
  margin-bottom: 10px;
  text-align: center;
}
/* === VERIFY POPUP === */
.icon.success {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.message {
  text-align: center;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.4;
}
.resend-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #555;
}
.resend-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  margin-left: 5px;
  transition: opacity 0.3s;
}
.resend-link.cooldown {
  opacity: 0.5;
  pointer-events: none;
}
.go-login {
  margin-top: 1.2rem;
  text-align: center;
}
.go-login a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
/* === ANIMATIONS === */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.no-effect {
  border: none;
  background: none;
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 16px;
}
/* Active navigation highlight */
nav a.active {
  color: var(--primary);
  font-weight: 600;
}
nav a.active::after {
  width: 100%;
  background-color: var(--primary);
}
.mobile-menu a.active {
  color: var(--primary);
  font-weight: 600;
  border-bottom-color: var(--primary);
}
body.index nav a[href="index.php"],
body.start nav a[href="start.php"],
body.courses nav a[href="courses.php"],
body.tools nav a[href="tools.php"],
body.financopedia nav a[href="financopedia.php"],
body.news nav a[href="news.php"],
body.about nav a[href="about.php"],
body.contact nav a[href="contact.php"] {
  color: var(--primary);
  font-weight: 600;
}
body.index nav a[href="index.php"]::after,
body.start nav a[href="start.php"]::after,
body.courses nav a[href="courses.php"]::after,
body.tools nav a[href="tools.php"]::after,
body.financopedia nav a[href="financopedia.php"]::after,
body.news nav a[href="news.php"]::after,
body.about nav a[href="about.php"]::after,
body.contact nav a[href="contact.php"]::after {
  width: 100%;
  background-color: var(--primary);
}
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  color: var(--text-color);
  padding: 1.5rem;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.cookie-consent-banner.visible {
  transform: translateY(0);
}
.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cookie-consent-text h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
}
.cookie-consent-text p {
  margin: 0 0 1rem 0;
  line-height: 1.5;
  opacity: 0.9;
}
.cookie-links {
  display: flex;
  gap: 1.5rem;
}
.cookie-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}
.cookie-link:hover {
  text-decoration: underline;
}
.cookie-consent-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 10px 20px;
  border: 2px solid var(--back-light);
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.cookie-btn-primary {
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
}
.cookie-btn-primary:hover {
  background: transparent;
  color: var(--primary);
}
.cookie-btn-secondary {
  background: #666;
  color: white;
  border: 2px solid #666;
}
.cookie-btn-secondary:hover {
  background: transparent;
  color: #666;
}
.cookie-btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.cookie-btn-outline:hover {
  background: var(--primary);
  color: white;
}
.cookie-preferences-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cookie-preferences-modal.visible {
  opacity: 1;
}
.cookie-preferences-content {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  color: var(--text-dark);
}
.cookie-preferences-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-preferences-header h3 {
  margin: 0;
  color: var(--text-dark);
}
.cookie-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-close-btn:hover {
  color: var(--text-dark);
}
.cookie-preferences-body {
  padding: 2rem;
}
.cookie-category {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
}
.cookie-category:last-child {
  margin-bottom: 0;
  border-bottom: none;
}
.cookie-category-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}
.cookie-category-info h4 {
  margin: 0 0 0.5rem 0;
  color: var(--text-dark);
}
.cookie-category-info p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.5;
}
.cookie-toggle {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.cookie-toggle input[type="checkbox"] {
  display: none;
}
.cookie-toggle-label {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  background: #ddd;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.cookie-toggle-label:after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}
.cookie-toggle input[type="checkbox"]:checked + .cookie-toggle-label {
  background: var(--primary);
}
.cookie-toggle input[type="checkbox"]:checked + .cookie-toggle-label:after {
  transform: translateX(26px);
}
.cookie-toggle input[type="checkbox"]:disabled + .cookie-toggle-label {
  background: #666;
  cursor: not-allowed;
}
.cookie-preferences-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}
@media (max-width: 768px) {
  .cookie-consent-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .cookie-consent-buttons {
    width: 100%;
    justify-content: center;
  }
  .cookie-links {
    justify-content: center;
  }
  .cookie-preferences-content {
    margin: 1rem;
    width: calc(100% - 2rem);
  }
  .cookie-preferences-body {
    padding: 1.5rem;
  }
  .cookie-category-header {
    flex-direction: column;
    gap: 1rem;
  }
  .cookie-preferences-footer {
    flex-direction: column;
  }
}
/* ===== COOKIE CONSENT OVERLAY & SCROLL LOCK ===== */
body.cookie-consent-open {
  overflow: hidden;
  position: relative;
}

.cookie-consent-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  display: none;
}

.cookie-consent-overlay.active {
  display: block;
}

/* Update existing cookie consent banner styles */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cookie-consent-banner.visible {
  transform: translateY(0);
}

/* Ensure the banner content stays above the overlay */
.cookie-consent-content {
  position: relative;
  z-index: 10000;
}

/* Update modal styles for better overlay */
.cookie-preferences-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  align-items: center;
  justify-content: center;
}

.cookie-preferences-modal.visible {
  display: flex;
  opacity: 1;
}

.cookie-preferences-content {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  z-index: 10001;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.cookie-preferences-modal.visible .cookie-preferences-content {
  transform: scale(1);
}
