/* ==========================================================================
   Hexaro — Reference design layer (cashhut.net-inspired)
   Loaded AFTER theme.css. Refines the visual system and introduces the
   sidebar application shell. All values mirror the reference's Tailwind /
   shadcn token set (dark navy #0d0e1d + gold #ffbe4d, radius 0.75rem).
   ========================================================================== */

:root,
[data-bs-theme="dark"] {
  --ref-bg: #0d0e1d;
  --ref-fg: #a9a9ca;
  --ref-mut: #94a3b8;
  --ref-dim: #595b80;
  --ref-pri: #ffbe4d;
  --ref-pri-hover: #ffb22c;
  --ref-pri-fg: #1f2937;
  --ref-card: #1d1e31;
  --ref-secondary: #33334c;
  --ref-secondary-hover: #2e2e44;
  --ref-border: #17182a;
  --ref-input: #1f2937;
  --ref-radius: 12px;
  --ref-radius-sm: 8px;
  --ref-header-h: 72px;
  --ref-side-w: 250px;
  --ref-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ref-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ---------- Base ---------- */
html {
  scrolling-padding-top: var(--ref-header-h);
}

body {
  background-image: none;
  background-color: var(--ref-bg);
  color: var(--ref-fg);
  font-family: var(--ref-font);
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.015em;
}

a {
  color: var(--ref-pri);
  text-decoration: none;
}

a:hover {
  color: var(--ref-pri-hover);
}

/* ---------- Inline SVG icons (Lucide; replaces Font Awesome) ---------- */
.ic {
  width: 1em;
  height: 1em;
  flex: none;
  display: inline-block;
  vertical-align: -0.125em;
}

::selection {
  background: rgba(255, 190, 77, 0.3);
  color: #fff;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: var(--ref-bg);
}

::-webkit-scrollbar-thumb {
  background: #2a2b45;
  border-radius: 999px;
  border: 2px solid var(--ref-bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ref-secondary);
}

:focus-visible {
  outline: 2px solid var(--ref-pri);
  outline-offset: 2px;
}

/* ---------- Flatten decorative backgrounds of the previous theme ---------- */
.premium-bg::before,
.grid-bg::after,
.counter-card::before,
.hero-card::before,
.modal-content::before {
  display: none !important;
}

.orb,
.float-particles,
.hero-glow {
  display: none !important;
}

.grad-animate {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--ref-pri) !important;
  animation: none !important;
}

/* ==========================================================================
   WebGL background — Three.js "professional shapes"
   A fixed, decorative layer behind all content. The only moving parts are a
   handful of wireframe solids rendered by one Three.js WebGL canvas
   (js/background3d.js), so the animation runs on the GPU instead of the main
   thread. The gradient wash and the floor grid are painted once and never
   repainted, so they cost nothing per frame; they also act as the fallback
   when WebGL is unavailable (the script simply hides the canvas).

   The layer is aria-hidden and pointer-events:none. The scene stops animating
   (single static frame) for users who prefer reduced motion and on software
   renderers, so it never burns CPU on a machine without GPU acceleration.
   ========================================================================== */
.ref-bg3d {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  contain: paint;
  background:
    radial-gradient(1100px 700px at 80% -10%, rgba(255, 190, 77, 0.10), transparent 60%),
    radial-gradient(900px 640px at 6% 108%, rgba(124, 131, 255, 0.14), transparent 62%),
    linear-gradient(180deg, #0d0e1d 0%, #0b0c18 58%, #090a14 100%);
}

/* Static receding perspective floor — painted once, no animation. */
.ref-bg3d .ref-grid {
  position: absolute;
  left: -45%;
  right: -45%;
  bottom: -160px;
  height: calc(58vh + 160px);
  z-index: 0;
  opacity: 0.45;
  transform: perspective(480px) rotateX(74deg);
  transform-origin: bottom center;
  background-image:
    linear-gradient(rgba(255, 190, 77, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 190, 77, 0.13) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 80%);
  mask-image: linear-gradient(to top, #000 0%, transparent 80%);
}

/* The Three.js canvas sits above the wash and floor. */
.ref-bg3d canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* In-flow variant: scoped inside a positioned section (e.g. the home hero) so
   the shapes render only within that section instead of behind the whole
   page. The section supplies the stacking context; content sits above. */
.ref-bg3d--inline {
  position: absolute;
  z-index: 0;
}

/* ==========================================================================
   Application shell — top header + fixed sidebar + mobile bottom nav
   ========================================================================== */

.ref-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--ref-header-h);
  z-index: 1035;
  background: #12131f;
  border-bottom: 1px solid var(--ref-border);
  padding-top: env(safe-area-inset-top);
}

.ref-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 clamp(12px, 2vw, 24px);
}

.ref-burger {
  width: 40px;
  height: 40px;
  border: 1px solid var(--ref-border);
  background: var(--ref-secondary);
  border-radius: var(--ref-radius-sm);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  flex: 0 0 auto;
}

@media (min-width: 1024px) {
  .ref-burger {
    display: none;
  }
}

.ref-burger span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 99px;
  background: #fff;
}

.ref-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  min-width: 0;
}

.ref-brand:hover {
  color: #fff;
}

.ref-brand img {
  height: 34px;
  width: auto;
}

.ref-brand span {
  font-size: 19px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 42vw;
}

.ref-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ref-coinbadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ref-input);
  color: var(--ref-pri);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--ref-radius-sm);
  padding: 9px 12px;
  white-space: nowrap;
}

.ref-coinbadge .ic {
  font-size: 13px;
}

.ref-coinbadge .eq {
  color: #fff;
}

.ref-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--ref-radius-sm);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.ref-btn .ic {
  font-size: 15px;
}

.ref-btn-primary {
  background: var(--ref-pri);
  color: var(--ref-pri-fg);
}

.ref-btn-primary:hover {
  background: var(--ref-pri-hover);
  color: var(--ref-pri-fg);
}

.ref-btn-secondary {
  background: var(--ref-secondary);
  color: #fff;
}

.ref-btn-secondary:hover {
  background: var(--ref-secondary-hover);
  color: #fff;
}

/* Wallet pill (authenticated) */
.ref-wallet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ref-secondary);
  border: 1px solid var(--ref-border);
  color: #fff;
  border-radius: var(--ref-radius-sm);
  padding: 8px 12px;
  font-weight: 700;
  font-size: 14px;
  transition: border-color 0.18s ease;
}

.ref-wallet:hover {
  border-color: var(--ref-pri);
  color: #fff;
}

.ref-wallet .ic {
  color: var(--ref-pri);
}

.ref-wallet .coin-img {
  width: 18px;
  height: 18px;
}

.ref-wallet.dropdown-toggle::after {
  display: none;
}

/* Sidebar */
.ref-sidebar {
  position: fixed;
  top: var(--ref-header-h);
  bottom: 0;
  left: 0;
  width: var(--ref-side-w);
  background: var(--ref-card);
  border-right: 1px solid var(--ref-border);
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 10px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1030;
}

@media (min-width: 1024px) {
  .ref-sidebar {
    display: flex;
  }
}

.ref-side-links {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ref-side-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--ref-radius-sm);
  color: var(--ref-fg);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.ref-side-links a svg {
    height: 25px;
    width: 25px;
}

.ref-side-links a .ic {
  width: 22px;
  text-align: center;
  font-size: 18px;
  color: var(--ref-mut);
  transition: transform 0.45s ease, color 0.18s ease;
}

.ref-side-links a:hover {
  background: var(--ref-secondary);
  color: #fff;
}

.ref-side-links a:hover .ic {
  color: var(--ref-pri);
  transform: rotate(360deg);
}

.ref-side-links a.active {
  color: var(--ref-pri);
  background: rgba(255, 190, 77, 0.1);
}

.ref-side-links a.active .ic {
  color: var(--ref-pri);
}

.ref-side-foot {
  padding-top: 18px;
}

.ref-side-foot a {
  display: block;
  padding: 5px 14px;
  color: var(--ref-dim);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s ease;
}

.ref-side-foot a:hover {
  color: var(--ref-fg);
}

.ref-side-sep {
  border: 0;
  border-top: 1.5px solid rgba(13, 14, 29, 0.75);
  margin: 16px 14px;
}

.ref-side-social {
  display: flex;
  justify-content: space-between;
  padding: 0 14px;
}

.ref-side-social a {
  color: var(--ref-mut);
  font-size: 17px;
  transition: color 0.18s ease;
}

.ref-side-social a:hover {
  color: var(--ref-pri);
}

/* Content offsets */
.ref-content {
  padding-top: var(--ref-header-h);
  min-height: 100vh;
}

@media (min-width: 1024px) {
  .ref-content {
    padding-left: var(--ref-side-w);
  }
}

@media (max-width: 1023.98px) {
  .ref-content {
    padding-bottom: 40px;
  }
}

/* Mobile bottom navigation */
.ref-mobnav {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1032;
  background: var(--ref-card);
  border-top: 1px solid var(--ref-border);
  padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 1024px) {
  .ref-mobnav {
    display: none;
  }
}

.ref-mobnav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 4px 7px;
  color: var(--ref-dim);
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 600;
}

.ref-mobnav a .ic {
  font-size: 18px;
}

.ref-mobnav a.active,
.ref-mobnav a.active .ic {
  color: var(--ref-pri);
}

/* Page container rhythm inside the shell */
.ref-content .main {
  padding: 0;
}

.ref-content .container {
  max-width: 1200px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  border-radius: var(--ref-radius-sm);
  font-weight: 700;
}

.btn-grad,
.btn.sign,
.btn-primary,
.btn-sign {
  background: var(--ref-pri) !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  color: var(--ref-pri-fg) !important;
  box-shadow: none !important;
}

.btn-grad:hover,
.btn-primary:hover,
.btn-sign:hover {
  background: var(--ref-pri-hover) !important;
  color: var(--ref-pri-fg) !important;
  filter: none !important;
}

.btn-ghost,
.btn-outline-light,
.btn-login {
  background: var(--ref-secondary) !important;
  border: 1px solid transparent !important;
  color: #fff !important;
}

.btn-ghost:hover,
.btn-outline-light:hover,
.btn-login:hover {
  background: var(--ref-secondary-hover) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.btn-anim:hover,
.btn-anim:active {
  transform: none;
}

.btn-grad.btn-anim,
.btn-sign.btn-anim,
.btn-primary.btn-anim,
.btn-grad.btn-anim:hover {
  box-shadow: none !important;
}

/* ==========================================================================
   Cards & surfaces
   ========================================================================== */
.card,
.ow-card,
.offer-card,
.mission-card,
.counter-card,
.stat-premium,
.hero-card,
.rew-card,
.mission,
.box,
.tile-card,
.ref-card {
  background: var(--ref-card) !important;
  border: 1px solid var(--ref-border) !important;
  border-radius: var(--ref-radius) !important;
  box-shadow: none !important;
}

.lift:hover,
.card-elev:hover,
.ow-card:hover,
.offer-card:hover,
.rew-card:hover,
.mission-card:hover,
.counter-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ref-shadow) !important;
  border-color: rgba(255, 190, 77, 0.4) !important;
}

.shine::after {
  display: none;
}

/* ==========================================================================
   Offerwall / survey tiles — image-first cards
   The whole card is the provider logo; the border carries the provider's
   brand colour and the name / rating / play action appear on hover.
   ========================================================================== */
.owtile {
  position: relative;
  display: block;
  /* width: 100%; */
  height: 210px;
  /* aspect-ratio: 1 / 1; */
  background-color: #ffffff;
  background-image: linear-gradient(180deg,
      color-mix(in srgb, var(--ow, #6b7280) 16%, #ffffff),
      #ffffff 60%);
  border: 2px solid var(--ow, var(--ref-border));
  border-radius: var(--ref-radius);
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.owtile:hover,
.owtile:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--ow, #6b7280) 74%, #ffffff);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5),
    0 0 0 4px color-mix(in srgb, var(--ow, #6b7280) 26%, transparent);
  outline: none;
}

.owtile-media {
  /* position: absolute; */
  inset: 0;
  z-index: 0;
  /* display: grid; */
  /* place-items: center; */
  /* padding: 4px; */
  height: 100%;
}

.owtile-media img {
  /* max-width: 100%; */
  /* max-height: 100%; */
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(15, 17, 32, 0.12));
  border-radius: 8px;
}

.owtile-media svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 22%;
}

.owtile-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  background: linear-gradient(to top,
      rgba(7, 8, 16, 0.94) 0%,
      rgba(7, 8, 16, 0.72) 30%,
      rgba(7, 8, 16, 0.18) 58%,
      rgba(7, 8, 16, 0) 78%);
  transition: opacity 0.24s ease;
}

.owtile-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 14px 16px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.owtile:hover .owtile-veil,
.owtile:hover .owtile-overlay,
.owtile:focus-visible .owtile-veil,
.owtile:focus-visible .owtile-overlay {
  opacity: 1;
}

.owtile:hover .owtile-overlay,
.owtile:focus-visible .owtile-overlay {
  transform: translateY(0);
}

.owtile-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #0a0c15;
  background: var(--ow, #ffbe4d);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--ow, #ffbe4d) 45%, transparent);
}

.owtile-play .ic {
  width: 18px;
  height: 18px;
}

.owtile-name {
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  color: #fff;
}

.owtile-rate {
  display: inline-flex;
  gap: 3px;
  color: #fbbf24;
}

.owtile-rate .ic {
  width: 14px;
  height: 14px;
  opacity: 0.3;
}

.owtile-rate .ic.is-on {
  opacity: 1;
}

/* Touch devices can't hover — keep the details visible. */
@media (hover: none) {
  .owtile-veil,
  .owtile-overlay {
    opacity: 1;
  }

  .owtile-overlay {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .owtile,
  .owtile-veil,
  .owtile-overlay {
    transition: none;
  }
}

/* Section headings */
.sec {
  padding: 34px 0;
}

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.sec-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.sec-head h2 .ic {
  color: var(--ref-pri);
}

.sec-link {
  color: var(--ref-mut);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.18s ease;
}

.sec-link:hover {
  color: var(--ref-pri);
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  border: 1px solid transparent;
}

.tag-game {
  background: rgba(255, 190, 77, 0.14);
  color: var(--ref-pri);
}

.tag-app {
  background: rgba(77, 227, 255, 0.14);
  color: #4de3ff;
}

.tag-survey {
  background: rgba(167, 139, 250, 0.16);
  color: #b7a4fb;
}

.tag-plain {
  background: var(--ref-secondary);
  color: var(--ref-mut);
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-control,
.form-select,
.input-group-text {
  background-color: var(--ref-input) !important;
  border: 1px solid var(--ref-border) !important;
  color: #fff !important;
  border-radius: 10px !important;
}

.form-control::placeholder {
  color: var(--ref-dim);
}

.form-control:focus,
.form-select:focus {
  background-color: var(--ref-input) !important;
  border-color: var(--ref-pri) !important;
  box-shadow: 0 0 0 3px rgba(255, 190, 77, 0.2) !important;
  color: #fff !important;
}

.form-label {
  color: var(--ref-fg);
  font-weight: 600;
  font-size: 14px;
}

.form-check-input {
  background-color: var(--ref-input);
  border-color: var(--ref-border);
}

.form-check-input:checked {
  background-color: var(--ref-pri);
  border-color: var(--ref-pri);
}

/* ==========================================================================
   Navigation surfaces (dropdowns, drawer, pills, tabs, modals)
   ========================================================================== */
.dropdown-menu {
  background: var(--ref-card);
  border: 1px solid var(--ref-border);
  border-radius: var(--ref-radius);
  box-shadow: var(--ref-shadow);
  padding: 6px;
}

.dropdown-item {
  color: var(--ref-fg);
  border-radius: var(--ref-radius-sm);
  font-weight: 500;
  padding: 9px 12px;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--ref-secondary);
  color: #fff;
}

.dropdown-divider {
  border-color: var(--ref-border);
}

.offcanvas {
  background: var(--ref-card);
  color: var(--ref-fg);
}

.offcanvas-header {
  border-bottom: 1px solid var(--ref-border);
}

.modal-content {
  background: var(--ref-card);
  border: 1px solid var(--ref-border);
  border-radius: var(--ref-radius);
  box-shadow: var(--ref-shadow);
}

.modal-header {
  border-bottom: 1px solid var(--ref-border);
}

.modal-footer {
  border-top: 1px solid var(--ref-border);
}

.nav-pills .nav-link {
  color: var(--ref-mut);
  border-radius: var(--ref-radius-sm);
  font-weight: 600;
}

.nav-pills .nav-link.active {
  background: var(--ref-pri) !important;
  background-image: none !important;
  color: var(--ref-pri-fg) !important;
  box-shadow: none !important;
}

.nav-tabs {
  border-bottom-color: var(--ref-border);
}

.nav-tabs .nav-link {
  color: var(--ref-mut);
  border: 0;
  font-weight: 600;
}

.nav-tabs .nav-link.active {
  background: transparent;
  color: var(--ref-pri);
  border-bottom: 2px solid var(--ref-pri);
}

/* ==========================================================================
   Tables, badges, alerts, accordion, progress
   ========================================================================== */
.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--ref-fg);
  --bs-table-border-color: var(--ref-border);
  color: var(--ref-fg);
}

.table thead th {
  color: var(--ref-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  border-bottom: 1px solid var(--ref-border);
}

.table > :not(caption) > * > * {
  border-color: var(--ref-border);
}

.badge.bg-primary,
.badge.text-bg-primary {
  background: var(--ref-pri) !important;
  color: var(--ref-pri-fg) !important;
}

.alert {
  border-radius: var(--ref-radius);
  border: 1px solid var(--ref-border);
  background: var(--ref-card);
  color: var(--ref-fg);
}

.alert-success {
  border-color: rgba(11, 243, 168, 0.35);
}

.alert-danger {
  border-color: rgba(240, 82, 82, 0.4);
}

.alert-warning {
  border-color: rgba(255, 181, 71, 0.4);
}

.accordion-item {
  background: var(--ref-card);
  border: 1px solid var(--ref-border);
  border-radius: var(--ref-radius) !important;
  overflow: hidden;
}

.accordion-button {
  background: var(--ref-card);
  color: #fff;
  font-weight: 600;
  border-radius: 0 !important;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  background: rgba(255, 190, 77, 0.08);
  color: var(--ref-pri);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--ref-border);
}

.accordion-button::after {
  filter: invert(1) sepia(1) saturate(4) hue-rotate(5deg);
}

.progress {
  background-color: var(--ref-input);
  border-radius: 999px;
}

.progress-bar {
  background-color: var(--ref-pri);
}

/* ==========================================================================
   Hero — scoped Three.js background, centred copy, viewport min-height
   ========================================================================== */
.ref-hero-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--ref-header-h));
  padding: 64px 0;
}

.ref-hero-section > .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.ref-hero {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 0;
}

@media (max-width: 991.98px) {
  .ref-hero-section {
    min-height: calc(100svh - var(--ref-header-h));
    padding: 44px 0;
  }
}

.ref-hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.025em;
  margin: 18px 0 16px;
}

.ref-type {
  color: var(--ref-pri);
  text-transform: uppercase;
  font-weight: 800;
}

.ref-type::after {
  content: "|";
  display: inline-block;
  margin-left: 2px;
  animation: refCaret 1.1s step-start infinite;
}

@media (prefers-reduced-motion: reduce) {
  .ref-type::after {
    animation: none;
    opacity: 0.55;
  }
}

@keyframes refCaret {
  50% {
    opacity: 0;
  }
}

.ref-hero-lead {
  color: var(--ref-mut);
  font-size: 17px;
  line-height: 1.7;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.ref-hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 26px;
}

.ref-hero-trust {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
  color: var(--ref-mut);
  font-size: 13.5px;
}

.ref-hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ref-hero-trust .ic {
  color: var(--ref-pri);
}

/* Feature rows */
.ref-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  padding: 34px 0;
}

@media (max-width: 991.98px) {
  .ref-feature {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.ref-feature-panel {
  background: linear-gradient(150deg, var(--ref-card), #14152a);
  border: 1px solid var(--ref-border);
  border-radius: var(--ref-radius);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ref-feature-panel .ic {
  font-size: 74px;
  color: var(--ref-pri);
  opacity: 0.92;
  filter: drop-shadow(0 14px 30px rgba(255, 190, 77, 0.25));
}

.ref-feature h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
}

.ref-feature p {
  color: var(--ref-mut);
  line-height: 1.75;
  font-size: 15.5px;
}

.ref-feature ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.ref-feature ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ref-fg);
  font-size: 14.5px;
}

.ref-feature ul li .ic {
  color: var(--ref-pri);
  margin-top: 3px;
}

.ref-feature.reverse .ref-feature-panel {
  order: 2;
}

@media (max-width: 991.98px) {
  .ref-feature.reverse .ref-feature-panel {
    order: 0;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--ref-card);
  border-top: 1px solid var(--ref-border);
  padding: 44px 0 22px;
  margin-top: 24px;
}

.footer h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.footer .f-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
}

.footer .f-brand img {
  height: 34px;
}

.footer .f-l {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ref-mut);
  font-size: 14px;
  padding: 5px 0;
  text-decoration: none;
}

.footer .f-l:hover {
  color: var(--ref-pri);
}

.footer .fd {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ref-dim);
  flex: 0 0 auto;
}

.footer .f-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer .f-social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ref-radius-sm);
  background: var(--ref-secondary);
  color: var(--ref-fg);
  font-size: 16px;
  transition: background 0.18s ease, color 0.18s ease;
}

.footer .f-social a svg {
    height: 30px;
    width: 30px;
}

.footer .f-social a:hover {
  background: var(--ref-pri);
  color: var(--ref-pri-fg);
  transform: none;
}

.footer .f-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--ref-border);
  margin-top: 30px;
  padding-top: 18px;
  color: var(--ref-dim);
  font-size: 13px;
}

/* ==========================================================================
   Toast, cookie, back-to-top
   ========================================================================== */
.hex-toasts {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hex-toast {
  background: var(--ref-card);
  border: 1px solid var(--ref-border);
  color: #fff;
  border-radius: var(--ref-radius);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  box-shadow: var(--ref-shadow);
  font-size: 14px;
  font-weight: 500;
}

.hex-toast .t-ic {
  font-size: 17px;
}

.hex-toast.success .t-ic {
  color: #0bf3a8;
}

.hex-toast.error .t-ic {
  color: #f05252;
}

.cookie {
  position: fixed;
  left: 18px;
  bottom: 18px;
  max-width: 360px;
  background: var(--ref-card);
  border: 1px solid var(--ref-border);
  border-radius: var(--ref-radius);
  padding: 18px;
  box-shadow: var(--ref-shadow);
  z-index: 1070;
  transform: translateY(140%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie.show {
  transform: translateY(0);
}

.cookie h5 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.cookie p {
  color: var(--ref-mut);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 12px;
}

@media (max-width: 1023.98px) {
  .cookie {
    left: 12px;
    right: 12px;
    bottom: 84px;
    max-width: none;
  }

  .hex-toasts {
    right: 12px;
    left: 12px;
    bottom: 84px;
  }
}

.go-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: var(--ref-radius-sm);
  background: var(--ref-pri);
  color: var(--ref-pri-fg);
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1060;
}

.go-top.show {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1023.98px) {
  .go-top {
    bottom: 84px;
  }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--ref-pri);
  z-index: 1060;
}

/* ==========================================================================
   Utility
   ========================================================================== */
.u-text-pri {
  color: var(--ref-pri) !important;
}

.u-text-dim {
  color: var(--ref-dim) !important;
}

.u-text-mut {
  color: var(--ref-mut) !important;
}

.divider {
  border-color: var(--ref-border) !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
