/* 🔥 RAKAN trending page — on top of lb.css (tokens, scene, header). Layout: page head (title + tools) → network chips → one wide table → NFA pill → fixed bottom bar */
body.trx { padding-bottom: 64px; }
.trm { position: relative; z-index: 1; max-width: 1260px; margin: 0 auto; padding-block: 28px 40px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: grid; gap: 16px; }
.thead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.thead h1 { margin: 0; display: flex; align-items: center; gap: 12px; font: 800 clamp(1.5rem, 3.4vw, 2.1rem)/1.1 Sora, 'IBM Plex Sans Arabic', sans-serif; color: var(--white); letter-spacing: -.01em; }
html[dir="rtl"] .thead h1 { letter-spacing: 0; }
.thead h1 img { border-radius: 10px; filter: drop-shadow(0 6px 18px rgba(34, 195, 255, .35)); }
.thead h1 em { font-style: normal; background: linear-gradient(90deg, #8fe8ff, #2f7bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ttools { display: flex; gap: 8px; }
.tic, .tbtn2 { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; min-width: 40px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line2); background: var(--glass); color: var(--text); font: 600 .86rem/1 Inter, 'IBM Plex Sans Arabic', sans-serif; cursor: pointer; }
.tic { font-size: 1.15rem; padding: 0; } .tic.spin { animation: tspin .6s linear infinite; } @keyframes tspin { to { transform: rotate(360deg); } }
.tic:hover, .tbtn2:hover { color: var(--white); border-color: rgba(34, 195, 255, .5); }
.tbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tnets { display: flex; gap: 8px; flex-wrap: wrap; }
.tchip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; font: 600 .85rem/1 Inter, 'IBM Plex Sans Arabic', sans-serif; color: var(--mute); background: var(--glass); border: 1px solid var(--line2); border-radius: 999px; cursor: pointer; }
.tchip b { font: 700 .8rem/1 'JetBrains Mono', monospace; color: var(--text); }
.tchip .tcl { width: 16px; height: 16px; }
.tchip:hover { color: var(--white); border-color: rgba(34, 195, 255, .45); }
.tchip.on { color: #031022; background: linear-gradient(180deg, #8fe8ff, #2fb2ff); border-color: transparent; } .tchip.on b { color: #031022; }
.tcount, .tmeta { color: var(--dim); font: 500 .8rem/1.3 'JetBrains Mono', 'IBM Plex Sans Arabic', monospace; }
.tmeta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.twrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, var(--glass2), var(--glass)); backdrop-filter: blur(10px); }
.ttable { width: 100%; border-collapse: collapse; min-width: 1080px; }
.ttable th { position: sticky; top: 0; z-index: 1; text-align: start; padding: 13px 12px; font: 600 .78rem/1 Inter, 'IBM Plex Sans Arabic', sans-serif; color: var(--mute); background: rgba(8, 18, 38, .96); border-bottom: 1px solid var(--line2); white-space: nowrap; }
.ttable th.r { text-align: end; } .ttable th.c { text-align: center; }
.ttable th[data-k] { cursor: pointer; user-select: none; } .ttable th[data-k]:hover { color: var(--white); }
.ttable th[aria-sort="ascending"]::after { content: " ▲"; color: var(--cyan); font-size: .7em; } .ttable th[aria-sort="descending"]::after { content: " ▼"; color: var(--cyan); font-size: .7em; }
.ttable td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ttable tbody tr:last-child td { border-bottom: 0; }
.ttable tbody tr { transition: background .15s; } .ttable tbody tr:hover { background: rgba(255, 255, 255, .03); }
.trk { width: 64px; text-align: center; } .trk b { display: block; font: 700 .95rem/1 'JetBrains Mono', monospace; color: var(--mute); }
.tmed { display: grid; place-items: center; width: 26px; height: 26px; margin: 0 auto 5px; border-radius: 50%; font: 800 .75rem/1 Sora, sans-serif; color: #1a1200; }
.tmed.m1 { background: radial-gradient(circle at 35% 30%, #fff2c2, #f0a91c); box-shadow: 0 0 14px rgba(240, 169, 28, .5); } .tmed.m2 { background: radial-gradient(circle at 35% 30%, #fff, #8e9bb3); } .tmed.m3 { background: radial-gradient(circle at 35% 30%, #ffe0c8, #a45f2c); }
.trk:has(.m1) b { color: var(--gold); } .trk:has(.m2) b { color: var(--silver); } .trk:has(.m3) b { color: var(--bronze); }
.ttok { min-width: 320px; } .ttok { display: flex; align-items: center; gap: 12px; }
.tfr { position: relative; flex: none; width: 50px; height: 50px; padding: 2px; border-radius: 12px; background: linear-gradient(140deg, rgba(130, 175, 255, .35), rgba(130, 175, 255, .08)); }
.tfr.hot { background: linear-gradient(140deg, #ffcf6e, #f0a91c 60%, #e07b2c); box-shadow: 0 0 16px -4px rgba(240, 169, 28, .6); }
.tfr.sm { width: 40px; height: 40px; }
.tav { position: relative; width: 100%; height: 100%; border-radius: 10px; overflow: hidden; display: grid; place-items: center; font: 800 1rem/1 Sora, sans-serif; color: #04111f; }
.tav .tpic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; } .tav.has { background: #0b1324 !important; } .tav.has .tpic { opacity: 1; }
.tchn { position: absolute; right: -5px; bottom: -5px; width: 18px; height: 18px; border-radius: 50%; background: #0b1324; border: 2px solid #0b1324; }
.tmv { position: absolute; left: -6px; top: -8px; font: 700 .62rem/1 'JetBrains Mono', monospace; padding: 3px 5px; border-radius: 6px; color: #fff; white-space: nowrap; }
.tmv.up { background: #10a861; } .tmv.dn { background: #e0434b; } .tmv.new { background: linear-gradient(90deg, #22c3ff, #2f7bff); color: #fff; letter-spacing: .04em; }
.tnm { display: grid; gap: 6px; min-width: 0; }
.ttop { display: flex; align-items: baseline; gap: 7px; min-width: 0; flex-wrap: wrap; }
.tsym { font: 700 1rem/1.15 Sora, sans-serif; color: var(--white); direction: ltr; unicode-bidi: isolate; }
.tname { color: var(--mute); font-size: .8rem; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; }
.teye { display: inline-flex; align-items: center; gap: 4px; color: var(--cyan); font: 700 .74rem/1 'JetBrains Mono', monospace; padding: 3px 6px; border-radius: 6px; background: rgba(34, 195, 255, .1); border: 1px solid rgba(34, 195, 255, .3); align-self: center; }
.teye svg { width: 13px; height: 13px; }
.tqs { display: flex; gap: 4px; flex-wrap: wrap; }
.tq { display: inline-grid; place-items: center; width: 28px; height: 26px; border-radius: 7px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); color: var(--mute); cursor: pointer; padding: 0; }
.tq:hover, .tq:focus-visible { color: var(--white); border-color: var(--cyan); } .tq.go { color: var(--cyan); border-color: rgba(34, 195, 255, .45); } .tq.ok { color: var(--up); border-color: var(--up); }
.tnum { font: 600 .9rem/1 'JetBrains Mono', monospace; color: var(--text); white-space: nowrap; direction: ltr; unicode-bidi: isolate; text-align: end; }
.tnum.tb { color: var(--white); }
.tch i { font-style: normal; } .tch.up, .ttx .up, .tmj .up, .ttm .up { color: var(--up); } .tch.dn, .ttx .dn, .tmj .dn, .ttm .dn { color: var(--dn); }
.ttx i { font-style: normal; color: var(--dim); }
.tsp { text-align: center; }
.tspark .line { fill: none; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; } .tspark .flat { stroke: var(--dim); stroke-width: 1.4; }
.tspark.up .line { stroke: var(--up); } .tspark.up .area { fill: rgba(61, 245, 154, .12); } .tspark.dn .line { stroke: var(--dn); } .tspark.dn .area { fill: rgba(255, 107, 107, .12); }
.tage { color: var(--mute); } .tage.young { color: #ffb347; } .tage svg { width: 13px; height: 13px; vertical-align: -2px; }
.tempty { text-align: center; color: var(--mute); padding: 40px 10px !important; }
.tnfa { justify-self: center; margin: 6px 0 0; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line2); background: var(--glass); color: var(--mute); font-size: .88rem; text-align: center; }
.tnfa b { color: var(--white); } .tnfa a { color: var(--cyan); text-decoration: none; font-weight: 600; }
.tclip { position: fixed; opacity: 0; }
/* toasts */
.ttoasts { position: fixed; z-index: 60; top: calc(70px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.ttoast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(9, 18, 36, .96); border: 1px solid var(--line2); border-inline-start: 3px solid var(--up); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8); animation: tin .3s ease; }
.ttoast.out { opacity: 0; transform: translateY(-8px); transition: .35s; } @keyframes tin { from { opacity: 0; transform: translateY(-10px); } }
.ttoast .tt { flex: 1; min-width: 0; color: var(--text); font-size: .88rem; } .tth { display: flex; gap: 8px; align-items: center; } .tth b { color: var(--white); font: 700 .95rem/1.2 Sora, sans-serif; }
.trn { font: 700 .66rem/1 'JetBrains Mono', monospace; color: #c7b8ff; background: rgba(106, 76, 255, .2); border-radius: 5px; padding: 3px 5px; }
.ttm { color: var(--mute); font: 500 .8rem/1.5 'JetBrains Mono', 'IBM Plex Sans Arabic', monospace; } .ttm b { color: var(--white); }
.tclose { background: none; border: 0; color: var(--dim); font-size: 1.2rem; cursor: pointer; padding: 0 2px; } .tclose:hover { color: var(--white); }
/* modals */
.tmodal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(1, 4, 10, .78); backdrop-filter: blur(6px); }
.tmodal[hidden] { display: none; }
.tbox { width: min(460px, 100%); display: grid; gap: 12px; padding: 24px; border-radius: 18px; border: 1px solid rgba(255, 196, 61, .35); background: #0b1324; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); }
.tbox h2 { margin: 0; font: 700 1.1rem/1.2 Sora, 'IBM Plex Sans Arabic', sans-serif; color: #ffd56a; } .tbox p { margin: 0; color: var(--text); font-size: .9rem; } .tbox p.s, .tbox .s { color: var(--mute); font-size: .82rem; margin: 0; }
.tbox > button, .tsf button { justify-self: end; font: 700 .9rem/1 Sora, 'IBM Plex Sans Arabic', sans-serif; color: #241800; background: linear-gradient(180deg, #ffd56a, #f0a91c); border: 0; border-radius: 10px; padding: 11px 18px; cursor: pointer; }
.tset { border-color: var(--line2); padding: 0; gap: 0; } .tset h2 { color: var(--white); }
.tsh { display: flex; justify-content: space-between; gap: 10px; padding: 20px 22px; border-bottom: 1px solid var(--line); } .tsh h2 { margin-bottom: 4px; }
.tx { background: none; border: 0; color: var(--mute); font-size: 1.5rem; line-height: 1; cursor: pointer; } .tx:hover { color: var(--white); }
.tset section { display: grid; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--line); } .tset h3 { margin: 0; font: 700 .95rem/1.2 Sora, 'IBM Plex Sans Arabic', sans-serif; color: var(--white); }
.tsw { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; } .tsw span { display: grid; gap: 2px; } .tsw b { color: var(--text); font-weight: 600; font-size: .9rem; } .tsw small { color: var(--mute); font-size: .78rem; }
.tsw input { position: absolute; opacity: 0; width: 1px; height: 1px; } .tsw i { flex: none; position: relative; width: 42px; height: 24px; border-radius: 999px; background: rgba(255, 255, 255, .12); transition: background .2s; }
.tsw i::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.tsw input:checked + i { background: #10a861; } .tsw input:checked + i::after { transform: translateX(18px); } html[dir="rtl"] .tsw input:checked + i::after { transform: translateX(-18px); }
.tsw input:focus-visible + i { outline: 2px solid var(--cyan); outline-offset: 2px; }
.ttasks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tcheck { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .02); color: var(--text); font-size: .86rem; cursor: pointer; }
.tcheck input { accent-color: #22c3ff; } .tqi { display: inline-grid; color: var(--mute); }
.tsf { display: flex; justify-content: flex-end; padding: 16px 22px; }
.tsf button { color: #052513; background: linear-gradient(180deg, #5af0a6, #10a861); }
/* bottom bar */
.tfoot { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; background: rgba(5, 11, 24, .94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.tfoot .in { max-width: 1260px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 10px calc(10px + env(safe-area-inset-bottom, 0px)); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.tmjs { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; min-width: 0; } .tmjs::-webkit-scrollbar { display: none; }
.tmj { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font: 600 .8rem/1 'JetBrains Mono', monospace; color: var(--text); direction: ltr; } .tmj b { color: var(--white); } .tmj .btc { font-style: normal; color: #f7931a; font-weight: 800; }
.tfr2 { display: flex; align-items: center; gap: 14px; flex: none; }
.tsys { display: inline-flex; align-items: center; gap: 6px; color: var(--mute); font: 500 .8rem/1 Inter, 'IBM Plex Sans Arabic', sans-serif; text-decoration: none; white-space: nowrap; }
.tsys i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); } .tsys.ok i { background: var(--up); box-shadow: 0 0 8px var(--up); } .tsys.ok b { color: var(--up); }
.tsys.warn i { background: #ffc94a; } .tsys.warn b { color: #ffc94a; } .tsys.bad i { background: var(--dn); } .tsys.bad b { color: var(--dn); }
.tabout { position: relative; } .tabout > button { background: none; border: 1px solid var(--line2); border-radius: 9px; color: var(--text); font: 600 .8rem/1 Inter, 'IBM Plex Sans Arabic', sans-serif; padding: 8px 11px; cursor: pointer; }
.tmenu { position: absolute; bottom: calc(100% + 10px); inset-inline-end: 0; min-width: 200px; display: grid; padding: 6px; border-radius: 12px; background: #0b1324; border: 1px solid var(--line2); box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .8); }
.tmenu[hidden] { display: none; } .tmenu a { padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .88rem; } .tmenu a:hover { background: rgba(255, 255, 255, .05); color: var(--white); }
.ttop2 { position: fixed; z-index: 31; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(70px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(9, 18, 36, .92); color: var(--white); font-size: 1.1rem; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; }
.ttop2.on { opacity: 1; pointer-events: auto; }
@media (max-width: 720px) { .tfr2 .tsys:first-child { display: none; } .tmj:nth-child(n+3) { display: none; } .thead h1 img { width: 32px; height: 32px; } }
@media (prefers-reduced-motion: reduce) { .tic.spin, .ttoast { animation: none; } }
