/* TraderFriend premium homepage + chrome polish */

:root{
  --tf-black:#050505;
  --tf-deep:#0A0A0A;
  --tf-white:#FFFFFF;
  --tf-off:#F7F7F5;
  --tf-light:#EEEEEE;
  --tf-gray:#A1A1A1;
  --tf-ink:#171717;
  --tf-green:#19D66B;
  --tf-green-bright:#35F58A;
  --tf-green-deep:#0B6B3A;
  --tf-home:#1F8A55;
  --tf-away:#B4234A;
  --tf-home-wash:rgba(31,138,85,.12);
  --tf-away-wash:rgba(180,35,74,.12);
  --font-display:"Space Grotesk",Inter,system-ui,sans-serif;
  --font-body:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

html[data-theme="dark"]{
  --bg:#050505;
  --bg2:#0A0A0A;
  --panel:rgba(23,23,23,.88);
  --panel2:rgba(10,10,10,.96);
  --line:rgba(255,255,255,.10);
  --line-strong:rgba(25,214,107,.42);
  --text:#FFFFFF;
  --muted:#A1A1A1;
  --cyan:#35F58A;
  --green:#19D66B;
  --tf-home:#5CBD86;
  --tf-away:#F0A0B0;
  --tf-home-wash:rgba(92,189,134,.14);
  --tf-away-wash:rgba(240,160,176,.14);
}

html[data-theme="light"]{
  --bg:#F7F7F5;
  --bg2:#FFFFFF;
  --panel:rgba(255,255,255,.92);
  --panel2:#FFFFFF;
  --line:rgba(23,23,23,.10);
  --line-strong:rgba(11,107,58,.35);
  --text:#050505;
  --muted:#5f5f5f;
  --cyan:#0B6B3A;
  --green:#19D66B;
  --tf-home:#1F8A55;
  --tf-away:#B4234A;
  --tf-home-wash:rgba(31,138,85,.1);
  --tf-away-wash:rgba(180,35,74,.1);
}

body{font-family:var(--font-body)}
h1,h2,h3,.brand strong,.tf-hero h1,.tf-section h2{font-family:var(--font-display)}

.site-glow{
  background:
    radial-gradient(circle at 18% 8%,rgba(25,214,107,.10),transparent 28%),
    radial-gradient(circle at 86% 4%,rgba(255,255,255,.04),transparent 24%),
    linear-gradient(180deg,#050505,#0A0A0A 55%,#050505);
}
.site-glow:after{opacity:.08;background-size:64px 64px}
html[data-theme="light"] .site-glow{
  background:
    radial-gradient(circle at 14% 6%,rgba(25,214,107,.08),transparent 26%),
    linear-gradient(180deg,#fff,#F7F7F5 50%,#EEEEEE);
}

/* Header — flat Cwallet-style bar */
.tf-topbar.topbar{
  top:0;
  left:0;
  right:0;
  transform:none;
  width:100%;
  max-width:none;
  min-height:64px;
  border:0;
  border-bottom:1px solid rgba(255,255,255,.08);
  border-radius:0;
  background:#050505;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  box-shadow:none;
  padding:0;
  gap:0;
}
.tf-topbar.topbar.scrolled{
  top:0;
  min-height:64px;
  background:rgba(5,5,5,.96);
  border-bottom-color:rgba(255,255,255,.1);
}
.tf-topbar-inner{
  width:min(1440px,calc(100% - 32px));
  margin:0 auto;
  min-height:64px;
  display:flex;
  align-items:center;
  gap:12px;
}
body:has(.home-page) .tf-topbar.topbar,
body:has(.home-page) .tf-topbar.topbar.scrolled{
  background:#050505;
  border-color:transparent;
  border-bottom:1px solid rgba(255,255,255,.08);
  box-shadow:none;
  backdrop-filter:none;
}
html[data-theme="light"] .tf-topbar.topbar,
html[data-theme="light"] .tf-topbar.topbar.scrolled,
html[data-theme="light"] body:has(.home-page) .tf-topbar.topbar,
html[data-theme="light"] body:has(.home-page) .tf-topbar.topbar.scrolled{
  background:#fff;
  border-bottom:1px solid rgba(23,23,23,.1);
  box-shadow:none;
  backdrop-filter:none;
}

.tf-topbar .brand{gap:10px;flex-shrink:0}
.tf-topbar .brand img{
  width:36px;height:36px;border-radius:10px;
  box-shadow:none;
}
.tf-topbar .brand strong{
  color:#fff;
  font-size:1.15rem;
  letter-spacing:-.03em;
}
.brand strong span{color:var(--tf-green)}
.tf-topbar .brand small{
  color:rgba(255,255,255,.45);
  letter-spacing:.16em;
  font-size:.58rem;
}

.tf-topbar .nav{
  margin-left:8px;
  margin-right:auto;
  gap:0;
  flex-wrap:nowrap;
  min-width:0;
}
.tf-topbar .nav a{
  padding:8px 9px;
  border-radius:6px;
  color:rgba(255,255,255,.78);
  font-weight:500;
  font-size:.84rem;
  background:transparent;
  white-space:nowrap;
  flex-shrink:0;
  line-height:1.2;
}
.tf-topbar .nav a:hover{
  color:#fff;
  background:transparent;
}
.tf-topbar .nav a.active{
  color:#fff;
  background:transparent;
  font-weight:600;
}
html[data-theme="light"] .tf-topbar .brand strong{color:#050505}
html[data-theme="light"] .tf-topbar .brand small{color:rgba(23,23,23,.45)}
html[data-theme="light"] .tf-topbar .nav a{
  color:rgba(23,23,23,.72);
}
html[data-theme="light"] .tf-topbar .nav a:hover,
html[data-theme="light"] .tf-topbar .nav a.active{
  color:#050505;
  background:rgba(23,23,23,.06);
}

.tf-topbar .site-clock{
  border:0;
  background:transparent;
  padding:0 8px;
  opacity:.7;
  flex-shrink:0;
}
.tf-topbar .site-clock-label{color:rgba(255,255,255,.4)}
.tf-topbar .site-clock-value{color:rgba(255,255,255,.75);font-size:.82rem}
html[data-theme="light"] .tf-topbar .site-clock{background:transparent;opacity:.85}
html[data-theme="light"] .tf-topbar .site-clock-label{color:rgba(23,23,23,.4)}
html[data-theme="light"] .tf-topbar .site-clock-value{color:rgba(23,23,23,.7)}

@media (max-width:1280px){
  .tf-topbar .site-clock{display:none}
  .tf-topbar .nav a{padding:8px 8px;font-size:.82rem}
}

.tf-topbar .nav-actions{gap:6px;margin-left:0;flex-shrink:0}
.tf-topbar .theme-toggle{
  border:0;
  background:transparent;
  color:rgba(255,255,255,.8);
  min-height:36px;
  padding:6px 10px;
  border-radius:6px;
}
.tf-topbar .theme-toggle:hover{
  color:#fff;
  border-color:transparent;
  transform:none;
}
html[data-theme="light"] .tf-topbar .theme-toggle{color:rgba(23,23,23,.75)}
html[data-theme="light"] .tf-topbar .theme-toggle:hover{color:#050505}
.tf-topbar .nav-actions .btn-ghost,
.tf-topbar .account-menu + .btn-ghost,
.tf-topbar .nav-actions a.btn-ghost{
  border:0!important;
  background:transparent!important;
  color:rgba(255,255,255,.9)!important;
  min-height:36px;
  padding:8px 12px;
  border-radius:6px;
  box-shadow:none!important;
  font-weight:500!important;
}
.tf-topbar .nav-actions a.btn-ghost:hover{color:#fff!important}
html[data-theme="light"] .tf-topbar .nav-actions .btn-ghost,
html[data-theme="light"] .tf-topbar .nav-actions a.btn-ghost{
  color:rgba(23,23,23,.85)!important;
}
html[data-theme="light"] .tf-topbar .nav-actions a.btn-ghost:hover{color:#050505!important}
.tf-topbar .nav-actions .btn-primary,
.tf-topbar .btn-primary{
  border-radius:6px!important;
  min-height:36px;
  padding:8px 18px!important;
  border:0!important;
  background:#19D66B!important;
  color:#050505!important;
  box-shadow:none!important;
  font-weight:700!important;
}
.tf-topbar .nav-actions .btn-primary:hover{
  background:#35F58A!important;
  transform:none;
}
.tf-topbar .menu-btn{border-radius:8px}
.tf-topbar .menu-btn span{background:#fff}
html[data-theme="light"] .tf-topbar .menu-btn span{background:#050505}

.btn-primary,.tf-btn-primary{
  border-color:rgba(25,214,107,.55)!important;
  background:linear-gradient(135deg,#19D66B,#35F58A)!important;
  color:#050505!important;
  box-shadow:0 0 28px rgba(25,214,107,.22)!important;
}
.btn-ghost.tf-btn-secondary,.tf-btn-secondary{
  background:rgba(255,255,255,.04)!important;
  border-color:rgba(255,255,255,.14)!important;
}
html[data-theme="light"] .btn-ghost.tf-btn-secondary{
  background:rgba(255,255,255,.8)!important;
  border-color:rgba(23,23,23,.12)!important;
  color:#050505!important;
}

/* page clearance under flat header */
.tf-home{--home-nav-clearance:88px}
.page-main{padding-top:88px}

/* Footer styles moved to /css/footer-premium.css */

/* Homepage */
.tf-home{
  --home-nav-clearance:clamp(104px,12vh,140px);
  background:var(--tf-black);
  color:var(--tf-white);
  overflow-x:clip;
}
html[data-theme="light"] .tf-home{background:var(--tf-off);color:var(--tf-black)}

.tf-eyebrow{
  margin:0 0 14px;
  color:var(--tf-green);
  text-transform:uppercase;
  letter-spacing:.22em;
  font-weight:700;
  font-size:.72rem;
}
.tf-copy,.tf-lead{
  color:var(--tf-gray);
  font-size:clamp(1rem,1.2vw,1.15rem);
  line-height:1.65;
  max-width:38rem;
}
html[data-theme="light"] .tf-copy,html[data-theme="light"] .tf-lead{color:#5f5f5f}

.tf-section{padding:clamp(56px,7vw,88px) 0}
.tf-section + .tf-section{border-top:1px solid rgba(255,255,255,.04)}
.tf-section h2{
  margin:0 0 12px;
  font-size:clamp(2rem,4.4vw,3.6rem);
  line-height:1.05;
  letter-spacing:-.05em;
  text-wrap:balance;
}
.tf-section-head{margin-bottom:clamp(22px,3vw,32px);max-width:760px}
.tf-section-head-row{
  max-width:none;
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:end;
  margin-bottom:clamp(22px,3vw,32px);
}
.tf-section-head-row > div{max-width:720px}

.tf-anim-in{
  opacity:0;
  transform:translateY(28px);
  animation:tf-rise .9s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay:var(--delay,0ms);
}
.tf-hero-title{
  display:flex;
  flex-direction:column;
  gap:.08em;
}
.tf-hero-title span{display:block}

[data-reveal]{
  opacity:0;
  transform:translateY(36px) scale(.985);
  filter:blur(4px);
  transition:
    opacity .85s cubic-bezier(.22,1,.36,1),
    transform .85s cubic-bezier(.22,1,.36,1),
    filter .85s ease;
  transition-delay:var(--delay,0ms);
}
[data-reveal].is-revealed{
  opacity:1;
  transform:none;
  filter:none;
}
@media (prefers-reduced-motion:reduce){
  .tf-anim-in,[data-reveal]{opacity:1;transform:none;filter:none;animation:none;transition:none}
}

/* Hero banner */
.tf-hero{
  position:relative;
  /* min-height:100svh; */
  padding:calc(var(--home-nav-clearance) + 20px) 0 clamp(56px,7vw,88px);
  overflow:hidden;
  background:#050505;
}
html[data-theme="light"] .tf-hero{
  background:#fff;
  color:#050505;
}
html[data-theme="light"] .tf-hero .tf-lead,
html[data-theme="light"] .tf-hero .tf-hero-meta{color:#5f5f5f}
html[data-theme="light"] .tf-hero h1{color:#050505}
html[data-theme="light"] .tf-orb-a{
  background:radial-gradient(circle,rgba(25,214,107,.14),transparent 68%);
}
html[data-theme="light"] .tf-orb-b{
  background:radial-gradient(circle,rgba(53,245,138,.1),transparent 70%);
}
html[data-theme="light"] .tf-orb-c{
  background:radial-gradient(circle,rgba(23,23,23,.04),transparent 70%);
}
html[data-theme="light"] .tf-hero-shine{
  background:linear-gradient(115deg,transparent 20%,rgba(23,23,23,.03) 46%,transparent 70%);
}
html[data-theme="light"] .tf-hero-actions .tf-btn-secondary{
  background:#fff!important;
  border-color:rgba(23,23,23,.14)!important;
  color:#050505!important;
}

.tf-hero-atmosphere{
  position:absolute;inset:0;pointer-events:none;overflow:hidden;
}
.tf-orb{
  position:absolute;border-radius:50%;filter:blur(10px);
  animation:tf-orb-drift 10s ease-in-out infinite;
}
.tf-orb-a{
  width:42vw;height:42vw;max-width:520px;max-height:520px;
  left:-8%;top:8%;
  background:radial-gradient(circle,rgba(25,214,107,.22),transparent 68%);
}
.tf-orb-b{
  width:36vw;height:36vw;max-width:420px;max-height:420px;
  right:-6%;top:18%;
  background:radial-gradient(circle,rgba(53,245,138,.16),transparent 70%);
  animation-delay:1.4s;
}
.tf-orb-c{
  width:28vw;height:28vw;max-width:320px;max-height:320px;
  left:38%;bottom:-10%;
  background:radial-gradient(circle,rgba(255,255,255,.06),transparent 70%);
  animation-delay:2.2s;
}
.tf-hero-shine{
  position:absolute;inset:-20% -10% auto;
  height:55%;
  background:linear-gradient(115deg,transparent 20%,rgba(255,255,255,.04) 46%,transparent 70%);
  animation:tf-shine 8s linear infinite;
}

.tf-hero-grid-layout{
  position:relative;z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(300px,1.15fr);
  gap:clamp(28px,5vw,64px);
  align-items:center;
}
.tf-hero h1{
  margin:0 0 18px;
  font-size:clamp(2.6rem,6.8vw,5.8rem);
  line-height:.95;
  letter-spacing:-.06em;
  max-width:11ch;
}
.tf-hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin:26px 0 16px}
.tf-hero-actions .btn{
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tf-hero-actions .btn:hover{
  transform:translateY(-3px) scale(1.02);
}
.tf-hero-actions .tf-btn-primary:hover{
  box-shadow:0 0 40px rgba(25,214,107,.4)!important;
}
.tf-hero-meta{display:flex;flex-wrap:wrap;gap:12px 18px;color:#A1A1A1;font-size:.86rem;font-weight:600}
.tf-hero-meta span{display:inline-flex;align-items:center;gap:8px}
.tf-hero-meta span:before{
  content:"";width:6px;height:6px;border-radius:50%;background:var(--tf-green);
  box-shadow:0 0 10px rgba(25,214,107,.7);
}

.tf-hero-visual{
  position:relative;
  width:100%;
  min-width:0;
  isolation:isolate;
}
.tf-hero-visual-glow{
  position:absolute;
  inset:8% 4% 4%;
  background:radial-gradient(circle at 50% 45%,rgba(25,214,107,.28),transparent 62%);
  filter:blur(18px);
  animation:tf-pulse 5.5s ease-in-out infinite;
  z-index:0;
}
.tf-hero-visual-ring{
  position:absolute;
  inset:4% 0 0;
  border-radius:28px;
  border:1px solid rgba(25,214,107,.18);
  box-shadow:0 0 40px rgba(25,214,107,.08);
  animation:tf-ring-pulse 4.5s ease-in-out infinite;
  z-index:0;
}
.tf-hero-visual-frame{
  position:relative;z-index:1;
  margin:0;
  border-radius:24px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  background:#0a0a0a;
  box-shadow:0 30px 80px rgba(0,0,0,.55);
  animation:tf-float-card 7s ease-in-out infinite;
}
.tf-hero-visual-img{
  width:100%;
  height:auto;
  aspect-ratio:16 / 11;
  object-fit:cover;
  object-position:center;
  display:block;
  transform:scale(1.03);
  transform-origin:center;
  animation:tf-img- ken 18s ease-in-out infinite alternate;
}
@keyframes tf-img-ken{
  from{transform:scale(1.03) translate3d(0,0,0)}
  to{transform:scale(1.08) translate3d(-1.5%,-1%,0)}
}

/* Crypto ticker — 3-row marquee */
.tf-ticker{
  position:relative;
  padding:28px 0 36px;
  overflow:hidden;
  background:linear-gradient(180deg,rgba(5,5,5,.2),transparent 30%),var(--tf-black);
  border-top:1px solid rgba(255,255,255,.04);
  border-bottom:1px solid rgba(255,255,255,.04);
}
html[data-theme="light"] .tf-ticker{
  background:linear-gradient(180deg,#fff 0%,#F7F7F5 40%,#F7F7F5 100%);
  border-color:rgba(23,23,23,.06);
}
.tf-ticker-fade{
  position:absolute;inset:0;z-index:2;pointer-events:none;
  background:
    linear-gradient(90deg,var(--tf-black) 0%,transparent 8%,transparent 92%,var(--tf-black) 100%),
    linear-gradient(180deg,var(--tf-black) 0%,transparent 18%);
}
html[data-theme="light"] .tf-ticker-fade{
  background:
    linear-gradient(90deg,#fff 0%,transparent 8%,transparent 92%,#F7F7F5 100%),
    linear-gradient(180deg,#fff 0%,transparent 22%);
}
.tf-ticker-row{
  position:relative;z-index:1;
  overflow:hidden;
  margin:8px 0;
  mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
}
.tf-ticker-track{
  display:flex;gap:12px;width:max-content;
  will-change:transform;
}
.tf-ticker-row.is-left .tf-ticker-track{animation:tf-ticker-left 42s linear infinite}
.tf-ticker-row.is-right .tf-ticker-track{animation:tf-ticker-right 48s linear infinite}
.tf-ticker-row:nth-child(3) .tf-ticker-track{animation-duration:38s}
.tf-ticker-row:nth-child(4) .tf-ticker-track{animation-duration:52s}
.tf-ticker:hover .tf-ticker-track{animation-play-state:paused}
@keyframes tf-ticker-left{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}
@keyframes tf-ticker-right{
  from{transform:translateX(-50%)}
  to{transform:translateX(0)}
}
.tf-ticker-card{
  display:flex;align-items:center;gap:12px;
  min-width:220px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(23,23,23,.92);
  box-shadow:0 8px 24px rgba(0,0,0,.2);
  flex-shrink:0;
}
html[data-theme="light"] .tf-ticker-card{
  background:#fff;
  border-color:rgba(23,23,23,.08);
  box-shadow:0 6px 18px rgba(23,23,23,.06);
}
.tf-ticker-card img{
  width:32px;height:32px;border-radius:50%;flex-shrink:0;
}
.tf-ticker-fallback{
  display:none;
  width:32px;height:32px;border-radius:50%;flex-shrink:0;
  align-items:center;justify-content:center;
  background:rgba(25,214,107,.16);color:var(--tf-green);
  font-weight:800;font-size:.85rem;
}
.tf-ticker-fallback.is-visible{display:inline-flex}
.tf-ticker-meta{min-width:0;display:grid;gap:3px}
.tf-ticker-name,.tf-ticker-price{
  display:flex;align-items:baseline;gap:8px;white-space:nowrap;
}
.tf-ticker-name strong{font-size:.95rem;letter-spacing:-.02em}
.tf-ticker-name span,.tf-ticker-price span{color:#A1A1A1;font-size:.84rem;font-weight:600}
html[data-theme="light"] .tf-ticker-name span,
html[data-theme="light"] .tf-ticker-price span{color:#6b6b6b}
.tf-ticker-price em{
  font-style:normal;font-size:.8rem;font-weight:700;
}
.tf-ticker-price em.is-up{color:#19D66B}
.tf-ticker-price em.is-down{color:#ff5d5d}
@media (prefers-reduced-motion:reduce){
  .tf-ticker-row.is-left .tf-ticker-track,
  .tf-ticker-row.is-right .tf-ticker-track{animation:none;transform:none}
  .tf-ticker-row{overflow-x:auto}
}

.tf-hero-float{
  position:absolute;z-index:2;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(10,10,10,.72);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  box-shadow:0 16px 40px rgba(0,0,0,.35);
  animation:tf-float 5.5s ease-in-out infinite;
}
.tf-hero-float span{
  display:block;color:#A1A1A1;font-size:.68rem;font-weight:700;
  letter-spacing:.12em;text-transform:uppercase;margin-bottom:4px
}
.tf-hero-float strong{display:block;font-size:.95rem;letter-spacing:-.02em}
.tf-hero-float-a{left:-8px;top:14%;animation-delay:.4s}
.tf-hero-float-b{right:-6px;bottom:16%;animation-delay:1.1s;border-color:rgba(25,214,107,.28)}
.tf-hero-float-b strong{color:var(--tf-green)}

@keyframes tf-orb-drift{
  0%,100%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(18px,-16px,0) scale(1.06)}
}
@keyframes tf-shine{
  0%{transform:translateX(-30%) skewX(-12deg)}
  100%{transform:translateX(40%) skewX(-12deg)}
}
@keyframes tf-ring-pulse{
  0%,100%{opacity:.45;transform:scale(.98)}
  50%{opacity:.9;transform:scale(1)}
}
.tf-dash-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}
.tf-dash-top strong{letter-spacing:.18em;font-size:.72rem;color:#A1A1A1}
.tf-hero-dash h3{margin:0;font-size:clamp(1.25rem,2vw,1.55rem);letter-spacing:-.03em}
.tf-dash-league{margin:6px 0 16px;color:#A1A1A1;font-size:.88rem}
.tf-live-pill{
  display:inline-flex;align-items:center;gap:6px;
  padding:6px 10px;border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  font-size:.68rem;font-weight:800;letter-spacing:.08em;
  color:#fff;background:rgba(255,255,255,.04);
}
.tf-live-pill.is-live{border-color:rgba(25,214,107,.45);color:var(--tf-green);background:rgba(25,214,107,.08)}
.tf-live-pill.is-live:before{
  content:"";width:7px;height:7px;border-radius:50%;background:var(--tf-green);
  box-shadow:0 0 10px rgba(25,214,107,.8);animation:tf-pulse 1.6s ease-in-out infinite;
}
.tf-prob-row,.tf-dash-stats,.tf-market-probs{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;
}
.tf-prob-row span,.tf-dash-stats span,.tf-market-probs span,.tf-dash-trade span{
  display:block;color:#A1A1A1;font-size:.72rem;font-weight:600;margin-bottom:4px
}
.tf-prob-row strong,.tf-dash-stats strong,.tf-market-probs strong{font-size:1.15rem;letter-spacing:-.03em}
.tf-market-probs .is-home span,
.tf-market-probs .is-home strong{color:var(--tf-home)}
.tf-market-probs .is-away span,
.tf-market-probs .is-away strong{color:var(--tf-away)}
.tf-prob-bar{
  display:flex;height:8px;border-radius:999px;overflow:hidden;
  background:rgba(255,255,255,.06);margin:12px 0 14px;
}
.tf-prob-bar i{
  display:block;height:100%;background:var(--tf-home);
  transform-origin:left center;
  animation:tf-bar-grow 1.1s cubic-bezier(.22,1,.36,1) both;
}
.tf-prob-bar i.home{background:var(--tf-home)}
.tf-prob-bar i.draw{background:rgba(161,161,161,.55);animation-delay:.12s}
.tf-prob-bar i.away{background:var(--tf-away);animation-delay:.22s}
.tf-dash-stats{margin-bottom:12px}
.tf-spark{width:100%;height:72px;margin:4px 0 12px}
.tf-spark path{
  fill:none;stroke:var(--tf-green);stroke-width:2;stroke-linecap:round;
  stroke-dasharray:320;stroke-dashoffset:320;
  animation:tf-spark-draw 2.4s ease forwards infinite;
}
.tf-side-toggle{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}
.tf-side-toggle span{
  display:block;text-align:center;
  border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.03);
  color:#fff;border-radius:12px;padding:10px;font-weight:800;font-size:.9rem!important;margin:0!important
}
.tf-side-toggle span.is-active{border-color:rgba(25,214,107,.5);background:rgba(25,214,107,.12);color:var(--tf-green)}
.tf-amount-row{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px}
.tf-amount-row span{
  text-align:center;padding:8px;border-radius:10px;border:1px solid rgba(255,255,255,.1);
  color:#fff;font-size:.8rem!important;margin:0!important
}
.tf-amount-row span.is-active{border-color:rgba(25,214,107,.45);color:var(--tf-green)}
.tf-dash-trade .btn{width:100%}
.tf-dash-fallback{padding:18px 4px}
.tf-dash-fallback p{color:#A1A1A1}

/* Cards / grids */
.tf-card-grid{display:grid;gap:14px}
.tf-card-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.tf-card-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.tf-card,.tf-step,.tf-market-card,.tf-feature-row,.tf-risk-panel,.tf-final-panel,.tf-float-card{
  border:1px solid rgba(255,255,255,.10);
  border-radius:22px;
  background:linear-gradient(180deg,rgba(23,23,23,.9),rgba(10,10,10,.94));
  box-shadow:0 18px 50px rgba(0,0,0,.28);
  transition:transform .35s cubic-bezier(.22,1,.36,1), border-color .35s ease, box-shadow .35s ease;
}
html[data-theme="light"] .tf-card,
html[data-theme="light"] .tf-step,
html[data-theme="light"] .tf-market-card,
html[data-theme="light"] .tf-feature-row,
html[data-theme="light"] .tf-risk-panel,
html[data-theme="light"] .tf-final-panel,
html[data-theme="light"] .tf-float-card{
  background:linear-gradient(180deg,#fff,#F7F7F5);
  border-color:rgba(23,23,23,.08);
  box-shadow:0 16px 40px rgba(0,0,0,.06);
}
html[data-theme="light"] .tf-prob-bar{
  background:rgba(23,23,23,.08);
}
html[data-theme="light"] .tf-prob-bar i.draw{
  background:rgba(95,95,95,.35);
}
html[data-theme="light"] .tf-live-pill{
  border-color:rgba(23,23,23,.14);
  color:var(--tf-ink);
  background:rgba(23,23,23,.04);
}
.tf-card{padding:20px}
.tf-card:hover,.tf-step:hover,.tf-market-card:hover,.tf-feature-row:hover,.tf-float-card:hover{
  transform:translateY(-5px);
  border-color:rgba(25,214,107,.4);
  box-shadow:0 28px 60px rgba(25,214,107,.12);
}
.tf-card-index{
  display:inline-block;color:var(--tf-green);font-weight:800;font-size:.8rem;
  margin-bottom:10px;letter-spacing:.08em;
  transition:transform .3s ease, color .3s ease;
}
.tf-card:hover .tf-card-index{transform:translateX(4px);color:var(--tf-green-bright)}
.tf-card h3,.tf-step h3,.tf-market-card h3,.tf-feature-row h3{margin:0 0 8px;font-size:1.15rem;letter-spacing:-.03em}
.tf-card p,.tf-step p,.tf-feature-row p{margin:0;color:var(--tf-gray);line-height:1.55}
html[data-theme="light"] .tf-card p,html[data-theme="light"] .tf-step p,html[data-theme="light"] .tf-feature-row p{color:#5f5f5f}

.tf-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.tf-step{padding:24px 20px}
.tf-step > span{
  display:inline-grid;place-items:center;width:42px;height:42px;border-radius:999px;
  background:rgba(25,214,107,.12);color:var(--tf-green);font-weight:800;margin-bottom:14px;
  transition:transform .35s ease, background .35s ease, box-shadow .35s ease;
}
.tf-step:hover > span{
  transform:scale(1.08) rotate(-4deg);
  background:rgba(25,214,107,.2);
  box-shadow:0 0 24px rgba(25,214,107,.25);
}

.tf-market-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.tf-market-card{display:block;padding:18px;color:inherit}
.tf-market-top{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:12px}
.tf-market-league{color:#A1A1A1;font-size:.78rem;font-weight:600}
.tf-market-card h3{font-size:1.2rem}
.tf-market-card h3 em{font-style:normal;font-weight:700}
.tf-market-card .tf-team-home{color:var(--tf-home)}
.tf-market-card .tf-team-away{color:var(--tf-away)}
.tf-market-card .tf-vs-sep{color:#A1A1A1;font-weight:500;margin:0 .15em}
.tf-market-foot{display:flex;justify-content:space-between;gap:10px;margin-top:14px;color:#A1A1A1;font-size:.84rem;font-weight:600}
.tf-linkish{color:var(--tf-green)}
.tf-empty{padding:28px;border:1px dashed rgba(255,255,255,.14);border-radius:20px;text-align:center;color:#A1A1A1}

.tf-prediction-layout,.tf-product-layout,.tf-final-panel{
  display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(20px,3vw,36px);align-items:center
}
.tf-badge{
  display:inline-flex;margin:12px 0 8px;padding:8px 12px;border-radius:999px;
  border:1px solid rgba(25,214,107,.35);background:rgba(25,214,107,.08);
  color:var(--tf-green);font-weight:800;font-size:.8rem;
  animation:tf-pulse 2.4s ease-in-out infinite;
}
.tf-prediction .tf-copy strong{color:inherit;font-weight:700}
.tf-prediction-visual{display:grid;gap:12px}
.tf-mine-flow{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
}
.tf-mine-step{
  padding:16px;border-radius:18px;border:1px solid rgba(255,255,255,.1);
  background:rgba(23,23,23,.92);
  transition:transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.tf-mine-step:hover{transform:translateY(-4px);border-color:rgba(25,214,107,.35)}
.tf-mine-step.is-active{
  border-color:rgba(25,214,107,.45);
  box-shadow:0 0 28px rgba(25,214,107,.1);
  background:rgba(25,214,107,.08);
}
html[data-theme="light"] .tf-mine-step{background:#fff;border-color:rgba(23,23,23,.08);color:#050505}
html[data-theme="light"] .tf-mine-step.is-active{background:rgba(25,214,107,.08)}
.tf-mine-step span{
  display:inline-block;margin-bottom:8px;
  color:var(--tf-green);font-size:.72rem;font-weight:800;letter-spacing:.12em;
}
.tf-mine-step strong{display:block;margin:0 0 6px;font-size:1.05rem;letter-spacing:-.02em}
.tf-mine-step p{margin:0;color:#A1A1A1;font-size:.9rem;line-height:1.45}
html[data-theme="light"] .tf-mine-step p{color:#5f5f5f}
.tf-net-chips{
  display:flex;flex-wrap:wrap;gap:8px;margin-top:2px;
}
.tf-net-chips span,
.tf-net-chips-tao span{
  padding:7px 11px;border-radius:999px;
  border:1px solid rgba(25,214,107,.28);
  background:rgba(25,214,107,.08);
  color:var(--tf-green);font-size:.74rem;font-weight:700;letter-spacing:.04em;
}
.tf-prediction-media{margin-top:clamp(22px,3vw,36px)}
.tf-pv-card{
  padding:16px;border-radius:18px;border:1px solid rgba(255,255,255,.1);
  background:rgba(23,23,23,.9);
  transition:transform .35s ease, border-color .35s ease;
}
.tf-pv-card:hover{transform:translateX(6px);border-color:rgba(25,214,107,.35)}
html[data-theme="light"] .tf-pv-card{background:#fff;border-color:rgba(23,23,23,.08);color:#050505}
.tf-pv-card span{color:#A1A1A1;font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.tf-pv-card strong{display:block;margin:8px 0;font-size:1.2rem}
.tf-pv-card p{margin:0;color:#A1A1A1}
.tf-pv-card-accent{border-color:rgba(25,214,107,.35);box-shadow:0 0 30px rgba(25,214,107,.08)}
.tf-pv-bars{display:flex;align-items:end;gap:6px;height:54px;margin-top:10px}
.tf-pv-bars i{flex:1;border-radius:6px 6px 2px 2px;background:linear-gradient(180deg,var(--tf-green-bright),rgba(25,214,107,.25));animation:tf-bars 2.8s ease-in-out infinite}
.tf-pv-bars i:nth-child(1){height:35%}.tf-pv-bars i:nth-child(2){height:55%;animation-delay:.1s}
.tf-pv-bars i:nth-child(3){height:42%;animation-delay:.2s}.tf-pv-bars i:nth-child(4){height:78%;animation-delay:.3s}
.tf-pv-bars i:nth-child(5){height:60%;animation-delay:.4s}.tf-pv-bars i:nth-child(6){height:88%;animation-delay:.5s}
.tf-pv-bars i:nth-child(7){height:48%;animation-delay:.6s}

.tf-tao{background:linear-gradient(180deg,rgba(25,214,107,.04),transparent 40%),#050505}
html[data-theme="light"] .tf-tao{background:linear-gradient(180deg,rgba(25,214,107,.05),transparent 40%),#0A0A0A;color:#fff}
html[data-theme="light"] .tf-tao .tf-copy{color:#A1A1A1}
.tf-tao .tf-copy strong{color:#fff;font-weight:700}
.tf-bt-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;
  margin:0 0 22px;
}
.tf-bt-card{
  padding:22px;border-radius:20px;border:1px solid rgba(255,255,255,.1);
  background:rgba(23,23,23,.88);
  transition:transform .35s ease, border-color .35s ease;
}
.tf-bt-card:hover{transform:translateY(-4px);border-color:rgba(25,214,107,.35)}
.tf-bt-card.is-network{border-color:rgba(25,214,107,.32);box-shadow:0 0 32px rgba(25,214,107,.08)}
.tf-bt-label{
  display:inline-block;margin-bottom:10px;
  color:var(--tf-green);font-size:.7rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase;
}
.tf-bt-card strong{display:block;margin:0 0 8px;font-size:1.45rem;letter-spacing:-.03em}
.tf-bt-card p{margin:0 0 12px;color:#A1A1A1;line-height:1.55}
.tf-bt-card ul{margin:0;padding-left:18px;color:#d7d7d7;display:grid;gap:6px}
.tf-bt-card li::marker{color:var(--tf-green)}
html[data-theme="light"] .tf-bt-card{background:rgba(255,255,255,.04);color:#fff}
.tf-network{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;
  margin:20px 0 16px;padding:22px 16px;border:1px solid rgba(255,255,255,.08);border-radius:24px;
  background:rgba(255,255,255,.02)
}
.tf-network-mesh{
  background:
    radial-gradient(circle at 50% 50%,rgba(25,214,107,.08),transparent 55%),
    rgba(255,255,255,.02);
}
.tf-net-chips-tao{justify-content:center;margin:0 0 22px}
.tf-node{
  min-width:120px;padding:14px 18px;border-radius:999px;text-align:center;
  border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.03);
  box-shadow:0 0 24px rgba(25,214,107,.05);
  transition:transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.tf-node:hover{transform:translateY(-4px) scale(1.04);border-color:rgba(25,214,107,.4)}
.tf-node.is-core{
  border-color:rgba(25,214,107,.45);background:rgba(25,214,107,.1);color:var(--tf-green);
  animation:tf-pulse 3s ease-in-out infinite;
}
.tf-net-line{
  width:48px;height:2px;
  background:linear-gradient(90deg,transparent,var(--tf-green),transparent);
  opacity:.7;background-size:200% 100%;
  animation:tf-line-flow 2.4s linear infinite;
}
.tf-tao-media{
  position:relative;
  border-radius:22px;overflow:hidden;border:1px solid rgba(255,255,255,.08);
  transition:transform .5s ease, box-shadow .5s ease;
  background:#050505;
}
.tf-tao-media:hover{transform:translateY(-6px);box-shadow:0 24px 60px rgba(25,214,107,.12)}
.tf-tao-media img{
  width:100%;
  height:auto;
  min-height:280px;
  max-height:560px;
  object-fit:cover;
  object-position:center top;
  display:block;
  filter:saturate(.95) contrast(1.04);
}
.tf-tao-media:after{
  content:"";
  position:absolute;inset:0;
  background:
    linear-gradient(180deg,transparent 42%,rgba(5,5,5,.88) 100%),
    radial-gradient(circle at 70% 40%,rgba(25,214,107,.18),transparent 42%);
  pointer-events:none;
}
.tf-tao-media-caption{
  position:absolute;left:22px;right:22px;bottom:22px;z-index:1;
  display:grid;gap:6px;
}
.tf-tao-media-caption span{
  color:var(--tf-green);
  font-size:.72rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase;
}
.tf-tao-media-caption strong{
  color:#fff;
  font-family:var(--font-display);
  font-size:clamp(1.2rem,2.4vw,1.7rem);
  letter-spacing:-.03em;line-height:1.15;
}
html[data-theme="light"] .tf-tao-media{
  border-color:rgba(23,23,23,.1);
  background:#0A0A0A;
}

/* Prediction page */
.tf-prediction-page .tf-pred-hero{
  min-height:auto;
  padding-bottom:clamp(48px,6vw,72px);
}
.tf-prediction-page .tf-pred-hero h1{
  font-size:clamp(3.2rem,7.4vw,6.4rem);
  max-width:12ch;
  line-height:.92;
}
.tf-prediction-page .tf-pred-hero .tf-lead{
  font-size:clamp(1.08rem,1.45vw,1.28rem);
  max-width:42rem;
}
.tf-prediction-page .tf-hero-copy .tf-net-chips{margin-top:18px}
.tf-prediction-page .tf-lead strong{color:inherit;font-weight:700}
.tf-prediction-page .tf-hero-visual{min-width:0}
.tf-prediction-page .tf-pred-network .tf-network{margin-bottom:28px}
.tf-pred-cta-note{
  padding:22px;
  border-radius:20px;
  border:1px solid rgba(25,214,107,.28);
  background:rgba(25,214,107,.08);
}
.tf-pred-cta-note .tf-badge{margin:0 0 12px}
.tf-pred-cta-note strong{
  display:block;margin:0 0 8px;
  font-size:1.35rem;letter-spacing:-.03em;
}
.tf-pred-cta-note p{margin:0;color:#A1A1A1;line-height:1.55}
html[data-theme="light"] .tf-pred-cta-note p{color:#5f5f5f}

.tf-eco{
  position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;
  margin:0 0 18px;padding:28px 16px 16px;border:1px solid rgba(255,255,255,.08);border-radius:24px
}
.tf-eco-node{
  padding:16px;border-radius:18px;border:1px solid rgba(255,255,255,.1);
  background:rgba(23,23,23,.85);text-align:center;
  transition:transform .35s ease, border-color .35s ease;
}
.tf-eco-node:hover{transform:translateY(-5px);border-color:rgba(25,214,107,.35)}
html[data-theme="light"] .tf-eco-node{background:#fff;border-color:rgba(23,23,23,.08);color:#050505}
.tf-eco-node span{display:block;margin-top:8px;color:#A1A1A1;font-size:.86rem}
.tf-eco-node.is-center{
  grid-column:1 / -1;max-width:240px;margin:-36px auto 8px;
  border-color:rgba(25,214,107,.4);background:rgba(25,214,107,.1);color:var(--tf-green);
  animation:tf-pulse 3.2s ease-in-out infinite;
}

.tf-feature-list{display:grid;gap:10px}
.tf-feature-row{display:grid;grid-template-columns:64px 1fr;gap:14px;padding:18px 20px;align-items:start}
.tf-feature-row > span{color:var(--tf-green);font-weight:800;font-size:1.1rem;transition:transform .3s ease}
.tf-feature-row:hover > span{transform:scale(1.12)}

.tf-product-stack{position:relative;min-height:300px}
.tf-float-card{
  position:absolute;padding:18px 20px;min-width:min(100%,220px);
  animation:tf-float-card 6.5s ease-in-out infinite
}
.tf-float-card span{display:block;color:#A1A1A1;font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;margin-bottom:8px}
.tf-float-card strong{font-size:1.15rem}
.tf-float-card{left:8%;top:18%}
.tf-float-card-2{left:28%;top:48%;animation-delay:1s}
.tf-float-card-3{left:48%;top:20%;animation-delay:1.8s}

.tf-risk-panel,.tf-final-panel{padding:clamp(22px,3vw,32px)}
.tf-risk-panel p{color:#A1A1A1;max-width:48rem;line-height:1.65}
.tf-text-link{
  display:inline-flex;margin-top:12px;color:var(--tf-green);font-weight:700;
  transition:transform .25s ease, letter-spacing .25s ease;
}
.tf-text-link:hover{transform:translateX(4px);letter-spacing:.02em}
.tf-final-media{
  border-radius:18px;overflow:hidden;border:1px solid rgba(255,255,255,.08);
  transition:transform .45s ease;
}
.tf-final-media:hover{transform:translateY(-6px) scale(1.01)}
.tf-final-media img{width:100%;height:auto}

/* Custom cursor */
.tf-cursor-on,.tf-cursor-on *{cursor:none!important}
.tf-cursor-dot,.tf-cursor-ring,.tf-cursor-aura{
  position:fixed;top:0;left:0;z-index:9999;pointer-events:none;
  border-radius:50%;transform:translate3d(-100px,-100px,0);
  will-change:transform,width,height,opacity,background,border-color,box-shadow
}
.tf-cursor-aura{
  width:34px;height:34px;margin:-17px 0 0 -17px;
  background:radial-gradient(circle,rgba(25,214,107,.18),transparent 68%);
  opacity:.45;
  transition:opacity .25s ease,width .25s ease,height .25s ease,margin .25s ease;
  animation:tf-cursor-breathe 2.4s ease-in-out infinite;
}
.tf-cursor-dot{
  width:6px;height:6px;margin:-3px 0 0 -3px;
  background:#fff;
  box-shadow:0 0 0 1px rgba(0,0,0,.15),0 0 12px rgba(25,214,107,.4);
  transition:width .18s ease,height .18s ease,margin .18s ease,background .18s ease,box-shadow .18s ease;
}
.tf-cursor-ring{
  width:26px;height:26px;margin:-13px 0 0 -13px;
  border:1.5px solid rgba(255,255,255,.6);
  background:rgba(255,255,255,.04);
  box-shadow:0 0 14px rgba(25,214,107,.1);
  transition:width .22s cubic-bezier(.22,1,.36,1),height .22s cubic-bezier(.22,1,.36,1),margin .22s cubic-bezier(.22,1,.36,1),border-color .2s ease,background .2s ease,box-shadow .2s ease;
}
html.tf-cursor-moving .tf-cursor-aura{opacity:.7}
html.tf-cursor-hover .tf-cursor-ring{width:34px;height:34px;margin:-17px 0 0 -17px;border-color:rgba(25,214,107,.55)}
html.tf-cursor-hover .tf-cursor-dot{width:7px;height:7px;margin:-3.5px 0 0 -3.5px;background:#19D66B}
html.tf-cursor-cta .tf-cursor-ring{
  width:38px;height:38px;margin:-19px 0 0 -19px;
  border-color:rgba(25,214,107,.95);
  background:rgba(25,214,107,.14);
  box-shadow:0 0 18px rgba(25,214,107,.3);
}
html.tf-cursor-cta .tf-cursor-dot{
  width:7px;height:7px;margin:-3.5px 0 0 -3.5px;background:#35F58A;
  box-shadow:0 0 12px rgba(53,245,138,.75);
}
html.tf-cursor-cta .tf-cursor-aura{
  width:46px;height:46px;margin:-23px 0 0 -23px;opacity:.9;
  background:radial-gradient(circle,rgba(53,245,138,.24),transparent 70%);
}
html.tf-cursor-card .tf-cursor-ring{
  width:36px;height:36px;margin:-18px 0 0 -18px;
  border-color:rgba(255,255,255,.4);
  background:rgba(255,255,255,.05);
}
html.tf-cursor-press .tf-cursor-ring{
  width:20px;height:20px;margin:-10px 0 0 -10px;
  border-color:#19D66B;
  background:rgba(25,214,107,.2);
}
html.tf-cursor-press .tf-cursor-dot{width:4px;height:4px;margin:-2px 0 0 -2px}

/* Light / white theme cursor */
html.tf-cursor-light .tf-cursor-dot{
  background:#0A0A0A;
  box-shadow:0 0 0 1px rgba(255,255,255,.5),0 0 16px rgba(25,214,107,.4);
}
html.tf-cursor-light .tf-cursor-ring{
  border-color:rgba(10,10,10,.45);
  background:rgba(255,255,255,.35);
  box-shadow:0 0 20px rgba(25,214,107,.16),0 4px 16px rgba(0,0,0,.08);
  backdrop-filter:blur(2px);
}
html.tf-cursor-light .tf-cursor-aura{
  background:radial-gradient(circle,rgba(25,214,107,.26),rgba(255,255,255,.2) 42%,transparent 70%);
  animation:tf-cursor-breathe-light 2.2s ease-in-out infinite;
}
html.tf-cursor-light.tf-cursor-hover .tf-cursor-ring{
  border-color:rgba(11,107,58,.65);
  background:rgba(25,214,107,.12);
}
html.tf-cursor-light.tf-cursor-hover .tf-cursor-dot{
  background:#0B6B3A;
  box-shadow:0 0 14px rgba(25,214,107,.55);
}
html.tf-cursor-light.tf-cursor-cta .tf-cursor-ring{
  border-color:#19D66B;
  background:rgba(25,214,107,.18);
  box-shadow:0 0 30px rgba(25,214,107,.32);
}
html.tf-cursor-light.tf-cursor-cta .tf-cursor-dot{
  background:#19D66B;
  box-shadow:0 0 18px rgba(25,214,107,.75);
}
html.tf-cursor-light.tf-cursor-card .tf-cursor-ring{
  border-color:rgba(10,10,10,.28);
  background:rgba(255,255,255,.55);
}
html.tf-cursor-light.tf-cursor-press .tf-cursor-ring{
  border-color:#0B6B3A;
  background:rgba(25,214,107,.28);
}

@keyframes tf-cursor-breathe{
  0%,100%{opacity:.35}
  50%{opacity:.8}
}
@keyframes tf-cursor-breathe-light{
  0%,100%{opacity:.4}
  50%{opacity:.95}
}

@keyframes tf-pulse{0%,100%{opacity:.55;transform:scale(1)}50%{opacity:1;transform:scale(1.05)}}
@keyframes tf-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
@keyframes tf-float-card{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
@keyframes tf-draw{0%{stroke-dashoffset:1400}45%,100%{stroke-dashoffset:0}}
@keyframes tf-bars{0%,100%{transform:scaleY(.85)}50%{transform:scaleY(1)}}
@keyframes tf-rise{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
@keyframes tf-bar-grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes tf-spark-draw{0%{stroke-dashoffset:320}40%,100%{stroke-dashoffset:0}}
@keyframes tf-glow-drift{0%,100%{transform:translate(0,0)}50%{transform:translate(40px,24px)}}
@keyframes tf-line-flow{0%{background-position:100% 0}100%{background-position:-100% 0}}

@media (prefers-reduced-motion:reduce){
  .tf-orb,.tf-hero-shine,.tf-hero-visual-glow,.tf-hero-visual-ring,.tf-hero-visual-frame,.tf-hero-float,.tf-hero-visual-img,
  .tf-float-card,.tf-pv-bars i,.tf-live-pill.is-live:before,
  .tf-badge,.tf-node.is-core,.tf-eco-node.is-center,.tf-spark path,.tf-prob-bar i,.tf-net-line{animation:none!important}
}

@media (max-width:1180px){
  .tf-card-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tf-market-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tf-footer .footer-grid{grid-template-columns:1.4fr 1fr 1fr;gap:22px}
}

@media (max-width:960px){
  .tf-ticker{padding:20px 0 28px}
  .tf-ticker-card{min-width:196px;padding:10px 12px}
  .tf-topbar.topbar,
  .tf-topbar.topbar.scrolled{
    top:0;
    width:100%;
    padding:0;
    border-radius:0;
    min-height:60px;
  }
  .tf-topbar-inner{width:calc(100% - 24px);gap:10px;position:relative;min-height:60px}
  .tf-topbar .site-clock{display:none}
  .tf-topbar .menu-btn{margin-left:auto}
  .tf-topbar .nav{
    margin:0;
    top:calc(100% + 8px);
    left:0;
    right:0;
    border-radius:14px;
    background:#0A0A0A;
    border:1px solid rgba(255,255,255,.1);
  }
  .tf-topbar .nav a{color:#fff}
  html[data-theme="light"] .tf-topbar .nav{
    background:#fff;
    border-color:rgba(23,23,23,.1);
  }
  html[data-theme="light"] .tf-topbar .nav a{color:#050505}
  .tf-topbar .nav .btn-primary{
    background:#19D66B!important;
    color:#050505!important;
    border-radius:6px!important;
    box-shadow:none!important;
  }
  .tf-hero-grid-layout,
  .tf-prediction-layout,
  .tf-product-layout,
  .tf-final-panel,
  .tf-section-head-row,
  .tf-bt-grid,
  .tf-mine-flow{grid-template-columns:1fr;display:grid;align-items:start}
  .tf-section-head-row .btn{width:100%;max-width:320px}
  .tf-hero h1{max-width:none;font-size:clamp(2.4rem,9vw,3.4rem)}
  .tf-prediction-page .tf-pred-hero h1{font-size:clamp(2.8rem,9.5vw,4rem)}
  .tf-hero-visual-frame{animation:none}
  .tf-hero-float{position:relative;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;margin-top:10px;animation:none;display:inline-block}
  .tf-hero-float-b{margin-left:10px}
  .tf-card-grid-3,.tf-steps{grid-template-columns:1fr}
  .tf-product-stack{min-height:280px}
  .tf-float-card{position:relative;left:auto!important;top:auto!important;margin-bottom:12px;animation:none}
}

@media (max-width:720px){
  .tf-home{--home-nav-clearance:96px}
  .tf-section{padding:clamp(48px,10vw,72px) 0}
  .tf-hero{padding:calc(var(--home-nav-clearance) + 8px) 0 48px}
  .tf-hero-actions{display:grid;grid-template-columns:1fr}
  .tf-hero-actions .btn{width:100%}
  .tf-card-grid-4,.tf-market-grid{grid-template-columns:1fr}
  .tf-card-grid,.tf-steps,.tf-market-grid,.tf-feature-list{gap:12px}
  .tf-feature-row{grid-template-columns:48px 1fr}
  .tf-network{flex-direction:column;margin:16px 0 22px}
  .tf-net-line{width:2px;height:28px;background:linear-gradient(180deg,transparent,var(--tf-green),transparent);animation:none}
  .tf-eco{grid-template-columns:1fr}
  .tf-eco-node.is-center{margin:-8px auto 0;grid-column:auto}
  .tf-footer .footer-grid{grid-template-columns:1fr 1fr}
  .tf-cursor-on,.tf-cursor-on *{cursor:auto!important}
  .tf-cursor-dot,.tf-cursor-ring,.tf-cursor-aura{display:none!important}
  [data-reveal]{filter:none;transform:translateY(24px)}
}

@media (max-width:420px){
  .tf-footer .footer-grid{grid-template-columns:1fr}
  .tf-prob-row,.tf-dash-stats,.tf-market-probs{grid-template-columns:1fr 1fr}
  .tf-hero h1{font-size:clamp(2.2rem,11vw,2.8rem)}
}
