
/* ==================== TLREX PAGES — dark wallet family (notifications, history, redeem, race, tasks) ==================== */
.page-pad.tlx-pg,
main.tlx-pg{
  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-pg),
.shell:has(.tlx-pg),
.shell-main:has(.tlx-pg){
  background:#07080f !important;
}
.page-pad.tlx-pg > *:not(.tlx-pg-box):not(.kyc-inline-banner):not(.kyc-gate),
main.tlx-pg > *:not(.tlx-pg-box):not(.kyc-inline-banner):not(.kyc-gate){
  display:none !important;
}

.tlx-pg{color:#e8eaf2}

.tlx-pgh{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:18px;
}
.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-pgh-id{flex:1; min-width:0}
.tlx-pgh-id b{
  display:block;
  font-size:15px;
  font-weight:800;
  letter-spacing:.02em;
  color:#fff;
}
.tlx-pgh-id span{
  display:block;
  margin-top:3px;
  color:#8b90a7;
  font-size:11.5px;
  font-weight:600;
}

.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-cols{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:8px;
  text-align:left;
  margin-bottom:22px;
}
.tlx-cols.two{grid-template-columns:1fr 1fr}
.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;
}
.tlx-cols b.g{color:#22c55e}
.tlx-cols b.o{color:#f59e0b}

/* records tabs */
.tlx-tabs{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:6px;
  margin-bottom:18px;
}
.tlx-tab{
  min-height:38px;
  border:1px solid #20263f;
  border-radius:10px;
  background:#0d111f;
  color:#8b90a7;
  font-size:11px;
  font-weight:800;
}
.tlx-tab.on{
  border-color:rgba(59,130,246,.55);
  background:rgba(59,130,246,.14);
  color:#60a5fa;
}

/* rows (history / notifications / board) */
.tlx-prow{
  display:flex; align-items:center; gap:10px;
  padding:12px;
  border-radius:14px;
  background:#0d111f;
  border:1px solid #171c2e;
  margin-bottom:8px;
}
.tlx-pava{
  width:38px; height:38px; border-radius:50%;
  display:grid; place-items:center;
  font-weight:800; font-size:13px;
  flex:0 0 38px;
}
.tlx-pava.in{background:rgba(34,197,94,.14); color:#22c55e}
.tlx-pava.out{background:rgba(254,143,117,.14); color:#fe8f75}
.tlx-pava.race{background:rgba(245,158,11,.14); color:#f59e0b}
.tlx-pava.rank1{background:rgba(245,158,11,.2); color:#f59e0b}
.tlx-pava.rank2{background:rgba(139,144,167,.2); color:#c9cedd}
.tlx-pava.rank3{background:rgba(205,127,50,.2); color:#e8965a}
.tlx-pid{flex:1; min-width:0}
.tlx-pid b{
  display:block; color:#fff;
  font-size:12.5px; font-weight:700;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.tlx-pid span{
  display:block; color:#8b90a7;
  font-size:10.5px; margin-top:2px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.tlx-pamt{
  font-weight:800;
  font-size:12px; white-space:nowrap;
}
.tlx-pamt.in{color:#22c55e}
.tlx-pamt.out{color:#fe8f75}
.tlx-pamt.dim{color:#8b90a7}
.tlx-pempty{
  padding:26px 14px;
  border:1px dashed #232a45;
  border-radius:14px;
  color:#6b7288; font-size:12px;
  text-align:center; line-height:1.6;
}

/* status pill */
.tlx-pill{
  font-size:8.5px; font-weight:800;
  padding:3px 7px; border-radius:99px;
  text-transform:uppercase; white-space:nowrap;
}
.tlx-pill.ok{background:rgba(34,197,94,.14); color:#22c55e}
.tlx-pill.wait{background:rgba(245,158,11,.14); color:#f59e0b}
.tlx-pill.bad{background:rgba(254,143,117,.14); color:#fe8f75}

/* race hero */
.tlx-racecard{
  background:linear-gradient(145deg,#151b30,#0d111f);
  border:1px solid #20263f;
  border-radius:16px;
  padding:15px;
  margin-bottom:22px;
}
.tlx-racecard-top{
  display:flex; align-items:baseline; justify-content:space-between;
  gap:10px; margin-bottom:6px;
}
.tlx-racecard-top b{color:#f59e0b; font-size:14px; font-weight:800}
.tlx-racecard-top span{color:#8b90a7; font-size:11px; font-weight:700}
.tlx-racecard p{
  margin:0; color:#9aa3b8;
  font-size:11.5px; line-height:1.55;
}
.tlx-racepool{
  color:#f59e0b;
  font-size:30px; font-weight:800;
  letter-spacing:-.03em; line-height:1;
  margin:8px 0 4px;
}
.tlx-racepool small{font-size:12px; vertical-align:super; color:#f59e0b}

/* tasks */
.tlx-task{
  background:#0d111f;
  border:1px solid #171c2e;
  border-radius:14px;
  padding:13px;
  margin-bottom:9px;
}
.tlx-task-top{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; margin-bottom:9px;
}
.tlx-task-name{font-size:13px; font-weight:800; color:#fff}
.tlx-task-reward{
  font-size:12.5px; font-weight:800; color:#22c55e; white-space:nowrap;
}
.tlx-task-bar{
  height:6px; border-radius:99px;
  background:#1a2033; overflow:hidden;
  margin-bottom:6px;
}
.tlx-task-bar i{
  display:block; height:100%;
  border-radius:99px;
  background:linear-gradient(90deg,#22c55e,#3b82f6);
}
.tlx-task-foot{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
}
.tlx-task-note{color:#8b90a7; font-size:10.5px}
.tlx-task-btn{
  min-height:34px; padding:0 14px;
  border-radius:9px; border:0;
  background:linear-gradient(135deg,#22c55e,#16a34a);
  color:#fff; font-weight:800; font-size:10.5px;
}
.tlx-task-btn:disabled{opacity:.4}

/* redeem form */
.tlx-form{
  background:#0d111f;
  border:1px solid #171c2e;
  border-radius:16px;
  padding:16px;
  margin-bottom:22px;
}
.tlx-input{
  width:100%; min-height:46px;
  padding:0 13px;
  border:1px solid #20263f; border-radius:11px;
  outline:0;
  background:#07080f; color:#fff;
  font-size:13px; font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.tlx-input:focus{border-color:#3b82f6; box-shadow:0 0 0 3px rgba(59,130,246,.12)}
.tlx-formbtn{
  margin-top:11px; width:100%; min-height:44px;
  border-radius:11px; border:0;
  background:linear-gradient(135deg,#3b82f6,#6d5cff);
  color:#fff; font-weight:800; font-size:12.5px;
}
.tlx-formbtn:disabled{opacity:.5}

/* toast */
.tlx-toast{
  position:fixed; left:50%; bottom:96px; transform:translateX(-50%);
  padding:11px 18px; border-radius:12px;
  background:#162b50; color:#fff;
  font-size:12px; font-weight:700;
  box-shadow:0 10px 30px rgba(0,0,0,.4);
  z-index:999;
  opacity:0; pointer-events:none;
  transition:opacity .25s ease;
}
.tlx-toast.show{opacity:1}

/* ==================== SUPPORT ==================== */
.tlx-sup-form{
  background:linear-gradient(145deg,#101528,#0b0e1c);
  border:1px solid #20263f;
  border-radius:16px;
  padding:16px;
  margin-bottom:24px;
}
.tlx-sup-label{
  display:block;
  color:#8b90a7; font-size:11px; font-weight:700;
  margin:0 0 6px;
}
.tlx-sup-input{
  width:100%; min-height:44px;
  padding:0 13px;
  border:1px solid #20263f; border-radius:11px;
  background:#07080f; color:#fff;
  font-size:12.5px; outline:0;
  font-family:inherit;
}
.tlx-sup-input:focus{
  border-color:rgba(59,130,246,.55);
  box-shadow:0 0 0 3px rgba(59,130,246,.12);
}
.tlx-sup-area{
  min-height:88px;
  padding:12px 13px;
  resize:vertical;
}
.tlx-sup-form .tlx-formbtn{margin-top:12px}

.tlx-tklist{display:grid;gap:8px}
.tlx-tk{
  display:flex; align-items:center; gap:10px;
  padding:13px;
  border-radius:14px;
  background:#0d111f;
  border:1px solid #171c2e;
  cursor:pointer;
  transition:border-color .15s ease;
}
.tlx-tk:active{border-color:rgba(59,130,246,.4)}
.tlx-tk-ic{
  width:38px; height:38px; flex:0 0 38px;
  border-radius:50%;
  display:grid; place-items:center;
  background:rgba(59,130,246,.14); color:#60a5fa;
  font-weight:800; font-size:14px;
}
.tlx-tk-copy{flex:1; min-width:0}
.tlx-tk-copy b{
  display:block; color:#fff;
  font-size:12.5px; font-weight:700;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.tlx-tk-copy span{
  display:block; color:#8b90a7;
  font-size:10.5px; margin-top:3px;
}
.tlx-tk-arrow{color:#8b7cff; font-size:18px}

.tlx-chat{
  display:flex; flex-direction:column; gap:10px;
  margin-bottom:20px;
}
.tlx-bub{
  max-width:82%;
  padding:11px 13px;
  border-radius:14px;
  font-size:12px; line-height:1.55;
  white-space:pre-wrap; word-break:break-word;
}
.tlx-bub.me{
  align-self:flex-end;
  background:rgba(59,130,246,.16);
  border:1px solid rgba(59,130,246,.3);
  color:#dbeafe;
  border-bottom-right-radius:4px;
}
.tlx-bub.cs{
  align-self:flex-start;
  background:#131a2e;
  border:1px solid #20263f;
  color:#c9cedd;
  border-bottom-left-radius:4px;
}
.tlx-bub-time{
  display:block; margin-top:6px;
  font-size:9px; color:#8b90a7;
}

/* dark nav */
body:has(.tlx-pg) .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-pg) .bottomnav-inner,
body:has(.tlx-pg) .bottomnav .bottomnav-inner{
  background:#07080f !important;
  height:62px !important;
}
body:has(.tlx-pg) .bottomnav-inner:before{display:none !important}
body:has(.tlx-pg) .bottomnav .nav-item,
body:has(.tlx-pg) .bottomnav .nav-item:nth-child(1),
body:has(.tlx-pg) .bottomnav .nav-item:nth-child(2),
body:has(.tlx-pg) .bottomnav .nav-item:nth-child(3),
body:has(.tlx-pg) .bottomnav .nav-item:nth-child(4),
body:has(.tlx-pg) .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-pg) .bottomnav .nav-content,
body:has(.tlx-pg) .bottomnav .nav-content.active{
  background:transparent !important;
  color:#6b7288 !important;
  border-radius:0 !important;
}
body:has(.tlx-pg) .bottomnav .nav-label{
  color:#6b7288 !important;
}
body:has(.tlx-pg) .bottomnav .nav-item:has(.active) .nav-content,
body:has(.tlx-pg) .bottomnav .nav-content.active,
body:has(.tlx-pg) .bottomnav .nav-content.active .nav-label{
  color:#8b7cff !important;
}
