:root {
  --bg: #071026;
  --card: #0f1730;
  --ink: #e6eef8;
  --muted: #e2e6ec;
  --brand: #66e0ff;
  --brand-2: #a7f3d0;
  --accent: #ffb86b;
  --accent1: #00e0ff;
  --accent2: #0072ff;
  --radius: 16px;
  --btn-text: #021023;
}

/* ===== Global safety rails ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

html,
body {
  height: 100%;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
    Arial;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

:root {
  --brand: #66e0ff;
}

#mainNav .nav-link {
  color: #e6eef8;
  transition: color 0.2s ease, opacity 0.2s ease;
  position: relative;
}

#mainNav .nav-link:hover,
#mainNav .nav-link:focus {
  color: var(--brand) !important;
}

#mainNav .nav-link.active {
  color: var(--brand) !important;
}

#mainNav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  opacity: 0.9;
}

/* Make anchored sections stop under the fixed nav */
:root {
  --nav-offset: 100px;
}

/* default fallback */
[id] {
  scroll-margin-top: var(--nav-offset);
}

/* Navbar */
.navbar {
  background: rgba(12, 18, 36, 0.7);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: box-shadow 0.3s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.navbar-brand .logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  background: linear-gradient(90deg, var(--accent2), var(--accent1));
  box-shadow: 0 6px 20px rgba(0, 112, 255, 0.12);
}

.nav-link {
  color: #cbd5e1 !important;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent1);
}

.language-switch {
  position: relative;
  list-style: none;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 12px;
  cursor: pointer;
  color: #fff;
  font-size: 13px;
}

.language-toggle img {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  object-fit: cover;
}

.language-toggle .chevron {
  font-size: 10px;
  opacity: 0.8;
}

.language-menu {
  position: absolute;
  right: 0;
  margin-top: 6px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  padding: 8px 0;
  list-style: none;
  min-width: 180px;
  z-index: 50;
  display: none;
  /* toggled by JS */
}

.language-menu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  text-decoration: none;
  color: #111827;
  font-size: 13px;
}

.language-menu li a img {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  object-fit: cover;
}

.language-menu li a:hover {
  background: #f3f4f6;
}

/* Simple "open" state */
.language-switch.open .language-menu {
  display: block;
}

/* OPTIONAL: hide Google toolbar branding etc. */
.goog-logo-link {
  display: none !important;
}

.goog-te-gadget {
  font-size: 0 !important;
}

.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

.skiptranslate {
  display: none;
}

.btn {
  border: none;
  font-weight: 600;
  border-radius: 12px;
  transition: transform 0.18s ease, box-shadow 0.28s ease, filter 0.2s ease,
    background 0.28s ease, color 0.28s ease;
}

/* Solid gradient default for any .btn unless overridden */
.btn,
.btn-primary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info {
  background: linear-gradient(90deg, var(--accent2), var(--accent1));
  color: var(--btn-text);
  box-shadow: 0 6px 20px rgba(0, 112, 255, 0.12);
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 224, 255, 0.18);
  filter: saturate(1.05);
  color: var(--btn-text);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 26px rgba(0, 224, 255, 0.16);
}

.btn:disabled,
.btn.disabled {
  opacity: 0.65;
  box-shadow: none;
  filter: grayscale(0.1) brightness(0.9);
}

/* Outline variant */
.btn-outline-light,
.btn-ghost {
  background: transparent !important;
  color: #e6f0ff !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: none !important;
}

.btn-outline-light:hover,
.btn-ghost:hover {
  background: linear-gradient(90deg, var(--accent2), var(--accent1)) !important;
  color: var(--btn-text) !important;
  border-color: transparent !important;
  box-shadow: 0 12px 40px rgba(0, 224, 255, 0.18) !important;
  transform: translateY(-2px);
}

/* Keep a large CTA variant if needed */
.btn-lg {
  padding: 0.9rem 1.4rem;
  font-weight: 700;
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  padding: 120px 0 96px;
  background: radial-gradient(1200px 600px at 10% 10%,
      rgba(102, 224, 255, 0.2),
      transparent 60%),
    radial-gradient(900px 500px at 90% 15%,
      rgba(167, 243, 208, 0.2),
      transparent 60%),
    radial-gradient(1000px 600px at 50% 90%,
      rgba(255, 184, 107, 0.18),
      transparent 60%);
}

.title-gradient {
  background: linear-gradient(90deg, #e8f3ff, #c6fff0 60%, #ffe1bd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass {
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.form-control,
.form-select {
  background: #0c1328;
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.form-control:focus {
  border-color: var(--accent1);
  box-shadow: 0 0 0 0.2rem rgba(0, 224, 255, 0.15);
}

/* ===== Premium Hero (uses your variables) ===== */
.hero.hero-pro {
  position: relative;
  min-height: 92vh;
  padding: 120px 0 96px;
  background: radial-gradient(1200px 600px at 8% 12%,
      rgba(102, 224, 255, 0.22),
      transparent 60%),
    radial-gradient(900px 500px at 92% 18%,
      rgba(167, 243, 208, 0.18),
      transparent 60%),
    radial-gradient(1000px 600px at 50% 94%,
      rgba(255, 184, 107, 0.18),
      transparent 60%),
    var(--bg);
  overflow: hidden;
}

/* micro headline chips */
.hf-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.hf-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #dce8ff;
  font-weight: 700;
  font-size: 0.8rem;
}

.hf-pill i {
  color: var(--accent1);
}

.hf-row .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

/* headline treatments */
.hero-head {
  line-height: 1.08;
}

.txt-flare {
  background: linear-gradient(90deg, #e8f3ff, #c6fff0 55%, #ffe1bd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 22px rgba(0, 224, 255, 0.08);
}

.txt-underline {
  position: relative;
  white-space: nowrap;
}

.txt-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent2), var(--accent1));
  filter: blur(0.6px);
  box-shadow: 0 0 18px rgba(0, 224, 255, 0.28);
  animation: sweep 2.6s ease-in-out infinite;
}

@keyframes sweep {
  0% {
    transform: scaleX(0);
  }

  50% {
    transform: scaleX(1);
  }

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

/* ticks */
.hero-ticks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-ticks li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.35rem 0;
}

.hero-ticks i {
  color: var(--accent1);
  font-size: 1.05rem;
}

/* trust */
.trust .avatars {
  display: flex;
  align-items: center;
  margin-bottom: 0.35rem;
}

.trust .avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: -8px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: #0c1328;
}

.trust .avatar.more {
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  color: #dce8ff;
  background: rgba(255, 255, 255, 0.06);
}

.trust .rating i {
  color: #ffd166;
}

.trust .rating .muted {
  opacity: 0.9;
}

/* art panel */
.hero-art {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-art img {
  display: block;
  border-radius: calc(var(--radius) - 4px);
}

/* animated soft blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.55;
  mix-blend: screen;
}

.b1 {
  width: 240px;
  height: 240px;
  right: -40px;
  top: 10%;
  background: radial-gradient(circle at 30% 30%,
      rgba(0, 224, 255, 0.65),
      rgba(0, 224, 255, 0) 60%);
}

.b2 {
  width: 200px;
  height: 200px;
  left: -36px;
  bottom: 18%;
  background: radial-gradient(circle at 70% 60%,
      rgba(0, 114, 255, 0.55),
      rgba(0, 114, 255, 0) 60%);
}

.b3 {
  width: 180px;
  height: 180px;
  right: 14%;
  bottom: -30px;
  background: radial-gradient(circle at 40% 40%,
      rgba(255, 184, 107, 0.45),
      rgba(255, 184, 107, 0) 60%);
}

.b1,
.b2,
.b3 {
  animation: floaty 6.5s ease-in-out infinite alternate;
}

@keyframes floaty {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-10px);
  }
}

/* floating KPI chips */
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 14px;
  background: rgba(12, 18, 36, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 26px rgba(1, 9, 26, 0.35);
}

.chip i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent2), var(--accent1));
  color: var(--btn-text);
  font-size: 1.1rem;
  box-shadow: 0 6px 18px rgba(0, 112, 255, 0.22);
}

.chip .kpi {
  font-weight: 800;
  font-size: 1.06rem;
  line-height: 1;
}

.chip .tiny {
  font-size: 0.76rem;
}

.chip-top {
  top: 10%;
  right: 4%;
}

.chip-mid {
  top: 42%;
  left: -10px;
}

.chip-btm {
  bottom: 6%;
  right: 6%;
}

@media (max-width: 767.98px) {
  .chip-mid {
    top: auto;
    bottom: 28%;
    left: auto;
    right: 12px;
  }

  .chip-top {
    right: 12px;
  }
}

/* decorative orbit */
.orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orbit .planet {
  position: absolute;
  right: 16%;
  top: 18%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent1);
  box-shadow: 0 0 18px rgba(0, 224, 255, 0.55);
}

.orbit .satellite {
  position: absolute;
  right: 16%;
  top: 18%;
  width: 120px;
  height: 120px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transform-origin: center;
  animation: orbit 7s linear infinite;
}

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

/* btn alias */
.btn-brand {
  background: linear-gradient(90deg, var(--accent2), var(--accent1));
  color: var(--btn-text);
}

/* responsive tune */
@media (max-width: 767px) {
  .hero.hero-pro {
    padding: 72px 0 48px;
  }

  .display-4 {
    font-size: 2rem;
  }
}

/* === Custom Modal Close Button === */
.btn-outline-light.rounded-circle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
}

.btn-outline-light.rounded-circle:hover {
  background: linear-gradient(90deg, var(--accent2), var(--accent1));
  color: var(--btn-text);
  box-shadow: 0 0 18px rgba(0, 224, 255, 0.35);
}

.cardx {
  background: var(--card);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.cardx:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(1, 9, 26, 0.6);
}

.muted {
  color: var(--muted);
}

.badge-soft {
  background: black;
  color: #bff3ff;
  border: 1px solid rgba(102, 224, 255, 0.25);
}

.modal-content {
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--ink);
  border-radius: 20px;
}

.stat {
  font-size: clamp(1.4rem, 2.4vw, 2.4rem);
  font-weight: 800;
}

.feature i {
  color: var(--accent1);
}

/* ===== GALLERY (single 3/2/1 grid) ===== */
#gallery .tpt-gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

#gallery .tpt-gallery-grid>* {
  min-width: 0;
}

/* prevent child overflow */

@media (max-width: 991.98px) {
  #gallery .tpt-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  #gallery .tpt-gallery-grid {
    grid-template-columns: 1fr;
  }
}

#gallery .tpt-g-item {
  display: none;
  /* JS shows the first 6 */
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--card);
}

#gallery .tpt-g-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.25s ease;
}

#gallery .tpt-g-item:hover .tpt-g-img {
  transform: scale(1.045);
  filter: saturate(1.06);
}

#gallery .tpt-g-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 10px 12px;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0) 35%,
      rgba(0, 0, 0, 0.55));
  opacity: 0;
  transition: opacity 0.25s ease;
  min-width: 0;
  /* allow shrink */
}

#gallery .tpt-g-item:hover .tpt-g-overlay {
  opacity: 1;
}

#gallery .tpt-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #dce8ff;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

#gallery .tpt-visible {
  display: block;
}

/* ===== Bonus cards ===== */
.bonus-card {
  background-color: var(--card);
  border-radius: 16px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.bonus-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  margin: 0 auto;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
}

.icon-wrapper i {
  line-height: 1;
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Form reiteration (keep once) */
.form-control,
.form-select {
  background: #0c1328;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent1);
  box-shadow: 0 0 0 0.16rem rgba(0, 224, 255, 0.08);
}

.modal-backdrop.show {
  background-color: black;
}

/* auth modal style override */
.auth-modal .modal-content {
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.02));
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-tabs .nav-link {
  color: var(--muted);
}

.auth-tabs .nav-link.active {
  color: var(--ink);
  font-weight: 700;
}

.section-title {
  position: relative;
  color: #fff;
}

.section-title::after {
  content: "";
  display: block;
  height: 2px;
  margin: 10px 0 0 0;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--accent1), transparent);
}

/* Testimonials avatar (single definition) */
.testimonial-figure {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 2px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 767px) {
  .hero {
    padding: 72px 0 40px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .testimonial-figure {
    width: 56px;
    height: 56px;
  }
}

/* Center-align testimonials content */
#testimonials .cardx {
  text-align: center;
}

#testimonials .d-flex {
  flex-direction: column;
  align-items: center;
}

/* ===== Lightbox ===== */
.lightbox-img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 10px;
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

/* Policy */

/* === Policies Canvas Styling === */
.policy-canvas {
  background: radial-gradient(800px 400px at 70% 10%,
      rgba(0, 224, 255, 0.08),
      transparent 80%) #0b1220 !important;
  color: var(--ink);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  box-shadow: -8px 0 26px rgba(1, 9, 26, 0.6);
}

/* Header accent */
.policy-canvas .offcanvas-title {
  color: #e6f4ff;
}

.policy-canvas .text-accent {
  color: var(--accent1);
}

/* Policy list */
.policy-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.policy-list li {
  position: relative;
  padding-left: 1.6rem;
  margin: 0.7rem 0;
  line-height: 1.5;
  color: #d0e5ff;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.policy-list li::before {
  content: "•";
  position: absolute;
  left: 0.5rem;
  top: 0.05rem;
  color: var(--accent1);
  font-size: 1.2rem;
  opacity: 0.85;
}

.policy-list li:hover {
  transform: translateX(4px);
  color: #ffffff;
}

/* Note */
.policy-note {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.75rem;
  color: #a9bed9;
}

/* Custom close button match (already shared) */
.btn-outline-light.rounded-circle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
}

.btn-outline-light.rounded-circle:hover {
  background: linear-gradient(90deg, var(--accent2), var(--accent1));
  color: var(--btn-text);
  border-color: transparent;
  box-shadow: 0 0 18px rgba(0, 224, 255, 0.35);
  transform: scale(1.08);
}

/* === FIX FOR NAV OVERLAP === */
:root {
  --nav-h: 0px;
}

/* Will be set dynamically */

#nav-spacer {
  height: var(--nav-h);
}

/* make anchors stop under nav */
html {
  scroll-padding-top: var(--nav-h);
}

[id] {
  scroll-margin-top: var(--nav-h);
}

/* fallback if JS fails */
body {
  padding-top: 30px;
}

safe fallback .testimonial-figure {
  width: 110px;
  /* larger, balanced size */
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.cardx1 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.transparency {
  margin-top: 100px;
}

/* FAQ */
.faq-card {
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.faq-card:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq-question i {
  transition: transform 0.3s ease;
  font-size: 1.1rem;
  color: var(--brand, #66e0ff);
}

.faq-card.active .faq-question i {
  transform: rotate(90deg);
}

.faq-answer {
  display: none;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-card.active .faq-answer {
  display: block;
}