:root{font-family:Inter,ui-sans-serif,system-ui,Arial;color:#172033;background:#f7f9fc}*{box-sizing:border-box}body{margin:0}nav{height:76px;padding:0 max(6vw,24px);display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #e8edf4}nav a{color:#526078;text-decoration:none;margin-left:22px;font-size:14px}.brand{font-weight:900;font-size:20px!important;color:#15213a;margin:0}.brand span{color:#4778e6}.navbtn,.button,button{background:#4778e6;color:white!important;border:0;border-radius:10px;padding:12px 18px;text-decoration:none;font-weight:700;cursor:pointer}.navbtn{margin-left:18px}.hero{max-width:1100px;margin:85px auto 70px;padding:0 28px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:800;color:#4778e6}.hero h1{font-size:clamp(44px,7vw,76px);line-height:1.04;letter-spacing:-3px;margin:20px 0}.hero h1 em{font-style:normal;color:#4778e6}.hero p{max-width:620px;color:#68758b;font-size:18px;line-height:1.7}.actions{display:flex;gap:12px;margin-top:28px}.button.secondary,button.secondary{background:#eaf0fb;color:#34558f!important}.stats{display:flex;gap:55px;margin-top:70px;flex-wrap:wrap}.stats div{display:grid;gap:7px}.stats small,.muted{color:#8290a5}.features{max-width:1100px;margin:0 auto 90px;padding:0 28px;display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.features article,.balance,.auth,.orderform{background:white;border:1px solid #e8edf4;border-radius:16px;padding:25px}.features p{color:#78859a;line-height:1.6}.auth{max-width:440px;margin:75px auto}.auth form,.orderform{display:grid;gap:12px}.auth input,.orderform input,.orderform select{width:100%;padding:13px;border:1px solid #dce3ee;border-radius:9px;background:#fff}.auth label,.orderform label{font-size:13px;font-weight:700;color:#59677d}.auth button,.orderform button{margin-top:10px}.dashhead{display:flex;justify-content:space-between;align-items:center;margin:45px 0 25px}.dashhead h1{margin:8px 0}.balance{background:#edf3ff;margin-bottom:35px}.balance strong{display:block;font-size:36px;margin:8px 0;color:#315fbd}.balance p{color:#71809a}.orderform{max-width:650px;margin:15px 0 40px}.tablewrap{overflow:auto;background:white;border:1px solid #e8edf4;border-radius:12px}table{width:100%;border-collapse:collapse;text-align:left}td,th{padding:14px;border-bottom:1px solid #edf0f5}th{color:#78859a;font-size:12px}main{max-width:1100px;margin:auto;padding:0 28px 60px}footer{text-align:center;padding:30px;color:#98a2b3;font-size:12px}@media(max-width:700px){nav{padding:0 16px}nav a{margin-left:10px}.features{grid-template-columns:1fr}.stats{gap:24px}.hero{margin-top:55px}.dashhead{align-items:flex-start;gap:12px}}

/* ===== 3IU CUSTOMER DASHBOARD ===== */
body:has(.dashboard-shell){background:#f3f5f9;color:#172033}
body:has(.dashboard-shell)>nav{display:none}
body:has(.dashboard-shell)>main{max-width:none;margin:0;padding:0}
body:has(.dashboard-shell)>footer{display:none}

.dashboard-shell{height:100vh;min-height:0;display:grid;grid-template-columns:250px minmax(0,1fr);overflow:hidden}
.dashboard-sidebar{position:fixed;top:0;left:0;bottom:0;width:250px;background:#17243a;color:#fff;padding:27px 18px;display:flex;flex-direction:column;height:100vh;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.dashboard-sidebar::-webkit-scrollbar{width:5px}
.dashboard-sidebar::-webkit-scrollbar-thumb{background:#3a4b65;border-radius:5px}
.dashboard-brand{display:flex;align-items:center;gap:11px;color:#fff;text-decoration:none;font-size:19px;font-weight:900;padding:5px 8px 35px}
.dashboard-brand small{display:block;color:#9eacc1;font-size:9px;letter-spacing:2px;margin-top:3px}
.brand-mark{width:36px;height:36px;border-radius:11px;background:#4778e6;display:grid;place-items:center;color:white;font-size:22px}
.sidebar-caption{font-size:10px;letter-spacing:1.5px;color:#8292aa;font-weight:800;padding:13px 10px}
.sidebar-link{display:flex;align-items:center;gap:13px;padding:12px 13px;margin:3px 0;border-radius:9px;color:#b9c5d6;text-decoration:none;font-size:13px;transition:.2s}
.sidebar-link span{width:19px;text-align:center;font-size:17px}
.sidebar-link:hover,.sidebar-link.active{background:#293b58;color:white}
.sidebar-link.active{box-shadow:inset 3px 0 #6190ff}
.sidebar-bottom{margin-top:auto}
.sidebar-user{display:flex;align-items:center;gap:10px;padding:13px 8px;min-width:0}
.user-avatar{width:35px;height:35px;flex-shrink:0;border-radius:50%;background:#344c70;display:grid;place-items:center;color:white;font-weight:800}
.sidebar-user-info{min-width:0;display:grid;gap:4px}
.sidebar-user-info strong{font-size:11px;overflow-wrap:anywhere;color:#fff}
.sidebar-user-info small{font-size:10px;color:#9eacc1}
.sidebar-logout{width:100%;text-align:left;background:transparent!important;color:#bdc9d9!important;border:1px solid #3a4b65!important;padding:10px 12px!important;border-radius:8px!important;font-size:12px}
.sidebar-logout:hover{background:#293b58!important}
.dashboard-main{grid-column:2;padding:30px clamp(20px,4vw,55px);min-width:0;max-width:1600px;width:100%;height:100vh;margin:0;overflow-y:auto;overscroll-behavior:contain}
.dashboard-topbar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-bottom:23px;border-bottom:1px solid #e5e9f0}
.dashboard-breadcrumb{font-size:11px;color:#8995a7;margin-bottom:8px}
.dashboard-topbar h1{font-size:25px;margin:0;color:#18243a}
.dashboard-top-actions{display:flex;gap:5px;background:#e9edf4;padding:4px;border-radius:9px}
.dashboard-top-actions a{padding:7px 11px;text-decoration:none;font-size:11px;color:#69768a;border-radius:6px}
.dashboard-top-actions a.selected{background:#fff;color:#315fbd;box-shadow:0 1px 4px #18243a12}
.dashboard-welcome{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:27px 0}
.dashboard-welcome h2{font-size:20px;margin:0 0 7px}
.dashboard-welcome p,.panel-heading p{font-size:12px;color:#8995a7;margin:0}
.dashboard-primary-link{background:#4778e6;color:white;text-decoration:none;padding:11px 16px;border-radius:8px;font-size:12px;font-weight:700;white-space:nowrap}
.dashboard-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:23px}
.dashboard-stat-card,.dashboard-panel{background:#fff;border:1px solid #e8ecf2;border-radius:13px;box-shadow:0 3px 12px #17243a06}
.dashboard-stat-card{padding:19px;min-width:0}
.stat-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;font-size:17px;font-weight:800;margin-bottom:15px}
.wallet-icon{background:#eaf1ff;color:#4778e6}
.service-icon{background:#e7f7f0;color:#24976c}
.order-icon{background:#fff3e5;color:#d98a32}
.account-icon{background:#f1eafe;color:#8757bd}
.stat-label{font-size:11px;color:#8490a2}
.stat-value{font-size:25px;font-weight:800;color:#19263d;margin:7px 0}
.stat-role{font-size:20px}
.stat-note{font-size:10px;color:#a1aab8}
.dashboard-panel{padding:23px;margin-bottom:22px}
.panel-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}
.panel-heading h2{font-size:16px;margin:0 0 7px}
.dashboard-order-form{display:grid;gap:17px}
.dashboard-form-field{display:grid;gap:8px}
.dashboard-form-field label{font-size:12px;font-weight:700;color:#536178}
.dashboard-form-field input,.dashboard-form-field select{width:100%;min-height:43px;padding:11px 13px;border:1px solid #dfe5ed;border-radius:8px;background:#fff;color:#26344a;font:inherit;font-size:13px}
.dashboard-form-field input:focus,.dashboard-form-field select:focus{outline:2px solid #dce7ff;border-color:#7c9ee8}
.dashboard-form-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-top:5px}
.dashboard-form-actions p{font-size:11px;color:#929dad;margin:0}
.dashboard-form-actions button{font-size:12px;padding:12px 19px}
.dashboard-table-wrap{overflow-x:auto}
.dashboard-table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}
.dashboard-table th{background:#f8f9fb;color:#8290a3;font-size:10px;font-weight:700}
.dashboard-table td,.dashboard-table th{padding:14px 13px;border-bottom:1px solid #edf0f4}
.dashboard-table td{font-size:12px;color:#536178}
.dashboard-table tr:last-child td{border-bottom:0}
.dashboard-table .order-id{color:#315fbd;font-weight:800}
.order-status{display:inline-block;background:#fff4df;color:#b7791f;padding:5px 9px;border-radius:20px;font-size:10px}
.dashboard-empty{text-align:center!important;color:#9aa5b5!important;padding:28px!important}
.dashboard-footer{text-align:center;color:#a2acba;font-size:10px;padding:12px 0 5px}

@media(max-width:1050px){
.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard-shell{grid-template-columns:215px minmax(0,1fr)}
.dashboard-sidebar{width:215px}
}
@media(max-width:700px){
.dashboard-shell{height:auto;min-height:100vh;display:grid;grid-template-columns:1fr;overflow:visible}
.dashboard-sidebar{position:static;width:auto;height:auto;min-height:auto;padding:13px 14px;overflow:visible}
.dashboard-brand{padding:3px 5px 12px}
.sidebar-caption,.sidebar-bottom{display:none}
.dashboard-sidebar>.sidebar-link{display:inline-flex;margin:2px;padding:9px 10px}
.dashboard-main{grid-column:1;height:auto;min-height:0;overflow:visible;padding:20px 14px}
.dashboard-topbar h1{font-size:21px}
.dashboard-welcome{align-items:flex-start;flex-direction:column}
.dashboard-stats{gap:9px}
.dashboard-stat-card{padding:13px}
.stat-value{font-size:21px}
.dashboard-panel{padding:16px}
.dashboard-form-actions{align-items:stretch;flex-direction:column}
.dashboard-form-actions button{width:100%}
}

/* Telegram customer support in sidebar */
body:has(.dashboard-shell) .telegram-support{display:none}
.sidebar-support-slot{flex:1;min-height:140px;display:flex;align-items:center;justify-content:center}
.sidebar-telegram-support{position:relative;width:58px;height:58px;flex-shrink:0;border-radius:50%;background:#229ED9;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 16px #0003;transition:transform .2s}
.sidebar-telegram-support:hover{transform:scale(1.09)}
.sidebar-telegram-support svg{width:32px;height:32px;fill:#fff}
.sidebar-telegram-support:hover:after{content:attr(data-tooltip);position:absolute;left:70px;top:50%;transform:translateY(-50%);width:max-content;max-width:230px;padding:10px 12px;border-radius:8px;background:#fff;color:#17243a;font-size:12px;line-height:1.5;box-shadow:0 4px 18px #0003;z-index:10000}
@media(max-width:700px){.sidebar-support-slot{display:none}body:has(.dashboard-shell) .telegram-support{display:flex}}

/* Independent customer workspace pages */
body:has(.dashboard-shell[data-page="new-order"]) .dashboard-welcome,body:has(.dashboard-shell[data-page="new-order"]) .dashboard-stats,body:has(.dashboard-shell[data-page="new-order"]) #service-catalog,body:has(.dashboard-shell[data-page="new-order"]) .orders-panel{display:none!important}
body:has(.dashboard-shell[data-page="orders"]) .dashboard-welcome,body:has(.dashboard-shell[data-page="orders"]) .dashboard-stats,body:has(.dashboard-shell[data-page="orders"]) #new-order,body:has(.dashboard-shell[data-page="orders"]) #service-catalog{display:none!important}
body:has(.dashboard-shell[data-page="services"]) .dashboard-welcome,body:has(.dashboard-shell[data-page="services"]) .dashboard-stats,body:has(.dashboard-shell[data-page="services"]) #new-order,body:has(.dashboard-shell[data-page="services"]) .orders-panel{display:none!important}
