.mdh-v51-form-card,.mdh-v51-chat,.mdh-v51-success{max-width:860px;margin:32px auto;background:#fff;border:1px solid #dbe4ef;border-radius:18px;box-shadow:0 24px 60px rgba(15,23,42,.08);overflow:hidden;color:#0f172a}.mdh-v51-form-card{padding:28px}.mdh-v51-badge{display:inline-block;background:#eaf6ff;color:#2F7FD1;border-radius:999px;padding:6px 12px;text-transform:uppercase;font-size:12px;font-weight:800}.mdh-v51-form label{display:block;margin:14px 0;font-weight:700}.mdh-v51-form input,.mdh-v51-form select,.mdh-v51-form textarea{width:100%;box-sizing:border-box;border:1px solid #dbe4ef;border-radius:12px;padding:12px;margin-top:6px}.mdh-v51-two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.mdh-v51-form button,.mdh-v51-chat-input button,.mdh-v51-paywall button{border:0;border-radius:12px;background:linear-gradient(135deg,#2F7FD1,#63C3F2);color:#fff;font-weight:800;padding:14px 22px;cursor:pointer}.mdh-v51-chat-head{display:flex;justify-content:space-between;align-items:center;background:#0F2745;color:#fff;padding:18px 22px}.mdh-v51-chat-head strong{display:block;font-size:20px}.mdh-v51-chat-head span{color:#cbd5e1;font-size:13px}.mdh-v51-credits{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:8px 12px}.mdh-v51-chat-log{height:520px;overflow:auto;background:#f8fafc;padding:22px}.mdh-v51-msg{max-width:82%;border:1px solid #dbe4ef;border-radius:16px;padding:14px 16px;margin-bottom:16px;background:#fff}.mdh-v51-msg-user{margin-left:auto;background:#eaf6ff}.mdh-v51-meta{display:flex;justify-content:space-between;color:#64748b;font-size:12px;margin-bottom:8px}.mdh-v51-chat-input{display:grid;grid-template-columns:1fr auto;gap:12px;padding:18px 22px;border-top:1px solid #dbe4ef}.mdh-v51-chat-input textarea{border:1px solid #dbe4ef;border-radius:12px;padding:14px;resize:vertical}.mdh-v51-paywall{padding:16px 22px;background:#fff;border-top:1px solid #dbe4ef}.mdh-v51-hint{padding:0 22px 18px;color:#64748b;font-size:13px}.mdh-v51-success{padding:34px}@media(max-width:760px){.mdh-v51-two,.mdh-v51-chat-input{grid-template-columns:1fr}.mdh-v51-msg{max-width:96%}}

.mdh-v52-popup-card{text-align:left}
.mdh-v52-open{border:0;border-radius:12px;background:linear-gradient(135deg,#2F7FD1,#63C3F2);color:#fff;font-weight:800;padding:14px 22px;cursor:pointer}
.mdh-v52-modal{display:none;position:fixed;inset:0;z-index:999999}
.mdh-v52-modal.open{display:block}
body.mdh-v52-modal-open{overflow:hidden}
.mdh-v52-backdrop{position:absolute;inset:0;background:rgba(8,21,37,.72);backdrop-filter:blur(7px)}
.mdh-v52-dialog{position:relative;z-index:1;max-width:780px;max-height:88vh;overflow:auto;margin:6vh auto;background:#fff;border:1px solid #dbe4ef;border-radius:22px;padding:34px;box-shadow:0 35px 90px rgba(0,0,0,.28)}
.mdh-v52-close{position:absolute;right:18px;top:16px;width:38px;height:38px;border-radius:999px;border:1px solid #dbe4ef;background:#fff;cursor:pointer;font-size:24px;line-height:1}
.mdh-v52-dialog h3{font-size:30px;margin:16px 0 8px;color:#0f172a}
.mdh-v52-intro{color:#475569;line-height:1.65;margin:0 0 18px}
@media(max-width:760px){.mdh-v52-dialog{margin:20px;max-height:92vh;padding:26px}}

.mdh-v54-microcopy{margin:12px 0 0;color:#64748b;font-size:13px;line-height:1.5}
.mdh-v52-popup-card{text-align:left}
.mdh-v52-open{border:0;border-radius:12px;background:linear-gradient(135deg,#2F7FD1,#63C3F2);color:#fff;font-weight:800;padding:14px 22px;cursor:pointer}
.mdh-v52-modal{display:none;position:fixed;inset:0;z-index:999999}
.mdh-v52-modal.open{display:block}
body.mdh-v52-modal-open{overflow:hidden}
.mdh-v52-backdrop{position:absolute;inset:0;background:rgba(8,21,37,.72);backdrop-filter:blur(7px)}
.mdh-v52-dialog{position:relative;z-index:1;max-width:780px;max-height:88vh;overflow:auto;margin:6vh auto;background:#fff;border:1px solid #dbe4ef;border-radius:22px;padding:34px;box-shadow:0 35px 90px rgba(0,0,0,.28)}
.mdh-v52-close{position:absolute;right:18px;top:16px;width:38px;height:38px;border-radius:999px;border:1px solid #dbe4ef;background:#fff;cursor:pointer;font-size:24px;line-height:1}
.mdh-v52-dialog h3{font-size:30px;margin:16px 0 8px;color:#0f172a}
.mdh-v52-intro{color:#475569;line-height:1.65;margin:0 0 18px}
@media(max-width:760px){.mdh-v52-dialog{margin:20px;max-height:92vh;padding:26px}}

/* Backend tabs restored in FINAL */


/* MDH 2-Step Form */
.mdh-step{display:none}
.mdh-step.active{display:block}
.mdh-step-progress{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0 22px}
.mdh-step-progress span{border:1px solid #dbe4ef;border-radius:999px;padding:9px 12px;text-align:center;color:#64748b;background:#f8fafc;font-size:13px;font-weight:700}
.mdh-step-progress span.active{background:#eaf6ff;color:#245C91;border-color:#63C3F2}
.mdh-step-actions{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:18px}
.mdh-step-prev,.mdh-step-next{border:1px solid #dbe4ef;border-radius:12px;background:#fff;color:#0f172a;font-weight:800;padding:13px 20px;cursor:pointer}
.mdh-step-next{background:linear-gradient(135deg,#2F7FD1,#63C3F2);color:#fff;border:0}
.mdh-step-1 .mdh-step-prev,.mdh-step-1 button[type="submit"]{display:none}
.mdh-step-2 .mdh-step-next{display:none}
.mdh-step-2 button[type="submit"]{display:inline-flex}
@media(max-width:760px){.mdh-step-progress{grid-template-columns:1fr}.mdh-step-actions{flex-direction:column;align-items:stretch}.mdh-step-actions button{width:100%}}


/* MDH 2-Step Navigation Fix */
.mdh-step-actions-step1{display:flex;justify-content:flex-end;margin-top:18px}
.mdh-step-actions-step1 .mdh-step-next-main{display:inline-flex!important;align-items:center;justify-content:center;border:0;border-radius:12px;background:linear-gradient(135deg,#2F7FD1,#63C3F2);color:#fff;font-weight:800;padding:13px 22px;cursor:pointer}
.mdh-step-1 button[type="submit"]{display:none!important}
.mdh-step-2 .mdh-step-actions{display:flex!important}
.mdh-step-2 .mdh-step-prev{display:inline-flex!important}
.mdh-step-2 button[type="submit"]{display:inline-flex!important}
.mdh-step-2 .mdh-step-next{display:none!important}

/* MDH Stable helper copy */
.mdh-helper{display:block;margin-top:6px;color:#64748b;font-size:12px;line-height:1.4;font-weight:500}
.mdh-step2-intro{margin:0 0 16px;color:#475569;line-height:1.55;background:#f8fafc;border:1px solid #dbe4ef;border-radius:12px;padding:12px 14px}
.mdh-v54-microcopy-extra{margin:6px 0 0;color:#64748b;font-size:13px;line-height:1.5}


/* MDH ConversionFix */
.mdh-conversion-bottom{margin-top:18px;border-top:1px solid #e5edf7;padding-top:16px}
.mdh-conversion-bottom .mdh-v51-consent{display:flex!important;align-items:flex-start;gap:10px;margin:0 0 16px!important;font-size:14px;line-height:1.45;font-weight:600}
.mdh-conversion-bottom .mdh-v51-consent input{width:auto!important;margin-top:3px!important;flex:0 0 auto}
.mdh-conversion-bottom .mdh-step-actions{display:flex!important;align-items:center!important;gap:12px!important;margin:0 0 10px!important}
.mdh-conversion-bottom .mdh-step-prev{min-width:96px}
.mdh-conversion-bottom button[type="submit"]{min-width:170px;line-height:1.2;text-align:center;justify-content:center}
.mdh-conversion-bottom .mdh-v54-microcopy{margin:8px 0 0!important;color:#64748b!important;font-size:13px!important;line-height:1.45!important}
.mdh-microcopy-extra-final{display:none!important}
@media(max-width:760px){
  .mdh-conversion-bottom .mdh-step-actions{flex-direction:column!important;align-items:stretch!important}
  .mdh-conversion-bottom .mdh-step-actions button{width:100%!important}
}


/* MDH UX2 Credit package cards */
.mdh-credit-packages{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin:18px 0 4px;
}
.mdh-credit-pack-btn{
  position:relative;
  min-width:150px;
  flex:1 1 150px;
  border:1px solid #d7e3f1!important;
  border-radius:16px!important;
  background:#fff!important;
  color:#0f2745!important;
  padding:18px 16px!important;
  cursor:pointer;
  text-align:left;
  box-shadow:0 8px 22px rgba(15,39,69,.08);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.mdh-credit-pack-btn:hover{
  transform:translateY(-2px);
  border-color:#48a8e8!important;
  box-shadow:0 12px 28px rgba(15,39,69,.14);
}
.mdh-credit-pack-btn .mdh-credit-title{
  display:block;
  font-weight:800;
  font-size:16px;
  line-height:1.2;
  margin-bottom:6px;
}
.mdh-credit-pack-btn .mdh-credit-price{
  display:block;
  color:#52657a;
  font-weight:700;
  font-size:14px;
}
.mdh-credit-pack-btn .mdh-credit-badge{
  display:none;
  width:max-content;
  margin-bottom:8px;
  border-radius:999px;
  padding:3px 8px;
  background:#eaf6ff;
  color:#245c91;
  font-size:11px;
  font-weight:800;
}
.mdh-credit-pack-btn:last-child{
  border-color:#48a8e8!important;
  background:linear-gradient(180deg,#f7fcff,#ffffff)!important;
}
.mdh-credit-pack-btn:last-child .mdh-credit-badge{
  display:block;
}
@media(max-width:760px){
  .mdh-credit-packages{gap:10px}
  .mdh-credit-pack-btn{flex:1 1 100%;min-width:100%}
}


/* MDH UX3 Credit package cards - homepage button style */
.mdh-credit-packages{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:18px!important;
  margin:20px 0 6px!important;
}
.mdh-credit-pack-btn{
  position:relative!important;
  min-width:0!important;
  border:1px solid #d7e3f1!important;
  border-radius:16px!important;
  background:#fff!important;
  color:#0f2745!important;
  padding:18px 18px 20px!important;
  cursor:pointer!important;
  text-align:left!important;
  box-shadow:0 8px 20px rgba(15,39,69,.10)!important;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease!important;
}
.mdh-credit-pack-btn:hover{
  transform:translateY(-2px)!important;
  border-color:#48a8e8!important;
  box-shadow:0 12px 28px rgba(15,39,69,.16)!important;
}
.mdh-credit-pack-btn.is-featured{
  border:2px solid #48a8e8!important;
  background:linear-gradient(180deg,#f4fbff,#ffffff)!important;
  box-shadow:0 14px 34px rgba(47,127,209,.18)!important;
}
.mdh-credit-pack-btn .mdh-credit-badge{
  display:inline-block!important;
  margin:0 0 10px!important;
  border-radius:999px!important;
  padding:4px 10px!important;
  background:#e7f4ff!important;
  color:#245c91!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:.02em!important;
}
.mdh-credit-pack-btn .mdh-credit-title{
  display:block!important;
  font-weight:900!important;
  font-size:18px!important;
  line-height:1.15!important;
  margin:0 0 6px!important;
}
.mdh-credit-pack-btn .mdh-credit-hint{
  display:block!important;
  color:#52657a!important;
  font-size:13px!important;
  line-height:1.35!important;
  min-height:34px!important;
  margin:0 0 12px!important;
}
.mdh-credit-pack-btn .mdh-credit-price{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:12px!important;
  padding:9px 13px!important;
  background:linear-gradient(135deg,#2F7FD1,#63C3F2)!important;
  color:#fff!important;
  font-weight:900!important;
  font-size:14px!important;
  line-height:1!important;
}
.mdh-credit-pack-btn.is-featured .mdh-credit-price{
  background:#0f2745!important;
}
@media(max-width:860px){
  .mdh-credit-packages{grid-template-columns:1fr!important}
  .mdh-credit-pack-btn .mdh-credit-hint{min-height:0!important}
}


/* MDH Core Dialog Button Visibility Fix */
.mdh-v52-dialog{
  max-height:92vh!important;
  margin:4vh auto!important;
  padding-bottom:22px!important;
}
.mdh-v52-intro{
  line-height:1.55!important;
  margin-bottom:12px!important;
}
.mdh-v51-form label{
  margin:10px 0!important;
}
.mdh-v51-form textarea{
  min-height:56px!important;
}
.mdh-step-actions-step1{
  position:sticky!important;
  bottom:0!important;
  z-index:30!important;
  display:flex!important;
  justify-content:flex-end!important;
  margin:16px 0 0!important;
  padding:18px 0 2px!important;
  background:linear-gradient(180deg,rgba(255,255,255,0),#fff 36%,#fff 100%)!important;
}
.mdh-step-actions-step1 .mdh-step-next-main{
  display:inline-flex!important;
  min-width:210px!important;
  align-items:center!important;
  justify-content:center!important;
}
@media(max-width:760px){
  .mdh-v52-dialog{margin:12px!important;max-height:calc(100vh - 24px)!important;padding:22px!important;padding-bottom:18px!important}
  .mdh-step-actions-step1{justify-content:stretch!important}
  .mdh-step-actions-step1 .mdh-step-next-main{width:100%!important;min-width:0!important}
}
