/* Dark-only theme — near-black page, dark gray nav, glowing white accents */

:root,
[data-bs-theme="dark"] {
  color-scheme: dark;
  --ff-page: #050505;
  --ff-nav: #1a1a1a;
  --ff-card: #121212;
  --ff-glow: #ffffff;
  --ff-glow-soft: rgba(255, 255, 255, 0.75);
  --ff-glow-dim: rgba(255, 255, 255, 0.12);
  --ff-hero: linear-gradient(135deg, #141414 0%, #0a0a0a 55%, #050505 100%);
  --bs-primary: #ffffff;
  --bs-primary-rgb: 255, 255, 255;
  --bs-link-color: #ffffff;
  --bs-link-hover-color: #e8e8e8;
  --bs-body-bg: #050505;
  --bs-body-color: #e8e8e8;
  --bs-border-color: rgba(255, 255, 255, 0.12);
}

html,
body {
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  background-color: var(--ff-page);
}

main,
header.hero-band {
  flex: 0 0 auto;
}

.letter-space {
  letter-spacing: 0.08em;
}

/* ——— Navbar ——— */
.site-navbar {
  background-color: var(--ff-nav) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-navbar .navbar-brand,
.site-navbar .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: #fff !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.55);
}

.site-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

.site-navbar .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

.navbar-brand {
  letter-spacing: -0.02em;
}

.site-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.25));
}

.brand-accent {
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.65);
}

/* ——— Glow utilities ——— */
.glow-text {
  color: #fff !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.55), 0 0 22px rgba(255, 255, 255, 0.25);
}

.badge-glow {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

.btn-glow {
  background: #fff;
  color: #050505;
  border: 1px solid #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
}

.btn-glow:hover {
  background: #f0f0f0;
  color: #050505;
  box-shadow: 0 0 26px rgba(255, 255, 255, 0.5);
}

.btn-outline-glow {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
}

.btn-outline-glow:hover {
  color: #050505;
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
}

.btn-check:checked + .btn-outline-glow {
  color: #050505;
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.4);
}

a {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

a:hover {
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
}

.breadcrumb-item a {
  color: #fff;
  text-decoration: none;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

/* ——— Hero ——— */
.hero-band {
  background: #050505;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-band::before {
  content: "";
  position: absolute;
  inset: -24px;
  background-image: url("/sassets/ForbiddenBanner.png");
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
}

.hero-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 5, 0.55) 0%,
    rgba(5, 5, 5, 0.72) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-band .container {
  position: relative;
  z-index: 1;
}

.hero-stat-card {
  background-color: var(--ff-card);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  animation: cardIn 0.55s ease both;
}

.rate-glance li:last-child {
  border-bottom: 0 !important;
}

/* ——— Cards / tools ——— */
.card {
  background-color: var(--ff-card);
  border-color: rgba(255, 255, 255, 0.08);
}

.category-heading {
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-icon-wrap {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.05rem;
}

.category-icon {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
}

.support-banner {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--bs-border-radius-xl, 1rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-height: 200px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.support-banner:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.16);
}

.support-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.support-banner-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 200px;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.45) 55%,
    rgba(0, 0, 0, 0.25) 100%
  );
}

.support-banner-copy {
  color: rgba(255, 255, 255, 0.78);
  max-width: 36rem;
}

@media (max-width: 575.98px) {
  .support-banner,
  .support-banner-overlay {
    min-height: 220px;
  }
}

.tool-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background-color: var(--ff-card);
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

.tool-card .icon-bubble {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  font-size: 1.25rem;
}

.tool-card .stretched-link::after {
  border-radius: var(--bs-border-radius);
}

.swap-btn {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.swap-btn:hover {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.swap-btn.is-flipped {
  transform: rotate(180deg);
}

.result-alert {
  animation: fadePop 0.25s ease;
}

.result-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--bs-border-radius);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.04), 0 0 16px rgba(255, 255, 255, 0.08);
}

.breakdown-list dt,
.breakdown-list dd {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--bs-border-color);
  margin-bottom: 0;
}

.breakdown-list dt:last-of-type,
.breakdown-list dd:last-of-type {
  border-bottom: 0;
}

.row-glow {
  background-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.06);
}

/* Form focus glow */
.form-control:focus,
.form-select:focus {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.15), 0 0 14px rgba(255, 255, 255, 0.2);
}

#rateGroup .btn {
  flex: 1 1 auto;
}

@media (max-width: 575.98px) {
  #rateGroup {
    display: flex;
    flex-direction: column;
  }

  #rateGroup .btn {
    border-radius: var(--bs-border-radius) !important;
    margin-bottom: 0.35rem;
  }
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background-color: #030303;
}

.footer-credit {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
}

.footer-credit-name {
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
}

.footer-credit-name:hover {
  color: #fff;
  text-decoration: underline;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.7);
}

.footer-copy {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-legal {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.42);
  max-width: 36rem;
  margin-inline: auto;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-sep {
  margin: 0 0.45rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ——— Legal pages ——— */
.legal-page {
  max-width: 46rem;
}

.legal-page .legal-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.legal-page .legal-updated {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.legal-page h2 {
  font-size: 1.15rem;
  font-weight: 650;
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
}

.legal-page p,
.legal-page li {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.legal-page ul {
  padding-left: 1.25rem;
}

.legal-page a {
  color: #fff;
  text-underline-offset: 2px;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadePop {
  from {
    opacity: 0.4;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
