/* ============================================================
   KTX BANK homepage (/web3/) — polish pass v5 (2026-11-27)
   Loaded LAST (end of <body>) so it beats ui-refresh-v2/v3/v4 and ksmart-home.css.
   1) One palette: warm black / cream + gold, green only for profit, no leftover
      cyan / violet / blue from the old navy theme.
   2) One body font (DM Sans) + Orbitron for big numbers only (fonts fixed in index.html).
   3) Calm motion: only the LIVE dot, the hero CTA glint and a slow glow on the
      featured plan keep moving. Everything else is static or hover-only.
   Remove the <link> to this file to revert.
   ============================================================ */

/* ---------- 1. palette ---------- */

/* aurora blobs: were cyan + violet and drifting → static, warm gold glow */
html[data-layout-mode] body::before,
html[data-layout-mode] body::after {
  animation: none !important;
  opacity: .16 !important;
  filter: blur(90px) !important;
}
html[data-layout-mode] body::before { background: radial-gradient(circle, rgba(245,197,66,.85), transparent 62%) !important; }
html[data-layout-mode] body::after  { background: radial-gradient(circle, rgba(200,144,28,.75), transparent 62%) !important; }
html[data-layout-mode="light"] body::before,
html[data-layout-mode="light"] body::after { opacity: .10 !important; }

/* floating particles off */
#ui-bg-particles { display: none !important; }

/* nav: full blue frame → single gold hairline underneath */
html[data-layout-mode] body .web3-nav {
  border: 0 !important;
  border-bottom: 1px solid var(--ks-stroke-gold) !important;
}
html[data-layout-mode] body .web3-nav::before { display: none !important; }

/* hero: gold edge + faint gold blueprint grid instead of blue lines */
html[data-layout-mode] body .hero { border-bottom: 1px solid var(--ks-stroke-gold) !important; }
html[data-layout-mode] body .hero::before { opacity: .12 !important; filter: none !important; }
html[data-layout-mode] body .hero::after {
  background:
    repeating-linear-gradient(90deg, transparent 0 84px, rgba(200,144,28,.10) 84px 85px),
    repeating-linear-gradient(0deg,  transparent 0 84px, rgba(200,144,28,.07) 84px 85px) !important;
  opacity: .55 !important; mix-blend-mode: normal !important; filter: none !important;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 60% 30%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 80% at 60% 30%, #000 30%, transparent 80%);
}

/* blue text glows on headings off */
html[data-layout-mode] body h1, html[data-layout-mode] body h2, html[data-layout-mode] body h3,
html[data-layout-mode] body .section-title { text-shadow: none !important; }

/* LIVE badge: orange → gold family, green dot stays as the "live" signal */
html[data-layout-mode] body .hero-badge {
  background: var(--ks-gold-soft) !important; color: var(--ks-gold-ink) !important;
  border: 1px solid var(--ks-stroke-gold) !important; box-shadow: none !important;
}
html[data-layout-mode] body .live-dot { background: #22c55e !important; box-shadow: 0 0 0 0 rgba(34,197,94,.55); }

/* main CTA: blue under-glow → gold */
html[data-layout-mode] body .hero .btn-connect,
html[data-layout-mode] body[data-bs-theme="light"] .hero .btn-connect,
html[data-layout-mode] body .btn-connect, html[data-layout-mode] body .btn-launch {
  background: var(--ks-grad) !important; color: #1a1408 !important;
  border: 0 !important;
  box-shadow: 0 12px 30px -12px rgba(200,144,28,.75) !important;
}
html[data-layout-mode] body .btn-connect:hover, html[data-layout-mode] body .btn-launch:hover {
  box-shadow: 0 16px 36px -12px rgba(200,144,28,.9) !important; filter: brightness(1.04) !important;
}
html[data-layout-mode] body .btn-primary {
  background: var(--ks-grad) !important; color: #1a1408 !important; border: 0 !important;
  box-shadow: 0 10px 24px -12px rgba(200,144,28,.8) !important;
}

/* stat strip dividers + hero chart card: gold, not blue */
html[data-layout-mode] body .stat-strip .stat-item { border-right: 0 !important; }
html[data-layout-mode] body .stat-strip .stat-item:last-child::after { display: none !important; }
html[data-layout-mode] body .stat-strip .stat-item::after {
  background: linear-gradient(to bottom, transparent, var(--ks-stroke-gold), transparent) !important;
}
html[data-layout-mode] body .hero-chart-card,
html[data-layout-mode] body[data-bs-theme="light"] .hero-chart-card {
  background: radial-gradient(420px 200px at 85% -10%, rgba(245,197,66,.16), transparent 60%), linear-gradient(180deg, #17130b, #0b0907) !important;
  border: 1px solid rgba(245,197,66,.35) !important;
  box-shadow: 0 24px 50px -24px rgba(60,40,0,.55) !important;
}

/* cards: blue borders / cyan-violet corner halo / cyan-pink sweep → gold */
html[data-layout-mode] body .card, html[data-layout-mode] body .plan-card,
html[data-layout-mode] body .rank-card, html[data-layout-mode] body .feature-box,
html[data-layout-mode] body .table-responsive, html[data-layout-mode] body .mini-stats-wid {
  border-color: var(--ks-stroke-gold) !important;
}
html[data-layout-mode] body #plans .plan-card,
html[data-layout-mode] body #referral .row > [class*="col-"] > .card,
html[data-layout-mode] body #rankings .row > [class*="col-"] > .card,
html[data-layout-mode] body #globalpool .row > [class*="col-"] > .card,
html[data-layout-mode] body #howitworks .row > [class*="col-"] > .card {
  border-color: var(--ks-stroke-gold) !important;
}
html[data-layout-mode] body #plans .plan-card.featured { border-color: rgba(245,197,66,.6) !important; }
html[data-layout-mode] body #calculator h5 { color: var(--ks-ink) !important; }
html[data-layout-mode] body #plans .plan-card:hover,
html[data-layout-mode] body #referral .row > [class*="col-"] > .card:hover,
html[data-layout-mode] body #rankings .row > [class*="col-"] > .card:hover,
html[data-layout-mode] body #globalpool .row > [class*="col-"] > .card:hover,
html[data-layout-mode] body #howitworks .row > [class*="col-"] > .card:hover {
  transform: translate3d(0,-6px,0) !important;
  border-color: rgba(245,197,66,.6) !important;
  box-shadow: 0 24px 50px -20px rgba(120,85,10,.45), 0 0 0 1px rgba(245,197,66,.25) !important;
}
html[data-layout-mode] body #plans .plan-card::after,
html[data-layout-mode] body #referral .row > [class*="col-"] > .card::after,
html[data-layout-mode] body #rankings .row > [class*="col-"] > .card::after,
html[data-layout-mode] body #globalpool .row > [class*="col-"] > .card::after,
html[data-layout-mode] body #howitworks .row > [class*="col-"] > .card::after {
  background: radial-gradient(circle at 70% 130%, rgba(245,197,66,.35) 0%, rgba(200,144,28,.12) 45%, transparent 72%) !important;
  opacity: .5 !important; animation: none !important;
}
html[data-layout-mode] body #plans .plan-card::before {
  background: linear-gradient(120deg, rgba(255,255,255,0), rgba(255,241,184,.55), rgba(255,255,255,0)) !important;
}
html[data-layout-mode] body #plans .plan-icon { box-shadow: none !important; animation: none !important; }

/* plan detail labels were navy-blue */
html[data-layout-mode] body .plan-detail-row > span:first-child { color: var(--ks-ink-dim) !important; }
/* profit values: one green */
html[data-layout-mode] body #plans .text-success { color: var(--ks-ok) !important; }

/* tables + pills + modal leftovers */
html[data-layout-mode] body .table thead th { color: var(--ks-ink-faint) !important; border-color: var(--ks-stroke) !important; }
html[data-layout-mode] body .table td, html[data-layout-mode] body .table th { border-color: var(--ks-stroke) !important; }
html[data-layout-mode] body .wallet-modal-box { box-shadow: 0 36px 80px rgba(0,0,0,.45), 0 0 0 1px var(--ks-stroke-gold) !important; }

/* ---------- 2. type ---------- */
html[data-layout-mode] body .hero-badge, html[data-layout-mode] body .btn-connect,
html[data-layout-mode] body .btn-launch, html[data-layout-mode] body .btn-connected,
html[data-layout-mode] body #plans .plan-card h4 {
  font-family: var(--ks-font-display) !important;
}

/* ---------- 3. motion ---------- */
/* headline gradient no longer slides */
html[data-layout-mode] body .hero h1 span { animation: none !important; background-size: 100% auto !important; }
html[data-layout-mode] body .section-title { animation: none !important; }

/* hero CTA: keep the glint, but gentler and less often */
html[data-layout-mode] body .hero .btn-connect::after {
  background: linear-gradient(120deg, rgba(255,255,255,0), rgba(255,255,255,.55), rgba(255,255,255,0)) !important;
  animation: uiBtnSweep 9s ease-in-out infinite !important;
}
html[data-layout-mode] body .web3-nav .btn-connect::after,
html[data-layout-mode] body section:not(.hero) .btn-connect::after,
html[data-layout-mode] body .btn-launch::after { animation: none !important; }

/* featured plan: slow, soft gold breathing glow (box-shadow only, no movement) */
@keyframes ksFeaturedGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(245,197,66,.28), 0 20px 50px -26px rgba(200,144,28,.45); }
  50%      { box-shadow: 0 0 0 1px rgba(245,197,66,.55), 0 26px 64px -22px rgba(200,144,28,.70); }
}
html[data-layout-mode] body #plans .plan-card.featured {
  animation: ksFeaturedGlow 5s ease-in-out infinite !important;
  filter: none !important;
}
html[data-layout-mode] body #plans .plan-card.featured:hover { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  html[data-layout-mode] body .hero .btn-connect::after,
  html[data-layout-mode] body #plans .plan-card.featured,
  html[data-layout-mode] body .live-dot { animation: none !important; }
}
