:root {
  --neon-lilac: #c45fdd;
  --teal-lilac: #9570c8;
  --dark-lilac: #533064;
  --dark-bg: #0e050a;
  --card-bg: #14051a;
  --border-color: #9570c8;
  --border-glow: 0 0 5px rgba(149, 112, 200, 0.5);
  --text-color: #9570c8;
  --inactive-color: #ff3e3e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Courier New', monospace;
}

body {
  background-color: var(--dark-bg); 
  color: var(--text-color);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Background image with blur */
.background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('bg.png'); /* Make sure the path is correct */
  background-size: cover;
  background-position: center;
  filter: blur(6px) brightness(0.7);
  z-index: -2;
}

/* Background grid animation */
@keyframes grid-pulse {
  0% { opacity: 0.1; }
  50% { opacity: 0.15; }
  100% { opacity: 0.1; }
}

.cyberpunk-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(14, 5, 10, 0.7);
  background-image:
    linear-gradient(rgba(139, 95, 191, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 95, 191, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: center center;
  position: relative; /* Changed from absolute to relative for ::before */
  overflow: hidden;
  z-index: -1;
}

.cyberpunk-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(139, 95, 191, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 95, 191, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: center center;
  animation: grid-pulse 4s infinite;
  z-index: 0;
}

/* Scanline effect */
@keyframes scanline {
  0% {
    transform: translateY(-100%);
    opacity: 0.7;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

.cyberpunk-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.cyberpunk-scanline::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 10px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(139, 95, 191, 0.2) 50%,
    transparent 100%);
  z-index: 10;
  animation: scanline 8s linear infinite;
}

/* Glowing border effect */
@keyframes border-glow {
  0% { box-shadow: 0 0 5px rgba(139, 95, 191, 0.5), inset 0 0 5px rgba(139, 95, 191, 0.2); }
  50% { box-shadow: 0 0 10px rgba(139, 95, 191, 0.8), inset 0 0 10px rgba(139, 95, 191, 0.3); }
  100% { box-shadow: 0 0 5px rgba(139, 95, 191, 0.5), inset 0 0 5px rgba(139, 95, 191, 0.2); }
}

.cyberpunk-border { /* Apply this class where an animated border is needed */
  border: 1px solid rgba(139, 95, 191, 0.5);
  border-radius: 4px;
  animation: border-glow 4s infinite;
}

/* Tool selection dialog */
.tool-selection {
  background-color: var(--card-bg);
  background-image:
    linear-gradient(rgba(139, 95, 191, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 95, 191, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid var(--border-color);
  width: 600px;
  max-width: 90vw;
  padding: 25px;
  padding-top: 40px; /* More space for the logo above */
  z-index: 10;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
   animation: border-glow 4s infinite; /* Apply border animation here */
}

.tool-title {
  font-size: 1.3em;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: var(--text-color);
  position: relative;
  display: inline-block;
  text-shadow: 0 0 5px rgba(139, 95, 191, 0.7);
}

/* Angle brackets for headings */
.heading-brackets {
  position: relative;
  display: inline-block;
}

.heading-brackets::before,
.heading-brackets::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #8b5fbf;
  font-weight: bold;
}

.heading-brackets::before {
  content: ">";
  left: -15px;
}

.heading-brackets::after {
  content: "<";
  right: -15px;
}

.tool-description {
  color: rgba(139, 95, 191, 0.8);
  margin-bottom: 30px;
  font-size: 0.9em;
  line-height: 1.5;
}

/* --- API Key Input Styles --- */
.api-key-section {
  margin-bottom: 25px; /* Space below the input */
  text-align: left; /* Align label and input left within the section */
  max-width: 70%; /* Limit width for better centering */
  margin-left: auto;
  margin-right: auto;
}

.api-key-label {
  display: block; /* Label on its own line */
  margin-bottom: 8px;
  color: rgba(139, 95, 191, 0.8); /* Lighter text color */
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cyberpunk-input {
  width: 100%;
  padding: 10px 12px;
  background-color: rgba(20, 5, 26, 0.6); /* Slightly transparent dark background */
  border: 1px solid rgba(139, 95, 191, 0.4); /* Subdued border */
  color: var(--text-color);
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  border-radius: 3px;
  outline: none; /* Remove default browser outline */
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease; /* Added background transition */
}

.cyberpunk-input::placeholder {
  color: rgba(139, 95, 191, 0.5); /* Placeholder text color */
  opacity: 1; /* Ensure placeholder is visible */
  transition: color 0.3s ease;
}

.cyberpunk-input:focus {
  border-color: var(--border-color); /* Brighter border on focus */
  box-shadow: 0 0 8px rgba(139, 95, 191, 0.5); /* Add glow on focus */
  background-color: rgba(20, 5, 26, 0.8); /* Darken background slightly on focus */
}

/* Style for disabled state during fetch */
.cyberpunk-input:disabled {
    background-color: rgba(14, 5, 10, 0.7); /* Darker, less interactive background */
    border-color: rgba(139, 95, 191, 0.2); /* Dimmer border */
    cursor: wait; /* Indicate waiting */
    opacity: 0.7;
}
.cyberpunk-input:disabled::placeholder {
    color: rgba(139, 95, 191, 0.4); /* Dimmer placeholder when disabled */
}


/* --- Button and Checkmark Styles --- */
.tool-buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 30px; /* Adjusted spacing */
}

.cyberpunk-btn {
  display: flex;
  width: 150px;
  height: 150px;
  background-color: rgba(20, 5, 26, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
}

.btn-content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Clipping for hover effect */
    z-index: 1;
}

.btn-content-wrapper svg {
  display: block;
  margin: 0 auto 10px auto;
  height: 50px;
  width: 50px;
  position: relative;
  z-index: 2;
}

.btn-content-wrapper .tool-name {
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
  text-align: center;
}

/* Hover effect on wrapper's ::after */
.btn-content-wrapper::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(139, 95, 191, 0) 0%,
    rgba(139, 95, 191, 0.3) 50%,
    rgba(139, 95, 191, 0) 100%
  );
  transform: rotate(45deg);
  transition: opacity 0.5s ease;
  opacity: 0;
  z-index: 0;
}

.cyberpunk-btn:hover .btn-content-wrapper::after {
  opacity: 1;
}

/* Button hover glow */
@keyframes btn-glow {
  0% { box-shadow: 0 0 5px #8b5fbf; }
  50% { box-shadow: 0 0 15px #8b5fbf; }
  100% { box-shadow: 0 0 5px #8b5fbf; }
}

.cyberpunk-btn:hover {
  animation: btn-glow 2s infinite;
}

/* Button click effect */
.cyberpunk-btn:active {
  transform: scale(0.95);
  box-shadow: 0 0 15px rgba(139, 95, 191, 0.7);
}

/* Checkmark */
.checkmark {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 24px;
  height: 24px;
  background-color: var(--text-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 10px rgba(139, 95, 191, 0.5);
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
  z-index: 3;
}

.checkmark::before {
  content: '✓';
  color: #000;
  font-size: 14px;
  font-weight: bold;
}

.cyberpunk-btn.selected .checkmark {
  opacity: 1;
  transform: scale(1);
}

/* --- End Button and Checkmark Styles --- */

/* Preference toggle */
.preference-toggle {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8em;
  color: rgba(139, 95, 191, 0.8);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  margin: 0 10px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(62, 15, 15, 0.8);
  border: 1px solid var(--inactive-color);
  transition: .4s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 2px;
  background-color: var(--inactive-color);
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(255, 62, 62, 0.7);
}

input:checked + .slider {
  background-color: rgba(20, 5, 26, 0.8);
  border: 1px solid var(--border-color);
}

input:checked + .slider:before {
  transform: translateX(18px);
  background-color: var(--text-color);
  box-shadow: 0 0 5px rgba(139, 95, 191, 0.7);
}

/* NEW LOGO ANIMATION STYLES */
.launch-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out; /* Transition managed by JS */
}

@keyframes launchFadeOut { /* Reference CSS, but JS controls timing */
  0% { opacity: 1; visibility: visible; }
  80% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

.logo-container {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  background-image:
    linear-gradient(rgba(139, 95, 191, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 95, 191, 0.05) 1px, transparent 1px);
  background-size: 10px 10px;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(139, 95, 191, 0.3);
}

.logo {
  width: 150px;
  height: 150px;
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-hexagon {
  width: 100%;
  height: 100%;
  background-color: rgba(20, 5, 26, 0.7);
  position: relative;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--border-color);
  box-shadow: 0 0 15px rgba(139, 95, 191, 0.5), inset 0 0 10px rgba(139, 95, 191, 0.3);
  animation: logoSpin 3.5s ease-in-out infinite;
}

.custom-logo {
    width: 70%;
    height: 70%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(139, 95, 191, 0.7));
}

@keyframes logoSpin {
  0% {
    transform: rotate(0deg) scale(0.9);
    box-shadow: 0 0 10px rgba(139, 95, 191, 0.4), inset 0 0 5px rgba(139, 95, 191, 0.2);
  }
  50% {
    transform: rotate(180deg) scale(1);
    box-shadow: 0 0 20px rgba(139, 95, 191, 0.7), inset 0 0 15px rgba(139, 95, 191, 0.5);
  }
  100% {
    transform: rotate(360deg) scale(0.9);
    box-shadow: 0 0 10px rgba(139, 95, 191, 0.4), inset 0 0 5px rgba(139, 95, 191, 0.2);
  }
}

.logo-orbit {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px dashed rgba(139, 95, 191, 0.3);
  animation: orbitRotate 8s linear infinite;
}

@keyframes orbitRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: var(--text-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--text-color);
}

.dot-1 { top: 0; left: 50%; transform: translateX(-50%); }
.dot-2 { top: 50%; right: 0; transform: translateY(-50%); }
.dot-3 { bottom: 0; left: 50%; transform: translateX(-50%); }
.dot-4 { top: 50%; left: 0; transform: translateY(-50%); }

.loading-text {
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-top: 30px;
  position: relative;
  font-size: 16px;
  overflow: hidden;
  transition: opacity 0.2s ease-in-out;
}

.loading-text::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    transparent 40%,
    var(--text-color) 50%,
    transparent 60%,
    transparent 100%);
  animation: loadingTextScan 2s linear infinite;
  filter: blur(5px);
  opacity: 0.7;
}

@keyframes loadingTextScan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-container {
  width: 250px;
  height: 4px;
  background: rgba(20, 5, 26, 0.8);
  position: relative;
  margin-top: 20px;
  border: 1px solid rgba(139, 95, 191, 0.3);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,
    rgba(139, 95, 191, 0.5) 0%,
    rgba(139, 95, 191, 1) 50%,
    rgba(139, 95, 191, 0.5) 100%);
  position: absolute;
  animation: progressLoad 3s ease-in-out forwards; /* Progress bar duration */
  box-shadow: 0 0 10px var(--text-color);
}

@keyframes progressLoad {
  0% { width: 0%; }
  100% { width: 100%; }
}

.corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--text-color);
  border-style: solid;
  border-width: 0;
  opacity: 0.8;
}

/* Logo animation corners */
.launch-animation .corner-tl { top: -5px; left: -5px; border-top-width: 2px; border-left-width: 2px; }
.launch-animation .corner-tr { top: -5px; right: -5px; border-top-width: 2px; border-right-width: 2px; }
.launch-animation .corner-bl { bottom: -5px; left: -5px; border-bottom-width: 2px; border-left-width: 2px; }
.launch-animation .corner-br { bottom: -5px; right: -5px; border-bottom-width: 2px; border-right-width: 2px; }

/* Dialog corners */
.tool-selection .corner {
  width: 15px;
  height: 15px;
  z-index: 12;
}
.tool-selection .corner-tl { top: -2px; left: -2px; border-top-width: 2px; border-left-width: 2px; }
.tool-selection .corner-tr { top: -2px; right: -2px; border-top-width: 2px; border-right-width: 2px; }
.tool-selection .corner-bl { bottom: -2px; left: -2px; border-bottom-width: 2px; border-left-width: 2px; }
.tool-selection .corner-br { bottom: -2px; right: -2px; border-bottom-width: 2px; border-right-width: 2px; }


/* Header Logo Styles */
.header-logo-container {
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 11;
}

.header-logo-hexagon {
  width: 120px;
  height: 120px;
  background-color: rgba(20, 5, 26, 0.7);
  position: relative;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--border-color);
  box-shadow: 0 0 15px rgba(139, 95, 191, 0.5), inset 0 0 10px rgba(139, 95, 191, 0.3);
  animation: border-glow 4s infinite;
  transition: all 0.3s ease;
}

.header-logo-image {
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(139, 95, 191, 0.7));
  transition: all 0.3s ease;
}

.header-logo-hexagon:hover {
  box-shadow: 0 0 25px rgba(139, 95, 191, 0.8), inset 0 0 20px rgba(139, 95, 191, 0.5);
  transform: scale(1.1);
}

.header-logo-hexagon:hover .header-logo-image {
  filter: drop-shadow(0 0 10px rgba(139, 95, 191, 0.9));
}

.header-logo-hexagon::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 10px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(139, 95, 191, 0.2) 50%,
    transparent 100%);
  left: -20%;
  top: 0;
  opacity: 0;
  animation: header-scan 4s ease-in-out infinite 1s;
}

@keyframes header-scan {
  0% { top: -10px; opacity: 0; }
  40% { top: 40%; opacity: 0.7; }
  60% { top: 60%; opacity: 0.7; }
  100% { top: 120%; opacity: 0; }
}

/* Radar Animation */
.radar-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
   z-index: 0;
}

.radar {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 2px solid rgba(139, 95, 191, 0.1);
  opacity: 0.5;
}

.radar-1 { top: -150px; left: -150px; }
.radar-2 { bottom: -200px; right: -100px; }

.radar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(139, 95, 191, 0.3);
  animation: radarPulse 4s linear infinite;
}

@keyframes radarPulse {
  0% { transform: scale(0.1); opacity: 1; }
  70% { opacity: 0.3; }
  100% { transform: scale(3); opacity: 0; }
}

.data-point {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: var(--text-color);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 5px var(--text-color);
  animation: dataPointFade 8s linear infinite;
}

@keyframes dataPointFade {
  0% { opacity: 0; }
  10% { opacity: 0.8; transform: scale(1); }
  20% { opacity: 0.8; transform: scale(1.2); }
  30% { opacity: 0.8; transform: scale(1); }
  40% { opacity: 0; }
  100% { opacity: 0; }
}

/* Shimmer effect */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Glow lines (Decorative) */
.glow-line {
  position: absolute;
  background-color: rgba(139, 95, 191, 0.2);
  box-shadow: 0 0 5px rgba(139, 95, 191, 0.3);
  z-index: 9;
}
.horizontal-line { height: 1px; width: 100px; }
.vertical-line { width: 1px; height: 80px; }

/* Notification animation */
@keyframes notification-slide {
  0% { transform: translate(-50%, -100%); opacity: 0; }
  10% { transform: translate(-50%, 20px); opacity: 1; } /* Slide in to final position */
  90% { transform: translate(-50%, 20px); opacity: 1; }
  100% { transform: translate(-50%, -100%); opacity: 0; }
}

/* Redirect notification */
.redirect-notification {
  position: fixed;
  top: 0; /* Start position for animation */
  left: 50%;
  transform: translate(-50%, -100%); /* Start off-screen */
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 12px 20px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(139, 95, 191, 0.6), inset 0 0 5px rgba(139, 95, 191, 0.2);
  font-size: 0.9em;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  /* transition: opacity 0.3s ease, visibility 0.3s ease; Remove basic transition if using animation */
}

.redirect-notification.visible {
  opacity: 1;
  visibility: visible;
  animation: notification-slide 4s forwards ease-in-out; /* Use slide animation */
}

.cancel-redirect {
  background: none;
  border: none;
  color: var(--text-color);
  text-decoration: underline;
  cursor: pointer;
  margin-left: 10px;
  font-size: 0.9em;
  transition: all 0.3s ease;
}

.cancel-redirect:hover {
  text-shadow: 0 0 5px rgba(149, 112, 200, 0.7);
  color: var(--neon-lilac);
}

/* Footer Credits Section */
.footer-credits {
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
}

.credits-box {
    background: linear-gradient(135deg, rgba(25, 10, 20, 0.44), rgba(10, 5, 8, 0.44));
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(139, 95, 191, 0.12);
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
}

.circuit-bg {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    pointer-events: none;
}

.circuit-corner {
    position: absolute;
    width: 128px;
    height: 128px;
}
.circuit-corner.top-right { top: 0; right: 0; }
.circuit-corner.bottom-left { bottom: 0; left: 0; }

.circuit-line-h { position: absolute; height: 1px; background: #8b5fbf; }
.circuit-line-v { position: absolute; width: 1px; background: #8b5fbf; }

/* Specific pattern */
.top-right .circuit-line-h:nth-child(1) { top: 16px; right: 32px; width: 64px; }
.top-right .circuit-line-v:nth-child(2) { top: 16px; right: 32px; height: 32px; }
.top-right .circuit-line-h:nth-child(3) { top: 48px; right: 32px; width: 32px; }

.bottom-left .circuit-line-h:nth-child(1) { bottom: 16px; left: 32px; width: 64px; }
.bottom-left .circuit-line-v:nth-child(2) { bottom: 16px; left: 32px; height: 32px; }
.bottom-left .circuit-line-h:nth-child(3) { bottom: 48px; left: 32px; width: 32px; }

.credits-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.credits-text {
    font-size: 10px;
    font-family: monospace;
    letter-spacing: 2px;
    color: rgba(189, 125, 223, 0.5);
    text-transform: uppercase;
}

.credits-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.credits-links a {
    color: #9570c8;
    font-size: 14px;
    text-decoration: none;
    font-family: monospace;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
 .credits-links a:hover {
     color: var(--neon-lilac);
     text-shadow: 0 0 5px var(--neon-lilac);
 }

.credits-separator {
    width: 1px;
    height: 16px;
    background: rgba(149, 112, 200, 0.2);
}

.credits-shimmer {
    position: absolute;
    top:0; left:0; bottom:0; right:0;
    transform: translateX(-100%);
    background: linear-gradient(to right, transparent 0%, rgba(139, 95, 191, 0.1) 50%, transparent 100%);
    animation: shimmer 8s linear infinite 2s;
    pointer-events: none;
}

/* --- "Coming Soon" Styles --- */

.cyberpunk-btn.coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none; /* Disable mouse events */
}

/* Disable hover animations for coming-soon button */
.cyberpunk-btn.coming-soon:hover {
  animation: none;
  box-shadow: none;
  transform: none;
}

/* Ensure sweep effect doesn't appear on hover */
.cyberpunk-btn.coming-soon .btn-content-wrapper::after {
  opacity: 0 !important;
  display: none;
}

/* "Coming Soon" label style */
.btn-content-wrapper .coming-soon-label {
    display: none; /* Hidden by default */
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 62, 62, 0.7);
    color: rgba(255, 255, 255, 0.9);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.7em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5;
    pointer-events: none;
}

/* Show label only when button has .coming-soon */
.cyberpunk-btn.coming-soon .btn-content-wrapper .coming-soon-label {
    display: inline-block;
}

/* Slightly dim content for coming soon */
.cyberpunk-btn.coming-soon .btn-content-wrapper svg,
.cyberpunk-btn.coming-soon .btn-content-wrapper .tool-name {
    opacity: 0.7;
}
/* --- General Utility Class --- */
.hidden {
    display: none !important; /* Use !important to ensure it overrides other display properties */
}

/* --- Affiliate Link Button Section --- */
.affiliate-section {
    margin-top: 20px; /* Space above the button */
    margin-bottom: 20px; /* Space below the button */
    text-align: center; /* Center the button */
}

.cyberpunk-action-btn {
    padding: 10px 20px;
    background-color: rgba(20, 5, 26, 0.7); /* Dark background */
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.1s ease;
    position: relative; /* For potential future pseudo-elements */
}

.cyberpunk-action-btn:hover {
    background-color: rgba(139, 95, 191, 0.2); /* Lighter background on hover */
    box-shadow: 0 0 10px rgba(139, 95, 191, 0.6);
}

.cyberpunk-action-btn:active {
    transform: scale(0.97); /* Slight press effect */
    box-shadow: 0 0 5px rgba(139, 95, 191, 0.4);
}


/* --- Adjust spacing if needed --- */
.preference-toggle {
  margin-top: 20px; /* Adjust space above toggle if affiliate button is shown */
}