/* CoreXaPay v6.6 UI refinements */

/* Customer stores: keep module banner readable in light theme */
html[data-theme="light"] .module-banner{
  background:linear-gradient(135deg,#36216a 0%,#56349a 52%,#6f42c1 100%);
  border-color:#8060bd;
  box-shadow:0 14px 34px rgba(82,48,145,.18);
}
html[data-theme="light"] .module-banner strong,
html[data-theme="light"] .module-banner p{color:#fff!important}
html[data-theme="light"] .module-banner .btn.primary{background:#fff;color:#542f99;border-color:#fff}
html[data-theme="light"] .module-banner .btn.primary:hover{background:#f3ecff;color:#45247f;border-color:#f3ecff}

/* Customer products: product titles were white on white */
html[data-theme="light"] .cx-product-name{color:#251a37!important}
html[data-theme="light"] .cx-product-meta{color:#776b87!important}
html[data-theme="light"] .cx-product-modal{background:#fff;color:#251a37;border-color:#ded2ef;box-shadow:0 28px 80px rgba(57,34,91,.22)}
html[data-theme="light"] .cx-product-modal::backdrop{background:rgba(36,25,54,.42)}
html[data-theme="light"] .cx-modal-head{background:linear-gradient(180deg,#fbf8ff 0%,#f4edff 100%);border-color:#e4daf2}
html[data-theme="light"] .cx-modal-title{color:#251a37}
html[data-theme="light"] .cx-modal-sub{color:#786d87}
html[data-theme="light"] .cx-modal-icon{background:#efe5ff;border-color:#d7c3fa;color:#6f42c1}
html[data-theme="light"] .cx-modal-close{background:#fff;color:#665774;border-color:#d9ccea}
html[data-theme="light"] .cx-modal-close:hover{background:#f4edff;color:#3f285f}
html[data-theme="light"] .cx-edit-chip{background:#faf7ff;border-color:#e5dcf1}
html[data-theme="light"] .cx-edit-chip span{color:#857891}
html[data-theme="light"] .cx-edit-chip strong{color:#251a37}
html[data-theme="light"] .cx-field-label{color:#41334f}
html[data-theme="light"] .cx-field-help{color:#8b7d98}
html[data-theme="light"] .cx-input-suffix{color:#7b6c8a}
html[data-theme="light"] .cx-modal-foot{background:#faf7ff;border-color:#e4daf2}

/* Homepage navigation in light theme */
html[data-theme="light"] .topbar{border-bottom-color:#e6def1}
html[data-theme="light"] .nav-left-links a{color:#17111f!important}
html[data-theme="light"] .nav-left-links a:hover,
html[data-theme="light"] .nav-left-links a:focus{color:#17111f!important;background:transparent!important}

/* References marquee */
html[data-theme="light"] .reference-marquee{
  background:linear-gradient(135deg,#f4edff 0%,#ffffff 50%,#eee4ff 100%)!important;
  border:1px solid #ded0f2!important;
  box-shadow:0 14px 38px rgba(78,43,127,.08)!important;
}
html[data-theme="light"] .reference-item{
  background:#fff!important;
  border-color:#e6dcf3!important;
  box-shadow:0 8px 22px rgba(67,43,98,.06);
}
html[data-theme="light"] .reference-item img{filter:none!important}

/* Footer light mode */
html[data-theme="light"] .site-footer{background:#fff!important;border-top-color:#e6def1!important}
html[data-theme="light"] .footer-grid h4,
html[data-theme="light"] .footer-grid p,
html[data-theme="light"] .footer-links a,
html[data-theme="light"] .footer-bottom,
html[data-theme="light"] .footer-bottom span{color:#21182d!important}
html[data-theme="light"] .footer-links a:hover,
html[data-theme="light"] .footer-links a:focus{color:#5e36a0!important}
html[data-theme="light"] .footer-bottom{border-top-color:#e6def1!important}
html[data-theme="light"] .footer-socials a{color:#3d2b54!important;border-color:#d9cce9!important;background:#f8f4ff!important}
html[data-theme="light"] .footer-socials a:hover{color:#5f34a4!important;background:#eee5ff!important;border-color:#c8b3e6!important}

/* Redesigned integration section */
.integration-showcase{
  position:relative;
  overflow:hidden;
  padding:34px;
  border:1px solid var(--line);
  border-radius:22px;
  background:
    radial-gradient(circle at 85% 18%,rgba(45,124,211,.18),transparent 32%),
    linear-gradient(145deg,#101c2d 0%,#0d1726 100%);
  box-shadow:var(--shadow);
}
.integration-showcase:before{
  content:"";position:absolute;inset:auto -120px -150px auto;width:330px;height:330px;border-radius:50%;
  background:rgba(73,137,207,.08);pointer-events:none
}
.integration-grid{position:relative;z-index:1;display:grid;grid-template-columns:.88fr 1.12fr;gap:34px;align-items:center}
.integration-copy h2{font-size:34px;line-height:1.15;margin:0 0 14px;letter-spacing:-.8px}
.integration-copy p{margin:0;color:var(--muted);font-size:15px;max-width:560px}
.integration-badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}
.integration-badge{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.025);font-size:11px;font-weight:750;color:#c7d7e6}
.integration-flow{display:grid;gap:10px}
.integration-step{display:grid;grid-template-columns:48px minmax(0,1fr);gap:14px;align-items:center;padding:15px 16px;border:1px solid #263a50;border-radius:14px;background:rgba(9,19,31,.72);transition:.18s ease}
.integration-step:hover{transform:translateX(4px);border-color:#3e6386;background:#102138}
.integration-step-no{width:48px;height:48px;border-radius:13px;display:grid;place-items:center;background:#17395a;border:1px solid #2c5c87;color:#aad6ff;font-weight:800}
.integration-step h3{margin:0 0 3px;font-size:14px}
.integration-step p{margin:0;color:var(--muted);font-size:12px}
html[data-theme="light"] .integration-showcase{
  background:radial-gradient(circle at 85% 18%,rgba(111,66,193,.12),transparent 32%),linear-gradient(145deg,#ffffff 0%,#f7f2ff 100%);
  border-color:#dfd3ee;box-shadow:0 18px 44px rgba(73,42,115,.09)
}
html[data-theme="light"] .integration-showcase:before{background:rgba(111,66,193,.06)}
html[data-theme="light"] .integration-copy h2{color:#241832}
html[data-theme="light"] .integration-badge{background:#fff;border-color:#dfd3ee;color:#4e3868}
html[data-theme="light"] .integration-step{background:#fff;border-color:#e3d8ef}
html[data-theme="light"] .integration-step:hover{background:#faf7ff;border-color:#c9b3e2}
html[data-theme="light"] .integration-step-no{background:#efe5ff;border-color:#d7c0f5;color:#6234a6}
html[data-theme="light"] .integration-step h3{color:#251a34}

/* Admin customer KYC action rows */
html[data-theme="light"] .kyc-action-list{border-color:#e2d7ef!important}
html[data-theme="light"] .kyc-action-row{background:#faf7ff!important;border-color:#e5dbf0!important;color:#251a34!important}
html[data-theme="light"] .kyc-action-row span{color:#251a34!important}
html[data-theme="light"] .icon-btn.ok{background:#e8f7f0!important;color:#18704e!important;border-color:#b9e3d1!important}
html[data-theme="light"] .icon-btn.bad{background:#fff0f2!important;color:#aa364b!important;border-color:#ecc0c8!important}

/* Login / register split layout */
.auth-split-shell{width:min(1080px,calc(100% - 36px));margin:54px auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.88fr);gap:24px;align-items:stretch}
.auth-split-shell .auth-wrap{max-width:none;width:100%;margin:0;min-height:100%;display:flex;flex-direction:column;justify-content:center}
.auth-ad-card{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;aspect-ratio:1/1;min-height:460px;padding:0;border:1px solid var(--line);border-radius:20px;background:linear-gradient(145deg,#101c2d,#0c1624);box-shadow:var(--shadow)}
.auth-ad-card img{width:100%;height:100%;object-fit:cover;display:block}
.auth-ad-card .auth-ad-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:36px;color:#d8e4ef}
.auth-ad-placeholder strong{font-size:26px;letter-spacing:-.5px}.auth-ad-placeholder span{margin-top:8px;color:#8da0b4;max-width:280px}
.auth-ad-card[href]{transition:.18s ease}.auth-ad-card[href]:hover{transform:translateY(-2px);border-color:#436789}
html[data-theme="light"] .auth-ad-card{background:linear-gradient(145deg,#f5efff,#ffffff);border-color:#dfd4ed;box-shadow:0 18px 45px rgba(79,44,121,.09)}
html[data-theme="light"] .auth-ad-card .auth-ad-placeholder{color:#342345}
html[data-theme="light"] .auth-ad-placeholder span{color:#796988}

/* Admin branding preview for auth banner */
.auth-banner-preview{aspect-ratio:1/1;max-width:220px;width:100%;border-radius:14px;overflow:hidden;border:1px solid var(--line);background:var(--panel-2);display:grid;place-items:center}
.auth-banner-preview img{width:100%;height:100%;object-fit:cover}

/* Store status warning */
.store-sales-status{margin-bottom:16px;padding:12px 14px;border-radius:11px;border:1px solid #76513c;background:#2a1a13;color:#f0c7a8}
html[data-theme="light"] .store-sales-status{background:#fff7ed;border-color:#efd1ae;color:#8a5524}

@media(max-width:900px){
  .integration-grid{grid-template-columns:1fr}.integration-showcase{padding:24px}.integration-copy h2{font-size:29px}
  .auth-split-shell{grid-template-columns:1fr;max-width:620px;margin:28px auto}
  .auth-ad-card{min-height:auto;aspect-ratio:1/1}
}
@media(max-width:560px){
  .integration-showcase{padding:19px;border-radius:17px}.integration-copy h2{font-size:25px}.integration-step{grid-template-columns:42px minmax(0,1fr);padding:13px}.integration-step-no{width:42px;height:42px}
  .auth-split-shell{width:min(100% - 24px,620px);margin:20px auto}.auth-ad-card{border-radius:16px}
}
