/* WDV_SAFE_RECOVERY_V9 */

/* Absolute safety: the actual site body must stay visible. */
html,body{min-height:100%!important}
body>main,main{visibility:visible!important;opacity:1!important}

/* Superseded helper widgets never return. */
#wdvBuyerSticky,#wdvV6Back,#wdvV6Helper,#wdvV7NavDock,#wdvV7HelpBtn,#wdvV8Dock,#wdvV8AI,
.wdv-v6-grounded,#wdv-v7-live-sources,#wdvV81SourceStatus,#wdvV81SourceDetails{
  display:none!important
}

/* Stable developer cards */
.wdv-v9-brand-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:24px}
.wdv-v9-brand-card{min-height:185px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;
border:1px solid rgba(111,66,255,.14);border-radius:23px;background:linear-gradient(150deg,rgba(111,66,255,.055),transparent 45%),#fff;
text-decoration:none;color:#151b37;box-shadow:0 18px 44px rgba(15,23,42,.06);transition:.2s}
.wdv-v9-brand-card:hover{transform:translateY(-4px);box-shadow:0 24px 52px rgba(68,51,180,.12);border-color:rgba(111,66,255,.3)}
.wdv-v9-brand-logo{width:128px;height:76px;display:grid;place-items:center;padding:10px;border-radius:18px;background:#fff;border:1px solid #eef0f5}
.wdv-v9-brand-logo img{max-width:100%;max-height:58px;object-fit:contain!important;filter:none!important;opacity:1!important}
.wdv-v9-brand-card strong{font-size:18px;margin-top:12px}.wdv-v9-brand-card span{font-size:12px;color:#7466e8;font-weight:800;margin-top:4px}

/* Existing AI advisor — no blur, no low contrast. */
body .estimate-card [data-open-modal="advisor-modal"],
body [data-open-modal="advisor-modal"].wdv-v9-ai{
  background:linear-gradient(135deg,#5d35f5,#824dff)!important;color:#fff!important;border:0!important;
  box-shadow:0 14px 32px rgba(93,53,245,.34)!important;opacity:1!important;filter:none!important;
  min-height:70px!important;font-weight:900!important;cursor:pointer!important;pointer-events:auto!important
}
body .estimate-card [data-open-modal="advisor-modal"] svg{color:#fff!important;filter:none!important;opacity:1!important}
.wdv-v9-source-badge{background:#ecfdf5!important;color:#047857!important;border:1px solid #a7f3d0!important}

/* One compact Back/Home dock, mid-left, outside section headings. */
#wdvV9Dock{position:fixed;left:12px;top:50%;transform:translateY(-50%);z-index:10030;display:flex;flex-direction:column;gap:7px;
padding:7px;border-radius:21px;background:rgba(255,255,255,.9);border:1px solid rgba(15,23,42,.1);box-shadow:0 18px 44px rgba(15,23,42,.15);
backdrop-filter:blur(14px)}
.wdv-v9-dock{width:45px;height:45px;border:0;border-radius:14px;display:flex;align-items:center;gap:10px;padding:0 12px;overflow:hidden;
white-space:nowrap;background:#101728;color:#fff;text-decoration:none;cursor:pointer;font:900 13px/1 system-ui;transition:width .18s,transform .16s}
.wdv-v9-dock.home{background:linear-gradient(135deg,#5d35f5,#824dff)}.wdv-v9-dock i{font-style:normal;font-size:18px;min-width:21px;text-align:center}
.wdv-v9-dock span{opacity:0;transition:.15s}#wdvV9Dock:hover .wdv-v9-dock{width:120px}#wdvV9Dock:hover .wdv-v9-dock span{opacity:1}.wdv-v9-dock:hover{transform:translateX(3px)}

/* One Ask AI action + one WhatsApp action. */
#wdvV9AskAI{position:fixed;left:18px;bottom:18px;z-index:10029;border:0;border-radius:999px;padding:13px 17px;
background:linear-gradient(135deg,#101728,#6337f5);color:#fff;box-shadow:0 15px 34px rgba(15,23,42,.22);font:900 13px/1 system-ui;cursor:pointer}
.wdv-v9-wa{position:fixed!important;right:18px!important;bottom:18px!important;width:56px!important;height:56px!important;border-radius:50%!important;
display:grid!important;place-items:center!important;z-index:10029!important;background:#18b86a!important;color:#fff!important;box-shadow:0 15px 34px rgba(24,184,106,.27)!important;text-decoration:none!important}

/* Advisor: questions stay clean. Verified sources only in a collapsed footer control after result stage. */
#advisor-modal .modal-card{max-height:90vh!important;overflow:hidden!important}
#advisor-modal .modal-body{overflow-y:auto!important;max-height:calc(90vh - 82px)!important}
#wdvV9Verified{margin-top:14px;border:1px solid #e7e5fb;border-radius:14px;background:#faf9ff;padding:10px 12px}
#wdvV9Verified summary{cursor:pointer;color:#5b4cdb;font:800 12px system-ui;list-style:none}
#wdvV9Verified summary::-webkit-details-marker{display:none}#wdvV9Verified .links{display:grid;gap:6px;margin-top:8px}
#wdvV9Verified a{display:block;padding:8px 10px;border-radius:10px;border:1px solid #ececf3;background:#fff;text-decoration:none;color:#111827;font:700 12px system-ui}
#wdvV9Verified small{display:block;margin-top:2px;color:#7b8493;font-weight:500}

/* Popup */
#wdvV9Popup{position:fixed;inset:0;z-index:10050;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(2,8,23,.58);backdrop-filter:blur(4px)}
#wdvV9Popup.open{display:flex}#wdvV9PopupCard{width:min(560px,100%);background:#fff;border-radius:23px;overflow:hidden;box-shadow:0 30px 85px rgba(15,23,42,.3)}
#wdvV9PopupHead{position:relative;padding:22px 24px;background:linear-gradient(135deg,#101728,#7042ff);color:#fff}#wdvV9PopupHead h3{margin:0 0 5px;font:900 25px/1.15 system-ui}
#wdvV9PopupHead p{margin:0;opacity:.9;line-height:1.45}#wdvV9PopupClose{position:absolute;right:13px;top:12px;border:0;width:35px;height:35px;border-radius:50%;background:rgba(255,255,255,.18);color:#fff;font-size:20px;cursor:pointer}
#wdvV9PopupBody{padding:20px 24px}.wdv-v9-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.wdv-v9-f label{display:block;font:800 12px system-ui;margin-bottom:6px}
.wdv-v9-f input,.wdv-v9-f select,.wdv-v9-f textarea{width:100%;box-sizing:border-box;border:1px solid #d9dde7;border-radius:12px;padding:13px;font:500 14px system-ui}.wdv-v9-f textarea{min-height:90px}
.wdv-v9-submit{width:100%;border:0;border-radius:13px;padding:15px;background:#7042ff;color:#fff;font:900 15px system-ui;margin-top:12px;cursor:pointer}.wdv-v9-consent{display:flex;gap:8px;font:500 11px/1.4 system-ui;color:#5b6474;margin-top:10px}
.wdv-v9-note{display:none;padding:10px;border-radius:10px;background:#ecfdf5;color:#065f46;font:700 12px system-ui;margin-bottom:10px}.wdv-v9-note.show{display:block}

@media(max-width:880px){.wdv-v9-brand-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){#wdvV9Dock{left:8px;top:auto;bottom:84px;transform:none;flex-direction:row}.wdv-v9-dock{width:43px;height:43px}#wdvV9Dock:hover .wdv-v9-dock{width:43px}.wdv-v9-dock span{display:none}
#wdvV9AskAI{left:10px;bottom:18px}.wdv-v9-wa{right:10px!important;bottom:18px!important}.wdv-v9-grid{grid-template-columns:1fr}.wdv-v9-brand-grid{grid-template-columns:1fr}}