/* ============================================================
   Pajak Keluaran Otomatis - Web Edition
   Theme variables are populated at runtime from /api/bootstrap
   (see app.js -> applyTheme). The values below are the
   "Color Hunt" defaults, used before JS finishes loading.
   ============================================================ */
:root{
  --font-sans:"Plus Jakarta Sans","Inter","Segoe UI",-apple-system,BlinkMacSystemFont,Helvetica,Arial,sans-serif;
  --bg:#EDE9E6; --surface:#F7F3EF; --surface2:#E4DDD8; --surface3:#D7C9BE;
  --border:#CDBFB5; --border2:#9F8B80;
  --accent:#C9996B; --accent2:#5C766D; --accent-dim:#E6D2BF;
  --gold:#C9996B; --green:#5C766D; --red:#A65F55; --purple:#7B635B;
  --text:#2F2926; --text2:#5C4F4A; --text3:#7A6D67;
  --row-a:#F7F3EF; --row-b:#E8E1DC; --row-sel:#D9C2AB; --row-hdr:#5C4F4A;
  --sidebar-w:230px;
}

*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0; font-family:var(--font-sans);
  background:var(--bg); color:var(--text2); font-size:13px;
  font-weight:500;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
button,input,select,textarea{font-family:inherit; font-weight:inherit;}
h1,h2,h3,h4,h5,h6{font-family:var(--font-sans); font-weight:800; letter-spacing:0; text-wrap:balance;}
p,li,summary,input,select,textarea,button{letter-spacing:0;}

/* ---- scrollbars -------------------------------------------------- */
::-webkit-scrollbar{width:10px;height:10px;}
::-webkit-scrollbar-track{background:var(--surface);}
::-webkit-scrollbar-thumb{background:var(--border2);border-radius:5px;}
::-webkit-scrollbar-thumb:hover{background:var(--text3);}

/* ---- layout -------------------------------------------------------- */
#app{display:flex; height:100vh; width:100%; overflow:hidden;}

#sidebar{
  width:var(--sidebar-w); min-width:var(--sidebar-w); flex-shrink:0;
  background:var(--surface); display:flex; flex-direction:column;
  height:100%; overflow-y:auto; overflow-x:hidden;
}
.main{flex:1; display:flex; flex-direction:column; min-width:0; height:100%;}
#body{flex:1; overflow:auto; background:var(--bg); position:relative;}

.hr{height:1px; background:var(--border); flex-shrink:0;}
.spacer{flex:1;}

/* ---- brand ----------------------------------------------------------- */
.brand{padding:20px 8px; text-align:center; position:relative;}
.brand-icon{font-size:28px; font-weight:700; color:var(--accent); line-height:1.1;}
.brand-icon img{width:48px; height:48px; display:block; margin:0 auto; border-radius:10px;}
.logo-sm{width:14px; height:14px; border-radius:3px; vertical-align:-2px;}
.ui-icon{
  width:1.1em;
  height:1.1em;
  display:inline-block;
  vertical-align:-.16em;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0;
}
.pill .ui-icon{margin-right:7px;}
.pill.icon-btn .ui-icon{margin-right:0;}
.icon-btn{width:34px; min-width:34px; padding-left:0; padding-right:0;}
.side-label .ui-icon,.status .ui-icon{margin-right:6px;}
.status-icon{color:var(--accent2);}
.brand-title{font-size:12px; font-weight:700; color:var(--text); margin-top:4px; letter-spacing:.5px;}
.brand-sub{font-size:10px; color:var(--text3); margin-top:2px;}

/* ---- sidebar collapse -------------------------------------------------- */
.sidebar-toggle{
  position:absolute; top:10px; right:10px; background:none; border:none;
  color:var(--text3); font-size:15px; line-height:1; cursor:pointer;
  padding:5px 7px; border-radius:4px;
}
.sidebar-toggle:hover{background:var(--surface2); color:var(--text);}
.sidebar-toggle .ui-icon{width:18px; height:18px;}
#app.sidebar-collapsed #sidebar{width:56px; min-width:56px;}
#app.sidebar-collapsed .brand{padding:16px 4px;}
#app.sidebar-collapsed .brand-icon{font-size:22px;}
#app.sidebar-collapsed .brand-icon img{width:32px; height:32px; border-radius:7px;}
#app.sidebar-collapsed .brand-title,
#app.sidebar-collapsed .brand-sub,
#app.sidebar-collapsed .theme-switcher,
#app.sidebar-collapsed .export-section,
#app.sidebar-collapsed .file-label,
#app.sidebar-collapsed .account-section{display:none;}
#app.sidebar-collapsed .sidebar-toggle{position:static; display:block; margin:6px auto 0;}
#app.sidebar-collapsed .nav-item{justify-content:center;}
#app.sidebar-collapsed .nav-item .nav-icon{padding:13px 0;}
#app.sidebar-collapsed .nav-item .nav-text{display:none;}
#app.sidebar-collapsed .nav-divider{margin:4px 10px;}

/* ---- nav --------------------------------------------------------------- */
#nav{display:flex; flex-direction:column;}
.nav-item{
  display:flex; align-items:center; cursor:pointer; user-select:none;
  border-left:3px solid transparent; background:var(--surface);
  color:var(--text2); transition:background .1s,color .1s;
}
.nav-item .nav-icon{
  width:42px; flex-shrink:0; text-align:center; font-size:15px;
  color:var(--text3); padding:13px 0;
}
.nav-item .nav-icon .ui-icon{width:18px; height:18px;}
.nav-item .nav-text{flex:1; padding:13px 14px 13px 0; font-size:12px;}
.nav-item:hover{background:var(--surface2);}
.nav-item:hover .nav-icon, .nav-item:hover .nav-text{color:var(--text2);}
.nav-item.active{background:var(--surface2); border-left-color:var(--accent);}
.nav-item.active .nav-icon{color:var(--accent);}
.nav-item.active .nav-text{color:var(--text); font-weight:700;}
.nav-item.locked{opacity:.58;}
.nav-item.locked .nav-lock{padding-right:12px; color:var(--gold); display:flex;}
.nav-item.locked .nav-lock .ui-icon{width:14px; height:14px;}
.nav-item.locked:hover{opacity:.95; background:color-mix(in srgb, var(--gold) 14%, var(--surface2));}
.nav-divider{height:1px; background:var(--border); margin:4px 18px;}

/* ---- side label ----------------------------------------------------- */
.side-label{display:block; font-size:10px; font-weight:700; color:var(--text3); margin-bottom:6px;}

/* ---- theme switcher / export ------------------------------------------ */
.theme-switcher{padding:10px 14px;}
.export-section{padding:12px 14px;}
.export-section .pill{margin:2px 0;}
.file-label{
  padding:8px 14px; font-size:10px; color:var(--text3);
  word-break:break-all; line-height:1.4;
}
.account-section{padding:10px 14px 14px;}
.account-card{
  border:1px solid var(--border);
  background:color-mix(in srgb, var(--surface2) 72%, transparent);
  border-radius:8px;
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.account-meta{display:flex; flex-direction:column; gap:3px; min-width:0;}
.account-meta strong{
  color:var(--text);
  font-size:12px;
  line-height:1.25;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.account-meta span{color:var(--text3); font-size:10px; line-height:1.3; overflow-wrap:anywhere;}
.account-meta .account-label{
  color:var(--accent2);
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.4px;
}
.account-login{text-decoration:none; text-align:center;}

/* ---- form controls --------------------------------------------------- */
.x-select, .x-input{
  width:100%; background:var(--surface3); color:var(--text);
  border:1px solid var(--border); border-radius:4px; padding:6px 8px;
  font-size:12px; outline:none;
}
.x-select:focus, .x-input:focus{border-color:var(--accent);}
.x-input{background:var(--surface3);}
select.x-select{cursor:pointer;}

/* ---- pill buttons ------------------------------------------------------ */
.pill{
  display:inline-flex; align-items:center; justify-content:center;
  border:none; border-radius:6px; cursor:pointer; font-weight:700;
  font-family:inherit; font-size:12px; padding:8px 16px; line-height:1.3;
  transition:background-color .08s, color .08s; white-space:nowrap;
  color:var(--text);
}
.pill:active{transform:translateY(1px);}
.pill-block{display:flex; width:100%;}
.pill-sm{font-size:11px; padding:6px 10px;}
.pill[disabled]{cursor:not-allowed; opacity:.55;}

.pill-primary{background:var(--accent); color:var(--text);}
.pill-primary:hover{background:var(--border2);}
.pill-success{background:var(--green); color:var(--text);}
.pill-success:hover{background:var(--border2);}
.pill-ghost{background:var(--surface2); color:var(--text2);}
.pill-ghost:hover{background:var(--surface3);}
.pill-ghost2{background:var(--surface3); color:var(--text2);}
.pill-ghost2:hover{background:var(--border);}
.pill-danger{background:var(--red); color:var(--text);}
.pill-danger:hover{background:var(--border2);}
.pill-purple{background:var(--purple); color:var(--text);}
.pill-purple:hover{background:var(--border2);}
.pill-teal{background:var(--accent2); color:var(--bg);}
.pill-teal:hover{background:var(--accent-dim); color:var(--text);}
.pill-gold{background:var(--gold); color:var(--bg);}
.pill-gold:hover{background:var(--border);}

/* ---- topbar -------------------------------------------------------------- */
#topbar{
  height:52px; flex-shrink:0; background:var(--surface);
  display:flex; align-items:center; justify-content:space-between;
  padding:0 20px;
}
.status{font-size:13px; color:var(--text3);}
.stats{display:flex; gap:6px;}
.stat-pill{
  background:var(--surface2); padding:6px 14px; border-radius:4px;
  text-align:center; min-width:64px;
}
button.stat-pill{border:0; color:inherit; cursor:pointer; font-family:inherit;}
.trial-pill{
  border:1px solid color-mix(in srgb, var(--gold) 72%, transparent) !important;
  background:color-mix(in srgb, var(--gold) 16%, var(--surface2)) !important;
}
.trial-pill .stat-value{color:var(--gold);}
.stat-pill .stat-value{font-size:18px; font-weight:700; line-height:1.2;}
.stat-pill .stat-label{font-size:10px; color:var(--text3); margin-top:2px;}

/* ---- toast ------------------------------------------------------------------ */
#toast-container{position:fixed; left:0; right:0; bottom:24px; display:flex; flex-direction:column; align-items:center; gap:8px; pointer-events:none; z-index:1000;}
.toast{
  background:var(--surface2); padding:10px 20px; border-radius:6px;
  font-size:13px; box-shadow:0 6px 24px rgba(0,0,0,.35);
  animation:toast-in .15s ease-out;
}
@keyframes toast-in{from{opacity:0; transform:translateY(8px);} to{opacity:1; transform:translateY(0);}}

/* ---- pajak keluaran module (upload/mapping + data awal + faktur tabs) ----- */
.view-pajak-keluaran{display:flex; flex-direction:column; height:100%;}
.pk-tab-bar{margin:10px 16px 0; flex-shrink:0;}
.pk-content{flex:1; min-height:0; display:flex; flex-direction:column; background:var(--bg);}

/* ---- upload view --------------------------------------------------------- */
.view-upload{height:100%; display:flex; align-items:center; justify-content:center;}
.upload-card{
  background:var(--surface2); padding:52px 64px; border-radius:10px;
  text-align:center; max-width:90vw;
}
.upload-card .upload-icon{font-size:42px; font-weight:700; color:var(--accent);}
.upload-card .upload-icon .ui-icon{width:72px; height:72px; stroke-width:1.7;}
.upload-card .upload-icon img{width:72px; height:72px; border-radius:14px;}
.upload-card h1{font-size:20px; margin:10px 0 4px; color:var(--text); font-weight:700;}
.upload-card p{margin:0; font-size:12px; color:var(--text3);}
.upload-card .hr{margin:24px 0;}
.upload-card .btn-row{display:flex; gap:10px; justify-content:center;}
.upload-card .btn-row .pill{padding:11px 22px; font-size:13px;}
.upload-info{display:flex; gap:10px; justify-content:center; flex-wrap:wrap;}
.upload-info .pill-stat{
  background:var(--surface3); padding:8px 18px; border-radius:6px; text-align:center; min-width:84px;
}
.upload-info .pill-stat .v{font-size:18px; font-weight:700;}
.upload-info .pill-stat .l{font-size:10px; color:var(--text3); margin-top:2px;}

/* ---- mapping view ---------------------------------------------------------- */
.view-mapping{display:flex; height:100%;}
.mapping-left{
  width:270px; min-width:270px; background:var(--surface);
  display:flex; flex-direction:column; overflow-y:auto;
}
.mapping-left .lhdr{display:flex; align-items:center; gap:10px; padding:18px 20px;}
.mapping-left .lhdr .ic{font-size:14px; font-weight:700; color:var(--accent);}
.mapping-left .lhdr .ic .ui-icon{width:18px; height:18px;}
.mapping-left .lhdr .tt{font-size:14px; font-weight:700; color:var(--text);}
.mapping-fields{padding:10px 16px;}
.mapping-fields .hint{font-size:11px; color:var(--text3); margin-bottom:10px; line-height:1.5;}
.field-row{display:flex; align-items:center; padding:4px 6px; gap:6px; cursor:pointer; border-radius:4px;}
.field-row:hover{background:var(--surface2);}
.field-row.pending{background:var(--row-sel);}
.field-row.pending .lbl{color:var(--text);}
.field-row .dot{width:18px; text-align:center; font-size:13px; color:var(--text3); flex-shrink:0;}
.field-row .dot .ui-icon{width:15px; height:15px;}
.field-row .lbl{font-size:12px; color:var(--text3); flex:1;}
.field-row.assigned .dot{color:var(--green);}
.field-row.assigned .lbl{color:var(--text);}
.mapping-progress{padding:14px 16px;}
.mapping-progress .pt{display:flex; align-items:baseline; gap:4px; margin-bottom:12px;}
.mapping-progress .count{font-size:15px; font-weight:700; color:var(--text3);}
.mapping-progress .count.done{color:var(--green);}
.mapping-progress .count.partial{color:var(--gold);}
.mapping-progress .lbl2{font-size:11px; color:var(--text3);}
.mapping-progress .pill{margin:4px 0;}

.mapping-right{flex:1; display:flex; flex-direction:column; min-width:0;}
.mapping-right .rhdr{padding:12px 20px; font-size:11px; color:var(--text3); display:flex; align-items:center; gap:4px;}
.mapping-right .rhdr .tt{font-weight:700;}
.mapping-table-wrap{flex:1; padding:0 16px 16px; min-height:0;}

/* ---- generic data table (treeview replacement) ------------------------------ */
.table-scroll{height:100%; overflow:auto; border:1px solid var(--border); border-radius:4px;}
table.dtable{border-collapse:collapse; width:100%; table-layout:fixed; font-size:12px;}
table.dtable thead th{
  position:sticky; top:0; z-index:2; background:var(--row-hdr); color:var(--text3);
  font-size:11px; font-weight:700; padding:7px 8px; text-align:center;
  border-bottom:1px solid var(--border); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
table.dtable thead th.col-left{text-align:left;}
table.dtable thead th.col-right{text-align:right;}
table.dtable thead th.assignable{cursor:pointer;}
table.dtable thead th.assignable:hover{background:var(--surface3); color:var(--text2);}
table.dtable thead th.assigned-col{color:var(--accent);}
table.dtable tbody td{
  padding:5px 8px; border-bottom:1px solid var(--border); color:var(--text2);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; height:26px;
}
table.dtable tbody td.col-left{text-align:left;}
table.dtable tbody td.col-right{text-align:right;}
table.dtable tbody td.col-center{text-align:center;}
table.dtable tbody tr.row-b{background:var(--row-a);}
table.dtable tbody tr.row-a{background:transparent;}
table.dtable tbody tr:hover td{background:var(--row-sel); color:var(--text);}
table.dtable tbody tr.selected td{background:var(--row-sel); color:var(--text);}
table.dtable tbody tr.row-end td{background:var(--surface); color:var(--text3); font-weight:700;}

/* ---- doc lain masukan module --------------------------------------------- */
.view-doc-lain-masukan{display:flex; flex-direction:column; height:100%;}
.dlm-tab-bar{margin:10px 16px 0; flex-shrink:0;}
.dlm-content{flex:1; min-height:0; display:flex; flex-direction:column; background:var(--bg);}
.dlm-table-wrap{flex:1; padding:0 16px 16px; min-height:0;}
.summary-grid-4{grid-template-columns:repeat(4,1fr);}

/* ---- TPK view ---------------------------------------------------------------- */
.view-tpk{display:flex; flex-direction:column; height:100%;}
.subhdr{display:flex; align-items:center; gap:10px; padding:10px 20px; flex-wrap:wrap;}
.subhdr .tt{font-size:12px; font-weight:700; color:var(--text3);}
.subhdr .sep{font-size:11px; color:var(--text3);}
.subhdr .spacer{flex:1;}
.subhdr .btn-row{display:flex; gap:6px;}
.dup-badge{font-size:10px; font-weight:700; padding:3px 6px; border-radius:3px; margin-right:2px;}
.tpk-table-wrap{flex:1; padding:0 16px 16px; min-height:0;}

/* ---- dashboard view -------------------------------------------------------------- */
.view-dashboard{display:flex; flex-direction:column; height:100%;}
.dash-cards{display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:12px; padding:0 16px 12px;}
.dash-card{background:var(--surface2); padding:16px 18px; border-radius:8px; min-width:0;}
.dash-card-head{display:flex; align-items:center; gap:8px; font-size:11px; font-weight:800; color:var(--text3); text-transform:uppercase; letter-spacing:.06em;}
.dash-card-head .ui-icon{width:17px; height:17px; color:var(--accent);}
.dash-card-value{font-size:26px; font-weight:800; color:var(--accent2); margin-top:12px; line-height:1.1; word-break:break-word;}
.dash-card-label{font-size:11px; color:var(--text3); margin-top:7px; line-height:1.5;}
.dash-table-wrap{flex:1; padding:0 16px 16px; min-height:0;}
.view-archive{display:flex; flex-direction:column; height:100%;}
.archive-cards{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));}
.archive-table-wrap{flex:1; padding:0 16px 16px; min-height:0;}
.archive-download{margin:2px;}
.archive-action-stack{display:flex; gap:6px; justify-content:center; align-items:center; flex-wrap:wrap;}
.archive-picker{display:grid; gap:10px;}
.archive-picker-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--surface2);
}
.archive-picker-row div{display:grid; gap:4px; min-width:0; text-align:left;}
.archive-picker-row strong{color:var(--text); font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.archive-picker-row span{color:var(--text3); font-size:11px;}
.muted-text{color:var(--text3); font-size:11px;}

/* ---- Faktur & Detail view ------------------------------------------------------ */
.view-faktur{display:flex; flex-direction:column; height:100%; overflow:auto;}
.date-alert{margin:0 16px 8px; padding:10px 14px; background:var(--surface2); border-left:4px solid var(--gold); border-radius:4px; flex-shrink:0;}
.date-alert-title{font-size:11px; font-weight:700; color:var(--gold); margin-bottom:4px;}
.date-alert ul{margin:0; padding-left:16px; color:var(--text2); font-size:11px; line-height:1.6;}
.apply-panel{background:var(--surface); margin:0 16px 4px; padding:12px 18px; border-radius:6px; flex-shrink:0;}
.apply-top{display:flex; align-items:flex-start; flex-wrap:wrap; gap:12px 0;}
.apply-ctrl{display:flex; flex-direction:column;}
.apply-ctrl .hdr{font-size:10px; font-weight:700; color:var(--text3); margin-bottom:8px;}
.apply-row{display:flex; align-items:center; gap:6px; padding:3px 0;}
.apply-row .lbl{font-size:12px; font-weight:700; width:78px; flex-shrink:0;}
.apply-row select{width:200px;}
.apply-npwp{font-size:12px; font-weight:700; letter-spacing:.3px; color:var(--accent); font-variant-numeric:tabular-nums;}
.apply-npwp.is-empty{color:var(--text3); font-weight:500;}
.apply-hint{font-size:10px; color:var(--text3); margin-top:4px;}
.apply-divider{width:1px; background:var(--border); margin:2px 18px; align-self:stretch;}
.apply-summary{flex:1; display:flex; flex-direction:column; min-width:0;}
.apply-summary .hdr{font-size:10px; font-weight:700; color:var(--text3); margin-bottom:8px;}
.summary-grid{display:grid; grid-template-columns:repeat(5,1fr); gap:8px;}
.summary-pill{background:var(--surface3); padding:6px 12px; border-radius:4px;}
.summary-pill .l{font-size:10px; color:var(--text3);}
.summary-pill .v{font-size:13px; font-weight:700; text-align:right; display:block; margin-top:2px;}

.date-apply-row{display:flex; align-items:center; gap:6px; margin-top:10px; flex-wrap:wrap;}
.date-apply-row .lbl{font-size:10px; font-weight:700; color:var(--text3); width:120px;}
.date-apply-row .x-input{width:130px;}

.detail-defaults-row{display:flex; align-items:center; gap:6px; margin-top:10px; flex-wrap:wrap;}
.detail-defaults-row .lbl{font-size:10px; font-weight:700; color:var(--text3); width:120px;}
.detail-defaults-row select{width:170px;}
.detail-defaults-row .x-input{width:90px;}

/* ---- tab notebook ---------------------------------------------------------------- */
.tabs{margin:4px 16px 16px; flex:1; display:flex; flex-direction:column; min-height:420px;}
.tab-bar{display:flex; gap:2px;}
.tab-btn{
  background:var(--surface2); color:var(--text3); border:none; cursor:pointer;
  font-weight:700; font-size:12px; padding:9px 18px; border-radius:6px 6px 0 0;
}
.tab-btn.active{background:var(--surface3); color:var(--accent2);}
.tab-btn:hover:not(.active){background:var(--border); color:var(--text2);}
.tab-panels{flex:1; min-height:0; background:var(--bg);}
.tab-panel{height:100%; display:none;}
.tab-panel.active{display:flex; flex-direction:column;}

/* faktur table row state highlighting */
tr.faktur-filled td{background:var(--surface2);}
tr.faktur-filled-p td{background:var(--accent-dim);}
tr.faktur-filled-b td{background:var(--surface3);}
tr.date-problem td{box-shadow:inset 0 0 0 999px rgba(214,168,79,.16);}
tr.date-problem td:first-child{border-left:4px solid var(--gold);}

/* ---- modal / dialog ------------------------------------------------------------------ */
.modal-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.55); display:flex;
  align-items:center; justify-content:center; z-index:500;
}
.modal{
  background:var(--bg); border-radius:8px; overflow:hidden; display:flex; flex-direction:column;
  max-height:88vh; box-shadow:0 20px 60px rgba(0,0,0,.5);
}
.modal-header{
  background:var(--surface); padding:16px 24px; display:flex; align-items:center;
  justify-content:space-between; gap:12px; flex-shrink:0;
}
.modal-header .title{font-size:15px; font-weight:700; color:var(--text);}
.modal-header .sub{font-size:12px; color:var(--text3);}
.modal-body{padding:16px 24px; overflow:auto; flex:1;}
.modal-footer{
  padding:14px 24px; display:flex; justify-content:space-between; align-items:center;
  flex-shrink:0;
}
.modal-section{margin-bottom:12px;}
.modal-section .sec-title{font-size:11px; font-weight:700; margin-bottom:5px;}
.modal-section .sec-body{background:var(--surface2); border-radius:6px; padding-bottom:8px;}
.form-row{display:flex; align-items:center; padding:6px 12px; gap:6px;}
.form-row .flbl{width:170px; flex-shrink:0; font-size:11px; color:var(--text3);}
.form-row .x-input, .form-row select{flex:1;}
.dialog-warn-list{font-size:12px; line-height:1.7; color:var(--text2); margin:0 0 14px; padding-left:18px;}
.upgrade-modal h3{margin:10px 0 8px; color:var(--text); font-size:22px;}
.upgrade-modal p{margin:0; color:var(--text2); line-height:1.7;}
.upgrade-badge{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background:color-mix(in srgb, var(--gold) 18%, var(--surface3));
  color:var(--gold);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.upgrade-package-row{display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:18px;}
.upgrade-package-row div{
  padding:14px;
  border-radius:8px;
  background:var(--surface2);
  border:1px solid var(--border);
}
.upgrade-package-row b{display:block; color:var(--text); margin-bottom:6px;}
.upgrade-package-row span{display:block; color:var(--text3); font-size:12px; line-height:1.5;}
.subscription-lock{
  max-width:760px;
  margin:54px auto;
  padding:42px;
  border:1px solid color-mix(in srgb, var(--gold) 34%, var(--border));
  background:linear-gradient(135deg, color-mix(in srgb, var(--surface) 92%, var(--gold)), var(--surface2));
  border-radius:8px;
  box-shadow:0 22px 70px rgba(0,0,0,.24);
}
.subscription-lock h1{margin:14px 0 10px; font-size:34px; color:var(--text); letter-spacing:0;}
.subscription-lock p{margin:0; color:var(--text2); line-height:1.8; max-width:620px;}
.subscription-lock-actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:24px;}
.subscription-lock-actions .btn{height:42px; padding:0 18px; display:inline-flex; align-items:center; justify-content:center; border-radius:8px; text-decoration:none; font-weight:800;}
.subscription-lock-actions .primary{background:linear-gradient(135deg, var(--accent), var(--accent2)); color:#07111f;}
.subscription-lock-actions .secondary{border:1px solid var(--border); color:var(--text); background:var(--surface);}
.trial-pill.expired{border-color:color-mix(in srgb, var(--red) 48%, var(--border));}

/* db manager tabs reuse .tab-bar / .tab-btn */
.db-hint{font-size:11px; color:var(--text3); padding:6px 0 10px;}
.db-section-title{font-size:11px; font-weight:700; color:var(--text2); text-transform:uppercase; letter-spacing:.5px; padding:8px 0 6px;}
.db-table-wrap{max-height:220px; overflow:auto; border:1px solid var(--border); border-radius:4px; margin-bottom:10px;}
.db-form{background:var(--surface2); border-radius:6px; padding:10px 0;}
.db-form .form-title{font-size:10px; font-weight:700; color:var(--text3); padding:0 12px 8px;}
.db-form .btn-row{display:flex; gap:6px; padding:8px 12px 0;}

/* ---- context menu ------------------------------------------------------------------------- */
.ctx-menu{
  position:fixed; z-index:600; background:var(--surface2); border:1px solid var(--border);
  border-radius:6px; box-shadow:0 10px 30px rgba(0,0,0,.4); min-width:200px; padding:4px;
  font-size:12px;
}
.ctx-menu .ctx-title{padding:6px 12px; font-weight:700; color:var(--text); font-size:11px;}
.ctx-menu .ctx-sep{height:1px; background:var(--border); margin:4px 0;}
.ctx-menu .ctx-item{padding:7px 12px; border-radius:4px; cursor:pointer; color:var(--text2); white-space:nowrap;}
.ctx-menu .ctx-item .ui-icon{width:14px; height:14px; margin-right:6px;}
.ctx-menu .ctx-item:hover{background:var(--row-sel); color:var(--text);}
.ctx-menu .ctx-item.active{font-weight:700; color:var(--accent);}
.ctx-menu .ctx-item.danger{color:var(--red);}

/* ---- misc -------------------------------------------------------------------------------- */
.empty-hint{padding:40px; text-align:center; color:var(--text3); font-size:13px;}
.tag-purple{color:var(--purple);}
.tag-accent{color:var(--accent);}
.hidden{display:none !important;}

/* ---- modern responsive shell -------------------------------------------------- */
:root{
  --shadow:0 18px 60px rgba(0,0,0,.28);
  --ring:0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}
body{
  font-family:var(--font-sans);
}
#body{
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface2) 26%, transparent), transparent 36%),
    radial-gradient(circle at 96% 6%, color-mix(in srgb, var(--accent2) 13%, transparent), transparent 25%),
    var(--bg);
}
#sidebar{
  border-right:1px solid var(--border);
  background:color-mix(in srgb, var(--surface) 94%, black);
}
.brand-icon img{box-shadow:0 10px 28px rgba(0,0,0,.22);}
.nav-item{
  margin:2px 8px;
  border-radius:8px;
  background:transparent;
  transition:background .16s,color .16s,border-color .16s;
}
.nav-item:hover{background:color-mix(in srgb, var(--surface2) 82%, var(--accent) 18%);}
.nav-item.active{background:linear-gradient(90deg, color-mix(in srgb, var(--accent) 28%, var(--surface2)), var(--surface2));}
.x-select,.x-input{
  border-radius:6px;
  padding:7px 9px;
  transition:border-color .15s, box-shadow .15s, background .15s;
}
.x-select:focus,.x-input:focus{box-shadow:var(--ring);}
.pill{
  border:1px solid transparent;
  border-radius:7px;
  transition:background-color .12s, color .12s, border-color .12s, transform .08s;
}
.pill-primary{
  background:linear-gradient(135deg,var(--accent),color-mix(in srgb, var(--accent2) 52%, var(--accent)));
  color:#071014;
}
.pill-ghost{border-color:var(--border);}
#topbar{
  min-height:58px;
  height:auto;
  padding:8px 20px;
  gap:14px;
  border-bottom:1px solid var(--border);
  background:color-mix(in srgb, var(--surface) 94%, black);
}
.stats{gap:8px; flex-wrap:wrap; justify-content:flex-end;}
.stat-pill{
  border-radius:8px;
  border:1px solid var(--border);
  padding:7px 14px;
}
.upload-card{
  background:linear-gradient(160deg, color-mix(in srgb, var(--surface2) 92%, var(--accent) 8%), var(--surface));
  border:1px solid var(--border);
  border-radius:8px;
  box-shadow:var(--shadow);
}
.mapping-left{
  width:280px;
  min-width:280px;
  border-right:1px solid var(--border);
  background:color-mix(in srgb, var(--surface) 92%, black);
}
.apply-panel{
  margin:0 16px 8px;
  padding:14px 18px;
  border-radius:8px;
  border:1px solid var(--border);
  box-shadow:0 10px 30px rgba(0,0,0,.12);
  background:color-mix(in srgb, var(--surface) 92%, black);
}
.summary-pill{
  border-radius:8px;
  border:1px solid var(--border);
  padding:8px 12px;
}
.dash-card{
  border:1px solid var(--border);
  border-radius:8px;
  box-shadow:0 12px 36px rgba(0,0,0,.18);
  background:linear-gradient(135deg,var(--surface2),color-mix(in srgb, var(--surface3) 70%, var(--accent) 10%));
}
.tab-btn{border-radius:8px 8px 0 0; padding:10px 18px;}
.modal{border:1px solid var(--border);}

/* ---- TanStack table controls -------------------------------------------------- */
.table-scroll{
  border-radius:8px;
  background:color-mix(in srgb, var(--surface) 70%, transparent);
}
.table-scroll > .table-shell{height:100%;}
.table-shell{
  height:100%;
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:8px;
}
.table-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px;
  background:color-mix(in srgb, var(--surface) 88%, black);
  border:1px solid var(--border);
  border-bottom:none;
  border-radius:8px 8px 0 0;
}
.table-search{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:260px;
}
.table-search span,.table-meta,.table-pager{
  font-size:11px;
  color:var(--text3);
  font-weight:700;
}
.table-filter{height:32px;}
.table-shell > .table-scroll{
  flex:1;
  min-height:0;
  border-radius:0;
}
.table-pager{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  padding:9px 10px;
  background:color-mix(in srgb, var(--surface) 90%, black);
  border:1px solid var(--border);
  border-top:none;
  border-radius:0 0 8px 8px;
}
.table-page-size{width:132px;}
table.dtable thead th{
  padding:9px 8px;
  font-weight:800;
}
table.dtable thead th.sortable{cursor:pointer;}
table.dtable thead th.sortable:hover{
  color:var(--text);
  background:color-mix(in srgb, var(--row-hdr) 78%, var(--accent) 22%);
}
table.dtable tbody td{
  padding:7px 8px;
  height:31px;
  border-bottom:1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

@media (max-width:980px){
  #app{flex-direction:column; overflow:auto; height:auto; min-height:100vh;}
  #sidebar{
    width:100%;
    min-width:0;
    height:auto;
    max-height:none;
    flex-direction:row;
    align-items:center;
    overflow-x:auto;
    overflow-y:hidden;
    border-right:none;
    border-bottom:1px solid var(--border);
  }
  .brand{display:flex; align-items:center; gap:10px; padding:10px 14px; min-width:max-content; text-align:left;}
  .brand-icon img{width:34px; height:34px;}
  .sidebar-toggle,.theme-switcher,.export-section,.file-label,.account-section,#sidebar .hr,.spacer{display:none;}
  #nav{flex-direction:row; align-items:center;}
  .nav-item{min-width:max-content; margin:6px 4px;}
  .nav-item .nav-icon{width:32px;}
  .nav-item .nav-text{padding-right:12px;}
  .main{height:auto; min-height:calc(100vh - 58px);}
  #topbar{align-items:flex-start; flex-direction:column;}
  .stats{justify-content:flex-start;}
  .view-mapping{flex-direction:column;}
  .mapping-left{width:100%; min-width:0; max-height:260px; border-right:none; border-bottom:1px solid var(--border);}
  .apply-top{flex-direction:column;}
  .apply-divider{display:none;}
  .summary-grid,.summary-grid-4{grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media (max-width:640px){
  body{font-size:12px;}
  .subhdr{padding:10px 12px;}
  .pk-tab-bar,.dlm-tab-bar,.tabs{margin-left:10px; margin-right:10px;}
  .tpk-table-wrap,.dlm-table-wrap,.dash-table-wrap,.archive-table-wrap,.mapping-table-wrap{padding:0 10px 10px;}
  .apply-panel{margin:0 10px 8px; padding:12px;}
  .apply-row,.date-apply-row,.detail-defaults-row{align-items:stretch; flex-direction:column;}
  .apply-row .lbl,.date-apply-row .lbl,.detail-defaults-row .lbl{width:auto;}
  .apply-row select,.apply-row .x-input,.date-apply-row .x-input,.detail-defaults-row select,.detail-defaults-row .x-input{width:100% !important;}
  .upload-card{padding:34px 22px;}
  .upload-card .btn-row,.table-toolbar,.table-pager{flex-wrap:wrap; justify-content:flex-start;}
  .archive-picker-row{align-items:stretch; flex-direction:column;}
  .table-search{min-width:100%; width:100%;}
  .table-page-size{width:100%;}
  .modal{width:calc(100vw - 20px) !important;}
  .form-row{align-items:stretch; flex-direction:column;}
  .form-row .flbl{width:auto;}
}

/* ---- SaaS landing page -------------------------------------------------------- */
.landing-page{
  min-height:100vh;
  color:#eef4f8;
  background:#0f1418;
}
.landing-page a{text-decoration:none; color:inherit;}
.landing-nav{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:50;
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:0 clamp(18px,4vw,64px);
  background:rgba(15,20,24,.78);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.landing-brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:18px;
  font-weight:800;
}
.landing-brand img{width:34px; height:34px; border-radius:8px;}
.landing-nav nav{display:flex; align-items:center; gap:24px; color:#b9c5cf; font-size:13px; font-weight:700;}
.landing-nav nav a:hover{color:#fff;}
.landing-nav-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:40px;
  padding:0 16px;
  border-radius:8px;
  color:#061015;
  font-weight:800;
  background:#8bd450;
}
.landing-hero{
  position:relative;
  min-height:760px;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(420px,720px);
  align-items:center;
  gap:44px;
  padding:118px clamp(18px,5vw,78px) 72px;
  overflow:hidden;
}
.landing-hero-bg{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(15,20,24,.95) 0%, rgba(15,20,24,.86) 42%, rgba(15,20,24,.38) 100%),
    url("/static/img/logo.svg") center right 12% / 520px no-repeat,
    #0f1418;
  opacity:.9;
}
.landing-hero-content,.product-preview{position:relative; z-index:1;}
.landing-kicker{
  margin:0 0 14px;
  color:#8bd450;
  font-size:12px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.landing-hero h1{
  margin:0;
  color:#fff;
  font-size:clamp(58px,9vw,128px);
  line-height:.9;
  letter-spacing:0;
}
.landing-lead{
  max-width:640px;
  margin:24px 0 0;
  color:#c9d4dc;
  font-size:clamp(17px,2vw,22px);
  line-height:1.6;
}
.enterprise-proof-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:22px;
}
.enterprise-proof-row span{
  padding:8px 11px;
  border-radius:8px;
  color:#dce8ef;
  background:rgba(53,194,208,.1);
  border:1px solid rgba(53,194,208,.2);
  font-size:12px;
  font-weight:900;
}
.landing-actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:34px;}
.landing-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 22px;
  border-radius:8px;
  font-weight:900;
}
.landing-btn.primary{background:#35c2d0; color:#061015;}
.landing-btn.secondary{background:rgba(255,255,255,.08); color:#eef4f8; border:1px solid rgba(255,255,255,.14);}
.social-proof{
  margin-top:32px;
  max-width:700px;
}
.social-proof p{
  margin:0 0 12px;
  color:#96a3b2;
  font-size:12px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.proof-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.proof-grid div{
  padding:13px 14px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:8px;
  background:rgba(255,255,255,.055);
}
.proof-grid strong{
  display:block;
  color:#fff;
  font-size:24px;
  line-height:1;
}
.proof-grid span{
  display:block;
  margin-top:6px;
  color:#aebcc7;
  font-size:11px;
  line-height:1.45;
}
.proof-logos{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}
.proof-logos span{
  padding:7px 10px;
  border-radius:999px;
  color:#d5dee5;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.09);
  font-size:11px;
  font-weight:800;
}
.product-preview{
  border:1px solid rgba(255,255,255,.12);
  border-radius:10px;
  overflow:hidden;
  background:#121820;
  box-shadow:0 28px 90px rgba(0,0,0,.46);
}
.preview-top{
  height:48px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 16px;
  background:#1a222b;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.preview-top span{width:10px; height:10px; border-radius:50%; background:#55616f;}
.preview-top strong{margin-left:8px; color:#d7e4ec; font-size:12px;}
.preview-body{display:grid; grid-template-columns:150px 1fr; min-height:360px;}
.preview-body aside{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:18px;
  background:#151c24;
  border-right:1px solid rgba(255,255,255,.08);
}
.preview-body aside b{
  padding:10px 12px;
  border-radius:8px;
  color:#aebcc7;
  font-size:12px;
  background:rgba(255,255,255,.04);
}
.preview-body aside b:nth-child(2){color:#061015; background:#35c2d0;}
.preview-body section{padding:22px;}
.preview-stats{display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:18px;}
.preview-stats div{
  padding:14px;
  border-radius:8px;
  background:#202a35;
  border:1px solid rgba(255,255,255,.08);
}
.preview-stats strong{display:block; color:#fff; font-size:24px;}
.preview-stats small{color:#96a3b2; font-size:11px;}
.preview-table{
  border:1px solid rgba(255,255,255,.08);
  border-radius:8px;
  overflow:hidden;
}
.preview-table div{
  display:grid;
  grid-template-columns:1fr 1.4fr .8fr;
  gap:12px;
  padding:13px 14px;
  color:#cdd7df;
  font-size:12px;
  border-bottom:1px solid rgba(255,255,255,.07);
}
.preview-table div:first-child{background:#10161d; color:#8bd450; font-weight:800;}
.preview-table div:last-child{border-bottom:none;}
.preview-table em{font-style:normal; color:#8bd450; font-weight:800;}
.landing-section,.problem-section,.workflow-band,.demo-section,.roi-section,.testimonial-section,.faq-section{
  padding:76px clamp(18px,5vw,78px);
}
.section-heading{max-width:780px; margin-bottom:30px;}
.section-heading p,.workflow-band > div p{
  margin:0 0 10px;
  color:#35c2d0;
  font-size:12px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.section-heading h2,.workflow-band h2{
  margin:0;
  color:#fff;
  font-size:clamp(30px,4vw,52px);
  line-height:1.08;
  letter-spacing:0;
}
.feature-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.pricing-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  align-items:stretch;
}
.feature-grid article,.price-card,.faq-list details{
  border:1px solid rgba(255,255,255,.1);
  border-radius:8px;
  background:#151c24;
}
.feature-grid article{padding:24px;}
.feature-grid span{color:#8bd450; font-size:12px; font-weight:900;}
.feature-grid h3,.price-card h3{margin:16px 0 10px; color:#fff; font-size:20px;}
.feature-grid p,.price-card p,.faq-list p{margin:0; color:#aebcc7; line-height:1.7;}
.problem-section{
  background:#10161d;
  border-top:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.problem-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.problem-grid article{
  min-height:230px;
  padding:22px;
  border-radius:8px;
  background:linear-gradient(180deg, rgba(224,99,99,.12), rgba(255,255,255,.035));
  border:1px solid rgba(224,99,99,.22);
}
.problem-grid span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:8px;
  color:#ffb4b4;
  background:rgba(224,99,99,.14);
  font-weight:900;
  font-size:12px;
}
.problem-grid h3{
  margin:18px 0 10px;
  color:#fff;
  font-size:20px;
  line-height:1.2;
}
.problem-grid p{
  margin:0;
  color:#aebcc7;
  line-height:1.7;
}
.workflow-band{
  display:grid;
  grid-template-columns:minmax(0,420px) 1fr;
  gap:44px;
  background:#121820;
  border-top:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.workflow-band ol{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin:0;
  padding:0;
  list-style:none;
}
.workflow-band li{
  padding:18px;
  border-radius:8px;
  background:#1b242d;
  border:1px solid rgba(255,255,255,.08);
}
.workflow-icon-wrap{
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:14px;
  border-radius:10px;
  color:#061015;
  background:linear-gradient(135deg,#35c2d0,#8bd450);
  box-shadow:0 12px 28px rgba(53,194,208,.18);
}
.workflow-icon{
  width:23px;
  height:23px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.workflow-band li:hover .workflow-icon-wrap{
  transform:translateY(-2px);
  box-shadow:0 16px 34px rgba(139,212,80,.2);
}
.workflow-band b{display:block; color:#fff; margin-bottom:8px;}
.workflow-band span{color:#aebcc7; line-height:1.6;}
.demo-section{
  background:#0f1418;
}
.demo-video-card{
  min-height:360px;
  display:grid;
  grid-template-columns:160px 1fr;
  align-items:center;
  gap:28px;
  padding:36px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.1);
  background:
    linear-gradient(135deg, rgba(53,194,208,.16), rgba(139,212,80,.08)),
    #151c24;
  box-shadow:0 24px 80px rgba(0,0,0,.28);
}
.demo-play{
  width:112px;
  height:112px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  color:#061015;
  background:linear-gradient(135deg,#35c2d0,#8bd450);
  box-shadow:0 20px 60px rgba(53,194,208,.24);
}
.demo-play svg{
  width:44px;
  height:44px;
  fill:currentColor;
  margin-left:5px;
}
.demo-video-card span{
  color:#8bd450;
  font-size:12px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.demo-video-card h3{
  max-width:760px;
  margin:10px 0;
  color:#fff;
  font-size:clamp(28px,4vw,54px);
  line-height:1.05;
}
.demo-video-card p{margin:0; color:#aebcc7; font-size:16px;}
.roi-section{
  background:#121820;
  border-top:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.roi-calculator{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,480px);
  gap:18px;
}
.roi-inputs,.roi-results{
  padding:24px;
  border-radius:10px;
  background:#151c24;
  border:1px solid rgba(255,255,255,.1);
}
.roi-inputs{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.roi-inputs label{
  display:grid;
  gap:8px;
  color:#d7e4ec;
  font-size:12px;
  font-weight:900;
}
.roi-inputs input{
  height:46px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  padding:0 12px;
  color:#fff;
  background:#10161d;
  outline:none;
}
.roi-inputs input:focus{border-color:#35c2d0; box-shadow:0 0 0 3px rgba(53,194,208,.18);}
.roi-results{display:grid; gap:12px;}
.roi-results div{
  padding:16px;
  border-radius:8px;
  background:#202a35;
  border:1px solid rgba(255,255,255,.08);
}
.roi-results span{display:block; color:#96a3b2; font-size:12px; font-weight:800;}
.roi-results strong{display:block; margin-top:6px; color:#8bd450; font-size:28px;}
.testimonial-section{background:#0f1418;}
.testimonial-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.testimonial-grid article{
  display:flex;
  min-height:260px;
  flex-direction:column;
  justify-content:space-between;
  padding:24px;
  border-radius:10px;
  background:#151c24;
  border:1px solid rgba(255,255,255,.1);
}
.testimonial-grid article > p{
  margin:0;
  color:#d7e4ec;
  font-size:17px;
  line-height:1.65;
}
.testimonial-grid b{display:block; color:#fff; margin-bottom:4px;}
.testimonial-grid span{color:#96a3b2; font-size:12px;}
.pricing-heading{
  max-width:760px;
  margin:0 auto 52px;
  text-align:center;
}
.pricing-heading h2{
  margin:0;
  color:#12151a;
  font-size:clamp(34px,4.5vw,54px);
  line-height:1.05;
  letter-spacing:0;
}
.pricing-heading p{
  max-width:560px;
  margin:20px auto 0;
  color:#454c58;
  line-height:1.65;
}
.pricing-heading a{
  display:inline-flex;
  margin-top:18px;
  color:#8f2de2;
  font-weight:900;
  text-decoration:none;
}
#pricing.landing-section{
  background:#fbfbfc;
  color:#111318;
}
#pricing .pricing-grid{
  max-width:1120px;
  margin:0 auto;
}
#pricing .price-card{
  position:relative;
  min-height:410px;
  display:flex;
  flex-direction:column;
  padding:30px 28px 28px;
  border:1px solid #d9dce3;
  background:#fff;
  color:#111318;
  box-shadow:none;
}
#pricing .price-card:first-child{border-radius:12px 0 0 12px;}
#pricing .price-card:last-child{border-radius:0 12px 12px 0;}
#pricing .price-card.featured{
  z-index:1;
  margin-top:0;
  transform:scale(1.005);
  border:3px solid #982de4;
  border-radius:14px;
  box-shadow:0 18px 42px rgba(152,45,228,.12);
}
#pricing .badge{
  position:absolute;
  left:50%;
  top:-24px;
  transform:translateX(-50%);
  min-width:164px;
  padding:8px 18px;
  border-radius:8px 8px 0 0;
  background:#982de4;
  color:#fff;
  text-align:center;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}
#pricing .price-card h3{
  margin:0 0 18px;
  color:#111318;
  font-size:22px;
  line-height:1.2;
  text-align:center;
}
#pricing .price-card h3 span{
  display:inline-flex;
  align-items:center;
  margin-left:8px;
  padding:4px 8px;
  border-radius:999px;
  background:#f4e7ff;
  color:#982de4;
  font-size:11px;
  font-weight:900;
  vertical-align:middle;
}
#pricing .price{
  margin:0 0 20px !important;
  color:#111318 !important;
  font-size:38px;
  font-weight:900;
  line-height:1;
  text-align:center;
}
#pricing .price span{
  margin-left:6px;
  color:#333946;
  font-size:14px;
  font-weight:500;
}
#pricing .pricing-cta{
  margin:0 0 22px;
  display:flex;
  align-items:center;
  justify-content:center;
  height:50px;
  border:1px solid #d9dce3;
  border-radius:7px;
  color:#111318;
  background:#fff;
  font-weight:900;
  text-decoration:none;
  box-shadow:0 7px 18px rgba(19,24,32,.06);
}
#pricing .price-card.featured .pricing-cta{
  border-color:#982de4;
  color:#fff;
  background:#982de4;
  box-shadow:0 12px 28px rgba(152,45,228,.24);
}
#pricing .pricing-benefits{
  margin-bottom:12px;
  color:#111318;
  font-size:14px;
}
#pricing .price-card ul{
  margin:0;
  padding:0;
  display:grid;
  gap:12px;
  list-style:none;
  color:#222935;
}
#pricing .price-card li{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:0;
  border:0;
  line-height:1.45;
}
#pricing .price-card li span{
  width:18px;
  height:18px;
  flex:0 0 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:1px;
  border-radius:999px;
  color:#fff;
  background:#13a464;
  font-size:12px;
  font-weight:900;
}
.faq-list{display:grid; gap:12px; max-width:920px;}
.faq-list details{padding:18px 20px;}
.faq-list summary{cursor:pointer; color:#fff; font-weight:900;}
.faq-list p{padding-top:12px;}
.landing-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:28px clamp(18px,5vw,78px);
  color:#aebcc7;
  border-top:1px solid rgba(255,255,255,.08);
}
.landing-footer span{color:#fff; font-weight:900;}
.landing-footer a{color:#8bd450; font-weight:900;}
.landing-footer.expanded{
  align-items:flex-start;
  gap:24px;
  background:#10161d;
}
.landing-footer.expanded p{
  max-width:420px;
  margin:14px 0 0;
  color:#96a3b2;
  line-height:1.6;
}
.landing-footer.expanded nav{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

@media (max-width:1080px){
  .landing-hero{grid-template-columns:1fr; min-height:auto;}
  .product-preview{max-width:760px;}
  .feature-grid,.pricing-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  #pricing .pricing-grid{gap:16px;}
  #pricing .price-card,
  #pricing .price-card:first-child,
  #pricing .price-card:last-child{border-radius:12px;}
  .problem-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .testimonial-grid{grid-template-columns:1fr;}
  .roi-calculator{grid-template-columns:1fr;}
  .roi-inputs{grid-template-columns:1fr;}
  .workflow-band{grid-template-columns:1fr;}
  .workflow-band ol{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:720px){
  .landing-nav{height:auto; min-height:66px; flex-wrap:wrap; padding:12px 16px;}
  .landing-nav nav{order:3; width:100%; justify-content:space-between; gap:10px;}
  .landing-hero{padding:132px 16px 52px;}
  .landing-hero-bg{background:linear-gradient(180deg, rgba(15,20,24,.94), rgba(15,20,24,.72)), url("/static/img/logo.svg") center 92px / 260px no-repeat, #0f1418;}
  .preview-body{grid-template-columns:1fr;}
  .preview-body aside{display:none;}
  .preview-stats,.feature-grid,.problem-grid,.pricing-grid,.workflow-band ol{grid-template-columns:1fr;}
  .landing-section,.problem-section,.workflow-band,.demo-section,.roi-section,.testimonial-section,.faq-section{padding:52px 16px;}
  .demo-video-card{grid-template-columns:1fr; min-height:auto; padding:24px;}
  .demo-play{width:84px; height:84px;}
  .landing-footer.expanded{flex-direction:column;}
  .landing-footer.expanded nav{justify-content:flex-start;}
  .preview-table div{grid-template-columns:1fr; gap:5px;}
  .proof-grid{grid-template-columns:1fr;}
}

/* ---- Auth page --------------------------------------------------------------- */
.auth-page{
  min-height:100vh;
  padding:32px clamp(18px,5vw,78px);
  color:#eef4f8;
  background:
    linear-gradient(120deg, rgba(15,20,24,.96), rgba(15,20,24,.72)),
    url("/static/img/logo.svg") right 8% top 14% / 360px no-repeat,
    #0f1418;
}
.auth-brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#fff;
  font-size:18px;
  font-weight:900;
  text-decoration:none;
}
.auth-brand img{width:36px; height:36px; border-radius:8px;}
.auth-shell{
  width:min(1120px,100%);
  margin:72px auto 0;
  display:grid;
  grid-template-columns:minmax(320px,420px) minmax(0,1fr);
  gap:18px;
}
.auth-shell.auth-shell-single{
  width:min(560px,100%);
  grid-template-columns:1fr;
}
.auth-summary,.auth-card{
  border:1px solid rgba(255,255,255,.1);
  border-radius:10px;
  background:#151c24;
  box-shadow:0 22px 70px rgba(0,0,0,.26);
}
.auth-summary{padding:30px;}
.auth-summary h1{margin:0 0 12px; color:#fff; font-size:46px; line-height:1;}
.auth-summary strong{display:block; color:#8bd450; font-size:24px; margin-bottom:14px;}
.auth-summary p,.auth-summary li{color:#aebcc7; line-height:1.7;}
.auth-summary ul{padding-left:18px; margin:22px 0;}
.auth-summary a{color:#35c2d0; font-weight:900; text-decoration:none;}
.auth-card{padding:30px;}
.auth-tabs{display:inline-flex; padding:4px; border-radius:9px; background:#10161d; border:1px solid rgba(255,255,255,.08);}
.auth-tabs button{
  height:36px;
  padding:0 16px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:#aebcc7;
  font-weight:900;
  cursor:pointer;
}
.auth-tabs button.active{background:#35c2d0; color:#061015;}
.auth-card h2{margin:24px 0 8px; color:#fff; font-size:32px;}
.auth-help{margin:0 0 24px; color:#aebcc7;}
.auth-card form{display:grid; gap:14px;}
.auth-card label{display:grid; gap:7px; color:#d7e4ec; font-weight:800; font-size:12px;}
.auth-card input{
  height:44px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  padding:0 12px;
  color:#fff;
  background:#10161d;
  outline:none;
}
.auth-card input:focus{border-color:#35c2d0; box-shadow:0 0 0 3px rgba(53,194,208,.18);}
.password-field{
  position:relative;
  display:block;
}
.password-field input{
  width:100%;
  min-width:0;
  padding-right:46px;
}
.auth-card .password-field button{
  position:absolute;
  top:50%;
  right:10px;
  width:28px;
  height:28px;
  transform:translateY(-50%);
  margin:0;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:#d7e4ec;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:none;
}
.auth-card .password-field button svg{
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.auth-card .password-field button:hover,
.auth-card .password-field button:focus-visible{
  background:transparent;
  color:#fff;
  outline:none;
}
.auth-card form button{
  height:48px;
  margin-top:8px;
  border:0;
  border-radius:8px;
  color:#061015;
  background:#8bd450;
  font-weight:900;
  cursor:pointer;
}
.auth-message{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:18px;
  padding:14px;
  border-radius:8px;
  background:rgba(139,212,80,.12);
  border:1px solid rgba(139,212,80,.3);
  color:#dff5cf;
}
.auth-message a{color:#8bd450; font-weight:900; text-decoration:none; white-space:nowrap;}

@media (max-width:820px){
  .auth-shell{grid-template-columns:1fr; margin-top:42px;}
  .auth-summary h1{font-size:38px;}
  .auth-message{align-items:flex-start; flex-direction:column;}
}

@media (max-width:640px){
  .dash-cards{grid-template-columns:1fr; padding:0 10px 10px;}
  .dash-card-value{font-size:24px;}
}

/* ---- Checkout page ----------------------------------------------------------- */
.checkout-page{
  min-height:100vh;
  padding:32px clamp(18px,5vw,78px);
  color:#eef4f8;
  background:
    linear-gradient(120deg, rgba(15,20,24,.96), rgba(15,20,24,.78)),
    #0f1418;
}
.checkout-shell{
  width:min(1120px,100%);
  margin:72px auto 0;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,420px);
  gap:18px;
}
.checkout-card,.checkout-summary{
  border:1px solid rgba(255,255,255,.1);
  border-radius:10px;
  background:#151c24;
  box-shadow:0 22px 70px rgba(0,0,0,.26);
}
.checkout-card{padding:32px;}
.checkout-card h1{margin:0 0 10px; color:#fff; font-size:42px; line-height:1.05;}
.checkout-help{margin:0 0 24px; color:#aebcc7; line-height:1.7;}
.payment-methods{display:grid; gap:10px; margin-bottom:22px;}
.payment-methods label{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:50px;
  padding:0 14px;
  border-radius:8px;
  color:#d7e4ec;
  background:#10161d;
  border:1px solid rgba(255,255,255,.1);
  font-weight:800;
}
.checkout-pay-btn{
  width:100%;
  height:50px;
  border:0;
  border-radius:8px;
  color:#061015;
  background:#8bd450;
  font-weight:900;
  cursor:pointer;
}
.checkout-success{
  display:grid;
  gap:6px;
  margin-top:18px;
  padding:16px;
  border-radius:8px;
  background:rgba(139,212,80,.12);
  border:1px solid rgba(139,212,80,.3);
}
.checkout-success b{color:#fff;}
.checkout-success span{color:#dff5cf;}
.checkout-success a{color:#8bd450; font-weight:900; text-decoration:none;}
.checkout-summary{padding:28px;}
.checkout-summary h2{margin:0 0 12px; color:#fff; font-size:28px;}
.checkout-price{color:#8bd450; font-size:36px; font-weight:900;}
.checkout-price span{color:#96a3b2; font-size:14px;}
.checkout-summary ul{margin:22px 0; padding:0; list-style:none;}
.checkout-summary li{padding:9px 0; color:#d7e4ec; border-bottom:1px solid rgba(255,255,255,.08);}
.checkout-total{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:14px 0;
  border-top:1px solid rgba(255,255,255,.12);
  border-bottom:1px solid rgba(255,255,255,.12);
}
.checkout-total span{color:#96a3b2;}
.checkout-total strong{color:#fff;}
.checkout-summary p{color:#aebcc7; line-height:1.6;}
.checkout-summary a{color:#35c2d0; font-weight:900; text-decoration:none;}

@media (max-width:820px){
  .checkout-shell{grid-template-columns:1fr; margin-top:42px;}
  .checkout-card h1{font-size:34px;}
}

/* ---- Color Hunt palette override ----------------------------------------- */
.landing-page,
.auth-page,
.checkout-page{
  color:#5C4F4A;
  background:#EDE9E6;
}
.landing-nav,
.auth-card,
.auth-summary,
.checkout-card,
.checkout-summary,
.product-preview,
.feature-grid article,
.problem-grid article,
.workflow-band li,
.demo-video-card,
.roi-inputs,
.roi-results,
.testimonial-grid article,
.faq-list details{
  background:#F7F3EF;
  border-color:#D7C9BE;
  color:#5C4F4A;
}
.landing-nav nav,
.landing-lead,
.social-proof span,
.section-heading p,
.feature-grid p,
.problem-grid p,
.workflow-band span,
.demo-video-card p,
.testimonial-grid span,
.faq-list p,
.auth-summary p,
.auth-summary li,
.auth-help,
.checkout-help,
.checkout-summary p{
  color:#5C4F4A;
}
.landing-brand span,
.landing-hero h1,
.section-heading h2,
.workflow-band h2,
.feature-grid h3,
.problem-grid h3,
.workflow-band b,
.demo-video-card h3,
.testimonial-grid b,
.faq-list summary,
.auth-brand span,
.auth-summary h1,
.auth-card h2,
.auth-card label,
.checkout-card h1,
.checkout-summary h2,
.checkout-total strong{
  color:#2F2926;
}
.landing-kicker,
.feature-grid span,
.demo-video-card span,
.roi-results strong,
.auth-summary strong,
.checkout-price,
.checkout-success a,
.auth-message a,
.landing-footer a{
  color:#5C766D;
}
.landing-nav-cta,
.landing-btn.primary,
.pill-primary,
.auth-card button[type="submit"],
.checkout-pay-btn,
#pricing .price-card.featured .pricing-cta,
#pricing .badge,
.demo-play,
.workflow-icon-wrap{
  color:#2F2926;
  background:#C9996B;
  border-color:#C9996B;
  box-shadow:0 14px 34px rgba(92,79,74,.14);
}
.landing-btn.secondary,
.auth-tabs,
.payment-methods label,
.roi-inputs input,
.auth-card input{
  color:#5C4F4A;
  background:#EDE9E6;
  border-color:#D7C9BE;
}
.auth-tabs button{color:#5C4F4A;}
.auth-tabs button.active{
  color:#EDE9E6;
  background:#5C766D;
}
.auth-card .password-field button{
  color:#5C4F4A;
  background:transparent;
}
.landing-hero-bg{
  background:
    linear-gradient(180deg, rgba(237,233,230,.84), rgba(237,233,230,.96)),
    url("/static/img/logo.svg") right 14% center / 360px no-repeat,
    #EDE9E6;
}
.enterprise-proof-row span,
.preview-top,
.preview-body aside,
.preview-stats div,
.preview-table div,
.roi-results div{
  background:#E4DDD8;
  color:#5C4F4A;
  border-color:#D7C9BE;
}
.preview-table div:first-child{
  background:#5C4F4A;
  color:#EDE9E6;
}
.preview-table em,
.preview-stats strong{color:#5C766D;}
.problem-section,
.workflow-band,
.roi-section,
.testimonial-section,
.faq-section,
.demo-section{
  background:#EDE9E6;
  border-color:#D7C9BE;
}
#pricing.landing-section{background:#EDE9E6;}
#pricing .pricing-heading h2,
#pricing .price-card h3,
#pricing .price,
#pricing .pricing-benefits{
  color:#2F2926 !important;
}
#pricing .pricing-heading p,
#pricing .price-card li,
#pricing .price span{
  color:#5C4F4A;
}
#pricing .pricing-heading a,
#pricing .price-card h3 span{
  color:#5C766D;
}
#pricing .price-card{
  background:#F7F3EF;
  border-color:#D7C9BE;
}
#pricing .price-card.featured{
  border-color:#5C766D;
  box-shadow:0 18px 42px rgba(92,118,109,.18);
}
#pricing .price-card h3 span{
  background:#E4DDD8;
}
#pricing .price-card li span{
  color:#EDE9E6;
  background:#5C766D;
}
#pricing .pricing-cta{
  color:#2F2926;
  background:#EDE9E6;
  border-color:#D7C9BE;
}
.landing-footer{
  background:#5C4F4A;
  color:#EDE9E6;
}
.landing-footer span,
.landing-footer p{color:#EDE9E6;}
.auth-page,
.checkout-page{
  background:
    linear-gradient(135deg, rgba(201,153,107,.18), rgba(92,118,109,.12)),
    #EDE9E6;
}
.auth-message,
.checkout-success{
  background:rgba(92,118,109,.14);
  border-color:rgba(92,118,109,.32);
  color:#5C4F4A;
}
.checkout-success b,
.checkout-success span{color:#5C4F4A;}
.checkout-total{
  border-color:#D7C9BE;
}
.checkout-summary li{
  color:#5C4F4A;
  border-color:#D7C9BE;
}
.checkout-summary a,
.auth-summary a{color:#5C766D;}

/* ---- Professional typography tuning -------------------------------------- */
.landing-page{font-size:15px;}
.landing-nav nav,
.landing-nav-cta,
.landing-btn,
.pricing-cta,
.auth-card button,
.checkout-pay-btn,
.pill{
  font-weight:700;
}
.landing-hero h1{
  font-size:clamp(56px,8vw,116px);
  font-weight:800;
  line-height:.94;
}
.landing-lead{
  font-size:clamp(17px,1.7vw,21px);
  line-height:1.72;
  font-weight:500;
}
.section-heading h2,
.workflow-band h2,
.pricing-heading h2{
  font-weight:800;
  line-height:1.12;
}
.feature-grid h3,
.problem-grid h3,
.demo-video-card h3,
.auth-card h2,
.checkout-card h1{
  font-weight:800;
  line-height:1.16;
}
.feature-grid p,
.problem-grid p,
.workflow-band span,
.testimonial-grid article > p,
.faq-list p,
.auth-summary p,
.auth-summary li,
.checkout-help{
  font-weight:500;
  line-height:1.75;
}
.brand-title,
.subhdr .tt,
.side-label,
.dash-card-head,
table.dtable thead th,
.table-search span,
.table-meta,
.table-pager{
  font-weight:700;
  letter-spacing:.01em;
}
table.dtable{
  font-size:12.5px;
  font-variant-numeric:tabular-nums;
}
table.dtable thead th{font-size:11.5px;}
.x-select,
.x-input,
.auth-card input,
.roi-inputs input{
  font-size:13px;
  font-weight:500;
}
.price,
#pricing .price{
  font-weight:800;
  letter-spacing:0;
}

/* ---- Testimonial carousel style ------------------------------------------ */
.testimonial-section{
  text-align:center;
}
.testimonial-heading{
  max-width:720px;
  margin:0 auto 42px;
}
.testimonial-heading p{
  margin:0 0 10px;
  color:#5C766D;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.testimonial-heading h2{
  margin:0;
  color:#2F2926;
  font-size:clamp(30px,3.6vw,48px);
  font-weight:800;
  line-height:1.12;
}
.testimonial-carousel{
  display:grid;
  grid-template-columns:48px minmax(0,1fr) 48px;
  align-items:center;
  gap:18px;
  max-width:980px;
  margin:0 auto;
}
.testimonial-track{
  display:grid;
  grid-template-columns:1fr 1.18fr 1fr;
  align-items:center;
  gap:24px;
}
.testimonial-card{
  min-height:180px;
  padding:24px;
  text-align:left;
  border:1px solid #D7C9BE;
  border-radius:8px;
  background:#F7F3EF;
  box-shadow:0 18px 48px rgba(92,79,74,.08);
  opacity:.72;
  transform:scale(.94);
}
.testimonial-card.active{
  min-height:230px;
  padding:30px;
  opacity:1;
  transform:scale(1);
  box-shadow:0 28px 70px rgba(92,79,74,.15);
}
.testimonial-card .quote-mark{
  display:block;
  height:32px;
  color:#C9996B;
  font-size:62px;
  font-weight:800;
  line-height:.8;
}
.testimonial-card p{
  margin:16px 0 22px;
  color:#5C4F4A;
  font-size:13px;
  line-height:1.7;
}
.testimonial-card.active p{
  font-size:14px;
}
.testimonial-person{
  display:flex;
  align-items:center;
  gap:12px;
  padding-top:16px;
  border-top:1px solid #D7C9BE;
}
.testimonial-avatar{
  width:38px;
  height:38px;
  flex:0 0 38px;
  display:grid;
  place-items:center;
  border-radius:999px;
  color:#EDE9E6;
  background:#5C766D;
  font-weight:800;
}
.testimonial-person b{
  display:block;
  color:#2F2926;
  font-size:14px;
}
.testimonial-person span{
  display:block;
  margin-top:2px;
  color:#5C4F4A;
  font-size:12px;
}
.testimonial-arrow{
  width:42px;
  height:42px;
  border:0;
  border-radius:999px;
  color:#5C4F4A;
  background:#F7F3EF;
  box-shadow:0 14px 34px rgba(92,79,74,.14);
  font-size:28px;
  line-height:1;
  cursor:default;
}
.testimonial-dots{
  display:flex;
  justify-content:center;
  gap:6px;
  margin-top:28px;
}
.testimonial-dots span{
  width:7px;
  height:7px;
  border-radius:999px;
  background:#D7C9BE;
}
.testimonial-dots span.active{
  width:18px;
  background:#C9996B;
}
@media (max-width:900px){
  .testimonial-carousel{grid-template-columns:1fr; gap:18px;}
  .testimonial-arrow{display:none;}
  .testimonial-track{grid-template-columns:1fr;}
  .testimonial-card{transform:none; opacity:1;}
  .testimonial-card.active{min-height:180px; padding:24px;}
}

/* ---- FAQ split panel ------------------------------------------------------ */
.faq-section{
  padding:84px clamp(18px,5vw,78px);
}
.faq-shell{
  max-width:1120px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(280px,390px) minmax(0,1fr);
  gap:54px;
  align-items:start;
  padding:44px;
  border:1px solid #D7C9BE;
  border-radius:8px;
  background:linear-gradient(135deg, rgba(247,243,239,.96), rgba(237,233,230,.92));
  box-shadow:0 28px 80px rgba(92,79,74,.12);
}
.faq-aside h2{
  margin:14px 0 26px;
  color:#2F2926;
  font-size:clamp(34px,4vw,52px);
  line-height:1.12;
  font-weight:800;
}
.faq-kicker{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0;
  color:#5C4F4A;
  font-size:13px;
  font-weight:700;
}
.faq-kicker span{
  width:9px;
  height:9px;
  border-radius:999px;
  background:#C9996B;
  box-shadow:0 0 0 4px rgba(201,153,107,.16);
}
.faq-call-card{
  padding:26px;
  border:1px solid #D7C9BE;
  border-radius:12px;
  background:#F7F3EF;
  box-shadow:0 20px 54px rgba(92,79,74,.1);
}
.faq-call-avatar{
  width:62px;
  height:62px;
  display:grid;
  place-items:center;
  border-radius:999px;
  color:#EDE9E6;
  background:#5C766D;
  font-size:24px;
  font-weight:800;
}
.faq-call-card h3{
  margin:20px 0 10px;
  color:#2F2926;
  font-size:27px;
  line-height:1.2;
}
.faq-call-card p{
  margin:0;
  color:#5C4F4A;
  line-height:1.7;
}
.faq-call-card a{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  margin-top:24px;
  border-radius:999px;
  color:#2F2926;
  background:#C9996B;
  font-weight:800;
  text-decoration:none;
  box-shadow:0 16px 34px rgba(201,153,107,.26);
}
.faq-list{
  max-width:none;
  display:grid;
  gap:12px;
}
.faq-list details{
  padding:0;
  border:1px solid #D7C9BE;
  border-radius:12px;
  background:#F7F3EF;
  box-shadow:0 14px 34px rgba(92,79,74,.08);
  overflow:hidden;
}
.faq-list summary{
  position:relative;
  display:flex;
  align-items:center;
  min-height:58px;
  padding:18px 54px 18px 20px;
  color:#2F2926;
  font-size:17px;
  font-weight:700;
  cursor:pointer;
  list-style:none;
}
.faq-list summary::-webkit-details-marker{display:none;}
.faq-list summary::after{
  content:"+";
  position:absolute;
  right:20px;
  top:50%;
  transform:translateY(-50%);
  color:#5C4F4A;
  font-size:24px;
  font-weight:500;
}
.faq-list details[open] summary::after{
  content:"\00d7";
  font-size:22px;
}
.faq-list p{
  margin:0;
  padding:0 20px 22px;
  color:#5C4F4A;
  line-height:1.75;
}
@media (max-width:900px){
  .faq-shell{
    grid-template-columns:1fr;
    gap:26px;
    padding:24px;
  }
}

/* ---- Video demo showcase -------------------------------------------------- */
.demo-section{
  padding:76px clamp(18px,5vw,78px);
  background:#EDE9E6;
}
.demo-showcase{
  max-width:1080px;
  margin:0 auto;
  padding:72px clamp(24px,6vw,96px);
  border:1px solid #D7C9BE;
  background:#F7F3EF;
  box-shadow:0 30px 90px rgba(92,79,74,.18);
}
.demo-showcase-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(280px,420px);
  gap:56px;
  align-items:start;
  margin-bottom:42px;
}
.demo-showcase h2{
  max-width:430px;
  margin:0;
  color:#2F2926;
  font-size:clamp(34px,4vw,54px);
  line-height:1.12;
  font-weight:800;
}
.demo-rating{
  display:flex;
  align-items:center;
  gap:7px;
  margin-top:18px;
  color:#2F2926;
  font-size:14px;
  flex-wrap:wrap;
}
.demo-rating b{
  color:#5C766D;
  font-size:24px;
  line-height:1;
}
.demo-rating strong{font-weight:800;}
.demo-rating small{color:#5C4F4A;}
.demo-copy p{
  max-width:420px;
  margin:0;
  color:#2F2926;
  font-size:15px;
  line-height:1.65;
}
.demo-actions{
  display:flex;
  gap:12px;
  margin-top:24px;
  flex-wrap:wrap;
}
.demo-btn{
  min-width:116px;
  min-height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:4px;
  padding:0 18px;
  font-weight:700;
  text-decoration:none;
}
.demo-btn.primary{
  color:#EDE9E6;
  background:#5C4F4A;
}
.demo-btn.secondary{
  color:#2F2926;
  border:1px solid #5C4F4A;
  background:transparent;
}
.demo-video-frame{
  position:relative;
  display:block;
  overflow:hidden;
  border-radius:12px;
  border:1px solid #9F8B80;
  aspect-ratio:16 / 9;
  background:#E4DDD8;
  box-shadow:0 24px 64px rgba(92,79,74,.18);
}
.demo-video-frame img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.demo-video-frame::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, transparent 58%, rgba(47,41,38,.18));
  pointer-events:none;
}
.demo-video-frame .demo-play{
  position:absolute;
  left:50%;
  top:50%;
  width:70px;
  height:70px;
  margin:0;
  display:grid;
  place-items:center;
  transform:translate(-50%,-50%);
  border-radius:999px;
  color:#5C766D;
  background:#F7F3EF;
  box-shadow:0 18px 38px rgba(47,41,38,.26);
  z-index:1;
}
.demo-video-frame .demo-play svg{
  width:30px;
  height:30px;
  fill:currentColor;
  margin-left:4px;
}
@media (max-width:860px){
  .demo-showcase{padding:36px 18px;}
  .demo-showcase-head{grid-template-columns:1fr; gap:22px; margin-bottom:28px;}
}

/* ---- Feature showcase redesign ------------------------------------------- */
#features.landing-section{
  padding:76px clamp(18px,5vw,78px);
  background:#EDE9E6;
}
.feature-showcase{
  max-width:1180px;
  margin:0 auto;
  padding:88px clamp(22px,6vw,98px);
  border:1px solid #D7C9BE;
  border-radius:8px;
  background:#F7F3EF;
  box-shadow:0 26px 76px rgba(92,79,74,.1);
}
.feature-heading{
  max-width:650px;
  margin:0 auto 44px;
  text-align:center;
}
.feature-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 11px;
  border:1px solid #D7C9BE;
  border-radius:999px;
  color:#5C766D;
  background:#EDE9E6;
  font-size:12px;
  font-weight:800;
}
.feature-heading h2{
  margin:16px 0 12px;
  color:#2F2926;
  font-size:clamp(34px,4.2vw,54px);
  line-height:1.08;
  font-weight:800;
}
.feature-heading p{
  max-width:560px;
  margin:0 auto;
  color:#5C4F4A;
  line-height:1.7;
}
#features .feature-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}
#features .feature-grid article{
  min-height:154px;
  padding:22px;
  border:1px solid #D7C9BE;
  border-radius:8px;
  background:#FDFBF8;
  box-shadow:0 12px 28px rgba(92,79,74,.05);
}
.feature-icon-wrap{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  margin-bottom:22px;
  border-radius:8px;
  color:#5C4F4A;
  background:#E4DDD8;
}
.feature-icon{
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.feature-icon-wrap.mapping,
.feature-icon-wrap.validation{background:rgba(201,153,107,.22); color:#9B6E45;}
.feature-icon-wrap.export,
.feature-icon-wrap.table{background:rgba(92,118,109,.18); color:#5C766D;}
.feature-icon-wrap.database,
.feature-icon-wrap.workflow{background:rgba(92,79,74,.14); color:#5C4F4A;}
.feature-icon-wrap.dashboard,
.feature-icon-wrap.subscription{background:#E6D2BF; color:#8B6245;}
#features .feature-grid h3{
  margin:0 0 10px;
  color:#2F2926;
  font-size:16px;
  line-height:1.25;
  font-weight:800;
}
#features .feature-grid p{
  margin:0;
  color:#5C4F4A;
  font-size:13px;
  line-height:1.65;
}
.feature-note{
  margin:36px 0 0;
  color:#5C4F4A;
  text-align:center;
  font-size:13px;
}
@media (max-width:1080px){
  #features .feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:640px){
  .feature-showcase{padding:44px 18px;}
  #features .feature-grid{grid-template-columns:1fr;}
}

/* ---- Problem showcase redesign ------------------------------------------- */
.problem-section{
  padding:78px clamp(18px,5vw,78px);
  background:#EDE9E6;
}
.problem-shell{
  max-width:1080px;
  margin:0 auto;
  overflow:hidden;
  border:1px solid #D7C9BE;
  border-radius:12px;
  background:#F7F3EF;
  box-shadow:0 28px 80px rgba(92,79,74,.12);
}
.problem-mini-nav{
  height:44px;
  display:flex;
  align-items:center;
  gap:24px;
  padding:0 28px;
  border-bottom:1px solid #D7C9BE;
  color:#5C4F4A;
  font-size:11px;
}
.problem-mini-nav strong{
  margin-right:auto;
  color:#2F2926;
  font-size:14px;
}
.problem-heading{
  max-width:900px;
  margin:0 auto;
  padding:64px 28px 24px;
}
.problem-heading p{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 14px;
  color:#5C4F4A;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
}
.problem-heading p span{
  width:30px;
  height:12px;
  border-radius:999px;
  background:#5C766D;
  box-shadow:inset 10px 0 0 rgba(237,233,230,.42);
}
.problem-heading h2{
  max-width:760px;
  margin:0;
  color:#2F2926;
  font-size:clamp(30px,3.8vw,48px);
  line-height:1.15;
  font-weight:800;
}
.problem-section .problem-grid{
  max-width:900px;
  margin:0 auto;
  padding:0 28px 78px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}
.problem-section .problem-grid article{
  min-height:0;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}
.problem-visual{
  position:relative;
  min-height:286px;
  margin-bottom:18px;
  overflow:hidden;
  border:1px solid #D7C9BE;
  background:#EDE9E6;
}
.problem-visual::before,
.problem-visual::after{
  content:"";
  position:absolute;
  width:12px;
  height:12px;
  background:#D7C9BE;
}
.problem-visual::before{left:0; top:0;}
.problem-visual::after{right:0; bottom:0;}
.visual-files{
  display:grid;
  grid-template-columns:repeat(3,54px);
  grid-auto-rows:54px;
  justify-content:center;
  align-content:center;
  gap:18px;
}
.folder{
  position:relative;
  width:44px;
  height:34px;
  align-self:center;
  justify-self:center;
  border:2px solid #CDBFB5;
  border-radius:5px;
  background:#F7F3EF;
}
.folder::before{
  content:"";
  position:absolute;
  left:5px;
  top:-8px;
  width:18px;
  height:9px;
  border:2px solid #CDBFB5;
  border-bottom:0;
  border-radius:4px 4px 0 0;
  background:#F7F3EF;
}
.folder.main{
  grid-column:2;
  transform:scale(1.35);
  border-color:#5C766D;
}
.folder.warn{
  border-color:#A65F55;
  background:rgba(166,95,85,.08);
}
.folder.muted{opacity:.45;}
.visual-speed{
  padding:42px 24px;
}
.mode-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  height:34px;
  padding:0 12px;
  border:1px solid #D7C9BE;
  border-radius:7px;
  color:#5C4F4A;
  background:#F7F3EF;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
}
.mode-row i{
  width:32px;
  height:18px;
  border:1px solid #CDBFB5;
  border-radius:999px;
  background:#EDE9E6;
}
.progress{
  height:14px;
  margin:22px 0 7px;
  border-radius:999px;
  background:#D7C9BE;
}
.progress span{
  display:block;
  width:31%;
  height:100%;
  border-radius:999px;
  background:#5C766D;
}
.visual-speed small{
  display:block;
  color:#5C4F4A;
  text-align:right;
  font-size:10px;
}
.mode-card{
  margin-top:34px;
  padding:24px 20px;
  border-radius:8px;
  background:#F7F3EF;
  box-shadow:0 16px 36px rgba(92,79,74,.12);
}
.mode-row.fast{background:#E6D2BF;}
.mode-card b{
  display:block;
  width:max-content;
  max-width:100%;
  margin:18px auto 0;
  padding:8px 12px;
  border-radius:999px;
  color:#8B6245;
  background:rgba(201,153,107,.2);
  font-size:11px;
}
.visual-code{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:28px;
  gap:16px;
}
.code-box{
  width:100%;
  padding:18px;
  border:1px solid #D7C9BE;
  border-radius:6px;
  background:#F7F3EF;
  color:#5C766D;
  font-family:Consolas,monospace;
  font-size:11px;
}
.code-box span{display:block;}
.success-line{
  padding:8px 16px;
  border-radius:999px;
  color:#5C766D;
  background:rgba(92,118,109,.14);
  font-size:11px;
  font-weight:800;
}
.error-file{
  width:48px;
  height:56px;
  border:2px solid #A65F55;
  border-radius:6px;
  background:rgba(166,95,85,.08);
}
.visual-code strong{
  display:block;
  padding:10px 14px;
  border-radius:4px;
  color:#EDE9E6;
  background:#5C4F4A;
  font-size:11px;
  text-align:center;
}
.problem-section .problem-grid h3{
  margin:0 0 8px;
  color:#2F2926;
  font-size:15px;
  line-height:1.35;
}
.problem-section .problem-grid p{
  margin:0;
  color:#5C4F4A;
  font-size:12px;
  line-height:1.65;
}
@media (max-width:980px){
  .problem-section .problem-grid{grid-template-columns:1fr; max-width:620px;}
  .problem-mini-nav span{display:none;}
}

/* ---- Problem luxe spotlight redesign ------------------------------------- */
.problem-section{
  padding:86px clamp(18px,5vw,78px);
  background:
    linear-gradient(90deg, rgba(47,41,38,.92), rgba(92,79,74,.82), rgba(47,41,38,.92)),
    #5C4F4A;
}
.problem-luxe-panel{
  max-width:1090px;
  margin:0 auto;
  padding:54px clamp(24px,5vw,72px) 58px;
  overflow:hidden;
  border:1px solid rgba(237,233,230,.38);
  border-radius:18px;
  background:
    radial-gradient(circle at 15% 12%, rgba(255,255,255,.66), transparent 18%),
    radial-gradient(circle at 55% 18%, rgba(247,243,239,.64), transparent 20%),
    radial-gradient(circle at 86% 13%, rgba(255,255,255,.62), transparent 20%),
    linear-gradient(135deg, rgba(237,233,230,.94), rgba(215,201,190,.82));
  box-shadow:0 34px 90px rgba(47,41,38,.38);
}
.problem-luxe-heading{
  max-width:720px;
  margin:0 auto 42px;
  text-align:center;
}
.problem-luxe-heading span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 14px;
  border-radius:8px;
  color:#EDE9E6;
  background:#2F2926;
  font-size:14px;
  font-weight:700;
}
.problem-luxe-heading h2{
  max-width:600px;
  margin:38px auto 0;
  color:#2F2926;
  font-size:clamp(38px,5vw,66px);
  line-height:1.02;
  font-weight:800;
}
.problem-luxe-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}
.problem-luxe-grid article{
  min-height:430px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:28px;
  border:1px solid rgba(247,243,239,.55);
  border-radius:18px;
  background:linear-gradient(145deg, rgba(247,243,239,.52), rgba(237,233,230,.24));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45), 0 18px 54px rgba(92,79,74,.12);
  backdrop-filter:blur(10px);
}
.problem-luxe-grid h3{
  margin:28px 0 10px;
  color:#2F2926;
  font-size:25px;
  line-height:1.12;
}
.problem-luxe-grid p{
  margin:0;
  color:#5C4F4A;
  font-size:15px;
  line-height:1.55;
}
.problem-object{
  position:relative;
  width:min(220px,100%);
  height:180px;
  margin:0 auto auto;
  transform-style:preserve-3d;
}
.problem-object.maze{
  width:210px;
  height:150px;
  margin-top:24px;
  border-radius:18px;
  background:
    linear-gradient(90deg, transparent 42%, #5C766D 42% 58%, transparent 58%) 50% 46%/70% 18px no-repeat,
    linear-gradient(#5C766D,#5C766D) 50% 28%/62% 18px no-repeat,
    linear-gradient(#5C766D,#5C766D) 50% 66%/62% 18px no-repeat,
    linear-gradient(90deg,#C9996B 20%,#5C766D 70%);
  box-shadow:0 24px 34px rgba(92,79,74,.28), inset 0 0 0 8px rgba(237,233,230,.45);
  transform:perspective(500px) rotateX(58deg) rotateZ(-25deg);
}
.problem-object.maze i{
  position:absolute;
  inset:24px;
  border:4px solid rgba(237,233,230,.74);
  border-radius:10px;
}
.problem-object.maze i:nth-child(2){inset:45px;}
.problem-object.maze i:nth-child(3){inset:66px;}
.problem-object.maze i:nth-child(4){
  inset:auto;
  left:50%;
  top:50%;
  width:26px;
  height:26px;
  border-radius:6px;
  background:#EDE9E6;
  transform:translate(-50%,-50%);
}
.problem-object.orbit{
  margin-top:18px;
}
.problem-object.orbit::before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:112px;
  height:112px;
  border:16px solid rgba(237,233,230,.7);
  border-radius:999px;
  box-shadow:inset 0 0 24px rgba(92,79,74,.15), 0 18px 36px rgba(92,79,74,.2);
  transform:translate(-50%,-50%) rotateX(60deg) rotateZ(28deg);
}
.problem-object.orbit i{
  position:absolute;
  width:58px;
  height:58px;
  border-radius:999px;
  background:radial-gradient(circle at 30% 25%, #EDE9E6, #5C766D 72%);
  box-shadow:0 18px 28px rgba(92,79,74,.22);
}
.problem-object.orbit i:nth-child(1){left:22px; top:16px;}
.problem-object.orbit i:nth-child(2){right:20px; bottom:18px;}
.problem-object.orbit i:nth-child(3){
  left:50%;
  top:50%;
  width:48px;
  height:48px;
  background:radial-gradient(circle at 30% 25%, #F7F3EF, #C9996B 70%);
  transform:translate(-50%,-50%);
}
.problem-object.vault{
  width:170px;
  height:170px;
  margin-top:14px;
  border-radius:14px;
  background:linear-gradient(145deg,#C9996B,#5C766D);
  box-shadow:0 26px 38px rgba(92,79,74,.3);
  transform:perspective(520px) rotateX(12deg) rotateY(-26deg);
}
.problem-object.vault::before{
  content:"";
  position:absolute;
  left:-18px;
  top:28px;
  width:78px;
  height:102px;
  border:3px solid rgba(237,233,230,.78);
  border-radius:8px;
  background:rgba(237,233,230,.28);
  box-shadow:inset 0 0 0 2px rgba(92,79,74,.14);
}
.problem-object.vault i{
  position:absolute;
  left:14px;
  top:78px;
  width:36px;
  height:3px;
  background:#A65F55;
  transform:rotate(33deg);
}
.problem-object.vault i:nth-child(2){transform:rotate(-33deg);}
@media (max-width:980px){
  .problem-luxe-grid{grid-template-columns:1fr;}
  .problem-luxe-grid article{min-height:360px;}
}
@media (max-width:640px){
  .problem-luxe-panel{padding:34px 16px;}
  .problem-luxe-heading h2{margin-top:24px;}
  .problem-luxe-grid article{padding:22px;}
}

/* ============================================================
   Workspace SaaS redesign layer
   Uses existing Color Hunt theme variables, logo, and typography.
   ============================================================ */
:root{
  --radius-card:16px;
  --radius-button:10px;
  --radius-input:10px;
  --shadow-soft:0 18px 54px color-mix(in srgb, var(--text) 16%, transparent);
  --shadow-hover:0 22px 68px color-mix(in srgb, var(--text) 20%, transparent);
  --workspace-pad:24px;
}

#app{
  background:
    radial-gradient(circle at 16% 10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 28%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 84%, white), var(--bg));
}
#body{padding:var(--workspace-pad); background:transparent;}
.main{background:transparent;}
#sidebar{
  width:260px;
  min-width:260px;
  background:color-mix(in srgb, var(--surface) 88%, white);
  border-right:1px solid color-mix(in srgb, var(--border) 78%, transparent);
  box-shadow:12px 0 40px color-mix(in srgb, var(--text) 7%, transparent);
  transition:width .22s ease,min-width .22s ease;
}
.brand{
  margin:14px;
  padding:16px 12px;
  border:1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius:16px;
  background:linear-gradient(145deg, color-mix(in srgb, var(--surface) 92%, white), color-mix(in srgb, var(--surface2) 82%, var(--accent) 8%));
  box-shadow:0 14px 34px color-mix(in srgb, var(--text) 8%, transparent);
}
.brand-icon img{width:52px;height:52px;border-radius:14px;}
.brand-title{font-size:13px; margin-top:8px;}
.brand-sub{font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.08em;}
.sidebar-toggle{border-radius:10px; transition:background .18s ease,color .18s ease,transform .18s ease;}
.sidebar-toggle:hover{transform:translateY(-1px);}
.nav-section-label{
  padding:14px 20px 6px;
  color:var(--text3);
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.nav-item{
  margin:3px 12px;
  min-height:42px;
  border-left:none;
  border-radius:12px;
  background:transparent;
  transition:background .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease;
}
.nav-item .nav-icon{width:42px;padding:0;display:flex;align-items:center;justify-content:center;}
.nav-item .nav-text{padding:0 12px 0 0;font-size:12px;font-weight:800;}
.nav-item:hover{
  background:color-mix(in srgb, var(--surface2) 70%, white);
  transform:translateX(2px);
}
.nav-item.active{
  background:linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--surface)), color-mix(in srgb, var(--accent2) 14%, var(--surface2)));
  box-shadow:0 12px 26px color-mix(in srgb, var(--accent) 14%, transparent);
}
.nav-item.active::before{
  content:"";
  width:4px;
  height:22px;
  margin-left:0;
  border-radius:999px;
  background:var(--accent);
}
.nav-divider,.hr{background:color-mix(in srgb, var(--border) 65%, transparent);}
#app.sidebar-collapsed #sidebar{width:72px;min-width:72px;}
#app.sidebar-collapsed .brand{margin:10px;padding:12px 8px;}
#app.sidebar-collapsed .nav-section-label{display:none;}
#app.sidebar-collapsed .nav-item{justify-content:center;margin:5px 10px;}
#app.sidebar-collapsed .nav-item.active::before{display:none;}

#topbar{
  height:72px;
  padding:0 var(--workspace-pad);
  border-bottom:1px solid color-mix(in srgb, var(--border) 65%, transparent);
  background:color-mix(in srgb, var(--surface) 76%, transparent);
  backdrop-filter:blur(18px);
}
.status{font-size:13px;font-weight:800;color:var(--text2);display:flex;align-items:center;gap:8px;}
.topbar-actions{display:flex;align-items:center;gap:12px;min-width:0;}
.stats{gap:8px;}
.stat-pill{
  min-width:78px;
  border-radius:999px;
  border:1px solid color-mix(in srgb, var(--border) 72%, transparent);
  background:color-mix(in srgb, var(--surface2) 72%, white);
  box-shadow:0 8px 22px color-mix(in srgb, var(--text) 7%, transparent);
}
.stat-pill .stat-value{font-size:15px;color:var(--text);}
.topbar-icon-btn,.profile-trigger{
  height:42px;
  border:1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius:999px;
  background:color-mix(in srgb, var(--surface) 84%, white);
  color:var(--text2);
  cursor:pointer;
  transition:transform .18s ease,background .18s ease,box-shadow .18s ease;
}
.topbar-icon-btn{width:42px;display:inline-flex;align-items:center;justify-content:center;position:relative;}
.topbar-icon-btn::after{
  content:"";
  position:absolute;
  top:9px;
  right:10px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--red);
  border:2px solid var(--surface);
}
.topbar-icon-btn:hover,.profile-trigger:hover{transform:translateY(-1px);box-shadow:0 12px 26px color-mix(in srgb, var(--text) 10%, transparent);}
.profile-menu{position:relative;}
.profile-trigger{display:flex;align-items:center;gap:10px;padding:4px 12px 4px 5px;}
.profile-avatar{
  width:32px;
  height:32px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  color:var(--bg);
  font-size:11px;
  font-weight:900;
}
.profile-copy{display:flex;flex-direction:column;align-items:flex-start;line-height:1.1;}
.profile-copy strong{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text);font-size:12px;}
.profile-copy small{color:var(--text3);font-size:10px;font-weight:800;}
.profile-dropdown{
  position:absolute;
  top:50px;
  right:0;
  width:230px;
  padding:8px;
  border-radius:14px;
  border:1px solid var(--border);
  background:var(--surface);
  box-shadow:var(--shadow-soft);
  opacity:0;
  pointer-events:none;
  transform:translateY(-6px);
  transition:opacity .16s ease,transform .16s ease;
  z-index:20;
}
.profile-menu.open .profile-dropdown{opacity:1;pointer-events:auto;transform:translateY(0);}
.profile-dropdown-head{display:grid;gap:3px;padding:10px;}
.profile-dropdown-head strong{color:var(--text);}
.profile-dropdown-head span{color:var(--text3);font-size:11px;overflow-wrap:anywhere;}
.profile-dropdown button{
  width:100%;
  border:0;
  border-radius:10px;
  padding:10px 12px;
  background:color-mix(in srgb, var(--red) 12%, var(--surface2));
  color:var(--red);
  cursor:pointer;
  font-weight:900;
  text-align:left;
}

.x-select,.x-input{
  min-height:38px;
  border-radius:var(--radius-input);
  border:1px solid color-mix(in srgb, var(--border) 82%, transparent);
  background:color-mix(in srgb, var(--surface) 88%, white);
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.x-select:focus,.x-input:focus{border-color:var(--accent);box-shadow:0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);}
.pill{
  border-radius:var(--radius-button);
  min-height:36px;
  transition:transform .16s ease,background .16s ease,box-shadow .16s ease,color .16s ease;
}
.pill:hover{transform:translateY(-1px);}
.pill-primary,.pill-teal,.pill-success{box-shadow:0 10px 24px color-mix(in srgb, var(--accent) 16%, transparent);}

.premium-card{
  border:1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius:var(--radius-card);
  background:linear-gradient(145deg, color-mix(in srgb, var(--surface) 92%, white), color-mix(in srgb, var(--surface2) 86%, var(--accent) 4%));
  box-shadow:var(--shadow-soft);
}
.view-dashboard{
  min-height:100%;
  height:auto;
  gap:18px;
}
.dashboard-welcome{
  min-height:150px;
  padding:26px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  overflow:hidden;
}
.dashboard-welcome .eyebrow{
  display:inline-flex;
  margin-bottom:10px;
  color:var(--accent2);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.dashboard-welcome h1{margin:0;color:var(--text);font-size:34px;line-height:1.1;}
.dashboard-welcome p{max-width:720px;margin:10px 0 0;color:var(--text2);font-size:14px;}
.welcome-status{
  min-width:230px;
  display:grid;
  gap:8px;
  padding:16px;
  border-radius:14px;
  background:color-mix(in srgb, var(--surface2) 72%, white);
  border:1px solid color-mix(in srgb, var(--border) 72%, transparent);
}
.welcome-status strong{color:var(--text);font-size:18px;}
.welcome-status span:last-child{color:var(--text3);font-size:12px;line-height:1.5;}
.dashboard-actions,.subhdr{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0;
}
.dashboard-actions .tt,.subhdr .tt{
  color:var(--text);
  font-size:13px;
  font-weight:900;
  display:flex;
  align-items:center;
  gap:8px;
}
.dashboard-actions .btn-row,.subhdr .btn-row{display:flex;gap:8px;flex-wrap:wrap;}
.dash-cards{
  padding:0;
  grid-template-columns:repeat(4,minmax(190px,1fr));
  gap:16px;
}
.dash-card{
  min-height:172px;
  padding:18px;
  border-radius:var(--radius-card);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.dash-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-hover);border-color:color-mix(in srgb, var(--accent) 42%, var(--border));}
.dash-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px;}
.dash-icon{
  width:46px;
  height:46px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--accent);
  background:color-mix(in srgb, var(--accent) 13%, var(--surface));
}
.dash-icon .ui-icon{width:23px;height:23px;}
.dash-card-head{margin:0;color:var(--text3);font-size:11px;letter-spacing:0;text-transform:none;}
.dash-card-value{font-size:28px;color:var(--text);margin-top:8px;}
.dash-card-label{font-size:12px;color:var(--text3);}
.status-badge{
  display:inline-flex;
  align-items:center;
  width:max-content;
  min-height:24px;
  padding:4px 9px;
  border-radius:999px;
  color:var(--text2);
  background:color-mix(in srgb, var(--surface3) 74%, transparent);
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.status-badge.success{color:var(--green);background:color-mix(in srgb, var(--green) 14%, var(--surface));}
.status-badge.pending{color:var(--gold);background:color-mix(in srgb, var(--gold) 16%, var(--surface));}
.status-badge.danger{color:var(--red);background:color-mix(in srgb, var(--red) 14%, var(--surface));}
.usage-card{grid-column:span 2;}
.usage-count{font-size:24px;font-weight:900;color:var(--text);margin:6px 0 12px;}
.usage-bar{
  height:10px;
  border-radius:999px;
  overflow:hidden;
  background:color-mix(in srgb, var(--surface3) 72%, white);
}
.usage-bar span{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--accent),var(--accent2));
  min-width:4px;
}
.usage-meta{display:flex;justify-content:space-between;gap:10px;margin-top:10px;color:var(--text3);font-size:11px;}
.usage-meta strong{color:var(--text2);}
.dashboard-grid{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:16px;
}
.analytics-card{grid-column:span 8;padding:18px;}
.status-card{grid-column:span 4;padding:18px;}
.insight-card,.activity-card{grid-column:span 6;padding:18px;}
.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.section-head > div:first-child{display:flex;align-items:center;gap:8px;color:var(--text);}
.section-head strong{font-size:14px;color:var(--text);}
.section-head .ui-icon{color:var(--accent);width:18px;height:18px;}
.segmented-control{
  display:inline-flex;
  gap:4px;
  padding:4px;
  border-radius:999px;
  background:color-mix(in srgb, var(--surface2) 76%, white);
  border:1px solid color-mix(in srgb, var(--border) 72%, transparent);
}
.segmented-control button{
  border:0;
  border-radius:999px;
  padding:7px 11px;
  background:transparent;
  color:var(--text3);
  cursor:pointer;
  font-size:11px;
  font-weight:900;
}
.segmented-control button.active{background:var(--accent);color:var(--bg);}
.area-chart{width:100%;height:240px;display:block;}
.chart-grid{stroke:color-mix(in srgb, var(--border) 58%, transparent);stroke-width:1;fill:none;}
.chart-area{fill:url(#chartFill);}
.chart-line{fill:none;stroke:var(--accent);stroke-width:4;stroke-linecap:round;stroke-linejoin:round;}
.chart-dot{fill:var(--surface);stroke:var(--accent);stroke-width:3;}
.donut-chart{width:190px;max-width:100%;display:block;margin:0 auto 8px;overflow:visible;}
.donut-track,.donut-seg{fill:none;stroke-width:12;transform:rotate(-90deg);transform-origin:60px 60px;stroke-linecap:round;}
.donut-track{stroke:color-mix(in srgb, var(--surface3) 64%, white);}
.donut-seg.success{stroke:var(--green);}
.donut-seg.pending{stroke:var(--gold);}
.donut-seg.danger{stroke:var(--red);}
.donut-total{font-size:22px;font-weight:900;fill:var(--text);}
.donut-label{font-size:10px;font-weight:800;fill:var(--text3);text-transform:uppercase;}
.status-legend{display:grid;gap:9px;}
.status-legend div{display:flex;align-items:center;gap:9px;color:var(--text2);}
.status-legend strong{min-width:32px;color:var(--text);font-size:15px;}
.status-legend em{font-style:normal;color:var(--text3);font-size:12px;}
.legend-dot{width:10px;height:10px;border-radius:50%;background:var(--text3);}
.legend-dot.success{background:var(--green);}
.legend-dot.pending{background:var(--gold);}
.legend-dot.danger{background:var(--red);}
.insight-card ul{list-style:none;margin:0;padding:0;display:grid;gap:12px;}
.insight-card li{display:flex;align-items:flex-start;gap:10px;color:var(--text2);font-weight:800;}
.insight-card li .ui-icon{width:18px;height:18px;color:var(--green);margin-top:1px;}
.activity-feed{display:grid;gap:2px;}
.activity-item{
  display:grid;
  grid-template-columns:28px 1fr;
  gap:10px;
  padding:10px 0;
  position:relative;
}
.activity-item:not(:last-child)::after{
  content:"";
  position:absolute;
  left:13px;
  top:36px;
  bottom:-6px;
  width:1px;
  background:color-mix(in srgb, var(--border) 76%, transparent);
}
.activity-dot{
  width:28px;
  height:28px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--green);
  background:color-mix(in srgb, var(--green) 12%, var(--surface));
  z-index:1;
}
.activity-dot .ui-icon{width:15px;height:15px;}
.activity-item strong{display:block;color:var(--text);font-size:13px;}
.activity-item small{display:block;color:var(--text3);font-size:11px;margin-top:3px;}
.dash-table-wrap{
  padding:18px;
  min-height:430px;
}

.table-scroll{
  border-radius:var(--radius-card);
  border:1px solid color-mix(in srgb, var(--border) 72%, transparent);
  background:color-mix(in srgb, var(--surface) 84%, white);
}
.table-shell{border-radius:var(--radius-card);}
.table-toolbar,.table-pager{
  background:color-mix(in srgb, var(--surface) 90%, white);
  border-color:color-mix(in srgb, var(--border) 72%, transparent);
}
.table-toolbar{padding:12px;border-radius:16px 16px 0 0;}
.table-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.table-search{min-width:300px;}
.table-search .ui-icon{color:var(--text3);}
.table-filter{height:38px;}
.table-pager{padding:12px;border-radius:0 0 16px 16px;}
.table-page-size{width:142px;}
table.dtable{font-size:12px;border-collapse:separate;border-spacing:0;}
table.dtable thead th{
  position:sticky;
  top:0;
  z-index:2;
  padding:12px 10px;
  background:color-mix(in srgb, var(--row-hdr) 88%, var(--accent) 8%);
  color:var(--bg);
  border-bottom:none;
}
table.dtable thead th:first-child{border-top-left-radius:10px;}
table.dtable thead th:last-child{border-top-right-radius:10px;}
table.dtable tbody td{
  height:38px;
  padding:9px 10px;
  border-bottom:1px solid color-mix(in srgb, var(--border) 54%, transparent);
}
table.dtable tbody tr.row-b{background:color-mix(in srgb, var(--surface2) 45%, transparent);}
table.dtable tbody tr.row-a{background:color-mix(in srgb, var(--surface) 42%, transparent);}
table.dtable tbody tr:hover td{
  background:color-mix(in srgb, var(--accent) 14%, var(--surface));
}

.view-pajak-keluaran,.view-doc-lain-masukan,.view-tpk,.view-faktur,.view-archive,.view-mapping{height:100%;gap:16px;}
.pk-tab-bar,.dlm-tab-bar,.tabs{margin:0;}
.tab-bar{
  gap:6px;
  padding:4px;
  border:1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius:14px;
  background:color-mix(in srgb, var(--surface) 76%, white);
  width:max-content;
  max-width:100%;
  overflow:auto;
}
.tab-btn{
  border-radius:10px;
  padding:10px 15px;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}
.tab-btn.active{background:var(--accent);color:var(--bg);}
.tab-btn:hover:not(.active){transform:translateY(-1px);}
.pk-content,.dlm-content,.tab-panels{background:transparent;}
.upload-card,.apply-panel,.mapping-left,.modal,.db-form,.db-table-wrap,.archive-picker-row,.subscription-lock{
  border-radius:var(--radius-card);
  box-shadow:var(--shadow-soft);
}
.upload-card{
  padding:50px;
  border:1px solid color-mix(in srgb, var(--border) 72%, transparent);
}
.mapping-left{
  border-radius:var(--radius-card);
  overflow:hidden;
}
.mapping-table-wrap,.tpk-table-wrap,.dlm-table-wrap,.archive-table-wrap{padding:0;min-height:0;}
.apply-panel{margin:0;padding:18px;}
.summary-grid{gap:10px;}
.summary-pill{
  border-radius:12px;
  border:1px solid color-mix(in srgb, var(--border) 72%, transparent);
  background:color-mix(in srgb, var(--surface2) 68%, white);
  padding:10px 12px;
}
.date-alert{margin:0;border-radius:14px;}
.tabs{min-height:520px;}
.tab-panels{padding-top:10px;}
.modal-overlay{backdrop-filter:blur(6px);}
.modal{
  border-radius:18px;
  border:1px solid color-mix(in srgb, var(--border) 72%, transparent);
  background:var(--surface);
}
.modal-header,.modal-footer{background:color-mix(in srgb, var(--surface) 88%, white);}
.modal-section .sec-body{border-radius:14px;padding:8px 0;background:color-mix(in srgb, var(--surface2) 68%, white);}
.form-row{gap:10px;padding:8px 14px;}

@media (max-width:1279px){
  :root{--workspace-pad:18px;}
  .dash-cards{grid-template-columns:repeat(2,minmax(0,1fr));}
  .usage-card{grid-column:span 1;}
  .analytics-card,.status-card,.insight-card,.activity-card{grid-column:span 12;}
  .dashboard-welcome{align-items:flex-start;flex-direction:column;}
}
@media (max-width:980px){
  #body{padding:14px;}
  #sidebar{box-shadow:none;}
  .nav-section-label{display:none;}
  #topbar{height:auto;min-height:86px;padding:12px 14px;}
  .topbar-actions{width:100%;justify-content:space-between;align-items:flex-start;}
  .stats{max-width:calc(100vw - 120px);overflow:auto;justify-content:flex-start;}
  .profile-copy{display:none;}
  .dashboard-welcome h1{font-size:28px;}
  .table-search{min-width:100%;}
  .table-tools{width:100%;justify-content:flex-start;}
}
@media (max-width:767px){
  .dash-cards{grid-template-columns:1fr;}
  .dashboard-grid{grid-template-columns:1fr;}
  .analytics-card,.status-card,.insight-card,.activity-card{grid-column:auto;}
  .dashboard-welcome{padding:20px;}
  .welcome-status{min-width:0;width:100%;}
  .segmented-control{width:100%;justify-content:space-between;}
  .section-head{align-items:flex-start;flex-direction:column;}
  .profile-dropdown{right:-6px;}
  .upload-card{padding:32px 20px;}
}
