:root {
  --acd-navy:#1f2a63;
  --acd-navy-dark:#101842;
  --acd-deep:#070d2b;
  --acd-orange:#f5a13a;
  --acd-green:#25D366;
  --acd-bg:#f6f7fb;
  --acd-text:#111827;
  --acd-muted:#667085;
  --acd-border:rgba(31,42,99,.12);
  --acd-white:#fff;
  --acd-shadow:0 24px 70px rgba(16,24,64,.12);
}
html,body{min-height:100%;}
body:has(.acd-shell){background:var(--acd-bg)!important;}
body:has(.acd-shell) .site-header,body:has(.acd-shell) header:not(.acd-topbar),body:has(.acd-shell) .site-footer,body:has(.acd-shell) footer:not(.alestiwa-footer-section){display:none!important;}
body:has(.acd-shell) .entry-title,body:has(.acd-shell) .page-title{display:none!important;}
body:has(.acd-shell) .entry-content,body:has(.acd-shell) .wp-site-blocks,body:has(.acd-shell) main{max-width:none!important;margin:0!important;padding:0!important;}
.acd-shell{font-family:inherit;min-height:100vh;width:100%;box-sizing:border-box;color:var(--acd-text);}
.acd-shell *{box-sizing:border-box;}
.acd-login-shell{display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 15% 15%,rgba(245,161,58,.24),transparent 28%),radial-gradient(circle at 88% 22%,rgba(255,255,255,.12),transparent 28%),linear-gradient(135deg,#070d2b 0%,#101842 45%,#1f2a63 100%);overflow:hidden;position:relative;}
.acd-login-shell:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);background-size:58px 58px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.7),transparent 88%);pointer-events:none;}
.acd-login-layout{position:relative;z-index:2;width:min(1120px,100%);display:grid;grid-template-columns:minmax(320px,520px) 1fr;gap:28px;align-items:stretch;}
.acd-glass,.acd-login-visual,.acd-orbit-card{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.15);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);box-shadow:0 34px 90px rgba(0,0,0,.28);}
.acd-login-panel{border-radius:34px;padding:34px;color:#fff;}
.acd-logo-card{display:inline-flex;background:rgba(255,255,255,.92);border-radius:22px;padding:12px 16px;margin-bottom:24px;box-shadow:0 18px 42px rgba(0,0,0,.18);}
.acd-logo-card img{width:190px;max-width:100%;height:auto;display:block;}
.acd-badge{display:inline-flex;align-items:center;gap:10px;border-radius:999px;padding:10px 15px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);font-weight:900;font-size:14px;color:rgba(255,255,255,.9);}
.acd-badge span{width:9px;height:9px;border-radius:50%;background:var(--acd-orange);box-shadow:0 0 0 7px rgba(245,161,58,.16);}
.acd-login-panel h1{margin:22px 0 10px;color:#fff;font-weight:950;font-size:clamp(32px,4vw,52px);line-height:1.15;letter-spacing:-1px;}
.acd-login-panel p{margin:0 0 24px;color:rgba(255,255,255,.74);font-size:16.5px;line-height:1.9;}
.acd-alert{border-radius:16px;padding:14px 16px;margin:0 0 18px;font-weight:800;line-height:1.7;}
.acd-alert-error{background:rgba(239,68,68,.14);border:1px solid rgba(239,68,68,.24);color:#fff;}
.acd-alert-success{background:rgba(34,197,94,.16);border:1px solid rgba(34,197,94,.26);color:#fff;}
.acd-login-form{display:grid;gap:16px;}
.acd-field{display:grid;gap:8px;color:#fff;font-weight:900;font-size:14px;}
.acd-field input{width:100%;min-height:54px;border-radius:16px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.1);color:#fff;padding:12px 15px;outline:none;font-size:15px;transition:.22s;}
.acd-field input:focus{border-color:rgba(245,161,58,.8);box-shadow:0 0 0 4px rgba(245,161,58,.14);}
.acd-form-row{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.acd-check{display:flex;align-items:center;gap:8px;color:rgba(255,255,255,.78);font-weight:800;font-size:14px;}
.acd-primary-btn{min-height:56px;border:0;border-radius:999px;background:var(--acd-orange);color:#fff;font-weight:950;font-size:16px;cursor:pointer;box-shadow:0 18px 38px rgba(245,161,58,.28);transition:.25s;}
.acd-primary-btn:hover{transform:translateY(-3px);box-shadow:0 26px 56px rgba(245,161,58,.38);}
.acd-helper-note{margin-top:18px;color:rgba(255,255,255,.62);font-size:13.5px;line-height:1.7;font-weight:700;}
.acd-login-visual{border-radius:34px;min-height:100%;display:grid;place-items:center;position:relative;overflow:hidden;}
.acd-login-visual:before{content:"";position:absolute;width:440px;height:440px;border-radius:50%;background:radial-gradient(circle,rgba(245,161,58,.28),transparent 62%);}
.acd-orbit-card{position:relative;border-radius:34px;padding:38px;width:min(380px,90%);text-align:center;color:#fff;}
.acd-orbit-icon{width:96px;height:96px;border-radius:32px;margin:0 auto 20px;display:grid;place-items:center;background:var(--acd-orange);font-size:46px;box-shadow:0 20px 44px rgba(245,161,58,.3);}
.acd-orbit-card strong{display:block;font-size:30px;font-weight:950;margin-bottom:10px;}
.acd-orbit-card span{color:rgba(255,255,255,.72);font-weight:700;}
.acd-dashboard-shell{display:grid;grid-template-columns:280px 1fr;background:var(--acd-bg);}
.acd-sidebar{position:sticky;top:0;min-height:100vh;padding:24px;background:linear-gradient(180deg,#070d2b 0%,#101842 54%,#1f2a63 100%);color:#fff;display:flex;flex-direction:column;gap:24px;overflow:hidden;}
.acd-sidebar:before{content:"";position:absolute;width:360px;height:360px;border-radius:50%;background:radial-gradient(circle,rgba(245,161,58,.18),transparent 64%);bottom:-180px;right:-130px;pointer-events:none;}
.acd-side-logo{position:relative;z-index:2;background:rgba(255,255,255,.94);border-radius:24px;padding:14px;box-shadow:0 18px 42px rgba(0,0,0,.18);}
.acd-side-logo img{display:block;width:100%;height:auto;}
.acd-side-nav{position:relative;z-index:2;display:grid;gap:10px;}
.acd-side-nav a,.acd-logout{display:flex;align-items:center;gap:10px;min-height:48px;border-radius:16px;padding:0 15px;color:rgba(255,255,255,.78);text-decoration:none;font-weight:900;transition:.2s;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);}
.acd-side-nav a.active,.acd-side-nav a:hover,.acd-logout:hover{background:var(--acd-orange);color:#fff;transform:translateY(-2px);}
.acd-logout{margin-top:auto;position:relative;z-index:2;justify-content:center;}
.acd-main{min-width:0;padding:28px;width:100%;}
.acd-topbar{display:flex!important;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px;background:#fff;border:1px solid var(--acd-border);border-radius:30px;padding:26px;box-shadow:var(--acd-shadow);}
.acd-kicker{color:var(--acd-orange);font-weight:950;margin-bottom:8px;}
.acd-topbar h1{margin:0;color:var(--acd-navy);font-size:clamp(28px,3.5vw,46px);line-height:1.15;font-weight:950;letter-spacing:-.8px;}
.acd-topbar p{margin:10px 0 0;color:var(--acd-muted);font-size:16px;line-height:1.8;font-weight:600;}
.acd-mobile-logout{display:none;background:var(--acd-orange);color:#fff;white-space:nowrap;}
.acd-stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:22px;}
.acd-stat-card{position:relative;overflow:hidden;background:#fff;border:1px solid var(--acd-border);border-radius:26px;padding:22px;box-shadow:var(--acd-shadow);}
.acd-stat-card:before{content:"";position:absolute;width:150px;height:150px;border-radius:50%;background:rgba(245,161,58,.12);top:-80px;inset-inline-end:-70px;}
.acd-stat-card span{position:relative;display:block;color:var(--acd-muted);font-weight:900;font-size:14px;margin-bottom:14px;}
.acd-stat-card strong{position:relative;color:var(--acd-navy);font-size:40px;line-height:1;font-weight:950;}
.acd-card{background:#fff;border:1px solid var(--acd-border);border-radius:30px;box-shadow:var(--acd-shadow);overflow:hidden;}
.acd-card-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px;border-bottom:1px solid var(--acd-border);}
.acd-card-head h2{margin:0;color:var(--acd-navy);font-size:25px;font-weight:950;}
.acd-controls{display:flex;gap:10px;align-items:center;flex:1;justify-content:flex-end;}
.acd-controls input,.acd-controls select{min-height:46px;border:1px solid var(--acd-border);border-radius:15px;background:#f9fafb;padding:0 14px;color:var(--acd-text);outline:none;font-weight:700;}
.acd-controls input{width:min(420px,100%);}
.acd-controls input:focus,.acd-controls select:focus{border-color:rgba(245,161,58,.65);box-shadow:0 0 0 4px rgba(245,161,58,.12);background:#fff;}
.acd-table-wrap{width:100%;overflow:auto;}
.acd-table{width:100%;border-collapse:collapse;min-width:980px;}
.acd-table th{background:#f8fafc;color:var(--acd-navy);font-size:13px;font-weight:950;text-align:inherit;padding:16px;border-bottom:1px solid var(--acd-border);white-space:nowrap;}
.acd-table td{padding:16px;border-bottom:1px solid rgba(31,42,99,.08);color:#344054;font-size:14px;font-weight:650;vertical-align:middle;}
.acd-table tr:hover td{background:rgba(245,161,58,.045);}
.acd-ltr{direction:ltr;unicode-bidi:embed;}
.acd-status{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;padding:7px 11px;border-radius:999px;font-size:12.5px;font-weight:950;border:1px solid transparent;}
.acd-status-new{background:rgba(59,130,246,.1);color:#1d4ed8;border-color:rgba(59,130,246,.18);}
.acd-status-reviewing{background:rgba(245,161,58,.14);color:#a85f00;border-color:rgba(245,161,58,.24);}
.acd-status-contacted{background:rgba(139,92,246,.12);color:#6d28d9;border-color:rgba(139,92,246,.22);}
.acd-status-completed{background:rgba(34,197,94,.12);color:#15803d;border-color:rgba(34,197,94,.24);}
.acd-status-cancelled{background:rgba(239,68,68,.1);color:#b91c1c;border-color:rgba(239,68,68,.22);}
.acd-view-btn{min-height:38px;border:0;border-radius:999px;background:var(--acd-navy);color:#fff;padding:0 15px;font-weight:950;cursor:pointer;transition:.2s;}
.acd-view-btn:hover{background:var(--acd-orange);transform:translateY(-2px);}
.acd-empty{padding:38px;text-align:center;color:var(--acd-muted);font-weight:900;}
.acd-modal{position:fixed;inset:0;z-index:999999;display:none;align-items:center;justify-content:center;padding:18px;}
.acd-modal.is-open{display:flex;}
.acd-modal-backdrop{position:absolute;inset:0;background:rgba(7,13,43,.66);backdrop-filter:blur(8px);}
.acd-modal-card{position:relative;width:min(760px,100%);max-height:88vh;overflow:auto;background:#fff;border-radius:30px;box-shadow:0 34px 90px rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.3);}
.acd-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px;border-bottom:1px solid var(--acd-border);}
.acd-modal-head h3{margin:0;color:var(--acd-navy);font-weight:950;font-size:24px;}
.acd-modal-head button{width:42px;height:42px;border:0;border-radius:14px;background:#f2f4f7;color:var(--acd-navy);font-size:26px;cursor:pointer;}
.acd-modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:22px;}
.acd-modal-item{border:1px solid var(--acd-border);background:#f9fafb;border-radius:18px;padding:14px;}
.acd-modal-item span{display:block;color:var(--acd-muted);font-size:12.5px;font-weight:900;margin-bottom:6px;}
.acd-modal-item strong{display:block;color:var(--acd-text);font-size:15px;font-weight:900;line-height:1.6;word-break:break-word;}
.acd-modal-details{padding:0 22px 22px;}
.acd-modal-details strong{display:block;color:var(--acd-navy);font-weight:950;margin-bottom:8px;}
.acd-modal-details p{margin:0;background:#f9fafb;border:1px solid var(--acd-border);border-radius:18px;padding:14px;line-height:1.8;color:#344054;white-space:pre-wrap;}
@media (max-width:1100px){.acd-dashboard-shell{grid-template-columns:1fr}.acd-sidebar{position:relative;min-height:auto;flex-direction:row;align-items:center;padding:14px 18px}.acd-side-logo{width:180px;flex-shrink:0}.acd-side-nav{display:flex;flex:1}.acd-desktop-only{display:none}.acd-mobile-logout{display:flex}.acd-main{padding:18px}.acd-stats-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:780px){.acd-login-shell{padding:14px;place-items:start center}.acd-login-layout{grid-template-columns:1fr}.acd-login-panel{padding:24px;border-radius:28px}.acd-login-visual{display:none}.acd-logo-card img{width:165px}.acd-dashboard-shell{display:block}.acd-sidebar{border-radius:0 0 24px 24px;flex-wrap:wrap}.acd-side-logo{width:150px}.acd-side-nav{width:100%;order:2}.acd-side-nav a{flex:1;justify-content:center}.acd-main{padding:14px}.acd-topbar{flex-direction:column;align-items:flex-start;padding:20px;border-radius:24px}.acd-mobile-logout{width:100%;justify-content:center}.acd-stats-grid{grid-template-columns:1fr}.acd-card-head{flex-direction:column;align-items:stretch}.acd-controls{flex-direction:column;align-items:stretch}.acd-controls input,.acd-controls select{width:100%}.acd-table{min-width:0}.acd-table thead{display:none}.acd-table,.acd-table tbody,.acd-table tr,.acd-table td{display:block;width:100%}.acd-table tr{padding:14px;border-bottom:1px solid var(--acd-border)}.acd-table td{border:0;padding:10px 0;display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.acd-table td:before{content:attr(data-label);color:var(--acd-navy);font-weight:950;min-width:112px}.acd-view-btn{width:100%}.acd-modal-grid{grid-template-columns:1fr}.acd-modal-card{border-radius:24px}.acd-modal-head{padding:18px}.acd-modal-grid,.acd-modal-details{padding:18px}} 


/* V3 Desktop stability fixes */
html:has(.acd-shell), body:has(.acd-shell), body.acd-page {
  width: 100% !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  background: var(--acd-bg) !important;
}
body.acd-page .site-header,
body.acd-page header:not(.acd-topbar),
body.acd-page .site-footer,
body.acd-page footer:not(.alestiwa-footer-section),
body.acd-page .entry-title,
body.acd-page .page-title,
body.acd-page .wp-block-post-title,
body.acd-page .wp-site-blocks > header,
body.acd-page .wp-site-blocks > footer {
  display: none !important;
}
body.acd-page .entry-content,
body.acd-page .wp-site-blocks,
body.acd-page main,
body.acd-page .site-main,
body.acd-page .content-area,
body.acd-page article,
body.acd-page .wp-block-group,
body.acd-page .wp-block-post-content {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.acd-shell {
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  position: relative;
}
@media (min-width:1101px) {
  .acd-dashboard-shell {
    display: block !important;
    min-height: 100vh !important;
    background: var(--acd-bg) !important;
    overflow-x: hidden !important;
    padding-inline-start: 300px !important;
  }
  .acd-sidebar {
    position: fixed !important;
    inset-block: 0 !important;
    inset-inline-start: 0 !important;
    width: 300px !important;
    min-height: 100vh !important;
    height: 100vh !important;
    z-index: 20 !important;
    padding: 26px 22px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  .acd-side-logo {
    padding: 16px !important;
    border-radius: 26px !important;
  }
  .acd-side-logo img {
    max-height: 96px !important;
    width: 100% !important;
    object-fit: contain !important;
  }
  .acd-main {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 100vh !important;
    padding: 30px !important;
  }
  .acd-main > * {
    max-width: 1480px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .acd-topbar {
    padding: 24px 28px !important;
    border-radius: 28px !important;
    align-items: center !important;
  }
  .acd-topbar h1 {
    font-size: clamp(30px, 2.4vw, 44px) !important;
  }
  .acd-stats-grid {
    grid-template-columns: repeat(4, minmax(0,1fr)) !important;
    gap: 16px !important;
  }
  .acd-stat-card {
    padding: 22px !important;
    min-width: 0 !important;
  }
  .acd-stat-card strong {
    font-size: 38px !important;
  }
  .acd-card {
    border-radius: 28px !important;
  }
  .acd-card-head {
    flex-wrap: nowrap !important;
  }
  .acd-controls {
    min-width: 420px !important;
    max-width: 650px !important;
  }
  .acd-table-wrap {
    overflow-x: auto !important;
    border-radius: 0 0 28px 28px !important;
  }
  .acd-table {
    min-width: 1040px !important;
    table-layout: auto !important;
  }
  .acd-table th,
  .acd-table td {
    padding: 15px 14px !important;
  }
  .acd-modal-card {
    width: min(980px, calc(100vw - 80px)) !important;
    max-height: calc(100vh - 80px) !important;
    overflow: auto !important;
  }
}
@media (max-width:1100px) {
  .acd-dashboard-shell {
    padding-inline-start: 0 !important;
  }
  .acd-sidebar {
    position: relative !important;
    width: auto !important;
    height: auto !important;
  }
}

/* V4 Request management controls */
.acd-dashboard-notice{
  max-width:1480px;
  margin:0 auto 18px;
  border-radius:18px;
  padding:15px 18px;
  font-weight:900;
  line-height:1.7;
  border:1px solid transparent;
}
.acd-dashboard-notice.is-success{
  background:rgba(34,197,94,.12);
  color:#166534;
  border-color:rgba(34,197,94,.24);
}
.acd-dashboard-notice.is-error{
  background:rgba(239,68,68,.10);
  color:#991b1b;
  border-color:rgba(239,68,68,.22);
}
.acd-status-form{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:190px;
}
.acd-inline-status-select{
  min-height:38px;
  max-width:132px;
  border-radius:999px;
  border:1px solid transparent;
  padding:0 12px;
  font-size:12.5px;
  font-weight:950;
  outline:none;
  cursor:pointer;
  background:#f8fafc;
  color:var(--acd-navy);
}
.acd-inline-status-select:focus{
  box-shadow:0 0 0 4px rgba(245,161,58,.12);
  border-color:rgba(245,161,58,.45);
}
.acd-inline-status-select.acd-status-new{background:rgba(59,130,246,.1);color:#1d4ed8;border-color:rgba(59,130,246,.18);}
.acd-inline-status-select.acd-status-reviewing{background:rgba(245,161,58,.14);color:#a85f00;border-color:rgba(245,161,58,.24);}
.acd-inline-status-select.acd-status-contacted{background:rgba(139,92,246,.12);color:#6d28d9;border-color:rgba(139,92,246,.22);}
.acd-inline-status-select.acd-status-completed{background:rgba(34,197,94,.12);color:#15803d;border-color:rgba(34,197,94,.24);}
.acd-inline-status-select.acd-status-cancelled{background:rgba(239,68,68,.1);color:#b91c1c;border-color:rgba(239,68,68,.22);}
.acd-save-btn,
.acd-delete-btn{
  min-height:36px;
  border:0;
  border-radius:999px;
  padding:0 13px;
  font-size:12.5px;
  font-weight:950;
  cursor:pointer;
  transition:.2s;
  white-space:nowrap;
}
.acd-save-btn{
  background:var(--acd-orange);
  color:#fff;
  box-shadow:0 10px 22px rgba(245,161,58,.18);
}
.acd-save-btn:hover{transform:translateY(-2px);box-shadow:0 16px 30px rgba(245,161,58,.28);}
.acd-row-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap;
}
.acd-delete-form{margin:0;}
.acd-delete-btn{
  background:rgba(239,68,68,.10);
  color:#b91c1c;
  border:1px solid rgba(239,68,68,.22);
}
.acd-delete-btn:hover{
  background:#ef4444;
  color:#fff;
  transform:translateY(-2px);
}
@media (min-width:1101px){
  .acd-table{min-width:1180px!important;}
  .acd-table th:nth-child(6),
  .acd-table td:nth-child(6){min-width:210px;}
  .acd-table th:nth-child(8),
  .acd-table td:nth-child(8){min-width:150px;}
}
@media (max-width:780px){
  .acd-status-form{width:100%;justify-content:flex-end;flex-wrap:wrap;}
  .acd-inline-status-select{max-width:none;flex:1;min-width:150px;}
  .acd-save-btn{min-width:82px;}
  .acd-row-actions{width:100%;justify-content:flex-end;flex-wrap:wrap;}
  .acd-row-actions .acd-view-btn,
  .acd-row-actions .acd-delete-form,
  .acd-row-actions .acd-delete-btn{width:100%;}
  .acd-dashboard-notice{margin:0 0 14px;}
}
