/* XShopDigital Hosting Manager v0.6.0
   Approved brand palette:
   Alabaster Grey #D9D9D9
   Racing Red     #DD0200
   Black Cherry   #55100D
   Coffee Bean    #1A0706
*/
:root{
    --alabaster:#D9D9D9;
    --red:#DD0200;
    --cherry:#55100D;
    --coffee:#1A0706;
    --white:#fff;
    --page:#f6f4f4;
    --surface:#ffffff;
    --surface-soft:#faf8f8;
    --border:#e6dfdf;
    --muted:#766b6a;
    --green:#169b55;
    --green-soft:#e8f7ef;
    --danger-soft:#fff0f0;
    --shadow:0 14px 34px rgba(26,7,6,.07);
    --shadow-soft:0 8px 24px rgba(26,7,6,.05);
    --radius:18px;
    --radius-sm:12px;
    --sidebar:250px;
    --font:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}
*{box-sizing:border-box}
html{background:var(--page)}
body{margin:0;font-family:var(--font);color:var(--coffee);background:var(--page);font-size:14px}
a{color:var(--red);text-decoration:none}
button,input,select{font:inherit}
button,a,input,select{outline-color:var(--red)}
svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.app-shell{min-height:100vh;display:grid;grid-template-columns:var(--sidebar) 1fr}
.sidebar{position:sticky;top:0;height:100vh;background:rgba(255,255,255,.96);border-right:1px solid var(--border);padding:24px 16px;display:flex;flex-direction:column;z-index:50;backdrop-filter:blur(12px)}
.brand-lockup{display:flex;align-items:center;gap:12px;color:var(--coffee);margin:0 8px 24px}
.brand-lockup.large{margin:0}
.brand-mark{width:38px;height:38px;border-radius:12px;background:linear-gradient(145deg,var(--red),var(--cherry));color:#fff;display:grid;place-items:center;font-weight:900;font-size:24px;box-shadow:0 8px 20px rgba(221,2,0,.18)}
.brand-lockup strong{display:block;color:var(--red);font-size:19px;line-height:1}
.brand-lockup span{display:block;color:var(--muted);font-size:12px;margin-top:5px}
.sidebar-nav{display:flex;flex-direction:column;gap:4px;overflow:auto;padding-right:2px}
.nav-link{display:flex;align-items:center;gap:12px;color:var(--coffee);padding:10px 12px;border-radius:12px;font-weight:600}
.nav-link svg{color:var(--cherry);width:18px;height:18px}
.nav-link:hover{background:#f8efef;color:var(--red)}
.nav-link.active{background:linear-gradient(90deg,#fff0f0,#faeeee);color:var(--red);box-shadow:inset 3px 0 0 var(--red)}
.nav-link.active svg{color:var(--red)}
.sidebar-help{margin-top:auto;background:linear-gradient(145deg,#fff,#fbf6f6);border:1px solid var(--border);border-radius:16px;padding:16px;box-shadow:var(--shadow-soft)}
.sidebar-help-icon{width:38px;height:38px;border-radius:50%;background:#f6e8e8;color:var(--cherry);display:grid;place-items:center;margin-bottom:10px}
.sidebar-help strong{display:block;margin-bottom:6px}
.sidebar-help p{margin:0 0 10px;color:var(--muted);line-height:1.5;font-size:12px}
.version-badge{display:inline-flex;align-items:center;padding:6px 9px;border-radius:999px;background:#f5e8e8;color:var(--cherry);font-weight:800;font-size:12px}
.main-column{min-width:0;display:flex;flex-direction:column}
.topbar{height:78px;background:rgba(255,255,255,.9);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:40;backdrop-filter:blur(12px)}
.global-search{width:min(490px,45vw);height:44px;background:#fff;border:1px solid var(--border);border-radius:12px;display:flex;align-items:center;gap:10px;padding:0 13px;box-shadow:var(--shadow-soft)}
.global-search span{font-size:24px;color:var(--cherry);transform:rotate(-18deg)}
.global-search input{border:0;background:transparent;flex:1;color:var(--muted)}
.global-search kbd{background:#f5f2f2;border:1px solid var(--border);padding:3px 6px;border-radius:6px;color:var(--muted)}
.topbar-actions{display:flex;align-items:center;gap:12px}
.icon-button{position:relative;width:42px;height:42px;display:grid;place-items:center;color:var(--cherry);border-radius:12px}
.icon-button:hover{background:#f8efef}
.notification-dot{position:absolute;top:2px;right:0;background:var(--red);color:white;font-size:9px;min-width:17px;height:17px;padding:0 4px;border-radius:99px;display:grid;place-items:center}
.profile-chip{display:flex;align-items:center;gap:10px;padding-left:4px}
.profile-chip strong{display:block;font-size:13px}
.profile-chip span{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.avatar{width:38px;height:38px;border-radius:50%;background:var(--cherry);color:#fff;display:grid;place-items:center;font-weight:800}
.avatar.large{width:48px;height:48px}
.link-button{border:0;background:transparent;color:var(--muted);cursor:pointer;padding:8px}
.link-button:hover{color:var(--red)}
.mobile-menu{display:none;border:0;background:#fff;color:var(--cherry);width:40px;height:40px;border-radius:10px}
.content{padding:30px 28px 18px;flex:1}
.app-footer{text-align:center;color:#978c8b;padding:12px 20px 24px;font-size:12px}
.page-heading-row{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}
.page-heading-row h1{font-size:30px;letter-spacing:-.03em;margin:4px 0 4px}
.page-heading-row p{margin:0;color:var(--muted)}
.eyebrow{text-transform:uppercase;letter-spacing:.11em;font-size:10px;font-weight:900;color:var(--red)}
.eyebrow.light{color:#fff}
.date-chip,.panel-pill{border:1px solid var(--border);background:#fff;color:var(--cherry);padding:9px 12px;border-radius:10px;font-weight:700;font-size:12px;box-shadow:var(--shadow-soft)}
.kpi-grid{display:grid;gap:14px;margin-bottom:18px}
.admin-kpis{grid-template-columns:repeat(6,minmax(0,1fr))}
.customer-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
.kpi-card{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:16px;box-shadow:var(--shadow-soft);min-width:0;position:relative;overflow:hidden}
.kpi-card:before{content:"";position:absolute;inset:0 auto auto 0;width:100%;height:3px;background:linear-gradient(90deg,var(--red),var(--cherry));opacity:.65}
.kpi-top{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12px}
.kpi-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#f8ebeb;color:var(--cherry)}
.kpi-value{font-size:27px;display:block;margin:13px 0 5px;letter-spacing:-.03em}
.kpi-card p{margin:0;color:var(--muted);font-size:11px}
.kpi-card a{font-size:12px;font-weight:800}
.mini-line{height:18px;margin-top:10px;background:
    linear-gradient(165deg,transparent 0 32%,rgba(221,2,0,.62) 33% 36%,transparent 37% 46%,rgba(85,16,13,.75) 47% 50%,transparent 51% 59%,rgba(221,2,0,.55) 60% 63%,transparent 64%);
    opacity:.55}
.panel{background:var(--surface);border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow-soft);padding:16px;min-width:0}
.panel-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.panel-header>div{display:flex;align-items:center;gap:9px}
.panel-header strong{font-size:14px}
.panel-header a{font-size:11px;font-weight:800}
.panel-icon{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--cherry);color:#fff;font-size:12px}
.dashboard-grid{display:grid;gap:14px;margin-bottom:14px}
.dashboard-grid.two-wide{grid-template-columns:1.15fr .85fr}
.dashboard-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.dashboard-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.empty-chart{height:230px;position:relative;border-radius:14px;overflow:hidden;background:linear-gradient(#fff, #fdfafa)}
.chart-grid{position:absolute;inset:14px;background-image:linear-gradient(#efe7e7 1px,transparent 1px),linear-gradient(90deg,#efe7e7 1px,transparent 1px);background-size:100% 42px,68px 100%;opacity:.9}
.empty-chart:after{content:"";position:absolute;left:5%;right:5%;bottom:36%;height:3px;background:linear-gradient(90deg,var(--cherry),var(--red),var(--cherry));transform:skewY(-4deg);box-shadow:0 0 0 8px rgba(221,2,0,.025)}
.chart-copy{position:absolute;z-index:2;inset:auto auto 22px 22px;background:rgba(255,255,255,.92);border:1px solid var(--border);border-radius:12px;padding:12px 14px;max-width:310px}
.chart-copy strong{display:block;margin-bottom:4px}
.chart-copy p{margin:0;color:var(--muted);font-size:11px;line-height:1.5}
.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--muted);min-height:210px;padding:20px}
.compact-empty{min-height:230px}
.table-empty{min-height:230px}
.empty-state strong{color:var(--coffee);margin:9px 0 5px}
.empty-state p{max-width:380px;margin:0 0 14px;line-height:1.5}
.empty-icon{width:54px;height:54px;border-radius:16px;background:#f7eaea;color:var(--cherry);display:grid;place-items:center}
.empty-icon svg{width:26px;height:26px}
.list-panel{min-height:190px}
.empty-list{min-height:120px;border:1px dashed var(--alabaster);border-radius:12px;display:grid;place-items:center;color:var(--muted);background:#fdfbfb}
.support-ring{display:flex;align-items:center;gap:15px;min-height:120px}
.ring{width:90px;height:90px;border-radius:50%;background:conic-gradient(var(--red) 0 25%,var(--cherry) 25% 58%,#cc8c89 58% 76%,var(--alabaster) 76%);position:relative;display:grid;place-items:center;flex:0 0 auto}
.ring:after{content:"";position:absolute;width:58px;height:58px;background:#fff;border-radius:50%}
.ring span{z-index:1;font-size:22px;font-weight:900}
.support-ring p{margin:4px 0 0;color:var(--muted);font-size:11px}
.activity-row{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-bottom:1px solid #f0ebeb}
.activity-row:last-child{border-bottom:0}
.activity-row strong{display:block;font-size:11px}
.activity-row small{display:block;color:var(--muted);margin-top:3px}
.status-dot{width:9px;height:9px;border-radius:50%;margin-top:3px}
.status-dot.good{background:var(--green)}
.btn{display:inline-flex;align-items:center;justify-content:center;border-radius:10px;padding:10px 14px;font-weight:800;border:1px solid transparent;cursor:pointer}
.btn-primary{background:var(--red);color:#fff;box-shadow:0 8px 18px rgba(221,2,0,.16)}
.btn-primary:hover{background:#c30000;color:#fff}
.btn-secondary{background:#fff;border-color:#cdbdbc;color:var(--cherry)}
.btn-secondary:hover{background:#f9f4f4}
.btn-large{min-height:46px;padding-inline:18px}
.btn.compact{padding:9px 13px;font-size:12px}
.customer-main-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:14px}
.customer-primary{min-width:0}
.customer-side{display:flex;flex-direction:column;gap:14px}
.account-user{display:flex;align-items:center;gap:12px;padding-bottom:14px;border-bottom:1px solid var(--border)}
.account-user strong{display:block}
.account-user span{display:block;color:var(--muted);font-size:11px;margin-top:3px;word-break:break-all}
.summary-stat{padding:15px 0;border-bottom:1px solid var(--border)}
.summary-stat span{display:block;color:var(--muted);font-size:11px}
.summary-stat strong{display:block;color:var(--red);font-size:24px;margin-top:5px}
.summary-list{padding:8px 0 12px}
.summary-list>div{display:flex;justify-content:space-between;padding:5px 0;color:var(--muted);font-size:12px}
.summary-list strong{color:var(--coffee)}
.account-summary .btn{width:100%}
.quick-actions .panel-header{margin-bottom:4px}
.quick-actions>a{display:flex;justify-content:space-between;align-items:center;padding:11px 2px;border-bottom:1px solid var(--border);color:var(--coffee);font-size:12px;font-weight:700}
.quick-actions>a:last-child{border-bottom:0}
.quick-actions>a b{color:var(--red);font-size:18px}
.settings-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:14px}
.settings-card,.palette-card{padding:20px}
.stack-form{display:flex;flex-direction:column;gap:15px}
label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:800;color:var(--cherry)}
input,select{width:100%;height:43px;border:1px solid #d9cecd;border-radius:10px;background:#fff;padding:0 12px;color:var(--coffee)}
input:focus,select:focus{border-color:var(--red);box-shadow:0 0 0 3px rgba(221,2,0,.08)}
.form-grid{display:grid;gap:12px}
.form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.palette-list{display:grid;gap:10px;margin-top:16px}
.palette-list>div{display:flex;align-items:center;gap:12px;border:1px solid var(--border);border-radius:12px;padding:10px}
.palette-list>div>span{width:54px;height:42px;border-radius:9px;border:1px solid rgba(0,0,0,.08)}
.palette-list strong,.palette-list small{display:block}
.palette-list small{color:var(--muted);margin-top:3px}
.milestone-panel{max-width:760px;margin:30px auto;text-align:center;padding:48px}
.milestone-icon{width:78px;height:78px;border-radius:22px;background:#f5e5e5;color:var(--cherry);display:grid;place-items:center;margin:0 auto 18px;font-size:22px;font-weight:900}
.milestone-icon svg{width:34px;height:34px}
.milestone-panel h2,.milestone-panel h1{font-size:28px;margin:7px 0 10px}
.milestone-panel p{max-width:620px;margin:0 auto 20px;color:var(--muted);line-height:1.65}
.notice{padding:12px 14px;border-radius:10px;margin-bottom:14px;border:1px solid}
.notice.success{background:var(--green-soft);border-color:#c9ebd8;color:#0b6c3a}
.notice.error,.notice.danger{background:var(--danger-soft);border-color:#facdcd;color:#a20000}
.notice ul{margin-bottom:0}
.sidebar-overlay{display:none}
.auth-page,.installer-page{min-height:100vh;background:#f3f1f1}
.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(360px,.95fr) minmax(420px,1.05fr)}
.auth-brand-panel{position:relative;padding:54px;background:linear-gradient(145deg,var(--coffee),var(--cherry));color:#fff;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}
.auth-brand-panel:before{content:"";position:absolute;width:500px;height:500px;border-radius:50%;background:radial-gradient(circle,rgba(221,2,0,.7),transparent 65%);right:-240px;bottom:-210px}
.auth-brand-panel .brand-lockup strong{color:#fff}
.auth-brand-panel .brand-lockup span{color:#e7dcdc}
.auth-brand-copy{max-width:600px;position:relative;z-index:1}
.auth-brand-copy h1{font-size:42px;line-height:1.07;letter-spacing:-.04em;margin:8px 0 15px}
.auth-brand-copy p{font-size:15px;line-height:1.7;color:#e7dcdc}
.palette-strip{display:flex;gap:8px;position:relative;z-index:1}
.palette-strip span{height:8px;flex:1;border-radius:99px}
.auth-form-panel{display:grid;place-items:center;padding:36px}
.auth-form-card{width:min(470px,100%);background:#fff;border:1px solid var(--border);border-radius:22px;box-shadow:var(--shadow);padding:32px}
.auth-form-card h2{font-size:28px;margin:5px 0 7px}
.muted{color:var(--muted)}
.auth-meta{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--border);margin-top:20px;padding-top:14px;color:var(--muted);font-size:10px}
.installer-shell{width:min(980px,calc(100% - 30px));margin:0 auto;padding:36px 0 60px}
.installer-brand{display:flex;align-items:center;gap:12px;margin-bottom:22px}
.installer-brand strong{display:block;color:var(--red);font-size:20px}
.installer-brand span{display:block;color:var(--muted);font-size:12px}
.installer-card{background:#fff;border:1px solid var(--border);border-radius:24px;box-shadow:var(--shadow);padding:34px}
.installer-card h1{font-size:34px;letter-spacing:-.04em;margin:7px 0 10px}
.installer-card>p{color:var(--muted);line-height:1.6}
.requirements-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:22px 0}
.requirement{display:flex;align-items:center;gap:9px;padding:10px;border-radius:10px;background:#f7f4f4;font-size:12px}
.requirement span{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:900}
.requirement.ok span{background:var(--green)}
.requirement.bad span{background:var(--red)}
.installer-form{display:flex;flex-direction:column;gap:20px}
.form-section{padding-top:20px;border-top:1px solid var(--border)}
.form-section h2{font-size:18px;margin:0 0 14px}
.form-section>label{margin-top:12px}
.hint{font-size:10px;color:var(--muted);font-weight:500}
code{background:#f4eeee;padding:2px 5px;border-radius:5px}
@media (max-width:1220px){
    .admin-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
    .dashboard-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}
    .customer-main-grid{grid-template-columns:1fr}
    .customer-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:920px){
    .app-shell{display:block}
    .sidebar{position:fixed;left:-270px;top:0;width:250px;transition:left .2s ease}
    .sidebar.open{left:0}
    .sidebar-overlay{position:fixed;inset:0;background:rgba(26,7,6,.35);z-index:45}
    .sidebar-overlay.show{display:block}
    .mobile-menu{display:block}
    .topbar{padding:0 16px;gap:10px}
    .global-search{width:100%;max-width:none}
    .profile-chip,.topbar .btn.compact,.link-button{display:none}
    .content{padding:22px 16px}
    .dashboard-grid.two-wide,.dashboard-grid.two,.settings-layout{grid-template-columns:1fr}
    .auth-shell{grid-template-columns:1fr}
    .auth-brand-panel{min-height:350px;padding:32px}
    .auth-brand-copy h1{font-size:34px}
}
@media (max-width:680px){
    .admin-kpis,.customer-kpis,.dashboard-grid.three,.dashboard-grid.four,.customer-side,.requirements-grid,.form-grid.two{grid-template-columns:1fr}
    .page-heading-row{flex-direction:column}
    .global-search kbd{display:none}
    .topbar-actions{gap:4px}
    .auth-form-panel{padding:18px}
    .auth-form-card{padding:22px}
    .installer-card{padding:22px}
    .installer-card h1{font-size:28px}
}

.swatch-alabaster{background:#D9D9D9!important}.swatch-red{background:#DD0200!important}.swatch-cherry{background:#55100D!important}.swatch-coffee{background:#1A0706!important}


/* v0.2.0 Customers & Customer Management */
.customer-admin-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
.heading-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.customer-directory{padding:0;overflow:hidden}
.directory-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px;border-bottom:1px solid var(--border);background:linear-gradient(180deg,#fff,#fdfbfb)}
.filter-form{display:flex;align-items:center;gap:9px;flex:1;min-width:0}
.filter-search{display:flex;align-items:center;gap:8px;border:1px solid #d9cecd;border-radius:10px;background:#fff;height:42px;padding:0 11px;flex:1;max-width:580px}
.filter-search span{font-size:21px;color:var(--cherry);transform:rotate(-18deg)}
.filter-search input{border:0;height:38px;padding:0;min-width:0}
.filter-form select{width:150px;height:42px}
.text-action{font-size:12px;font-weight:800;white-space:nowrap}
.directory-count{font-size:12px;color:var(--muted);white-space:nowrap}
.data-table-wrap{overflow-x:auto}
.data-table{width:100%;border-collapse:collapse;min-width:980px}
.data-table th{font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);text-align:left;padding:12px 16px;background:#fbf9f9;border-bottom:1px solid var(--border)}
.data-table td{padding:13px 16px;border-bottom:1px solid #f0ebeb;vertical-align:middle;font-size:12px}
.data-table tbody tr:hover{background:#fffafa}
.data-table tbody tr:last-child td{border-bottom:0}
.table-person{display:flex;align-items:center;gap:10px;min-width:250px}
.avatar.small{width:34px;height:34px;font-size:12px;flex:0 0 auto}
.table-person>div span,.table-subline{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.table-primary{display:block;color:var(--coffee);font-weight:900;font-size:12px}
.table-primary:hover{color:var(--red)}
.table-secondary{display:block;font-size:11px}
.actions-col{text-align:right!important}
.status-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:900;text-transform:capitalize}
.status-pill:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.status-pill.active{background:var(--green-soft);color:#0d8345}
.status-pill.suspended{background:var(--danger-soft);color:#b00000}
.pagination{display:flex;justify-content:center;align-items:center;gap:15px;padding:14px 16px;border-top:1px solid var(--border);font-size:11px}
.pagination span{color:var(--muted)}
.pagination a{font-weight:800}
.directory-empty{min-height:330px}
.customer-form{max-width:1060px}
.form-section-card{background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow-soft);padding:20px}
.section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding-bottom:14px;margin-bottom:16px;border-bottom:1px solid var(--border)}
.section-heading h2{font-size:18px;margin:4px 0 0}
.section-note{font-size:10px;color:var(--muted);background:#f6f2f2;border-radius:999px;padding:6px 9px}
.span-two{grid-column:span 2}
textarea{width:100%;border:1px solid #d9cecd;border-radius:10px;background:#fff;padding:12px;color:var(--coffee);font:inherit;resize:vertical;min-height:110px}
textarea:focus{border-color:var(--red);box-shadow:0 0 0 3px rgba(221,2,0,.08);outline:none}
.form-actions{display:flex;justify-content:flex-end;gap:10px;align-items:center}
.sticky-actions{position:sticky;bottom:12px;z-index:10;background:rgba(246,244,244,.94);backdrop-filter:blur(10px);border:1px solid var(--border);border-radius:14px;padding:10px;box-shadow:var(--shadow)}
.customer-profile-heading{align-items:center}
.profile-title-row{display:flex;align-items:center;gap:14px}
.profile-avatar{width:58px!important;height:58px!important;font-size:20px}
.customer-profile-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:14px}
.profile-main,.profile-side{display:flex;flex-direction:column;gap:14px;min-width:0}
.detail-card{padding:20px}
.detail-grid{display:grid;gap:0;border:1px solid var(--border);border-radius:14px;overflow:hidden}
.detail-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.detail-grid>div{padding:14px;border-bottom:1px solid var(--border);background:#fff}
.detail-grid.two>div:nth-child(odd){border-right:1px solid var(--border)}
.detail-grid>div.span-two{grid-column:span 2;border-right:0!important}
.detail-grid>div:nth-last-child(-n+2){border-bottom:0}
.detail-grid>div.span-two:not(:last-child){border-bottom:1px solid var(--border)}
.detail-grid span{display:block;color:var(--muted);font-size:10px;margin-bottom:5px;text-transform:uppercase;letter-spacing:.05em}
.detail-grid strong{display:block;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.profile-stat-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.profile-stat-row>div{background:#fbf8f8;border:1px solid var(--border);border-radius:12px;padding:14px}
.profile-stat-row span{display:block;color:var(--muted);font-size:10px}
.profile-stat-row strong{display:block;font-size:24px;color:var(--cherry);margin-top:5px}
.module-note{margin:13px 0 0;line-height:1.6}
.notes-box{min-height:90px;line-height:1.7;font-size:12px}
.action-card p{font-size:11px;line-height:1.6;margin-top:0}
.full-width{width:100%}
.btn-danger-outline{background:#fff;border-color:#e2aaaa;color:#b00000}
.btn-danger-outline:hover{background:#fff0f0;color:#930000}
.compact-form{gap:10px}
.quick-link-list{display:flex;flex-direction:column}
.quick-link-list a{display:flex;align-items:center;justify-content:space-between;color:var(--coffee);font-weight:700;font-size:11px;padding:10px 0;border-bottom:1px solid var(--border)}
.quick-link-list a:last-child{border-bottom:0}
.quick-link-list a b{color:var(--red);font-size:17px}
.profile-edit-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:14px;align-items:start}
.profile-edit-main{min-width:0}
.profile-edit-side{display:flex;flex-direction:column;gap:14px;position:sticky;top:94px}
.account-identity-card{text-align:center;padding:24px}
.account-identity-card .profile-avatar{margin:0 auto 10px}
.account-identity-card h2{margin:6px 0 3px;font-size:19px}
.account-identity-card>p{margin:0 0 16px;color:var(--muted);font-size:11px;overflow-wrap:anywhere}
.identity-number{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-top:1px solid var(--border);font-size:11px;text-align:left}
.identity-number span{color:var(--muted)}
.security-check-list{display:flex;flex-direction:column;gap:13px;margin-top:17px}
.security-check-list>div{display:flex;gap:10px;align-items:flex-start}
.security-check-list strong,.security-check-list small{display:block}
.security-check-list small{color:var(--muted);font-size:10px;line-height:1.5;margin-top:3px}
.check-circle,.future-circle{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;font-weight:900}
.check-circle{background:var(--green-soft);color:var(--green)}
.future-circle{background:#f5e8e8;color:var(--cherry)}
.update-list{display:flex;flex-direction:column;gap:8px;margin:18px 0}
.update-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid var(--border);border-radius:10px;background:#fbf9f9}
.update-item code{font-size:11px}
.update-status{font-size:10px;font-weight:900;color:var(--cherry)}
@media (max-width:1100px){
    .customer-profile-grid,.profile-edit-layout{grid-template-columns:1fr}
    .profile-edit-side{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
    .customer-admin-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
    .directory-toolbar,.filter-form{align-items:stretch;flex-direction:column}
    .filter-search,.filter-form select{max-width:none;width:100%}
    .directory-count{align-self:flex-start}
    .profile-stat-row{grid-template-columns:repeat(2,minmax(0,1fr))}
    .detail-grid.two{grid-template-columns:1fr}
    .detail-grid.two>div,.detail-grid.two>div:nth-child(odd){border-right:0}
    .detail-grid>div.span-two{grid-column:span 1}
    .detail-grid>div:nth-last-child(-n+2){border-bottom:1px solid var(--border)}
    .detail-grid>div:last-child{border-bottom:0}
    .span-two{grid-column:span 1}
    .profile-edit-side{grid-template-columns:1fr}
}
@media (max-width:560px){
    .customer-admin-kpis,.profile-stat-row{grid-template-columns:1fr}
    .profile-title-row{align-items:flex-start}
    .heading-actions{width:100%}
    .heading-actions .btn,.heading-actions .date-chip{flex:1;text-align:center}
}

/* v0.3.0 Hosting Plans & WHM Servers */
.infrastructure-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
.infrastructure-directory{margin-bottom:14px}
.infrastructure-form{display:flex;flex-direction:column;gap:14px}
.checkbox-row{margin-top:16px;display:flex;flex-direction:row;align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:#fbf8f8;color:var(--coffee)}
.checkbox-row input{width:auto;height:auto;margin-top:3px;accent-color:var(--red)}
.checkbox-row span{display:block}
.checkbox-row strong{display:block;color:var(--coffee);font-size:12px}
.checkbox-row small{display:block;color:var(--muted);font-size:10px;font-weight:500;line-height:1.5;margin-top:3px}
.connection-badge{display:inline-flex;align-items:center;justify-content:center;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:900;white-space:nowrap}
.connection-badge.success{background:var(--green-soft);color:#0d8345}
.connection-badge.failed{background:var(--danger-soft);color:#b00000}
.connection-badge.neutral{background:#f2eeee;color:var(--muted)}
.server-profile-icon{width:58px;height:58px;border-radius:17px;background:linear-gradient(145deg,var(--cherry),var(--coffee));color:#fff;display:grid;place-items:center;box-shadow:0 12px 26px rgba(85,16,13,.16);flex:0 0 auto}
.server-profile-icon svg{width:27px;height:27px}
.plan-profile-icon{background:linear-gradient(145deg,var(--red),var(--cherry))}
.server-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:14px}
.server-summary-card{padding:17px}
.server-summary-card>span{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.06em}
.server-summary-card>strong{display:block;font-size:21px;margin-top:8px;overflow-wrap:anywhere}
.server-summary-card>small{display:block;color:var(--muted);font-size:10px;line-height:1.45;margin-top:4px}
.connection-state.success{color:var(--green)}
.connection-state.failed{color:var(--red)}
.connection-state.neutral{color:var(--cherry)}
.server-workspace-grid{align-items:start}
.server-diagnostics-card{display:flex;flex-direction:column;gap:10px}
.server-diagnostics-card>p{color:var(--muted);font-size:11px;line-height:1.6;margin:0 0 2px}
.server-diagnostics-card form{margin:0}
.diagnostic-message{border:1px solid var(--border);background:#f8f5f5;border-radius:12px;padding:11px 12px;margin-bottom:2px}
.diagnostic-message strong,.diagnostic-message span{display:block}
.diagnostic-message strong{font-size:10px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:4px}
.diagnostic-message span{font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.diagnostic-message.success{background:var(--green-soft);border-color:#c9ebd8;color:#0b6c3a}
.diagnostic-message.failed{background:var(--danger-soft);border-color:#facdcd;color:#a20000}
.security-note{margin-top:4px;padding:12px;border-radius:12px;background:#f7f2f2;border:1px solid var(--border)}
.security-note strong{display:block;font-size:11px;color:var(--cherry)}
.security-note p{margin:4px 0 0!important;font-size:10px!important;line-height:1.5!important}
.infrastructure-list-panel{margin-bottom:14px}
.compact-data-table{min-width:900px}
.package-empty{min-height:90px}
.server-bottom-grid{align-items:start}
.server-bottom-grid .quick-link-list a>span{display:block;min-width:0}
.server-bottom-grid .quick-link-list small{display:block;color:var(--muted);font-size:10px;margin-top:3px;font-weight:500}
.server-bottom-grid .quick-link-list strong{display:block;font-size:11px;color:var(--coffee)}
.integration-note{background:#fff8ed;border-color:#f3d6aa;color:#74501b;margin:14px 0 0}
.resource-summary{display:block;color:var(--muted);font-size:10px;white-space:nowrap}
.resource-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.resource-card-grid>div{border:1px solid var(--border);background:#fbf8f8;border-radius:12px;padding:13px}
.resource-card-grid span{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.05em}
.resource-card-grid strong{display:block;color:var(--coffee);font-size:12px;margin-top:5px;line-height:1.45}
.dashboard-server-list{display:flex;flex-direction:column}
.dashboard-server-row{display:flex;align-items:center;gap:10px;padding:12px 4px;border-bottom:1px solid var(--border);color:var(--coffee)}
.dashboard-server-row:last-child{border-bottom:0}
.dashboard-server-row:hover{background:#fffafa}
.dashboard-server-icon{width:34px;height:34px;border-radius:10px;background:#f7eaea;color:var(--cherry);display:grid;place-items:center;flex:0 0 auto}
.dashboard-server-icon svg{width:17px;height:17px}
.dashboard-server-copy{min-width:0;flex:1}
.dashboard-server-copy strong,.dashboard-server-copy small{display:block}
.dashboard-server-copy strong{font-size:11px;color:var(--coffee)}
.dashboard-server-copy small{color:var(--muted);font-size:9px;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-panel-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--border);padding-top:11px;margin-top:5px;font-size:10px;color:var(--muted)}
.dashboard-panel-footer a{font-weight:800}
.plan-detail-grid{align-items:start}
@media (max-width:1200px){.server-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.infrastructure-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.server-summary-grid,.infrastructure-kpis,.resource-card-grid{grid-template-columns:1fr}.server-profile-icon{width:48px;height:48px}.server-table,.plan-table{min-width:980px}}


/* v0.4.0 Hosting Services */
.status-pill.pending{background:#fff7df;color:#9a6b00}
.status-pill.cancelled{background:#f2eeee;color:#6f6261}
.status-pill.terminated{background:#efe8e8;color:#55100D}
.status-dot.warn{background:#d89500}
.service-table{min-width:1180px}
.service-timeline{display:flex;flex-direction:column}
.service-event{display:flex;gap:11px;padding:12px 2px;border-bottom:1px solid var(--border)}
.service-event:last-child{border-bottom:0}
.service-event>div{min-width:0}
.service-event strong{display:block;font-size:11px}
.service-event p{margin:4px 0;color:var(--muted);font-size:11px;line-height:1.5}
.service-event small{color:#948887;font-size:10px}
.service-customer-link{margin-top:14px}
.customer-service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:0 0 2px}
.customer-service-card{display:block;color:var(--coffee);border:1px solid var(--border);border-radius:16px;padding:16px;background:linear-gradient(180deg,#fff,#fdfafa);box-shadow:var(--shadow-soft)}
.customer-service-card:hover{border-color:#d9bdbc;transform:translateY(-1px)}
.service-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.customer-service-card h3{font-size:17px;margin:14px 0 4px;overflow-wrap:anywhere}
.customer-service-card>p{margin:0;color:var(--muted);font-size:11px}
.service-card-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:15px 0}
.service-card-meta span{display:block;background:#fbf8f8;border:1px solid var(--border);border-radius:10px;padding:9px;color:var(--muted);font-size:9px}
.service-card-meta strong{display:block;color:var(--coffee);font-size:10px;margin-top:4px;overflow-wrap:anywhere}
.service-card-action{display:flex;justify-content:space-between;align-items:center;padding-top:11px;border-top:1px solid var(--border);font-weight:900;font-size:11px;color:var(--red)}
.service-card-action b{font-size:17px}
.hosting-list-header{padding:2px 2px 14px}
.customer-dashboard-services{display:flex;flex-direction:column}
.customer-dashboard-service{display:flex;align-items:center;gap:10px;padding:11px 2px;border-bottom:1px solid var(--border);color:var(--coffee)}
.customer-dashboard-service:last-child{border-bottom:0}
.customer-dashboard-service>span:nth-child(2){min-width:0;flex:1}
.customer-dashboard-service strong,.customer-dashboard-service small{display:block}
.customer-dashboard-service small{color:var(--muted);font-size:10px;margin-top:3px}
.customer-profile-services{display:flex;flex-direction:column;margin-top:14px;border-top:1px solid var(--border)}
.customer-profile-services>a{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 2px;border-bottom:1px solid var(--border);color:var(--coffee)}
.customer-profile-services>a:last-child{border-bottom:0}
.customer-profile-services strong,.customer-profile-services small{display:block}
.customer-profile-services small{color:var(--muted);font-size:10px;margin-top:3px}
.service-dashboard-row{color:var(--coffee)}
.service-action-placeholder{min-height:270px}
@media (max-width:1180px){.customer-service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:700px){.customer-service-grid,.service-card-meta{grid-template-columns:1fr}}

/* v0.5.0 WHM / cPanel Automation */
.status-dot.bad{background:var(--red)}
.btn-danger{background:var(--cherry);color:#fff;border-color:var(--cherry);box-shadow:0 8px 18px rgba(85,16,13,.16)}
.btn-danger:hover{background:var(--coffee);color:#fff}
.btn:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}
.full-width{width:100%}
.automation-panel{margin-top:14px;padding:18px}
.automation-state{display:inline-flex;align-items:center;justify-content:center;min-height:27px;padding:5px 9px;border-radius:999px;background:#f2eeee;color:var(--cherry);font-size:9px;font-weight:900;letter-spacing:.025em;white-space:nowrap}
.automation-state.provisioned{background:var(--green-soft);color:#0d8345}
.automation-state.suspended{background:#fff7df;color:#9a6b00}
.automation-state.failed,.automation-state.remote_unknown{background:var(--danger-soft);color:#b00000}
.automation-state.provisioning,.automation-state.syncing,.automation-state.suspending,.automation-state.unsuspending,.automation-state.changing_package,.automation-state.changing_password,.automation-state.terminating{background:#f7eaea;color:var(--red)}
.automation-state.terminated{background:#eee7e7;color:var(--coffee)}
.automation-section{border:1px solid var(--border);border-radius:15px;padding:16px;background:linear-gradient(180deg,#fff,#fdfafa)}
.automation-section-copy{margin-bottom:14px}
.automation-section-copy strong{font-size:13px}
.automation-section-copy p,.automation-action-card p,.danger-zone p{font-size:10px;line-height:1.55;color:var(--muted);margin:5px 0 0}
.automation-form{display:flex;flex-direction:column;gap:13px}
.password-control{display:flex;gap:8px;align-items:center}
.password-control input{flex:1}
.automation-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.automation-action-card{border:1px solid var(--border);border-radius:14px;padding:14px;background:#fdfbfb;display:flex;flex-direction:column;min-width:0}
.automation-action-card>strong{font-size:12px;color:var(--coffee)}
.automation-action-card>p{min-height:47px;margin-bottom:11px}
.automation-action-card form{margin-top:auto}
.compact-form{gap:9px}
.compact-form label{font-size:10px}
.compact-form input,.compact-form select{height:39px;font-size:11px}
.danger-zone{margin-top:14px;border:1px solid #edb9b8;background:linear-gradient(180deg,#fff7f7,#fff1f1);border-radius:14px;padding:15px}
.danger-zone>strong{display:block;color:var(--red);font-size:12px}
.danger-zone form{margin-top:12px}
.compact-checkbox{display:flex;flex-direction:row;align-items:center;gap:8px;color:var(--coffee);font-size:10px;font-weight:700}
.compact-checkbox input{width:auto;height:auto;accent-color:var(--red)}
.automation-terminated{padding:16px;border-radius:14px;border:1px solid var(--border);background:#f4f0f0;color:var(--muted)}
.automation-terminated strong{display:block;color:var(--coffee);margin-bottom:5px}
.automation-terminated p{margin:0;font-size:10px;line-height:1.55}
.automation-event{display:flex;gap:10px;padding:11px 2px;border-bottom:1px solid var(--border)}
.automation-event:last-child{border-bottom:0}
.automation-event>div{min-width:0;flex:1}
.automation-event strong,.automation-event small{display:block}
.automation-event strong{font-size:11px}
.automation-event p{font-size:10px;color:var(--muted);line-height:1.45;margin:4px 0}
.automation-event small{font-size:9px;color:#948887}
.automation-health-list{display:grid;gap:8px}
.automation-health-list>div{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid var(--border);font-size:10px}
.automation-health-list>div:last-child{border-bottom:0}
.automation-health-list span{color:var(--muted)}
.automation-health-list strong{color:var(--coffee);text-align:right;overflow-wrap:anywhere}
.automation-result{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:900;white-space:nowrap}
.automation-result.success{background:var(--green-soft);color:#0d8345}
.automation-result.failed{background:var(--danger-soft);color:#b00000}
.automation-log-table{min-width:1140px}
.error-line{max-width:250px;white-space:normal;color:#a20000!important}
.log-service-link{margin-top:14px}
.automation-result-card{display:flex;gap:12px;align-items:flex-start;padding:15px;border:1px solid var(--border);border-radius:14px;margin-bottom:12px}
.automation-result-card>span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;font-weight:900}
.automation-result-card strong{display:block;font-size:12px}
.automation-result-card p{margin:4px 0 0;font-size:10px;line-height:1.5;color:var(--muted)}
.automation-result-card.success{background:var(--green-soft);border-color:#c9ebd8}
.automation-result-card.success>span{background:#fff;color:#0d8345}
.automation-result-card.failed{background:var(--danger-soft);border-color:#facdcd}
.automation-result-card.failed>span{background:#fff;color:#b00000}
.compact-detail{margin-top:0}
.automation-json-grid{align-items:start}
.key-value-list{display:grid;gap:0}
.key-value-list>div{display:grid;grid-template-columns:minmax(120px,.4fr) minmax(0,1fr);gap:12px;padding:10px 0;border-bottom:1px solid var(--border)}
.key-value-list>div:last-child{border-bottom:0}
.key-value-list span{font-size:10px;color:var(--muted)}
.key-value-list strong{font-size:10px;overflow-wrap:anywhere}
.automation-json{margin:0;max-height:340px;overflow:auto;background:var(--coffee);color:#f6eded;border-radius:12px;padding:14px;font-size:10px;line-height:1.55;white-space:pre-wrap;word-break:break-word}
.service-card-badges{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
@media (max-width:900px){.automation-action-grid{grid-template-columns:1fr}.automation-action-card>p{min-height:0}.password-control{align-items:stretch;flex-direction:column}.password-control .btn{width:100%}}


/* v0.6.0 Customer Hosting Portal & cPanel Access */
.customer-hosting-control-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:14px}
.customer-cpanel-card,.usage-card,.customer-password-card,.customer-self-service-log{padding:18px}
.cpanel-access-hero{display:flex;align-items:center;gap:14px;padding:16px;border:1px solid var(--border);border-radius:15px;background:linear-gradient(135deg,#fff,#fff7f7);margin-bottom:14px}
.cpanel-access-icon{width:48px;height:48px;display:grid;place-items:center;flex:0 0 auto;border-radius:15px;background:#fff0f0;color:var(--red);border:1px solid #f4d4d3}
.cpanel-access-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8}
.cpanel-access-hero strong{display:block;font-size:13px;color:var(--coffee)}
.cpanel-access-hero p{font-size:10px;line-height:1.55;color:var(--muted);margin:5px 0 0}
.access-meta{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-top:13px;padding-top:12px;border-top:1px solid var(--border);font-size:10px}
.access-meta span{color:var(--muted)}
.access-meta strong{text-align:right;color:var(--coffee)}
.usage-card{display:flex;flex-direction:column}
.usage-metric{padding:12px 0;border-bottom:1px solid var(--border)}
.usage-metric:last-of-type{border-bottom:0}
.usage-metric>div:first-child{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:10px}
.usage-metric span{color:var(--muted)}
.usage-metric strong{font-size:11px;color:var(--coffee);text-align:right}
.usage-progress{display:block;width:100%;height:8px;border:0;border-radius:999px;overflow:hidden;background:#eee5e4;margin:9px 0 6px;appearance:none}
.usage-progress::-webkit-progress-bar{background:#eee5e4;border-radius:999px}
.usage-progress::-webkit-progress-value{background:linear-gradient(90deg,var(--cherry),var(--red));border-radius:999px}
.usage-progress::-moz-progress-bar{background:linear-gradient(90deg,var(--cherry),var(--red));border-radius:999px}
.usage-metric small{font-size:9px;color:var(--muted)}
.customer-password-card>p{font-size:10px;line-height:1.55;margin:0 0 14px}
.customer-self-service-log{margin-top:14px}
.customer-self-service-log .service-timeline{margin-top:2px}
@media (max-width:900px){.customer-hosting-control-grid{grid-template-columns:1fr}.cpanel-access-hero{align-items:flex-start}.access-meta{align-items:flex-start;flex-direction:column}.access-meta strong{text-align:left}}
