:root {
  --bg: #070a0f; --surface: #0f131a; --surface-2: #151a23; --surface-3: #1b222e;
  --line: rgba(255,255,255,.075); --line-strong: rgba(255,255,255,.13);
  --text: #f7f8fa; --muted: #8b96a8; --subtle: #626d7f;
  --accent: #b6f455; --accent-2: #82df60; --green: #61e7a8; --red: #ff6b7a;
  --amber: #ffc867; --blue: #759cff; --purple: #9e8cff;
  --radius: 18px; --radius-sm: 12px; --shadow: 0 26px 80px rgba(0,0,0,.38);
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background:
  radial-gradient(900px 500px at 70% -150px, rgba(182,244,85,.08), transparent 65%),
  radial-gradient(700px 400px at -10% 60%, rgba(117,156,255,.06), transparent 65%), var(--bg);
  font: 14px/1.5 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.01em;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 18px 20px; border-right: 1px solid var(--line); background: rgba(9,12,17,.8); backdrop-filter: blur(24px); display: flex; flex-direction: column; z-index: 10; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.7px; padding: 0 10px; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--accent); color: #11170b; font-size: 17px; font-weight: 900; box-shadow: 0 0 32px rgba(182,244,85,.2); }
.side-label { margin: 34px 11px 10px; color: var(--subtle); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 750; }
.nav { display: grid; gap: 5px; }
.nav button { width: 100%; border: 1px solid transparent; background: transparent; color: var(--muted); border-radius: 12px; padding: 10px 11px; display: flex; align-items: center; gap: 11px; text-align: left; transition: .18s ease; }
.nav button svg { width: 17px; height: 17px; stroke-width: 1.8; }
.nav button:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav button.active { color: var(--text); background: var(--surface-2); border-color: var(--line); box-shadow: inset 3px 0 var(--accent); }
.nav .nav-badge { margin-left: auto; min-width: 20px; padding: 2px 6px; border-radius: 20px; color: #11170b; background: var(--accent); font-size: 10px; font-weight: 800; text-align: center; }
.sidebar-user { margin-top: auto; border-top: 1px solid var(--line); padding: 18px 8px 0; }
.user-chip { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { flex: 0 0 auto; width: 35px; height: 35px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--blue)); display: grid; place-items: center; font-weight: 800; color: #fff; }
.user-meta { min-width: 0; flex: 1; }
.user-meta strong, .user-meta span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta strong { font-size: 12px; }
.user-meta span { color: var(--muted); font-size: 10px; text-transform: capitalize; }
.logout { width: 100%; margin-top: 13px; padding: 9px 10px; color: #ff8793; border: 1px solid rgba(255,107,122,.32); background: rgba(255,107,122,.055); border-radius: 10px; font-weight: 650; transition: color .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease; }
.logout:hover { color: #fff; border-color: rgba(255,107,122,.62); background: rgba(255,107,122,.14); box-shadow: 0 8px 22px rgba(255,107,122,.08); }
.main { min-width: 0; padding: 28px clamp(20px,4vw,54px) 54px; }
.content { width: min(1380px,100%); margin: auto; }
.topbar { min-height: 44px; margin-bottom: 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.crumb { color: var(--muted); font-size: 12px; }
.crumb strong { color: var(--text); }
.status-pill { border: 1px solid var(--line); border-radius: 999px; background: rgba(15,19,26,.7); padding: 8px 12px; color: var(--muted); font-size: 11px; display: flex; align-items: center; gap: 8px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.notification-center { position: relative; z-index: 35; }
.notification-button { position: relative; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; color: var(--muted); background: rgba(15,19,26,.78); transition: color .18s ease,border-color .18s ease,background .18s ease,transform .18s ease; }
.notification-button:hover,.notification-button.has-unread { color: var(--text); border-color: rgba(182,244,85,.28); background: rgba(182,244,85,.055); }
.notification-button:hover { transform: translateY(-1px); }
.notification-button svg { width: 18px; height: 18px; stroke-width: 1.8; }
.notification-count { position: absolute; top: -6px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px; border: 2px solid var(--bg); border-radius: 999px; display: grid; place-items: center; color: #fff; background: var(--red); font-size: 8px; font-weight: 850; line-height: 1; box-shadow: 0 4px 12px rgba(255,107,122,.28); }
.notification-dropdown { position: absolute; top: calc(100% + 10px); right: 0; width: min(390px,calc(100vw - 34px)); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 17px; background: #11161e; box-shadow: 0 24px 70px rgba(0,0,0,.52); animation: pop .16s ease; }
.notification-dropdown[hidden] { display: none; }
.notification-dropdown>header { min-height: 62px; padding: 14px 15px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.notification-dropdown>header strong,.notification-dropdown>header span { display: block; }
.notification-dropdown>header strong { font-size: 13px; }
.notification-dropdown>header span { margin-top: 1px; color: var(--muted); font-size: 9px; }
#notifications-read-all { padding: 5px 7px; border: 0; background: transparent; color: var(--accent); font-size: 9px; font-weight: 750; }
#notifications-read-all:hover { color: #d4ff91; }
.notification-list { max-height: 430px; overflow-y: auto; }
.notification-item { position: relative; width: 100%; padding: 13px 15px; border: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 37px minmax(0,1fr) 7px; align-items: start; gap: 11px; color: var(--text); background: transparent; text-align: left; transition: background .16s ease; }
.notification-item:last-child { border-bottom: 0; }
.notification-item:hover { background: rgba(255,255,255,.035); }
.notification-item.unread { background: linear-gradient(90deg,rgba(182,244,85,.065),rgba(182,244,85,.012)); }
.notification-item-icon { width: 37px; height: 37px; border-radius: 11px; display: grid; place-items: center; }
.notification-item-icon svg { width: 17px; height: 17px; }
.notification-item-icon.chat { color: #11170b; background: var(--accent); }
.notification-item-icon.withdrawal { color: #ffb1b9; background: rgba(255,107,122,.11); border: 1px solid rgba(255,107,122,.16); }
.notification-item-copy { min-width: 0; display: block; }
.notification-item-copy strong,.notification-item-copy span,.notification-item-copy small { display: block; }
.notification-item-copy strong { margin-bottom: 2px; overflow: hidden; color: #f2f5f8; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.notification-item-copy span { overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; }
.notification-item-copy small { margin-top: 4px; color: var(--subtle); font-size: 8px; }
.notification-unread-dot { align-self: center; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(182,244,85,.5); }
.notification-empty { padding: 35px 24px; color: var(--muted); text-align: center; }
.notification-empty>span { width: 38px; height: 38px; margin: 0 auto 10px; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; color: var(--subtle); background: var(--surface-2); }
.notification-empty svg { width: 17px; }
.notification-empty strong { display: block; color: var(--text); font-size: 12px; }
.notification-empty p { margin: 4px 0 0; font-size: 10px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: 10px; font-weight: 800; }
.eyebrow:before { content:""; width: 15px; height: 1px; background: var(--accent); }
h1,h2,h3,p { margin-top: 0; }
h1 { margin-bottom: 6px; font-size: clamp(28px,4vw,42px); line-height: 1.08; letter-spacing: -1.8px; font-weight: 750; }
h2 { margin-bottom: 6px; font-size: 19px; letter-spacing: -.6px; }
h3 { font-size: 14px; letter-spacing: -.2px; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.card { background: linear-gradient(145deg, rgba(21,26,35,.94), rgba(13,17,23,.94)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 36px rgba(0,0,0,.12); }
.pad { padding: 21px; }
.section { margin-top: 28px; }
.section-head { margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.section-head h2 { margin: 0; }
.live-label { color: var(--muted); font-size: 11px; display: flex; align-items: center; gap: 7px; }
.market-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }
.market-card { min-width: 0; padding: 15px; overflow: hidden; position: relative; }
.market-top { display: flex; align-items: center; gap: 9px; }
.coin-logo { width: 30px; height: 30px; border-radius: 50%; background: #fff; object-fit: cover; }
.coin-logo-fallback { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: 11px; font-weight: 800; }
.coin-name { min-width: 0; flex: 1; }
.coin-name strong,.coin-name span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin-name strong { font-size: 12px; }
.coin-name span { color: var(--subtle); font-size: 10px; }
.rank { color: var(--subtle); font-size: 9px; }
.market-price { margin-top: 13px; font-size: 17px; font-weight: 720; letter-spacing: -.5px; }
.change { display: inline-flex; align-items: center; gap: 3px; margin-top: 4px; font-size: 11px; font-weight: 700; }
.change.up,.positive { color: var(--green); }
.change.down,.negative { color: var(--red); }
.spark { position: absolute; right: 8px; bottom: 8px; width: 64px; height: 24px; opacity: .58; }
.spark polyline { fill: none; stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.asset-card { padding: 20px; transition: transform .2s ease, border-color .2s ease; }
.asset-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.asset-head { display: flex; align-items: center; gap: 11px; }
.asset-icon { width: 41px; height: 41px; border-radius: 50%; display: grid; place-items: center; color: #10150c; font-weight: 850; background: linear-gradient(135deg,var(--accent),#72ddb4); }
.asset-icon.coin-symbol { font-size: 9px; letter-spacing: -.2px; color: #fff; background: linear-gradient(135deg,#354052,#1d2531); }
.asset-icon.coin-bnb { color: #171710; background: linear-gradient(135deg,#f3ba2f,#f8d76e); }
.asset-icon.coin-xrp { background: linear-gradient(135deg,#566170,#111820); }
.asset-icon.coin-sol { background: linear-gradient(135deg,#9945ff,#14f195); }
.asset-icon.coin-doge { background: linear-gradient(135deg,#c59a35,#e4c467); }
.asset-icon.coin-ada { background: linear-gradient(135deg,#3154b8,#4d82db); }
.asset-icon.coin-trx { background: linear-gradient(135deg,#ef3340,#9d101b); }
.asset-icon.coin-ltc { background: linear-gradient(135deg,#6d7480,#aab1bc); }
.asset-icon.branded { overflow: hidden; background: transparent; border-radius: 50%; box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.asset-icon.branded img { display: block; width: 100%; height: 100%; object-fit: contain; }
.asset-title { flex: 1; }
.asset-title strong,.asset-title span { display: block; }
.asset-title span { color: var(--muted); font-size: 11px; }
.balance { margin: 26px 0 2px; font-size: 28px; font-weight: 740; letter-spacing: -1px; }
.balance small { color: var(--muted); font-size: 11px; letter-spacing: 0; }
.asset-usd { min-height: 20px; color: var(--subtle); font-size: 12px; }
.asset-balance-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.asset-balance-row > div:first-child { min-width: 0; }
.asset-live { flex: 0 0 auto; margin-bottom: 3px; display: flex; align-items: flex-end; flex-direction: column; gap: 5px; }
.asset-spot-price { color: #e8edf4; font-size: 12px; font-weight: 760; }
.asset-change-badge { min-width: 67px; padding: 4px 7px; border-radius: 999px; text-align: center; font-size: 9px; font-weight: 800; }
.asset-change-badge.up { color: var(--green); background: rgba(97,231,168,.08); }
.asset-change-badge.down { color: var(--red); background: rgba(255,107,122,.08); }
.asset-change-badge.unavailable { color: var(--subtle); background: var(--surface-3); }
.address-state { margin-top: 10px; font-size: 10px; font-weight: 700; }
.address-state.assigned { color: var(--green); }
.address-state.pending { color: var(--amber); }
.actions { display: flex; gap: 8px; margin-top: 18px; }
.btn,.ghost { min-height: 39px; border-radius: 11px; padding: 9px 14px; border: 1px solid transparent; font-weight: 700; transition: .18s ease; }
.btn { background: var(--accent); color: #11170b; }
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(182,244,85,.12); }
.btn:disabled { cursor: not-allowed; opacity: .38; filter: none; transform: none; box-shadow: none; }
.btn.secondary { background: var(--blue); color: #fff; }
.btn.danger { background: var(--red); color: #fff; }
.btn.small,.ghost.small { min-height: 32px; padding: 6px 10px; font-size: 11px; }
.ghost { background: rgba(255,255,255,.02); border-color: var(--line); color: var(--text); }
.ghost:hover { background: rgba(255,255,255,.055); border-color: var(--line-strong); }
.actions .btn,.actions .ghost { flex: 1; }
.table-wrap { overflow: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th,.table td { text-align: left; padding: 14px 15px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table th { color: var(--subtle); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; font-weight: 750; }
.table td { color: #dce1e8; font-size: 12px; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(255,255,255,.018); }
.type-cell { display: flex; align-items: center; gap: 9px; }
.type-dot { width: 27px; height: 27px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.type-dot svg { width: 13px; }
.split { display: grid; grid-template-columns: 310px minmax(0,1fr); gap: 14px; }
.client-sidebar { padding: 13px; }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 12px; top: 12px; width: 15px; color: var(--subtle); }
.search-wrap input { padding-left: 36px; }
.user-list { margin-top: 10px; max-height: 650px; overflow: auto; }
.user { padding: 11px; border-radius: 11px; border: 1px solid transparent; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.user:hover,.user.selected { background: var(--surface-3); border-color: var(--line); }
.user .avatar { width: 32px; height: 32px; font-size: 11px; }
.user strong,.user small { display: block; max-width: 205px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail { padding: 22px; min-height: 450px; }
.detail-actions { display: flex; align-items: center; gap: 8px; }
.client-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin: 18px 0 6px; }
.client-facts > div { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.018); }
.client-facts span,.client-facts strong { display: block; }
.client-facts span { color: var(--subtle); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.client-facts strong { margin-top: 4px; font-size: 12px; }
.address-manager { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.012); }
.address-manager .section-head { align-items: flex-start; }
.address-manager h3 { margin-bottom: 5px; font-size: 15px; }
.address-manager p { max-width: 620px; margin-bottom: 0; font-size: 11px; }
.address-batch { margin-bottom: 18px; padding: 15px; border: 1px solid rgba(182,244,85,.24); border-radius: 13px; background: linear-gradient(135deg,rgba(182,244,85,.055),rgba(255,255,255,.012)); }
.batch-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.batch-heading strong,.batch-heading span { display: block; }
.batch-heading strong { color: var(--text); font-size: 12px; }
.batch-heading > div > span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.batch-count { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; color: var(--accent); background: rgba(182,244,85,.08); font-size: 9px; font-weight: 800; }
.batch-coins { display: flex; flex-wrap: wrap; gap: 7px; }
.batch-coin { margin: 0; cursor: pointer; }
.batch-coin input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.batch-coin > span { min-width: 78px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 11px; display: flex; align-items: center; gap: 7px; color: var(--muted); background: #0b0f15; transition: .16s ease; }
.batch-coin .asset-icon { width: 25px; height: 25px; border-radius: 8px; font-size: 7px; }
.batch-coin .asset-icon.branded { border-radius: 50%; }
.batch-coin strong { font-size: 10px; }
.batch-coin input:checked + span { border-color: rgba(182,244,85,.62); color: var(--text); background: rgba(182,244,85,.1); box-shadow: inset 0 0 0 1px rgba(182,244,85,.12); }
.batch-actions { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: end; margin-top: 12px; }
.batch-actions .field { margin: 0; }
.batch-actions .btn { min-width: 188px; }
.address-divider { position: relative; margin: 20px 0; text-align: center; }
.address-divider:before { content:""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--line); }
.address-divider span { position: relative; padding: 0 10px; color: var(--subtle); background: #11161e; font-size: 8px; font-weight: 800; letter-spacing: .09em; }
.wallet-address-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.wallet-address-field { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #0b0f15; }
.wallet-address-coin { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.wallet-address-coin .asset-icon { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; }
.wallet-address-coin .asset-icon.branded { border-radius: 50%; }
.wallet-address-coin strong,.wallet-address-coin small { display: block; }
.wallet-address-coin strong { color: var(--text); font-size: 11px; }
.wallet-address-coin small { color: var(--subtle); font-size: 9px; }
.wallet-address-field input { padding: 9px 10px; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: 10px; }
.address-save { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; }
.address-save .muted { font-size: 10px; }
.settings-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(260px,.7fr); gap: 14px; align-items: start; }
.settings-card { padding: 24px; }
.settings-card form { margin-top: 24px; }
.security-note .support-avatar { margin-bottom: 22px; }
.account-fact { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.account-fact:last-child { border: 0; }
.account-fact span { color: var(--muted); font-size: 11px; }
.account-fact strong { font-size: 11px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.balance-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.balance-row:last-child { border: 0; }
.balance-row .asset-icon { width: 34px; height: 34px; border-radius: 10px; font-size: 11px; }
.balance-row .asset-icon.branded { border-radius: 50%; }
.balance-row .balance-data { flex: 1; }
.balance-row strong,.balance-row span { display: block; }
.balance-row span { color: var(--muted); font-size: 11px; }
label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 650; }
.field { margin-bottom: 15px; }
input,textarea,select { width: 100%; padding: 11px 12px; border-radius: 11px; border: 1px solid var(--line); background: #0b0f15; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus,textarea:focus,select:focus { border-color: rgba(182,244,85,.55); box-shadow: 0 0 0 3px rgba(182,244,85,.07); }
textarea { min-height: 90px; resize: vertical; }
.chat-page { width: min(940px,100%); margin: 0 auto; }
.chat-shell { min-height: 620px; overflow: hidden; display: flex; flex-direction: column; }
.chat-header { padding: 17px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.012); }
.support-avatar { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #11170b; background: var(--accent); }
.support-avatar svg { width: 20px; }
.support-info { flex: 1; }
.support-info strong,.support-info span { display: block; }
.support-info span { color: var(--muted); font-size: 11px; }
.online { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; background: rgba(97,231,168,.07); color: var(--green); font-size: 10px; }
.conversation { height: 445px; padding: 22px; overflow-y: auto; background: radial-gradient(circle at 50% 0,rgba(182,244,85,.025),transparent 55%),#0b0f15; }
.message-row { display: flex; gap: 9px; margin: 13px 0; align-items: flex-end; }
.message-row.outgoing { justify-content: flex-end; }
.message-mini-avatar { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); font-size: 9px; font-weight: 800; }
.support-message-avatar { color: #11170b; background: var(--accent); box-shadow: 0 0 0 1px rgba(182,244,85,.22),0 6px 16px rgba(182,244,85,.1); }
.client-message-avatar { background: linear-gradient(135deg,rgba(158,140,255,.3),rgba(117,156,255,.24)); color: #dfe5ff; }
.bubble-wrap { max-width: min(68%,570px); }
.bubble { padding: 11px 13px; border-radius: 14px 14px 14px 4px; background: var(--surface-3); color: #e5e9ee; line-height: 1.48; word-break: break-word; }
.outgoing .bubble { background: var(--accent); color: #11170b; border-radius: 14px 14px 4px 14px; }
.message-meta { margin-top: 4px; color: var(--subtle); font-size: 9px; }
.outgoing .message-meta { text-align: right; }
.message-receipt { margin-left: 7px; color: var(--subtle); font-weight: 750; white-space: nowrap; }
.message-receipt:before { content:'✓'; margin-right: 3px; font-size: 9px; }
.message-receipt.seen { color: var(--green); }
.message-receipt.seen:before { content:'✓✓'; letter-spacing: -2px; margin-right: 5px; }
.message-edited { margin-left: 7px; color: var(--subtle); font-style: italic; }
.message-admin-actions { margin-left: 8px; display: inline-flex; align-items: center; gap: 3px; }
.message-admin-actions button { padding: 2px 5px; border: 0; border-radius: 5px; color: #cbd2db; background: transparent; font-size: 9px; font-weight: 750; }
.message-admin-actions button:hover { color: #11170b; background: var(--accent); }
.message-admin-actions button.delete { color: #ff8f9a; }
.message-admin-actions button.delete:hover { color: #fff; background: var(--red); }
.delete-message-preview { max-height: 150px; margin: 16px 0 20px; padding: 13px; overflow: auto; border: 1px solid var(--line); border-radius: 11px; color: #e5e9ee; background: #0b0f15; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.composer { padding: 14px; border-top: 1px solid var(--line); display: flex; align-items: flex-end; gap: 10px; background: var(--surface); }
.composer textarea { min-height: 43px; max-height: 120px; margin: 0; resize: none; }
.send-button { flex: 0 0 43px; width: 43px; height: 43px; border: 0; border-radius: 12px; display: grid; place-items: center; color: #11170b; background: var(--accent); }
.send-button svg { width: 18px; }
.empty-chat { height: 100%; display: grid; place-items: center; text-align: center; color: var(--muted); }
.empty-chat .support-avatar { margin: auto auto 13px; }
.modal-layer { position: fixed; inset: 0; z-index: 50; padding: 20px; display: grid; place-items: center; background: rgba(0,0,0,.75); backdrop-filter: blur(10px); animation: fade .15s ease; }
.modal { width: min(470px,100%); max-height: 90vh; overflow: auto; padding: 24px; border: 1px solid var(--line-strong); border-radius: 22px; background: #121720; box-shadow: var(--shadow); animation: pop .2s ease; }
.modal-head { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; margin-bottom: 18px; }
.icon-button { flex: 0 0 auto; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.18); border-radius: 11px; background: rgba(255,255,255,.035); color: #e7edf5; display: grid; place-items: center; transition: color .18s ease,border-color .18s ease,background .18s ease,transform .18s ease; }
.icon-button:hover { color: var(--accent); border-color: rgba(182,244,85,.52); background: rgba(182,244,85,.09); transform: translateY(-1px); }
.icon-button svg { width: 17px; stroke-width: 2.2; }
.receive-modal { width: min(500px,100%); padding: 28px; }
.receive-modal .modal-head { margin-bottom: 14px; }
.receive-guidance { margin: 0; max-width: 390px; }
.qr { display: block; width: 205px; height: 205px; margin: 20px auto 22px; padding: 10px; background: #fff; border-radius: 17px; box-shadow: 0 0 0 1px rgba(255,255,255,.08),0 12px 30px rgba(0,0,0,.24); }
.receive-address-panel { padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: rgba(7,10,15,.42); }
.receive-address-label { margin: 0 0 9px 2px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .02em; }
.address-copy-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; align-items: stretch; }
.address { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #0b0f15; color: #dce1e8; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: 11px; line-height: 1.45; text-align: left; word-break: break-all; cursor: pointer; transition: border-color .18s ease,background .18s ease; }
.address:hover,.address:focus-visible { border-color: rgba(182,244,85,.5); background: rgba(182,244,85,.045); outline: none; }
.copy-address-button { min-width: 120px; padding: 0 14px; border: 1px solid var(--accent); border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--accent); color: #11170b; font-size: 10px; font-weight: 800; white-space: nowrap; transition: filter .18s ease,transform .18s ease,box-shadow .18s ease; }
.copy-address-button:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(182,244,85,.12); }
.copy-address-button svg { width: 15px; }
.receive-footer { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.receive-close-button { width: 100%; min-height: 44px; border-color: var(--line-strong); background: var(--surface-2); color: #f2f5f8; }
.receive-close-button:hover { border-color: rgba(255,255,255,.2); background: var(--surface-3); }
.popup-message-body { margin-bottom: 20px; color: #dce1e8; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.popup-ack-button { width: 100%; min-height: 44px; }
.badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; background: var(--surface-3); font-size: 9px; font-weight: 800; letter-spacing: .04em; }
.badge.PENDING { color: var(--amber); }.badge.APPROVED { color: var(--green); }.badge.REJECTED { color: var(--red); }
.empty { padding: 45px 20px; text-align: center; color: var(--muted); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 80; max-width: 360px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: #1b222e; color: var(--text); box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: none; }
.auth { min-height: 100vh; padding: 24px; display: grid; grid-template-columns: 1.15fr .85fr; }
.auth-visual { min-height: calc(100vh - 48px); padding: clamp(36px,7vw,90px); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; position: relative; background: radial-gradient(circle at 20% 20%,rgba(182,244,85,.14),transparent 34%),linear-gradient(145deg,#111720,#0a0e14); display: flex; flex-direction: column; justify-content: space-between; }
.auth-visual:after { content:""; position:absolute; width:430px; height:430px; right:-130px; bottom:-130px; border:1px solid rgba(182,244,85,.15); border-radius:50%; box-shadow:0 0 0 55px rgba(182,244,85,.025),0 0 0 110px rgba(182,244,85,.018); }
.auth-copy { position: relative; z-index: 1; max-width: 600px; }
.auth-copy h1 { max-width: 520px; font-size: clamp(42px,6vw,76px); letter-spacing: -4px; }
.auth-copy p { max-width: 470px; color: var(--muted); font-size: 16px; }
.trust-row { position: relative; z-index:1; display:flex; gap:18px; flex-wrap:wrap; color:var(--muted); font-size:11px; }
.trust-row span { display:flex; align-items:center; gap:7px; }.trust-row i { width:6px;height:6px;border-radius:50%;background:var(--accent); }
.auth-form-wrap { display: grid; place-items: center; padding: clamp(25px,6vw,85px); }
.auth-card { width: min(390px,100%); }
.auth-card .brand { padding:0; margin-bottom:52px; }
.auth-card h2 { font-size: 30px; letter-spacing: -1.2px; }
.auth-card .btn { width:100%; margin-top:5px; }
.auth-switch { margin-top:22px; color:var(--muted); text-align:center; }
.link { padding:0; border:0; background:transparent; color:var(--accent); font-weight:700; }
.skeleton { min-height: 130px; position:relative; overflow:hidden; }
.skeleton:after { content:""; position:absolute; inset:0; background:linear-gradient(100deg,transparent,rgba(255,255,255,.045),transparent); animation:shimmer 1.4s infinite; }
@keyframes shimmer { from{transform:translateX(-100%)} to{transform:translateX(100%)} }
@keyframes fade { from{opacity:0} } @keyframes pop { from{opacity:0;transform:translateY(8px) scale(.98)} }
@media (max-width: 1150px) { .market-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.market-card:last-child{display:none} }
@media (max-width: 900px) { .app-shell{grid-template-columns:1fr}.sidebar{position:sticky;height:auto;padding:12px 16px;border-right:0;border-bottom:1px solid var(--line);flex-direction:row;align-items:center}.sidebar .brand{padding:0}.side-label,.sidebar-user .user-chip{display:none}.nav{display:flex;margin-left:auto;gap:4px}.nav button{width:auto;padding:9px}.nav button span:not(.nav-badge){display:none}.sidebar-user{margin:0 0 0 5px;padding:0;border:0}.logout{margin:0;padding:8px 10px;width:auto}.main{padding:24px 18px 45px}.topbar{display:none}.portfolio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.split,.settings-grid{grid-template-columns:1fr}.auth{grid-template-columns:1fr}.auth-visual{display:none}.auth-form-wrap{min-height:calc(100vh - 48px)} }
@media (max-width: 900px) { .topbar.admin-topbar{display:flex;min-height:40px;margin-bottom:16px;justify-content:flex-end}.admin-topbar .crumb,.admin-topbar>.topbar-actions>.status-pill{display:none}.notification-dropdown{position:fixed;top:76px;right:14px;width:min(390px,calc(100vw - 28px))} }
@media (max-width: 620px) { .sidebar{overflow-x:auto}.brand span:last-child{display:none}.brand-mark{width:32px;height:32px}.nav button{padding:8px}.nav .nav-badge{display:none}.main{padding:22px 14px 40px}.page-head,.section-head{align-items:flex-start;flex-direction:column}.detail-actions{width:100%}.detail-actions>*{flex:1}.client-facts,.wallet-address-grid,.batch-actions{grid-template-columns:1fr}.batch-actions .btn{width:100%}.batch-coin{flex:1 0 28%}.batch-coin>span{min-width:0}.address-save{align-items:stretch;flex-direction:column}.receive-modal{padding:21px}.receive-modal .qr{width:190px;height:190px}.address-copy-row{grid-template-columns:1fr}.copy-address-button{min-height:44px}.market-grid{grid-template-columns:1fr 1fr;gap:8px}.market-card{padding:12px}.market-card:nth-child(n+7){display:none}.coin-name span,.rank{display:none}.portfolio-grid{grid-template-columns:1fr}.card{border-radius:15px}.conversation{height:calc(100vh - 310px);min-height:380px;padding:14px}.chat-shell{min-height:0}.bubble-wrap{max-width:82%}.row{flex-direction:column}.table th,.table td{padding:12px 11px}.toast{left:14px;right:14px;bottom:14px}.auth{padding:14px}.auth-form-wrap{padding:28px 12px}.auth-card .brand{margin-bottom:42px} }
