:root{--cv16-border:#dbe7f5;--cv16-text:#163a66;--cv16-muted:#7e95b1;--cv16-bg:#f6f9ff;--cv16-card:#ffffff;--cv16-blue:#2e74ee;--cv16-blue-soft:#e9f1ff;--cv16-green:#1da66f;--cv16-green-soft:#e5f8ef;--cv16-red:#d45d62;--cv16-red-soft:#fdeeee;--cv16-amber:#b98016;--cv16-amber-soft:#fff3dc}
/* Additive only: improve layout, buttons, logs page and billing flow. */
.dashboard .cv16-pane,.dashboard #cp-logs{display:none}
.dashboard #cp-logs.cp-current{display:block}
.dashboard .side .cv16-side-button{width:100%;text-align:left;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}
.dashboard .side .cv16-side-button.chosen,.dashboard .side .cv16-side-button:hover{background:linear-gradient(135deg,#3d83f6,#2f67e1);color:#fff;border-radius:14px}
.dashboard .workspace main, .dashboard .workspace .tablewrap{scrollbar-width:none}.dashboard .workspace main::-webkit-scrollbar,.dashboard .workspace .tablewrap::-webkit-scrollbar{width:0;height:0}
.cv16-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:15px;flex-wrap:wrap;margin-bottom:16px}.cv16-section-head h2{margin:6px 0 4px;font-size:30px;color:var(--cv16-text)}.cv16-section-head p{margin:0;color:var(--cv16-muted)}
.cv16-head-actions{display:flex;gap:10px;align-items:center}.cv16-ghost{border:1px solid var(--cv16-border);background:#fff;color:#29548c;border-radius:12px;padding:11px 14px;font-size:13px;font-weight:800;cursor:pointer;transition:.15s ease}.cv16-ghost:hover{background:#f1f6ff;border-color:#c8dbfb}
.cv16-card{background:var(--cv16-card);border:1px solid var(--cv16-border);border-radius:20px;box-shadow:0 6px 20px rgba(17,55,107,.05);padding:18px 20px}
.cv16-vm-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin:16px 0 18px}.cv16-search{flex:1 1 280px}.cv16-search input,.cv16-table-toolbar input,.cv16-table-toolbar select{width:100%;min-height:44px;border:1px solid var(--cv16-border);background:#fff;border-radius:12px;padding:11px 14px;font-size:13px;color:#254872;outline:none}.cv16-search input:focus,.cv16-table-toolbar input:focus,.cv16-table-toolbar select:focus{border-color:#b8d0f6;box-shadow:0 0 0 4px #eff5ff}
.cv16-filter-group{display:flex;flex-wrap:wrap;gap:8px}.cv16-filter-group button{min-height:40px;padding:9px 14px;border-radius:999px;border:1px solid #d5e4f7;background:#fff;color:#295188;font-size:12px;font-weight:800;cursor:pointer}.cv16-filter-group button.is-active,.cv16-filter-group button:hover{background:linear-gradient(135deg,#eff5ff,#e7f0ff);border-color:#b9d3fb;color:#204c8f}
.cv16-empty{margin-top:14px;border:1px dashed #d7e5f7;border-radius:16px;padding:24px 16px;text-align:center;color:var(--cv16-muted);background:#fbfdff}
.cv16-inline-loader{position:sticky;top:10px;z-index:35;display:grid;place-items:center;margin-bottom:10px}.cv16-inline-loader[hidden]{display:none!important}.cv16-loader-box{width:min(360px,100%);display:flex;flex-direction:column;align-items:center;gap:9px;padding:18px 20px;border-radius:20px;border:1px solid #deebfb;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);box-shadow:0 16px 40px rgba(17,55,107,.08)}.cv16-loader-box strong{font-size:14px;color:var(--cv16-text)}.cv16-loader-box span{font-size:12px;color:var(--cv16-muted)}.cv16-loader-ring{width:44px;height:44px;border:4px solid #dbe9fd;border-top-color:var(--cv16-blue);border-radius:50%;animation:cv16spin .85s linear infinite}@keyframes cv16spin{to{transform:rotate(360deg)}}
.cv16-inline-actions{display:flex;flex-direction:column;gap:7px;align-items:flex-start}.cv16-inline-actions .cv16-order-note{font-size:11px;color:var(--cv16-muted)}
.cv16-status-pill,.cv16-status-badge{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:5px 12px;border-radius:999px;font-size:12px;font-weight:800;border:1px solid transparent;text-transform:none}.cv16-status-pill.is-ok,.cv16-status-badge.is-paid,.cv16-status-badge.is-ok{background:var(--cv16-green-soft);color:#11764e;border-color:#cceedd}.cv16-status-pill.is-bad,.cv16-status-badge.is-bad{background:var(--cv16-red-soft);color:#ab4248;border-color:#f7d6d8}.cv16-status-pill.is-wait,.cv16-status-badge.is-unpaid,.cv16-status-badge.is-wait{background:var(--cv16-amber-soft);color:#91650d;border-color:#f8e4b3}.cv16-status-badge.is-other{background:#eef4fd;color:#446790;border-color:#dae7f9}
.cv16-payment-flow{margin-bottom:16px;padding:16px 18px}.cv16-flow-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.cv16-flow-step{display:flex;gap:12px;align-items:flex-start;background:linear-gradient(180deg,#f9fbff,#f3f7ff);border:1px solid #dde9fb;border-radius:16px;padding:14px}.cv16-flow-step span{flex:0 0 34px;height:34px;width:34px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#3b82f6,#2e67e1);color:#fff;font-size:14px;font-weight:900}.cv16-flow-step strong{display:block;font-size:13px;color:var(--cv16-text)}.cv16-flow-step small{display:block;margin-top:4px;font-size:11px;line-height:1.5;color:var(--cv16-muted)}
.cv16-pay-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.cv16-action-primary,.cv16-action-link{min-height:38px;padding:8px 12px;border-radius:10px;font-size:12px;font-weight:800;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.cv16-action-primary{border:1px solid #2f6ee7;background:linear-gradient(135deg,#3f89f8,#2f69e1);color:#fff}.cv16-action-link{border:1px solid var(--cv16-border);background:#fff;color:#244d82}.cv16-action-primary:hover{filter:brightness(1.03)}.cv16-action-link:hover{background:#f4f8ff}
.cv16-builder-summary{margin:0 0 14px;padding:16px;border-radius:16px;border:1px solid #deebfb;background:linear-gradient(180deg,#fbfdff,#f4f8ff)}.cv16-builder-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}.cv16-build-chip{padding:12px;border:1px solid #e1ebfa;border-radius:14px;background:#fff}.cv16-build-chip small{display:block;font-size:11px;color:var(--cv16-muted);font-weight:800;letter-spacing:.04em;text-transform:uppercase}.cv16-build-chip strong{display:block;margin-top:5px;font-size:13px;color:var(--cv16-text);line-height:1.45}.cv16-range-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.cv16-range-grid>div{padding:12px;border-radius:14px;background:#fff;border:1px solid #e1ebfa}.cv16-range-grid small{display:block;font-size:11px;color:var(--cv16-muted)}.cv16-range-grid strong{display:block;margin-top:5px;font-size:15px;color:#1d477a}.cv16-range-grid span{display:block;margin-top:4px;font-size:11px;color:#5c7899}.cv16-builder-help{margin:12px 0 0;font-size:12px;line-height:1.6;color:#6f88a4}.cv16-wide-primary{width:100%;min-height:50px;border-radius:14px;font-size:16px;font-weight:900}
.cv16-log-summary{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:16px}.cv16-log-card{padding:18px}.cv16-table-toolbar{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}.cv16-table-toolbar input{flex:1 1 300px}.cv16-table-toolbar select{flex:0 0 180px}.cv16-table{width:100%;border-collapse:separate;border-spacing:0}.cv16-table th{font-size:12px;color:#7d94af;text-align:left;padding:13px 12px;border-bottom:1px solid #e7eef9;background:#fbfdff}.cv16-table td{padding:13px 12px;border-bottom:1px solid #edf2f9;vertical-align:top;font-size:13px;color:#23496f}.cv16-table tr:last-child td{border-bottom:0}.cv16-log-wrap{overflow:auto}
/* Button polish for existing action areas */
.dashboard #my-vps-list .cp-vm-buttons button,.dashboard #my-vps-list .cp-extra button,.dashboard #payment-modal button,.dashboard .workspace table button{transition:.15s ease}.dashboard .workspace table button{min-height:38px;padding:8px 12px;border-radius:10px;border:1px solid #d6e4f7;background:#fff;color:#274d82;font-weight:800}.dashboard .workspace table button:hover{background:#f4f8ff}.dashboard #my-vps-list .cp-vm-buttons .primary,.dashboard #payment-modal .primary,.dashboard .cv15-proof-panel .primary{background:linear-gradient(135deg,#468dfa,#2f6de6)!important;border-color:#2f6de6!important;color:#fff!important}.dashboard #my-vps-list .cp-vm-buttons .primary:hover,.dashboard #payment-modal .primary:hover,.dashboard .cv15-proof-panel .primary:hover{filter:brightness(1.03)}
/* Payment proof panel refinement */
.dashboard .cv15-proof-panel{border-radius:18px}.dashboard .cv15-proof-panel .cv15-panel-title{margin-bottom:10px}.dashboard .cv15-proof-panel form{margin-top:10px}.dashboard .cv15-proof-panel label{font-size:12px;font-weight:900;color:#254872}.dashboard .cv15-proof-panel input,.dashboard .cv15-proof-panel select,.dashboard .cv15-proof-panel textarea{background:#fff;border-radius:12px;min-height:46px}
/* Avoid ugly visible scrollbars but keep content scrollable */
body,.dashboard .workspace,.dashboard .tablewrap,#payment-modal .dialog{scrollbar-width:none}body::-webkit-scrollbar,.dashboard .workspace::-webkit-scrollbar,.dashboard .tablewrap::-webkit-scrollbar,#payment-modal .dialog::-webkit-scrollbar{width:0;height:0}
@media (max-width:1200px){.cv16-flow-grid,.cv16-log-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.cv16-builder-grid,.cv16-range-grid{grid-template-columns:1fr 1fr}}
@media (max-width:760px){.cv16-vm-toolbar,.cv16-table-toolbar{flex-direction:column;align-items:stretch}.cv16-flow-grid,.cv16-log-summary,.cv16-builder-grid,.cv16-range-grid{grid-template-columns:1fr}.cv16-section-head h2{font-size:24px}.dashboard .workspace table td,.dashboard .workspace table th{font-size:12px;padding:11px 8px}.cv16-pay-actions,.cv16-inline-actions{align-items:stretch}.cv16-action-primary,.cv16-action-link,.cv16-ghost{width:100%}}
@media (prefers-reduced-motion:reduce){.cv16-loader-ring{animation:none}}
