/* =========================================================
   Frontend nav bar + home hero  (dark theme)
   Loaded on all front-end pages from templates/header.php.
   Admin panel is NOT affected.
   ========================================================= */
:root {
  --fh-bg: #0a0e0c;
  --fh-green: #288352;          /* highlighted / accent text + eyebrow */
  --fh-white: #f3f6f3;
  --fh-nav: #d7ddd8;
  --fh-muted: #93a39a;
  --fh-faded: #5f7d6d;                       /* dimmed word in headings */
  --fh-card-line: rgba(150, 195, 170, .16);  /* feature-grid borders */
  --fh-grid-line: rgba(150, 195, 170, .055);
  --fh-ring: rgba(196, 226, 210, .5);
  --fh-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* deep-green gradient for ambient / decorative elements */
  --fh-grad: linear-gradient(135deg, #1e603c 0%, #154029 100%);

  /* shared button gradient (hero CTA + register) */
  --fh-btn-grad: linear-gradient(135deg, #298754 0%, #175231 100%);
  --fh-btn-grad-hover: linear-gradient(135deg, #2f9c61 0%, #1d6239 100%);

  /* approx nav height, used to blend the nav into the hero on the home page */
  --fh-nav-h: 76px;
}

/* ---------------------------------------------------------
   Top navigation (shared across all front-end pages)
   Outer wrap = full-width band + side padding (matches hero).
   Inner .site-nav = centered 1200px track (matches hero inner).
   --------------------------------------------------------- */
.site-nav-wrap {
  position: relative;
  z-index: 30;
  background: var(--fh-bg);
  padding: 0 clamp(22px, 5vw, 60px);
}

.site-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;   /* logo | centered links | actions */
  align-items: center;
  gap: 24px;
  font-family: var(--fh-font);
}

.site-nav__logo {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fh-white);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav__logo:hover,
.site-nav__logo:focus { color: var(--fh-white); text-decoration: none; }
.site-nav__logo-img { height: 36px; width: auto; display: block; }

/* wrapper holding links + actions; on desktop it disappears so its
   children become direct grid items of .site-nav */
.site-nav__menu { display: contents; }

/* No focus/click outline box on nav items (keep a subtle ring for keyboard users) */
.site-nav a,
.site-nav button { -webkit-tap-highlight-color: transparent; }
.site-nav a:focus,
.site-nav button:focus { outline: none; box-shadow: none; }
.site-nav a:focus-visible,
.site-nav button:focus-visible { outline: 2px solid var(--fh-green); outline-offset: 2px; border-radius: 4px; }

.site-nav__links,
.site-nav__actions {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__links  { grid-column: 2; justify-self: center; gap: 34px; }
.site-nav__actions { grid-column: 3; justify-self: end; gap: 22px; }

.site-nav__links a {
  color: var(--fh-nav);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .15s ease;
}
.site-nav__links a:hover,
.site-nav__links a:focus,
.site-nav__links a.active { color: var(--fh-white); text-decoration: none; }

.site-nav__actions a {
  color: var(--fh-white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color .15s ease, background .18s ease;
  white-space: nowrap;
}
.site-nav__actions a:hover,
.site-nav__actions a:focus { color: var(--fh-green); text-decoration: none; }

/* Login / Dashboard link: arrow icon sits AFTER the text and nudges right on hover */
.site-nav__login,
.site-nav__dashboard { display: inline-flex; align-items: center; gap: 8px; }
.site-nav__login svg,
.site-nav__dashboard svg { width: 16px; height: 16px; transition: transform .15s ease; }
.site-nav__login:hover svg,
.site-nav__login:focus svg,
.site-nav__dashboard:hover svg,
.site-nav__dashboard:focus svg { transform: translateX(4px); }

/* primary "Sign up" / call-to-action pill (gradient) */
.site-nav__actions a.site-nav__cta {
  background: var(--fh-btn-grad);
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
}
.site-nav__actions a.site-nav__cta:hover,
.site-nav__actions a.site-nav__cta:focus {
  background: var(--fh-btn-grad-hover);
  color: #fff;
}

.site-nav__balance { color: var(--fh-green); font-weight: 700; }

/* logged-in user dropdown (re-uses Bootstrap dropdown JS) */
.site-nav .dropdown > a { display: inline-flex; align-items: center; gap: 8px; }
.site-nav .dropdown img.pro-img { width: 32px; height: 32px; border-radius: 50%; }
.site-nav .dropdown-menu {
  background: #0f1512;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  padding: 6px;
  margin-top: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.site-nav .dropdown-menu > li > a {
  color: var(--fh-nav);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
}
.site-nav .dropdown-menu > li > a:hover,
.site-nav .dropdown-menu > li > a:focus {
  background: rgba(40, 131, 82, .16);
  color: var(--fh-white);
}
.site-nav .dropdown-menu .divider { background: rgba(255, 255, 255, .08); }

/* hamburger (mobile only) */
.site-nav__toggle {
  display: none;
  grid-column: 3;
  justify-self: end;
  background: none;
  border: 0;
  color: var(--fh-white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}

@media (max-width: 860px) {
  .site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .site-nav__logo { position: relative; z-index: 1002; }
  .site-nav__toggle { display: inline-flex; position: relative; z-index: 1002; }
  /* swap the hamburger glyph to a close (×) while the overlay is open */
  .site-nav.is-open .site-nav__toggle i::before { content: "\f00d"; }

  /* full-screen slide-in overlay (matches the dashboard mobile nav) */
  .site-nav__menu {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 1000;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    padding: 78px 20px 32px;
    background: var(--fh-bg);
    overflow-y: auto;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .28s ease, visibility .28s ease;
  }
  .site-nav.is-open .site-nav__menu { transform: none; visibility: visible; }

  .site-nav__links,
  .site-nav__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }
  .site-nav__actions { margin-top: 12px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }

  /* left-aligned link rows, same sizing as the dashboard rail */
  .site-nav__links a,
  .site-nav__actions a,
  .site-nav .dropdown > a,
  .site-nav .dropdown-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 52px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 18px;
  }
  .site-nav__links a:hover,
  .site-nav__actions a:hover,
  .site-nav .dropdown-menu > li > a:hover { background: rgba(255, 255, 255, .05); }
  .site-nav__actions a.site-nav__cta { justify-content: center; }

  /* profile dropdown: render its items inline on the overlay (no JS toggle) */
  .site-nav .dropdown { width: 100%; }
  .site-nav .dropdown > a .caret { display: none; }
  .site-nav .dropdown-menu {
    position: static;
    display: block;
    float: none;
    width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
  }

  /* lock the page behind the overlay so the close button stays put */
  body:has(.site-nav.is-open) { overflow: hidden; }
}

/* ---------------------------------------------------------
   Home hero
   --------------------------------------------------------- */
/* ---------------------------------------------------------
   Shared landing canvas — ONE continuous background for the
   whole home page so the grid + glows flow across every
   section instead of being boxed inside each one.
   --------------------------------------------------------- */
.landing {
  position: relative;
  background: var(--fh-bg);
  color: var(--fh-white);
  font-family: var(--fh-font);
  overflow: hidden;
  /* slide the canvas up behind the transparent nav, then push content below it */
  margin-top: calc(-1 * var(--fh-nav-h));
  padding-top: calc(var(--fh-nav-h) + clamp(18px, 3vw, 40px));
}

.landing__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.landing > *:not(.landing__bg) { position: relative; z-index: 1; }

.landing__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--fh-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--fh-grid-line) 1px, transparent 1px);
  background-size: 70px 70px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
}

/* green pools placed down the whole page; they bleed across section seams */
.landing__glows {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 560px at 80% 8%,  rgba(30, 96, 60, .34), transparent 60%),
    radial-gradient(620px 560px at 4% 18%,  rgba(21, 64, 41, .30), transparent 64%),
    radial-gradient(620px 520px at 90% 38%, rgba(30, 96, 60, .22), transparent 62%),
    radial-gradient(720px 600px at 12% 60%, rgba(21, 64, 41, .26), transparent 64%),
    radial-gradient(700px 540px at 86% 88%, rgba(30, 96, 60, .34), transparent 60%);
}

.landing__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 130% 60% at 50% 0%,   transparent 55%, rgba(0, 0, 0, .35) 100%),
    radial-gradient(ellipse 130% 60% at 50% 100%, transparent 55%, rgba(0, 0, 0, .35) 100%);
}

/* nav blends into the landing canvas on the home page */
body:has(.landing) .site-nav-wrap { background: transparent; }

/* ---------------------------------------------------------
   Home hero (transparent — sits on the shared canvas)
   --------------------------------------------------------- */
.site-hero {
  position: relative;
  color: var(--fh-white);
  font-family: var(--fh-font);
  display: flex;
  align-items: center;
  min-height: 76vh;
  padding: clamp(24px, 4vw, 56px) clamp(22px, 5vw, 60px) clamp(48px, 6vw, 80px);
}

.site-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 40px;
}

.site-hero__eyebrow {
  color: var(--fh-green);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}
.site-hero h1 {
  margin: 0;
  font-family: var(--fh-font);
  font-size: clamp(34px, 5.2vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fh-white);
}
.site-hero h1 .accent { color: var(--fh-green); }

.site-hero__lead {
  margin: 22px 0 0;
  max-width: 440px;
  color: var(--fh-muted);
  font-size: 15px;
  line-height: 1.65;
}

.site-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  background: var(--fh-btn-grad);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 22px;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s ease, transform .12s ease;
}
.site-hero__btn:hover,
.site-hero__btn:focus {
  background: var(--fh-btn-grad-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.site-hero__btn:active { transform: translateY(0); }
.site-hero__btn:focus { outline: none; }
.site-hero__btn:focus-visible { outline: 2px solid var(--fh-green); outline-offset: 2px; }
.site-hero__btn svg { width: 16px; height: 16px; transition: transform .15s ease; }
.site-hero__btn:hover svg { transform: translateX(3px); }

.site-hero__art {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.site-hero__art::before {       /* soft glow behind the graphic */
  content: "";
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 96, 60, .30), transparent 65%);
  filter: blur(8px);
}
.site-hero__art img {
  position: relative;
  width: min(42vw, 520px);
  height: auto;
  display: block;
}

@media (max-width: 860px) {
  .site-hero__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: left;
  }
  .site-hero__art { order: -1; }
  .site-hero__art img { width: min(72vw, 320px); }
  .site-hero__lead { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .site-hero__btn,
  .site-hero__btn svg,
  .site-nav__login svg,
  .site-nav__links a,
  .site-nav__actions a { transition: none; }
}

/* =========================================================
   Home "Why choose us" feature grid (same dark theme as hero)
   ========================================================= */
.why-choose {
  position: relative;
  color: var(--fh-white);
  font-family: var(--fh-font);
  display: flex;
  align-items: center;
  min-height: 90vh;
  padding: clamp(48px, 7vw, 72px) clamp(22px, 5vw, 60px);
}

.why-choose__grid {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  /* outer right + bottom; each cell draws its own top + left → clean 1px lines */
  border-right: 1px solid var(--fh-card-line);
  border-bottom: 1px solid var(--fh-card-line);
}

.why-choose__cell {
  border-top: 1px solid var(--fh-card-line);
  border-left: 1px solid var(--fh-card-line);
}

/* heading cell blends into the background: no outer top/left line */
.why-choose__heading {
  border-top: none;
  border-left: none;
  padding: 8px 32px 8px 2px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.why-choose__eyebrow { color: var(--fh-green); font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.why-choose__title {
  font-family: var(--fh-font);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--fh-white);
  margin: 0;
}
.why-choose__faded { color: var(--fh-faded); }

.why-choose__btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  margin-top: 28px;
  background: var(--fh-btn-grad);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s ease, transform .12s ease;
}
.why-choose__btn:hover,
.why-choose__btn:focus {
  background: var(--fh-btn-grad-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.why-choose__btn:focus { outline: none; }
.why-choose__btn:focus-visible { outline: 2px solid var(--fh-green); outline-offset: 2px; }
.why-choose__btn svg { width: 15px; height: 15px; transition: transform .15s ease; }
.why-choose__btn:hover svg { transform: translateX(3px); }

.why-choose__card {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  min-height: 230px;
}
.why-choose__tick { width: 26px; height: 3px; border-radius: 2px; background: var(--fh-green); margin-bottom: 22px; }
.why-choose__card-title { font-family: var(--fh-font); font-size: 16px; font-weight: 700; color: var(--fh-white); margin: 0 0 14px; }
.why-choose__card-text { font-size: 12.5px; line-height: 1.6; color: var(--fh-muted); max-width: 230px; margin: 0; }

.why-choose__arrow {
  margin-top: auto;
  align-self: flex-end;
  color: var(--fh-green);
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  transition: transform .18s ease;
}
.why-choose__arrow svg { width: 19px; height: 19px; }

@media (max-width: 880px) {
  .why-choose__grid { grid-template-columns: 1fr; border-right: none; }
  .why-choose__cell { border-left: none; }
  .why-choose__heading { padding: 4px 0 28px; }
  .why-choose__card { min-height: auto; }
  .why-choose__card-text { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .why-choose__btn,
  .why-choose__btn svg,
  .why-choose__arrow { transition: none; }
}

/* =========================================================
   Home "Statistics" section (count-up + globe image)
   ========================================================= */
.stats-section {
  position: relative;
  color: var(--fh-white);
  font-family: var(--fh-font);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 96vh;
  /* extra bottom padding gives the globe room before the CTA section */
  padding: clamp(48px, 7vw, 64px) 22px clamp(70px, 9vh, 120px);
}

.stats-section__head { position: relative; z-index: 1; text-align: center; max-width: 560px; }
.stats-section__eyebrow { color: var(--fh-green); font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.stats-section__title {
  font-family: var(--fh-font);
  font-size: clamp(28px, 4.4vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--fh-white);
  margin: 0;
}
.stats-section__faded { color: var(--fh-faded); }
.stats-section__sub {
  margin: 16px auto 0;
  max-width: 430px;
  color: var(--fh-muted);
  font-size: 13px;
  line-height: 1.6;
}

.stats-section__stats {
  position: relative;
  z-index: 1;
  display: flex;
  gap: clamp(36px, 7vw, 88px);
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.stats-section__num { font-size: clamp(30px, 4vw, 40px); font-weight: 800; color: var(--fh-white); letter-spacing: -0.01em; }
.stats-section__plus { color: var(--fh-green); }
.stats-section__label { margin-top: 6px; color: var(--fh-green); font-size: 13px; font-weight: 500; }

.stats-section__globe {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: clamp(40px, 6vh, 80px);
  flex: 1;
}
.stats-section__globe img { display: block; width: min(540px, 100%); height: auto; }

@media (max-width: 880px) {
  .stats-section { min-height: auto; padding-bottom: 40px; }
  .stats-section__globe img { width: min(420px, 100%); }
}

/* =========================================================
   Home contact / CTA banner
   ========================================================= */
.cta-section {
  position: relative;
  width: 100%;
  min-height: clamp(200px, 32vh, 260px);
  color: var(--fh-white);
  font-family: var(--fh-font);
  display: flex;
  align-items: center;
  padding: clamp(40px, 6vw, 72px) clamp(22px, 5vw, 60px);
}

/* keep the content within the same centred 1200px column as the hero/stats */
.cta-section__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.cta-section__eyebrow { color: var(--fh-green); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.cta-section__title {
  font-family: var(--fh-font);
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--fh-white);
  margin: 0;
}
.cta-section__faded { color: var(--fh-faded); }

.cta-section__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  background: var(--fh-btn-grad);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s ease, transform .12s ease;
}
.cta-section__btn:hover,
.cta-section__btn:focus { background: var(--fh-btn-grad-hover); color: #fff; text-decoration: none; transform: translateY(-1px); }
.cta-section__btn:active { transform: translateY(0); }
.cta-section__btn:focus { outline: none; }
.cta-section__btn:focus-visible { outline: 2px solid var(--fh-green); outline-offset: 2px; }
.cta-section__btn svg { width: 16px; height: 16px; transition: transform .15s ease; }
.cta-section__btn:hover svg { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .cta-section__btn, .cta-section__btn svg { transition: none; }
}

/* =========================================================
   Home customer reviews — its OWN green background band
   (deliberately breaks out of the dark canvas)
   ========================================================= */
.reviews-section {
  --rv-green: #298754;
  --rv-grid-line: rgba(255, 255, 255, .07);
  --rv-heading: #0c1f15;
  --rv-eyebrow: #123a26;
  --rv-card: #0f1512;
  --rv-card-text: #97a69d;
  --rv-name: #e9ede9;
  --rv-pad: clamp(26px, 6vw, 60px);

  position: relative;
  overflow: hidden;
  background: var(--rv-green);
  color: var(--rv-heading);
  font-family: var(--fh-font);
  display: flex;
  flex-direction: column;
  padding: clamp(40px, 5vw, 64px) 0;
}

/* keep the content within the same centred 1200px column as the hero/stats */
.reviews-section__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(22px, 5vw, 60px);
}

.reviews-section__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--rv-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rv-grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 30% 30%, #000 40%, transparent 95%);
          mask-image: radial-gradient(ellipse 100% 100% at 30% 30%, #000 40%, transparent 95%);
  opacity: .8;
}

.reviews-section__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.reviews-section__eyebrow { color: var(--rv-eyebrow); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.reviews-section__title {
  font-family: var(--fh-font);
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--rv-heading);
  margin: 0;
}

.reviews-section__nav { display: flex; gap: 14px; flex-shrink: 0; }
.reviews-section__nav button {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .18s ease, transform .12s ease, opacity .18s ease;
}
.reviews-section__nav button:active { transform: scale(.92); }
.reviews-section__nav button:focus { outline: none; }
.reviews-section__nav button:focus-visible { outline: 2px solid var(--rv-heading); outline-offset: 2px; }
.reviews-section__prev { background: transparent; border: 1.5px solid rgba(12, 31, 21, .55); color: var(--rv-heading); }
.reviews-section__prev:hover { background: rgba(12, 31, 21, .08); }
.reviews-section__next { background: var(--rv-card); border: none; color: #eafff3; }
.reviews-section__next:hover { background: #161e19; }
.reviews-section__nav button svg { width: 18px; height: 18px; }

.reviews-section__track {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 0;
  scroll-padding-left: 0;
  scrollbar-width: none;
}
.reviews-section__track::-webkit-scrollbar { display: none; }

/* cards fill the column exactly: 3 per view on desktop (gap = 20px → 2 gaps) */
.reviews-section__card {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
  background: var(--rv-card);
  border-radius: 0;
  padding: 26px 24px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
}
/* 2 per view (1 gap) */
@media (max-width: 992px) {
  .reviews-section__card { flex-basis: calc((100% - 20px) / 2); }
}
/* 1 per view (no gap) */
@media (max-width: 600px) {
  .reviews-section__card { flex-basis: 100%; }
}
.reviews-section__card p { color: var(--rv-card-text); font-size: 13px; line-height: 1.65; margin: 0; }

.reviews-section__who { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 22px; }
.reviews-section__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: contain;
  background: #fff;
  padding: 5px;
}
.reviews-section__name { color: var(--rv-name); font-size: 14px; font-weight: 500; }

@media (prefers-reduced-motion: reduce) { .reviews-section__nav button { transition: none; } }

/* =========================================================
   Front-end footer (dark theme, shown on every front-end page)
   ========================================================= */
.site-footer {
  --sf-btn: #161d18;
  --sf-btn-hover: #1e271f;
  position: relative;
  overflow: hidden;
  background: var(--fh-bg);
  color: var(--fh-white);
  font-family: var(--fh-font);
  padding: clamp(44px, 6vw, 64px) clamp(26px, 6vw, 64px) 36px;
}
.site-footer__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(150, 195, 170, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(150, 195, 170, .04) 1px, transparent 1px);
  background-size: 70px 70px;
}

/* no focus/click outline box on footer items (keep a subtle ring for keyboard users) */
.site-footer a,
.site-footer button,
.site-footer select { -webkit-tap-highlight-color: transparent; }
.site-footer a:focus,
.site-footer button:focus,
.site-footer select:focus { outline: none; }
.site-footer a:focus-visible,
.site-footer button:focus-visible,
.site-footer select:focus-visible { outline: 2px solid var(--fh-green); outline-offset: 2px; border-radius: 4px; }

.site-footer__cols {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.4fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fh-white);
  text-decoration: none;
}
.site-footer__logo:hover { color: var(--fh-white); text-decoration: none; }
.site-footer__logo img { height: 34px; width: auto; text-transform: none; }
.site-footer__tagline { color: var(--fh-white); font-size: 13px; line-height: 1.5; margin-top: 14px; opacity: .9; }

.site-footer__socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.site-footer__socials a {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--sf-btn);
  display: grid;
  place-items: center;
  color: var(--fh-white);
  transition: background .16s ease, transform .12s ease;
}
.site-footer__socials a:hover { background: var(--sf-btn-hover); transform: translateY(-2px); color: var(--fh-white); }
.site-footer__socials svg { width: 17px; height: 17px; }

.site-footer__h { font-size: 14px; font-weight: 700; color: var(--fh-white); margin-bottom: 18px; }
.site-footer__col a {
  display: block;
  color: var(--fh-muted);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 14px;
  transition: color .15s ease;
}
.site-footer__col a:hover { color: var(--fh-white); }

.site-footer__contact p { color: var(--fh-muted); font-size: 13px; margin: 0 0 10px; }
.site-footer__contact a { color: var(--fh-muted); text-decoration: none; transition: color .15s ease; word-break: break-word; }
.site-footer__contact a:hover { color: var(--fh-green); }

.site-footer__bottom {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 48px auto 0;
  padding-top: 26px;
  text-align: center;
  color: var(--fh-muted);
  font-size: 12.5px;
  border-top: 1px solid rgba(150, 195, 170, .08);
}
.site-footer__bottom select {
  background: var(--sf-btn);
  color: var(--fh-white);
  border: 1px solid rgba(150, 195, 170, .14);
  border-radius: 6px;
  padding: 3px 8px;
  margin-left: 6px;
}

@media (max-width: 820px) {
  .site-footer__cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .site-footer__cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .site-footer__socials a { transition: none; }
}

/* =========================================================
   Generic dark page shell — auth pages (login/register/…)
   and custom content pages. Scoped so the account dashboard
   is NOT affected.
   ========================================================= */
.page-shell {
  position: relative;
  overflow: hidden;
  background: var(--fh-bg);
  color: var(--fh-white);
  font-family: var(--fh-font);
  min-height: 72vh;
  padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 90px);
}
.page-shell::before {            /* continuous grid */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--fh-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--fh-grid-line) 1px, transparent 1px);
  background-size: 70px 70px;
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 18%, #000 35%, transparent 92%);
          mask-image: radial-gradient(ellipse 100% 80% at 50% 18%, #000 35%, transparent 92%);
}
.page-shell::after {             /* ambient green glow */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(720px 480px at 84% 14%, rgba(30, 96, 60, .30), transparent 64%),
    radial-gradient(560px 460px at 4% 32%, rgba(21, 64, 41, .24), transparent 66%);
}
.page-shell > .container,
.page-shell > .container-fluid { position: relative; z-index: 1; }

/* headings */
.page-shell h1,
.page-shell h2,
.page-shell h3 {
  font-family: var(--fh-font);
  color: var(--fh-white);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.page-shell .page-header {
  border-bottom: 1px solid rgba(150, 195, 170, .12);
  padding-bottom: 14px;
  margin-bottom: 8px;
}
.page-shell h1 i,
.page-shell h2 i,
.page-shell .page-header i { color: var(--fh-green); }
.page-shell hr { border-top: 1px solid rgba(150, 195, 170, .12); }
.page-shell p,
.page-shell span,
.page-shell li,
.page-shell label { color: var(--fh-nav); }

/* form rendered as a dark card */
.page-shell form {
  background: #0f1512;
  border: 1px solid rgba(150, 195, 170, .10);
  border-radius: 14px;
  padding: clamp(20px, 3vw, 30px);
}
.page-shell label { font-weight: 600; font-size: 13.5px; color: var(--fh-white); }

.page-shell .form-control {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(150, 195, 170, .18);
  color: var(--fh-white);
  border-radius: 8px;
  box-shadow: none;
}
.page-shell .form-control::placeholder { color: var(--fh-muted); }
.page-shell .form-control:focus {
  background: rgba(255, 255, 255, .06);
  color: var(--fh-white);
  border-color: var(--fh-green);
  box-shadow: 0 0 0 3px rgba(40, 131, 82, .25);
}
.page-shell select.form-control,
.page-shell select.form-control option { background: #0f1512; color: var(--fh-white); }
.page-shell textarea.form-control { min-height: 150px; resize: vertical; }
.page-shell input[type="checkbox"],
.page-shell input[type="radio"] { accent-color: var(--fh-green); }

/* buttons → brand gradient */
.page-shell .btn-secondary,
.page-shell .btn-success,
.page-shell .btn-primary,
.page-shell .btn-default {
  background: var(--fh-btn-grad);
  border: none;
  color: #fff;
  border-radius: 9px;
  font-weight: 600;
  padding: 11px 22px;
  transition: background .18s ease, transform .12s ease;
}
.page-shell .btn-secondary:hover, .page-shell .btn-secondary:focus,
.page-shell .btn-success:hover,   .page-shell .btn-success:focus,
.page-shell .btn-primary:hover,   .page-shell .btn-primary:focus,
.page-shell .btn-default:hover,   .page-shell .btn-default:focus {
  background: var(--fh-btn-grad-hover);
  color: #fff;
  transform: translateY(-1px);
}
.page-shell .btn:focus { outline: none; box-shadow: none; }
.page-shell .btn:focus-visible { outline: 2px solid var(--fh-green); outline-offset: 2px; }

/* links */
.page-shell a { color: var(--fh-green); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.page-shell a:hover { color: #34a065; text-decoration: underline; }
/* no focus/click outline box (keep a subtle ring for keyboard users) */
.page-shell a:focus,
.page-shell button:focus { outline: none; }
.page-shell a:focus-visible,
.page-shell button:focus-visible { outline: 2px solid var(--fh-green); outline-offset: 2px; border-radius: 4px; }

/* alerts */
.page-shell .alert { border-radius: 10px; border: 1px solid transparent; }
.page-shell .alert-info    { background: rgba(40, 131, 82, .14); border-color: rgba(40, 131, 82, .30); color: #c7f0d6; }
.page-shell .alert-success { background: rgba(40, 131, 82, .16); border-color: rgba(40, 131, 82, .35); color: #c7f0d6; }
.page-shell .alert-warning { background: rgba(199, 160, 0, .14); border-color: rgba(199, 160, 0, .30); color: #f0e2b0; }
.page-shell .alert-danger,
.page-shell .alert-error   { background: rgba(199, 0, 57, .14); border-color: rgba(199, 0, 57, .30); color: #f5b8c6; }

/* custom-page header: drop the old coloured band, blend into the canvas */
.page-shell .article_title {
  background: none !important;
  height: auto;
  min-height: 0;
  margin: 0 0 30px;
  padding: 0;
  display: block;
  text-align: center;
  color: var(--fh-white);
}
.page-shell .article_title h1 {
  font-weight: 800 !important;
  text-transform: none;
  font-size: clamp(26px, 4vw, 42px);
}
.page-shell .article_content { color: var(--fh-nav); font-size: 15px; line-height: 1.75; padding-bottom: 0; }
.page-shell .article_content h1,
.page-shell .article_content h2,
.page-shell .article_content h3,
.page-shell .article_content h4 { color: var(--fh-white); margin: 1.2em 0 .5em; }
.page-shell .article_content a { color: var(--fh-green); }
.page-shell .article_content img { max-width: 100%; height: auto; border-radius: 10px; }

/* ---- auth pages + contact: a centred form on the bare background (no card) ---- */
.page-shell--auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  text-align: left;
}
.page-shell > .auth-box { position: relative; z-index: 1; }
.auth-box {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}
.auth-box__title {
  font-size: clamp(21px, 2.6vw, 27px) !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  margin: 0 0 24px !important;
  text-align: center;
  border: none !important;
  padding: 0 !important;
}
/* forms here sit directly on the background — no card, no border */
.page-shell--auth form,
.page-shell .auth-box form {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}
.auth-box .form-group { margin-bottom: 16px; }
.auth-box .btn-block { margin-top: 6px; }
.auth-box__links { margin-top: 20px; text-align: center; font-size: 13.5px; }
.auth-box__links span { display: block; margin-bottom: 7px; color: var(--fh-muted); }
.auth-box__ad { margin-top: 28px; text-align: center; overflow: hidden; }

/* cookie banner must sit above the footer and everything else */
.cookie-alert { z-index: 99999 !important; }

/* =========================================================
   User dashboard (.account) — dark theme to match the front end.
   Scoped to .account / body:has(.account) so the ADMIN panel
   (AdminLTE) is untouched. No markup is changed → all functions
   keep working; only the styling of the Bootstrap components.
   ========================================================= */
body:has(.account) { background: var(--fh-bg); }

/* on dashboard pages: hide the marketing nav + footer and kill the gap they left */
body:has(.account) .site-nav-wrap { display: none; }
body:has(.account) .site-footer { display: none; }
body:has(.account) > section { margin-top: 0; padding-left: 60px; }

/* our own dashboard top bar (with profile dropdown) */
.dash-topnav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 0 clamp(16px, 3vw, 28px);
  background: #0c100e;
  border-bottom: 1px solid rgba(150, 195, 170, .07);
  font-family: var(--fh-font);
}
.dash-topnav__brand {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fh-white);
  text-decoration: none;
}
.dash-topnav__brand:hover, .dash-topnav__brand:focus { color: var(--fh-white); text-decoration: none; }
.dash-topnav__brand img { height: 34px; width: auto; display: block; }
.dash-topnav__right { display: flex; align-items: center; gap: 18px; }
.dash-topnav__balance { color: var(--fh-green); font-weight: 700; font-size: 13px; white-space: nowrap; }
.dash-topnav__user > a { display: inline-flex; align-items: center; gap: 9px; color: var(--fh-white); text-decoration: none; font-size: 14px; }
.dash-topnav__user > a:focus { outline: none; }
.dash-topnav__user .pro-img { width: 34px; height: 34px; border-radius: 50%; }
.dash-topnav__user .dropdown-menu {
  background: #0f1512;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  padding: 6px;
  margin-top: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.dash-topnav__user .dropdown-menu > li > a { color: var(--fh-nav); border-radius: 6px; padding: 8px 12px; font-size: 14px; }
.dash-topnav__user .dropdown-menu > li > a:hover { background: rgba(40, 131, 82, .16); color: var(--fh-white); }
.dash-topnav__user .dropdown-menu .divider { background: rgba(255, 255, 255, .08); }

/* hamburger that opens the dashboard nav overlay (mobile only) */
.dash-topnav__toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--fh-white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  margin-right: auto;   /* push the toggle to the left, actions stay right */
}
.dash-topnav__toggle:focus { outline: none; }

@media (max-width: 600px) {
  .dash-topnav__balance { display: none; }
  .dash-topnav__user > a b { display: none; }
}

/* full-width dashboard: flush-left icon rail + main content
   (div.account beats the theme's `div.account { padding-top:50px }` rule) */
div.account {
  position: relative;
  color: var(--fh-white);
  font-family: var(--fh-font);
  width: 100%;          /* override Bootstrap .container's fixed width (e.g. 1170px) */
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}
.account > .row {
  display: flex;
  gap: 0;
  margin: 0;
  align-items: stretch;
}
.account > .row > .col-md-9 {
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  min-width: 0;
  padding: 16px clamp(18px, 3vw, 38px);
  float: none;
}

/* ---- collapsed icon rail (flush against the left) ---- */
/* full-height rail fixed against the left, sitting over the top bar's corner */
.account .dash-rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 30;
  background: #0c100e;
  border-right: 1px solid rgba(150, 195, 170, .07);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
}
.account .dash-rail__logo {
  position: relative;
  width: 42px; height: 42px;
  margin-bottom: 16px;
  display: grid; place-items: center;
}
.account .dash-rail__logo img {
  width: 34px; height: 34px;
  object-fit: contain;
  background: #fff;
  border-radius: 9px;
  padding: 4px;
}
.account .dash-rail__ic {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--fh-muted);
  font-size: 17px;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.account .dash-rail__ic:hover { color: var(--fh-white); background: rgba(255, 255, 255, .05); }
.account .dash-rail__ic.active { background: var(--fh-green); color: #fff; }
.account .dash-rail__ic--bottom { margin-top: auto; }
.account .dash-rail__ic:focus { outline: none; }

/* hover tooltip showing the page name */
.account .dash-rail__ic::after,
.account .dash-rail__logo::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  background: #1a221d;
  color: var(--fh-white);
  border: 1px solid rgba(150, 195, 170, .12);
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
  z-index: 60;
}
.account .dash-rail__ic:hover::after,
.account .dash-rail__logo:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 880px) {
  body:has(.account) > section { padding-left: 0; }
  .account > .row { flex-direction: column; }

  /* show the hamburger; keep it above the overlay so it can close it */
  .dash-topnav__toggle { display: inline-flex; position: relative; z-index: 1002; }
  body.dash-nav-open .dash-topnav { z-index: 1001; }
  body.dash-nav-open .dash-topnav__toggle i::before { content: "\f00d"; }
  body.dash-nav-open { overflow: hidden; }

  /* the icon rail becomes a full-screen slide-in overlay */
  .account .dash-rail {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    padding: 78px 20px 32px;
    border-right: none;
    overflow-y: auto;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .28s ease, visibility .28s ease;
  }
  body.dash-nav-open .dash-rail { transform: none; visibility: visible; }

  .account .dash-rail__logo { margin: 0 6px 16px; align-self: flex-start; }
  .account .dash-rail__ic--bottom { margin-top: auto; }
  /* labeled rows: icon + the page name (data-tip) instead of a hover tooltip */
  .account .dash-rail__ic {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 52px;
    gap: 16px;
    padding: 0 16px;
    font-size: 18px;
  }
  /* extra .dash-rail in the selector beats the neutral-palette tooltip rule
     (.account .dash-rail__ic::after) so no #1a1a1a box sits behind the label */
  .account .dash-rail .dash-rail__ic::after {
    content: attr(data-tip);
    position: static;
    transform: none;
    opacity: 1;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    font-size: 16px;
    font-weight: 500;
    color: inherit;
    white-space: nowrap;
  }
  .account .dash-rail__logo::after { display: none; }
  .account > .row > .col-md-9 { padding: 18px 16px; }
}

/* ---- dashboard top bar + filter ---- */
.account .dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.account .dash-topbar h1 { margin: 0; font-size: clamp(20px, 2.4vw, 26px); }
.account .dash-filter {
  position: relative;
  display: inline-flex;
  align-items: center;
}
/* calendar icon sits over the select but lets clicks through */
.account .dash-filter i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  color: var(--fh-green);
  font-size: 14px;
}
/* the select IS the whole control → click anywhere opens it; custom chevron on the right */
.account .dash-filter .time-filter {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: #1a1a1a url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2393a39a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 15px center;
  border: 1px solid #2c2c2c;
  border-radius: 12px;
  box-shadow: none;
  color: var(--fh-white);
  width: auto;
  height: auto;
  min-width: 190px;
  padding: 11px 42px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.account .dash-filter .time-filter::-ms-expand { display: none; }
.account .dash-filter:hover .time-filter { border-color: #3d3d3d; background-color: #202020; }
.account .dash-filter:hover i { color: #34a065; }
.account .dash-filter .time-filter:focus {
  border-color: var(--fh-green);
  box-shadow: 0 0 0 3px rgba(40, 131, 82, .18);
}
.account .dash-filter .time-filter option {
  background: #1a1a1a;
  color: var(--fh-white);
  font-weight: 500;
  padding: 8px;
}

/* ---- KPI stat cards (reference style, our green) ---- */
.account .dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
.account .dash-stat {
  background: #131a16;
  border: 1px solid rgba(150, 195, 170, .1);
  border-radius: 18px;
  padding: 18px 20px;
  min-height: 124px;
  display: flex;
  flex-direction: column;
}
.account .dash-stat--hl {
  background: #206c42;
  border-color: transparent;
}
.account .dash-stat__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.account .dash-stat__label { font-size: 13px; font-weight: 500; color: var(--fh-muted); }
.account .dash-stat--hl .dash-stat__label { color: #d7f5e3; }
.account .dash-stat__icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(150, 195, 170, .18);
  display: grid; place-items: center;
  color: var(--fh-green);
  flex-shrink: 0;
  font-size: 14px;
}
.account .dash-stat--hl .dash-stat__icon { background: rgba(0, 0, 0, .22); border: none; color: #eafff3; }
.account .dash-stat__val {
  margin-top: auto;
  padding-top: 16px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fh-white);
  line-height: 1.05;
}
.account .dash-stat--hl .dash-stat__val { color: #eafff3; }
@media (max-width: 1080px) { .account .dash-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .account .dash-stats { grid-template-columns: 1fr; } }

/* ---- custom bar charts (replace the old Chart.js line charts) ---- */
.account .panel.dash-chart { padding: 20px 22px 18px; }
.account .dash-chart__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.account .dash-chart__head h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.account .dash-chart__body { width: 100%; }

.account .dash-chart__plot {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  height: 240px;
}
.account .dash-chart__yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding-right: 10px;
  border-right: 1px solid #262626;
}
.account .dash-chart__yaxis span { font-size: 11px; color: var(--fh-muted); line-height: 1; }
.account .dash-chart__bars {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 0 6px 0 12px;
}
.account .dash-chart__bar {
  flex: 1 1 0;
  min-width: 3px;
  border-radius: 4px 4px 0 0;
  background: #3a3a3a;
  transition: filter .15s ease;
}
.account .dash-chart__bar.mid  { background: #d6d8d4; }
.account .dash-chart__bar.high { background: #2f9c61; }
.account .dash-chart__bar:hover { filter: brightness(1.18); }

.account .dash-chart__tip {
  position: absolute;
  display: none;
  transform: translate(-50%, -100%);
  margin-top: -8px;
  padding: 7px 10px;
  background: #000;
  border: 1px solid #2f9c61;
  border-radius: 8px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 5;
}
.account .dash-chart__tip-d { font-size: 11px; color: var(--fh-muted); }
.account .dash-chart__tip-v { font-size: 14px; font-weight: 700; color: var(--fh-white); }

.account .dash-chart__xaxis {
  display: flex;
  gap: 6px;
  padding: 8px 6px 0 58px; /* yaxis (46) + bars left pad (12) */
}
.account .dash-chart__xaxis span {
  flex: 1 1 0;
  min-width: 0;
  font-size: 11px;
  color: var(--fh-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}
.account .dash-chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #262626;
}
.account .dash-chart__legend > div { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--fh-muted); }
.account .dash-chart__legend .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* align every dashboard section to the same edges (kill Bootstrap col padding,
   use a flex gap instead) so the stat row, charts, table and pies all line up */
.account .col-md-9 > .row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 16px;
}
.account .col-md-9 > .row > [class*="col-"] {
  padding: 0;
  margin: 0;
  float: none;
  flex: 1 1 100%;
  max-width: 100%;
  min-width: 0;
}
.account .col-md-9 > .row > .col-md-6 {
  flex: 1 1 calc(50% - 8px);
  max-width: calc(50% - 8px);
}
.account .col-md-9 > .row > [class*="col-"] > .panel { margin-bottom: 0; }
.account .col-md-9 > .row > [class*="col-"] > br { display: none; }
@media (max-width: 880px) {
  .account .col-md-9 > .row > .col-md-6 { flex-basis: 100%; max-width: 100%; }
}

.account h1, .account h2, .account h3, .account h4 {
  color: var(--fh-white);
  font-family: var(--fh-font);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.account h1 { font-size: clamp(22px, 3vw, 30px); }
.account h1 i, .account h2 i, .account h3 i { color: var(--fh-green); }
.account hr { border-top: 1px solid rgba(150, 195, 170, .12); }
.account p, .account span, .account label, .account td, .account th, .account li, .account small { color: var(--fh-nav); }
.account a { color: var(--fh-green); text-decoration: none; }
.account a:hover { color: #34a065; }
.account a:focus, .account button:focus { outline: none; }

/* ---- sidebar ---- */
.account .sidebar-profile { background: #0f1512 !important; border: 1px solid rgba(150, 195, 170, .1); border-radius: 12px; padding: 16px; }
.account .profile-img { border: 2px solid rgba(150, 195, 170, .25); }
.account .list-group { border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.account .list-group-item {
  background: #0f1512;
  border-color: rgba(150, 195, 170, .08);
  color: var(--fh-nav);
}
.account .list-group-item:hover,
.account .list-group-item.active,
.account .list-group-item.active:hover {
  background: rgba(40, 131, 82, .16);
  border-color: rgba(40, 131, 82, .3);
  color: var(--fh-white);
}
.account .list-group-item i { color: var(--fh-green); }
.account .list-group-item.active i, .account .list-group-item:hover i { color: var(--fh-white); }

/* ---- panels / cards ---- */
.account .panel,
.account .card,
.account .well {
  background: #0f1512;
  border: 1px solid rgba(150, 195, 170, .1);
  border-radius: 16px;
  box-shadow: none;
  color: var(--fh-nav);
}
.account .panel-heading {
  background: rgba(255, 255, 255, .02);
  border-bottom: 1px solid rgba(150, 195, 170, .1);
  color: var(--fh-white);
  border-radius: 16px 16px 0 0;
  padding: 14px 18px;
}
.account .panel-title { color: var(--fh-white); font-weight: 700; }
.account .panel-body { color: var(--fh-nav); }
.account .panel-footer {
  background: rgba(255, 255, 255, .02);
  border-top: 1px solid rgba(150, 195, 170, .1);
  color: var(--fh-muted);
  border-radius: 0 0 16px 16px;
}
.account .huge { font-size: 34px; font-weight: 800; color: var(--fh-white); }

/* modern KPI stat cards — only the small panels that contain a .huge value
   (no coloured top line; clean number + faded icon, earnings card highlighted) */
.account .panel:has(.huge) {
  border-radius: 16px;
  border: 1px solid rgba(150, 195, 170, .1);
  min-height: 128px;
  overflow: hidden;
}
.account .panel:has(.huge) .panel-heading {
  background: transparent;
  border: none;
  padding: 22px 24px;
  border-radius: 16px;
}
.account .panel:has(.huge) .huge {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fh-white);
  line-height: 1.05;
}
.account .panel:has(.huge) .panel-heading .col-xs-9 > div:last-child {
  color: var(--fh-muted);
  font-size: 13px;
  font-weight: 500;
  margin-top: 5px;
}
.account .panel:has(.huge) .fa-4x { font-size: 2.6em; opacity: .15; color: var(--fh-white); }

/* highlighted earnings card (the green-filled one, like the accent card in the ref) */
.account .panel-success:has(.huge) {
  background: linear-gradient(135deg, #298754 0%, #175231 100%);
  border-color: transparent;
}
.account .panel-success:has(.huge) .huge,
.account .panel-success:has(.huge) .panel-heading div { color: #eafff3; }
.account .panel-success:has(.huge) .fa-4x { color: #eafff3; opacity: .3; }

/* ---- buttons ---- */
.account .btn { border-radius: 8px; font-weight: 600; border: none; }
.account .btn-primary,
.account .btn-secondary,
.account .btn-success {
  background: var(--fh-btn-grad);
  color: #fff;
  transition: background .18s ease, transform .12s ease;
}
.account .btn-primary:hover,   .account .btn-primary:focus,
.account .btn-secondary:hover, .account .btn-secondary:focus,
.account .btn-success:hover,   .account .btn-success:focus {
  background: var(--fh-btn-grad-hover); color: #fff; transform: translateY(-1px);
}
.account .btn-danger  { background: #c70039; color: #fff; }
.account .btn-danger:hover,  .account .btn-danger:focus  { background: #e0184c; color: #fff; }
.account .btn-warning { background: #d9a441; color: #1a1205; }
.account .btn-warning:hover, .account .btn-warning:focus { background: #e7b855; color: #1a1205; }
.account .btn:focus-visible { outline: 2px solid var(--fh-green); outline-offset: 2px; }

/* ---- forms ---- */
.account .form-control {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(150, 195, 170, .18);
  color: var(--fh-white);
  border-radius: 8px;
  box-shadow: none;
}
.account .form-control::placeholder { color: var(--fh-muted); }
.account .form-control:focus {
  background: rgba(255, 255, 255, .06);
  border-color: var(--fh-green);
  box-shadow: 0 0 0 3px rgba(40, 131, 82, .22);
  color: var(--fh-white);
}
.account select.form-control,
.account select.form-control option { background: #0f1512; color: var(--fh-white); }
.account textarea.form-control { resize: vertical; }
.account input[type="checkbox"], .account input[type="radio"] { accent-color: var(--fh-green); }
.account .input-group-addon {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(150, 195, 170, .18);
  color: var(--fh-muted);
}

/* ---- tables ---- */
.account .table { color: var(--fh-nav); }
.account .table > thead > tr > th {
  color: var(--fh-white);
  border-bottom: 2px solid rgba(150, 195, 170, .14);
}
.account .table > tbody > tr > td,
.account .table > tbody > tr > th { border-top: 1px solid rgba(150, 195, 170, .08); }
.account .table-striped > tbody > tr:nth-of-type(odd) { background: rgba(255, 255, 255, .02); }
.account .table-hover > tbody > tr:hover { background: rgba(40, 131, 82, .1); }

/* ---- badges / labels ---- */
.account .badge { border-radius: 6px; font-weight: 600; }
.account .badge-success { background: #2f9c61; color: #fff; }
.account .badge-danger  { background: #c70039; color: #fff; }
.account .badge-primary { background: #3b8fd8; color: #fff; }

/* ---- tabs ---- */
.account .nav-tabs { border-bottom: 1px solid rgba(150, 195, 170, .14); }
.account .nav-tabs > li > a { color: var(--fh-muted); border: none; border-radius: 8px 8px 0 0; }
.account .nav-tabs > li > a:hover { background: rgba(255, 255, 255, .04); color: var(--fh-white); border: none; }
.account .nav-tabs > li.active > a,
.account .nav-tabs > li.active > a:hover,
.account .nav-tabs > li.active > a:focus {
  background: #0f1512;
  color: var(--fh-white);
  border: 1px solid rgba(150, 195, 170, .14);
  border-bottom-color: transparent;
}
.account .tab-content { padding-top: 18px; }

/* ---- alerts ---- */
.account .alert { border-radius: 10px; border: 1px solid transparent; }
.account .alert-info    { background: rgba(40, 131, 82, .14); border-color: rgba(40, 131, 82, .3); color: #c7f0d6; }
.account .alert-success { background: rgba(40, 131, 82, .16); border-color: rgba(40, 131, 82, .35); color: #c7f0d6; }
.account .alert-warning { background: rgba(199, 160, 0, .14); border-color: rgba(199, 160, 0, .3); color: #f0e2b0; }
.account .alert-danger  { background: rgba(199, 0, 57, .14); border-color: rgba(199, 0, 57, .3); color: #f5b8c6; }

/* ---- pagination ---- */
.account .pagination > li > a,
.account .pagination > li > span {
  background: #0f1512;
  border-color: rgba(150, 195, 170, .12);
  color: var(--fh-nav);
}
.account .pagination > li > a:hover { background: rgba(40, 131, 82, .16); color: var(--fh-white); }
.account .pagination > .active > a,
.account .pagination > .active > span,
.account .pagination > .active > a:hover {
  background: var(--fh-btn-grad);
  border-color: transparent;
  color: #fff;
}

/* ---- misc ---- */
.account .progress { background: rgba(255, 255, 255, .06); }
.account pre, .account code {
  background: #0a0e0c;
  border: 1px solid rgba(150, 195, 170, .12);
  color: #cfe7da;
  border-radius: 8px;
}

/* sidebar nav rounded items + prominent active state (reference style) */
.account .list-group { background: transparent; border: none; }
.account .list-group-item {
  border-radius: 12px !important;
  margin-bottom: 6px;
  border: 1px solid rgba(150, 195, 170, .08);
  font-weight: 500;
}
.account .list-group-item.active,
.account .list-group-item.active:hover,
.account .list-group-item.active:focus {
  background: var(--fh-btn-grad);
  border-color: transparent;
  color: #fff;
}
.account .list-group-item.active i { color: #fff; }
.account .sidebar-profile { margin-bottom: 14px; }

/* =========================================================
   Dashboard neutral palette
   main bg #0a0a0a · cards #1a1a1a · outline #262626
   (sidebar + top bar share the main bg, no outlines)
   ========================================================= */
body:has(.account) { background: #0a0a0a; }

.account .dash-rail { background: #0a0a0a; border-right: none; }
.dash-topnav { background: #0a0a0a; border-bottom: none; }

/* rail logo: no tile behind the favicon */
.account .dash-rail__logo img { background: none; padding: 0; border-radius: 8px; }

/* selected sidebar item: white pill, icon in the main bg colour */
.account .dash-rail__ic.active { background: #ffffff; color: #0a0a0a; }

/* card surfaces */
.account .panel,
.account .card,
.account .well,
.account .dash-stat:not(.dash-stat--hl),
.account select.form-control option,
.account .pagination > li > a,
.account .pagination > li > span,
.dash-topnav__user .dropdown-menu { background: #1a1a1a; }
/* the select itself carries the rounded background; keep the wrapper transparent
   so no square box pokes out behind the pill's rounded corners */
.account .dash-filter { background: transparent; }

/* outlines / dividers */
.account .panel,
.account .card,
.account .well,
.account .dash-stat:not(.dash-stat--hl),
.account .dash-filter,
.account .dash-stat__icon,
.account hr,
.account .panel-heading,
.account .panel-footer,
.account .pagination > li > a,
.account .pagination > li > span,
.account .table > tbody > tr > td,
.account .table > tbody > tr > th,
.account .form-control,
.account .input-group-addon,
.dash-topnav__user .dropdown-menu,
.account pre, .account code { border-color: #262626; }
.account .panel-heading { border-bottom-color: #262626; }
.account .panel-footer { border-top-color: #262626; }
.account .nav-tabs,
.account .table > thead > tr > th { border-bottom-color: #262626; }

/* tooltip on the neutral palette */
.account .dash-rail__ic::after,
.account .dash-rail__logo::after { background: #1a1a1a; border-color: #262626; }

/* SVG icons: rail (sized via attr) + dropdown menu items */
.account .dash-rail__ic svg { display: block; }
.dd-ic { width: 16px; height: 16px; vertical-align: -3px; margin-right: 7px; flex-shrink: 0; }

/* =========================================================
   Go / redirect page — match the dark site theme.
   go_header.php loads frontend-hero.css and tags <body class="go-page">.
   ========================================================= */
.go-page {
  background: var(--fh-bg);
  color: var(--fh-white);
  font-family: var(--fh-font);
  min-height: 100vh;
}
.go-page > section {
  display: block;
  margin: 0;
  padding: 30px 0 60px;
}
.go-page .container { max-width: 1040px; }

/* main redirect card — square, no header, no shadow */
.go-page .panel.panel-default {
  background: #0f1512;
  border: 1px solid rgba(150, 195, 170, .1);
  border-radius: 0;
  box-shadow: none;
  margin-top: 18px;
}
.go-page .panel.panel-default > .panel-heading { display: none; }
.go-page .panel.panel-default > .panel-body { padding: 26px 24px 30px; }

/* content box: About (left) | action with timer + button (right) */
.go-page .go-box {
  display: flex;
  gap: 28px;
  text-align: left;
  align-items: stretch;
  margin: 4px 0;
}
.go-page .go-box__about { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; }
.go-page .go-box__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.go-page .go-box__list li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 18px;
  color: var(--fh-nav);
  font-size: 13px;
  line-height: 1.5;
}
.go-page .go-box__list li:last-child { margin-bottom: 0; }
.go-page .go-box__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fh-green);
}

.go-page .go-box__action {
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding-left: 28px;
  border-left: 1px solid rgba(150, 195, 170, .12);
}
.go-page .go-box__ready {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--fh-white);
}
/* timer: plain counting-down text — no circle, no background */
.go-page .go-timer { line-height: 1; }
.go-page .countdown-circle {
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  font-size: 58px;
  font-weight: 800;
  line-height: 1;
  color: var(--fh-green);
}
.go-page .go-box__action form { margin: 0; width: 100%; }
.go-page .go-box__action .form-group { margin: 0 0 14px; display: flex; justify-content: center; }
.go-page .go-box__action .btn-primary { width: 100%; }

@media (max-width: 768px) {
  .go-page .go-box { flex-direction: column; gap: 22px; }
  .go-page .go-box__action {
    flex: 0 0 auto;
    width: 100%;
    padding-left: 0;
    padding-top: 22px;
    border-left: none;
    border-top: 1px solid rgba(150, 195, 170, .12);
  }
}

/* primary buttons (go button + the continue link) — plain, flat, square */
.go-page .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #298754;
  border: none;
  border-radius: 0;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 32px;
  box-shadow: none;
  transition: background .15s ease;
}
.go-page .btn-primary:hover,
.go-page .btn-primary:focus,
.go-page .btn-primary:active {
  color: #fff;
  background: #2f9c61;
  box-shadow: none;
}
.go-page #go-button.disabled,
.go-page .btn-primary.disabled {
  background: #1a2520;
  color: var(--fh-muted);
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
}

/* recaptcha widget centered */
.go-page .recaptcha1 { display: inline-block; margin: 4px auto 14px; }
.go-page #recaptcha1 { display: flex; justify-content: center; }

/* recent / random link cards */
.go-page .panel.panel-success,
.go-page .panel.panel-info {
  background: #0c1310;
  border: 1px solid rgba(150, 195, 170, .1);
  border-radius: 0;
  margin-top: 18px;
}
.go-page .panel.panel-success > .panel-heading,
.go-page .panel.panel-info > .panel-heading {
  background: transparent;
  border-bottom: 1px solid rgba(150, 195, 170, .08);
  padding: 14px 16px;
}
.go-page .panel-success .panel-title,
.go-page .panel-info .panel-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--fh-white);
}
.go-page .panel-success .panel-title i,
.go-page .panel-info .panel-title i { color: var(--fh-green); }
.go-page .list-group { margin: 0; border-radius: 0; }
.go-page .list-group-item {
  background: transparent;
  border: none;
  border-top: 1px solid rgba(150, 195, 170, .07);
  padding: 11px 16px;
}
.go-page .list-group-item:first-child { border-top: none; }
.go-page .list-group-item i { color: var(--fh-muted); }
.go-page .list-group-item a { color: var(--fh-nav); text-decoration: none; }
.go-page .list-group-item a:hover { color: var(--fh-green); }

/* flash messages + footer flush on the dark canvas */
.go-page .alert { border-radius: 12px; }
.go-page .site-footer { margin-top: 0; }
