
/* ==================== TLREX HOME — dark wallet (mimics assets) ==================== */
.rf-home.tlx-homepage{
  background:#07080f !important;
  min-height:100dvh !important;
  padding:14px 16px calc(28px + var(--nav-h,72px)) !important;
  gap:0 !important;
  color:#fff !important;
}
body:has(.tlx-homepage),
.shell:has(.tlx-homepage),
.shell-main:has(.tlx-homepage){
  background:#07080f !important;
}
.rf-home.tlx-homepage > *:not(.tlx-home-box):not(.kyc-inline-banner):not(.kyc-gate){
  display:none !important;
}

.tlx-home{color:#e8eaf2}

.tlx-hh{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:16px;
}
.tlx-ava{
  width:42px; height:42px; border-radius:50%;
  background:linear-gradient(145deg,#6d5cff,#3b82f6);
  display:grid; place-items:center;
  overflow:hidden; flex:0 0 42px;
}
.tlx-ava img{width:100%;height:100%;object-fit:cover}
.tlx-hh-id{flex:1; min-width:0}
.tlx-hh-id b{
  display:block;
  font-size:15px;
  font-weight:800;
  letter-spacing:.02em;
  color:#fff;
}
.tlx-hh-id span{
  display:block;
  margin-top:3px;
  color:#8b90a7;
  font-size:11.5px;
  font-weight:600;
}
.tlx-bell{
  display:flex; flex-direction:column; align-items:center; gap:4px;
  background:transparent; border:0; color:#9aa0b8;
  font-size:10px; font-weight:700; min-width:54px;
}
.tlx-bell i{
  width:28px; height:28px; border-radius:50%;
  background:#15182a; color:#6ea8ff;
  display:grid; place-items:center;
  box-shadow:0 0 0 1px #2a3150;
}

.tlx-hbal{
  font-size:34px;
  font-weight:800;
  color:#22c55e;
  letter-spacing:-.03em;
  line-height:1;
  margin:4px 0 8px;
}
.tlx-hbal small{
  font-size:13px;
  font-weight:700;
  margin-left:4px;
  color:#22c55e;
  vertical-align:super;
}
.tlx-hmeta{
  color:#9aa3b8;
  font-size:12.5px;
  line-height:1.55;
  margin-bottom:16px;
}

/* live income ticker */
.tlx-tick{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  background:#0d111f;
  border:1px solid #171c2e;
  border-radius:14px;
  padding:13px 14px;
  margin-bottom:20px;
}
.tlx-tick-label{
  color:#8b90a7; font-size:11px; font-weight:700;
  line-height:1.5;
}
.tlx-tick-label b{color:#22c55e}
.tlx-tick-num{
  color:#22c55e;
  font-size:17px; font-weight:800;
  letter-spacing:-.02em;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}

.tlx-hacts{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px 8px;
  margin:6px 0 26px;
}
.tlx-hact{
  display:flex; flex-direction:column; align-items:center; gap:8px;
  background:none; border:0; color:#d7dbe8;
  font-size:11.5px; font-weight:600;
}
.tlx-hact .ic{
  width:52px; height:52px; border-radius:50%;
  background:transparent !important;
  box-shadow:none !important;
  display:grid; place-items:center;
  overflow:hidden;
}
.tlx-hact .ic img{
  width:52px; height:52px;
  object-fit:contain;
  display:block;
  border-radius:50%;
  background:transparent !important;
}

.tlx-sec{
  font-size:17px;
  font-weight:800;
  color:#fff;
  margin:0 0 12px;
}
.tlx-ast-head{
  display:flex; align-items:baseline; justify-content:space-between;
  margin-bottom:14px;
}
.tlx-ast-head .cur{color:#8b90a7; font-size:12px; font-weight:700}

.tlx-bar{
  height:8px; border-radius:99px;
  background:#1a2033;
  overflow:hidden;
  margin-bottom:14px;
}
.tlx-bar > i{
  display:block; height:100%;
  border-radius:99px;
  width:0;
  background:linear-gradient(90deg,#22c55e,#3b82f6);
  transition:width .4s ease;
}
.tlx-dist{display:flex; flex-direction:column; gap:10px; margin-bottom:24px}
.tlx-dist-row{
  display:flex; align-items:center; gap:8px;
  font-size:13.5px; color:#c9cedd;
}
.tlx-dist-row .dot{
  width:8px; height:8px; border-radius:50%;
  flex:0 0 8px;
}
.tlx-dist-row .dot.g{background:#22c55e}
.tlx-dist-row .dot.b{background:#3b82f6}
.tlx-dist-row b{
  margin-left:auto;
  font-size:14px;
  font-weight:800;
}
.tlx-dist-row b.g{color:#22c55e}
.tlx-dist-row b.c{color:#60a5fa}

.tlx-cols{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:8px;
  text-align:left;
  margin-bottom:24px;
}
.tlx-cols span{
  display:block;
  color:#8b90a7;
  font-size:12px;
  font-weight:600;
  margin-bottom:6px;
}
.tlx-cols b{
  color:#fff;
  font-size:14px;
  font-weight:700;
}

/* race card */
.tlx-race{
  background:linear-gradient(145deg,#151b30,#0d111f);
  border:1px solid #20263f;
  border-radius:16px;
  padding:14px 15px;
  margin-bottom:24px;
}
.tlx-race-top{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; margin-bottom:4px;
}
.tlx-race-top b{color:#f59e0b; font-size:13.5px; font-weight:800}
.tlx-race-top span{color:#8b90a7; font-size:11px; font-weight:700}
.tlx-race p{
  margin:0; color:#9aa3b8;
  font-size:11.5px; line-height:1.55;
}

/* quick access rows */
.tlx-hrow-grid{display:grid; gap:8px; margin-bottom:24px}
.tlx-hrow{
  display:flex; width:100%; min-height:60px; align-items:center; gap:10px;
  padding:10px 11px;
  border:1px solid #171c2e; border-radius:14px;
  background:#0d111f; color:#e8eaf2; text-align:left;
}
.tlx-hrow-icon{
  display:grid; width:34px; height:34px; flex:0 0 34px;
  place-items:center; border-radius:10px;
  background:rgba(59,130,246,.14); color:#60a5fa;
  font-size:15px; font-weight:900;
}
.tlx-hrow:nth-child(2n) .tlx-hrow-icon{background:rgba(34,197,94,.14); color:#22c55e}
.tlx-hrow:nth-child(3n) .tlx-hrow-icon{background:rgba(245,158,11,.14); color:#f59e0b}
.tlx-hrow-copy{min-width:0; flex:1}
.tlx-hrow-copy b{display:block; font-size:11.5px; font-weight:800; line-height:1.2}
.tlx-hrow-copy small{display:block; margin-top:4px; color:#8b90a7; font-size:8.5px; line-height:1.2}
.tlx-hrow-arrow{color:#8b7cff; font-size:19px; line-height:1}

/* activity rows */
.tlx-arow{
  display:flex; align-items:center; gap:10px;
  padding:12px;
  border-radius:14px;
  background:#0d111f;
  border:1px solid #171c2e;
  margin-bottom:8px;
}
.tlx-aava{
  width:38px; height:38px; border-radius:50%;
  display:grid; place-items:center;
  font-weight:800; font-size:13px;
  flex:0 0 38px;
}
.tlx-aava.in{background:rgba(34,197,94,.14); color:#22c55e}
.tlx-aava.out{background:rgba(254,143,117,.14); color:#fe8f75}
.tlx-aid{flex:1; min-width:0}
.tlx-aid b{
  display:block; color:#fff;
  font-size:12.5px; font-weight:700;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.tlx-aid span{
  display:block; color:#8b90a7;
  font-size:10.5px; margin-top:2px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.tlx-aamt{
  font-weight:800;
  font-size:12px; white-space:nowrap;
}
.tlx-aamt.in{color:#22c55e}
.tlx-aamt.out{color:#fe8f75}
.tlx-aempty{
  padding:22px 14px;
  border:1px dashed #232a45;
  border-radius:14px;
  color:#6b7288; font-size:12px;
  text-align:center; line-height:1.6;
}

/* dark stock-style nav on home (same as assets) */
body:has(.tlx-homepage) .bottomnav{
  background:#07080f !important;
  border-top:1px solid #121624 !important;
  box-shadow:none !important;
  pointer-events:auto !important;
  padding:0 0 calc(8px + env(safe-area-inset-bottom)) !important;
}
body:has(.tlx-homepage) .bottomnav-inner,
body:has(.tlx-homepage) .bottomnav .bottomnav-inner{
  background:#07080f !important;
  height:62px !important;
}
body:has(.tlx-homepage) .bottomnav-inner:before{display:none !important}
body:has(.tlx-homepage) .bottomnav .nav-item,
body:has(.tlx-homepage) .bottomnav .nav-item:nth-child(1),
body:has(.tlx-homepage) .bottomnav .nav-item:nth-child(2),
body:has(.tlx-homepage) .bottomnav .nav-item:nth-child(3),
body:has(.tlx-homepage) .bottomnav .nav-item:nth-child(4),
body:has(.tlx-homepage) .bottomnav .nav-item:nth-child(5){
  flex:1 1 0 !important;
  width:auto !important;
  background:transparent !important;
  border-radius:0 !important;
  box-shadow:none !important;
  margin:0 !important;
}
body:has(.tlx-homepage) .bottomnav .nav-content,
body:has(.tlx-homepage) .bottomnav .nav-content.active{
  background:transparent !important;
  color:#6b7288 !important;
  border-radius:0 !important;
}
body:has(.tlx-homepage) .bottomnav .nav-label{
  color:#6b7288 !important;
}
body:has(.tlx-homepage) .bottomnav .nav-item:has(.active) .nav-content,
body:has(.tlx-homepage) .bottomnav .nav-content.active,
body:has(.tlx-homepage) .bottomnav .nav-content.active .nav-label{
  color:#8b7cff !important;
}


/* ── Telegram community card ── */
.tlx-tg{
  position:relative;overflow:hidden;display:flex;align-items:center;gap:14px;
  margin:14px 0 4px;padding:16px;border-radius:18px;text-decoration:none;
  background:radial-gradient(130% 140% at 85% -20%, #22315E 0%, #131F44 48%, #0B1229 100%);
  border:1.5px solid rgba(242,179,61,.45);
  box-shadow:0 14px 34px rgba(10,16,36,.35), inset 0 1px 0 rgba(255,255,255,.08);
  transition:transform .15s ease,box-shadow .2s ease;
}
.tlx-tg:active{transform:scale(.985)}
.tlx-tg::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:
    radial-gradient(circle at 14% 18%, rgba(242,179,61,.16) 0%, transparent 42%),
    radial-gradient(circle at 88% 90%, rgba(255,138,61,.12) 0%, transparent 38%);
}
.tlx-tg-plane{
  position:relative;flex:0 0 52px;width:52px;height:52px;border-radius:16px;
  display:grid;place-items:center;color:#FFF1D6;
  background:linear-gradient(180deg,#FF8A3D 0%,#FF6B1A 100%);
  box-shadow:0 8px 20px rgba(255,107,26,.45), inset 0 1px 2px rgba(255,255,255,.35);
}
@keyframes tlxTgPulse{
  0%,100%{box-shadow:0 8px 20px rgba(255,107,26,.45),0 0 0 0 rgba(255,138,61,.45)}
  50%{box-shadow:0 8px 20px rgba(255,107,26,.6),0 0 0 11px rgba(255,138,61,0)}
}
.tlx-tg-plane{animation:tlxTgPulse 1.9s ease-in-out infinite}
.tlx-tg-copy{position:relative;flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.tlx-tg-k{font-size:9.5px;font-weight:800;letter-spacing:.16em;color:#F2B33D;text-transform:uppercase}
.tlx-tg-t{font-size:16.5px;font-weight:900;color:#FFF1D6;letter-spacing:-.01em}
.tlx-tg-s{font-size:11px;color:rgba(255,241,214,.7);font-weight:600;line-height:1.35}
.tlx-tg-cta{
  position:relative;display:inline-flex;align-items:center;gap:6px;
  background:#FFF1D6;color:#14213D;border-radius:999px;padding:9px 15px;
  font-size:12px;font-weight:800;letter-spacing:.03em;white-space:nowrap;
  box-shadow:0 6px 16px rgba(255,241,214,.25);
}
