* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #121420; font-family: BinancePlex, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Noto Sans CJK TC", "Microsoft JhengHei", sans-serif; font-size: 14px; color: #e6e6e6; -webkit-tap-highlight-color: transparent; }
body { max-width: 750px; margin: 0 auto; min-height: 100vh; padding-bottom: 20px; }
body.has-ft { padding-bottom: 87px; }
body.bg2 { background: #1b1d2a; }
a, a:link, a:visited, a:hover, a:active { color: #707A8A; text-decoration: none; }
ul, li { list-style: none; }
img { border: 0; }
input, select, textarea, button { font: inherit; color: inherit; outline: none; }
button { cursor: pointer; border: 0; background: none; }
.upc { color: #0ecb81 !important; }
.dn { color: #f6465d !important; }

/* Khối chung */
.blk { width: 98%; margin: 7px 1% 0; }
.box { background: #1b1d2a; border-radius: 14px; padding: 14px; }
.box-t { font-size: 15px; font-weight: bold; color: #fff; margin-bottom: 12px; }
.gap { height: 14px; background: #1b1d2a; border-top: 1px solid #272936; }
.pt { height: 50px; line-height: 50px; padding: 0 10px; font-size: 20px; font-weight: bold; color: #e6e6e6; }

/* Header trang chủ */
.hd { height: 50px; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; }
.hd-user, .hd-user:link, .hd-user:visited { display: flex; align-items: center; color: #fff; font-size: 16px; font-weight: bold; min-width: 0; }
.hd-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-user svg { width: 30px; height: 30px; margin-right: 10px; flex: none; }
.hd-lang img { width: 25px; height: 25px; display: block; border-radius: 50%; }

/* Banner */
.banner { border-radius: 20px; overflow: hidden; background: #1b1d2a; }
.banner-track { display: flex; transition: transform .5s ease; }
.banner-track > * { flex: 0 0 100%; display: block; }
.banner-track img { width: 100%; display: block; }

/* 5 nút chức năng */
.opts { height: 90px; display: flex; background: #1b1d2a; border-radius: 20px; padding: 5px 8px; }
.opt { flex: 1; min-width: 0; display: block; }
.opt-img { height: 50px; display: flex; align-items: center; justify-content: center; }
.opt-img img { width: 35px; }
.opt-txt { height: 30px; line-height: 30px; text-align: center; color: #fff; font-size: 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* 3 ô giá nổi bật + tin chạy */
.feat-box { height: 150px; background: #1b1d2a; border-radius: 20px; }
.feat { height: 90px; display: flex; }
.feat-it { flex: 1; min-width: 0; padding: 10px 4px; text-align: center; }
.feat-name { height: 20px; line-height: 20px; font-size: 14px; color: #707A8A; white-space: nowrap; overflow: hidden; }
.feat-price { height: 30px; line-height: 30px; font-size: 20px; font-weight: bold; color: #e6e6e6; white-space: nowrap; overflow: hidden; }
.feat-chg { height: 20px; line-height: 20px; font-size: 16px; font-weight: bold; color: #2ebd85; }
.feat-chg.down { color: #f5465c; }
.feat-line { width: 86%; height: 1px; background: #272936; margin: 0 7%; }
.notice { height: 40px; margin-top: 5px; padding: 0 10px; display: flex; align-items: center; }
.notice-ic { width: 10%; text-align: center; }
.notice-ic svg, .notice-more svg { display: inline-block; vertical-align: middle; }
.notice-txt { width: 75%; overflow: hidden; }
.notice-scroll { height: 25px; line-height: 25px; overflow: hidden; position: relative; }
.notice-scroll li { height: 25px; padding-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: transform .5s ease; }
.notice-more { width: 10%; margin-left: auto; text-align: center; }

/* Bảng giá */
.mkt { background: #1b1d2a; border-radius: 20px; padding-bottom: 5px; }
.mkt-hd, .mkt-row { display: flex; align-items: center; padding: 0 7px; }
.mkt-hd { min-height: 30px; padding-top: 4px; padding-bottom: 4px; line-height: 16px; font-size: 14px; color: #707A8A; }
.mkt-hd .c1 { width: 40%; text-align: center; }
.mkt-hd .c1 span { margin-left: -30px; }
.mkt-hd .c2 { width: 30%; text-align: center; }
.mkt-hd .c3 { width: 30%; text-align: right; }
.mkt-row { height: 50px; }
.mk2 .mkt-row { height: 58px; border-top: 1px solid #22243a; }
.mkt-name { width: 40%; display: flex; align-items: center; font-weight: bold; color: #e6e6e6; white-space: nowrap; overflow: hidden; }
.mkt-name img { width: 20px; height: 20px; margin-right: 10px; flex: none; border-radius: 50%; object-fit: cover; }
.mkt-name small { display: block; font-size: 11px; font-weight: normal; color: #707A8A; margin-top: 2px; }
.mkt-name small i { font-style: normal; }
.mkt-price { width: 30%; text-align: center; font-weight: bold; color: #e6e6e6; white-space: nowrap; }
.mkt-chg { width: 30%; text-align: right; }
.badge { display: inline-block; width: 70px; height: 35px; line-height: 35px; text-align: center; border-radius: 5px; font-size: 14px; font-weight: bold; background: #1e363a; color: #3db485; }
.badge.down { background: #3b2937; color: #f5465c; }
.srch { padding: 0 1% 4px; }
.srch .ipt { height: 38px; border-radius: 19px; padding: 0 16px; }

/* Thanh menu dưới */
.ft { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; height: 65px; padding-bottom: 10px; background: #222430; border-radius: 20px 20px 0 0; display: flex; justify-content: space-around; max-width: 750px; margin: 0 auto; }
.ft a { display: block; height: 55px; padding-top: 5px; min-width: 60px; }
.ft-ic { height: 30px; display: flex; align-items: center; justify-content: center; }
.ft-ic img { width: 25px; }
.ft-tx { height: 20px; line-height: 20px; text-align: center; font-size: 12px; color: #707A8A; white-space: nowrap; }
.ft a.on .ft-tx { color: #00b897; }

/* Thanh tiêu đề trang con */
.tb { position: sticky; top: 0; z-index: 50; height: 50px; display: flex; align-items: center; background: #121420; padding: 0 6px; }
.bg2 .tb { background: #1b1d2a; }
.tb-l, .tb-l:link, .tb-l:visited { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #707A8A; flex: none; }
.tb-t { flex: 1; text-align: center; font-size: 16px; color: #e6e6e6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-r { min-width: 44px; display: flex; justify-content: flex-end; flex: none; }
.tb-a, .tb-a:link, .tb-a:visited { color: #00b897; font-size: 14px; padding: 0 8px; white-space: nowrap; }

/* Không có dữ liệu / lỗi */
.empty { padding: 50px 0 60px; text-align: center; color: #707A8A; }
.empty svg { display: block; margin: 0 auto 8px; }
.errp { padding: 90px 20px; text-align: center; }
.errp-c { font-size: 54px; font-weight: bold; color: #2b2e3d; }
.errp-m { margin: 12px 0 28px; color: #9aa0ad; font-size: 15px; line-height: 1.5; }
.btn-g, .btn-g:link, .btn-g:visited { display: inline-block; height: 40px; line-height: 40px; padding: 0 30px; border-radius: 20px; background: #00b897; color: #fff; }

/* Đăng nhập / đăng ký */
.lg { padding: 0 17px; }
.lg-hd { height: 54px; display: flex; align-items: center; justify-content: space-between; }
.lg-x, .lg-x:link, .lg-x:visited { color: #fff; display: flex; margin-left: -6px; padding: 6px; }
.lg-lang, .lg-lang:link, .lg-lang:visited { display: inline-block; min-width: 40px; height: 27px; line-height: 25px; padding: 0 6px; border: 1px solid #fff; border-radius: 4px; color: #fff; font-size: 16px; text-align: center; }
.lg-tabs { margin-top: 24px; display: flex; }
.lg-tabs a, .sub-tabs a { font-size: 17px; color: #9aa0ad; padding-bottom: 4px; margin-right: 20px; border-bottom: 1px solid transparent; }
.lg-tabs a.on, .sub-tabs a.on { color: #fff; border-color: #fff; }
.sub-tabs { margin-top: 18px; display: flex; }
.sub-tabs a { font-size: 15px; }
.lg-title { margin-top: 14px; font-size: 20px; font-weight: bold; color: #fff; }
.lg-f { margin-top: 24px; }
.ipt { display: block; width: 100%; height: 44px; padding: 0 11px; margin-bottom: 20px; background: #222433; border: 0; border-radius: 4px; color: #e6e6e6; font-size: 14px; }
.ipt::placeholder, .stp input::placeholder { color: #707A8A; font-weight: 300; }
.ipt-row { position: relative; }
.ipt-row .ipt { padding-right: 100px; }
.btn-send { position: absolute; right: 0; top: 0; height: 44px; padding: 0 20px; color: #2ebd85; font-weight: bold; font-size: 16px; }
.btn-send:disabled { color: #707A8A; }
.btn-l, .btn-l:link, .btn-l:visited { display: block; width: 100%; height: 45px; line-height: 43px; margin-bottom: 20px; text-align: center; background: #c7c7c7; border: 1px solid #f5f5f5; border-radius: 6px; color: #1b1d2a; font-size: 16px; font-weight: bold; }
.btn-l:disabled { opacity: .6; }
.btn-l.out { background: #2b2e3d; border-color: #2b2e3d; color: #f6465d; margin-top: 8px; }
.lg-fg, .lg-fg:link, .lg-fg:visited { font-size: 12px; color: #9aa0ad; font-weight: 300; }
.tip-box { padding: 14px; background: #222433; border-radius: 6px; color: #c3c7d0; line-height: 1.6; margin-bottom: 18px; font-size: 14px; }
.tip-box.dn { background: #3b2937; }

/* Ngôn ngữ */
.langs { padding: 0 20px; }
.lang-it, .lang-it:link, .lang-it:visited { display: flex; align-items: center; height: 60px; color: #9aa0ad; }
.lang-it img { width: 25px; height: 25px; border-radius: 50%; margin-right: 12px; flex: none; }
.lang-it span { flex: 1; height: 60px; line-height: 60px; border-bottom: 1px solid #2b2e3d; font-size: 15px; }
.lang-it i { position: absolute; right: 20px; color: #e6e6e6; display: flex; }
.lang-it { position: relative; }

/* Thông báo */
.gg { padding: 0 20px; }
.gg-it, .gg-it:link, .gg-it:visited { display: flex; padding: 16px 0; border-bottom: 1px solid #1f2130; color: #9aa0ad; }
.gg-it i { width: 32px; flex: none; padding-top: 2px; }
.gg-t { font-size: 15px; color: #c3c7d0; line-height: 1.4; }
.gg-d { font-size: 12px; margin-top: 10px; }
.ggi { padding: 4px 20px 30px; }
.ggi h1 { font-size: 17px; color: #00b897; line-height: 1.4; padding-bottom: 8px; border-bottom: 1px solid #1f2130; }
.ggi-d { font-size: 12px; color: #707A8A; margin: 8px 0 16px; }
.ggi-c { font-size: 15px; line-height: 1.75; color: #c3c7d0; word-wrap: break-word; }
.ggi-c p { margin-bottom: 12px; }
.ggi-c img { max-width: 100%; height: auto; }
.ggi-c a { color: #00b897; }

/* ===== Giao ngay ===== */
.sp-hd { height: 40px; display: flex; align-items: center; padding: 0 10px; background: #1b1d2a; border-bottom: 1px solid #272936; }
.sp-hd b { font-size: 18px; color: #e6e6e6; margin: 0 4px 0 8px; }
.sp-menu { display: flex; cursor: pointer; }
.sp-chg { font-size: 16px; }
.sp-k { margin-left: auto; display: flex; }
.sp { display: flex; padding: 10px 10px 16px; background: #1b1d2a; }
.sp-l { width: 58%; padding-right: 12px; }
.sp-r { width: 42%; }
.sp-tabs { display: flex; gap: 8px; }
.sp-tabs a { flex: 1; height: 36px; line-height: 36px; text-align: center; border-radius: 4px; background: #222433; color: #707A8A; font-size: 14px; cursor: pointer; }
.sp-tabs a.b.on { background: #0ecb81; color: #fff; }
.sp-tabs a.s.on { background: #f6465d; color: #fff; }
.sp-ty { display: flex; justify-content: space-around; height: 40px; line-height: 40px; margin: 6px 0; }
.sp-ty a { color: #707A8A; cursor: pointer; font-size: 14px; }
.sp-ty a.on { color: #00b897; }
.stp { display: flex; align-items: center; height: 40px; margin-bottom: 10px; background: #222433; border-radius: 4px; overflow: hidden; }
.stp input, .stp select { flex: 1; min-width: 0; height: 40px; padding: 0 11px; background: none; border: 0; color: #e6e6e6; font-size: 14px; }
.stp select option { background: #222433; }
.stp input:disabled { color: #707A8A; }
.stp a { width: 40px; height: 40px; line-height: 40px; text-align: center; font-size: 20px; color: #9aa0ad; cursor: pointer; flex: none; user-select: none; }
.stp span { padding: 0 11px; color: #9aa0ad; flex: none; }
.stp .stp-all { width: auto; padding: 0 12px; font-size: 14px; color: #00b897; }
.mk-only, .is-mk #pbox { display: none; }
.is-mk .mk-only { display: flex; }
.is-mk.is-buy #qbox { display: none; }
.pct { display: flex; gap: 8px; margin: 4px 0 12px; }
.pct a { flex: 1; text-align: center; font-size: 12px; color: #9aa0ad; cursor: pointer; }
.pct a i { display: block; height: 8px; border-radius: 4px; background: #222433; margin-bottom: 6px; }
.pct a.on i { background: #00b897; }
.is-sell .pct a.on i { background: #f6465d; }
.sp-av { display: flex; font-size: 12px; color: #9aa0ad; margin-bottom: 12px; align-items: center; }
.sp-av b { margin-left: auto; margin-right: 4px; color: #e6e6e6; font-weight: normal; }
.tov input { font-size: 13px; }
.btn-trade, .btn-trade:link, .btn-trade:visited { display: block; width: 100%; height: 40px; line-height: 40px; margin-top: 4px; border-radius: 4px; background: #0ecb81; color: #fff; text-align: center; font-size: 15px; cursor: pointer; }
.btn-trade.s { background: #f6465d; }
.btn-trade:disabled { opacity: .6; }
.sp-fee { margin-top: 8px; font-size: 12px; color: #707A8A; }
.bk-h { display: flex; justify-content: space-between; font-size: 12px; color: #707A8A; height: 30px; line-height: 30px; }
.bk { min-height: 150px; }
.bk a { display: flex; justify-content: space-between; height: 30px; line-height: 30px; font-size: 12px; position: relative; cursor: pointer; }
.bk a i { position: absolute; right: 0; top: 3px; bottom: 3px; background: rgba(246, 70, 93, .1); }
.bk.upc a i { background: rgba(14, 203, 129, .1); }
.bk a span { position: relative; }
.bk.dn a span, .bk.upc a span { color: inherit; }
.bk a span + span { color: #c3c7d0; }
.bk-last { height: 44px; line-height: 44px; font-size: 18px; text-align: center; color: #f6465d; }
.bk-last.up { color: #0ecb81; }
.sp-o { background: #1b1d2a; padding: 0 10px; min-height: 320px; }
.sp-oh { height: 40px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #272936; }
.sp-oh b { font-size: 15px; color: #e6e6e6; }
.sp-oh a { display: flex; align-items: center; gap: 2px; font-size: 13px; color: #707A8A; }

/* Ngăn kéo chọn cặp */
.drw { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.drw-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .25s; }
.drw-p { position: absolute; left: 0; top: 0; bottom: 0; width: 78%; max-width: 380px; background: #1b1d2a; overflow-y: auto; transform: translateX(-100%); transition: transform .25s; }
.drw.on { visibility: visible; }
.drw.on .drw-bg { opacity: 1; }
.drw.on .drw-p { transform: none; }
.drw-t { height: 50px; line-height: 50px; padding: 0 14px; font-size: 17px; font-weight: bold; color: #e6e6e6; }
.drw-it, .drw-it:link, .drw-it:visited { display: flex; align-items: center; height: 48px; padding: 0 14px; border-top: 1px solid #22243a; color: #e6e6e6; }
.drw-it span { flex: 1; display: flex; align-items: center; font-weight: bold; }
.drw-it img { width: 20px; height: 20px; border-radius: 50%; margin-right: 8px; }
.drw-it b { font-weight: normal; margin-right: 10px; }
.drw-it em { font-style: normal; width: 64px; text-align: right; font-size: 13px; }

/* Danh sách lệnh */
.olist { padding: 0 10px; }
.ord { padding: 12px 0; border-bottom: 1px solid #272936; }
.ord-h { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.ord-h b { color: #e6e6e6; }
.ord-ty { font-size: 12px; color: #707A8A; }
.ord-st { margin-left: auto; font-size: 12px; color: #9aa0ad; }
.st-open, .ds0, .cst-open { color: #f0b90b !important; }
.st-done, .ds1, .cst-win { color: #0ecb81 !important; }
.st-cancel { color: #707A8A !important; }
.ds2, .cst-lose { color: #f6465d !important; }
.btn-xs { margin-left: auto; height: 24px; padding: 0 12px; border-radius: 12px; border: 1px solid #00b897; color: #00b897; font-size: 12px; }
.ord-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; font-size: 13px; color: #c3c7d0; word-break: break-all; }
.ord-g.g4 { grid-template-columns: repeat(4, 1fr); }
.ord-g span { display: block; font-size: 12px; color: #707A8A; margin-bottom: 4px; }
.ord-g > div:last-child { text-align: right; }
.ord-tm { margin-top: 8px; font-size: 12px; color: #707A8A; }
.ord-rs { margin-top: 8px; padding: 6px 8px; font-size: 12px; color: #f6465d; background: #2a1f2a; border-radius: 4px; }
.ord-ad { margin-top: 8px; font-size: 12px; color: #9aa0ad; word-break: break-all; }
.ord-cd { margin-left: auto; font-size: 13px; color: #f0b90b; }
.tabs2 { display: flex; height: 44px; padding: 0 10px; border-bottom: 1px solid #272936; }
.tabs2 a { margin-right: 24px; line-height: 43px; font-size: 15px; color: #707A8A; border-bottom: 2px solid transparent; }
.tabs2 a.on { color: #e6e6e6; border-color: #00b897; }

/* ===== Biểu đồ K ===== */
.kst { display: flex; padding: 10px 12px; background: #1b1d2a; }
.kst-l { width: 48%; }
.kst-p { font-size: 26px; font-weight: bold; line-height: 34px; }
.kst-c { font-size: 15px; margin-top: 2px; }
.kst-r { width: 52%; font-size: 12px; }
.kst-r div { display: flex; justify-content: space-between; line-height: 22px; }
.kst-r span { color: #707A8A; }
.kst-r b { font-weight: normal; color: #c3c7d0; }
.kiv { display: flex; height: 36px; background: #1b1d2a; border-top: 1px solid #272936; border-bottom: 1px solid #272936; padding: 0 6px; }
.kiv a { flex: 1; line-height: 35px; text-align: center; font-size: 13px; color: #707A8A; cursor: pointer; }
.kiv a.on { color: #00b897; }
.kc { position: relative; background: #161a1e; height: 340px; touch-action: pan-y; }
.kc canvas { display: block; width: 100%; height: 100%; }
.kc-tip { position: absolute; top: 4px; left: 6px; font-size: 11px; color: #9aa0ad; pointer-events: none; line-height: 15px; white-space: nowrap; }
.kc-tip b { font-weight: normal; color: #c3c7d0; margin-right: 6px; }
.kb-btns, .ct-btns { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; max-width: 750px; margin: 0 auto; display: flex; gap: 10px; padding: 8px 10px; background: #1b1d2a; }
.ct-btns { bottom: 65px; background: #121420; }
.btn-up, .btn-dn, .btn-up:link, .btn-dn:link, .btn-up:visited, .btn-dn:visited { flex: 1; height: 42px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 4px; color: #fff; font-size: 16px; font-weight: bold; cursor: pointer; }
.btn-up { background: #0ecb81; }
.btn-dn { background: #f6465d; }
body.pb-btn { padding-bottom: 70px; }
body.pb-ct { padding-bottom: 140px; }

/* ===== Hợp đồng ===== */
.ct-hd { border-bottom: 0; }
.sheet, .modal { position: fixed; inset: 0; z-index: 210; visibility: hidden; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .25s; }
.sheet-p { position: absolute; left: 0; right: 0; bottom: 0; max-width: 750px; margin: 0 auto; max-height: 88vh; overflow-y: auto; padding: 0 14px 20px; background: #1b1d2a; border-radius: 16px 16px 0 0; transform: translateY(100%); transition: transform .25s; }
.sheet.on, .modal.on { visibility: visible; }
.sheet.on .sheet-bg { opacity: 1; }
.sheet.on .sheet-p { transform: none; }
.sheet-t { height: 52px; display: flex; align-items: center; gap: 10px; }
.sheet-t b { font-size: 17px; color: #e6e6e6; }
.sheet-t span { font-size: 14px; font-weight: bold; }
.sheet-t a { margin-left: auto; color: #707A8A; display: flex; cursor: pointer; }
.sh-l { margin: 14px 0 8px; font-size: 13px; color: #9aa0ad; }
.sh-l small { color: #707A8A; margin-left: 4px; }
.sh-i { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin: 8px 0; font-size: 13px; color: #9aa0ad; }
.sh-i span { margin-right: auto; }
.sh-i b { color: #e6e6e6; font-weight: normal; }
.per { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.per a { display: block; padding: 8px 4px; border: 1px solid #2b2e3d; border-radius: 6px; text-align: center; cursor: pointer; }
.per a b { display: block; font-size: 16px; color: #e6e6e6; }
.per a span { display: block; font-size: 12px; color: #707A8A; margin-top: 2px; }
.per a.on { border-color: #00b897; background: rgba(0, 184, 151, .08); }
.per a.on span { color: #00b897; }
.qk { display: flex; gap: 8px; }
.qk a { flex: 1; height: 30px; line-height: 30px; text-align: center; border-radius: 4px; background: #222433; font-size: 12px; color: #9aa0ad; cursor: pointer; }
.sheet .btn-trade { margin-top: 16px; height: 44px; line-height: 44px; }
.modal { display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .2s; }
.modal.on { opacity: 1; }
.modal-p { width: 86%; max-width: 360px; background: #1b1d2a; border-radius: 14px; padding: 18px; }
.cd-t { text-align: center; font-size: 16px; color: #e6e6e6; font-weight: bold; }
.cd-ring { width: 120px; height: 120px; margin: 18px auto; border-radius: 50%; border: 6px solid #2b2e3d; border-top-color: #00b897; display: flex; align-items: baseline; justify-content: center; padding-top: 30px; animation: spin 1.2s linear infinite; }
.cd-ring b, .cd-ring span { animation: spin 1.2s linear infinite reverse; display: inline-block; }
.cd-ring b { font-size: 34px; color: #e6e6e6; }
.cd-ring span { font-size: 14px; color: #707A8A; margin-left: 2px; }
.cd.done .cd-ring { animation: none; border-top-color: #2b2e3d; }
.cd.done .cd-ring b, .cd.done .cd-ring span { animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.cd-g { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13px; }
.cd-g span { display: block; color: #707A8A; font-size: 12px; margin-bottom: 3px; }
.cd-g b { color: #e6e6e6; font-weight: normal; }
.cd-res { min-height: 30px; margin: 14px 0 4px; text-align: center; font-size: 20px; font-weight: bold; }

/* ===== IEO / Staking ===== */
.cards { padding: 0 1%; }
.card, .card:link, .card:visited { display: block; margin-top: 8px; padding: 14px; background: #1b1d2a; border-radius: 14px; color: #e6e6e6; }
.card-h { display: flex; align-items: center; gap: 10px; }
.card-h b { display: block; font-size: 15px; color: #e6e6e6; }
.card-h small { font-size: 12px; color: #707A8A; }
.lg-c { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.lg-t { display: inline-flex; align-items: center; justify-content: center; background: #2b2e3d; color: #00b897; font-weight: bold; font-size: 12px; width: 32px; height: 32px; border-radius: 50%; flex: none; }
.lg-c.lg-t { width: 38px; height: 38px; }
.st { margin-left: auto; font-size: 12px; padding: 3px 10px; border-radius: 10px; background: #2b2e3d; color: #9aa0ad; white-space: nowrap; }
.st-on { background: rgba(0, 184, 151, .14); color: #00b897; }
.st-ns { background: rgba(240, 185, 11, .14); color: #f0b90b; }
.card-g { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 10px; }
.card-g.g3 { grid-template-columns: repeat(3, 1fr); }
.card-g span { display: block; font-size: 12px; color: #707A8A; margin-bottom: 4px; }
.card-g b { font-size: 14px; font-weight: normal; color: #e6e6e6; }
.prog { height: 6px; border-radius: 3px; background: #2b2e3d; overflow: hidden; margin-top: 10px; }
.prog i { display: block; height: 100%; background: #00b897; border-radius: 3px; }
.card-f { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12px; color: #707A8A; }
.card .btn-trade { margin-top: 14px; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #22243a; font-size: 13px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: #707A8A; }
.kv b { font-weight: normal; color: #e6e6e6; text-align: right; }
.box .card-h + .prog { margin-top: 16px; }
.intro { font-size: 14px; line-height: 1.7; color: #c3c7d0; word-wrap: break-word; }
.intro.sm { margin-top: 10px; font-size: 12px; color: #9aa0ad; }
.intro img { max-width: 100%; }

/* ===== Trung tâm cá nhân ===== */
.uc { display: flex; align-items: center; gap: 12px; padding: 6px 16px 14px; }
.uc-a svg { width: 52px; height: 52px; display: block; }
.uc-i b { display: block; font-size: 17px; color: #fff; }
.uc-i div { margin-top: 6px; font-size: 12px; color: #9aa0ad; }
.kyc { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 9px; font-size: 11px; font-style: normal; background: #2b2e3d; color: #9aa0ad; }
.kyc.k1 { background: rgba(240, 185, 11, .14); color: #f0b90b; }
.kyc.k2 { background: rgba(0, 184, 151, .14); color: #00b897; }
.kyc.k3 { background: rgba(246, 70, 93, .14); color: #f6465d; }
.uc-l { font-size: 13px; color: #9aa0ad; }
.uc-v { margin-top: 6px; font-size: 26px; font-weight: bold; color: #fff; }
.uc-b { display: flex; gap: 10px; margin-top: 14px; }
.uc-b a, .uc-b a:link, .uc-b a:visited { flex: 1; height: 36px; line-height: 36px; text-align: center; border-radius: 4px; background: #2b2e3d; color: #e6e6e6; font-size: 14px; }
.uc-b a:first-child { background: #00b897; color: #fff; }
.uc-inv { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.uc-inv span { color: #9aa0ad; }
.uc-inv b { margin-left: auto; color: #e6e6e6; letter-spacing: 1px; }
.uc-inv a { color: #00b897; display: flex; cursor: pointer; }
.mn { padding: 0 14px; }
.mn-it, .mn-it:link, .mn-it:visited { display: flex; align-items: center; height: 50px; border-bottom: 1px solid #22243a; color: #e6e6e6; font-size: 14px; }
.mn-it:last-child { border-bottom: 0; }
.mn-it em { margin-left: auto; display: flex; align-items: center; gap: 6px; font-style: normal; color: #707A8A; }
.mn-it em i { font-style: normal; font-size: 12px; }
.mn-it em i.kyc { margin: 0; }
.hz { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #9aa0ad; margin-bottom: 4px; cursor: pointer; }
.hz input { accent-color: #00b897; }
.hz-on .as-it.z { display: none; }
.as-it { padding: 12px 0; border-bottom: 1px solid #22243a; }
.as-it:last-child { border-bottom: 0; }
.as-h { display: flex; align-items: center; gap: 8px; }
.as-h img, .as-h .lg-t { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; font-size: 9px; }
.as-h b { font-size: 15px; color: #e6e6e6; }
.as-h em { margin-left: auto; font-style: normal; font-size: 12px; color: #707A8A; }
.as-g { display: grid; grid-template-columns: 1fr 1fr; margin-top: 8px; font-size: 14px; color: #e6e6e6; }
.as-g > div:last-child { text-align: right; }
.as-g span { display: block; font-size: 12px; color: #707A8A; margin-bottom: 3px; }

/* Nạp / rút */
.nets { display: flex; gap: 8px; padding: 4px 1% 2px; overflow-x: auto; scrollbar-width: none; }
.nets::-webkit-scrollbar { display: none; }
.nets a, .nets a:link, .nets a:visited { flex: none; height: 32px; line-height: 30px; padding: 0 14px; border: 1px solid #2b2e3d; border-radius: 16px; color: #9aa0ad; font-size: 13px; }
.nets a.on { border-color: #00b897; color: #00b897; }
.dep { text-align: center; }
.dep-qr { display: inline-block; padding: 10px; background: #fff; border-radius: 8px; margin: 6px 0 4px; }
.dep-qr img { display: block; width: 180px; height: 180px; }
.dep .sh-l { text-align: left; }
.addr { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #222433; border-radius: 4px; text-align: left; }
.addr span { flex: 1; word-break: break-all; font-size: 13px; color: #e6e6e6; }
.addr a { color: #00b897; display: flex; cursor: pointer; flex: none; }
.tip { margin-top: 12px; font-size: 12px; color: #9aa0ad; line-height: 1.6; text-align: left; }
.upl { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 130px; border: 1px dashed #3a3c4d; border-radius: 6px; background: #222433; cursor: pointer; overflow: hidden; }
.upl input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upl span { font-size: 40px; color: #707A8A; font-weight: 300; }
.upl img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: none; pointer-events: none; background: #222433; }
.upl.has img { display: block; }
.upl.ing::after { content: '…'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .5); font-size: 28px; color: #fff; }
.upl2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.box form .btn-trade { margin-top: 18px; height: 44px; line-height: 44px; }
.kyc-s { text-align: center; padding: 26px 14px; }
.kyc-s > b { display: block; margin: 12px 0 16px; font-size: 16px; color: #e6e6e6; }
.kyc-s .kv { text-align: left; }
.kyc-ic { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: bold; }
.kyc-ic.k1 { background: rgba(240, 185, 11, .14); color: #f0b90b; }
.kyc-ic.k2 { background: rgba(0, 184, 151, .14); color: #00b897; }
.bl { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid #272936; }
.bl b { display: block; font-size: 14px; font-weight: normal; color: #e6e6e6; }
.bl span { display: block; margin-top: 6px; font-size: 12px; color: #707A8A; }
.bl-r { text-align: right; }
.more, .more:link, .more:visited { display: block; height: 44px; line-height: 44px; text-align: center; color: #00b897; }

/* Thông báo nổi + hộp xác nhận */
.toast { position: fixed; left: 50%; top: 42%; z-index: 999; transform: translate(-50%, -50%); max-width: 80%; padding: 12px 18px; border-radius: 8px; background: rgba(20, 22, 32, .94); border: 1px solid #2b2e3d; color: #fff; font-size: 14px; line-height: 1.5; text-align: center; pointer-events: none; opacity: 0; transition: opacity .2s; word-break: break-word; }
.toast.on { opacity: 1; }
.cfm { position: fixed; inset: 0; z-index: 998; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .6); }
.cfm-p { width: 80%; max-width: 330px; background: #1b1d2a; border-radius: 12px; overflow: hidden; }
.cfm-m { padding: 24px 18px; text-align: center; color: #e6e6e6; line-height: 1.6; }
.cfm-b { display: flex; border-top: 1px solid #2b2e3d; }
.cfm-b button { flex: 1; height: 46px; color: #9aa0ad; font-size: 15px; }
.cfm-b button + button { border-left: 1px solid #2b2e3d; color: #00b897; }


/* ===================== Landing page (lp) ===================== */
/* Appended to public/css/app.css. All values use existing theme tokens.
   Prefix .lp- (0 collisions). Mobile-first; reuses .blk .mkt .badge .upc .dn. */

body.lp{padding-bottom:calc(74px + env(safe-area-inset-bottom))}

/* ---- Live price tape ---- */
.lp-tape{overflow:hidden;height:34px;background:#15171f;border-bottom:1px solid #272936}
.lp-tape-track{display:inline-flex;gap:26px;white-space:nowrap;padding:0 13px;line-height:34px;animation:lp-marq 36s linear infinite;will-change:transform}
.lp-tape .it{display:inline-flex;align-items:center;gap:6px;color:#e6e6e6;font-weight:600;font-size:13px}
.lp-tape .it img{width:18px;height:18px;border-radius:50%;object-fit:cover}
@keyframes lp-marq{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ---- Brand + language bar ---- */
.lp-bar{display:flex;align-items:center;justify-content:space-between;padding:calc(12px + env(safe-area-inset-top)) 16px 10px}
.lp-brand{display:flex;align-items:center;gap:9px}
.lp-mark{display:block;flex:none}
.lp-wm{font-size:20px;font-weight:800;letter-spacing:.5px;background:linear-gradient(90deg,#00b897,#0ecb81);-webkit-background-clip:text;background-clip:text;color:transparent}
.lp-lang,.lp-lang:link,.lp-lang:visited{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 10px;border:1px solid #272936;border-radius:999px;color:#e6e6e6;font-size:13px}
.lp-lang img{width:20px;height:20px;border-radius:50%;object-fit:cover}

/* ---- Hero ---- */
.lp-hero{position:relative;overflow:hidden;padding:18px 20px 34px;text-align:center}
.lp-hero::before{content:'';position:absolute;inset:0;background:radial-gradient(130% 90% at 50% -10%,rgba(0,184,151,.28),transparent 62%);pointer-events:none}
.lp-grid{position:absolute;inset:0;background:radial-gradient(circle,rgba(255,255,255,.05) 1px,transparent 1px);background-size:22px 22px;-webkit-mask:linear-gradient(#000,transparent);mask:linear-gradient(#000,transparent);pointer-events:none}
.lp-candles{position:absolute;left:0;right:0;bottom:0;width:100%;height:120px;opacity:.14;-webkit-mask:linear-gradient(transparent,#000 60%);mask:linear-gradient(transparent,#000 60%);pointer-events:none}
.lp-hero>*{position:relative;z-index:1}
.lp-h1{font-size:clamp(24px,7vw,34px);line-height:1.18;font-weight:800;color:#fff;margin:14px 0 10px}
.lp-sub{font-size:clamp(13px,3.6vw,15px);line-height:1.6;color:#707A8A;max-width:30em;margin:0 auto 22px}

/* ---- Primary CTA ---- */
.lp-cta,.lp-cta:link,.lp-cta:visited{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:52px;border-radius:14px;background:#00a383;color:#fff;font-size:17px;font-weight:700;box-shadow:0 10px 30px -8px rgba(0,184,151,.6);animation:lp-pulse 2.4s ease-in-out infinite}
.lp-cta:hover{background:#008f73}
.lp-cta:active{transform:translateY(1px)}
@keyframes lp-pulse{0%,100%{box-shadow:0 10px 30px -8px rgba(0,184,151,.45)}50%{box-shadow:0 12px 40px -6px rgba(0,184,151,.75)}}

/* ---- Secondary links ---- */
.lp-links{display:flex;justify-content:center;gap:22px;margin:14px 0 18px;font-size:14px}
.lp-links a,.lp-links a:link,.lp-links a:visited{color:#707A8A}
.lp-links .go,.lp-links .go:link,.lp-links .go:visited{color:#00b897;font-weight:600}

/* ---- Trust chips ---- */
.lp-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-bottom:20px}
.chip{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;background:#1b1d2a;border:1px solid #272936;border-radius:999px;color:#b7bcc6;font-size:12px}
.chip svg{width:14px;height:14px;flex:none;stroke:#00b897;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* ---- Hero live stats ---- */
.lp-stats{display:flex;gap:8px}
.lp-stat{flex:1;min-width:0;background:#1b1d2a;border:1px solid #272936;border-radius:14px;padding:12px 8px}
.lp-stat-n{display:flex;align-items:center;justify-content:center;gap:6px;font-size:18px;font-weight:800;color:#fff;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lp-stat-l{font-size:12px;color:#707A8A;margin-top:3px}
.lp-dot{width:8px;height:8px;flex:none;border-radius:50%;background:#0ecb81;box-shadow:0 0 0 0 rgba(14,203,129,.6);animation:lp-ping 1.6s ease-out infinite}
@keyframes lp-ping{0%{box-shadow:0 0 0 0 rgba(14,203,129,.6)}70%{box-shadow:0 0 0 7px rgba(14,203,129,0)}100%{box-shadow:0 0 0 0 rgba(14,203,129,0)}}

/* ---- Section title ---- */
.lp-sec-t{display:flex;align-items:center;justify-content:space-between;margin:18px 0 10px}
.lp-sec-t b{font-size:15px;color:#fff}
.lp-sec-t a,.lp-sec-t a:link,.lp-sec-t a:visited{color:#00b897;font-size:13px}

/* ---- Featured metals ---- */
.lp-metals{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}
.lp-metal{background:#1b1d2a;border:1px solid #272936;border-radius:16px;padding:12px 6px;text-align:center}
.lp-metal img{width:28px;height:28px;border-radius:50%;object-fit:cover;margin-bottom:6px}
.lp-metal .nm{display:block;font-size:12px;color:#707A8A;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lp-metal .pr{display:block;font-size:16px;font-weight:700;color:#e6e6e6;margin:2px 0}
.lp-metal .cg{display:block;font-size:13px;font-weight:600;color:#2ebd85}

/* ---- Why cards ---- */
.feat-card{display:flex;align-items:center;gap:12px;padding:14px;background:#1b1d2a;border:1px solid #272936;border-radius:16px;margin-bottom:10px}
.feat-card .ic{width:44px;height:44px;flex:none;display:flex;align-items:center;justify-content:center;background:#121420;border-radius:12px}
.feat-card .ic svg{width:22px;height:22px;stroke:#00b897;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.feat-card h4{font-size:15px;color:#fff;font-weight:700;margin-bottom:3px}
.feat-card p{font-size:13px;color:#707A8A;line-height:1.45}

/* ---- Security grid ---- */
.lp-sgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.lp-scard{background:#1b1d2a;border:1px solid #272936;border-radius:16px;padding:14px}
.lp-scard .ic{width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:rgba(0,184,151,.12);border-radius:12px;margin-bottom:10px}
.lp-scard .ic svg{width:22px;height:22px;stroke:#00b897;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.lp-scard h4{font-size:14px;color:#fff;font-weight:700;margin-bottom:4px}
.lp-scard p{font-size:12px;color:#707A8A;line-height:1.5}

/* ---- Compliance pills ---- */
.lp-pills{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:12px;padding-top:14px;border-top:1px solid #272936}
.lp-pill{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;background:#1b1d2a;border:1px solid #272936;border-radius:999px;color:#9aa0ad;font-size:12px}
.lp-pill svg{width:13px;height:13px;flex:none;stroke:#00b897;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ---- Steps ---- */
.lp-steps{position:relative}
.lp-steps::before{content:'';position:absolute;left:18px;top:16px;bottom:16px;width:1px;background:#272936}
.lp-step,.lp-step:link,.lp-step:visited{position:relative;display:flex;align-items:center;gap:14px;padding:10px 0;color:inherit}
.lp-num{width:36px;height:36px;flex:none;display:flex;align-items:center;justify-content:center;border:1px solid #00b897;border-radius:50%;color:#00b897;font-weight:700;background:#121420;z-index:1}
.lp-step h4{font-size:15px;color:#fff;font-weight:700;margin-bottom:2px}
.lp-step p{font-size:13px;color:#707A8A}

/* ---- Final gradient-border panel ---- */
.lp-end{position:relative;overflow:hidden;text-align:center;padding:28px 20px;border-radius:20px;border:1.5px solid transparent;background:linear-gradient(#1b1d2a,#15171f) padding-box,linear-gradient(135deg,#00b897,#0ecb81) border-box;box-shadow:0 20px 50px -24px rgba(0,184,151,.5)}
.lp-end::before{content:'';position:absolute;inset:0;background:radial-gradient(90% 120% at 50% 0,rgba(0,184,151,.22),transparent 60%);pointer-events:none}
.lp-end>*{position:relative;z-index:1}
.lp-end h3{font-size:20px;font-weight:800;color:#fff;margin-bottom:16px}
.lp-end .tip{margin-top:12px;color:#707A8A;font-size:13px}
.lp-end .tip a,.lp-end .tip a:link,.lp-end .tip a:visited{color:#00b897}

/* ---- Footer ---- */
.lp-foot{text-align:center;color:#707A8A;font-size:12px;padding:26px 16px 10px;border-top:1px solid #272936;margin-top:18px}
.lp-foot .brand{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:12px}
.lp-foot .brand .lp-wm{font-size:17px}
.lp-foot .row{display:flex;flex-wrap:wrap;justify-content:center;gap:18px;margin:10px 0}
.lp-foot .row a,.lp-foot .row a:link,.lp-foot .row a:visited{color:#9aa0ad}
.lp-foot .lp-lang{margin:6px auto 12px}
.lp-foot .cpr{color:#5b6472}

/* ---- Sticky bottom CTA bar ---- */
.lp-sticky{position:fixed;left:0;right:0;bottom:0;z-index:95;max-width:750px;margin:0 auto;display:flex;gap:10px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:rgba(27,29,42,.96);border-top:1px solid #272936;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transition:transform .25s ease}
.lp-sticky.hidden{transform:translateY(130%)}
.lp-sbtn,.lp-sbtn:link,.lp-sbtn:visited{flex:1;display:flex;align-items:center;justify-content:center;height:46px;border-radius:12px;font-weight:700;font-size:15px}
.lp-sbtn.solid,.lp-sbtn.solid:link,.lp-sbtn.solid:visited{background:#00a383;color:#fff}
.lp-sbtn.ghost,.lp-sbtn.ghost:link,.lp-sbtn.ghost:visited{flex:0 0 40%;background:transparent;border:1px solid #272936;color:#e6e6e6}

/* ---- Narrow phones ---- */
@media (max-width:360px){
  .lp-sgrid{grid-template-columns:1fr}
  .lp-stat-n{font-size:16px}
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion:reduce){
  .lp-tape-track,.lp-cta,.lp-dot{animation:none}
  .lp-sticky{transition:none}
}
