:root {
  --theme-color: #d41555;
  /* main theme color */
  --theme-hover: #a50f3f;
  /* darker hover version */
  --theme-shadow: rgba(212, 21, 85, 0.5);
  /* pink glow */
}

.insta-link {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #000000;
  /* black box */
  color: white;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  display: inline-flex;
  align-items: center;
  user-select: none;
  z-index: 1000;
  font-size: 1rem;
  letter-spacing: 0.1em;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease,
    width 0.4s ease;
  width: 130px;
  /* fixed width for INSTAGRAM */
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
}

.insta-link:hover,
.insta-link:focus {
  background-color: #222222;
  /* slightly lighter black */
  outline: none;
  transform: scale(1.05);
  width: 180px;
  /* expanded width for username */
}

.insta-content {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  transition: all 0.3s ease;
}

/* Hide default text on hover */
.insta-link:hover .insta-text {
  opacity: 0;
  transform: translateX(-20px);
  position: absolute;
  pointer-events: none;
}

.insta-link {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #000000;
  color: white;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  display: inline-flex;
  align-items: center;
  user-select: none;
  z-index: 1000;
  font-size: 1rem;
  letter-spacing: 0.1em;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease,
    width 0.4s ease;
  width: 130px;
  white-space: nowrap;
  cursor: pointer;
  overflow: visible;
}

.insta-link:hover,
.insta-link:focus {
  background-color: #222222;
  outline: none;
  transform: scale(1.05);
  width: 180px;
}

/* Text spans */
.insta-text {
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: inline-block;
  user-select: none;
}

.insta-text {
  /* existing styles you have here */
  text-shadow:
    0 0 5px rgba(255, 255, 255, 0.8),
    0 0 10px rgba(255, 255, 255, 0.6),
    0 0 15px rgba(255, 255, 255, 0.4);
}

.insta-text-hover {
  opacity: 0;
  transform: translateX(-10px);
  position: absolute;
  pointer-events: none;
}

.insta-link:hover .insta-text-default {
  opacity: 0;
  transform: translateX(10px);
  position: absolute;
  pointer-events: none;
}

.insta-link:hover .insta-text-hover {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  pointer-events: auto;
}








.additional-tools-link {
  color: #00ffa8;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.additional-tools-link {
  background: none;
  border: none;
  cursor: pointer;
  color: #00ffa8;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.additional-tools-link:hover {
  color: #00cc82;
  text-decoration: underline;
}

/* ===== Modal Overlay ===== */
.modal {
  display: flex;
  /* always flex so transition can work */
  position: fixed;
  inset: 0;
  z-index: 2000;
  justify-content: center;
  align-items: center;

  /* start invisible */
  opacity: 0;
  pointer-events: none;
  /* prevent clicks when hidden */
  background: rgba(0, 0, 0, 0.0);
  /* start transparent */
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);

  transition:
    opacity 0.3s ease,
    background 0.3s ease,
    backdrop-filter 0.3s ease;
}

/* When visible */
.modal.show {
  opacity: 1;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ===== Modal Box ===== */
/* ===== Modal Box ===== */
.modal-content {
  position: relative;
  background: #121212;
  border: 2px solid #00ffa8;
  border-radius: 16px;
  padding: 26px 32px;
  width: min(90vw, 520px);
  color: #ccc;
  text-align: center;
  box-shadow: 0 0 24px rgba(0, 255, 168, 0.45);
  opacity: 0;
  transform: scale(0.7);
}

/* Animate when modal is shown */
.modal.show .modal-content {
  animation: zoomIn 0.1s ease-out forwards;
}

/* Keyframes for zoom-in */
@keyframes zoomIn {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Links inside Additional Tools modal */
.modal-content a {
  color: #00ffa8;
  /* your theme green */
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.modal-content a:hover {
  color: #00cc82;
  /* lighter green on hover */
  text-decoration: underline;
}

.tools-row {
  margin-top: 100px;
  /* ⬅️ push buttons down */
  text-align: center;
}

.tools-row button {
  background: none;
  border: none;
  cursor: pointer;
  color: #00ffa8;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  margin: 0 15px;
  /* space between AE Scripts and Additional Tools */
}

.tools-row button:hover {
  color: #00cc82;
  text-decoration: underline;
}


.ae-scripts-link {
  background: none;
  border: none;
  cursor: pointer;
  color: #00ffa8;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.ae-scripts-link:hover {
  color: #00cc82;
  text-decoration: underline;
}

/* Close button for modals */
.modal .close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  font-weight: bold;
  color: #00ffa8;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal .close-btn:hover {
  color: #00cc82;
}

.warning-link {
  text-align: center;
  margin-top: 12px;
  color: #ffcc00;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.warning-link:hover {
  color: #ffaa00;
  text-decoration: underline;
}

.twitter-link {
  position: fixed;
  bottom: 70px;
  /* places above Instagram */
  left: 20px;
  background-color: #000000;
  /* X is black brand */
  color: white;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  display: inline-flex;
  align-items: center;
  user-select: none;
  z-index: 1000;
  font-size: 1rem;
  letter-spacing: 0.1em;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease,
    width 0.4s ease;
  width: 130px;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
}

.twitter-link:hover,
.twitter-link:focus {
  background-color: #111111;
  /* slightly lighter black on hover */
  outline: none;
  transform: scale(1.05);
  width: 180px;
}

.tw-text {
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: inline-block;
  user-select: none;
}

.tw-text-hover {
  opacity: 0;
  transform: translateX(-10px);
  position: absolute;
  pointer-events: none;
}

.twitter-link:hover .tw-text-default {
  opacity: 0;
  transform: translateX(10px);
  position: absolute;
  pointer-events: none;
}

.twitter-link:hover .tw-text-hover {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  pointer-events: auto;
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  background: #121212;
  color: #ffffff;
  font-size: 1.2rem;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 2000;
  box-shadow: 0 0 8px rgba(0, 255, 168, 0.5);
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  transform: scale(1.1);
  background: #00ffa8;
  color: #121212;
}

/* Light Theme */
body.light-mode {
  background-color: #f7f7f7;
  color: #000;
  /* All text turns black */
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* Header text */
body.light-mode header>div:first-child {
  color: #000;
  text-shadow: none;
}

/* Cards */
body.light-mode .card {
  background: linear-gradient(145deg, #ffffff, #f2f2f2);
  color: #000;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
}

/* Software titles */
body.light-mode .software-title {
  color: #000;
}

/* Download button */
body.light-mode .download-btn {
  background-color: #000;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.light-mode .download-btn:hover {
  background-color: #333;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

/* Footer */
body.light-mode footer {
  color: #000;
}

/* Modal content text */
body.light-mode .modal-content {
  background: #ffffff;
  color: #000;
  border: 2px solid #000;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
}

/* Smooth theme transition for all major elements */
body,
header,
.card,
.download-btn,
footer,
.theme-toggle,
.insta-link,
.twitter-link,
.modal-content {
  transition:
    background-color 0.5s ease,
    color 0.5s ease,
    box-shadow 0.5s ease,
    border-color 0.5s ease,
    text-shadow 0.5s ease;
}

body::before {
  transition: opacity 0.5s ease, background-color 0.5s ease;
}

/* Light mode: make typewriter texts black */
body.light-mode #creator-text,
body.light-mode #animator-text {
  color: #000 !important;
}

#creator-text,
#animator-text {
  transition: color 0.5s ease;
}

/* Changelog Toggle Button */
.changelog-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #121212;
  color: #00ffa8;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 2000;
  box-shadow: 0 0 8px rgba(0, 255, 168, 0.5);
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.changelog-toggle:hover {
  background: #00ffa8;
  color: #121212;
  transform: scale(1.05);
}

/* Changelog Panel */
.changelog-panel {
  position: fixed;
  top: 60px;
  /* appears below button */
  right: 20px;
  width: 280px;
  max-height: 0;
  overflow: hidden;
  background: #121212;
  color: #ccc;
  border: 1.5px solid #00ffa8;
  border-radius: 10px;
  padding: 0 16px;
  box-shadow: 0 0 15px rgba(0, 255, 168, 0.4);
  z-index: 1999;
  transition: max-height 0.5s ease, padding 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}

.changelog-panel.open {
  max-height: 300px;
  /* enough to show content */
  padding: 16px;
  opacity: 1;
}

.changelog-panel h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: #00ffa8;
}

.changelog-panel ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Scroll to Top Button */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #00ffa8;
  color: #0e0e0e;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0, 255, 168, 0.6);
  z-index: 2000;
  display: none;
  /* hidden by default */
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#scrollTopBtn:hover {
  transform: scale(1.1);
  background: #00cc82;
}

/* Make only dates shine in changelog */
.changelog-panel li strong {
  color: #00ffa8;
  text-shadow:
    0 0 5px rgba(0, 255, 168, 0.8),
    0 0 10px rgba(0, 255, 168, 0.6),
    0 0 15px rgba(0, 255, 168, 0.4);
}

/* Fullscreen Loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0e0e0e;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Spinner animation */
.loader-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(0, 255, 168, 0.3);
  border-top-color: #00ffa8;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 18px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Text below spinner */
.loader-text {
  color: #00ffa8;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px rgba(0, 255, 168, 0.7);
}

/* When hidden */
#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Glitch Effect */
.glitch-text {
  position: relative;
  font-size: 2.8rem;
  font-weight: 600;
  color: #00ffa8;
  letter-spacing: 3px;
  text-shadow: 0 0 8px #00ffa8;
  opacity: 1;
}

/* Glitch animation */
.glitch-text.glitching {
  animation: glitch 0.5s linear infinite;
}

@keyframes glitch {
  0% {
    text-shadow: 2px 2px #ff00c1, -2px -2px #00fff9;
  }

  20% {
    text-shadow: -2px 2px #ff00c1, 2px -2px #00fff9;
  }

  40% {
    text-shadow: 2px -2px #ff00c1, -2px 2px #00fff9;
  }

  60% {
    text-shadow: -2px -2px #ff00c1, 2px 2px #00fff9;
  }

  80% {
    text-shadow: 2px 2px #ff00c1, -2px -2px #00fff9;
  }

  100% {
    text-shadow: none;
  }
}

#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  /* behind background image */
  pointer-events: none;
  /* don’t block clicks */
}

/* Scroll Progress Bar */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  width: 0;
  z-index: 3000;
  transition: width 0.1s ease;
}

/* Dark mode glow */
body:not(.light-mode) #scrollProgress {
  background: #00ffa8;
  box-shadow: 0 0 10px #00ffa8, 0 0 20px #00ffa8;
}

/* Light mode style */
body.light-mode #scrollProgress {
  background: #000;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
}

/* === RESPONSIVE DESIGN FIX === */

/* For tablets and small laptops */
@media screen and (max-width: 1024px) {
  .grid-container {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    padding: 0 15px;
  }

  .card {
    padding: 18px;
  }

  .software-title {
    font-size: 1.6rem;
  }

  .software-desc {
    font-size: 0.95rem;
  }

  .download-btn {
    font-size: 1rem;
    padding: 12px 18px;
    width: 100%;
    text-align: center;
  }
}

/* For mobile phones */
@media screen and (max-width: 768px) {

  /* Body padding */
  body {
    padding: 10px;
  }

  /* Grid stacks into 1 column */
  .grid-container {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0 10px;
  }

  /* Cards smaller on mobile */
  .card {
    padding: 16px;
    box-shadow: 0 0 8px rgba(0, 255, 168, 0.2);
  }

  /* Reduce heading sizes */
  header>div:first-child {
    font-size: 1.8rem;
    letter-spacing: 2px;
  }

  /* Typewriter texts */
  #creator-text,
  #animator-text {
    font-size: 0.9rem;
    word-break: break-word;
    display: block;
    text-align: center;
  }

  /* Download buttons */
  .download-btn {
    font-size: 0.95rem;
    padding: 10px;
    width: 100%;
  }

  /* Instagram & Twitter buttons */
  .insta-link,
  .twitter-link {
    width: auto;
    padding: 6px 12px;
    font-size: 0.85rem;
    min-width: 100px;
  }

  /* Adjust theme toggle and changelog buttons */
  .theme-toggle,
  .changelog-toggle {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  /* Fix modal padding */
  .modal-content {
    width: 90%;
    padding: 18px;
  }
}

/* For very small devices (≤ 480px) */
@media screen and (max-width: 480px) {
  header>div:first-child {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }

  #creator-text,
  #animator-text {
    font-size: 0.8rem;
  }

  .software-title {
    font-size: 1.3rem;
  }

  .software-desc {
    font-size: 0.85rem;
  }

  .download-btn {
    font-size: 0.85rem;
    padding: 8px;
  }

  .insta-link,
  .twitter-link {
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  .theme-toggle,
  .changelog-toggle {
    font-size: 0.7rem;
    padding: 5px 8px;
  }
}

/* === Social Media Section === */
.social-section {
  margin-top: 80px;
  text-align: center;
  padding: 30px 20px;
  background: #121212;
  border-top: 2px solid #00ffa8;
  box-shadow: 0 -4px 20px rgba(0, 255, 168, 0.15);
  border-radius: 12px 12px 0 0;
}

.social-section h2 {
  color: #00ffa8;
  font-size: 1.4rem;
  margin-bottom: 18px;
  text-shadow: 0 0 6px rgba(0, 255, 168, 0.5);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  padding: 12px 20px;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(0, 255, 168, 0.3);
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

.social-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(0, 255, 168, 0.6);
}

/* Instagram hover */
.social-btn.instagram:hover {
  background: #e1306c;
  box-shadow: 0 0 12px rgba(225, 48, 108, 0.8);
}

/* Twitter hover */
.social-btn.twitter:hover {
  background: #1da1f2;
  box-shadow: 0 0 12px rgba(29, 161, 242, 0.8);
}

/* Mobile responsive adjustments */
@media screen and (max-width: 768px) {
  .social-links {
    flex-direction: column;
    gap: 15px;
  }

  .social-btn {
    width: 100%;
    justify-content: center;
  }
}

/* === Social Media Section === */
.social-section {
  margin-top: 80px;
  text-align: center;
  padding: 30px 20px;
  background: #121212;
  border-top: 2px solid #00ffa8;
  box-shadow: 0 -4px 20px rgba(0, 255, 168, 0.15);
  border-radius: 12px 12px 0 0;
}

.social-section h2 {
  color: #00ffa8;
  font-size: 1.4rem;
  margin-bottom: 18px;
  text-shadow: 0 0 6px rgba(0, 255, 168, 0.5);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Social Button Base */
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  padding: 12px 20px;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease, width 0.4s ease;
  box-shadow: 0 0 8px rgba(0, 255, 168, 0.3);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  min-width: 160px;
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

/* Default & Hover Text Animations */
.social-text-default,
.social-text-hover {
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: inline-block;
  user-select: none;
}

.social-text-hover {
  opacity: 0;
  transform: translateX(-15px);
  position: absolute;
  pointer-events: none;
}

.social-btn:hover .social-text-default {
  opacity: 0;
  transform: translateX(15px);
  position: absolute;
}

.social-btn:hover .social-text-hover {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  pointer-events: auto;
}

/* Hover Effects */
.social-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(0, 255, 168, 0.6);
}

/* Instagram Color */
.social-btn.instagram:hover {
  background: #e1306c;
  box-shadow: 0 0 12px rgba(225, 48, 108, 0.8);
}

/* Twitter Color */
.social-btn.twitter:hover {
  background: #1da1f2;
  box-shadow: 0 0 12px rgba(29, 161, 242, 0.8);
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
  .social-links {
    flex-direction: column;
    gap: 15px;
  }

  .social-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== Unified Footer Styling ===== */
.main-footer {
  background: #121212;
  border-top: 2px solid #00ffa8;
  box-shadow: 0 -4px 20px rgba(0, 255, 168, 0.15);
  padding: 35px 0 20px;
  /* Remove side padding to make background full width */
  margin-top: 80px;
  text-align: center;
  width: 100%;
  /* Force footer background to fill the entire viewport */
  position: relative;
  left: 0;
  right: 0;
}


.footer-container {
  max-width: 1200px;
  /* Keep content centered */
  margin: 0 auto;
  padding: 0 20px;
  /* Add inner spacing */
  box-sizing: border-box;
}



/* Social Section Inside Footer */
.footer-social h2 {
  color: #00ffa8;
  font-size: 1.3rem;
  margin-bottom: 18px;
  text-shadow: 0 0 6px rgba(0, 255, 168, 0.5);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

/* Social Button Base */
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  padding: 12px 20px;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease, width 0.4s ease;
  box-shadow: 0 0 8px rgba(0, 255, 168, 0.3);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  min-width: 160px;
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

/* Hover Text Animation */
.social-text-default,
.social-text-hover {
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: inline-block;
  user-select: none;
}

.social-text-hover {
  opacity: 0;
  transform: translateX(-15px);
  position: absolute;
  pointer-events: none;
}

.social-btn:hover .social-text-default {
  opacity: 0;
  transform: translateX(15px);
  position: absolute;
}

.social-btn:hover .social-text-hover {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  pointer-events: auto;
}

/* Hover Effects */
.social-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(0, 255, 168, 0.6);
}

/* Instagram Color */
.social-btn.instagram:hover {
  background: #e1306c;
  box-shadow: 0 0 12px rgba(225, 48, 108, 0.8);
}

/* Twitter Color */
.social-btn.twitter:hover {
  background: #1da1f2;
  box-shadow: 0 0 12px rgba(29, 161, 242, 0.8);
}

/* Footer Bottom Text */
.footer-bottom {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #ccc;
  opacity: 0.85;
}

/* Responsive Footer */
@media screen and (max-width: 768px) {
  .social-links {
    flex-direction: column;
    gap: 15px;
  }

  .social-btn {
    width: 100%;
    justify-content: center;
  }

  .footer-social h2 {
    font-size: 1.1rem;
  }

  .footer-bottom {
    font-size: 0.85rem;
  }
}

/* License Glow Effect */
.license-glow {
  animation: licenseGlow 1s ease forwards;
}

@keyframes licenseGlow {
  0% {
    text-shadow: 0 0 12px #00ffa8, 0 0 24px #00ffa8;
    color: #00ffa8;
  }

  100% {
    text-shadow: none;
    color: #ccc;
    /* back to your normal text color */
  }
}

/* Favourite Tools Section */
.footer-fav-tools {
  margin-top: 30px;
  text-align: center;
}

.footer-fav-tools h2 {
  color: #00ffa8;
  font-size: 1.2rem;
  margin-bottom: 12px;
  text-shadow: 0 0 6px rgba(0, 255, 168, 0.5);
}

/* View Products Button */
.fav-tools-btn {
  display: inline-block;
  margin-top: 8px;
  background: #121212;
  color: #00ffa8;
  padding: 10px 20px;
  border: 2px solid #00ffa8;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.fav-tools-btn:hover {
  background: #00ffa8;
  color: #121212;
  transform: scale(1.05);
}

/* Modal Subtitle Note */
.fav-note {
  margin: 6px 0 16px 0;
  /* small space below title */
  font-size: 0.95rem;
  color: #fff;
  /* pure white */
  text-align: center;
  opacity: 0.9;
}

/* Info Icon Styling */
.info-icon {
  font-size: 1.1rem;
  margin-left: 6px;
  cursor: pointer;
  color: #00ffa8;
  transition: transform 0.2s ease, color 0.3s ease;
  display: inline-block;
  vertical-align: middle;
}

.info-icon:hover {
  transform: scale(1.2);
  color: #00cc82;
}

/* Make Info Modal Smaller */
.info-modal {
  width: min(90vw, 420px);
  /* ✅ Slightly bigger for mobile */
  padding: 18px 20px;
  text-align: left;
  max-height: 70vh;
  /* ✅ Prevent modal from overflowing */
  overflow-y: auto;
  /* ✅ Enable scroll if text too long */
  box-sizing: border-box;
}


/* Typewriter Effect */
.typewriter {
  display: inline-block;
  font-family: monospace;
  font-size: 1rem;
  font-weight: 600;
  white-space: normal;
  /* ✅ Allow wrapping */
  word-break: break-word;
  /* ✅ Break long words */
  overflow-wrap: break-word;
  /* ✅ Safe fallback */
  overflow: hidden;
  border-right: 2px solid #00ffa8;
  max-width: 100%;
  /* ✅ Prevent overflowing container */
  margin-top: 10px;
  text-align: left;
}


/* Blinking Cursor */
.blinking-cursor {
  display: inline-block;
  color: #00ffa8;
  font-weight: bold;
  animation: blinkCursor 0.6s infinite;
}

@keyframes blinkCursor {

  0%,
  50% {
    opacity: 1;
  }

  50.01%,
  100% {
    opacity: 0;
  }
}

/* Tools Row Layout */
.tools-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  /* space between items */
  margin-top: 100px;
}

/* Info Icon Styling */
.info-icon {
  font-size: 1rem;
  cursor: pointer;
  color: #00ffa8;
  transition: transform 0.2s ease, color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

/* Info Icon Hover Effect */
.info-icon:hover {
  transform: scale(1.2);
  color: #00cc82;
}

/* AE Scripts Button Styling */
.ae-scripts-link {
  background: none;
  border: none;
  cursor: pointer;
  color: #00ffa8;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.ae-scripts-link:hover {
  color: #00cc82;
}

/* Tools Row Layout */
.tools-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  /* ✅ Reduced gap to bring icon closer */
  margin-top: 100px;
}

/* Info Icon Styling */
.info-icon {
  font-size: 1rem;
  cursor: pointer;
  color: #00ffa8;
  transition: transform 0.2s ease, color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 4px;
  /* ✅ Keep icon right next to AE Scripts text */
}

/* Info Icon Hover */
.info-icon:hover {
  transform: scale(1.15);
  color: #00cc82;
}

/* AE Scripts Button Styling */
.ae-scripts-link {
  background: none;
  border: none;
  cursor: pointer;
  color: #00ffa8;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  padding: 0;
}

.ae-scripts-link:hover {
  color: #00cc82;
}

/* Terms link above footer */
.footer-terms {
  text-align: center;
  margin-bottom: 10px;
  margin-top: 15px;
}

/* Terms & Conditions Link */
.terms-link {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #00ffa8;
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
}

.terms-link:hover {
  color: #00cc82;
  text-decoration: underline;
}

/* Terms Modal Styling */
.terms-modal {
  width: min(90vw, 480px);
  padding: 20px 24px;
  text-align: left;
  max-height: 70vh;
  overflow-y: auto;
  box-sizing: border-box;
}


/* Center Show Terms Overlay */



/* Container for info text + show terms text */
.show-terms-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Info text above Show Terms */
.show-terms-info {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 12px;
  max-width: 500px;
  line-height: 1.5;
}

/* Highlighted part of the info text */
.show-terms-info .highlight {
  color: #00ffa8;
  font-weight: 600;
}


/* Make Additional Tools text clickable */
.clickable-text {
  color: #00ffa8;
  cursor: pointer;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

.clickable-text:hover {
  color: #00cc82;
}

/* Hide all X close buttons on small screens only */
@media (max-width: 768px) {
  .close-btn {
    display: none !important;
  }
}

.exclusive-badge {
  display: inline-block;
  position: relative;
  background: #ffcc00;
  /* gold look */
  color: #000;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.8rem;
  /* ✅ text size stays normal */
}

.exclusive-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 40%;
  /* ✅ thinner streak */
  height: 100%;
  background: linear-gradient(120deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.9) 50%,
      /* ✅ stronger shine */
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  animation: shine 7s infinite;
}

@keyframes shine {
  0% {
    left: -120%;
  }

  2% {
    left: 120%;
  }

  /* ⚡ flash across in 0.14s */
  100% {
    left: 120%;
  }

  /* idle until next loop */
}

.eexclusive-badge {
  display: inline-block;
  background: linear-gradient(45deg, #00ff6a, #00ff62, #00ff73);
  color: #121212;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  margin-right: 10px;
  box-shadow: 0 0 8px rgba(155, 255, 168, 0.8);
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
  animation: shine 1.5s infinite linear;
}

.eeexclusive-badge {
  display: inline-block;
  background: linear-gradient(45deg, #7700ff, #8c00ff, #a200ff);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  margin-right: 10px;
  box-shadow: 0 0 8px rgba(204, 0, 255, 0.8);
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
  animation: shine 1.5s infinite linear;
}

.eeeexclusive-badge {
  display: inline-block;
  background: linear-gradient(45deg, #7700ff, #8c00ff, #a200ff);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  margin-right: 10px;
  box-shadow: 0 0 8px rgba(204, 0, 255, 0.8);
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
  animation: shine 1.5s infinite linear;
}

.eeeeexclusive-badge {
  display: inline-block;
  background: linear-gradient(45deg, #ff004c, #ff004c, #ff004c);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  margin-right: 10px;
  box-shadow: 0 0 8px rgba(255, 0, 55, 0.8);
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
  animation: shine 1.5s infinite linear;
}

@keyframes shine {
  0% {
    box-shadow: 0 0 4px rgba(255, 215, 0, 0.6), 0 0 8px rgba(255, 215, 0, 0.4);
  }

  50% {
    box-shadow: 0 0 12px rgba(255, 215, 0, 1), 0 0 24px rgba(255, 165, 0, 0.8);
  }

  100% {
    box-shadow: 0 0 4px rgba(255, 215, 0, 0.6), 0 0 8px rgba(255, 215, 0, 0.4);
  }
}


/* RGB split glitch layers */
.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
}

.glitch-text::before {
  left: 5px;
  text-shadow: -5px 0 #ff00c1;
  animation: glitch-top 4s ease-in-out forwards;
}

.glitch-text::after {
  left: -5px;
  text-shadow: 5px 0 #00fff9;
  animation: glitch-bottom 4s ease-in-out forwards;
}

/* Glitch skew effect */
@keyframes glitch-skew {
  0% {
    transform: skew(0deg);
  }

  10% {
    transform: skew(5deg);
  }

  20% {
    transform: skew(-5deg);
  }

  30% {
    transform: skew(4deg);
  }

  40% {
    transform: skew(-4deg);
  }

  50% {
    transform: skew(6deg);
  }

  60% {
    transform: skew(-3deg);
  }

  70% {
    transform: skew(3deg);
  }

  80% {
    transform: skew(-2deg);
  }

  90% {
    transform: skew(2deg);
  }

  100% {
    transform: skew(0deg);
  }

  /* Back to normal */
}

/* Top glitch layer */
@keyframes glitch-top {
  0% {
    clip: rect(0, 9999px, 0, 0);
  }

  10% {
    clip: rect(15px, 9999px, 45px, 0);
  }

  20% {
    clip: rect(85px, 9999px, 100px, 0);
  }

  30% {
    clip: rect(50px, 9999px, 80px, 0);
  }

  40% {
    clip: rect(20px, 9999px, 65px, 0);
  }

  50% {
    clip: rect(35px, 9999px, 90px, 0);
  }

  60% {
    clip: rect(5px, 9999px, 30px, 0);
  }

  70% {
    clip: rect(65px, 9999px, 95px, 0);
  }

  80% {
    clip: rect(25px, 9999px, 45px, 0);
  }

  90% {
    clip: rect(10px, 9999px, 75px, 0);
  }

  100% {
    clip: rect(0, 9999px, 0, 0);
    opacity: 0;
  }

  /* Fade out after glitch */
}

/* Bottom glitch layer */
@keyframes glitch-bottom {
  0% {
    clip: rect(0, 9999px, 0, 0);
  }

  10% {
    clip: rect(45px, 9999px, 85px, 0);
  }

  20% {
    clip: rect(5px, 9999px, 25px, 0);
  }

  30% {
    clip: rect(60px, 9999px, 95px, 0);
  }

  40% {
    clip: rect(25px, 9999px, 40px, 0);
  }

  50% {
    clip: rect(70px, 9999px, 100px, 0);
  }

  60% {
    clip: rect(35px, 9999px, 55px, 0);
  }

  70% {
    clip: rect(10px, 9999px, 45px, 0);
  }

  80% {
    clip: rect(55px, 9999px, 85px, 0);
  }

  90% {
    clip: rect(15px, 9999px, 35px, 0);
  }

  100% {
    clip: rect(0, 9999px, 0, 0);
    opacity: 0;
  }

  /* Fade out after glitch */
}

/* Responsive scaling */
@media screen and (max-width: 1280px) {
  .glitch-text {
    font-size: 6rem;
  }
}

@media screen and (max-width: 1024px) {
  .glitch-text {
    font-size: 5rem;
  }
}

@media screen and (max-width: 768px) {
  .glitch-text {
    font-size: 3.8rem;
  }
}

@media screen and (max-width: 480px) {
  .glitch-text {
    font-size: 2.8rem;
  }
}

/* Glitch Effect Improved */

.glitch-text {
  position: relative;
  font-size: clamp(4rem, 15vw, 25rem);
  /* responsive: min 2.5rem, max 5rem */
  font-weight: 700;
  color: #00ffa8;
  /* main neon green */
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 0 10px #00ffa8, 0 0 20px #00ffa8, 0 0 40px #00ffa8;
  animation: glitch-flicker 2s infinite;
  user-select: none;
}

/* Create duplicate glitch layers */
.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
  clip: rect(0, 900px, 0, 0);
}

.glitch-text::before {
  color: #ff00c1;
  /* neon pink */
  text-shadow: 2px 2px 8px rgba(255, 0, 193, 0.8);
  animation: glitchTop 2.5s infinite linear alternate-reverse;
}

.glitch-text::after {
  color: #00fff9;
  /* neon cyan */
  text-shadow: -2px -2px 8px rgba(0, 255, 249, 0.8);
  animation: glitchBottom 2.5s infinite linear alternate-reverse;
}

/* Flicker glow */
@keyframes glitch-flicker {

  0%,
  19%,
  21%,
  23%,
  80%,
  100% {
    opacity: 1;
  }

  20%,
  22% {
    opacity: 0.8;
  }

  25% {
    opacity: 0.6;
  }
}

/* Random top layer cuts */
@keyframes glitchTop {
  0% {
    clip: rect(10px, 9999px, 40px, 0);
    transform: translate(2px, -2px);
  }

  25% {
    clip: rect(80px, 9999px, 120px, 0);
    transform: translate(-2px, 2px);
  }

  50% {
    clip: rect(40px, 9999px, 80px, 0);
    transform: translate(1px, -1px);
  }

  75% {
    clip: rect(60px, 9999px, 100px, 0);
    transform: translate(-1px, 1px);
  }

  100% {
    clip: rect(20px, 9999px, 60px, 0);
    transform: translate(0, 0);
  }
}

/* Random bottom layer cuts */
@keyframes glitchBottom {
  0% {
    clip: rect(50px, 9999px, 90px, 0);
    transform: translate(-2px, 2px);
  }

  25% {
    clip: rect(20px, 9999px, 60px, 0);
    transform: translate(2px, -2px);
  }

  50% {
    clip: rect(70px, 9999px, 110px, 0);
    transform: translate(-1px, 1px);
  }

  75% {
    clip: rect(30px, 9999px, 70px, 0);
    transform: translate(1px, -1px);
  }

  100% {
    clip: rect(10px, 9999px, 50px, 0);
    transform: translate(0, 0);
  }
}

/* AE Scripts & Additional Tools buttons styled like social buttons */
.tools-row .tools-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #000;
  padding: 12px 20px;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(0, 255, 168, 0.3);
  min-width: 160px;
}

/* Hover glow */
.tools-row .tools-btn:hover {
  transform: scale(1.05);
  background: #00ffa8;
  color: #121212;
  box-shadow: 0 0 12px rgba(0, 255, 168, 0.8);
}

/* Ask a Question Widget (bottom-left) */
#askWidget {
  position: fixed;
  bottom: 25px;
  left: 25px;
  /* ⬅️ moved to left */
  background: #121212;
  border: 2px solid #00ffa8;
  border-radius: 30px;
  display: flex;
  align-items: center;
  padding: 6px 10px;
  box-shadow: 0 0 12px rgba(0, 255, 168, 0.6);
  z-index: 3000;
}

#askWidget form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

#askInput {
  border: none;
  background: transparent;
  outline: none;
  color: #fff;
  font-size: 0.95rem;
  padding: 6px;
  width: 180px;
}

#askInput::placeholder {
  color: #888;
}

#askSendBtn {
  background: #00ffa8;
  border: none;
  color: #121212;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}

#askSendBtn:hover {
  background: #00cc82;
  transform: scale(1.1);
}

/* Success Popup */
#askPopup {
  position: fixed;
  bottom: 80px;
  left: 25px;
  background: #00ffa8;
  color: #121212;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 0 10px rgba(0, 255, 168, 0.7);
  display: none;
  /* hidden by default */
  z-index: 3001;
}

/* Base floating widget (bottom-left, small) */
#askWidget {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background: #121212;
  border: 2px solid #00ffa8;
  border-radius: 30px;
  padding: 6px 10px;
  box-shadow: 0 0 12px rgba(0, 255, 168, 0.6);
  z-index: 3000;
  transition: all 0.4s ease;
  width: auto;
  max-width: 250px;
}

/* Textbox default (collapsed) */
#askInput {
  border: none;
  background: transparent;
  outline: none;
  color: #fff;
  font-size: 0.95rem;
  padding: 6px;
  resize: none;
  width: 160px;
  height: 28px;
  transition: all 0.4s ease;
}

#askInput::placeholder {
  color: #888;
}

#askSendBtn {
  background: #00ffa8;
  border: none;
  color: #121212;
  font-size: 1rem;
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

#askSendBtn:hover {
  background: #00cc82;
  transform: scale(1.05);
}

/* Expanded state (active) */
#askWidget.expanded {
  left: 50%;
  bottom: 50%;
  transform: translate(-50%, 50%);
  max-width: 500px;
  width: 90%;
  border-radius: 20px;
  padding: 16px;
}

#askWidget.expanded #askInput {
  width: 100%;
  height: 120px;
  font-size: 1rem;
  background: #1a1a1a;
  border-radius: 8px;
  padding: 10px;
}

#askWidget.expanded #askSendBtn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1rem;
}

/* Success Popup */
#askPopup {
  position: fixed;
  bottom: 80px;
  left: 25px;
  background: #00ffa8;
  color: #121212;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 0 10px rgba(0, 255, 168, 0.7);
  display: none;
  z-index: 3001;
}

/* Textbox default (collapsed) */
#askInput {
  border: none;
  background: transparent;
  outline: none;
  color: #fff;
  font-size: 0.95rem;
  padding: 6px;
  resize: none;
  /* stop resizing */
  width: 160px;
  height: 28px;
  overflow: hidden;
  /* hide scrollbars when small */
  line-height: 1.2rem;
  /* align text nicely */
  transition: all 0.4s ease;
}

#askWidget.expanded #askInput {
  width: 100%;
  height: 120px;
  font-size: 1rem;
  background: #1a1a1a;
  border-radius: 8px;
  padding: 10px;
  overflow-y: auto;
  /* allow scroll only when expanded */
}

/* Hide certain UI elements only on mobile */
@media screen and (max-width: 768px) {

  #themeToggle,
  /* Dark/Light mode toggle */
  #changelogToggle,
  /* What's New button */
  #askWidget {
    /* Ask a Question widget */
    display: none !important;
  }
}

/* Hide Dark Mode, What's New, and Ask Widget on mobile */
@media screen and (max-width: 768px) {

  #themeToggle,
  /* 🌙 Dark/Light mode toggle */
  #changelogToggle,
  /* 📜 What's New button */
  #askWidget {
    /* Ask a Question widget */
    display: none !important;
  }
}

#askReminderModal {
  z-index: 9999 !important;
  /* bring popup in front of everything */
}

#askReminderModal .modal-content {
  position: relative;
  z-index: 10000;
}

#askCloseBtn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #00ffa8;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10;
}

#askCloseBtn:hover {
  color: #ff3333;
}

.glow-text {
  font-weight: bold;
  color: #ffeb3b;
  /* bright yellow */
  text-shadow: 0 0 6px #ffeb3b, 0 0 12px #ffeb3b, 0 0 20px #ffeb3b;
}

.soft-glow-text {
  font-weight: bold;
  color: #00ffa8;
  /* soft neon green */
  text-shadow: 0 0 4px #00ffa8, 0 0 8px #00ffa8;
}

.gold-highlight {
  display: inline-block;
  background: #ffd700;
  /* golden background */
  padding: 10px 16px;
  border-radius: 8px;
  margin-top: 12px;
  font-weight: bold;
  font-size: 1rem;
  color: #000;
  /* black text */
  box-shadow: 0 0 8px #ffd700, 0 0 16px #ffbf00, 0 0 24px #ffdf00;
  /* glowing shine */
}

/* Disable horizontal scroll on mobile */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
}

/* Shine effect setup */
.glitch-text {
  position: relative;
  display: inline-block;
  color: #00ffa8;
  text-shadow: 0 0 8px #00ffa8;
  overflow: hidden;
  /* clip shine inside text */
}

/* Shine overlay */
.glitch-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.6) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  pointer-events: none;
}

/* Trigger shine */
.glitch-text.shine::before {
  animation: shineMove 2s ease-in-out forwards;
}

@keyframes shineMove {
  from {
    left: -75%;
  }

  to {
    left: 125%;
  }
}

/* Base sweeping band */
.dot-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 25vw;
  /* band width */
  height: 100%;
  /* fit vertically */
  background-image: radial-gradient(circle, rgba(150, 150, 150, 0.6) 1px, transparent 2px);
  background-size: 10px 10px;
  background-repeat: repeat;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
}

/* Sweep across */
.dot-pattern.active {
  animation: moveDots 6s ease-in-out forwards;
}

@keyframes moveDots {
  0% {
    transform: translateX(-40vw);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  45% {
    opacity: 1;
  }

  55% {
    opacity: 1;
  }

  100% {
    transform: translateX(120vw);
    opacity: 0;
  }
}

/* ===== Glowing Overlay ===== */
/* ===== Glowing Overlay ===== */
.dot-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 25vw;
  height: 100%;
  background-image: radial-gradient(circle, rgba(0, 255, 168, 1) 1px, transparent 2px);
  background-size: 10px 10px;
  background-repeat: repeat;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 12px rgba(0, 255, 168, 1));
  /* baseline glow */
}

/* Activated glow (middle sweep) */
.dot-glow.active {
  animation: moveDots 6s ease-in-out forwards, strongGlow 1.5s ease-in-out infinite alternate;
}

/* Much stronger pulsing glow */
@keyframes strongGlow {
  0% {
    opacity: 0.3;
    filter: drop-shadow(0 0 6px rgba(0, 255, 168, 0.5));
  }

  25% {
    opacity: 0.6;
    filter: drop-shadow(0 0 16px rgba(0, 255, 168, 0.8));
  }

  50% {
    opacity: 1;
    filter: drop-shadow(0 0 32px rgba(0, 255, 168, 1));
  }

  75% {
    opacity: 0.6;
    filter: drop-shadow(0 0 16px rgba(0, 255, 168, 0.8));
  }

  100% {
    opacity: 0.3;
    filter: drop-shadow(0 0 6px rgba(0, 255, 168, 0.5));
  }
}

/* Right-side green panel */
.right-panel {
  position: fixed;
  top: 0;
  right: -100%;
  /* start hidden off-screen */
  width: 40vw;
  /* panel width */
  height: 100%;
  background: linear-gradient(135deg, #00ffa8, #00cc82);
  color: #0a0a0a;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  box-shadow: -6px 0 20px rgba(0, 255, 168, 0.6);
  z-index: 999;
  /* above everything */
  transition: right 1s ease-in-out;
}

/* Show panel */
.right-panel.show {
  right: 0;
}

/* Hide panel again */
.right-panel.hide {
  right: -100%;
}

/* Wrap all page content */
.page-wrapper {
  transition: transform 1s ease-in-out;
  position: relative;
  z-index: 1;
}

/* Green panel */
.right-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 40vw;
  height: 100%;
  background: linear-gradient(135deg, #00ffa8, #00cc82);
  color: #0a0a0a;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  box-shadow: -6px 0 20px rgba(0, 255, 168, 0.6);
  z-index: 2;
  transform: translateX(100%);
  /* hidden offscreen */
  transition: transform 1s ease-in-out;
}

/* Slide in */
.right-panel.show {
  transform: translateX(0);
}

/* Page slides left when panel opens */
.page-wrapper.shifted {
  transform: translateX(-40vw);
}

/* Text inside the right panel */
.right-panel span {
  position: relative;
  display: inline-block;
  overflow: hidden;
  color: #0a0a0a;
}

/* Shine effect (diagonal light) */
.right-panel span::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.6) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
}

/* Trigger shine when panel shows */
.right-panel.show span::before {
  animation: shine 2s ease-in-out forwards;
}

/* Shine animation */
@keyframes shine {
  0% {
    left: -75%;
  }

  100% {
    left: 125%;
  }
}

/* Panel layout: column for headline + tagline */
.right-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 40vw;
  height: 100%;
  background: linear-gradient(135deg, #00ffa8, #00cc82);
  color: #0a0a0a;
  display: flex;
  flex-direction: column;
  /* stack vertically */
  justify-content: center;
  /* center vertically */
  align-items: center;
  /* center horizontally */
  font-family: 'Montserrat', sans-serif;
  box-shadow: -6px 0 20px rgba(0, 255, 168, 0.6);
  z-index: 10;
  transform: translateX(100%);
  transition: transform 1s ease-in-out;
}

/* Headline (main text) */
.right-panel .headline {
  position: relative;
  display: inline-block;
  overflow: hidden;
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #0a0a0a;
  margin-bottom: 10px;
  /* space for tagline */
}

/* Shine effect */
.right-panel .headline::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.6) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
}

.right-panel.show .headline::before {
  animation: shine 2s ease-in-out forwards;
}

/* Shine keyframes */
@keyframes shine {
  0% {
    left: -75%;
  }

  100% {
    left: 125%;
  }
}

/* Tagline (just below headline, smaller size) */
.right-panel .tagline {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: #0a0a0a;
  opacity: 0.9;
}

.download-counter {
  margin-top: 12px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: 1px;
  display: block;
  width: 100%;
  position: relative;
  user-select: none;
}

/* Pulse glow effect */
@keyframes pulseGlow {
  0% {
    text-shadow: 0 0 6px #00ffa8, 0 0 12px rgba(0, 255, 168, 0.6);
  }

  50% {
    text-shadow: 0 0 14px #00ffa8, 0 0 28px rgba(0, 255, 168, 0.9);
  }

  100% {
    text-shadow: 0 0 6px #00ffa8, 0 0 12px rgba(0, 255, 168, 0.6);
  }
}

.download-counter.animating {
  animation: pulseGlow 1s infinite;
}

/* 📱 Mobile optimizations */
@media (max-width: 768px) {
  body {
    padding: 10px;
    font-size: 14px;
  }

  header>div:first-child {
    font-size: 2rem;
    /* smaller glitch title */
    letter-spacing: 2px;
  }

  .software-title {
    font-size: 1.4rem;
  }

  .software-desc {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .grid-container {
    grid-template-columns: 1fr;
    /* stack cards on mobile */
    gap: 20px;
    max-width: 100%;
  }

  .card {
    padding: 18px;
  }

  .download-btn {
    font-size: 1rem;
    padding: 12px 22px;
    border-radius: 40px;
  }

  .download-counter {
    font-size: 1.1rem;
  }

  .modal .modal-content {
    width: 90%;
    /* make modals fit small screens */
    max-width: 400px;
    font-size: 0.9rem;
    padding: 15px;
  }

  footer {
    font-size: 0.8rem;
    text-align: center;
  }

  .footer-social h2,
  .footer-fav-tools h2 {
    font-size: 1rem;
  }

  .social-btn {
    font-size: 0.8rem;
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  header>div:first-child {
    font-size: 1.6rem;
    /* even smaller for very small phones */
  }

  .download-counter {
    font-size: 1rem;
  }

  .card {
    padding: 15px;
  }

  .download-btn {
    font-size: 0.9rem;
    padding: 10px 18px;
  }
}

/* 🔥 Permanent responsive grid for tool cards */
.download-cards {
  display: grid !important;
  /* force grid instead of flex */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.tool-card {
  background: #121212;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
}

/* 🔥 Permanent responsive grid for tool cards */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  padding: 20px;
}

/* Responsive grid for software cards */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

.card {
  background: #121212;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-5px);
}

/* 📱 Force vertical cards on mobile */
@media (max-width: 768px) {
  .grid-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    padding: 10px;
  }

  .grid-container .card {
    width: 100% !important;
    max-width: none !important;
  }
}

/* 🌟 Glassmorphism effect for tool cards */
.card {
  background: rgba(255, 255, 255, 0.08);
  /* transparent background */
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

/* Pop animation for counter digits */
@keyframes pop {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.4);
  }

  70% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
  }
}

.counter span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.counter .pop {
  animation: pop 0.4s ease;
}

/* Light mode fix for Ask Reminder modal */
body.light-mode #askReminderModal .modal-content {
  background: #f9f9f9;
  /* light background */
  color: #111;
  /* default dark text */
}

body.light-mode #askReminderModal h2 {
  color: #cc0000;
  /* red warning title */
}

body.light-mode #askReminderModal p {
  color: #111 !important;
  /* force black text */
}

body.light-mode #askReminderModal span {
  color: #0066cc;
  /* highlight email/instagram in blue */
}

/* === Light Mode: change neon green text to black === */
body.light-mode .glitch-text,
body.light-mode .software-title,
body.light-mode .exclusive-badge,
body.light-mode .eexclusive-badge,
body.light-mode .eeexclusive-badge,
body.light-mode .eeeexclusive-badge,
body.light-mode .eeeeexclusive-badge,
body.light-mode .local-time,
body.light-mode .terms-link,
body.light-mode #licenseToggle,
body.light-mode #downloadCounter,
body.light-mode #askReminderModal span {
  color: #111 !important;
  /* black text */
  text-shadow: none !important;
  /* remove glow */
}

/* Light Mode: Terms link fix */
body.light-mode .terms-link {
  color: #ffffff !important;
  /* black text */
  text-shadow: none !important;
}



/* Light Mode: Connect with Us section */
body.light-mode .footer-social {
  background: #ffffff;
  /* white background */
  color: #111 !important;
  /* black text */
  border-radius: 12px;
  /* optional: keep rounded look */
  padding: 16px;
  /* give it breathing space */
}

/* Make headings black */
body.light-mode .footer-social h2 {
  color: #111 !important;
}

/* Make social button text black on light mode */
body.light-mode .footer-social .social-btn {
  color: #111 !important;
}

/* Light Mode: Footer background */
body.light-mode footer.main-footer {
  background: #ffffff;
  /* whole footer white */
  color: #111;
}

/* Light Mode: Footer social box */
body.light-mode .footer-social {
  background: #ffffff;
  color: #111;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  /* subtle shadow */
}

/* Headings in footer */
body.light-mode .footer-social h2,
body.light-mode .footer-fav-tools h2 {
  color: #111 !important;
}

/* Social buttons fix */
body.light-mode .footer-social .social-btn {
  background: #f0f0f0;
  /* light gray button background */
  color: #111 !important;
  /* black text/icons */
  border: 1px solid #ccc;
}

body.light-mode .footer-social .social-btn:hover {
  background: #ddd;
}

/* "View Products" button */
body.light-mode .fav-tools-btn {
  background: #111;
  color: #fff;
  border: none;
}

body.light-mode .fav-tools-btn:hover {
  background: #333;
}

/* Footer bottom text */
body.light-mode .footer-bottom p {
  color: #111;
}

/* === Ask a Question Widget (bottom left) === */
body.light-mode #askWidget {
  background: #ffffff;
  border: 2px solid #111;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
}

body.light-mode #askWidget textarea {
  background: #f9f9f9;
  color: #111;
}

body.light-mode #askSendBtn {
  background: #111;
  color: #fff;
}

body.light-mode #askSendBtn:hover {
  background: #333;
}

/* Light Mode: License section */
body.light-mode #licenseText {
  background: #ffffff;
  /* white background */
  color: #111 !important;
  /* black text */
  border: 1.5px solid #111;
  /* black border instead of green */
}

/* Light Mode: Terms link fix */
body.light-mode .terms-link {
  color: #111 !important;
  /* black text */
  text-shadow: none !important;
}

/* Light Mode: Instagram hover */
body.light-mode .footer-social .social-btn.instagram:hover {
  background: #E1306C;
  /* Instagram pink */
  color: #fff !important;
  border-color: #E1306C;
}

/* Light Mode: Twitter hover */
body.light-mode .footer-social .social-btn.twitter:hover {
  background: #1DA1F2;
  /* Twitter blue */
  color: #fff !important;
  border-color: #1DA1F2;
}

/* Light Mode: Top action buttons */
body.light-mode #changelogToggle,
body.light-mode .ae-scripts-link,
body.light-mode .additional-tools-link {
  background: #ffffff;
  /* white background */
  color: #111 !important;
  /* black text */
  border: 1.5px solid #111;
  box-shadow: none;
}

/* Hover state for better feedback */
body.light-mode #changelogToggle:hover,
body.light-mode .ae-scripts-link:hover,
body.light-mode .additional-tools-link:hover {
  background: #f0f0f0;
  /* light gray hover */
}

.counter-tagline {
  font-size: 0.9rem;
  color: #ffffff;
  margin-top: 6px;
  text-align: center;
  font-style: italic;
  letter-spacing: 0.5px;
}

/* Floating Button */
.comments-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #00ffa8;
  color: #0e0e0e;
  font-size: 24px;
  padding: 14px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 255, 168, 0.4);
  transition: 0.3s ease;
  z-index: 999;
}

.comments-btn:hover {
  background-color: #00cc82;
}

/* Comments Panel */
.comments-panel {
  position: fixed;
  bottom: -100%;
  right: 0;
  width: 380px;
  height: 80vh;
  background: #121212;
  color: #fff;
  padding: 20px;
  box-shadow: -4px 0 15px rgba(0, 255, 168, 0.2);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  transition: bottom 0.4s ease-in-out;
  z-index: 1000;
  overflow-y: auto;
}

.comments-panel.open {
  bottom: 0;
}

/* Header */
.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}

.comments-header button {
  background: none;
  border: none;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
}

/* Form Styling */
#commentsForm {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

#commentsForm label {
  margin-top: 10px;
  font-size: 14px;
  color: #ccc;
}

#commentsForm select,
#commentsForm textarea {
  margin-top: 5px;
  padding: 10px;
  background: #1a1a1a;
  border: 1px solid #00ffa8;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
}

#commentsForm textarea {
  resize: none;
  height: 80px;
}

.comments-submit {
  margin-top: 12px;
  padding: 10px;
  background-color: #00ffa8;
  color: #0e0e0e;
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.comments-submit:hover {
  background-color: #00cc82;
}

/* Comments List */
.comments-list {
  margin-top: 15px;
}

.comments-list h4 {
  margin: 10px 0 5px;
  color: #00ffa8;
}

.comment-item {
  background: #1a1a1a;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 8px;
  font-size: 14px;
  color: #ccc;
}

/* Comments Badge on Tool Cards */
.comments-badge {
  background-color: #00ffa8;
  color: #0a0a0a;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(0, 255, 168, 0.5);
  transition: transform 0.2s ease;
}

.comments-badge:hover {
  transform: scale(1.05);
}

/* Inline Comments Modal */
.tool-comments-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 400px;
  max-height: 500px;
  overflow-y: auto;
  background: #121212;
  color: #fff;
  border-radius: 12px;
  padding: 20px;
  transform: translate(-50%, -50%);
  z-index: 1000;
  box-shadow: 0 0 20px rgba(0, 255, 168, 0.3);
}

.tool-comments-modal.active {
  display: block;
}

.tool-comments-modal h3 {
  color: #00ffa8;
  margin-bottom: 10px;
}

.tool-comment-item {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid #00ffa8;
}

.tool-comments-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  position: absolute;
  top: 10px;
  right: 12px;
  cursor: pointer;
}

.reaction-wrapper {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.reaction-btn {
  background: transparent;
  border: 2px solid #00ffa8;
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reaction-btn svg {
  width: 20px;
  height: 20px;
  color: #00ffa8;
  /* uses currentColor for fill */
}

.reaction-btn:hover {
  background: #00ffa8;
  transform: scale(1.1);
}

.reaction-btn:hover svg {
  color: #0a0a0a;
}

.reaction-btn.liked svg {
  color: #00ff55;
  /* green for like */
}

.reaction-btn.disliked svg {
  color: #ff3333;
  /* red for dislike */
}

.reaction-wrapper {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.reaction-btn {
  background: transparent;
  border: 2px solid #ffffff;
  /* always white border */
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.reaction-btn svg {
  width: 24px;
  height: 24px;
}

/* 👍 Like button = green */
.reaction-btn:first-child svg path {
  fill: #00ff55;
}

/* 👎 Dislike button = red */
.reaction-btn:last-child svg path {
  fill: #ff3333;
}

/* Hover effect */
.reaction-btn:hover {
  transform: scale(1.2);
  border-color: #ffffff;
  /* stays white */
}

/* Default card */
.card {
  background: linear-gradient(145deg, #1a1a1a, #121212);
  transition: background 0.8s ease, box-shadow 0.8s ease;
}

/* When liked (fade to green) */
.card.liked {
  background: linear-gradient(145deg, #003d1f, #002d15);
  box-shadow: 0 0 25px #00ff55;
}

/* When disliked (fade to red) */
.card.disliked {
  background: linear-gradient(145deg, #3d0000, #2d0000);
  box-shadow: 0 0 25px #ff3333;
}

/* Default card */
.card {
  background: linear-gradient(145deg, #1a1a1a, #121212);
  transition: background 0.8s ease, box-shadow 0.8s ease;
}

/* Liked state */
.card.liked {
  background: linear-gradient(145deg, #003d1f, #002d15);
  box-shadow: 0 0 25px #00ff55;
}

/* Disliked state */
.card.disliked {
  background: linear-gradient(145deg, #3d0000, #2d0000);
  box-shadow: 0 0 25px #ff3333;
}

/* Fluid wave animation */
.card.animate {
  animation: fluidPulse 2s ease-out forwards;
}

@keyframes fluidPulse {
  0% {
    transform: scale(1);
    border-radius: 12px;
  }

  20% {
    transform: scale(1.05);
    border-radius: 20px;
  }

  50% {
    transform: scale(0.97);
    border-radius: 30px;
  }

  80% {
    transform: scale(1.03);
    border-radius: 16px;
  }

  100% {
    transform: scale(1);
    border-radius: 12px;
  }
}

.reaction-wrapper {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  justify-content: center;
}

.reaction-btn {
  background: transparent;
  border: none;
  font-size: 18px;
  /* smaller button size */
  color: #ffffff;
  /* white text */
  font-weight: bold;
  /* bold text */
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.reaction-btn span {
  margin-left: 5px;
  font-size: 14px;
  /* smaller number text */
  font-weight: bold;
  /* bold numbers */
  color: #ffffff;
}

/* Animation effect on click */
.reaction-btn:active {
  transform: scale(1.3);
  /* zoom in slightly */
  color: #00ffa8;
  /* flash neon green when clicked */
}

.reaction-btn .emoji {
  font-size: 16px;
  /* smaller emoji size */
  margin-right: 4px;
  /* spacing between emoji and number */
  vertical-align: middle;
}

.reaction-btn {
  background: transparent;
  border: none;
  /* remove border */
  outline: none;
  /* remove focus outline */
  font-size: 18px;
  color: #ffffff;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.reaction-btn:focus {
  outline: none;
  /* remove green focus ring */
  box-shadow: none;
}

.card {
  position: relative;
  /* needed for ::after overlay */
  overflow: hidden;
  /* keeps glow inside card */
}

/* Emoji wrapper */
.card .emoji-options {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  /* prevent blocking clicks when hidden */
}

/* Each emoji button */
.card .emoji-options button {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  pointer-events: auto;
  /* enable only when visible */
  transition: transform 0.2s ease;
}

.card .emoji-options button:hover {
  transform: scale(1.3);
}

/* Show emojis only when hovering card (not download button) */
.card:hover .emoji-options {
  opacity: 1;
  transform: translateY(0);
}

/* Ensure cards can show overlays */
.card {
  position: relative;
  /* IMPORTANT */
  overflow: hidden;
  /* keep effects inside rounded corners */
}

/* ========== ❤️ LOVE EFFECT ========== */

/* Bold yellow slide overlay */
.card.love-anim::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 215, 0, 0.6);
  /* bold golden yellow */
  animation: slideOverlayYellow 1s forwards;
  z-index: 2;
  border-radius: inherit;
}

/* White shine sweep inside card */
.card.love-anim::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.8) 50%,
      rgba(255, 255, 255, 0) 100%);
  animation: shineSweep 2s forwards;
  z-index: 3;
  border-radius: inherit;
}

/* Yellow overlay slide */
@keyframes slideOverlayYellow {
  0% {
    left: -100%;
  }

  50% {
    left: 0;
  }

  100% {
    left: 100%;
  }
}

/* White shine sweep */
@keyframes shineSweep {
  0% {
    left: -150%;
  }

  100% {
    left: 150%;
  }
}

/* ========== 🚫 BLOCK EFFECT ========== */

/* Bold red slide overlay */
.card.block-anim::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 0, 0, 0.6);
  /* bold red */
  animation: slideOverlayRed 1s forwards;
  z-index: 2;
  border-radius: inherit;
}

/* Red outline + glow + shake */
.card.block-anim {
  border: 2px solid red !important;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
  animation: shakeCard 0.5s ease-in-out 3;
}

/* Red overlay slide */
@keyframes slideOverlayRed {
  0% {
    left: -100%;
  }

  50% {
    left: 0;
  }

  100% {
    left: 100%;
  }
}

/* Shake animation */
@keyframes shakeCard {
  0% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-10px);
  }

  40% {
    transform: translateX(10px);
  }

  60% {
    transform: translateX(-6px);
  }

  80% {
    transform: translateX(6px);
  }

  100% {
    transform: translateX(0);
  }
}

/* ========== EMOJI BUTTONS ========== */

/* Emoji wrapper */
.card .emoji-options {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

/* Each emoji button */
.card .emoji-options button {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.2s ease;
}

.card .emoji-options button:hover {
  transform: scale(1.3);
}

/* Show emojis on hover */
.card:hover .emoji-options {
  opacity: 1;
  transform: translateY(0);
}

/* === CARD BASE === */
.card {
  position: relative;
  /* needed for overlays */
  overflow: hidden;
  /* keeps animations inside */
  border-radius: 12px;
  transition: box-shadow 0.3s ease, border 0.3s ease;
}

/* === EMOJI BUTTONS === */
.card .emoji-options {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.card .emoji-options button {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.2s ease;
}

.card .emoji-options button:hover {
  transform: scale(1.3);
}

.card:hover .emoji-options {
  opacity: 1;
  transform: translateY(0);
}

/* === ❤️ LOVE EFFECT === */
.card.love-anim::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(53, 255, 83, 0.948);
  /* bold golden yellow */
  animation: slideOverlayYellow 1s forwards;
  z-index: 2;
  border-radius: inherit;
}

.card.love-anim::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.8) 50%,
      rgba(255, 255, 255, 0) 100%);
  animation: shineSweep 2s forwards;
  z-index: 3;
  border-radius: inherit;
}

@keyframes slideOverlayYellow {
  0% {
    left: -100%;
  }

  50% {
    left: 0;
  }

  100% {
    left: 100%;
  }
}

@keyframes shineSweep {
  0% {
    left: -150%;
  }

  100% {
    left: 150%;
  }
}

/* === 🚫 BLOCK EFFECT === */
.card.block-anim::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 0, 0, 0.6);
  /* bold red */
  animation: slideOverlayRed 1s forwards;
  z-index: 2;
  border-radius: inherit;
}

.card.block-anim {
  border: 2px solid red !important;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
  animation: shakeCard 0.5s ease-in-out 3;
}

@keyframes slideOverlayRed {
  0% {
    left: -100%;
  }

  50% {
    left: 0;
  }

  100% {
    left: 100%;
  }
}

@keyframes shakeCard {
  0% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-10px);
  }

  40% {
    transform: translateX(10px);
  }

  60% {
    transform: translateX(-6px);
  }

  80% {
    transform: translateX(6px);
  }

  100% {
    transform: translateX(0);
  }
}

/* Floating thank you message */
.thank-you-msg {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  color: black;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.thank-you-msg.show {
  opacity: 1;
  transform: translateY(0);
}

/* Modal backdrop */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Modal box */
.modal-box {
  background: #fff;
  color: #000;
  padding: 20px;
  border-radius: 12px;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.modal-box h3 {
  margin-bottom: 15px;
}

.modal-box button {
  margin: 5px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.modal-box .share-btn {
  background: #007bff;
  color: white;
}

.modal-box .no-btn {
  background: #ddd;
  color: black;
}

/* Thank you message inside card */
.card .thank-you-msg {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: white;
  color: black;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 5;
}

.card .thank-you-msg.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Popup Overlay */
.feedback-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.feedback-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Popup Box */
.feedback-popup {
  background: #121212;
  padding: 20px 25px;
  width: 360px;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  position: relative;
  transform: translateY(-50px);
  transition: transform 0.3s ease;
}

.feedback-overlay.active .feedback-popup {
  transform: translateY(0);
}

/* Popup Title */
.feedback-popup h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  color: #00ffa8;
  text-align: center;
}

/* Textarea */
.feedback-popup textarea {
  width: 100%;
  height: 100px;
  background: #1c1c1c;
  border: 1.5px solid #00ffa8;
  border-radius: 8px;
  padding: 10px;
  color: #fff;
  resize: none;
  font-size: 0.95rem;
  margin-bottom: 12px;
  outline: none;
}

/* Slide-to-Share Button */
.share-btn {
  width: 100%;
  padding: 10px 0;
  background: #00ffa8;
  color: #0a0a0a;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.share-btn::after {
  content: "➤";
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  opacity: 0;
  transition: right 0.3s ease, opacity 0.3s ease;
}

.share-btn:hover::after {
  right: 15px;
  opacity: 1;
}

/* Close Button */
.close-popup {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  color: #999;
  font-size: 22px;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-popup:hover {
  color: #fff;
}

.feedback-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.feedback-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.feedback-popup {
  background: #121212;
  padding: 20px;
  width: 360px;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  position: relative;
}

.feedback-popup h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  color: #00ffa8;
  text-align: center;
}

.feedback-popup textarea {
  width: 100%;
  height: 100px;
  background: #1c1c1c;
  border: 1.5px solid #00ffa8;
  border-radius: 8px;
  padding: 10px;
  color: #fff;
  resize: none;
  font-size: 0.95rem;
  margin-bottom: 12px;
  outline: none;
}

.share-btn {
  width: 100%;
  padding: 10px 0;
  background: #00ffa8;
  color: #0a0a0a;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.share-btn:hover {
  background: #00cc82;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  color: #999;
  font-size: 22px;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-popup:hover {
  color: #fff;
}

/* Toast Notification Styling */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #00ffa8;
  color: #0a0a0a;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px);
  transition: all 0.3s ease-in-out;
  z-index: 99999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

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

.modal.show {
  display: flex;
}

.modal-content.autofill-modal {
  background: #1a1a1a;
  padding: 25px;
  border-radius: 14px;
  width: 90%;
  max-width: 700px;
  text-align: center;
  color: #fff;
  position: relative;
}

/* Close Button */
.modal-content .close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
}

/* Versions Layout */
.versions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.version-card {
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.version-card:hover {
  transform: translateY(-5px);
}

/* Golden MAXX */
.version-card.gold {
  background: linear-gradient(145deg, #FFD700, #B8860B);
  color: #1a1a1a;
  position: relative;
}

/* Silver Standard */
.version-card.silver {
  background: linear-gradient(145deg, #C0C0C0, #A9A9A9);
  color: #1a1a1a;
}

/* Badge */
.badge.recommended {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, gold, orange);
  color: #000;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 0 8px gold;
}

/* Make download text black */
.version-card .download-btn {
  color: #000 !important;
}

/* Shining effect for Golden Card */
@keyframes goldShine {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.version-card.gold {
  background: linear-gradient(120deg, #FFD700, #FFEC8B, #FFD700);
  background-size: 300% 300%;
  animation: goldShine 5s linear infinite;
  color: #1a1a1a;
  position: relative;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
}

/* Golden MAXX Card with Shine & Glow */
.version-card.gold {
  position: relative;
  background: linear-gradient(135deg, #FFD700, #FFC107, #FFD700);
  background-size: 200% 200%;
  animation: goldPulse 6s ease-in-out infinite;
  color: #1a1a1a;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.3);
  transform: scale(1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.version-card.gold:hover {
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(255, 215, 0, 1), 0 0 80px rgba(255, 215, 0, 0.5);
}

/* Shine sweep overlay */
.version-card.gold::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.6) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  animation: goldShineSweep 3s infinite;
}

/* Subtle pulsing background */
@keyframes goldPulse {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Shine sweep animation */
@keyframes goldShineSweep {
  0% {
    left: -75%;
  }

  100% {
    left: 125%;
  }
}

/* Golden MAXX Card with Shine & Glow */
.version-card.gold {
  position: relative;
  overflow: hidden;
  /* ✅ keeps shine inside the card */
  background: linear-gradient(135deg, #FFD700, #FFC107, #FFD700);
  background-size: 200% 200%;
  animation: goldPulse 6s ease-in-out infinite;
  color: #1a1a1a;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.3);
  transform: scale(1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  /* matches your card corners */
}

.version-card.gold:hover {
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(255, 215, 0, 1), 0 0 80px rgba(255, 215, 0, 0.5);
}

/* Shine sweep overlay */
.version-card.gold::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.6) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  animation: goldShineSweep 3s infinite;
  border-radius: inherit;
  /* ✅ keeps shine curved at edges */
}

/* Subtle pulsing background */
@keyframes goldPulse {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Shine sweep animation */
@keyframes goldShineSweep {
  0% {
    left: -75%;
  }

  100% {
    left: 125%;
  }
}

.version-card.gold {
  position: relative;
  overflow: hidden;
  /* keeps shine inside */
  background: linear-gradient(135deg, #FFD700, #FFC107, #FFD700);
  background-size: 200% 200%;
  animation: goldPulse 6s ease-in-out infinite;
  color: #1a1a1a;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.3);
  transform: scale(1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  z-index: 1;
}

.version-card.gold * {
  position: relative;
  z-index: 2;
  /* ✅ keeps text & buttons above shine */
}

.version-card.gold:hover {
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(255, 215, 0, 1), 0 0 80px rgba(255, 215, 0, 0.5);
}

/* Shine sweep overlay */
.version-card.gold::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.6) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  animation: goldShineSweep 3s infinite;
  border-radius: inherit;
  z-index: 0;
  /* ✅ shine stays behind */
}

/* Badge */
.badge.recommended {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
  background-size: 200% 200%;
  animation: badgeShine 3s linear infinite, badgeGlow 2s ease-in-out infinite alternate;
  color: #000;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 165, 0, 0.6);
  z-index: 3;
  white-space: nowrap;
}

/* Shine animation across text */
@keyframes badgeShine {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Glowing pulse effect */
@keyframes badgeGlow {
  from {
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.6), 0 0 12px rgba(255, 165, 0, 0.4);
  }

  to {
    box-shadow: 0 0 14px rgba(255, 215, 0, 1), 0 0 28px rgba(255, 165, 0, 0.8);
  }
}

/* Default (dark mode): download text black */
.version-card .download-btn {
  color: #000 !important;
}

/* Light mode: force download text white */
body.light-mode .version-card .download-btn {
  color: #fff !important;
}

.card-full-image {
  padding: 0;
  /* no inner space */
  background-size: cover;
  /* fills the card */
  background-position: center;
  /* keeps subject centered */
  background-repeat: no-repeat;
  min-height: 300px;
  /* adjust card height */
  border-radius: 12px;
  /* same as your .card */
}

/* ===== MOBILE OPTIMIZATION (Phones Only) ===== */
@media (max-width: 600px) {

  html,
  body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 10px;
    font-size: 0.95rem;
  }

  header {
    text-align: center;
  }

  header>div:first-child {
    font-size: 1.6rem;
    letter-spacing: 1px;
    text-shadow: 0 0 6px #00ffa8;
  }

  header>div:last-child {
    font-size: 0.85rem;
  }

  .grid-container {
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
  }

  .card {
    padding: 14px;
    border-radius: 10px;
    text-align: center;
  }

  .card-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 10px;
  }

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

  .software-desc {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .download-btn {
    width: 100%;
    padding: 10px;
    font-size: 0.95rem;
    margin-top: 8px;
  }

  #licenseToggle {
    width: 100%;
    padding: 10px;
    font-size: 0.9rem;
    margin-top: 10px;
  }

  footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-social h2,
  .footer-fav-tools h2 {
    font-size: 1rem;
  }

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

  .social-btn {
    width: 100%;
    justify-content: center;
  }

  /* Modal windows scaled for mobile */
  .modal-content {
    width: 90%;
    max-width: 360px;
    margin: 20vh auto;
    padding: 15px;
  }

  /* Hide desktop-only elements */
  .right-panel {
    display: none !important;
  }

  /* Ensure particles and background fill correctly */
  #particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
  }

  /* Fix glitch text */
  .glitch-text {
    font-size: 1.8rem;
    text-align: center;
    word-wrap: break-word;
  }

  #scrollProgress {
    height: 3px;
  }
}

/* ===== DEVELOPMENT NOTICE STYLE ===== */
#devNotice {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  z-index: 9999;
}

#devNotice.show {
  opacity: 1;
  visibility: visible;
}

.dev-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid #00ffa8;
  color: #00ffa8;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 16px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0 12px rgba(0, 255, 168, 0.4);
  animation: fadeInOut 3s ease;
}

@keyframes fadeInOut {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }

  20% {
    transform: translateY(0);
    opacity: 1;
  }

  80% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(-20px);
    opacity: 0;
  }
}

.tool-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.tool-item {
  text-align: center;
  width: 90px;
}

.tool-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
}

.tool-item img:hover {
  transform: scale(1.1);
}

.tool-item div {
  margin-top: 8px;
  font-size: 13px;
  color: #00ffa8;
}

.tool-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.tool-item {
  text-align: center;
  width: 90px;
}

.tool-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
}

.tool-item img:hover {
  transform: scale(1.1);
}

.tool-item div {
  margin-top: 8px;
  font-size: 13px;
  color: #00ffa8;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #ccc;
}

.tool-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
}

.tool-item img:invalid,
.tool-item img[src=""] {
  display: none;
}

.tool-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
}

/* === Popup Animation and Styling === */

#cardModal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0);
  /* start transparent */
  backdrop-filter: blur(0px);
  z-index: 9999;
  transition: background 0.25s ease, backdrop-filter 0.25s ease;
}

/* background blur + fade when visible */
#cardModal.show {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

/* popup box */
.popup-box {
  width: 94%;
  max-width: 980px;
  background: #111;
  color: #eee;
  border-radius: 14px;
  padding: 36px;
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);

  /* zoom-in animation setup */
  transform: scale(0.85) translateY(20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* zoom + fade + slight lift */
#cardModal.show .popup-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* close button */
.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 30px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.close-btn:hover {
  transform: scale(1.2);
}

/* titles */
.main-title {
  text-align: center;
  font-size: 28px;
  margin: 6px 0 22px;
  color: #fff;
  letter-spacing: 1px;
}

.section-title {
  font-size: 18px;
  color: #ccc;
  margin: 18px 0 8px;
  border-bottom: 1px solid #222;
  padding-bottom: 6px;
}

/* grid layout */
.item-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 8px;
}

/* items */
.item {
  width: 120px;
  text-align: center;
}

.item img {
  display: block;
  margin: 0 auto 8px;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.item img:hover {
  transform: scale(1.08);
}

.item div {
  font-size: 14px;
  color: #eee;
  word-break: break-word;
}

/* scrollbar */
.popup-box::-webkit-scrollbar {
  width: 8px;
}

.popup-box::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 10px;
}

/* responsive */
@media (max-width:600px) {
  .item {
    width: 100px;
  }

  .popup-box {
    padding: 20px;
  }

  .main-title {
    font-size: 22px;
  }
}