@charset "UTF-8";
:root{font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;color:#e5edf9;background:#0b1018;font-size:14px;--bg:#0b1018;--panel:#121b29;--panel2:#162131;--line:#263247;--muted:#8d9cb4;--blue:#4d87ff;--cyan:#39d4e5;--green:#47d7a6;--red:#ff8f98;--amber:#edc26e;--radius:12px;color-scheme:dark}*{box-sizing:border-box}body{margin:0;min-width:340px}button,input,select,textarea{font:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer;color:inherit}button:disabled{cursor:not-allowed;opacity:.5}button,a,input,textarea,select{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--cyan)}a{color:#82aaff;text-decoration:none}button{border:0;background:none}input,select,textarea{color:#e9f1ff}input::placeholder,textarea::placeholder{color:#65748b}textarea{resize:vertical;min-height:110px}svg{vertical-align:middle}.icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,h4,p{margin-top:0}.muted,.sub{color:var(--muted)}.small{font-size:12px}.tiny{font-size:11px}.mono{font-family:"Cascadia Code",Consolas,monospace}.break{overflow-wrap:anywhere;word-break:break-word}.dim{color:#627189}.cyan{color:var(--cyan)}.green{color:var(--green)}.red{color:var(--red)}.nowrap{white-space:nowrap}.flex{display:flex;align-items:center;gap:10px}.wrap{flex-wrap:wrap}.between{justify-content:space-between}.grow{flex:1;min-width:0}.spacer{height:20px}.stack>*+*{margin-top:16px}.boot{display:grid;place-content:center;gap:20px;text-align:center;min-height:100vh;color:var(--muted)}.loader{display:block;width:28px;height:28px;border:2px solid #263956;border-top-color:var(--cyan);border-radius:50%;animation:spin 1s linear infinite;margin:auto}.loading{padding:70px 20px;text-align:center;color:var(--muted)}.loading p{margin-top:17px}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:#0e1623;border-right:1px solid #202c40;padding:29px 16px 18px;display:flex;flex-direction:column;z-index:35}.brand{display:flex;gap:12px;align-items:center;padding:0 12px 32px}.brand-mark{width:39px;height:42px;display:grid;place-items:center;background:linear-gradient(145deg,#427af9,#2361b3);border:1px solid #6f9eff66;box-shadow:0 0 24px #3a77ff24;border-radius:11px;color:#e1f6ff}.brand-name{font-size:21px;font-weight:750;letter-spacing:-.7px}.brand-name span{color:var(--cyan)}.brand-sub{color:#687f9f;letter-spacing:1.8px;font-size:9px;margin-top:5px}.nav-label{padding:6px 14px 10px;font-size:10px;color:#657996;letter-spacing:1.5px}.nav-item{display:flex;align-items:center;gap:11px;width:100%;padding:12px 14px;margin:3px 0;border:1px solid transparent;border-radius:8px;color:#93a6bf;text-align:left;font-size:13px}.nav-item:hover{background:#152238;color:#dce8fa}.nav-item.active{color:#e0eeff;background:linear-gradient(100deg,#21437b,#182b49);border-color:#375e95;box-shadow:inset 3px 0 #5f9aff}.nav-item.active .icon{color:#8ab9ff}.sidebar-card{margin:28px 8px 0;padding:15px 13px;border:1px solid #263a56;background:#142036;border-radius:10px;font-size:11px;line-height:1.9;color:#94a8c4}.sidebar-card b{color:#c4d9f7;font-size:12px;display:block;margin-bottom:5px}.sidebar-card p{margin:0}.sidebar-foot{margin-top:auto;border-top:1px solid #243045;padding:19px 11px 0;color:#7186a5;font-size:10px;line-height:1.9}.status-dot{display:inline-block;width:6px;height:6px;background:var(--cyan);border-radius:50%;margin-right:7px;box-shadow:0 0 8px #39d4e55c}.shell{margin-left:238px;min-height:100vh}.topbar{height:75px;border-bottom:1px solid #202c40;background:#0f1725ed;backdrop-filter:blur(14px);position:sticky;top:0;z-index:25;padding:0 31px;display:flex;align-items:center;justify-content:space-between;gap:16px}.crumb{display:flex;align-items:center;gap:13px;color:#7388a5;font-size:12px}.crumb b{color:#b9cbe4;font-weight:500}.top-right{display:flex;align-items:center;gap:15px}.avatar{height:32px;width:32px;border-radius:9px;display:grid;place-items:center;background:#20375b;color:#9fc5ff;font-weight:700;font-size:12px}.admin{display:flex;align-items:center;gap:9px;font-size:12px}.env-tag{font-size:10px;color:#8da7cf;padding:5px 8px;border:1px solid #2b405e;border-radius:5px}.main{max-width:1600px;margin:auto;padding:31px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:27px}.page-head h1{font-size:27px;letter-spacing:-.6px;margin:0 0 9px;font-weight:660}.page-head p{font-size:12px;line-height:1.8;color:var(--muted);margin:0;max-width:710px}.eyebrow{color:#6781a8;font-size:10px;font-weight:600;letter-spacing:2px;margin-bottom:11px}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #32425c;background:#192639;border-radius:7px;padding:10px 14px;font-size:12px;font-weight:550;white-space:nowrap;transition:background .15s,border-color .15s}.btn:hover{background:#223652;border-color:#5273a3}.btn.primary{background:linear-gradient(120deg,#477efa,#2c65dc);color:white;border-color:#608eff;box-shadow:0 4px 16px #336bdf24}.btn.primary:hover{background:#548aff}.btn.ghost{background:transparent;color:#abc9ff;border-color:#2e4870}.btn.small{padding:7px 10px;font-size:11px}.btn.danger{color:#ffacb0;border-color:#743d48;background:#372029}.text-btn{color:#84b3ff;padding:5px 2px;font-size:12px;white-space:nowrap}.text-btn:hover{color:#b6d3ff}.icon-btn{width:32px;height:32px;display:grid;place-items:center;color:#97aecd;border-radius:7px}.icon-btn:hover{background:#20314b}.mobile-menu{display:none}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:22px}.metric{background:linear-gradient(145deg,#152034,#121b29);border:1px solid #293b54;border-radius:11px;padding:21px;text-align:left;min-width:0}.metric:first-child{border-color:#335f99;background:radial-gradient(ellipse at 100% 0%,#27579877,transparent 75%),#172b48}.metric-title{display:flex;align-items:center;justify-content:space-between;color:#9fb1ca;font-size:12px}.metric-title .icon{color:#658ec6}.metric-value{font-size:33px;letter-spacing:-.7px;font-weight:650;font-variant-numeric:tabular-nums;margin:15px 0 10px;color:#eef5ff}.metric-value small{font-size:12px;font-weight:400;letter-spacing:0;color:#839abe;margin-left:7px}.metric-foot{font-size:11px;color:#738baa}.metric:first-child .metric-foot{color:#9bb8e0}.grid{display:grid;gap:20px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.dashboard{grid-template-columns:minmax(0,1.6fr) minmax(310px,1fr)}.card{border:1px solid var(--line);background:var(--panel);border-radius:var(--radius);overflow:hidden;min-width:0}.card-head{padding:20px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #223047}.card-title{font-size:14px;font-weight:630;display:flex;align-items:center;gap:9px}.card-sub{font-size:11px;color:var(--muted);margin-top:7px}.card-body{padding:22px}.card-foot{padding:14px 22px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);display:flex;align-items:center;justify-content:space-between;gap:12px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:17px}.field{display:block;width:100%;border:1px solid #354761;border-radius:7px;background:#0e1826;padding:10px 12px;font-size:12px;min-height:39px}.field:focus{border-color:#6c9efa}.field.compact{width:auto;max-width:260px}.field option{background:#152034}.search-form{display:flex;gap:9px;flex-wrap:wrap}.search-form .field{width:250px}.form-row{margin-bottom:19px}.form-row label{font-size:12px;color:#bccce2;display:block;margin-bottom:9px}.form-row small{font-size:11px;color:var(--muted);line-height:1.7;display:block;margin-top:7px}.form-row:last-child{margin-bottom:0}.form-cols{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:23px;padding-top:19px;border-top:1px solid var(--line)}.check-row{display:flex;align-items:center;gap:10px;padding:12px 0;color:#bed0e9;font-size:12px}.check-row input{width:16px;height:16px;accent-color:var(--blue)}.check-row small{color:var(--muted);display:block;margin-top:5px;font-size:11px;line-height:1.6}.check-row+.check-row{border-top:1px solid #243249}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th{background:#101a29;padding:13px 20px;border-bottom:1px solid var(--line);color:#7f94b1;font-size:10px;font-weight:550}td{padding:17px 20px;border-bottom:1px solid #213047;font-size:12px;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#172438}td .sub{font-size:10px;margin-top:6px}.badge{display:inline-flex;align-items:center;gap:5px;border:1px solid #30425e;background:#1b2b43;color:#a0b5d4;border-radius:5px;font-size:10px;padding:4px 7px;white-space:nowrap}.badge.blue{background:#203863;border-color:#31558e;color:#9fc4ff}.badge.green{background:#153a34;border-color:#225e50;color:#7ee4bd}.badge.amber{background:#3b3020;border-color:#645233;color:#eac580}.badge.red{background:#3e2630;border-color:#67404c;color:#ffa9b1}.badge.cyan{background:#173740;border-color:#2a5565;color:#8ee6ed}.chip-list{display:flex;gap:5px;flex-wrap:wrap}.empty{padding:50px 20px;display:flex;flex-direction:column;align-items:center;text-align:center;color:#7f93af;gap:13px;font-size:12px;line-height:1.8}.empty .icon{width:34px;height:34px;color:#4d6990}.empty b{color:#afc4e2;font-size:14px;font-weight:600}.empty p{margin:0;max-width:390px}.info{padding:13px 15px;border:1px solid #2b4b72;border-radius:8px;background:#142942;color:#a9c5e8;font-size:11px;line-height:1.85;margin-bottom:18px;overflow-wrap:anywhere}.info.amber{background:#2d261b;border-color:#5f4f31;color:#d4b985}.info.red{background:#32212b;border-color:#673647;color:#ffb1be}.info:last-child{margin-bottom:0}.inline-error{margin-top:13px;font-size:12px;line-height:1.7;color:var(--red);overflow-wrap:anywhere}.page-footer{display:flex;justify-content:space-between;color:#5e7493;font-size:10px;gap:10px;line-height:1.8;margin-top:27px}.network-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #25334b}.network-row:last-child{border:0}.network-icon{height:34px;width:34px;display:grid;place-items:center;flex-shrink:0;border:1px solid #335781;border-radius:9px;background:#1a3556;color:#a7ccff;font-size:11px;font-weight:700}.network-icon.tron{background:#382630;border-color:#654052;color:#f29eaa}.network-icon.solana{background:#242c44;border-color:#524873;color:#c4a7ff}.network-icon.ton{background:#183949;border-color:#2d6174;color:#82dafe}.network-icon.bitcoin{background:#3a3120;border-color:#6e5834;color:#ecc88a}.network-name{font-size:12px;font-weight:550}.network-stat{text-align:right;font-size:12px;color:#c7d7ef}.network-stat small{display:block;color:#7b91b0;font-size:10px;margin-top:5px}.guide-step{display:flex;gap:12px;align-items:flex-start;margin-bottom:21px}.guide-step:last-child{margin:0}.step-num{width:25px;height:25px;border:1px solid #375682;color:#a8c9ff;background:#1d3558;display:grid;place-items:center;border-radius:7px;font-size:11px;flex-shrink:0}.guide-step b{display:block;font-size:12px;margin:3px 0 7px;font-weight:550}.guide-step p{color:var(--muted);font-size:11px;line-height:1.8;margin:0}.platform-head{display:flex;align-items:center;gap:12px;padding:22px;border-bottom:1px solid var(--line);background:linear-gradient(115deg,#192b44,#142030)}.platform-mark{height:41px;width:41px;display:grid;place-items:center;border:1px solid #385887;color:#aecbff;background:#203858;border-radius:10px;font-size:16px;font-weight:650}.platform-head h3{font-size:15px;margin:0 0 7px}.platform-head p{font-size:11px;color:var(--muted);margin:0}.merchant-row{display:flex;align-items:center;gap:11px;padding:18px 22px;border-bottom:1px solid #26344a}.merchant-row:last-child{border:0}.merchant-row h4{font-size:12px;margin:0 0 6px}.merchant-row p{font-size:10px;color:var(--muted);margin:0;line-height:1.7}.merchant-row .actions{margin-left:auto}.network-config{padding:20px;border:1px solid #2a3c56;border-radius:10px;background:#142032}.network-config header{display:flex;align-items:center;justify-content:space-between;margin-bottom:21px}.network-config h3{font-size:14px;margin:0}.network-config .field{font-size:11px}.config-address{font-size:11px;line-height:1.8;padding-top:10px;color:#91abc9;overflow-wrap:anywhere}.telegram-preview{background:#132334;border:1px solid #314967;border-radius:12px;padding:21px;max-width:570px;box-shadow:0 14px 30px #00000015}.telegram-preview .sender{color:#78c7ff;font-size:13px;font-weight:600;margin-bottom:12px}.telegram-text{font-size:12px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-family:inherit;color:#d9e6f8}.telegram-time{text-align:right;color:#6a8aaa;font-size:10px;margin-top:10px}.notification{padding:20px 22px;border-bottom:1px solid var(--line)}.notification:last-child{border:0}.notification header{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;margin-bottom:13px}.notification pre{font:12px/1.85 inherit;white-space:pre-wrap;overflow-wrap:anywhere;color:#adbfda;margin:0;max-height:230px;overflow:auto}.notification time{color:#7b91ad;font-size:10px}.overlay{position:fixed;inset:0;background:#030911bd;backdrop-filter:blur(5px);z-index:100;display:flex;align-items:center;justify-content:center;padding:30px}.modal{width:590px;max-width:100%;max-height:90vh;border:1px solid #354963;border-radius:14px;background:#141f30;box-shadow:0 30px 100px #0008;display:flex;flex-direction:column;overflow:hidden}.modal.wide{width:920px}.modal-head{padding:22px 24px;border-bottom:1px solid #2a3a52;display:flex;align-items:center;justify-content:space-between;gap:14px}.modal-head h2{font-size:17px;margin:0;font-weight:630}.modal-body{padding:24px;overflow:auto}.modal-body .info{margin-bottom:20px}.drawer-overlay{justify-content:flex-end;padding:0}.drawer{width:830px;height:100%;max-height:100%;border-radius:0;border-right:0}.detail-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:24px}.detail-summary dt{font-size:10px;color:#8299b9;margin-bottom:6px}.detail-summary dd{font-size:12px;margin:0;overflow-wrap:anywhere}.chain-section{border:1px solid #2c415d;border-radius:10px;margin-top:17px;overflow:hidden;background:#101b2b}.chain-section>header{display:flex;align-items:center;gap:10px;padding:16px 18px;background:#172940;border-bottom:1px solid #2a3c55}.chain-section h3{font-size:13px;margin:0}.address-row{padding:14px 18px;border-bottom:1px solid #253752;font-size:11px;line-height:1.8}.address-row .address{color:#bad0ee;overflow-wrap:anywhere;font-family:Consolas,monospace;margin:6px 0}.asset-row{padding:13px 18px;display:flex;align-items:flex-start;justify-content:space-between;gap:15px;border-bottom:1px solid #24344d;font-size:12px}.asset-row:last-child{border-bottom:0}.asset-row small{display:block;color:#7d98b8;font-size:10px;margin-top:6px;overflow-wrap:anywhere}.secret-key{font-family:Consolas,monospace;overflow-wrap:anywhere;white-space:pre-wrap;background:#0e1929;border:1px solid #3b5981;padding:17px;border-radius:8px;color:#b9d3ff;font-size:13px;line-height:1.8;user-select:all}.export-summary{display:flex;gap:15px;margin:18px 0}.export-stat{background:#102039;border:1px solid #284b75;border-radius:9px;padding:17px;flex:1}.export-stat b{font-size:25px;color:#bcdbff;display:block;margin-bottom:7px}.export-stat span{font-size:11px;color:#8baacc}.export-format{padding:15px;background:#0e1928;border:1px dashed #365575;border-radius:8px;font:11px/1.9 Consolas,monospace;color:#8fadd0}.auth-screen{min-height:100vh;display:grid;grid-template-columns:1.05fr 1fr;background:radial-gradient(ellipse at 20% 15%,#15356566,transparent 60%),#0b1018}.auth-intro{padding:60px 10%;display:flex;flex-direction:column;justify-content:center;border-right:1px solid #21324b;position:relative;overflow:hidden}.auth-intro:before{content:"";width:440px;height:440px;border:1px solid #2a55914a;transform:rotate(30deg);position:absolute;right:-130px;bottom:-190px;border-radius:45px;box-shadow:0 0 0 55px #2d61940a,0 0 0 110px #2d619407;pointer-events:none}.auth-intro .brand{padding:0;margin-bottom:70px}.auth-intro .eyebrow{color:#6398d8}.auth-intro h1{font-size:43px;line-height:1.4;letter-spacing:-1px;font-weight:630}.auth-intro h1 span{color:#8fb8ff}.auth-intro p{color:#8ea4c3;line-height:2;font-size:13px;max-width:390px}.auth-features{display:flex;gap:10px;margin-top:21px;flex-wrap:wrap}.auth-content{padding:50px;display:flex;align-items:center;justify-content:center}.auth-card{width:380px;max-width:100%}.auth-card h2{font-size:25px;margin:0 0 11px}.auth-card>p{color:var(--muted);font-size:12px;line-height:1.9;margin-bottom:31px}.auth-card .btn{width:100%;margin-top:6px;padding:12px}.auth-footer{font-size:10px;color:#647e9f;line-height:1.9;margin-top:25px}.toasts{position:fixed;right:25px;bottom:25px;display:flex;flex-direction:column;gap:10px;z-index:200;pointer-events:none;max-width:min(420px,calc(100vw - 32px))}.toast{background:#1b314f;border:1px solid #486795;color:#d6e7ff;box-shadow:0 10px 35px #0006;padding:14px 17px;border-radius:9px;font-size:12px;line-height:1.7;display:flex;align-items:flex-start;gap:10px}.toast.error{background:#3c2431;border-color:#884456;color:#ffd3db}.mobile-backdrop{display:none}.btn .loader{width:15px;height:15px;margin:0;border-color:#88aaff;border-top-color:white}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}@media(min-width:1600px){.main{padding-top:38px}}@media(max-width:1180px){.sidebar{width:210px;padding-left:11px;padding-right:11px}.shell{margin-left:210px}.main{padding:25px}.topbar{padding:0 25px}.metrics{gap:12px}.metric{padding:18px}.metric-value{font-size:28px}.grid.dashboard{grid-template-columns:1fr}.grid.two{gap:15px}.card-body{padding:19px}.page-head{align-items:flex-start}.page-head h1{font-size:24px}.env-tag{display:none}.auth-intro h1{font-size:35px}}@media(max-width:900px){.grid.two{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.merchant-row .actions{gap:4px}.auth-screen{grid-template-columns:1fr}.auth-intro{display:none}.auth-content{padding:35px 25px;min-height:100vh}.auth-card{width:410px}.top-right{gap:8px}}@media(max-width:700px){.sidebar{transform:translateX(-100%);transition:transform .18s;width:238px}.menu-open .sidebar{transform:translateX(0)}.menu-open .mobile-backdrop{display:block;position:fixed;inset:0;background:#0009;z-index:30}.shell{margin-left:0}.mobile-menu{display:grid}.topbar{height:64px;padding:0 16px}.crumb{gap:8px;font-size:11px}.crumb>span:first-of-type{display:none}.top-right .admin>span{display:none}.top-right .btn{padding:7px;font-size:10px}.main{padding:24px 16px}.page-head{flex-direction:column;gap:16px;margin-bottom:21px}.page-head h1{font-size:24px}.page-head p{font-size:11px}.page-head .actions{width:100%}.metrics{gap:11px}.metric{padding:16px 13px}.metric-title{font-size:11px}.metric-title .icon{width:16px}.metric-value{font-size:27px;margin:14px 0 9px}.metric-foot{font-size:9px}.card-head{padding:18px}.card-body{padding:18px}.card-foot{padding:13px 17px;flex-wrap:wrap}.toolbar{align-items:stretch}.search-form{width:100%}.search-form .field{width:auto;min-width:0;flex:1}.field.compact{max-width:100%;width:100%}.form-cols{grid-template-columns:1fr;gap:0}.form-cols .form-row{margin-bottom:19px}.overlay{padding:14px}.drawer-overlay{padding:0}.modal{max-height:94vh}.modal-head{padding:18px}.modal-body{padding:19px}.drawer{width:100%;max-height:100vh}.detail-summary{gap:16px 12px}.detail-summary dd{font-size:11px}.merchant-row{padding:17px;flex-wrap:wrap}.merchant-row .actions{margin-left:0;width:100%;padding-left:0}.platform-head{padding:19px}.page-footer{flex-direction:column;gap:2px}.notification{padding:18px}.export-summary{gap:10px}.export-stat{padding:13px}.export-stat b{font-size:22px}.telegram-preview{padding:17px}.telegram-text{font-size:11px}.network-config{padding:17px}.toasts{bottom:16px;right:16px}.hide-mobile{display:none}.table-wrap td,.table-wrap th{padding-left:16px;padding-right:16px}}

/* Reference visual system: airy light workspace with lilac/cyan accents. */
:root {
  --bg: #f6f6fb;
  --panel: #ffffff;
  --panel2: #fbfaff;
  --line: #eceaf6;
  --muted: #8d8ba4;
  --ink: #292841;
  --blue: #7166f9;
  --cyan: #4cd7f6;
  --green: #36af96;
  --red: #e9798d;
  --amber: #d7aa55;
  --radius: 24px;
  color-scheme: light;
}
html, body { background: var(--bg); color: var(--ink); }
body { min-height: 100vh; }
button { color: inherit; }
a { color: #655de2; }
input, select, textarea { color: var(--ink); background: #fff; }
input::placeholder, textarea::placeholder { color: #aaa8bd; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline-color: #8a7dff; }
.loader { border-color: #e7e4f5; border-top-color: var(--blue); }
.boot { color: var(--muted); }
.icon { stroke-width: 1.65; }
.sidebar { width: 238px; background: #fff; color: #85829d; border-right: 1px solid #eceaf7; box-shadow: 6px 0 26px rgba(105, 93, 170, .04); padding: 30px 16px 20px; }
.brand { padding-bottom: 34px; }
.brand-mark { background: linear-gradient(145deg, #e17cfd 0%, #7166f9 52%, #4cd7f6 100%); border: 0; color: #fff; box-shadow: 0 10px 24px rgba(113, 102, 249, .22); border-radius: 13px; }
.brand-name { color: #272641; }
.brand-name span { color: #7166f9; }
.brand-sub { color: #aaa7bf; }
.nav-label { color: #b4b0c7; }
.nav-item { color: #87849d; border-radius: 13px; padding: 12px 14px; }
.nav-item:hover { background: #f7f5ff; color: #5d5880; }
.nav-item.active { color: #4b4773; background: linear-gradient(105deg, #f1eaff 0%, #eef5ff 100%); border-color: #e5ddff; box-shadow: 0 8px 18px rgba(120, 101, 225, .10), inset 3px 0 #8c75fa; }
.nav-item.active .icon { color: #7166f9; }
.sidebar-card { background: linear-gradient(145deg, #fbfaff, #f2f1ff); border-color: #ebe6ff; color: #928eac; border-radius: 16px; }
.sidebar-card b { color: #514c78; }
.sidebar-foot { border-top-color: #eeeaf7; color: #a7a3b9; }
.status-dot { background: #43caa6; box-shadow: 0 0 8px rgba(67, 202, 166, .38); }
.shell { background: var(--bg); }
.topbar { background: rgba(255, 255, 255, .94); border-bottom-color: #eceaf5; box-shadow: 0 3px 15px rgba(95, 86, 155, .04); }
.crumb { color: #aaa6bd; }
.crumb b { color: #403c60; }
.avatar { background: #f0edff; color: #7166f9; }
.admin { color: #514d6a; }
.env-tag { color: #7c65d9; background: #f5efff; border-color: #e9ddff; border-radius: 999px; }
.main { max-width: 1600px; }
.eyebrow { color: #9892b2; }
.page-head h1 { color: #24223b; }
.page-head p { color: #9794aa; }
.btn { color: #5a5675; background: #fff; border-color: #e7e4f1; border-radius: 12px; box-shadow: 0 5px 14px rgba(105, 94, 170, .05); }
.btn:hover { color: #4e4a74; background: #faf9ff; border-color: #cfc8fa; }
.btn.primary { color: #fff; background: linear-gradient(115deg, #7166f9 0%, #8e6cf5 46%, #4cd7f6 135%); border-color: transparent; box-shadow: 0 8px 18px rgba(113, 102, 249, .20); }
.btn.primary:hover { background: linear-gradient(115deg, #6459ee, #8061ed 50%, #42caec); }
.btn.ghost { color: #7166f9; background: #f8f6ff; border-color: #ded7ff; }
.btn.danger { color: #ce6076; background: #fff3f6; border-color: #f4d8df; }
.text-btn { color: #655de2; }
.text-btn:hover { color: #4c44c4; }
.icon-btn { color: #9a96b1; border-radius: 10px; }
.icon-btn:hover { background: #f5f2ff; color: #7166f9; }
.metrics { gap: 18px; }
.metric { background: #fff; border: 1px solid #eeeaf7; border-radius: 22px; box-shadow: 0 12px 30px rgba(108, 96, 172, .07); }
.metric:first-child { color: #fff; border: 0; background: linear-gradient(135deg, #e17cfd 0%, #7166f9 54%, #4cd7f6 120%); box-shadow: 0 15px 30px rgba(113, 102, 249, .21); }
.metric:first-child .metric-title, .metric:first-child .metric-foot, .metric:first-child .metric-value, .metric:first-child .metric-title .icon { color: #fff; }
.metric-title { color: #8f8ca5; }
.metric-title .icon { color: #958ce7; }
.metric-value { color: #272640; }
.metric-value small { color: #9995ad; }
.metric-foot { color: #a09db2; }
.grid.dashboard { gap: 20px; }
.card { background: #fff; border: 1px solid #eceaf6; border-radius: 24px; box-shadow: 0 12px 32px rgba(99, 88, 158, .06); }
.card-head { border-bottom-color: #f0eef8; }
.card-title { color: #322e4b; }
.card-sub { color: #9b98ad; }
.card-foot { border-top-color: #f0eef8; color: #9a97ac; }
.field { color: #423e61; background: #fff; border-color: #e6e3f1; border-radius: 12px; box-shadow: inset 0 1px 2px rgba(78, 68, 138, .02); }
.field:focus { border-color: #b4a5fb; box-shadow: 0 0 0 3px rgba(113, 102, 249, .10); }
.search-form .field, .searchbox { background: #fff; border-color: #e8e5f1; }
.searchbox { color: #aaa7bb; border-radius: 12px; }
.searchbox input { color: #494562; }
.table-wrap { background: #fff; }
table { color: #403c5b; }
th { background: #fcfbff; color: #a09cb1; border-bottom-color: #eeeaf6; }
td { border-bottom-color: #f0eef7; }
tbody tr:hover { background: #fbfaff; }
td .sub, .sub { color: #a09cb1; }
.badge { color: #8b88a1; background: #f7f5fc; border-color: #ece8f5; border-radius: 7px; }
.badge.blue { color: #665bd7; background: #f0edff; border-color: #e2dcff; }
.badge.green { color: #258b73; background: #eafaf4; border-color: #d8f2e9; }
.badge.amber { color: #ac7d2e; background: #fff7e8; border-color: #f8e7be; }
.badge.red { color: #bd5c72; background: #fff0f4; border-color: #f5d9e1; }
.badge.cyan { color: #168ea5; background: #e8fbff; border-color: #d1f3fa; }
.empty { color: #a09db2; }
.empty b { color: #5c587b; }
.empty .icon { color: #a99df4; }
.info { color: #716b91; background: #f7f5ff; border-color: #e7e0ff; border-radius: 13px; }
.info.amber { color: #9f7e43; background: #fff9ed; border-color: #f5e4bf; }
.info.red { color: #b65f73; background: #fff2f5; border-color: #f4d5de; }
.network-row { border-bottom-color: #eeeaf6; }
.network-icon { color: #6e62db; background: #f2efff; border-color: #e7e0ff; border-radius: 10px; }
.network-icon.tron { color: #c66179; background: #fff0f4; border-color: #f6dce4; }
.network-icon.solana { color: #7a58d7; background: #f4efff; border-color: #e5d9ff; }
.network-icon.ton { color: #3099b9; background: #eafbff; border-color: #d5f3fa; }
.network-icon.bitcoin { color: #bd8a3f; background: #fff8e9; border-color: #f5e8c9; }
.platform-head { background: linear-gradient(110deg, #fbfaff, #f5f5ff); border-bottom-color: #eeeaf7; }
.platform-mark { color: #7166f9; background: linear-gradient(145deg, #eee8ff, #e7f9ff); border-color: #e5ddff; border-radius: 13px; }
.merchant-row { border-bottom-color: #eeeaf7; }
.network-config { border-color: #ebe7f5; background: #fff; border-radius: 18px; box-shadow: 0 8px 22px rgba(109, 95, 170, .04); }
.network-config .field { background: #fcfbff; }
.config-address { color: #9894aa; }
.guide-step { color: #575272; }
.step-num { color: #7166f9; background: #f3efff; border-color: #e4dcff; border-radius: 9px; }
.telegram-preview { background: linear-gradient(145deg, #29394b, #1f2c3c); border-color: #33475b; border-radius: 18px; }
.notification { border-bottom-color: #eeeaf7; }
.notification pre { color: #77738d; }
.notification time { color: #a29eb2; }
.export-stat { background: linear-gradient(145deg, #faf8ff, #f0f7ff); border-color: #e3dcff; border-radius: 14px; }
.export-stat b { color: #6257d2; }
.export-stat span { color: #9692ab; }
.export-format { color: #726a9a; background: #faf9ff; border-color: #ded6ff; border-radius: 12px; }
.secret-key { color: #4c4581; background: #faf9ff; border-color: #dcd4ff; border-radius: 12px; }
.setup-steps { padding-left: 1.4rem; line-height: 1.85; color: #67617e; }
.setup-steps li { margin-bottom: .6rem; }
.setup-steps code { overflow-wrap: anywhere; color: #5e4ec5; }
.overlay { background: rgba(71, 63, 115, .22); }
.modal { background: #fff; border-color: #e8e3f5; border-radius: 24px; box-shadow: 0 30px 90px rgba(78, 65, 141, .20); }
.modal-head { border-bottom-color: #eeeaf7; }
.modal-head h2 { color: #312d4b; }
.detail-summary dt { color: #9d99ad; }
.detail-summary dd { color: #494562; }
.chain-section { background: #fff; border-color: #ebe7f5; border-radius: 15px; }
.chain-section>header { background: #faf9ff; border-bottom-color: #eeeaf7; }
.chain-section h3 { color: #4b4668; }
.address-row, .asset-row { border-bottom-color: #eeeaf7; }
.address-row .address { color: #5e5880; }
.asset-row { color: #514c70; }
.asset-row small { color: #9d99ae; }
.auth-screen { background: radial-gradient(ellipse at 18% 10%, #f1e8ff, transparent 54%), #f6f6fb; }
.auth-intro { border-right-color: #e9e4f6; }
.auth-intro:before { border-color: #d8ccff88; box-shadow: 0 0 0 55px #bda8ff12, 0 0 0 110px #94dbff10; }
.auth-intro h1 { color: #2c2947; }
.auth-intro h1 span { color: #7166f9; }
.auth-intro p { color: #89859f; }
.auth-intro .eyebrow { color: #8e7be8; }
.auth-card h2 { color: #302c49; }
.auth-card>p { color: #918da5; }
.auth-footer { color: #9b97ab; }
.toast { color: #4f496d; background: #fff; border-color: #e4ddff; box-shadow: 0 10px 35px rgba(84, 70, 153, .18); }
.toast.error { color: #a54e64; background: #fff4f6; border-color: #f2ccd7; }
@media (max-width: 700px) {
  .topbar { background: rgba(255,255,255,.97); }
  .menu-open .mobile-backdrop { background: rgba(68, 62, 108, .22); }
  .sidebar { box-shadow: 8px 0 30px rgba(78, 63, 150, .15); }
  .main { background: var(--bg); }
  .metric { border-radius: 18px; }
  .card { border-radius: 18px; }
  .modal { border-radius: 20px; }
}

/* Account security and authenticator enrollment. */
.security-summary { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:18px; }
.security-summary p { margin-bottom:0; }
.otp-field { max-width:280px; font-size:18px; letter-spacing:.2em; font-variant-numeric:tabular-nums; }
.otp-field::placeholder { font-size:13px; letter-spacing:normal; }
.totp-enrollment { display:flex; align-items:center; gap:24px; margin:22px 0; }
.totp-qr { display:block; width:224px; height:224px; padding:8px; background:#fff; border:1px solid #e4ddff; border-radius:16px; flex-shrink:0; }
.totp-manual { flex:1; min-width:0; }
.totp-manual .secret-key { word-break:break-all; user-select:all; font-size:14px; margin:10px 0; }
.inline-error .btn { margin-top:10px; }
.totp-row { padding:16px; border:1px solid #d8ceff; border-radius:12px; background:#f7f4ff; }
.totp-row > label { display:block; color:#35296c; font-weight:650; }
.totp-row > small { display:block; color:#655989; line-height:1.6; }
.totp-enrollment-notice { margin:18px 0; padding:16px; border:1px solid #e3d4aa; border-radius:12px; background:#fff9ea; color:#715419; }
.totp-enrollment-notice > b { display:block; font-size:13px; }
.totp-enrollment-notice > p { margin:8px 0 12px; font-size:12px; line-height:1.7; }
.totp-enrollment-notice .btn { white-space:normal; text-align:left; }
@media(max-width:600px) { .totp-enrollment { flex-direction:column; align-items:stretch; } .totp-qr { align-self:center; } .security-summary { flex-wrap:wrap; } }

/* Managed merchant fee addresses and historical rotations. */
.fee-address-controls { display:flex; gap:8px; align-items:center; margin-bottom:8px; }
.fee-address-controls .field { flex:1; min-width:0; font-size:12px; }
.fee-address-controls .btn { flex-shrink:0; }
.fee-history { border:1px solid #e7e1f5; border-radius:12px; padding:12px; margin:0 0 18px; }
.fee-history summary { cursor:pointer; font-size:13px; font-weight:600; color:#7166c5; }
.fee-history-row { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid #eeeaf6; }
.fee-history-row:last-child { border-bottom:0; }
.fee-history-row .grow { min-width:0; }
.fee-history-row .mono { font-size:12px; overflow-wrap:anywhere; }
.fee-history-row .btn { flex-shrink:0; }
.treasury-bulk-form { overflow:visible; }
.treasury-table-wrap { border-radius:0 0 18px 18px; }
.treasury-table { min-width:1060px; table-layout:fixed; white-space:normal; }
.treasury-table th,.treasury-table td { padding:19px 20px; }
.treasury-table th:nth-child(1) { width:15%; }
.treasury-table th:nth-child(2) { width:41%; }
.treasury-table th:nth-child(3) { width:34%; }
.treasury-table th:nth-child(4) { width:10%; }
.treasury-table td { vertical-align:top; }
.treasury-network-cell .flex { align-items:flex-start; }
.treasury-network-cell b { display:block; margin:5px 0 0; font-size:13px; overflow-wrap:anywhere; }
.treasury-network-cell .sub { line-height:1.7; }
.treasury-table .form-row { margin-bottom:12px; }
.treasury-table .form-row:last-child { margin-bottom:0; }
.treasury-table .fee-history { margin:12px 0 0; background:#fff; }
.treasury-table .fee-address-controls .field { font-size:11px; }
.treasury-table .fee-history-row { flex-wrap:wrap; }
.treasury-input-label { display:block; margin-bottom:9px; color:#655f80; font-size:12px; }
.treasury-target-cell .field { font-size:12px; }
.treasury-target-cell>small { display:block; margin-top:9px; color:var(--muted); font-size:11px; line-height:1.7; }
.treasury-status-cell { text-align:right; }
.treasury-table tr.is-dirty { background:#faf7ff; }
.treasury-table tr.is-dirty .treasury-target-cell .field { border-color:#a89aff; background:#fff; }
.treasury-save-bar { display:flex; align-items:center; justify-content:space-between; gap:28px; position:sticky; bottom:12px; z-index:15; border-top:1px solid var(--line); border-radius:0 0 22px 22px; padding:20px 24px; background:#fff; box-shadow:0 -6px 24px #5b4c9810; }
.treasury-save-security { flex:1; min-width:0; max-width:620px; }
.treasury-save-security .totp-row { margin:0; display:grid; grid-template-columns:130px minmax(160px,230px); align-items:center; gap:8px 18px; padding:15px 18px; }
.treasury-save-security .totp-row>label { margin:0; }
.treasury-save-security .totp-row>small { grid-column:1 / -1; margin:0; font-size:11px; }
.treasury-save-security .totp-enrollment-notice { margin:0; }
.treasury-save-actions { display:flex; flex-direction:column; align-items:flex-end; gap:10px; flex-shrink:0; }
.treasury-save-actions>.btn { min-width:180px; padding:13px 22px; }
.treasury-save-actions>small { font-size:11px; color:var(--muted); }
.treasury-bulk-form>.inline-error { padding:0 24px 18px; margin:0; }
@media(max-width:900px) { .treasury-save-bar { align-items:stretch; flex-direction:column; gap:15px; padding:17px; bottom:0; } .treasury-save-security { max-width:none; } .treasury-save-actions { flex-direction:row; align-items:center; justify-content:space-between; flex-wrap:wrap; } .treasury-save-actions>small { width:100%; } }
@media(max-width:500px) { .treasury-save-security .totp-row { grid-template-columns:1fr; } .treasury-save-security .otp-field { max-width:none; } .treasury-save-actions>.btn { width:100%; } }
.secret-textarea { resize:vertical; min-height:110px; }
.import-secret { max-width:360px; max-height:88px; overflow:auto; white-space:pre-wrap; word-break:break-word; color:#6b3154; background:#fff5f8; border:1px solid #f1cfda; border-radius:8px; padding:7px 9px; font-size:11px; line-height:1.55; user-select:text; }
.asset-valuation { min-width:0; max-width:65%; text-align:right; overflow-wrap:anywhere; }
.asset-valuation .mono { font-variant-numeric:tabular-nums; }
.asset-valuation small { line-height:1.7; }
.wallet-history-panel { margin-top:20px; border:1px solid #e7e1f5; border-radius:12px; overflow:hidden; }
.wallet-history-panel>h3 { margin:16px 18px 8px; font-size:13px; }
.wallet-history-panel>p { margin:0 18px 14px; line-height:1.7; }
.wallet-history-panel .table-wrap { overflow-x:auto; overscroll-behavior-inline:contain; }
.wallet-history-panel table { min-width:880px; }
.wallet-history-panel th,.wallet-history-panel td { vertical-align:top; }
.wallet-address-cell { min-width:390px; }
.wallet-address-display { display:flex; align-items:center; gap:8px; min-width:max-content; max-width:none; white-space:nowrap; }
.wallet-address-full { min-width:0; overflow-wrap:anywhere; word-break:break-all; user-select:all; line-height:1.65; }
.wallet-address-display .wallet-address-full { flex:0 0 auto; white-space:nowrap; overflow-wrap:normal; word-break:normal; }
.wallet-address-display .btn { flex:0 0 auto; }
.address-row .address { overflow-x:auto; }
@media(max-width:700px) {
  .wallet-history-panel table { min-width:880px; }
  .address-row .wallet-address-display { align-items:flex-start; flex-wrap:wrap; min-width:0; max-width:100%; white-space:normal; }
  .address-row .wallet-address-full { flex:1 1 100%; white-space:normal; overflow-wrap:anywhere; word-break:break-all; }
}

.ui-update-notice{position:fixed;inset:12px 16px auto auto;z-index:9999;display:flex;align-items:center;gap:14px;max-width:min(680px,calc(100vw - 32px));padding:14px 18px;background:#fff6de;color:#68490d;border:1px solid #e7c879;border-radius:12px;box-shadow:0 10px 28px #26375026;font-size:14px}.ui-update-notice .btn{white-space:nowrap}@media(max-width:600px){.ui-update-notice{left:12px;right:12px;flex-direction:column;align-items:stretch;max-width:none}}

/* Webhook dead letters keep operational identifiers complete and horizontally scannable. */
.webhook-dead-letter-table .table-wrap,
.webhook-impact-table .table-wrap { overflow-x:auto; overscroll-behavior-inline:contain; }
.webhook-dead-letter-table table { min-width:2020px; table-layout:auto; }
.webhook-impact-table table { min-width:1580px; table-layout:auto; }
.webhook-dead-letter-table th,
.webhook-dead-letter-table td,
.webhook-impact-table th,
.webhook-impact-table td { vertical-align:top; }
.webhook-time-cell { min-width:155px; white-space:nowrap; }
.webhook-owner-cell { min-width:210px; }
.webhook-identity-cell { min-width:360px; }
.webhook-address-cell { min-width:430px; }
.webhook-asset-cell { min-width:510px; }
.webhook-reason-cell { min-width:320px; max-width:390px; line-height:1.65; overflow-wrap:anywhere; }
.webhook-attempt-cell { min-width:70px; text-align:center; white-space:nowrap; }
.webhook-actions-cell { min-width:190px; white-space:nowrap; }
.webhook-actions-cell .actions { flex-wrap:nowrap; }
.webhook-cell-gap { margin-top:10px; }
.webhook-more { margin-top:7px; color:#7166f9; }
.webhook-value-line { display:flex; align-items:flex-start; gap:8px; min-width:max-content; white-space:nowrap; }
.webhook-full-value { display:inline-block; white-space:nowrap; overflow-wrap:normal; word-break:normal; user-select:all; line-height:1.65; }
.webhook-value-line .btn { flex:0 0 auto; }
.webhook-unlocated { color:#a27124; line-height:1.65; }
.webhook-unlocated .sub { max-width:390px; margin-top:5px; white-space:normal; }
.webhook-impact-table { margin-top:18px; }
@media(max-width:700px) {
  .webhook-dead-letter-table table { min-width:2020px; }
  .webhook-impact-table table { min-width:1580px; }
  .webhook-address-cell .wallet-address-display { min-width:max-content; flex-wrap:nowrap; white-space:nowrap; }
  .webhook-address-cell .wallet-address-full { flex:0 0 auto; white-space:nowrap; overflow-wrap:normal; word-break:normal; }
}
/* system log workspace layout */
.log-summary{grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 20px}
.log-summary .metric{padding:16px 18px}
.log-summary .metric-value{font-size:26px;margin:10px 0 7px}
.log-columns{align-items:start}
.log-columns>div{min-width:0}
.log-columns .card{height:100%}
.log-stack{display:flex;flex-direction:column;gap:20px}
.log-stack>.card{width:100%}
.interface-log-card .card-sub{max-width:520px}
@media(max-width:1180px){.log-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.log-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.log-columns{grid-template-columns:1fr}}
