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

/* General Styles */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.2;
}

::selection {
  color: black;
  background: #f4c430;
}

::-moz-selection {
  color: black;
  background: #f4c430;
}

::-o-selection {
  color: black;
  background: #f4c430;
}

/* Hamburger Menu */
.container {
  display: inline-block;
  cursor: pointer;
  position: fixed;
  left: 20px;
  z-index: 3; /* Keep above overlay */
}

.bar1,
.bar2,
.bar3 {
  width: 35px;
  height: 5px;
  background-color: black;
  margin: 6px 0;
  transition: 0.4s;
}

/* Transform hamburger into 'X' */
.change .bar1 {
  transform: translate(0, 11px) rotate(-45deg);
}

.change .bar2 {
  opacity: 0;
}

.change .bar3 {
  transform: translate(0, -11px) rotate(45deg);
}

/* Hide hamburger menu when overlay is active */
.overlay-active #menuIcon {
  display: none;
}

/* Overlay Navigation */
.overlay {
  height: 0;
  width: 100%;
  position: fixed;
  top: 0;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: hidden;
  text-align: center;
  z-index: 2000;
  transition: height 0.5s ease-in-out;
}

/* Show overlay when active */
.overlay.show {
  height: 100%;
}

/* Center menu items in overlay */
.menu-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Menu Items */
.menu-list li {
  list-style: none;
  width: 60px;
  height: 60px;
  background: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
  position: relative;
}

/* Hover Effect: Expand & Show Gradient */
.menu-list li:hover {
  width: 180px;
}

/* Gradient Background Effect */
.menu-list li::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 60px;
  background: linear-gradient(45deg, var(--i), var(--j));
  opacity: 0;
  transition: 0.5s;
}

.menu-list li:hover::before {
  opacity: 1;
}

/* Menu Item Links */
.menu-list li a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  font-size: 1.2rem;
}

/* Icon Styling */
.menu-list li .icon ion-icon {
  color: #424242;
  font-size: 1.25em;
  transition: 0.25s;
}

/* Hide Icon on Hover */
.menu-list li:hover .icon ion-icon {
  transform: scale(0);
  color: #fff;
  transition-delay: 0s;
}

/* Title Styling */
.menu-list li .title {
  position: absolute;
  cursor: pointer;
  color: #fff;
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  transition: 0.25s;
  transform: scale(0);
}

/* Show Title on Hover */
.menu-list li:hover .title {
  cursor: pointer;
  transform: scale(1);
  transition-delay: 0.1s;
}

/* Close Button Styling */
.close-menu {
  width: 60px !important;
  height: 60px !important;
  background: linear-gradient(45deg, var(--i), var(--j));
  border-radius: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: none;
}

/* Close Button Hover Effect */
.close-menu:hover {
  width: 60px !important; /* Prevents expansion */
  height: 60px !important;
}

.close-menu .icon ion-icon {
  color: white;
  font-size: 2em; /* Make icon larger */
}

/* Close Button: Keep Icon Visible */
.close-menu:hover .icon ion-icon {
  transform: scale(1); /* Prevents icon from disappearing */
  color: white;
}

/* Responsive Design */
@media screen and (max-height: 450px) {
  .overlay a {
    font-size: 24px;
  }
  .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }
}

/* Navigation Bar */
header {
  background-color: white;
}

.navbar {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  color: black;
  padding: 13px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar a {
  float: left;
  color: black;
  text-align: center;
  padding: 10px;
  text-decoration: none;
  font-size: 16px;
  line-height: 5px;
  border-radius: 4px;
}

.navbar-logo {
  font-size: 1.5rem;
  letter-spacing: 0.8px;
}

.navbar a:hover {
  color: #f4c430;
}

.empty-container {
  height: 50px;
  background-color: transparent;
}

/* Navigation Bar */
.navbar {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  padding: 25px;
  top: 0;
}

.navbar a {
  position: fixed;
  float: left;
  color: white;
  text-align: center;
  padding: 8px;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  letter-spacing: 0.1em;
  line-height: 20px;
  border-radius: 4px;
}

.navbar-logo {
  font-size: 1.5rem;
  letter-spacing: 0.8px;
}

.navbar a:hover {
  color: #f4c430;
}

/* Lightbox Base */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

/* Contact Form Styling */
.lightbox-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  width: 600px;
  max-width: 90%;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  perspective: 1000px;
}

/* Close Button */
.close,
#closeButton {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  background: white;
  border: 2px solid darkred;
  border-radius: 50%;
  text-align: center;
  line-height: 36px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close:hover,
#closeButton:hover {
  background: darkred;
  color: white;
}

/* Headings */
h1.contactus-head {
  font-size: 28px;
  color: black;
  text-align: center;
  margin-bottom: 10px;
}

small.contactus-subhead {
  font-size: 14px;
  color: #666;
  text-align: center;
  display: block;
  margin-bottom: 20px;
}

/* Form fields */
label {
  font-size: 14px;
  color: #555;
  display: block;
  margin-bottom: 5px;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

input:focus,
textarea:focus {
  border-color: #f4c430;
  box-shadow: 0 0 5px rgba(0, 128, 128, 0.3);
  outline: none;
}

/* Name field layout */
.form-name {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.fname,
.lname {
  flex: 1;
}

.captcha-wrap {
  margin: 15px 0;
}

/* Button styles */
.formbtns {
  text-align: right;
}

.formbtns {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

.formBtn.reset {
  width: 100px;
  padding: 10px;
  font-size: 14px;
  background-color: #bbb;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.formBtn.reset:hover {
  background-color: #888;
  color: white;
}

.animated-submit {
  width: 100px;
  height: 40px;
  padding: 10px;
  font-size: 14px;
  color: white;
  background-color: #f4c430;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  letter-spacing: 1px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.animated-submit:hover {
  background: linear-gradient(45deg, #f4c430, #f49f30);
}

.submit-text {
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1;
}

/* Loader Circle */
.tick-circle {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid #17b978;
  border-radius: 50%;
  display: flex; /* Always flex to center tick */
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.4s ease;
  z-index: 2;
}

/* Spinner Animation */
.animated-submit.loading .tick-circle {
  opacity: 1;
  transform: scale(0.8);
  border-top: 2px solid transparent;
  animation: spin 1s linear infinite;
}

/* Stop spinning and show tick */
.animated-submit.submitted .tick-circle {
  border: 2px solid #17b978;
  animation: none;
  transform: scale(1.2);
  background-color: white; /* Optional for contrast */
}

/* Animate tick visibility */
.animated-submit.submitted .tick {
  opacity: 1;
  transform: scale(1);
}

/* Hide tick until submitted */
.tick {
  color: #17b978;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

/* Hide text on loading or submitted */
.animated-submit.loading .submit-text,
.animated-submit.submitted .submit-text {
  opacity: 0;
  transform: scale(0.8);
}

@keyframes spin {
  0% {
    transform: rotate(0deg) scale(0.8);
  }
  100% {
    transform: rotate(360deg) scale(0.8);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-name {
    flex-direction: column;
    gap: 15px;
  }

  .lightbox-content {
    padding: 20px;
  }
}

/* Footer */
.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  color: black;
  text-align: center;
}

footer {
  color: black;
  padding: 20px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-wrap: wrap;
  font: 16px Helvetica, Sans-Serif;
  letter-spacing: 1px;
  line-height: 1.8;
  padding: 0 5px;
}

.footer-message {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  font-family: "Source Sans Pro", sans-serif;
  text-align: center;
  opacity: 0.8;
  transition: opacity 0.4s ease;
}

.social-media a {
  color: black;
  margin-right: 9px;
  font-size: 1.1em;
  text-decoration: none;
}

footer .social-media a:hover ion-icon[name="send-outline"] {
  color: #f4c430;
}

footer .social-media a:hover ion-icon[name="logo-instagram"] {
  color: #e1306c;
}

footer .social-media a:hover ion-icon[name="logo-youtube"] {
  color: #ff0000;
}

footer .social-media a:hover ion-icon[name="logo-linkedin"] {
  color: #0077b5;
}

/* === Widget Stack === */
.floating-widget-stack {
  position: fixed;
  bottom: 40px;
  right: 35px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

/* === Floating Badge Base === */
.floating-badge {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 1000;
  font-family: Arial, sans-serif;
}

.floating-badge button,
.floating-widget-stack button {
  width: 50px;
  height: 50px;
  background-color: white;
  color: black;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

/* Hover Effects */
.floating-widget-stack button:hover {
  transform: translateY(-3px);
}

.floating-widget-stack button:hover ion-icon {
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

#topBtn:hover ion-icon {
  color: #f4c430;
}

#toggle-changelog:hover ion-icon {
  color: #8b5e3c;
}

#toggleStats:hover {
  transform: translateY(-3px);
  color: #8E44AD;
}

/* === Tooltip Styling === */
.tooltip-text {
  position: absolute;
  top: 20%;
  left: -155px; /* default, customize per widget */
  background-color: #333;
  color: #fff;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(4px);
}

.floating-badge:hover .tooltip-text {
  opacity: 1;
  transform: translateY(0);
}

.floating-badge.active .tooltip-text {
  display: none;
}

/* Tooltip Position Adjustments */
#top-widget {
  position: relative;
}
#top-widget .tooltip-text {
  left: -80px;
}

#stats-widget {
  position: relative;
}
#stats-widget .tooltip-text {
  left: -105px;
}

#stats-widget.active .tooltip-text,
#changelog-widget.active .tooltip-text,
body.panel-open .tooltip-text {
  display: none !important;
}

/* === Arrow Icon (if used) === */
.arrow {
  border: solid white;
  border-width: 0 3px 3px 0;
  padding: 5px;
  transform: rotate(-135deg);
}

/* === Stats Panel === */
.stats-panel {
  position: absolute;
  right: 80px;
  bottom: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 15px;
  width: 200px;
  display: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  z-index: 1001;
}

.stats-section {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.enhanced-panel {
  animation: fadeInUp 0.4s ease;
}

.stats-panel h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 1rem;
  color: #444;
  margin-bottom: 10px;
  border-left: 3px solid #8E44AD;
  padding-left: 8px;
}

.stats-panel p {
  margin: 6px 0 10px;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #333;
  position: relative;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.stats-section p {
  opacity: 0.4;
  transition: opacity 0.5s ease;
}

.stats-section p.loaded {
  opacity: 1;
}

.stats-section p:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.stat-value {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #8E44AD;
  background: rgba(142, 68, 173, 0.05);
  padding: 2px 8px;
  border-radius: 8px;
}

/* Stat values animated appearance */
.stat-value {
  opacity: 0.4;
  transition: opacity 0.5s ease;
}

.stat-value.loaded {
  opacity: 1;
}

.stats-section {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.stats-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.stats-section ion-icon {
  vertical-align: middle;
  position: relative;
  top: -1px; /* Adjust this value to fine-tune */
}

/* Grouping elements inline */
.stat-inline-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Rank badge style */
.rank-badge {
  display: inline-block;
  background-color: #8E44AD;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

/* Initially hidden */
.rank-badge.hidden {
  display: none;
}

/* Toggle icon button */
.rank-toggle {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-size: 0.85rem;
  color: #8E44AD;
  display: inline;
  align-items: center;
}
.rank-toggle:hover {
  opacity: 0.7;
}

/* Tooltip container (shared for both) */
.tooltip-toggle {
  position: relative;
  cursor: pointer;
}

/* Tooltip text */
.tooltip-toggle::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 120%; /* move below */
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 6px 8px;
  font-size: 0.7rem;
  white-space: nowrap;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 100;
}

/* Show tooltip on hover */
.tooltip-toggle:hover::after,
.tooltip-toggle:hover::before {
  opacity: 1;
}

/* Optional animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Changelog Panel === */
#changelog-widget {
  position: relative;
}

.changelog-box {
  display: none;
  position: absolute;
  bottom: 0;
  right: 80px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 16px;
  width: 320px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  animation: slideInUp 0.4s ease;
  z-index: 1001;
}

#changelog-content h4 {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #555;
  text-transform: capitalize;
  letter-spacing: 0.8px;
  border-left: 3px solid #8b5e3c;
  padding-left: 8px;
}

#changelog-content h4 ion-icon {
  vertical-align: middle;
  position: relative;
  top: -1px; /* Adjust this value to fine-tune */
}

#changelog-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  z-index: 3000;
}

#changelog-content li {
  margin-bottom: 10px;
  line-height: 1.4;
  font-size: 0.88rem;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

#changelog-content li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#changelog-content small {
  color: #777;
}

.testing-note {
  font-size: 12px;
  color: #777;
  font-style: italic;
  line-height: 1.4em;
}

/* === Animations === */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cookie Popup - Base Styles */
#cookie-popup {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 1rem 1.2rem;
  font-family: "Source Sans Pro", sans-serif;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  animation: fadeInSlideUp 0.4s ease forwards;
}

/* Correct the class name */
.cookie-button-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

/* Settings icon button styling */
#settingBtn {
  background: none;
  border: none;
  padding: 0.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#settingBtn ion-icon {
  font-size: 1.3rem;
  color: #ccc;
  transition: color 0.3s ease;
}

#settingBtn:hover ion-icon {
  color: #f4c430;
}

#cookie-popup.fade-out {
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
}

#cookie-popup p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

#cookie-popup button {
  width: 100%;
  padding: 0.75rem 1rem;
  font-weight: bold;
  font-size: 0.9rem;
  color: black;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
}

.accept-cookies {
  background: linear-gradient(to right, #f4c430, #ffd84d);
  transition: color 0.3s ease;
  min-width: 175px;
  flex-grow: 1;
}

.accept-cookies:hover {
  background: linear-gradient(to right, #e0b420, #f0c000);
}

.close-cookies {
  background: linear-gradient(to right, #a6aab3, #d8dce3);
  border: none;
  min-width: 100px;
  flex-grow: 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.close-cookies:hover {
  background: linear-gradient(to right, #8f949e, #cbd1db);
  color: #f4c430;
  border-color: #f4c430;
}

.cookie-preferences-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  padding: 0.1rem 0.2rem;
  font-size: 0.8rem;
  color: black;
  border: 1px solid #ccc;
  border-radius: 0;
  box-shadow: 0;
  cursor: pointer;
  background-color: white;
  transition: background 0.3s ease;
}

.cookie-preferences-btn:hover {
  letter-spacing: 0.2px;
}

/* Cookie Settings Panel */
#cookie-settings {
  display: none;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  padding: 2rem 1.2rem 1rem;
  background: rgba(0, 0, 0, 0.9);
  color: #f4f4f4;
  font-family: "Source Sans Pro", sans-serif;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  animation: slideFadeIn 0.4s ease forwards;
}

#cookie-settings .close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  font-weight: bold;
}

#cookie-settings .close-btn:hover {
  color: darkred;
}

#cookie-settings h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #f4c430;
}

#cookie-settings label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 0.75rem;
  gap: 0.6rem;
  cursor: pointer;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  transition: background 0.3s ease, border 0.3s ease;
}

/* Icon Colors */
#cookie-settings label ion-icon[name="lock-closed-outline"] {
  color: #00c896; /* green for essential */
}

#cookie-settings label ion-icon[name="stats-chart-outline"] {
  color: #7d5fff; /* purple for analytics */
}

#cookie-settings label ion-icon[name="megaphone-outline"] {
  color: #f49f30; /* orange for marketing */
}

/* Icon and label grouped */
.label-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Prevent the switch from stretching */
.switch-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* New Switch-Style Toggle using label + span */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider track */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

/* Slider handle */
.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: #f4c430;
}

.switch input:focus + .slider {
  box-shadow: 0 0 1px #f4c430;
}

.switch input:checked + .slider:before {
  transform: translateX(15px);
}

/* Stylize the disabled & checked essential switch */
.switch input:disabled:checked + .slider {
  background: linear-gradient(to right, #888c40, #d5bc3d); /* muted gold */
  cursor: not-allowed;
  opacity: 0.6;
}

/* Make the handle look inactive */
.switch input:disabled:checked + .slider:before {
  background-color: #ddd;
  cursor: not-allowed;
}

/* Prevent pointer feedback on hover */
#cookie-settings label:has(input:disabled) {
  cursor: default;
}

#cookie-settings label:has(input:disabled):hover {
  background-color: rgba(255, 255, 255, 0.05); /* no hover emphasis */
  border-color: transparent;
}

#cookie-settings label:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #f4c430;
}

#cookie-settings label ion-icon {
  font-size: 1.2rem;
  color: #f4c430;
}

#cookie-settings input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #f4c430;
}

#cookie-settings .btn-wrapper {
  margin-top: 1.5rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

#cookie-settings .save-btn {
  width: 100%;
  padding: 1rem;
  font-weight: bold;
  font-size: 0.95rem;
  background: linear-gradient(to right, #f4c430, #ffd84d);
  color: black;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
  margin-bottom: 1rem;
}

#cookie-settings .save-btn:hover {
  background: linear-gradient(to right, #e0b420, #f0c000);
}

.save-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.save-text {
  z-index: 1;
}

.save-loader {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background-color: black;
  width: 0%;
  transition: width 1.2s ease-in-out;
  z-index: 0;
}

/* Animations */
@keyframes fadeInSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 30px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media screen and (max-width: 768px) {
  #cookie-popup {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    font-size: 0.9rem;
    text-align: center;
  }

  #cookie-popup p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
  }

  #cookie-popup button {
    width: auto;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  #setting ion-icon {
    font-size: 18px; /* Smaller cog icon */
  }

  #cookie-settings {
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.2rem 1rem; /* Extra bottom space for save button */
    text-align: center;
  }

  #cookie-settings h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  #cookie-settings label {
    font-size: 1rem;
    width: 100%;
  }

  #cookie-settings .btn-wrapper {
    margin-top: 1.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  #cookie-settings .save-btn,
  .save-btn {
    width: 100%;
    font-size: 0.95rem;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
    bottom: 0;
  }

  #cookie-settings .close-btn {
    top: 12px;
    right: 16px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .changelog-box {
    right: 60px;
    width: 220px;
  }
}
