/* HalalTrading.com — trading screen */
:root {
  --bg: #0b1119; --bg2: #0f1621; --panel: #131b26; --panel2: #1a2431; --line: #212d3c; --line2: #2a3848;
  --text: #e9eef4; --muted: #7c8a9c; --brand: #2ee87a; --brand2: #18c763;
  --up: #17c964; --up2: #0ea552; --down: #ff4b5c; --down2: #e02c40; --gold: #ffc44d;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 14px/1.3 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
input { font: inherit; color: inherit; }
.up { color: var(--up); } .down { color: var(--down); }

.app { display: grid; grid-template-columns: 78px 1fr 280px; grid-template-rows: 62px 1fr; height: 100vh; height: 100dvh; }

/* ---- sidebar ---- */
.side { grid-row: 1 / 3; background: var(--bg2); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; padding: 10px 6px; gap: 4px; }
.side-logo img { width: 40px; height: 40px; border-radius: 10px; margin: 2px 0 10px; display: block; }
.side-btn { width: 66px; padding: 10px 0 8px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; transition: .15s; }
.side-btn svg { width: 22px; height: 22px; }
.side-btn:hover { color: var(--text); background: rgba(255,255,255,.04); }
.side-btn.on { background: linear-gradient(160deg, var(--brand), var(--brand2)); color: #04130a; box-shadow: 0 6px 18px rgba(46,232,122,.28); }
.side-sp { flex: 1; }

/* ---- header ---- */
.top { grid-column: 2 / 4; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--bg2); border-bottom: 1px solid var(--line); min-width: 0; }
.m-logo, .m-asset { display: none; }
.add-asset { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: linear-gradient(160deg, var(--brand), var(--brand2)); color: #04130a; display: grid; place-items: center; }
.add-asset svg { width: 20px; height: 20px; stroke-width: 2.6; }
.tabs { display: flex; gap: 6px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 26px 6px 8px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); flex-shrink: 0; transition: .15s; }
.tab:hover { border-color: var(--line2); }
.tab.on { background: #1d2a3a; border-color: var(--brand); }
.tab b { display: block; font-size: 12.5px; white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.tab small { display: block; font-size: 11.5px; font-weight: 700; color: var(--gold); }
.tab .tx { position: absolute; right: 6px; top: 6px; width: 15px; height: 15px; border-radius: 50%; font-size: 10px; display: grid; place-items: center; color: var(--muted); }
.tab .tx:hover { background: rgba(255,255,255,.1); color: #fff; }
.top-r { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.acct { position: relative; }
.acct-btn { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.acct-btn svg { width: 16px; height: 16px; color: var(--muted); }
.acct-l { text-align: left; }
.acct-l small { display: block; font-size: 10px; letter-spacing: .6px; color: var(--gold); font-weight: 700; }
.acct-l b { font-size: 15px; font-variant-numeric: tabular-nums; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 250px; background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; padding: 8px; box-shadow: 0 20px 50px rgba(0,0,0,.55); z-index: 60; display: none; }
.acct.open .acct-menu { display: block; }
.acct-row { display: flex; justify-content: space-between; align-items: center; padding: 10px; border-radius: 10px; }
.acct-row small { display: block; color: var(--muted); font-size: 11.5px; }
.acct-row.on { background: rgba(46,232,122,.08); }
.acct-row.off { opacity: .5; }
.chk { color: var(--brand); font-weight: 800; }
.acct-menu button, .acct-menu a { display: block; width: 100%; text-align: left; padding: 10px; border-radius: 10px; font-weight: 600; }
.acct-menu button:hover, .acct-menu a:hover { background: rgba(255,255,255,.05); }
.dep { padding: 11px 18px; border-radius: 10px; background: linear-gradient(160deg, var(--brand), var(--brand2)); color: #04130a; font-weight: 800; opacity: .45; cursor: not-allowed; }

/* ---- chart stage ---- */
.stage { position: relative; min-width: 0; min-height: 0; background: radial-gradient(1200px 600px at 50% 0%, #101a26, var(--bg)); overflow: hidden; }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.ch-info { position: absolute; left: 14px; top: 10px; z-index: 3; pointer-events: none; }
.clock { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.clock span#clock { color: #c6d0dc; font-weight: 600; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 8px var(--brand); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.pair-name { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 15px; }
.otc-tag { font-size: 10px; font-weight: 800; letter-spacing: .5px; padding: 2px 6px; border-radius: 5px; background: rgba(255,196,77,.15); color: var(--gold); }
.watermark { position: absolute; inset: 0; display: grid; place-items: center; font-size: min(22vw, 260px); font-weight: 900; color: rgba(255,255,255,.018); letter-spacing: 20px; pointer-events: none; user-select: none; }
.tools { position: absolute; left: 12px; bottom: 34px; z-index: 4; display: flex; flex-direction: column; gap: 8px; }
.tool { width: 40px; height: 40px; border-radius: 10px; background: rgba(19,27,38,.92); border: 1px solid var(--line2); font-weight: 700; font-size: 13px; display: grid; place-items: center; backdrop-filter: blur(6px); }
.tool svg { width: 20px; height: 20px; }
.tool:hover { border-color: var(--brand); }
.tool.off { opacity: .55; }
.tool-pop { position: fixed; left: 60px; top: 200px; z-index: 70; background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; padding: 10px; display: none; width: 268px; box-shadow: 0 20px 40px rgba(0,0,0,.55); }
.tool-pop.open { display: block; animation: tin .16s ease; }
.tf-h { font-weight: 800; font-size: 13px; margin: 0 2px 6px; }
.tf-g { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin: 8px 2px 4px; }
.tf-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.tool-pop .tf-row button { border: 1px solid var(--line2); }
.tool-more { display: flex; flex-direction: column; gap: 8px; max-height: 0; overflow: hidden; opacity: 0; transform: translateY(8px); transition: max-height .25s ease, opacity .2s ease, transform .25s ease; pointer-events: none; }
.tools.open .tool-more { max-height: 320px; opacity: 1; transform: none; pointer-events: auto; }
.tool-tg { position: relative; color: var(--brand); }
.tool-tg .tg-tri { position: absolute; right: 3px; bottom: 3px; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 5px solid currentColor; transition: transform .25s ease; }
.tools.open .tool-tg { background: rgba(46,232,122,.14); border-color: var(--brand); }
.tools.open .tool-tg .tg-tri { transform: rotate(180deg); }
.tf-chip { display: none; }
.tool-pop button { padding: 8px 0; border-radius: 8px; font-weight: 700; font-size: 12.5px; }
.tool-pop button:hover { background: rgba(255,255,255,.06); }
.tool-pop button.on { background: var(--brand); color: #04130a; }
.loading { position: absolute; inset: 0; display: none; place-items: center; background: rgba(11,17,25,.5); z-index: 5; }
.loading.on { display: grid; }
.loading span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- order panel ---- */
.order { background: var(--bg2); border-left: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.o-head { display: flex; align-items: center; gap: 8px; padding: 4px 2px 6px; }
.o-head b { font-size: 14.5px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-pay { font-weight: 800; color: var(--gold); }
.o-grid { display: flex; flex-direction: column; gap: 10px; }
.box { position: relative; border: 1px solid var(--line2); border-radius: 12px; padding: 7px 8px 8px; background: var(--panel); }
.box label { position: absolute; top: -8px; left: 10px; font-size: 11px; color: var(--muted); background: var(--bg2); padding: 0 5px; }
.box-row { display: flex; align-items: center; gap: 6px; }
.pm { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line2); font-size: 18px; line-height: 1; flex-shrink: 0; display: grid; place-items: center; color: #c9d3de; }
.pm:hover { border-color: var(--brand); color: #fff; }
.val { flex: 1; text-align: center; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; padding: 4px 0; border-radius: 8px; min-width: 0; }
button.val:hover { background: rgba(255,255,255,.04); }
.val.amt { display: flex; justify-content: center; align-items: center; gap: 2px; }
.val.amt input { width: 70px; background: none; border: 0; outline: none; text-align: center; font-weight: 700; font-size: 17px; -moz-appearance: textfield; }
.val.amt input::-webkit-outer-spin-button, .val.amt input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.time-pop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; padding: 6px; display: none; grid-template-columns: repeat(3, 1fr); gap: 4px; z-index: 20; box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.time-pop.open { display: grid; }
.time-pop button { padding: 9px 0; border-radius: 8px; font-weight: 700; font-size: 13px; }
.time-pop button:hover { background: rgba(255,255,255,.06); }
.time-pop button.on { background: var(--brand); color: #04130a; }
.o-payout { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px; color: var(--muted); font-size: 13px; }
.o-payout b { color: var(--brand); font-size: 18px; font-variant-numeric: tabular-nums; }
.o-btns { display: flex; flex-direction: column; gap: 10px; }
.o-btns button { display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 18px; height: 54px; border-radius: 12px; font-size: 18px; font-weight: 800; color: #fff; transition: transform .1s, filter .15s, box-shadow .15s; }
.o-btns button:active { transform: scale(.98); }
.o-btns button:disabled { filter: grayscale(.6) brightness(.7); cursor: wait; }
.o-btns i { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; }
.o-btns i svg { width: 18px; height: 18px; stroke-width: 2.8; }
.buy { background: linear-gradient(180deg, #1fd572, var(--up2)); box-shadow: 0 8px 24px rgba(23,201,100,.3); }
.buy:hover { box-shadow: 0 10px 30px rgba(23,201,100,.5); }
.sell { background: linear-gradient(180deg, #ff5d6c, var(--down2)); box-shadow: 0 8px 24px rgba(255,75,92,.28); }
.sell:hover { box-shadow: 0 10px 30px rgba(255,75,92,.48); }
.o-trades { flex: 1; min-height: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); margin: 4px -12px 0; padding-top: 4px; }
.tt { display: flex; gap: 2px; padding: 0 8px; }
.tt button { flex: 1; padding: 10px 0; font-weight: 700; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; }
.tt button.on { color: var(--text); border-color: var(--brand); }
.tt button span { display: inline-block; min-width: 18px; padding: 1px 5px; border-radius: 9px; background: var(--panel2); font-size: 11px; margin-left: 4px; }
.tlist { flex: 1; overflow-y: auto; padding: 6px 8px; }
.tlist .empty { text-align: center; color: var(--muted); padding: 28px 10px; font-size: 13px; line-height: 1.5; }
.tday { text-align: center; font-size: 11px; color: var(--muted); padding: 8px 0 4px; font-weight: 700; letter-spacing: .5px; }
.ti { border-radius: 10px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 6px; overflow: hidden; }
.ti-top { display: flex; align-items: center; gap: 8px; padding: 9px 10px; cursor: pointer; }
.ti-top .flags { transform: scale(.85); }
.ti-n { flex: 1; min-width: 0; }
.ti-n b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ti-n small { font-size: 12px; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
.ti-r { text-align: right; font-variant-numeric: tabular-nums; }
.ti-r b { display: block; font-size: 12.5px; }
.ti-r small { font-size: 12px; font-weight: 700; }
.ti-bar { height: 3px; background: var(--line); }
.ti-bar i { display: block; height: 100%; background: var(--brand); transition: width .25s linear; }
.ti-d { display: none; padding: 4px 10px 10px; font-size: 12px; color: var(--muted); }
.ti.open .ti-d { display: block; }
.ti-d div { display: flex; justify-content: space-between; padding: 3px 0; }
.ti-d div b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* flags */
.flags { position: relative; width: 30px; height: 24px; flex-shrink: 0; display: inline-block; }
.flags img, .flags .ico { position: absolute; width: 20px; height: 20px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg2); background: #2a3848; }
.flags img:first-child, .flags .ico:first-child { left: 0; top: 0; z-index: 1; }
.flags img:nth-child(2) { left: 10px; top: 4px; }
.flags.one img, .flags.one .ico { width: 24px; height: 24px; left: 2px; top: 0; }
.flags .ico { display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; }

/* ---- sheets (picker, trades) ---- */
.sheet { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.55); display: none; }
.sheet.open { display: block; }
.sheet-in { position: absolute; left: 92px; top: 70px; width: 520px; max-height: calc(100vh - 90px); background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.6); display: flex; flex-direction: column; overflow: hidden; animation: pop .18s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.sh-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 10px; }
.sh-head h3 { margin: 0; font-size: 18px; }
.x { width: 32px; height: 32px; border-radius: 50%; color: var(--muted); }
.x:hover { background: rgba(255,255,255,.06); color: #fff; }
.cats { display: flex; gap: 6px; padding: 0 18px 10px; overflow-x: auto; scrollbar-width: none; }
.cats button { padding: 7px 13px; border-radius: 8px; font-weight: 700; font-size: 12.5px; color: var(--muted); background: var(--panel2); white-space: nowrap; }
.cats button.on { background: var(--brand); color: #04130a; }
.search { margin: 0 18px 8px; display: flex; align-items: center; gap: 8px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; padding: 0 12px; }
.search svg { width: 17px; height: 17px; color: var(--muted); }
.search input { flex: 1; background: none; border: 0; outline: none; padding: 11px 0; }
.pk-head, .pk { display: grid; grid-template-columns: 28px 1fr 90px 64px; align-items: center; gap: 6px; }
.pk-head { padding: 6px 18px; font-size: 11.5px; color: var(--muted); grid-template-columns: 1fr 90px 64px; padding-left: 52px; }
.pk-head span:not(:first-child), .pk span:not(:nth-child(-n+2)) { text-align: right; }
.pk-list { overflow-y: auto; padding: 0 10px 12px; }
.pk { padding: 9px 8px; border-radius: 10px; cursor: pointer; }
.pk:hover { background: rgba(255,255,255,.04); }
.pk.on { background: rgba(46,232,122,.08); }
.pk .star { color: var(--muted); font-size: 16px; text-align: center; }
.pk .star.on { color: var(--gold); }
.pk-n { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pk-n b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk .pay { color: var(--gold); font-weight: 800; }
.pk .chg { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 13px; }

/* ---- toasts ---- */
.toasts { position: fixed; right: 296px; top: 74px; z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { min-width: 240px; max-width: 320px; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line2); box-shadow: 0 16px 40px rgba(0,0,0,.5); animation: tin .25s ease; font-size: 13px; }
.toast b { display: block; font-size: 15px; margin-bottom: 2px; }
.toast.win { border-color: var(--up); } .toast.win b { color: var(--up); }
.toast.loss { border-color: var(--down); } .toast.loss b { color: var(--down); }
.toast.bad { border-color: var(--down); }
@keyframes tin { from { opacity: 0; transform: translateX(20px); } }

.mnav { display: none; }

/* ================= MOBILE ================= */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; grid-template-rows: 54px 1fr auto 58px; }
  .side, .tabs, .add-asset, .dep, .o-head, .o-trades { display: none; }
  .top { grid-column: 1; padding: 0 10px; gap: 8px; }
  .m-logo { display: block; flex-shrink: 0; }
  .m-logo img { width: 32px; height: 32px; border-radius: 8px; display: block; }
  .m-asset { display: flex; align-items: center; gap: 7px; padding: 4px 8px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
  .m-asset > span:nth-child(2) { text-align: left; min-width: 0; }
  .m-asset b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
  .m-asset small { font-size: 11px; color: var(--gold); font-weight: 800; }
  .m-asset > svg { width: 15px; height: 15px; color: var(--muted); flex-shrink: 0; }
  .acct-btn { padding: 5px 9px; gap: 6px; }
  .acct-l small { font-size: 9px; }
  .acct-l b { font-size: 13.5px; }
  .stage { grid-row: 2; }
  .ch-info { left: 10px; top: 6px; }
  .pair-name { display: none; }
  .tools { left: 8px; bottom: 26px; gap: 6px; }
  .tool { width: 36px; height: 36px; }
  .tool-pop { width: 248px; }
  .tools.open .tool-more { max-height: 280px; } .tool-more { gap: 6px; }
  #tfBtn { display: none; }
  .tf-chip { display: flex; align-items: center; gap: 2px; flex-shrink: 0; height: 34px; padding: 0 7px 0 9px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line2); font-weight: 800; font-size: 12.5px; }
  .tf-chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; }
  .order { grid-row: 3; border-left: 0; border-top: 1px solid var(--line); padding: 12px 10px 10px; gap: 8px; }
  .o-grid { flex-direction: row; gap: 8px; }
  .o-grid .box { flex: 1; min-width: 0; }
  .pm { width: 28px; height: 28px; }
  .val, .val.amt input { font-size: 15.5px; }
  .val.amt input { width: 52px; }
  .time-pop { top: auto; bottom: calc(100% + 6px); width: 240px; grid-template-columns: repeat(3, 1fr); }
  .o-payout { padding: 0 2px; font-size: 12.5px; }
  .o-payout b { font-size: 15px; }
  .o-btns { flex-direction: row-reverse; gap: 8px; }
  .o-btns button { flex: 1; height: 50px; font-size: 17px; }
  .mnav { grid-row: 4; display: flex; background: var(--bg2); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .mnav button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--muted); position: relative; }
  .mnav button svg { width: 21px; height: 21px; }
  .mnav button.on { color: var(--brand); }
  .mnav em { position: absolute; top: 5px; left: 54%; font-style: normal; font-size: 10px; font-weight: 800; background: var(--brand); color: #04130a; border-radius: 9px; padding: 0 5px; }
  .sheet-in { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 86vh; border-radius: 18px 18px 0 0; animation: up .22s ease; }
  @keyframes up { from { transform: translateY(40px); opacity: 0; } }
  #tradesSheet .sheet-in { height: 70vh; }
  .toasts { right: 10px; left: 10px; top: 62px; align-items: center; }
  .toast { min-width: 0; width: 100%; max-width: 420px; }
  .watermark { letter-spacing: 6px; }
}
@media (max-width: 380px) {
  .acct-l small { display: none; }
  .m-asset b { max-width: 92px; }
}
.sh-head, .cats, .search, .pk-head, .sheet-in > .tt { flex-shrink: 0; }
@media (max-width: 900px) {
  .pk-head, .pk { grid-template-columns: 24px 1fr 62px 44px; gap: 4px; }
  .pk-head { grid-template-columns: 1fr 62px 44px; padding-left: 42px; padding-right: 18px; }
  .pk-n b { font-size: 13px; }
  .pk .chg { font-size: 12px; }
}
[hidden] { display: none !important; }

/* account switch + country */
.acct-row { cursor: pointer; }
.acct-row .chk { visibility: hidden; }
.acct-row.on { background: rgba(46,232,122,.08); }
.acct-row.on .chk { visibility: visible; }
.acct.real .acct-l small { color: var(--brand); }
.acct-c { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; font-size: 12.5px; color: var(--muted); }
.acct-c select { background: var(--bg2); border: 1px solid var(--line2); color: var(--text); border-radius: 8px; padding: 6px; max-width: 150px; }
/* time switch */
.sw { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); font-size: 9.5px; font-weight: 800; letter-spacing: .6px; color: var(--brand); background: var(--bg2); padding: 0 6px; }
.sw:hover { color: #fff; }
.box { margin-bottom: 4px; }
/* leaderboard */
.sheet-in.lb { left: auto; right: 296px; width: 440px; }
.lb-sum { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 0 18px 10px; flex-shrink: 0; }
.lb-sum div { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.lb-sum b { display: block; font-size: 20px; }
.lb-sum small { color: var(--muted); font-size: 11.5px; }
.lb-you { padding: 0 18px; flex-shrink: 0; }
.lb-list { overflow-y: auto; padding: 4px 10px 6px; }
.lb-row { display: grid; grid-template-columns: 34px 26px 1fr auto; gap: 8px; align-items: center; padding: 9px 8px; border-radius: 10px; }
.lb-row:nth-child(odd) { background: rgba(255,255,255,.02); }
.lb-row.me { background: rgba(46,232,122,.1); border: 1px solid rgba(46,232,122,.35); }
.lb-rank { font-weight: 800; text-align: center; color: var(--muted); }
.lb-row img { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; }
.lb-n b { display: block; font-size: 13.5px; } .lb-n small { color: var(--muted); font-size: 11.5px; }
.lb-p { font-weight: 800; font-variant-numeric: tabular-nums; }
.lb-note { margin: 0; padding: 8px 18px 14px; font-size: 11.5px; color: var(--muted); flex-shrink: 0; }
.lb-empty { text-align: center; color: var(--muted); padding: 30px 10px; line-height: 1.6; }
@media (max-width: 900px) { .sheet-in.lb { left: 0; right: 0; width: auto; height: 80vh; } }

/* ---- mode switch ---- */
.mode-sw { display: flex; background: var(--bg); border: 1px solid var(--line2); border-radius: 12px; padding: 3px; gap: 3px; flex-shrink: 0; }
.mode-sw button { flex: 1; padding: 8px 0; border-radius: 9px; font-weight: 800; font-size: 13px; color: var(--muted); }
.mode-sw button.on { background: linear-gradient(160deg, var(--brand), var(--brand2)); color: #04130a; }
#binPanel, #fxPanel { display: flex; flex-direction: column; gap: 10px; }
#binPanel[hidden], #fxPanel[hidden] { display: none !important; }
.val .cs { font-weight: 700; }
/* ---- forex panel ---- */
.fx-acc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fx-acc div { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 7px 8px; min-width: 0; }
.fx-acc small { display: block; font-size: 10.5px; color: var(--muted); }
.fx-acc b { font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.levs { display: flex; gap: 4px; flex-wrap: wrap; padding-top: 4px; }
.levs button { flex: 1 0 28%; padding: 6px 0; border-radius: 8px; background: var(--panel2); font-size: 12px; font-weight: 700; color: #c9d3de; }
.levs button.on { background: var(--brand); color: #04130a; }
.sltp-tog { display: none; font-size: 12.5px; font-weight: 700; color: var(--brand); text-align: left; padding: 2px 4px; }
.sltp { display: flex; flex-direction: column; gap: 8px; }
.sl-row { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 7px 8px; }
.sl-row label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #c9d3de; margin-bottom: 5px; cursor: pointer; }
.sl-row label input { accent-color: var(--brand); width: 15px; height: 15px; }
.sl-row .val, .sl-row .val input { font-size: 15px; }
.sl-row:has(input[type=checkbox]:not(:checked)) .box-row { opacity: .4; }
.fx-info { display: flex; flex-direction: column; gap: 3px; padding: 0 4px; font-size: 12.5px; color: var(--muted); }
.fx-info div { display: flex; justify-content: space-between; }
.fx-info b { color: var(--text); font-variant-numeric: tabular-nums; }
.fx-info em { font-style: normal; color: var(--gold); font-weight: 700; }
.fx-btns { flex-direction: row !important; gap: 8px; }
.fx-btns button { flex: 1; flex-direction: column; justify-content: center; align-items: center; gap: 1px; padding: 0; height: 56px; }
.fx-btns small { font-size: 12px; font-weight: 600; opacity: .9; font-variant-numeric: tabular-nums; }
.pclose { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line2); color: var(--muted); font-size: 11px; flex-shrink: 0; }
.pclose:hover { border-color: var(--down); color: var(--down); }
.pedit { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.pedit input { width: 0; flex: 1; background: var(--bg2); border: 1px solid var(--line2); border-radius: 8px; padding: 6px; font-size: 12px; }
.pedit button { padding: 6px 10px; border-radius: 8px; background: var(--panel2); font-weight: 700; font-size: 12px; }
@media (max-width: 900px) {
  .order { gap: 7px; }
  .mode-sw button { padding: 6px 0; font-size: 12.5px; }
  .fx-acc { display: none; }
  #fxPanel .o-grid { flex-direction: row; }
  .lev-box .levs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .lev-box .levs button { flex: 0 0 auto; padding: 6px 8px; }
  .sltp-tog { display: block; }
  .sltp { display: none; }
  .sltp.open { display: flex; flex-direction: row; gap: 6px; }
  .sltp.open .sl-row { flex: 1; min-width: 0; }
  .sl-row .pm { width: 24px; height: 24px; font-size: 15px; }
  .sl-row .val input { width: 46px; }
  .fx-info { flex-direction: row; justify-content: space-between; font-size: 11px; }
  .fx-info div { flex-direction: column; }
  .fx-btns button { height: 50px; }
}

.fx-acc { grid-template-columns: 1fr; gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; }
.fx-acc div { display: flex; justify-content: space-between; align-items: baseline; background: none; border: 0; padding: 2px 0; }
.fx-acc small { font-size: 12px; }
.fx-acc b { font-size: 13px; overflow: visible; }
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .order, #fxPanel, #binPanel, .top { min-width: 0; }
  #fxPanel .o-grid .box { min-width: 0; flex: 1 1 0; }
  .lev-box .levs { min-width: 0; }
}

/* ---- site menu above the pair tabs ---- */
.app { grid-template-rows: 52px 62px 1fr; }
.side { grid-row: 1 / 4; }
.tnav { grid-column: 2 / 4; grid-row: 1; display: flex; align-items: center; gap: 22px; padding: 0 16px; background: #0a0f16; border-bottom: 1px solid var(--line); min-width: 0; }
.top { grid-row: 2; }
.stage { grid-row: 3; grid-column: 2; }
.order { grid-row: 3; grid-column: 3; }
.tbrand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; padding-right: 20px; border-right: 1px solid var(--line); }
.tbrand img { width: 30px; height: 30px; border-radius: 8px; }
.tbrand b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.2px; line-height: 1.1; }
.tbrand b em { font-style: normal; color: var(--brand); }
.tbrand small { display: block; font-size: 9.5px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); }
.tlinks { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.tlinks::-webkit-scrollbar { display: none; }
.tlinks a { padding: 8px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: #c4ceda; white-space: nowrap; transition: .15s; }
.tlinks a:hover { background: rgba(255,255,255,.05); color: #fff; }
.tlinks a.on { background: linear-gradient(160deg, var(--brand), var(--brand2)); color: #04130a; box-shadow: 0 4px 14px rgba(46,232,122,.25); }
.side-logo { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: 46px 54px 1fr auto 58px; }
  .tnav { grid-column: 1; grid-row: 1; gap: 10px; padding: 0 10px; }
  .tbrand { padding-right: 10px; gap: 7px; }
  .tbrand img { width: 26px; height: 26px; }
  .tbrand b { font-size: 13.5px; }
  .tbrand small { display: none; }
  .tlinks a { padding: 6px 10px; font-size: 12.5px; }
  .top { grid-row: 2; grid-column: 1; }
  .m-logo { display: none !important; }
  .stage { grid-row: 3; grid-column: 1; }
  .order { grid-row: 4; grid-column: 1; }
  .mnav { grid-row: 5; }
}

/* agro markets */
.flags.agro img { background: none; border: 0; width: 26px; height: 26px; left: 1px; top: -1px; }
.pk-nm { display: flex; flex-direction: column; min-width: 0; }
.pk-nm small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agro-note { margin-top: 5px; font-size: 11.5px; color: #9ee8b8; }
@media (max-width: 900px) { .agro-note { display: none; } }

/* reset chart button: shows after zooming or dragging the chart */
.reset-chart { position: absolute; z-index: 6; right: 96px; bottom: 34px; display: none; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 10px; background: rgba(19,27,38,.95); border: 1px solid var(--brand); color: var(--brand); font-weight: 700; font-size: 12.5px; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.reset-chart.show { display: inline-flex; animation: pop .2s ease; }
.reset-chart svg { width: 16px; height: 16px; }
.reset-chart:hover { background: var(--brand); color: #04130a; }
#cv { cursor: grab; } #cv:active { cursor: grabbing; }
@media (max-width: 900px) { .reset-chart { right: 72px; bottom: 26px; padding: 7px 11px; } }

/* ---- history drawer ---- */
.sheet.hist .sheet-in.hist-in { left: 78px; top: 0; bottom: 0; max-height: none; height: 100%; width: 400px; border-radius: 0 16px 16px 0; animation: slideL .22s ease; }
@keyframes slideL { from { transform: translateX(-30px); opacity: 0; } }
.hist-list { overflow-y: auto; padding: 0 12px 16px; flex: 1; }
.hday-h { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 6px 6px; position: sticky; top: 0; background: var(--panel); z-index: 1; }
.hday-h b { font-size: 13.5px; } .hday-h span { font-size: 12px; color: var(--muted); }
.hday-h em { font-style: normal; font-weight: 800; font-size: 12.5px; }
.hrow { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; padding: 9px 8px; border-radius: 10px; }
.hrow:nth-child(even) { background: rgba(255,255,255,.02); }
.hrow b { font-size: 13px; display: block; } .hrow small { font-size: 11.5px; color: var(--muted); }
.hrow .tag { font-size: 9.5px; font-weight: 800; padding: 1px 5px; border-radius: 4px; margin-left: 4px; background: var(--panel2); color: var(--muted); vertical-align: 1px; }
.hrow .r { text-align: right; } .hrow .r b { font-variant-numeric: tabular-nums; }
/* ---- account ---- */
.sheet-in.acc-in { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 480px; max-height: 90vh; animation: none; }
.acc-body { overflow-y: auto; padding: 0 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.acc-hero { display: flex; gap: 14px; align-items: center; }
.acc-av { width: 58px; height: 58px; border-radius: 50%; padding: 0; overflow: hidden; flex-shrink: 0; border: 2px solid rgba(245,197,66,.6); cursor: pointer; position: relative; background: none; }
.acc-av::after { content: '📷'; position: absolute; right: -2px; bottom: -2px; font-size: 12px; background: var(--panel); border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; }
.acc-hero b { display: block; font-size: 17px; } .acc-hero small { display: block; color: var(--muted); font-size: 12.5px; }
.acc-bal { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acc-bal div { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.acc-bal small { display: block; color: var(--muted); font-size: 11.5px; } .acc-bal b { font-size: 16px; font-variant-numeric: tabular-nums; }
.acc-bal em { display: block; font-style: normal; font-size: 11px; color: var(--gold); margin-top: 2px; }
.acc-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.acc-card h4 { margin: 0; font-size: 14px; } .acc-card p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.acc-card label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.acc-card input, .acc-card select { background: var(--panel); border: 1px solid var(--line2); border-radius: 9px; padding: 9px 10px; color: var(--text); font-size: 14px; outline: none; }
.acc-card input:focus { border-color: var(--brand); }
.acc-row { display: flex; gap: 8px; align-items: center; }
.acc-row input { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; }
.acc-cur { font-weight: 800; color: var(--muted); }
.acc-btn { padding: 9px 16px; border-radius: 9px; background: linear-gradient(160deg, var(--brand), var(--brand2)); color: #04130a; font-weight: 800; }
.acc-btn.wide { align-self: flex-start; }
.acc-links { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-links a, .acc-links button { padding: 9px 14px; border-radius: 9px; border: 1px solid var(--line2); font-weight: 700; font-size: 13px; }
.acc-links .danger { color: var(--down); border-color: rgba(255,75,92,.4); }
@media (max-width: 900px) {
  .sheet.hist .sheet-in.hist-in { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 82vh; border-radius: 18px 18px 0 0; animation: up .22s ease; }
  .sheet-in.acc-in { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: auto; max-height: 90vh; animation: up .22s ease; }
}

/* leaderboard opens from the left like History */
.sheet.hist .sheet-in.lb.hist-in { right: auto; }

.adm-btn { padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(255,196,77,.5); color: var(--gold); font-weight: 800; font-size: 13.5px; background: rgba(255,196,77,.08); }
.adm-btn:hover { background: rgba(255,196,77,.18); }
@media (max-width: 900px) { .adm-btn { padding: 7px 9px; font-size: 0; } .adm-btn::before { content: "🛡"; font-size: 16px; } }

/* admin button sits in the top menu row, at the right end (above Deposit); only admins get it */
.tnav .adm-btn { margin-left: auto; flex-shrink: 0; padding: 8px 14px; border-radius: 10px; font-size: 13.5px; }
@media (max-width: 900px) { .tnav .adm-btn { padding: 6px 9px; font-size: 0; } }

/* small "Bonus" label next to a real balance that includes bonus money */
.bonus-tag { display: inline-block; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .3px; color: #ffc44d; background: rgba(255,196,77,.14); border: 1px solid rgba(255,196,77,.35); border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }
.acct-l .bonus-tag { margin-left: 0; display: block; width: fit-content; margin-top: 1px; font-size: 9px; }

/* live leaderboard */
.lb-live { font-size: 10.5px; font-weight: 800; color: var(--brand); margin-left: 8px; display: inline-flex; align-items: center; gap: 5px; vertical-align: 3px; }
.lb-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 8px var(--brand); animation: pulse 1.4s infinite; }
.lb-row.climb { animation: climb 1.2s ease; }
@keyframes climb { 0% { background: rgba(46,232,122,.28); transform: translateY(6px); } 100% { background: transparent; transform: none; } }

.pay-trend { font-size: 10px; font-weight: 800; color: #ffb35c; background: rgba(255,150,60,.14); border-radius: 5px; padding: 1px 5px; margin-left: 3px; vertical-align: 1px; }

.tnav .tbrand-logo { height: 40px; padding-right: 18px; margin-right: 4px; border-right: 1px solid var(--line); box-sizing: content-box; }
.tnav .tbrand-logo::after { right: 18px; }
@media (max-width: 900px) { .tnav .tbrand-logo { height: 30px; padding-right: 10px; } .tnav .tbrand-logo::after { right: 10px; } }

.wd-btn { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line2); font-weight: 800; color: #c9d3de; }
.wd-btn:hover { border-color: var(--brand); color: #fff; }
.wd-row { display: grid; grid-template-columns: 1fr auto; gap: 4px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.wd-row:first-child { border-top: 0; }
.wd-row small { color: var(--muted); display: block; font-size: 11.5px; }
.wd-st { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; height: fit-content; }
.wd-st.pending { background: rgba(255,196,77,.15); color: var(--gold); } .wd-st.paid { background: rgba(23,201,100,.15); color: var(--up); } .wd-st.rejected { background: rgba(255,75,92,.15); color: var(--down); }
@media (max-width: 900px) { .wd-btn { padding: 6px 9px; font-size: 12px; } }

.dep { opacity: 1 !important; cursor: pointer !important; }
.menu-list { gap: 6px !important; }
.menu-list button, .menu-list a { text-align: left; padding: 14px 14px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); font-weight: 700; font-size: 15px; display: block; }
.menu-list .danger { color: var(--down); }
.acc-body[hidden] { display: none !important; }
#wdSheet .cats { padding-top: 0; }
/* bonus money is shown as normal real balance (no label) */
.bonus-tag { display: none !important; }

.dep-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.dep-quick button { padding: 8px 12px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line2); font-weight: 800; }
.dep-quick button.on { background: var(--brand); color: #04130a; border-color: var(--brand); }
.dep-coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 7px; margin-bottom: 12px; }
.dep-coins button { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line2); text-align: left; }
.dep-coins button span { display: flex; flex-direction: column; line-height: 1.15; } .dep-coins button small { color: var(--muted); font-size: 11px; font-weight: 600; }
.dep-coins button.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; background: rgba(46,232,122,.08); }
.coin-ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 14px Inter, sans-serif; font-style: normal; flex-shrink: 0; }
.dep-box { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.dep-qrwrap { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0 auto; }
.dep-qrwrap small { color: var(--muted); font-size: 12px; }
.dep-qr { background: #fff; padding: 10px; border-radius: 14px; width: 240px; height: 240px; display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.dep-qr img, .dep-qr svg { width: 220px; height: 220px; }
.dep-info { flex: 1; min-width: 230px; display: flex; flex-direction: column; gap: 9px; }
.dep-net { display: flex; gap: 10px; align-items: center; } .dep-net .coin-ico { width: 34px; height: 34px; font-size: 18px; }
.dep-net div { display: flex; flex-direction: column; } .dep-net small { color: var(--muted); }
.dep-sum { background: var(--panel); border: 1px solid var(--line2); border-radius: 10px; padding: 9px 11px; display: flex; flex-direction: column; color: var(--muted); font-size: 12px; }
.dep-sum b { color: var(--text, #eaf1ee); font-size: 20px; } .dep-sum small { margin-top: 2px; }
.dep-lbl { margin: 0; color: var(--muted); font-size: 12px; }
.dep-warn { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12px; display: flex; flex-direction: column; gap: 3px; } .dep-warn b { color: #ffcf5a; }
.dep-help { background: var(--panel); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 11px; font-size: 13px; margin: 2px 0 10px; }
.dep-help summary { cursor: pointer; font-weight: 800; color: var(--brand); }
.dep-help ol { padding-left: 18px; margin: 8px 0; display: flex; flex-direction: column; gap: 5px; } .dep-help p { margin: 0; color: var(--muted); }
.dep-help code { background: var(--panel2); padding: 1px 5px; border-radius: 5px; }
#depList a { color: var(--brand); }
@media (max-width: 520px) { .dep-qr { width: min(260px, 72vw); height: min(260px, 72vw); } .dep-qr svg { width: 100%; height: 100%; } }
.dep-copy { display: flex; gap: 6px; align-items: center; background: var(--panel); border: 1px solid var(--line2); border-radius: 9px; padding: 7px 9px; font-weight: 800; font-size: 14px; word-break: break-all; }
.dep-copy button { margin-left: auto; padding: 4px 9px; border-radius: 7px; background: var(--panel2); font-size: 12px; flex-shrink: 0; }
.mkt-closed { font-size: 10px; font-weight: 800; color: var(--down); background: rgba(255,75,92,.12); border-radius: 5px; padding: 1px 5px; margin-left: 4px; }

.ind-row { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); flex-wrap: wrap; }
.ind-row b { flex: 1; font-size: 13.5px; min-width: 140px; }
.ind-row input { width: 62px; background: var(--panel); border: 1px solid var(--line2); border-radius: 7px; padding: 5px 6px; color: var(--text); font-size: 12.5px; }
.ind-row label { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.ind-row button { padding: 6px 12px; border-radius: 8px; font-weight: 800; font-size: 12.5px; background: var(--panel2); }
.ind-row button.on { background: var(--brand); color: #04130a; }
.ind-h { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .5px; margin: 6px 2px 0; }

.dep-result { margin-top: 10px; border-radius: 11px; padding: 10px 12px; font-size: 13px; display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--line2); animation: tin .2s ease; }
.dep-result b { font-size: 14px; }
.dep-result.ok { background: rgba(46,232,122,.1); border-color: rgba(46,232,122,.5); } .dep-result.ok b { color: var(--brand); }
.dep-result.bad { background: rgba(255,77,94,.1); border-color: rgba(255,77,94,.5); } .dep-result.bad b { color: #ff5d6c; }
.dep-result.wait { background: rgba(255,207,90,.08); border-color: rgba(255,207,90,.45); } .dep-result.wait b { color: #ffcf5a; }
.dep-why { color: #ff8a95 !important; }

.lb-mine { margin: 0 0 10px; border: 1px solid var(--line2); border-radius: 14px; background: linear-gradient(135deg, rgba(46,232,122,.07), rgba(255,255,255,.02)); padding: 11px 13px; }
.lb-mine-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; }
.lb-mine-h small { color: var(--muted); font-weight: 600; font-size: 11px; }
.lb-mine-b { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }
.lb-mine-main, .lb-mine-side { display: flex; flex-direction: column; } .lb-mine-side { text-align: right; }
.lb-mine small { color: var(--muted); font-size: 11.5px; }
.lb-mine-main b { font-size: 22px; } .lb-mine-side b { font-size: 18px; }
.lb-mine b.up { color: var(--brand); } .lb-mine b.down { color: #ff5d6c; }
.lb-mine-demo { display: flex; gap: 8px; align-items: baseline; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line2); font-size: 12.5px; color: var(--muted); }
.lb-mine-demo b { font-size: 13px; }

.dep-min { margin: 4px 0 0; color: var(--muted); font-size: 12px; } .dep-min b { color: var(--text, #eaf1ee); }

.trader-id { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  color: #f5c542; background: linear-gradient(135deg, rgba(245,197,66,.16), rgba(245,197,66,.05)); border: 1px solid rgba(245,197,66,.45); width: fit-content; }
.trader-id b { color: #ffd76a; font-size: 13.5px; text-shadow: 0 0 10px rgba(255,215,106,.35); }
.acc-hero > div { display: flex; flex-direction: column; }
.dep-soon[hidden] { display: none !important; }

.av-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.av-gen { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.1em; border-radius: inherit; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.acc-av .av-gen { font-size: 24px; }
.ph-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ph-big { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid rgba(245,197,66,.55); } .ph-big .av-gen { font-size: 40px; }
.ph-btns { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 180px; } .ph-btns small { color: var(--muted); font-size: 11.5px; }
.ph-up { text-align: center; cursor: pointer; } .acc-btn.ghost { background: transparent; border: 1px solid var(--line2); color: var(--text, #eaf1ee); }
.nick-row { margin-top: 12px; } .nick-help { color: var(--muted); font-size: 11.5px; display: block; margin-top: 4px; }
.lb-av { position: relative; width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; font-size: 16px; }
.lb-av > .av-img, .lb-av > .av-gen { border-radius: 50%; }
.lb-av.top1 { box-shadow: 0 0 0 2px #f5c542, 0 0 14px rgba(245,197,66,.55); } .lb-av.top2 { box-shadow: 0 0 0 2px #c9d3dd; } .lb-av.top3 { box-shadow: 0 0 0 2px #d08a4e; }
.lb-av .lb-flag { position: absolute; right: -4px; bottom: -3px; width: 17px; height: 12px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1.5px var(--panel); }
.lb-row { cursor: pointer; }
.pv { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.78); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 16px; }
.pv.open { display: flex; animation: tin .18s ease; }
.pv-box { position: relative; width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line2); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.pv-x { position: absolute; right: 10px; top: 10px; z-index: 2; background: rgba(0,0,0,.55); border-radius: 50%; width: 32px; height: 32px; color: #fff; }
.pv-photo { width: 100%; aspect-ratio: 1; background: #0b1118; display: grid; place-items: center; }
.pv-photo img { width: 100%; height: 100%; object-fit: contain; } .pv-photo .av-gen { width: 60%; height: 60%; border-radius: 50%; font-size: 90px; }
.pv-info { padding: 14px 16px 16px; } .pv-name { display: flex; align-items: center; gap: 8px; font-size: 18px; } .pv-name img { width: 24px; border-radius: 3px; }
.pv-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; } .pv-stats div { background: var(--bg2, #0b1118); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; }
.pv-stats small { color: var(--muted); font-size: 11px; } .pv-stats b { font-size: 15px; } .pv-stats b.up { color: var(--brand); }
.lb-row { grid-template-columns: 34px 40px 1fr auto; }
.lb-row .lb-av img.av-img { width: 100%; height: 100%; border-radius: 50%; }
.lb-row .lb-av img.lb-flag { width: 17px; height: 12px; }
.acc-card label.ph-up { color: #04130a; font-weight: 800; font-size: 14px; display: block; margin: 0; }

.lvl-ok { position: absolute; right: 78px; z-index: 6; display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 10px; border-radius: 10px; background: rgba(14,22,32,.96); border: 1px solid var(--line2); box-shadow: 0 10px 30px rgba(0,0,0,.5); font-size: 12.5px; white-space: nowrap; animation: tin .15s ease; }
.lvl-ok.tp { border-color: #17c964; } .lvl-ok.sl { border-color: #ff4b5c; }
.lvl-ok b { margin-right: 2px; } .lvl-ok .up { color: #17c964; font-weight: 800; } .lvl-ok .down { color: #ff4b5c; font-weight: 800; }
.lvl-ok button { padding: 5px 10px; border-radius: 7px; font-weight: 800; font-size: 12.5px; }
#lvlYes { background: var(--brand); color: #04130a; } #lvlNo { background: var(--panel2, #1a2430); }
.lvl-ok[hidden] { display: none !important; }
@media (max-width: 900px) { .lvl-ok { right: 56px; font-size: 11.5px; } }

.crop-m { position: fixed; inset: 0; z-index: 320; background: rgba(0,0,0,.8); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 16px; }
.crop-m.open { display: flex; animation: tin .18s ease; }
.crop-in { width: min(380px, 100%); background: var(--panel); border: 1px solid var(--line2); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.crop-h { display: flex; flex-direction: column; } .crop-h small { color: var(--muted); font-size: 12px; }
.crop-box { position: relative; width: min(320px, 100%); aspect-ratio: 1; margin: 0 auto; border-radius: 12px; overflow: hidden; touch-action: none; background: #0b1118; }
.crop-box canvas { display: block; cursor: grab; touch-action: none; } .crop-box canvas:active { cursor: grabbing; }
.crop-ring { position: absolute; inset: 0; pointer-events: none; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0,0,0,.55); outline: 2px solid rgba(245,197,66,.85); outline-offset: -2px; }
.crop-zoom { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 800; } .crop-zoom input { flex: 1; accent-color: #2ee87a; }
.crop-tools { display: flex; gap: 8px; } .crop-tools button { flex: 1; padding: 8px; border-radius: 9px; background: var(--bg2, #0b1118); border: 1px solid var(--line2); font-weight: 700; font-size: 12.5px; }
.crop-act { display: flex; gap: 8px; } .crop-act .acc-btn { flex: 1; }

.wd-st.cancelled { background: rgba(147,163,179,.15); color: var(--muted); }
.wd-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.wd-cancel { padding: 4px 11px; border-radius: 8px; font-size: 11.5px; font-weight: 800; color: #ff6b78; background: rgba(255,75,92,.1); border: 1px solid rgba(255,75,92,.45); }
.wd-cancel:hover { background: rgba(255,75,92,.2); }

.wd-lock { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(135deg, rgba(245,197,66,.12), rgba(245,197,66,.04)); border: 1px solid rgba(245,197,66,.45); margin-bottom: 10px; }
.wd-lock b { color: #ffd76a; } .wd-lock span { color: var(--muted); font-size: 12.5px; } .wd-lock .acc-btn { align-self: flex-start; margin-top: 2px; }
.wd-lock[hidden] { display: none !important; }
#wdForm.locked { opacity: .5; pointer-events: none; }

/* drawing tools */
.tool-draw { background: linear-gradient(160deg, rgba(255,214,102,.16), rgba(19,27,38,.92) 60%); border-color: rgba(245,197,66,.45); }
.tool-draw .pen3d { width: 22px; height: 22px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.55)) drop-shadow(0 0 5px rgba(255,200,60,.25)); transition: transform .15s ease; }
.tool-draw:hover .pen3d, .tool-draw.on .pen3d { transform: rotate(-8deg) scale(1.08); }
.tool-draw.on { border-color: #f5c542; box-shadow: 0 0 0 1px #f5c542 inset, 0 0 12px rgba(245,197,66,.35); }
.drw-pop { position: fixed; z-index: 70; background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; padding: 10px; display: none; width: 300px; max-height: 78vh; overflow: auto; box-shadow: 0 20px 40px rgba(0,0,0,.55); }
.drw-pop.open { display: block; animation: tin .16s ease; }
.drw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.drw-grid button { display: flex; align-items: center; gap: 7px; padding: 7px 8px; border-radius: 8px; border: 1px solid var(--line2); font-size: 12px; font-weight: 600; text-align: left; }
.drw-grid button:hover { border-color: var(--brand); background: rgba(46,232,122,.06); }
.drw-grid svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: #cfd8e3; stroke-width: 1.6; stroke-linecap: round; }
.drw-opts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line2); }
.drw-opts button { flex: 1; padding: 7px 6px; border-radius: 8px; border: 1px solid var(--line2); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.drw-opts button.on { border-color: var(--brand); color: var(--brand); }
.db-del { color: #ff6b78 !important; }
.drw-hint { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); z-index: 7; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border-radius: 10px; background: rgba(14,22,32,.96); border: 1px solid #f5c542; font-size: 12.5px; white-space: nowrap; max-width: calc(100% - 20px); overflow: hidden; }
.drw-hint b { color: #ffd76a; } .drw-hint button { padding: 4px 9px; border-radius: 7px; background: var(--panel2, #1a2430); font-weight: 700; font-size: 12px; flex-shrink: 0; }
.drw-bar { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); z-index: 7; display: flex; align-items: center; gap: 5px; padding: 5px 6px; border-radius: 11px; background: rgba(14,22,32,.97); border: 1px solid var(--line2); box-shadow: 0 10px 30px rgba(0,0,0,.5); max-width: calc(100% - 16px); overflow-x: auto; }
.drw-bar .db-name { font-size: 12px; font-weight: 800; padding: 0 6px; white-space: nowrap; }
.drw-bar .db-col { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); flex-shrink: 0; padding: 0; }
.drw-bar .db-col.on { border-color: #fff; }
.drw-bar button:not(.db-col) { padding: 5px 9px; border-radius: 7px; background: var(--panel2, #1a2430); font-size: 12px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.drw-hint[hidden], .drw-bar[hidden] { display: none !important; }
@media (max-width: 900px) { .drw-hint, .drw-bar { top: 46px; font-size: 11.5px; } .drw-grid button span { font-size: 11.5px; } }

.drw-pop { width: 330px; }
.drw-q { width: 100%; box-sizing: border-box; margin: 2px 0 4px; padding: 7px 10px; border-radius: 8px; background: var(--bg2, #0b1118); border: 1px solid var(--line2); color: var(--text, #eaf1ee); font: 13px Inter, sans-serif; }
.drw-grid button[hidden], .drw-grp[hidden] { display: none !important; }
.drw-grid svg text { font-family: Inter, sans-serif; }
.drw-hint { gap: 8px; } .drw-hint span { overflow: hidden; text-overflow: ellipsis; }
.drw-bar { flex-wrap: wrap; justify-content: center; }
.drw-bar .db-colbtn i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); vertical-align: middle; }
.drw-bar button.on { background: rgba(245,197,66,.18) !important; color: #ffd76a; }
.drw-bar .db-cols { display: flex; gap: 5px; width: 100%; justify-content: center; padding-top: 4px; }
.drw-bar .db-cols[hidden] { display: none; }
.db-custom { position: relative; overflow: hidden; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red) !important; cursor: pointer; display: inline-block; }
.db-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drw-set { position: fixed; inset: 0; z-index: 330; background: rgba(0,0,0,.6); display: none; align-items: center; justify-content: center; padding: 16px; }
.drw-set.open { display: flex; animation: tin .16s ease; }
.ds-in { width: min(420px, 100%); max-height: 88vh; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.6); overflow: hidden; }
.ds-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line2); }
.ds-h button { width: 30px; height: 30px; border-radius: 8px; background: var(--panel2, #1a2430); }
.ds-body { padding: 10px 14px; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.ds-row { display: flex; gap: 10px; align-items: flex-start; } .ds-row > span { width: 92px; flex-shrink: 0; color: var(--muted); font-size: 12.5px; padding-top: 6px; }
.ds-row > div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; flex: 1; }
.ds-row .db-col { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); padding: 0; } .ds-row .db-col.on { border-color: #fff; }
.ds-row textarea { width: 100%; background: var(--bg2, #0b1118); border: 1px solid var(--line2); border-radius: 8px; color: var(--text, #eaf1ee); font: 13px Inter, sans-serif; padding: 7px; resize: vertical; }
.ds-row em { font-size: 12px; color: var(--muted); font-style: normal; }
.ds-opt { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line2); font-size: 12px; font-weight: 700; } .ds-opt.on { border-color: var(--brand); color: var(--brand); }
.ds-chk { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; margin-right: 10px; } .ds-chk input { accent-color: #2ee87a; }
.ds-lv > span { color: var(--muted); font-size: 12.5px; display: block; margin-bottom: 6px; }
.ds-lvr { display: inline-flex; gap: 5px; align-items: center; margin: 0 10px 6px 0; }
.ds-lvr input[type=number] { width: 70px; background: var(--bg2, #0b1118); border: 1px solid var(--line2); border-radius: 6px; color: var(--text, #eaf1ee); padding: 4px 6px; font: 12px Inter, sans-serif; }
.ds-lvr input[type=color] { width: 26px; height: 22px; border: 0; padding: 0; background: none; }
.ds-f { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line2); }
.ds-ok { padding: 8px 22px; border-radius: 9px; background: var(--brand); color: #04130a; font-weight: 800; }

/* chart tool buttons: frosted glass + gold rim + 3D icons (same look as the pencil) */
.tools .tool { background: linear-gradient(160deg, rgba(255,214,102,.16), rgba(19,27,38,.55) 60%); border: 1px solid rgba(245,197,66,.45);
  -webkit-backdrop-filter: blur(9px) saturate(1.25); backdrop-filter: blur(9px) saturate(1.25);
  box-shadow: inset 0 1px 0 rgba(255,236,170,.18), inset 0 -2px 6px rgba(0,0,0,.35), 0 4px 12px rgba(0,0,0,.35); color: #ffd76a; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.tools .tool:hover { border-color: #f5c542; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,236,170,.25), 0 6px 16px rgba(0,0,0,.45), 0 0 10px rgba(245,197,66,.22); }
.tools .tool:active { transform: translateY(0) scale(.96); }
.tools .ico3d { width: 22px; height: 22px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.55)) drop-shadow(0 0 4px rgba(255,200,60,.18)); transition: transform .15s ease; }
.tools .tool:hover .ico3d { transform: scale(1.08); }
#tfBtn { font-weight: 800; color: #ffd76a; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.tools .tool.off .ico3d { opacity: .75; }
.tools .tool.off { opacity: 1; }
.tools.open .tool-tg { background: linear-gradient(160deg, rgba(255,214,102,.28), rgba(19,27,38,.55) 60%); border-color: #f5c542; }
.tool-tg .tg-tri { color: #ffd76a; }

/* tools toggle: easier to notice */
.tools:not(.open) .tool-tg { animation: tgGlow 2.4s ease-in-out infinite; }
@keyframes tgGlow { 0%, 100% { box-shadow: inset 0 1px 0 rgba(255,236,170,.18), 0 4px 12px rgba(0,0,0,.35), 0 0 0 0 rgba(245,197,66,.0); } 50% { box-shadow: inset 0 1px 0 rgba(255,236,170,.3), 0 4px 12px rgba(0,0,0,.35), 0 0 14px 2px rgba(245,197,66,.45); } }
.tools:not(.open) .tool-tg .tg-tri { animation: tgBob 1.2s ease-in-out infinite; }
@keyframes tgBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.tool-tg::after { content: ''; position: absolute; inset: -5px; border-radius: 13px; border: 2px solid rgba(245,197,66,.7); opacity: 0; pointer-events: none; }
.tools.tg-new .tool-tg::after { animation: tgRing 1.6s ease-out infinite; }
@keyframes tgRing { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.tg-bubble { position: absolute; left: calc(100% + 12px); bottom: 2px; display: none; flex-direction: column; padding: 6px 10px; border-radius: 10px; background: linear-gradient(135deg, #ffd76a, #f5b52e); color: #2a1a00; font-size: 11px; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.45); pointer-events: none; animation: tgBubble 1.6s ease-in-out infinite; }
.tg-bubble b { font-size: 12.5px; font-weight: 800; }
.tg-bubble::before { content: ''; position: absolute; left: -6px; bottom: 12px; border: 6px solid transparent; border-left: 0; border-right-color: #f5c542; }
.tools.tg-new .tg-bubble { display: flex; }
@keyframes tgBubble { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
/* drawing toolbar: draggable */
.drw-bar .db-grip { cursor: grab; color: #8a97a8; font-size: 16px; padding: 2px 3px; touch-action: none; user-select: none; }
.drw-bar .db-name { cursor: grab; touch-action: none; user-select: none; }
.drw-bar.dragging, .drw-bar.dragging .db-grip, .drw-bar.dragging .db-name { cursor: grabbing; }
.drw-bar.dragging { opacity: .92; box-shadow: 0 16px 40px rgba(0,0,0,.6), 0 0 0 1px #f5c542; }

.wd-amt { display: flex; align-items: center; gap: 0; background: var(--bg2, #0b1118); border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; }
.wd-amt span { padding: 0 4px 0 12px; font-weight: 800; color: #ffd76a; font-size: 16px; }
.wd-amt input { border: 0 !important; background: transparent !important; flex: 1; font-size: 16px !important; font-weight: 700; }
#wdQuick { margin: 2px 0 4px; }
#wdRealLoc { color: var(--muted); font-style: normal; font-size: 11.5px; }

#cats { cursor: grab; user-select: none; scroll-behavior: auto; } #cats.dragging { cursor: grabbing; } #cats.dragging button { pointer-events: none; }
.live-tag { display: inline-block; margin-left: 6px; padding: 1px 5px; border-radius: 4px; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; color: #04130a; background: #2ee87a; vertical-align: middle; }
.otc-tag.real { background: #2ee87a !important; color: #04130a !important; }

/* ---------- My Referral ---------- */
.ref-in .sh-head { gap: 10px; } .ref-in .sh-head h3 { flex: 1; }
.ref-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; color: #2ee87a; } .ref-live i { width: 7px; height: 7px; border-radius: 50%; background: #2ee87a; animation: tgGlow 1.6s infinite; }
.ref-warn { background: rgba(255,75,92,.12); border: 1px solid rgba(255,75,92,.5); border-radius: 12px; padding: 10px 12px; font-size: 13px; margin-bottom: 10px; }
.ref-hero { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(245,197,66,.14), rgba(46,232,122,.06)); border: 1px solid rgba(245,197,66,.35); }
.ref-av { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid #f5c542; } .ref-av .av-gen { font-size: 28px; }
.ref-who { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; } .ref-who > b { font-size: 18px; }
.ref-lvl { width: fit-content; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: #2b3442; }
.lv-bronze { background: linear-gradient(135deg, #b8733d, #8a4d1f); } .lv-silver { background: linear-gradient(135deg, #cfd8e3, #8a97a8); color: #111; } .lv-gold { background: linear-gradient(135deg, #ffe27a, #d49a0b); color: #2a1a00; } .lv-diamond { background: linear-gradient(135deg, #7ee0ff, #6d5bff); } .lv-special { background: linear-gradient(135deg, #ff8a3d, #e91e63); }
.ref-edit-btn { flex-shrink: 0; }
.ref-socs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.ref-soc { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); color: #fff; font-size: 12.5px; font-weight: 700; text-decoration: none; }
.ref-soc svg { width: 16px; height: 16px; color: var(--c); }
.ref-hint { color: var(--muted); font-size: 12.5px; margin: 8px 0; }
.ref-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ref-link small { color: var(--muted); display: block; margin-top: 6px; }
.ref-wallet { margin: 12px 0; padding: 14px; border-radius: 16px; background: linear-gradient(160deg, rgba(46,232,122,.13), rgba(14,22,32,.9) 60%); border: 1px solid rgba(46,232,122,.35); }
.rw-main { display: flex; flex-direction: column; gap: 6px; } .rw-main small { color: var(--muted); } .rw-main b { font-size: 30px; color: #2ee87a; } .rw-main .acc-btn { width: fit-content; } .rw-main em { font-style: normal; font-size: 12px; color: var(--muted); }
.ref-red { color: #ff6b78 !important; }
.rw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.rw-grid div { background: rgba(0,0,0,.25); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; } .rw-grid small { color: var(--muted); font-size: 11px; } .rw-grid b { font-size: 15px; } .rw-grid em { font-style: normal; font-size: 10.5px; color: var(--muted); }
.rw-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; } .rw-note b { color: #ffd76a; }
.ref-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.ref-stats div { background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; align-items: center; text-align: center; } .ref-stats b { font-size: 18px; } .ref-stats small { color: var(--muted); font-size: 11px; }
.lvl-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.lvl-steps div { border: 1px solid var(--line2); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; align-items: center; opacity: .55; } .lvl-steps div.on { opacity: 1; border-color: #f5c542; background: rgba(245,197,66,.08); }
.lvl-steps small { color: var(--muted); font-size: 10.5px; } .lvl-steps em { font-style: normal; font-weight: 800; color: #2ee87a; }
.lvl-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; margin: 4px 0 6px; } .lvl-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2ee87a, #f5c542); border-radius: inherit; }
.lvl-bar.sm { width: 90px; }
.ref-promo { margin: 12px 0; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(233,30,99,.16), rgba(109,91,255,.14)); border: 1px solid rgba(233,30,99,.4); display: flex; flex-direction: column; gap: 4px; font-size: 13px; } .ref-promo span { color: #d7dde5; } .ref-promo span b { color: #ffd76a; }
.ref-list { display: flex; flex-direction: column; font-size: 12.5px; }
.rl-h, .rl-r { display: grid; grid-template-columns: 70px 1.4fr .9fr .6fr .6fr .9fr; gap: 6px; align-items: center; padding: 7px 6px; }
.rl-h { color: var(--muted); font-size: 11px; font-weight: 700; border-bottom: 1px solid var(--line2); }
.rl-r { border-bottom: 1px solid rgba(255,255,255,.04); } .rl-r.bad { background: rgba(255,75,92,.08); } .rl-r.warn { background: rgba(255,196,77,.06); }
.rl-r span { overflow: hidden; text-overflow: ellipsis; }
.ref-flag { display: block; font-style: normal; font-size: 10.5px; font-weight: 800; color: #ff6b78; } .ref-flag.ip { color: #ffc44d; }
@media (max-width: 600px) { .rw-grid, .ref-stats, .lvl-steps { grid-template-columns: 1fr 1fr; } .rl-h, .rl-r { grid-template-columns: 54px 1.2fr .8fr .5fr .5fr .8fr; font-size: 11.5px; } .ref-row2 { grid-template-columns: 1fr; } .ref-hero { flex-wrap: wrap; } }
.acc-btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }

/* ---------- notifications ---------- */
.bell { position: relative; width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--text, #eaf1ee); cursor: pointer; }
.bell svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bell b { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #ff4d5e; color: #fff; font: 800 10.5px/17px Inter, sans-serif; text-align: center; box-shadow: 0 0 0 2px var(--bg2); }
.bell.ring svg { animation: bring .9s 2; transform-origin: 50% 10%; } @keyframes bring { 0%,100% { transform: rotate(0) } 20% { transform: rotate(-16deg) } 40% { transform: rotate(13deg) } 60% { transform: rotate(-8deg) } 80% { transform: rotate(5deg) } }
.nf-all { margin-left: auto; margin-right: 8px; background: none; border: 0; color: var(--brand); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.nf-i { display: flex; gap: 11px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 8px; background: rgba(255,255,255,.02); cursor: pointer; }
.nf-i.un { border-color: rgba(46,232,122,.35); background: rgba(46,232,122,.06); }
.nf-i .nf-ic { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: 16px; background: #1a2533; }
.nf-i.l-success .nf-ic { background: rgba(46,232,122,.16); } .nf-i.l-error .nf-ic { background: rgba(255,77,94,.16); } .nf-i.l-warning .nf-ic { background: rgba(255,190,60,.16); } .nf-i.l-promo .nf-ic { background: rgba(245,200,66,.18); }
.nf-i b { display: block; font-size: 13.5px; line-height: 1.35; } .nf-i p { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; white-space: pre-line; word-break: break-word; } .nf-i small { display: block; margin-top: 4px; color: #6c7c8c; font-size: 11px; }
.nf-i .nf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex-shrink: 0; margin-top: 6px; }
.nf-ref { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(245,200,66,.08); border: 1px solid rgba(245,200,66,.3); margin-bottom: 10px; font-size: 13px; cursor: pointer; }
.nf-pop { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.6); display: none; align-items: center; justify-content: center; padding: 18px; }
.nf-pop.open { display: flex; }
.nf-pop-in { width: min(400px, 100%); background: #101923; border: 1px solid var(--line2); border-radius: 18px; padding: 22px 20px 18px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: up .22s ease; }
.nf-pop-in .nf-big { font-size: 40px; } .nf-pop-in h3 { margin: 6px 0 8px; font-size: 18px; } .nf-pop-in p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.55; white-space: pre-line; }
.nf-pop-in .acc-btn { width: 100%; } .nf-pop-in .acc-btn + .acc-btn { margin-top: 8px; }
/* My Referral notices + lists */
.rn-card .nf-i { cursor: default; } .rn-more { background: none; border: 0; color: var(--brand); font-weight: 700; font-size: 12.5px; cursor: pointer; padding: 4px 0; }
.ref-stats > .click { cursor: pointer; transition: .15s; position: relative; } .ref-stats > .click:hover { border-color: var(--brand); transform: translateY(-1px); }
.ref-stats > .click::after { content: "View ›"; position: absolute; right: 8px; top: 6px; font-size: 10px; color: var(--brand); font-weight: 700; }
.rlx-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .rlx-head h4 { margin: 0; font-size: 15px; }
.rlx-tabs { display: flex; gap: 6px; margin-bottom: 10px; } .rlx-tabs button { flex: 1; padding: 8px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 700; font-size: 12.5px; cursor: pointer; } .rlx-tabs button.on { border-color: var(--brand); color: var(--brand); background: rgba(46,232,122,.07); }
.rlx { display: flex; flex-direction: column; gap: 8px; }
.rlx-r { display: grid; grid-template-columns: 28px 1fr auto; gap: 4px 10px; align-items: center; padding: 10px 11px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
.rlx-r.bad { border-color: rgba(255,77,94,.45); background: rgba(255,77,94,.06); } .rlx-r.warn { border-color: rgba(255,190,60,.4); }
.rlx-n { color: #6c7c8c; font-weight: 800; font-size: 12px; text-align: center; }
.rlx-who { min-width: 0; } .rlx-who b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rlx-who small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rlx-who .tid { color: var(--gold); font-weight: 800; }
.rlx-pl { text-align: right; } .rlx-pl small { display: block; color: var(--muted); font-size: 10.5px; } .rlx-pl b { font-size: 14px; }
.rlx-m { grid-column: 2 / 4; display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); } .rlx-m b { color: var(--text, #eaf1ee); font-weight: 700; }
.rlx-tot { display: flex; justify-content: space-between; align-items: center; padding: 12px 13px; border-radius: 12px; background: rgba(46,232,122,.08); border: 1px solid rgba(46,232,122,.3); margin-top: 4px; font-size: 13px; } .rlx-tot b { font-size: 17px; }
.rlx-tot small { display: block; color: var(--muted); font-size: 11px; }
@media (max-width: 900px) {
  .bell { width: 34px; height: 34px; border-radius: 9px; } .bell svg { width: 17px; height: 17px; }
  .top { gap: 6px; } .top-r { gap: 6px; }
  .m-asset { gap: 4px; padding: 4px 6px; }
  .m-asset .flags { width: 24px; height: 20px; } .m-asset .flags img, .m-asset .flags .ico { width: 16px; height: 16px; border-width: 1.5px; } .m-asset .flags img:nth-child(2) { left: 8px; top: 4px; } .m-asset .flags.one img { width: 20px; height: 20px; }
  .m-asset b { font-size: 12px; max-width: none; letter-spacing: -.2px; } .m-asset small { font-size: 10.5px; } .m-asset > svg { width: 12px; height: 12px; }
  .tf-chip { padding: 0 4px 0 6px; font-size: 12px; } .tf-chip svg { width: 12px; height: 12px; }
  .acct-btn { padding: 5px 7px; gap: 4px; } .acct-btn > svg { width: 13px; height: 13px; }
}
@media (max-width: 380px) { .m-logo { display: none; } .acct-l b { font-size: 12.5px; } }
.badge-new { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 9px; background: #ff4d5e; color: #fff; font-size: 10.5px; font-weight: 800; vertical-align: middle; }
@media (max-width: 480px) {
  .m-asset { flex-shrink: 1; min-width: 0; } .m-asset b { overflow: hidden; text-overflow: ellipsis; }
  .top-r { min-width: 0; flex-shrink: 1; } .acct { min-width: 0; } .acct-btn { min-width: 0; } .acct-l { min-width: 0; } .acct-l b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
}

.nf-pop-in { position: relative; } .nf-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(255,255,255,.06); color: #fff; font-size: 15px; cursor: pointer; display: grid; place-items: center; }
.nf-x:hover { background: rgba(255,77,94,.2); border-color: #ff4d5e; }
.ref-bell { margin-left: auto; margin-right: 8px; width: 34px; height: 34px; } .sh-head .ref-live + .ref-bell { margin-left: auto; }
.ref-hero { flex-wrap: wrap; }
.ref-lvlrow { flex-basis: 100%; display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid rgba(245,197,66,.22); }
.ref-lvl { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; font-size: 12.5px; white-space: nowrap; flex-shrink: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.ref-rate { font-size: 12.5px; color: var(--muted); line-height: 1.35; } .ref-rate b { color: var(--gold); font-size: 14px; }
.ref-promo b { font-size: 14.5px; } .ref-promo span { line-height: 1.6; }
.ref-who .trader-id { white-space: nowrap; width: fit-content; }
.nf-i.nf-help { border-color: rgba(31,111,209,.45); background: rgba(31,111,209,.07); cursor: default; } .nf-i.nf-help .nf-ic { background: rgba(31,111,209,.2); } .nf-i.nf-help p { color: #d6e2ee; font-size: 13px; }
.nf-wb { color: var(--brand); font-weight: 700; text-decoration: none; }

/* ---------- hide balance (eye) ---------- */
.acct-top { display: flex; align-items: center; gap: 6px; }
.bal-eye { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; color: var(--muted); cursor: pointer; flex-shrink: 0; transition: color .15s, background .15s; }
.bal-eye:hover, .bal-eye:focus-visible { color: var(--text, #eaf1ee); background: rgba(255,255,255,.08); outline: none; }
.bal-eye svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hide-bal .bal-eye { color: var(--gold); }
.acc-bal { position: relative; } .acc-eye { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; background: rgba(255,255,255,.05); border-radius: 8px; z-index: 1; } .acc-eye svg { width: 16px; height: 16px; }
/* the amounts become ****** (labels like REAL ACCOUNT / DEMO ACCOUNT stay) */
.hide-bal :is(#bal, #bal2, #balReal, #accDemo, #accReal, #wdReal, #wdAvail) { color: transparent !important; position: relative; display: inline-block; min-width: 5.2em; text-shadow: none; }
.hide-bal :is(#bal, #bal2, #balReal, #accDemo, #accReal, #wdReal, #wdAvail)::after { content: "******"; position: absolute; left: 0; top: 50%; transform: translateY(-42%); color: var(--text, #eaf1ee); letter-spacing: 2px; font-weight: 800; }
.hide-bal #wdAvail::after { color: var(--brand); }
.hide-bal :is(#balBonus, #balRealBonus, #accBonus, #wdRealLoc) { visibility: hidden; }
@media (max-width: 380px) { .acct-l .acct-top small { display: block; font-size: 8.5px; letter-spacing: .3px; white-space: nowrap; } .bal-eye { width: 16px; height: 16px; } .bal-eye svg { width: 13px; height: 13px; } }
.hide-bal #demoForm input:not(:focus) { color: transparent; text-shadow: 0 0 9px rgba(234,241,238,.75); }

/* ---------- currency pair chips: gold glass border (same look as the chart tool buttons) ---------- */
.tab, .m-asset { background: linear-gradient(160deg, rgba(255,214,102,.12), rgba(19,27,38,.6) 60%); border: 1px solid rgba(245,197,66,.42);
  box-shadow: inset 0 1px 0 rgba(255,236,170,.14), inset 0 -2px 6px rgba(0,0,0,.3), 0 3px 10px rgba(0,0,0,.3); }
.tab:hover, .m-asset:hover { border-color: #f5c542; }
.tab.on { background: linear-gradient(160deg, rgba(255,214,102,.22), rgba(29,42,58,.9) 65%); border-color: #f5c542; box-shadow: inset 0 1px 0 rgba(255,236,170,.25), 0 0 0 1px rgba(245,197,66,.35), 0 0 12px rgba(245,197,66,.18); }

/* ---------- Binary / Forex handle (phones) ---------- */
.mode-handle { display: none; }
@media (max-width: 900px) {
  .order { position: relative; padding: 10px 10px 8px; gap: 6px; }
  .mode-handle { display: flex; align-items: center; gap: 5px; position: absolute; top: 0; left: 50%; transform: translate(-50%, -55%); z-index: 6; height: 24px; padding: 0 11px 0 8px; border-radius: 999px;
    background: linear-gradient(160deg, rgba(255,214,102,.2), rgba(19,27,38,.95) 60%); border: 1px solid rgba(245,197,66,.55); color: #ffd76a; font-size: 11px; font-weight: 800; letter-spacing: .3px;
    box-shadow: 0 4px 12px rgba(0,0,0,.45); }
  .mode-handle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
  .mode-handle i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 6px var(--brand); }
  .mode-handle.fx i { background: #6aa8ff; box-shadow: 0 0 6px #6aa8ff; }
  .mode-handle span { color: #eaf1ee; }
  .order.mode-open .mode-handle svg { transform: rotate(180deg); }
  .order .mode-sw { position: absolute; left: 50%; bottom: calc(100% + 16px); transform: translate(-50%, 10px); width: min(260px, 80vw); z-index: 7; opacity: 0; pointer-events: none; visibility: hidden;
    background: rgba(11,18,25,.96); border-color: rgba(245,197,66,.45); box-shadow: 0 14px 34px rgba(0,0,0,.6); transition: opacity .18s, transform .18s, visibility .18s; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .order.mode-open .mode-sw { opacity: 1; pointer-events: auto; visibility: visible; transform: translate(-50%, 0); }
  .order .mode-sw button { padding: 10px 0; font-size: 14px; }
  /* smaller order panel = taller chart */
  .order .box { padding: 5px 6px 6px; border-radius: 10px; }
  .order .box label { font-size: 10px; top: -7px; }
  .order .pm { width: 25px; height: 25px; font-size: 16px; }
  .order .val, .order .val.amt input { font-size: 14.5px; }
  .order .val { padding: 2px 0; }
  .order .sw { font-size: 8.5px; letter-spacing: .4px; bottom: -7px; padding: 0 5px; }
  .order .o-payout { align-items: center; font-size: 11.5px; padding: 0 2px; }
  .order .o-payout span { flex: 1; display: flex; align-items: center; }
  .order .o-payout span::after { content: ""; flex: 1; border-bottom: 1px dotted rgba(147,163,179,.45); margin: 0 8px; transform: translateY(2px); }
  .order .o-payout b { font-size: 13px; }
  .order .o-btns button { height: 42px; font-size: 15.5px; border-radius: 10px; padding: 0 10px 0 14px; }
  .order .o-btns i { width: 24px; height: 24px; } .order .o-btns i svg { width: 14px; height: 14px; }
  .order .fx-btns button { height: 46px; }
  .m-asset .flags { width: 24px; height: 20px; flex-shrink: 0; }
}
/* history: trade count next to each day */
.tday { display: flex; align-items: center; justify-content: center; gap: 8px; }
.tday em { font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .2px; color: #ffd76a; background: rgba(245,197,66,.12); border: 1px solid rgba(245,197,66,.4); border-radius: 6px; padding: 1px 7px; }
@media (max-width: 900px) { .mode-handle { transform: translate(-50%, -32%); height: 22px; } }
@media (max-width: 480px) {
  .m-asset { gap: 3px; padding: 4px 5px; } .m-asset > svg { display: none; }
  .m-asset .flags { width: 22px; } .m-asset .flags img, .m-asset .flags .ico { width: 15px; height: 15px; } .m-asset .flags img:nth-child(2) { left: 7px; top: 4px; }
  .m-asset b { font-size: 11.5px; letter-spacing: -.3px; }
  .acct-btn { padding: 4px 6px; gap: 3px; } .acct-l b { font-size: 12.5px; }
}

/* tools button: calm (no blinking glow, no bouncing arrow, no pulsing ring) */
.tools:not(.open) .tool-tg, .tools:not(.open) .tool-tg .tg-tri, .tools.tg-new .tool-tg::after, .tg-bubble { animation: none !important; }
.tools.tg-new .tool-tg::after { opacity: 0 !important; }
/* phones: no Binary/Forex arrow — users switch with the Binary Options / Forex Trading links at the top */
@media (max-width: 900px) { .mode-handle, .order .mode-sw { display: none !important; } }
/* forex details inside the TP / SL drawer */
.sltp .fx-info { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line2); }
.sltp.open { flex-wrap: wrap; } .sltp .fx-info { flex-basis: 100%; }
.tools .tool.tool-img { padding: 3px; overflow: hidden; } /* same size, border and glass look as the other tool buttons */
.tools .tool.tool-img img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 7px; pointer-events: none; user-select: none; transition: transform .15s ease; }
.tools .tool-tg.tool-img .tg-tri { display: none; }
.tools .tool.tool-img:active img { transform: scale(.94); }
