:root{
  --bg:#0f151b;
  --panel:#141c24;
  --panel2:#18222c;
  --panel3:#111820;
  --line:#26313c;
  --muted:#94a3b8;
  --txt:#eef5fb;
  --green:#22d39a;
  --green2:#08b87b;
  --cyan:#20c6d9;
  --amber:#ffb800;
  --orange:#ff7b11;
  --red:#ff5252;
  --violet:#9b4dff;
  --blue:#4b9cff;
  --sidebar:214px;
  --top:64px;
  --radius:8px;
  --radius-sm:6px;
  --radius-lg:10px;
  --border:var(--line);
  --border-strong:#34414e;
  --surface:var(--panel);
  --surface-2:var(--panel2);
  --surface-3:#22303c;
  --text:var(--txt);
  --text-muted:var(--muted);
  --primary:var(--green);
  --primary-hover:#3ce8b2;
  --primary-soft:rgba(34,211,154,.12);
  --success:var(--green);
  --success-soft:rgba(34,211,154,.12);
  --warning:var(--amber);
  --warning-soft:rgba(255,184,0,.13);
  --danger:var(--red);
  --danger-soft:rgba(255,82,82,.12);
  --info:var(--cyan);
  --info-soft:rgba(32,198,217,.13);
  --font:"Cairo",Tahoma,Arial,sans-serif;--brand-2:var(--green);--brand-grad:linear-gradient(90deg,#0d8b64,#199d73);
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:#0c1117;color:var(--txt);font-family:var(--font);line-height:1.55}
body{background:radial-gradient(circle at 72% 8%,rgba(35,58,76,.26),transparent 30%),linear-gradient(180deg,#0f151b 0%,#0d141a 100%);overflow-x:hidden}
a{color:inherit;text-decoration:none}button,input,select,textarea{font-family:inherit}.text-muted,.muted{color:var(--muted)!important}.bold{font-weight:800}.block{display:block}.full{width:100%}.text-success{color:var(--green)!important}.text-danger{color:var(--red)!important}
::selection{background:rgba(34,211,154,.25)}
::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#293642;border-radius:99px}::-webkit-scrollbar-thumb:hover{background:#3b4a58}

/* App shell: mirrors the supplied reference dashboard */
.app{min-height:calc(100vh - 18px);border:1px solid #2d3945;border-radius:16px;margin:9px;overflow:hidden;background:linear-gradient(180deg,rgba(15,22,29,.98),rgba(12,18,24,.99));box-shadow:0 18px 60px rgba(0,0,0,.35)}
.sidebar{position:fixed;right:9px;top:9px;bottom:9px;width:var(--sidebar);border-left:1px solid var(--line);background:linear-gradient(180deg,#111820,#0e151b 85%);z-index:60;border-radius:0 16px 16px 0;overflow:hidden;display:flex;flex-direction:column}
.brand{height:72px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 19px}.brand-name{font-size:18px;font-weight:800;color:#25e1a8;line-height:1;display:block}.brand-name:hover{color:#3af2b8}.brand-sub{font-size:11px;color:#d4dde7;margin-top:9px}.sidebar-menu-btn{border:0;background:transparent;color:#cbd5e1;display:grid;place-items:center;cursor:pointer}.sidebar-menu-btn svg{width:20px;height:20px}
.nav{padding:11px 9px;flex:1;overflow:auto}.nav a{height:48px;border-radius:9px;display:flex;align-items:center;gap:13px;padding:0 14px;text-decoration:none;color:#d5deea;font-size:14px;margin-bottom:1px;position:relative;border:1px solid transparent}.nav a svg{width:18px;height:18px;color:#b9c5d1;stroke-width:1.7;flex:none}.nav a:hover{background:#151f28;color:#fff}.nav a.active{background:linear-gradient(90deg,rgba(17,87,65,.38),rgba(14,84,60,.65));border-color:rgba(39,209,152,.23);color:#2ce0a4}.nav a.active svg{color:#21e5a8}.nav-badge{margin-right:auto;background:#1b7458;color:#dffbf0;border-radius:20px;padding:2px 7px;font-size:11px;font-weight:700;direction:ltr}
.sidebar-bottom{border-top:1px solid var(--line);padding:13px 9px 15px}.theme-row{height:46px;display:flex;align-items:center;justify-content:space-between;padding:0 13px;color:#d9e1eb;font-size:13px}.switch{width:34px;height:18px;border:0;border-radius:20px;background:#0a805f;padding:2px;display:flex;justify-content:flex-start;cursor:pointer;transition:.2s}.switch span{width:14px;height:14px;border-radius:50%;background:#f4ffff;box-shadow:0 0 8px rgba(55,255,190,.7);transition:.2s}.switch:not(.is-on){background:#34414c;justify-content:flex-end}.store-card{border:1px solid var(--line);border-radius:9px;background:linear-gradient(180deg,#151f28,#111921);padding:13px 13px 11px}.store-card h4{margin:0 0 10px;font-size:14px}.info-line{display:flex;justify-content:space-between;color:#c6d0dc;font-size:11px;margin:7px 0}.info-line b{font-weight:600;color:#eef5fb;max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upgrade{margin-top:11px;width:100%;min-height:34px;border:none;border-radius:6px;background:linear-gradient(90deg,#0e8b65,#1d9b72);color:#fff;font-family:inherit;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:11px}.upgrade:hover{filter:brightness(1.1)}
.topbar{position:fixed;left:9px;right:calc(var(--sidebar) + 9px);top:9px;height:var(--top);border-bottom:1px solid var(--line);z-index:50;background:rgba(15,21,27,.94);backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:space-between;padding:0 18px 0 19px;border-radius:16px 0 0 0}.search-wrap{display:flex;align-items:center;gap:10px;margin-right:auto;margin-left:auto;transform:translateX(130px);position:relative}.search{width:290px;height:38px;border:1px solid #27313b;border-radius:8px;background:#161e27;display:flex;align-items:center;gap:8px;padding:0 10px;color:#98a6b5;font-size:12px}.search svg{width:17px;height:17px}.search input{border:0;outline:0;background:transparent;color:#e9f1f7;width:100%;direction:rtl}.search input::placeholder{color:#8795a5}.search .key{direction:ltr;font-family:monospace;background:#1d2630;border:1px solid #2a3540;padding:3px 8px;border-radius:4px;color:#728093;font-size:10px;margin-left:auto;white-space:nowrap}.quick-search-results{display:none;position:absolute;top:45px;right:0;left:0;background:#151f28;border:1px solid #2a3642;border-radius:8px;padding:6px;box-shadow:0 18px 40px rgba(0,0,0,.4);z-index:80}.quick-search-results.open{display:block}.quick-search-results a{display:flex;align-items:center;padding:8px 10px;border-radius:6px;color:#dce5ed;font-size:12px}.quick-search-results a:hover,.quick-search-results a.active{background:#1b2b32;color:#2ce0a4}.top-icons{display:flex;gap:22px;align-items:center}.top-icons .ic{position:relative;display:grid;place-items:center;color:#d7e0ea}.top-icons svg{width:19px;height:19px}.dot-num{position:absolute;top:-9px;right:-9px;background:#f04848;color:#fff;min-width:16px;height:16px;border-radius:50%;padding:0 4px;font-size:8px;display:grid;place-items:center;border:2px solid #111820;direction:ltr}.profile{display:flex;align-items:center;gap:11px;border-left:1px solid var(--line);padding-left:20px}.avatar{width:42px;height:42px;border-radius:50%;background:linear-gradient(145deg,#273341,#18212a);display:grid;place-items:center;font-size:17px;position:relative}.avatar:after{content:"";position:absolute;right:-1px;bottom:1px;width:8px;height:8px;border-radius:50%;background:#22d39a;border:2px solid #121920}.prof-name{font-size:12px;font-weight:700}.prof-role{font-size:11px;color:#d5deea}.profile-logout{display:grid;place-items:center;color:#82909e;margin-right:4px}.profile-logout svg{width:15px;height:15px}.profile-logout:hover{color:var(--red)}.mobile-menu-toggle{display:none;background:#161f28;color:#dce4ed;border:1px solid #2b3742;border-radius:7px;width:36px;height:36px;place-items:center;cursor:pointer}.mobile-menu-toggle svg{width:19px}
.main{margin-right:var(--sidebar);padding-top:var(--top);min-height:calc(100vh - 18px);display:flex;flex-direction:column}.content{padding:18px 25px 36px;flex:1;min-width:0}.page-title{margin:0 0 3px;font-size:24px;line-height:1.2;font-weight:800}.page-sub{color:#aeb9c7;font-size:11px;margin-bottom:20px}.legacy-page-head{margin-bottom:18px}.legacy-page-head .page-sub{margin-bottom:0}.footer{border-top:1px solid #25313c;height:34px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;color:#c3ced9;font-size:9px}.health{display:flex;align-items:center;gap:8px}.health-dot{width:6px;height:6px;border-radius:50%;background:#1dd49a;box-shadow:0 0 9px rgba(29,212,154,.7)}.overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.65);z-index:55}

/* Dashboard exact-layout blocks */
.dashboard-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:20px}.dashboard-stat{height:108px;border:1px solid var(--line);border-radius:10px;background:linear-gradient(145deg,#151e27,#131b23);padding:16px;display:flex;justify-content:space-between;align-items:flex-start;box-shadow:inset 0 1px 0 rgba(255,255,255,.015)}.dashboard-stat .label{font-size:11px;color:#cbd5e1;margin-bottom:8px}.dashboard-stat .value{font-size:18px;font-weight:800;direction:ltr;text-align:right;white-space:nowrap}.dashboard-stat .hint{font-size:10px;margin-top:6px}.dashboard-stat .ico{width:45px;height:45px;border-radius:10px;display:grid;place-items:center;flex:none}.dashboard-stat .ico svg{width:23px}.green{color:var(--green)!important}.orange{color:var(--orange)!important}.amber{color:var(--amber)!important}.cyan{color:var(--cyan)!important}.red{color:var(--red)!important}.violet{color:var(--violet)!important}.dashboard-stat .ico.green{background:rgba(17,170,113,.22)}.dashboard-stat .ico.orange{background:rgba(212,99,37,.22)}.dashboard-stat .ico.amber{background:rgba(196,143,10,.24)}.dashboard-stat .ico.cyan{background:rgba(25,168,185,.22)}.dashboard-stat .ico.red{background:rgba(202,69,73,.24)}
.dashboard-grid-mid{display:grid;grid-template-columns:350px minmax(0,1fr) 350px;gap:14px;margin-bottom:14px}.dashboard-grid-low{display:grid;grid-template-columns:1.25fr 1fr .85fr;gap:14px}.dash-card{border:1px solid var(--line);border-radius:9px;background:linear-gradient(180deg,#141d25,#10171e);overflow:hidden;min-width:0}.dash-card-head{min-height:55px;border-bottom:1px solid #202c36;display:flex;align-items:center;justify-content:space-between;padding:0 14px;font-weight:800;font-size:16px;gap:10px}.head-title{display:flex;align-items:center;gap:10px;min-width:0}.head-title svg{width:20px;height:20px;flex:none}.head-title span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.small-btn{height:32px;padding:0 14px;border-radius:6px;background:#18222c;border:1px solid #26333f;color:#e7eef5;font-family:inherit;font-size:12px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}.small-btn:hover,.wide-btn:hover{background:#1d2a35;color:#fff}.dash-card-body{padding:0}.quick{padding:13px 12px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick .q{height:86px;border:1px solid #26333f;border-radius:8px;background:linear-gradient(145deg,#18222c,#151e26);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;color:#fff;font-size:13px;font-weight:700;transition:.15s}.quick .q:hover{transform:translateY(-2px);border-color:#344555;background:linear-gradient(145deg,#1b2732,#17212b)}.quick .q svg{width:28px;height:28px}.q.green svg{color:#23dea4}.q.amber svg{color:#ffc000}.q.orange svg{color:#ff8000}.q.cyan svg{color:#1fd0e1}.q.violet svg{color:#9e51ff}
.dash-table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse} .dash-card table{table-layout:fixed;min-width:0}.dash-card th{height:37px;font-size:11px;color:#c8d2df;font-weight:500;text-align:right;padding:0 9px;border-bottom:1px solid #202b35;background:transparent}.dash-card td{height:48px;padding:0 9px;border-bottom:1px solid #202b35;font-size:11px;color:#e4ecf5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.exchange-table th:nth-child(1),.exchange-table td:nth-child(1){width:46px}.exchange-table th:nth-child(2),.exchange-table td:nth-child(2){width:120px}.exchange-table th:nth-child(3),.exchange-table td:nth-child(3){width:110px}.exchange-table th:nth-child(4),.exchange-table td:nth-child(4){width:110px}.exchange-table th:nth-child(5),.exchange-table td:nth-child(5){width:82px}.exchange-table th:nth-child(6),.exchange-table td:nth-child(6){width:190px}.num{direction:ltr;text-align:right}.status{display:inline-block;border-radius:5px;padding:3px 8px;font-size:9px;font-weight:700}.status.pending{background:#4b3b12;color:#ffc426}.status.done{background:#0e4a36;color:#2fe2a0}.status.cancel{background:#491b24;color:#ff696e}.action-btn{border:none;border-radius:4px;padding:4px 9px;font-family:inherit;font-size:9px;margin-left:4px;cursor:pointer}.action-btn.accept{background:#0d543d;color:#42f3ba}.action-btn.reject{background:#522127;color:#ff767a}.inline-action-form{display:inline-flex;align-items:center}.dropdown{display:inline-grid;place-items:center;width:27px;height:27px;border-radius:5px;border:1px solid #2b3642;background:#1a2430;color:#cad5df;margin-right:2px}.exchange-actions-cell{overflow:visible!important}.dash-card-foot{padding:10px 14px}.wide-btn{min-height:32px;border:1px solid #26333f;border-radius:6px;background:#151e27;color:#dce6ef;padding:0 13px;font-family:inherit;font-size:11px;display:inline-flex;align-items:center;justify-content:center}.wide-btn.full{width:100%}.services .dash-card-head{height:50px}.svc-row{height:65px;border-bottom:1px solid #202b35;display:grid;grid-template-columns:52px 1fr 86px;align-items:center;padding:0 10px;gap:7px}.svc-ico{width:38px;height:38px;border-radius:8px;display:grid;place-items:center;background:#1e2a34;color:#a8b5c1}.svc-ico.violet{background:#2b1b2e;color:var(--violet)}.svc-ico svg{width:20px}.svc-name{font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.svc-desc{font-size:9px;color:#d3dbe5;margin-top:3px}.svc-sales{color:#2de0a7;font-size:12px;font-weight:700;text-align:left;direction:ltr}.svc-sales small{display:block;color:#9aa8b8;font-size:9px;font-weight:400;margin-top:1px}.orders-mini .dash-card-head,.rates-mini .dash-card-head,.payments-mini .dash-card-head{min-height:48px}.orders-mini td,.orders-mini th,.rates-mini td,.rates-mini th{height:31px;font-size:10px}.payments-row{height:43px;display:grid;grid-template-columns:38px 1fr 60px;align-items:center;border-bottom:1px solid #202b35;padding:0 12px;font-size:11px;gap:7px}.pay-icon{width:26px;display:grid;place-items:center;color:#42a5ff}.pay-icon svg{width:18px}.toggle-state{border-radius:4px;font-size:9px;padding:3px 9px;width:max-content}.toggle-state.on{background:#0c4d38;color:#3ae0a6}.toggle-state.off{background:#29323c;color:#aeb9c8}.gear-link{display:grid;place-items:center;color:#a9b7c5}.gear-link svg{width:15px}.dash-empty{padding:28px;text-align:center;color:var(--muted);font-size:12px}

/* Shared cards / components for every admin page */
.page-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;flex-wrap:wrap}.page-header h1{margin:0;font-size:23px;font-weight:800}.page-header p{margin:4px 0 0;color:#aeb9c7;font-size:11px}.page-actions{display:flex;gap:8px;flex-wrap:wrap}.card,.panel{background:linear-gradient(180deg,#141d25,#10171e);border:1px solid var(--line);border-radius:9px;margin-bottom:14px;overflow:hidden}.card-header,.panel-head-row{min-height:52px;padding:10px 14px;border-bottom:1px solid #202c36;display:flex;align-items:center;justify-content:space-between;gap:10px}.card-header h3,.panel h2{margin:0;font-size:15px;font-weight:800}.panel>h2{padding:14px 16px;border-bottom:1px solid #202c36}.card-body{padding:16px}.panel:not(:has(> .card-body)){padding-bottom:0}.panel>form,.panel>.grid-form,.panel>.table-wrap,.panel>.warn-bar,.panel>.info-grid,.panel>.filter-tabs,.panel>.search-wrap,.panel>.qa-actions,.panel>.stock-box,.panel>.account-rows,.panel>.result-box,.panel>.perm-grid,.panel>.row-actions,.panel>p{margin-left:16px;margin-right:16px}.panel>.table-wrap{margin-left:0;margin-right:0}.panel>form,.panel>.grid-form,.panel>.warn-bar,.panel>.info-grid,.panel>.filter-tabs,.panel>.search-wrap,.panel>.qa-actions,.panel>.stock-box,.panel>.account-rows,.panel>.result-box,.panel>.perm-grid{margin-top:14px;margin-bottom:14px}.card-actions{display:flex;gap:8px;flex-wrap:wrap}

/* Generic tables */
.table-wrap{overflow-x:auto}.content>table,.card table:not(.dash-card table),.panel table{width:100%;border-collapse:collapse;font-size:12px;min-width:620px}.card:not(.dash-card) th,.panel th{padding:10px 12px;text-align:right;border-bottom:1px solid #24303a;color:#b9c6d3;font-weight:600;background:#151f28;white-space:nowrap}.card:not(.dash-card) td,.panel td{padding:10px 12px;text-align:right;border-bottom:1px solid #202b35;color:#e4ecf5;vertical-align:middle}.card:not(.dash-card) tr:hover td,.panel tr:hover td{background:rgba(255,255,255,.015)}.empty-cell{text-align:center!important;color:var(--muted)!important;padding:28px!important}

/* Buttons */
.btn,.mini-btn,.button-link,.btn-green,.btn-gold,.btn-red,.btn-danger,.btn-ghost{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:6px 13px;border-radius:6px;border:1px solid transparent;font-weight:700;font-size:12px;cursor:pointer;text-decoration:none;white-space:nowrap}.btn-primary,.btn-green{background:linear-gradient(90deg,#0d8b64,#169a70);color:#fff}.btn-primary:hover,.btn-green:hover{filter:brightness(1.1);color:#fff}.btn-secondary,.mini-btn,.button-link{background:#18222c;color:#e8f0f6;border-color:#2a3742}.btn-secondary:hover,.mini-btn:hover,.button-link:hover{background:#202d38}.btn-ghost{background:transparent;color:#c5d0da;border-color:#2b3843}.btn-ghost:hover{background:#18222c;color:#fff}.btn-success{background:#0d6d4f;color:#45efb6;border-color:#168461}.btn-danger,.btn-red{background:#522127;color:#ff8a8d;border-color:#6b2b32}.btn-warning,.btn-gold{background:#5a4611;color:#ffd047;border-color:#715a16}.btn-sm{min-height:28px;padding:4px 9px;font-size:10px}.btn:disabled{opacity:.5;cursor:not-allowed}.row-actions,.btn-row,.qa-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.action-link{display:inline-flex;align-items:center;padding:4px 8px;border-radius:5px;background:#18222c;border:1px solid #2a3742;font-size:10px}.action-edit{color:#64b5ff}.action-del{color:#ff777b}

/* Badges / alerts */
.badge{display:inline-flex;align-items:center;padding:3px 8px;border-radius:5px;font-size:10px;font-weight:700;background:#28333e;color:#dce5ed}.badge-success,.badge.ok,.ok{background:#0e4a36!important;color:#2fe2a0!important}.badge-warning,.badge.wait,.wait{background:#4b3b12!important;color:#ffc426!important}.badge-danger,.badge.bad,.bad{background:#491b24!important;color:#ff696e!important}.badge-info{background:#123f4b;color:#47d9ed}.money-badge{color:#34dda4;font-weight:800}.toast,.alert,.alert-bar{padding:11px 14px;border-radius:7px;margin-bottom:14px;border:1px solid #2c3944;background:#18222c;font-size:12px}.toast-success{background:rgba(14,74,54,.7);color:#46eab1;border-color:#1a6a50}.toast-danger{background:rgba(73,27,36,.85);color:#ff8589;border-color:#71313a}.toast-warning{background:rgba(75,59,18,.85);color:#ffd253;border-color:#745d1e}.warn-bar,.alert-bar{display:flex;flex-direction:column;gap:7px}.warn-item,.alert-item{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #26313c;padding:9px 0}.warn-item:last-child,.alert-item:last-child{border-bottom:0}

/* Forms */
input,select,textarea{font-size:13px}.form-grid,.grid-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}.form-grid .full,.grid-form .full,.full{grid-column:1/-1}.form-group,.field-block,label.field-block{display:flex;flex-direction:column;gap:5px}.form-group label,.field-block>label,.grid-form>label,.panel form>label{font-size:11px;font-weight:700;color:#b7c3cf}.form-group input,.form-group select,.form-group textarea,.grid-form input,.grid-form select,.grid-form textarea,.panel input,.panel select,.panel textarea,.filter-group input,.filter-group select,.search-input{background:#10171e;color:#eef5fb;border:1px solid #2c3945;border-radius:6px;padding:9px 11px;outline:0}.form-group input:focus,.form-group select:focus,.form-group textarea:focus,.grid-form input:focus,.grid-form select:focus,.grid-form textarea:focus,.panel input:focus,.panel select:focus,.panel textarea:focus{border-color:#1e9c76;box-shadow:0 0 0 2px rgba(34,211,154,.08)}textarea{min-height:96px;resize:vertical}.form-check,.check{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;color:#d3dde6!important}.form-check input,.check input{width:16px;height:16px}.inline-form{display:inline-flex;align-items:center;gap:7px;flex-wrap:wrap}.filter-bar{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;background:#131c24;border:1px solid #24303a;padding:12px;border-radius:8px;margin-bottom:14px}.filter-group{display:flex;flex-direction:column;gap:4px;min-width:150px;flex:1}.filter-group label{font-size:10px;color:#aab7c4;font-weight:700}.filter-actions{display:flex;gap:7px}.bulk-textarea{min-height:220px;font-family:monospace;direction:ltr}.extras-list{display:flex;flex-direction:column;gap:8px}

/* Stats on detail pages */
.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:14px}.stat-card{background:linear-gradient(145deg,#151e27,#131b23);border:1px solid var(--line);border-radius:9px;padding:14px;display:flex;align-items:center;gap:12px}.stat-icon{width:42px;height:42px;border-radius:9px;background:#1b2832;display:grid;place-items:center;font-size:20px}.stat-info{display:flex;flex-direction:column}.stat-value{font-size:18px;font-weight:800}.stat-label{font-size:11px;color:#aeb9c7}

/* Tabs, pagination, profile */
.tabs,.filter-tabs{display:flex;gap:5px;border-bottom:1px solid #26313c;margin-bottom:14px;overflow-x:auto}.tabs a,.filter-tabs a{padding:9px 12px;color:#aeb9c7;font-size:11px;font-weight:700;border-bottom:2px solid transparent;white-space:nowrap}.tabs a.active,.filter-tabs a.active{color:#2ce0a4;border-color:#2ce0a4}.pagination{display:flex;gap:4px;justify-content:center;margin:14px 0;flex-wrap:wrap}.pagination a{min-width:31px;height:31px;display:grid;place-items:center;background:#18222c;border:1px solid #2a3742;border-radius:5px;font-size:11px;color:#e6edf4}.pagination a.active{background:#0d6d4f;color:#fff;border-color:#168461}.profile-header{display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:linear-gradient(180deg,#141d25,#10171e);border:1px solid var(--line);border-radius:9px;padding:16px;margin-bottom:14px}.profile-avatar{width:56px;height:56px;border-radius:50%;background:#193329;display:grid;place-items:center;font-size:24px}.profile-info h2{margin:0;font-size:18px}.profile-info p{margin:4px 0 0;color:#aeb9c7;font-size:11px}.profile-actions{margin-right:auto;display:flex;gap:8px;flex-wrap:wrap}

/* Modal / drawer */
.modal{display:none;position:fixed;inset:0;z-index:90;align-items:center;justify-content:center;background:rgba(0,0,0,.72)}.modal.open{display:flex}.modal-box{background:#131c24;border:1px solid #2d3945;border-radius:10px;width:100%;max-width:520px;max-height:90vh;overflow:auto;margin:16px}.modal-header,.drawer-header{display:flex;align-items:center;justify-content:space-between;padding:13px 15px;border-bottom:1px solid #27333e}.modal-header h3,.drawer-header h3{margin:0;font-size:15px}.modal-close{background:transparent;border:0;color:#aeb9c7;font-size:22px;cursor:pointer}.modal-body,.drawer-body{padding:15px}.modal-footer,.drawer-footer{padding:13px 15px;border-top:1px solid #27333e;display:flex;justify-content:flex-end;gap:8px}.drawer{display:none;position:fixed;inset:0;z-index:90}.drawer.open{display:block}.drawer-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.65)}.drawer-box{position:absolute;top:0;bottom:0;left:0;width:100%;max-width:560px;background:#111820;border-right:1px solid #2b3742;display:flex;flex-direction:column}.drawer-body{flex:1;overflow:auto}

/* Legacy page helpers */
.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}.info-grid>div{background:#111820;border:1px solid #26313c;border-radius:7px;padding:10px}.account-rows{display:flex;flex-direction:column;gap:8px}.account-row{border:1px solid #26313c;border-radius:7px;background:#111820;padding:10px}.stock-box{border:1px solid #293642;border-radius:8px;overflow:hidden}.stock-box-header{padding:10px 12px;background:#17212a;border-bottom:1px solid #293642}.stock-summary{display:flex;gap:8px;flex-wrap:wrap}.stock-table{overflow:auto}.stock-cell{padding:8px}.stock-fields,.field-sets{display:flex;flex-direction:column;gap:9px}.field-set{border:1px solid #283641;border-radius:7px;padding:10px}.type-badge,.role-badge,.count{display:inline-flex;padding:2px 7px;border-radius:4px;background:#22303a;color:#c8d5df;font-size:10px}.deal-badge{background:#543d0d;color:#ffd34f}.deal-box,.deal-fields,.deal-preview{border:1px solid #5b4718;background:rgba(91,71,24,.18);border-radius:7px;padding:10px}.perm-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}.perm-box{border:1px solid #2a3742;border-radius:7px;padding:10px;background:#111820}.perm-badges{display:flex;gap:5px;flex-wrap:wrap}.role-owner{background:#493311;color:#ffd056}.result-box{border:1px solid #2a3742;border-radius:8px;background:#111820;padding:12px}.hidden,.hidden-row{display:none!important}.masked{font-family:monospace;letter-spacing:2px}.copy-btn{font-size:10px;padding:3px 7px}.preview-table{max-height:360px;overflow:auto}.hero-panel{border-color:#315242;background:linear-gradient(145deg,#153027,#121e1a)}

/* Login */
.login-page{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 50% 15%,rgba(35,85,70,.25),transparent 35%),#0c1117}.login-card{width:min(420px,100%);background:linear-gradient(180deg,#151f28,#10171e);border:1px solid #2b3844;border-radius:14px;padding:28px;box-shadow:0 30px 80px rgba(0,0,0,.45)}.login-logo{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;margin:0 auto 12px;background:linear-gradient(145deg,#273341,#18212a);font-size:24px;font-weight:800;position:relative}.login-logo:after{content:"";position:absolute;right:2px;bottom:3px;width:9px;height:9px;border-radius:50%;background:#22d39a;border:2px solid #121920}.login-card h1{text-align:center;margin:0;font-size:25px;color:#25e1a8}.login-sub{text-align:center;color:#aeb9c7;font-size:12px;margin:5px 0 22px}.login-card label{display:flex;flex-direction:column;gap:6px;color:#c4cfda;font-size:12px;margin-top:12px}.login-card input{height:43px;background:#0f171e;border:1px solid #2b3844;border-radius:7px;color:#fff;padding:0 12px;outline:0}.login-card input:focus{border-color:#1f9e77;box-shadow:0 0 0 2px rgba(34,211,154,.08)}.login-submit{width:100%;height:43px;margin-top:18px;border:0;border-radius:7px;background:linear-gradient(90deg,#0d8b64,#199d73);color:#fff;font-weight:800;cursor:pointer}.login-submit:hover{filter:brightness(1.08)}.login-foot{text-align:center;color:#6f7f8e;font-size:10px;margin:18px 0 0}

/* Optional light mode: shell remains structurally identical */
body.light-theme{--bg:#eef3f7;--panel:#fff;--panel2:#f5f8fa;--panel3:#e7edf1;--line:#d6e0e7;--muted:#617183;--txt:#13202c;--surface:#fff;--surface-2:#f5f8fa;--surface-3:#e7edf1;--text:#13202c;--text-muted:#617183;background:#eef3f7;color:#13202c}body.light-theme .app{background:#f4f7f9;border-color:#cfd9e0}body.light-theme .sidebar,body.light-theme .topbar{background:#fff}body.light-theme .nav a{color:#334455}body.light-theme .store-card,body.light-theme .dash-card,body.light-theme .card,body.light-theme .panel,body.light-theme .dashboard-stat{background:#fff}body.light-theme .search,body.light-theme input,body.light-theme select,body.light-theme textarea{background:#f7f9fb;color:#14212b}body.light-theme .footer{color:#5d6b78}

/* Responsive */
@media(max-width:1380px){.dashboard-grid-mid{grid-template-columns:300px minmax(0,1fr) 300px}.dashboard-stat .value{font-size:16px}}
@media(max-width:1200px){.dashboard-stats{grid-template-columns:repeat(3,1fr)}.dashboard-grid-mid{grid-template-columns:1fr}.dashboard-grid-low{grid-template-columns:1fr}.services{order:3}.search-wrap{transform:none}.sidebar{width:190px}.main{margin-right:190px}.topbar{right:199px}}
@media(max-width:820px){:root{--sidebar:0px}.sidebar{right:0;top:0;bottom:0;width:230px;border-radius:0;transform:translateX(105%);transition:.2s;display:flex}.sidebar.open{transform:translateX(0)}.overlay.open{display:block}.topbar{right:9px}.main{margin-right:0}.content{padding:14px}.dashboard-stats{grid-template-columns:1fr 1fr}.search-wrap{display:none}.dashboard-grid-mid,.dashboard-grid-low{grid-template-columns:1fr}.topbar{padding:0 12px}.profile{border:0;padding-left:8px}.page-title{font-size:20px}.mobile-menu-toggle{display:grid}.sidebar-menu-btn{display:grid}.form-grid,.grid-form{grid-template-columns:1fr}.filter-bar{flex-direction:column;align-items:stretch}.filter-group{min-width:auto}.drawer-box{max-width:100%}.footer{padding:0 10px}.footer>div:last-child{display:none}}
@media(max-width:540px){.dashboard-stats{grid-template-columns:1fr}.profile .meta{display:none}.top-icons{gap:14px}.quick{grid-template-columns:1fr 1fr}.content{padding:10px}.app{margin:0;border-radius:0;min-height:100vh}.topbar{left:0;right:0;top:0;border-radius:0}.main{padding-top:64px}.dashboard-stat{height:96px}.dashboard-stat .value{font-size:15px}.page-header{align-items:flex-start;flex-direction:column}.stats-grid{grid-template-columns:1fr}.card-header,.panel-head-row{align-items:flex-start;flex-direction:column}.profile-actions{margin-right:0}}

/* Additional compatibility helpers for legacy/full-control admin screens */
:root{--brand-2:var(--green);--brand-grad:linear-gradient(90deg,#0d8b64,#199d73)}
.admin-shell{display:block}.sidebar-nav{flex:1}.chip{display:inline-flex;align-items:center;gap:7px;min-height:30px;padding:4px 9px;border:1px solid #2a3742;border-radius:6px;background:#17212a;color:#cbd6df;font-size:10px}.dot{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px rgba(34,211,154,.12)}.mini-btn.danger,.danger{color:#ff8185}.mini-btn.danger{background:#3f1d24;border-color:#5b2931}.empty-state{padding:34px 18px;text-align:center;color:#94a3b8}.empty-icon{font-size:34px;margin-bottom:8px}.empty-state h3{margin:0 0 5px;color:#eef5fb}.empty-state p{margin:0;font-size:11px}.product-thumb,.mini-thumb{object-fit:cover;border-radius:7px;border:1px solid #2d3a45;background:#0f161d}.product-thumb{width:42px;height:42px}.mini-thumb{width:34px;height:34px}.product-name{font-weight:700}.product-row,.user-row,.stock-item{transition:background .15s}.product-row:hover,.user-row:hover,.stock-item:hover{background:rgba(255,255,255,.015)}.acc-page-head,.qa-head,.acc-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.acc-page-head{margin-bottom:12px}.qa-head{padding-bottom:10px;border-bottom:1px solid #26313c;margin-bottom:10px}.acc-head{font-size:11px;font-weight:700;margin-bottom:8px}.type-select{display:flex!important;flex-direction:column;gap:6px}.quick-add-form,.stock-edit-form{display:grid;gap:10px}.stock-type-form{border:1px solid #293642;border-radius:8px;background:#111820;padding:12px}.stock-empty{padding:24px;text-align:center;color:#8d9baa}.fld{display:inline-block;margin:2px 0;color:#d5dfe8;font-size:11px}.img-block{min-width:180px}.add-extra{margin-top:7px}.deal-edit{margin-top:10px}.extra-row{align-items:end}.timeline li{position:relative;padding:0 20px 18px 0;border-right:1px solid #32404b;margin-right:6px}.timeline li:before{content:"";position:absolute;right:-5px;top:4px;width:9px;height:9px;border-radius:50%;background:#22d39a;box-shadow:0 0 0 3px #14251f}.timeline li:last-child{border-right-color:transparent}.reveal{font-family:monospace}.wide{grid-column:1/-1}.grid{min-width:0}.quick-card,.exchange-live{min-width:0}

/* V6 exchange module navigation */
.nav-submenu{margin:4px 12px 8px 0;padding:6px 10px 6px 0;border-right:1px solid var(--border);display:grid;gap:3px}
.nav-submenu a{font-size:12px!important;padding:8px 10px!important;min-height:auto!important;background:transparent!important;color:var(--muted)!important;border-radius:8px!important}
.nav-submenu a:hover,.nav-submenu a.active{color:var(--text)!important;background:rgba(255,255,255,.045)!important}
.nav-submenu a i{width:15px!important;height:15px!important}
.module-subnav{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}
.module-subnav-link{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid var(--border);border-radius:10px;background:var(--card);color:var(--muted);font-size:13px;font-weight:700;text-decoration:none}
.module-subnav-link:hover,.module-subnav-link.active{color:var(--text);border-color:rgba(255,255,255,.14);background:rgba(255,255,255,.045)}
.module-subnav-link i{width:16px;height:16px}
.page-section{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:18px;margin-bottom:18px}
.page-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.page-section-title h3{margin:0;font-size:16px}
.form-hint{font-size:12px;color:var(--muted);line-height:1.7;margin-top:6px}
.exchange-ready{display:flex;align-items:center;gap:8px}
.exchange-rate-preview{font-size:17px;font-weight:800;direction:ltr;text-align:right}

/* V6 full-page editors */
.inventory-create-form{display:grid;gap:16px;padding-bottom:86px}
.inventory-additional-list{display:grid;gap:12px;margin-top:14px}
.sticky-form-actions{position:sticky;bottom:14px;z-index:30;display:flex;justify-content:flex-start;gap:10px;padding:12px 14px;border:1px solid var(--border);border-radius:14px;background:rgba(15,21,27,.94);backdrop-filter:blur(14px);box-shadow:0 18px 50px rgba(0,0,0,.28)}
.exchange-rate-preview{display:inline-flex;align-items:center;padding:7px 10px;border:1px solid var(--border);border-radius:10px;background:rgba(255,255,255,.025);font-weight:700}
.exchange-readiness{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.exchange-route-card{border:1px solid var(--border);border-radius:16px;padding:14px;background:rgba(255,255,255,.018)}
.exchange-route-card+.exchange-route-card{margin-top:10px}
@media(max-width:720px){.sticky-form-actions{bottom:8px}.module-subnav{overflow-x:auto;flex-wrap:nowrap}.module-subnav-link{white-space:nowrap}}
.input-like{min-height:42px;display:flex;align-items:center;padding:0 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface-2);color:var(--text)}

/* V7.2 admin cleanup — list pages stay clean, editors live on their own pages */
.content{max-width:1480px;margin:0 auto;width:100%}.page-header{margin-bottom:18px;align-items:flex-start}.page-header h1{font-size:25px;line-height:1.25;margin:0 0 6px}.page-header p{margin:0;max-width:760px;line-height:1.8}.page-actions{display:flex;gap:8px;flex-wrap:wrap}.page-actions .btn{min-height:42px}.card,.page-section{overflow:hidden}.card-header,.page-section-title{padding-top:0}.page-section{padding:20px}.editor-shell{display:grid;gap:16px;padding-bottom:82px;max-width:1120px}.editor-shell>.page-section{margin-bottom:0}.form-grid{gap:16px}.form-group label{font-weight:700;margin-bottom:7px}.form-group input,.form-group select,.form-group textarea{min-height:44px;border-radius:10px}.form-group textarea{padding-top:11px}.clean-notice{margin:0 0 16px}.entity-cell{display:flex;align-items:center;gap:10px;min-width:180px}.entity-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;background:rgba(255,255,255,.045);font-size:20px;flex:0 0 auto}.entity-thumb{width:44px;height:44px;object-fit:cover;border-radius:11px;border:1px solid var(--border);background:var(--surface-2);flex:0 0 auto}.uploaded-preview{margin-top:10px;display:flex;align-items:center;gap:12px;padding:10px;border:1px solid var(--border);border-radius:12px;background:rgba(255,255,255,.02)}.uploaded-preview img{width:74px;height:74px;object-fit:cover;border-radius:10px}.icon-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(105px,1fr));gap:9px}.icon-choice{position:relative;cursor:pointer}.icon-choice input{position:absolute;opacity:0;pointer-events:none}.icon-choice-box{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:82px;border:1px solid var(--border);border-radius:12px;background:rgba(255,255,255,.02);transition:.15s}.icon-choice-box b{font-size:25px}.icon-choice-box small{color:var(--muted);font-size:11px}.icon-choice input:checked+.icon-choice-box{border-color:rgba(34,211,154,.65);background:rgba(34,211,154,.11);box-shadow:0 0 0 2px rgba(34,211,154,.08) inset}.repeat-list{display:grid;gap:10px}.repeat-row{display:grid;grid-template-columns:minmax(130px,.7fr) minmax(180px,1fr) minmax(130px,.65fr) 90px auto;gap:10px;align-items:end;padding:12px;border:1px solid var(--border);border-radius:12px;background:rgba(255,255,255,.018)}.checkbox-field{min-width:80px}.table-wrap table{min-width:840px}.row-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.row-actions form{display:inline-flex;margin:0}.action-link{white-space:nowrap}.nav-submenu{margin-top:2px}.module-subnav{display:none!important}.stats-grid{margin-bottom:16px}.filter-bar{margin-bottom:16px}.sticky-form-actions{max-width:1120px}.btn-primary{box-shadow:none}.page-section-title p{margin:4px 0 0}.input-like{word-break:break-all}.admin-section-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.admin-section-link{display:flex;align-items:center;gap:12px;padding:16px;border:1px solid var(--border);border-radius:14px;background:var(--card);text-decoration:none;color:var(--text)}.admin-section-link:hover{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.14)}.admin-section-link i{width:20px;height:20px;color:var(--green)}.admin-section-link b{display:block;margin-bottom:3px}.admin-section-link small{color:var(--muted);line-height:1.5}
@media(max-width:820px){.page-header{gap:12px}.page-actions{width:100%}.page-actions .btn{flex:1}.editor-shell{padding-bottom:94px}.repeat-row{grid-template-columns:1fr}.icon-picker{grid-template-columns:repeat(3,1fr)}.sticky-form-actions{left:8px;right:8px}.content{padding-inline:12px}}

/* V7.2 navigation cleanup: only the exact submenu item is highlighted. */
.sidebar-nav > a.section-open{
  background:transparent!important;
  border-color:transparent!important;
  color:var(--text)!important;
}
.sidebar-nav > a.section-open:hover{background:rgba(255,255,255,.035)!important}
.nav-submenu{margin:2px 12px 10px 0;padding:2px 10px 2px 0;border-right:1px solid var(--border)}
.nav-submenu a{min-height:38px!important;border-radius:9px!important;padding:8px 10px!important;font-size:13px!important}
.nav-submenu a.active{background:rgba(16,185,129,.12)!important;border:1px solid rgba(16,185,129,.22)!important;color:var(--green)!important}

/* Consistent CodeCanyon-style management screens. */
.page-head{margin-bottom:18px}
.page-head h1{font-size:24px;letter-spacing:-.4px}
.page-head .page-subtitle{max-width:720px;line-height:1.8;color:var(--muted)}
.page-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.page-actions .btn-primary{min-width:132px;justify-content:center}
.card{overflow:hidden}
.card-header{min-height:52px;padding:13px 16px;border-bottom:1px solid var(--border)}
.card-header h3{font-size:15px;margin:0}
.card-body{padding:16px}
.table-wrap{border-radius:0}
table th{font-size:12px;color:var(--muted);font-weight:700;white-space:nowrap}
table td{vertical-align:middle}
.empty-state{padding:48px 20px;text-align:center;color:var(--muted)}
.editor-shell{max-width:1050px;margin:0 auto 28px}
.editor-shell .page-section{padding:20px;margin-bottom:14px}
.page-section-title{margin-bottom:18px}
.page-section-title h3{font-size:16px;margin:0}
.page-section-title p{margin:4px 0 0}
.form-grid{gap:15px}
.form-group label{margin-bottom:7px;font-size:13px;font-weight:700}
.form-group input,.form-group select,.form-group textarea{min-height:43px}
.form-group textarea{min-height:96px}
.sticky-form-actions{position:sticky;bottom:12px;z-index:8;background:rgba(15,21,27,.96);backdrop-filter:blur(14px);border:1px solid var(--border);box-shadow:0 16px 40px rgba(0,0,0,.28);padding:11px 12px;border-radius:12px;display:flex;justify-content:flex-start;gap:8px}
.icon-picker{grid-template-columns:repeat(auto-fill,minmax(112px,1fr))}
.icon-choice-box{min-height:82px}
.notice-box.clean-notice,.module-subnav{display:none!important}
.management-toolbar{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:12px}
.management-toolbar .toolbar-title{font-size:13px;color:var(--muted)}
@media(max-width:700px){.editor-shell{max-width:none}.page-head h1{font-size:20px}.page-actions{width:100%}.page-actions .btn{flex:1}.sticky-form-actions{bottom:6px}}
.permission-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:9px}.permission-tile{display:flex;align-items:center;gap:9px;border:1px solid var(--border);background:rgba(255,255,255,.02);border-radius:10px;padding:11px 12px;cursor:pointer}.permission-tile:has(input:checked){border-color:rgba(16,185,129,.35);background:rgba(16,185,129,.08)}.permission-tile input{accent-color:#10b981}.compact-owner{max-width:520px}

/* =========================================================
   V8 — UX & Flow Hardening
   One visual system for every internal management screen.
   ========================================================= */
:root{
  --page-max:1480px;
  --content-gap:18px;
  --control-h:44px;
  --shadow-soft:0 14px 36px rgba(0,0,0,.16);
}
.nav-group-title{padding:14px 13px 6px;color:#657485;font-size:10px;font-weight:800;letter-spacing:.2px;user-select:none}
.nav-group-title:first-child{padding-top:4px}
.page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:20px;padding-bottom:17px;border-bottom:1px solid rgba(255,255,255,.055)}
.page-heading{min-width:0}.page-heading h1{margin:5px 0 5px;font-size:25px;line-height:1.25;letter-spacing:-.35px}.page-heading>p{margin:0;max-width:760px;font-size:12px;line-height:1.75}
.page-breadcrumb{display:flex;align-items:center;gap:5px;color:#718091;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.page-breadcrumb a{color:#8292a4}.page-breadcrumb a:hover{color:var(--green)}.page-breadcrumb svg{width:12px;height:12px;opacity:.6}.page-breadcrumb strong{color:#aebac8;font-weight:700}
.page-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.page-actions .btn{min-height:40px}.btn svg,.page-actions svg{width:16px;height:16px}
.content{max-width:calc(var(--page-max) + 50px);width:100%;margin:0 auto;padding:22px 25px 40px}
.card,.page-section,.panel{border:1px solid var(--border);background:linear-gradient(180deg,rgba(20,28,36,.98),rgba(17,24,32,.98));box-shadow:0 1px 0 rgba(255,255,255,.015);border-radius:11px}
.card:hover{border-color:#2f3d49}.card-header{background:rgba(255,255,255,.01)}
.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:0 0 17px}.stat-card{min-height:88px;border:1px solid var(--border);border-radius:10px;background:linear-gradient(145deg,#151f27,#121a22);padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}.stat-icon{order:2;width:42px;height:42px;border-radius:10px;background:#1c2a34;display:grid;place-items:center}.stat-value{font-size:20px;font-weight:800;line-height:1.2}.stat-label{display:block;color:var(--muted);font-size:11px;margin-top:5px}
.filter-bar{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;align-items:end;border:1px solid var(--border);background:rgba(17,25,33,.72);padding:12px;border-radius:10px;margin-bottom:13px}.filter-group{display:flex;flex-direction:column;gap:6px}.filter-group label{font-size:10px;color:#8e9baa;font-weight:700}.filter-group input,.filter-group select{height:40px}.filter-actions{display:flex;gap:7px;align-items:center}.filter-actions .btn{min-height:40px;flex:1}
.table-wrap{width:100%;overflow:auto;border-radius:0 0 10px 10px}.data-table{min-width:760px}.data-table thead{position:sticky;top:0;z-index:2;background:#121a22}.data-table th{padding:11px 13px;border-bottom:1px solid var(--border);font-size:11px;text-align:right;color:#91a0b0}.data-table td{padding:12px 13px;border-bottom:1px solid rgba(255,255,255,.045);font-size:12px}.data-table tbody tr{transition:background .15s}.data-table tbody tr:hover{background:rgba(255,255,255,.022)}.data-table tbody tr:last-child td{border-bottom:0}
.entity-cell{display:flex;align-items:center;gap:10px;min-width:150px}.entity-thumb,.entity-cell>img{width:34px!important;height:34px!important;border-radius:9px!important;object-fit:cover;flex:none;background:#0d141b;border:1px solid #2a3640}.entity-icon{width:34px;height:34px;border-radius:9px;background:#1a2731;display:grid;place-items:center;flex:none;font-size:17px}
.row-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.row-actions form{display:inline-flex;margin:0}.action-link{height:30px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #30404d;border-radius:6px;padding:0 9px;background:#17222b;color:#cbd6df;font-size:10px;white-space:nowrap;cursor:pointer}.action-link:hover{border-color:#436173;color:#fff}.action-edit{color:#72b8ff}.action-del{color:#ff7d7d}.action-link:disabled{opacity:.5;cursor:not-allowed}
.editor-shell{max-width:1080px;margin:0 auto 30px}.page-section{padding:21px;margin-bottom:13px}.page-section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:14px;margin-bottom:17px;border-bottom:1px solid rgba(255,255,255,.055)}.page-section-title h3{font-size:15px;margin:0}.page-section-title p{font-size:11px;line-height:1.7;margin:4px 0 0;max-width:700px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-group{min-width:0}.form-group.full,.full{grid-column:1/-1}.form-group label{display:block;color:#cbd5df;font-size:11px;font-weight:700;margin-bottom:6px}.form-group input,.form-group select,.form-group textarea,.grid-form input,.grid-form select,.grid-form textarea,.inline-form input,.inline-form select{width:100%;border:1px solid #2b3843;border-radius:8px;background:#101820;color:#edf5fb;outline:0;padding:9px 11px;transition:border-color .15s,box-shadow .15s,background .15s}.form-group input,.form-group select{height:var(--control-h)}.form-group textarea{min-height:104px;resize:vertical}.form-group input:focus,.form-group select:focus,.form-group textarea:focus,.grid-form input:focus,.grid-form select:focus,.grid-form textarea:focus{border-color:rgba(34,211,154,.52);box-shadow:0 0 0 3px rgba(34,211,154,.075);background:#111b23}.form-group input:invalid:not(:placeholder-shown){border-color:rgba(255,82,82,.55)}.form-hint,.form-group small{display:block;color:#7f8e9e;font-size:10px;line-height:1.65;margin-top:6px}
.form-check{display:flex!important;align-items:center;gap:8px;min-height:38px;color:#cbd6df!important;cursor:pointer}.form-check input[type=checkbox],.form-check input[type=radio]{width:16px!important;height:16px!important;min-height:auto!important;accent-color:var(--green);flex:none}
.sticky-form-actions{position:sticky;bottom:10px;z-index:12;display:flex;align-items:center;justify-content:flex-start;gap:8px;margin-top:16px;padding:10px;background:rgba(13,19,25,.94);backdrop-filter:blur(14px);border:1px solid #2d3a45;border-radius:11px;box-shadow:0 16px 40px rgba(0,0,0,.28)}.sticky-form-actions .btn{min-width:120px;min-height:42px}.sticky-form-actions .btn-primary{min-width:155px}
.btn.is-loading,button.is-loading{pointer-events:none;opacity:.72}.btn.is-loading:before,button.is-loading:before{content:"";width:13px;height:13px;border:2px solid currentColor;border-left-color:transparent;border-radius:50%;display:inline-block;vertical-align:-2px;margin-inline-end:6px;animation:v8spin .7s linear infinite}@keyframes v8spin{to{transform:rotate(360deg)}}
.file-drop{min-height:96px;border:1px dashed #38505d!important;border-radius:10px;background:#101920;display:flex!important;align-items:center;gap:13px;padding:15px!important;cursor:pointer;transition:.15s}.file-drop:hover{border-color:rgba(34,211,154,.55)!important;background:rgba(34,211,154,.035)}.file-drop input{position:absolute!important;opacity:0!important;pointer-events:none;width:1px!important;height:1px!important}.file-drop svg{width:28px;height:28px;color:#33dba3;flex:none}.file-drop span{display:flex;flex-direction:column;gap:3px}.file-drop b{font-size:12px}.file-drop small{margin:0;font-size:10px;color:#7e8d9c}.image-live-preview,.uploaded-preview{margin-top:10px;border:1px solid var(--border);border-radius:9px;background:#0f171e;padding:9px;display:flex;align-items:center;gap:11px}.image-live-preview[hidden]{display:none}.image-live-preview img,.uploaded-preview img{width:74px;height:74px;border-radius:8px;object-fit:cover;border:1px solid #30404c}.uploaded-preview-meta{display:flex;flex-direction:column;gap:4px}.uploaded-preview-meta>span{font-size:11px;color:#aab7c3}
.info-banner{display:flex;align-items:flex-start;gap:9px;border:1px solid rgba(32,198,217,.18);background:rgba(32,198,217,.06);border-radius:9px;padding:11px 12px;color:#c6d8df;font-size:11px;line-height:1.7;margin-bottom:12px}.info-banner svg{width:17px;height:17px;flex:none;margin-top:1px;color:var(--cyan)}.info-banner.warning{border-color:rgba(255,184,0,.18);background:rgba(255,184,0,.055)}.info-banner.warning svg{color:var(--amber)}.info-banner.danger{border-color:rgba(255,82,82,.2);background:rgba(255,82,82,.055)}.info-banner.danger svg{color:var(--red)}
.toast{position:fixed;left:22px;top:84px;z-index:200;min-width:260px;max-width:min(440px,calc(100vw - 44px));padding:12px 14px;border-radius:9px;border:1px solid rgba(34,211,154,.28);background:#12221d;color:#dff9ef;box-shadow:var(--shadow-soft);font-size:12px}.toast-warning{border-color:rgba(255,184,0,.3);background:#262111}.toast-danger{border-color:rgba(255,82,82,.3);background:#291719}
.empty-state{padding:48px 18px}.empty-state .empty-icon{width:48px;height:48px;margin:0 auto 10px;border-radius:12px;background:#18232c;display:grid;place-items:center;font-size:22px}.empty-state h3{margin:0 0 6px;font-size:14px}.empty-state p{margin:0;color:var(--muted);font-size:11px}
.tabs{display:flex;align-items:center;gap:6px;border-bottom:1px solid var(--border);margin-bottom:16px;overflow:auto}.tabs a{height:42px;display:flex;align-items:center;padding:0 13px;color:#93a1b1;font-size:11px;border-bottom:2px solid transparent;white-space:nowrap}.tabs a:hover{color:#fff}.tabs a.active{color:#33dda6;border-bottom-color:#24d59d}
.panel{padding:16px;margin-bottom:14px}.panel h2{font-size:15px;margin:0 0 13px}.panel-head-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.grid-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.grid-form label{font-size:11px;color:#cbd6df}.grid-form label>input,.grid-form label>select,.grid-form label>textarea{display:block;margin-top:6px}.btn-row{display:flex;gap:8px;align-items:center}
.management-toolbar{border:1px solid var(--border);background:#111921;border-radius:9px;padding:10px 12px}.management-toolbar .toolbar-title{font-size:11px}
.code-value,code{direction:ltr;unicode-bidi:isolate}.money-badge{direction:ltr;unicode-bidi:isolate;white-space:nowrap}.badge{white-space:nowrap}
.redirect-health{display:flex;align-items:center;gap:8px;font-size:10px;color:#8fa0af}.redirect-health .dot{width:7px;height:7px;border-radius:50%;background:var(--green)}

@media(max-width:1050px){.form-grid{grid-template-columns:1fr}.page-header{align-items:flex-start}.page-actions{max-width:45%}.stats-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.content{padding:15px 11px 30px}.page-header{flex-direction:column;align-items:stretch}.page-heading h1{font-size:21px}.page-actions{max-width:none;width:100%}.page-actions .btn{flex:1}.stats-grid{grid-template-columns:1fr 1fr}.filter-bar{grid-template-columns:1fr}.editor-shell{max-width:none}.page-section{padding:15px}.sticky-form-actions{bottom:5px}.toast{top:72px;left:12px}.data-table{min-width:680px}.nav-group-title{padding-right:12px}}
@media(max-width:520px){.stats-grid{grid-template-columns:1fr}.page-actions{display:grid;grid-template-columns:1fr 1fr}.page-actions .btn:first-child:last-child{grid-column:1/-1}.grid-form{grid-template-columns:1fr}.sticky-form-actions{display:grid;grid-template-columns:1fr 1fr}.sticky-form-actions .btn{min-width:0}.page-breadcrumb{font-size:9px}}

/* V8 exchange route presentation */
.route-cell{display:flex;align-items:center;gap:10px;min-width:290px}.route-end{display:flex;align-items:center;gap:8px;min-width:0}.route-end>div{display:flex;flex-direction:column;min-width:0}.route-end b{white-space:nowrap}.route-end small{color:var(--muted);font-size:11px}.route-logo{width:30px;height:30px;border-radius:9px;object-fit:cover;background:var(--surface-2);border:1px solid var(--border)}.route-emoji{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:var(--surface-2);font-size:17px;border:1px solid var(--border)}.route-cell>[data-lucide]{width:16px;height:16px;color:var(--muted);flex:none}.rate-pill{display:inline-flex;padding:8px 10px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);direction:ltr;white-space:nowrap}.badge-link{text-decoration:none}.test-mode-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;margin:0 0 14px;border:1px solid color-mix(in srgb,#f59e0b 35%,var(--border));border-radius:12px;background:color-mix(in srgb,#f59e0b 8%,var(--surface));font-size:13px}.test-mode-bar>div,.test-mode-bar form{display:flex;align-items:center;gap:9px}.test-mode-bar [data-lucide]{width:18px;height:18px;color:#f59e0b}.test-mode-bar form{margin:0;flex:none}
@media(max-width:760px){.test-mode-bar{align-items:flex-start;flex-direction:column}.test-mode-bar form{width:100%;flex-wrap:wrap}.route-cell{min-width:235px}.route-logo,.route-emoji{width:28px;height:28px}}

/* V8 system health */
.health-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.health-detail-grid>div{display:flex;flex-direction:column;gap:7px;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2)}.health-detail-grid span{color:var(--muted);font-size:12px}.health-detail-grid code{direction:ltr;text-align:left;overflow-wrap:anywhere}.inline-form{display:flex;gap:10px;align-items:center}
@media(max-width:760px){.health-detail-grid{grid-template-columns:1fr}}
.pair-live-preview{margin-top:14px;padding:14px 16px;border:1px solid color-mix(in srgb,var(--accent) 35%,var(--border));border-radius:13px;background:color-mix(in srgb,var(--accent) 6%,var(--surface-2));display:flex;flex-direction:column;gap:5px}.pair-live-preview span,.pair-live-preview small{color:var(--muted);font-size:12px}.pair-live-preview strong{font-size:17px;direction:ltr;text-align:right}
