/* Trading console v25.8. Deliberately different shell, section hierarchy and responsive navigation. */
:root{--ui-bg:#f0f3f8;--ui-sidebar:#0b1223;--ui-side-deep:#0f1930;--ui-accent:#3164e8;--ui-accent-dark:#1d4ed8;--ui-line:#e5eaf2;--ui-ink:#101e35;--ui-muted:#77859b;--ui-shadow:0 3px 13px #1d36580b;--ui-radius:13px}
body{background:#f0f3f8!important}
.shell{grid-template-columns:230px minmax(0,1fr)!important;background:#f0f3f8!important}
.nav{background:#0b1223!important;border-right:1px solid #1b2640!important;padding:26px 13px!important;gap:3px!important}
.nav h2{color:#fff!important;font-size:14px!important;letter-spacing:.115em!important;margin-bottom:21px!important;border-bottom-color:#263248!important}
.nav h2 svg{background:linear-gradient(145deg,#5382ff,#2748bd)!important;stroke:white!important;box-shadow:none!important;border-radius:12px!important}
.nav button,.nav a{border-radius:8px!important;min-height:45px!important;color:#9babca!important;padding:12px 13px!important;font-size:12px!important;letter-spacing:.005em;transition:background .16s ease}
.nav button.active{background:#243c6f!important;color:#fff!important;border-color:#2e518f!important;box-shadow:inset 3px 0 0 #6c9fff!important}
.nav button.active svg{color:#a4c2ff!important}
.nav button:hover,.nav a:hover{background:#1b2b49!important;color:#fff!important}
.nav a[href="./"]{margin-top:22px!important}
.main{padding:28px clamp(17px,3vw,43px)!important;background:linear-gradient(140deg,#f3f6fb,#edf1f8)!important;min-width:0!important}
.main-head{padding:0 0 22px!important;margin-bottom:25px!important;align-items:center!important;border-bottom:1px solid #dee5ee!important}
.main-head h1{font-size:clamp(24px,2.1vw,30px)!important;color:#12233b!important;letter-spacing:-.045em!important}
.main-head .eyebrow{color:#4575d9!important;letter-spacing:.2em!important}
.main-head .sub{color:#748399!important}
.head-actions{display:flex!important;gap:9px!important;align-items:center!important;flex-wrap:wrap}
.admin-head-language{display:flex;align-items:center;gap:6px;border:1px solid #dee5ee;border-radius:9px;background:#fff;padding:0 9px;height:36px;color:#61748c}
.admin-head-language svg{width:15px;height:15px;stroke-width:1.7}
.admin-head-language select{border:0!important;background:transparent!important;box-shadow:none!important;color:#243952!important;font-size:11px!important;height:33px!important;min-width:44px;cursor:pointer}
.metrics{grid-template-columns:repeat(auto-fit,minmax(152px,1fr))!important;gap:12px!important}
.metric{background:white!important;border:1px solid #e2e8f1!important;border-radius:12px!important;box-shadow:0 3px 10px #1e40600a!important;padding:17px 16px!important}
.metric:before{content:'';position:absolute;left:0;top:17px;bottom:17px;border-radius:0 4px 4px 0;width:3px;background:#5586f4}
.metric:after{border-radius:9px!important;background:#f0f5ff!important;border:0!important}
.metric:nth-child(2):before{background:#1cbd93}.metric:nth-child(3):before{background:#f5a943}.metric:nth-child(4):before{background:#9b84f3}
.metric span{color:#748399!important;font-weight:600!important;font-size:11px!important}
.metric strong{color:#102139!important;font-size:clamp(20px,1.8vw,25px)!important;margin-top:17px!important}
.panel,.account-detail,.profile-card{background:#fff!important;border-color:#e1e7ef!important;border-radius:12px!important;box-shadow:0 3px 11px #10294b09!important}
.panel{padding:20px!important;margin-bottom:18px!important;overflow:hidden!important}
.panel .split-head{padding-bottom:12px;margin-bottom:17px;border-bottom:1px solid #edf0f5}
.panel h2,.profile-card h3{color:#172a45!important;font-size:16px!important}
.btn{border-color:#dee6ef!important;border-radius:8px!important;background:#fff!important;color:#344963!important;min-height:34px!important;box-shadow:none!important}
.btn.primary{background:#3164e8!important;border-color:#3164e8!important;color:#fff!important;box-shadow:0 3px 8px #3062d324!important}
.btn.primary:hover{background:#1d4ed8!important}
.table-wrap{border-color:#e5eaf1!important;border-radius:10px!important}
th{background:#f7f9fc!important;color:#728098!important;text-transform:uppercase;font-size:10px!important;letter-spacing:.045em!important;padding:12px!important}
td{padding:12px!important;color:#243952!important}
tbody tr:hover td{background:#f4f8ff!important}
.field input,.field select,.trade-filter-controls input,.margin-form input{background:#fff!important;border-color:#dce5f0!important;border-radius:8px!important;color:#172c46!important}
.field input:focus,.field select:focus{border-color:#3874ef!important;outline:3px solid #4474f31f!important}
.chip{border-radius:5px!important}
.tabbuttons button.active{background:#eaf1ff!important;color:#235be4!important;border-bottom-color:#3164e8!important}
.trade-filter-controls{background:#f8faff!important;border:1px solid #e5ebf3!important;border-radius:10px!important}
.admin-trade-id strong{color:#1e4dcc!important}
.profile-metrics>div{background:#f4f7fc!important}
.margin-example-head{background:#eef4ff!important}
/* New settings screen */
.settings-hero{display:flex;align-items:center;gap:17px;background:#102348;padding:21px 24px;color:white;border-radius:13px;margin-bottom:14px;box-shadow:0 10px 30px #16295716}
.settings-hero-icon{display:grid;place-items:center;border:1px solid #54668b;background:#254578;border-radius:12px;width:51px;height:51px;flex:none}
.settings-hero-icon svg{width:24px;height:24px;stroke-width:1.7}
.settings-hero .eyebrow{color:#a6c4ff!important;font-size:9px}
.settings-hero h2{font-size:21px;font-weight:750;letter-spacing:-.035em;margin:3px 0 5px;color:white}
.settings-hero p{color:#b3c4da;font-size:12px;margin:0;line-height:1.5}
.platform-settings-form{background:#fff;border:1px solid #e2e8f1;border-radius:13px;overflow:hidden;box-shadow:0 3px 13px #10294b09}
.setting-option{display:flex;align-items:center;gap:15px;padding:25px 23px;border-bottom:1px solid #edf1f7}
.setting-option-icon{width:41px;height:41px;flex:0 0 41px;display:grid;place-items:center;background:#edf3ff;color:#3269e6;border-radius:10px}
.setting-option-icon svg{width:22px;height:22px;stroke-width:1.7}
.setting-option-copy{flex:1;min-width:0}.setting-option-copy strong{display:block;font-size:13px;color:#172942;font-weight:750}
.setting-option-copy p{font-size:11px;line-height:1.7;color:#748398;margin:6px 0 0;max-width:670px}
.admin-switch{position:relative;width:42px;height:24px;flex:0 0 42px;cursor:pointer}
.admin-switch input{opacity:0;width:100%;height:100%;position:absolute;inset:0;z-index:1;cursor:pointer}
.switch-slider{display:block;width:42px;height:24px;background:#bec8d6;border-radius:30px;transition:background .16s}
.switch-slider:after{content:'';position:absolute;top:3px;left:3px;width:18px;height:18px;background:#fff;border-radius:50%;box-shadow:0 1px 3px #0002;transition:transform .16s}
.admin-switch input:checked+.switch-slider{background:#3067e9}
.admin-switch input:checked+.switch-slider:after{transform:translateX(18px)}
.admin-switch input:focus-visible+.switch-slider{outline:3px solid #90b2ff;outline-offset:3px}
.admin-switch input:disabled+.switch-slider{opacity:.5;cursor:not-allowed}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
.settings-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 23px;background:#fafcff}
#platform-settings-feedback{font-size:11px;color:#607186;line-height:1.5}
/* Login page rebuilt as a split-layout sign in screen */
#login-box{min-height:100dvh;display:flex!important;align-items:center;justify-content:center;padding:22px!important;background:radial-gradient(circle at 65% 20%,#dfeaff 0%,transparent 40%),#f0f4fa!important}
#login-box.hidden{display:none!important}
.admin-login-shell{display:grid;grid-template-columns:minmax(300px,1fr) minmax(350px,440px);max-width:940px;width:100%;min-height:510px;background:white;border:1px solid #e3eaf4;border-radius:18px;overflow:hidden;box-shadow:0 25px 75px #20324f20}
.admin-login-aside{background:linear-gradient(153deg,#0a1732 0%,#142d5d 65%,#183a78 100%);color:#fff;padding:37px 36px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}
.admin-login-aside:after{content:'';pointer-events:none;position:absolute;right:-130px;bottom:25px;width:390px;height:390px;border:1px solid #ffffff1c;border-radius:50%;box-shadow:0 0 0 65px #ffffff08,0 0 0 130px #ffffff05}
.admin-login-symbol{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:#ffffff18;border:1px solid #ffffff30}
.admin-login-symbol svg{width:32px;height:32px;color:#92c5ff}
.admin-login-kicker{font-size:10px;letter-spacing:.21em;color:#9cc3fc;font-weight:800}
.admin-login-aside-copy{position:relative;z-index:1;max-width:350px}
.admin-login-aside h1{font-size:clamp(31px,3.6vw,42px);line-height:1.15;letter-spacing:-.055em;font-weight:800;margin:12px 0 16px;color:#fff}
.admin-login-aside p{font-size:13px;line-height:1.8;color:#b8c8e3}
.admin-login-aside-footer{font-size:9px;letter-spacing:.14em;font-weight:700;color:#8da7d0;position:relative;z-index:1}
.admin-login-forms{padding:28px 38px;display:flex;flex-direction:column;justify-content:center}
.admin-login-form-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:34px}
.admin-login-form-head>span{font-weight:850;letter-spacing:.07em;font-size:13px;color:#183456}
.admin-lang-select{display:flex;align-items:center;gap:7px;font-size:10px;color:#6b7990}
.admin-lang-select select{padding:7px 8px;height:32px;border-radius:7px;background:#f7f9fc!important;color:#263c56;border:1px solid #e1e7f0}
#login-box .modal{max-width:none!important;width:100%!important;box-shadow:none!important;border:0!important;border-radius:0!important;background:transparent!important;padding:0!important;margin:0!important}
#login-box .modal h2{font-size:25px!important;letter-spacing:-.045em;color:#11233c!important;margin:0 0 8px;font-weight:790}
#login-box .modal p{color:#73839a!important;font-size:12px;line-height:1.65;margin-bottom:21px}
#login-box .form-grid{display:grid;grid-template-columns:1fr;gap:13px}
#login-box .field{font-size:11px!important;color:#415773!important}
#login-box input{width:100%!important;height:44px!important;background:#fff!important;border:1px solid #dce4ef!important;border-radius:8px!important;color:#183047!important;font-size:13px!important;margin-top:5px;padding:10px 12px!important}
#login-box input:focus{border-color:#417bf0!important;outline:3px solid #407bfa23}
#login-box .actions{margin-top:23px}
#login-box .actions button{width:100%;height:43px;font-size:13px!important;border-radius:8px!important}
#login-error,#password-error{color:#c23e52!important;font-size:11px!important;min-height:16px}
@media(max-width:1020px){.shell{grid-template-columns:215px minmax(0,1fr)!important}.nav{padding:21px 11px!important}.main{padding:22px 20px!important}}
@media(max-width:850px){.shell{display:block!important}.nav{position:fixed!important;top:0!important;left:0!important;bottom:0!important;width:min(270px,84vw)!important;display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;padding:22px 13px!important;overflow-y:auto!important;z-index:1000!important}.nav h2{width:auto!important;padding:11px 9px 20px!important}.nav button,.nav a{width:100%!important;min-height:43px!important;padding:12px 13px!important}.nav small{display:block!important}.main{padding:18px 14px 40px!important}.main-head{align-items:flex-start!important}.head-actions{gap:7px!important}.admin-head-language{height:34px}.settings-hero{padding:17px}.setting-option{padding:20px 16px}}
@media(max-width:660px){.admin-login-shell{grid-template-columns:minmax(0,1fr);max-width:430px;min-height:0}.admin-login-aside{display:none}.admin-login-forms{padding:27px 24px 33px;min-height:420px}.admin-login-form-head{margin-bottom:28px}.main-head{gap:12px!important;flex-wrap:wrap}.main-head>div:nth-child(2){flex:1 1 65%}.head-actions{flex:1 1 100%;justify-content:flex-start}.metric{padding:13px!important}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}.metric:after{width:22px;height:22px}.panel{padding:13px!important}.setting-option{gap:11px;align-items:flex-start}.setting-option-icon{width:33px;height:33px;flex-basis:33px}.setting-option-icon svg{width:18px;height:18px}.setting-option-copy strong{font-size:12px}.setting-option-copy p{font-size:10px}.settings-hero h2{font-size:17px}.settings-footer{align-items:stretch;flex-direction:column}.settings-footer button{width:100%}}
