/* INPUT PAY GATEWAY — reference-matched visual system */
:root{--ip-bg:#f3f7ff;--ip-panel:#fff;--ip-panel-2:#f7faff;--ip-text:#0b1733;--ip-muted:#64748b;--ip-line:#d7e2f2;--ip-blue:#075be8;--ip-cyan:#16c5e8;--ip-shadow:0 14px 40px rgba(20,55,110,.10)}
html[data-theme="dark"]{color-scheme:dark;--ip-bg:#050b1b;--ip-panel:#0b1530;--ip-panel-2:#101e3b;--ip-text:#f4f8ff;--ip-muted:#9fb1ce;--ip-line:#233b61;--ip-blue:#0877ff;--ip-cyan:#12d5ee;--ip-shadow:0 16px 45px rgba(0,0,0,.38)}
html,body{min-height:100%;background:var(--ip-bg);color:var(--ip-text)}body{font-family:Inter,ui-sans-serif,system-ui,sans-serif;background-image:radial-gradient(ellipse at 12% 0%,rgba(18,130,255,.10),transparent 38%),radial-gradient(ellipse at 88% 100%,rgba(12,197,232,.08),transparent 36%);background-attachment:fixed}
.ip-app-shell,.ip-app-main,.ip-main-content{background:transparent!important;color:var(--ip-text)}
.ip-sidebar,.ip-topbar,.ip-sidebar-brand,.ip-public-nav{background:color-mix(in srgb,var(--ip-panel) 94%,transparent)!important;border-color:var(--ip-line)!important;color:var(--ip-text)!important;backdrop-filter:blur(18px)}
.ip-sidebar{box-shadow:8px 0 35px rgba(0,20,60,.06)}.ip-sidebar-brand{border-bottom:1px solid var(--ip-line)!important}.ip-nav-link{border:1px solid transparent}.ip-nav-idle{color:var(--ip-muted)!important}.ip-nav-idle:hover{background:var(--ip-panel-2)!important;color:var(--ip-text)!important}.ip-nav-active{background:linear-gradient(110deg,#075be8,#087ef5)!important;color:#fff!important;box-shadow:0 7px 20px rgba(0,91,232,.28)}
.card,.ip-card,.ip-payment-preview-message,.ip-guest-form form,.ip-guest-form .mt-8>form,.ip-guest-brand,.ip-guest-form{background:var(--ip-panel)!important;color:var(--ip-text)!important;border:1px solid var(--ip-line)!important;border-radius:18px!important;box-shadow:var(--ip-shadow)}.card{position:relative;overflow:hidden}.card:before,.ip-card:before{content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;background:linear-gradient(120deg,transparent,rgba(0,139,255,.42),rgba(20,220,238,.28),transparent);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none;opacity:.6}
.card-header{background:var(--ip-panel-2)!important;border-color:var(--ip-line)!important}.card-title,h1,h2,h3,.text-slate-900,.text-slate-800{color:var(--ip-text)!important}.text-slate-700,.text-slate-600,.text-slate-500,.text-slate-400{color:var(--ip-muted)!important}
.input, input:not([type=checkbox]):not([type=radio]),select,textarea{background:var(--ip-panel-2)!important;color:var(--ip-text)!important;border:1px solid var(--ip-line)!important;border-radius:10px!important}input::placeholder,textarea::placeholder{color:var(--ip-muted)!important;opacity:.8} .label{color:var(--ip-muted)!important}
.btn-primary{background:linear-gradient(110deg,#075be8,#087ff5)!important;color:white!important;border:0!important;box-shadow:0 7px 18px rgba(0,91,232,.25)}.btn-secondary,.btn-ghost{background:var(--ip-panel-2)!important;color:var(--ip-text)!important;border:1px solid var(--ip-line)!important}.ip-logout-button{background:linear-gradient(120deg,#991b35,#dc254b)!important;color:#fff!important;border-radius:10px!important;padding:9px!important;box-shadow:0 6px 16px rgba(220,37,75,.25)}
table{color:var(--ip-text)!important}thead,.bg-slate-50,.bg-slate-100{background:var(--ip-panel-2)!important}tbody tr{border-color:var(--ip-line)!important}tbody tr:hover{background:color-mix(in srgb,var(--ip-blue) 7%,var(--ip-panel))!important}.th{color:var(--ip-muted)!important;border-color:var(--ip-line)!important}.td{color:var(--ip-text)!important;border-color:var(--ip-line)!important}
.bg-white{background:var(--ip-panel)!important}.border-slate-100,.border-slate-200,.divide-slate-100>*+*,.divide-slate-200>*+*{border-color:var(--ip-line)!important}.ring-slate-100,.ring-slate-200{--tw-ring-color:var(--ip-line)!important}.bg-slate-50,.bg-slate-100{background:var(--ip-panel-2)!important}.shadow-pop,.shadow-lg{box-shadow:var(--ip-shadow)!important}
.ip-payment-preview-message{padding:20px}.input-pay-mark{width:38px;height:38px;filter:drop-shadow(0 5px 9px rgba(0,120,255,.28))}.input-pay-wordmark{color:var(--ip-text)!important;font-weight:900;letter-spacing:-.03em;line-height:1.02}.input-pay-wordmark small{display:block;font-size:10px;letter-spacing:.09em}
.ip-theme-toggle{position:fixed;right:18px;bottom:18px;z-index:1000;display:flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid var(--ip-line);border-radius:999px;background:var(--ip-panel);color:var(--ip-text);box-shadow:var(--ip-shadow);font-size:12px;font-weight:800;cursor:pointer}.ip-theme-toggle .dot{width:9px;height:9px;border-radius:50%;background:var(--ip-cyan);box-shadow:0 0 12px var(--ip-cyan)}
/* Landing page */
body:has(.ip-public-nav) .bg-white{background:transparent!important}body:has(.ip-public-nav) section{color:var(--ip-text)}body:has(.ip-public-nav) .text-lg{color:var(--ip-muted)}
/* Guest login/register */
.ip-guest-brand{background:radial-gradient(ellipse at 15% 20%,rgba(0,110,255,.35),transparent 48%),linear-gradient(145deg,#06112b,#0b1d43)!important;color:#fff!important}.ip-guest-brand h2,.ip-guest-brand .text-white{color:#fff!important}.ip-guest-form{border-radius:0!important;box-shadow:none!important}.ip-guest-form h1{color:var(--ip-text)!important}
/* Checkout */
body:has(#payment-status) .min-h-full,body:has(.ring-transition) .min-h-full{background:var(--ip-bg)!important}.ring-transition{transition:stroke-dashoffset .4s linear}
/* Theme-specific utility overrides */
html[data-theme="dark"] .bg-white{background:var(--ip-panel)!important}html[data-theme="dark"] .bg-slate-50,html[data-theme="dark"] .bg-slate-100{background:var(--ip-panel-2)!important}html[data-theme="dark"] .text-slate-900,html[data-theme="dark"] .text-slate-800,html[data-theme="dark"] .text-slate-700{color:var(--ip-text)!important}html[data-theme="dark"] .text-slate-600,html[data-theme="dark"] .text-slate-500,html[data-theme="dark"] .text-slate-400{color:var(--ip-muted)!important}html[data-theme="dark"] .border-slate-100,html[data-theme="dark"] .border-slate-200{border-color:var(--ip-line)!important}html[data-theme="dark"] .divide-slate-100>*,html[data-theme="dark"] .divide-slate-200>*{border-color:var(--ip-line)!important}html[data-theme="dark"] .bg-emerald-50{background:#0b342c!important}html[data-theme="dark"] .text-emerald-800,html[data-theme="dark"] .text-emerald-700{color:#6ee7b7!important}html[data-theme="dark"] .bg-red-50{background:#3a1420!important}html[data-theme="dark"] .text-red-800,html[data-theme="dark"] .text-red-700{color:#fda4af!important}html[data-theme="dark"] .bg-sky-50{background:#102b4b!important}html[data-theme="dark"] .text-sky-600{color:#7dd3fc!important}
@media(max-width:1023px){.ip-sidebar{background:var(--ip-panel)!important}.ip-main-content{padding-top:24px!important}.ip-theme-toggle{right:12px;bottom:12px}}
@media(prefers-reduced-motion:no-preference){.card,.btn,.ip-nav-link{transition:background .2s ease,border-color .2s ease,transform .2s ease}.card:hover{border-color:rgba(0,145,255,.55)!important}}

/* =========================================================
   INPUT PAY API DOCUMENTATION — READABILITY FIX
   Scoped to .ip-docs. Does not affect the home page.
========================================================= */

.ip-docs {
    --docs-heading: #14243d;
    --docs-text: #344b66;
    --docs-muted: #526982;
    --docs-border: #d5e1ee;
    --docs-card: #ffffff;
    --docs-soft: #f1f6fc;
    background: #f5f8fd !important;
    color: var(--docs-text) !important;
    font-size: 16px;
    line-height: 1.75;
}

.ip-docs h1,
.ip-docs h2,
.ip-docs h3,
.ip-docs h4,
.ip-docs .font-bold,
.ip-docs .font-semibold {
    color: var(--docs-heading) !important;
    opacity: 1 !important;
}

.ip-docs p,
.ip-docs li,
.ip-docs td,
.ip-docs label {
    color: var(--docs-text) !important;
    opacity: 1 !important;
}

.ip-docs .text-slate-400,
.ip-docs .text-slate-500,
.ip-docs .text-slate-600,
.ip-docs .text-gray-400,
.ip-docs .text-gray-500,
.ip-docs .text-gray-600 {
    color: var(--docs-muted) !important;
    opacity: 1 !important;
}

.ip-docs table {
    width: 100%;
    background: var(--docs-card) !important;
    color: var(--docs-text) !important;
    border-collapse: separate;
    border-spacing: 0;
}

.ip-docs th {
    background: #e8f0fa !important;
    color: #193957 !important;
    font-weight: 800 !important;
    opacity: 1 !important;
}

.ip-docs td {
    background: var(--docs-card) !important;
    color: #344b66 !important;
    border-color: var(--docs-border) !important;
    opacity: 1 !important;
}

.ip-docs .rounded-xl.border {
    border-color: var(--docs-border) !important;
}

.ip-docs .bg-slate-50 {
    background: var(--docs-soft) !important;
}

.ip-docs code.kbd,
.ip-docs p code,
.ip-docs li code {
    display: inline;
    padding: 2px 6px;
    border-radius: 5px;
    background: #e8eff8 !important;
    color: #153d68 !important;
    font-size: .9em;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.ip-docs pre {
    max-width: 100%;
    overflow-x: auto !important;
    white-space: pre !important;
    background: #0b1b31 !important;
    color: #eaf3ff !important;
    border: 1px solid #345477 !important;
    border-radius: 12px !important;
    -webkit-overflow-scrolling: touch;
}

.ip-docs pre code,
.ip-docs pre code * {
    background: transparent !important;
    color: #eaf3ff !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

.ip-docs button[data-copy] {
    color: #ffffff !important;
    background: #1d4774 !important;
    border: 1px solid #4d83b5 !important;
    min-height: 38px;
}

.ip-docs nav a {
    color: #38536f !important;
    opacity: 1 !important;
}

.ip-docs nav a.active {
    color: #4338ca !important;
    font-weight: 800 !important;
}

.ip-docs select {
    color: #183653 !important;
    background: #ffffff !important;
    border: 1px solid #9bb5d0 !important;
    min-height: 46px;
}

.ip-docs .overflow-x-auto {
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.ip-docs .section-anchor {
    scroll-margin-top: 24px;
}

/* Dark mode */
html[data-theme="dark"] .ip-docs {
    --docs-heading: #f1f5ff;
    --docs-text: #d5e0f0;
    --docs-muted: #b3c3d8;
    --docs-border: #344762;
    --docs-card: #14243b;
    --docs-soft: #1b2d47;
    background: #0b1425 !important;
    color: #d5e0f0 !important;
}

html[data-theme="dark"] .ip-docs h1,
html[data-theme="dark"] .ip-docs h2,
html[data-theme="dark"] .ip-docs h3,
html[data-theme="dark"] .ip-docs h4,
html[data-theme="dark"] .ip-docs .font-bold,
html[data-theme="dark"] .ip-docs .font-semibold {
    color: #f1f5ff !important;
}

html[data-theme="dark"] .ip-docs p,
html[data-theme="dark"] .ip-docs li,
html[data-theme="dark"] .ip-docs td,
html[data-theme="dark"] .ip-docs label,
html[data-theme="dark"] .ip-docs .text-slate-400,
html[data-theme="dark"] .ip-docs .text-slate-500,
html[data-theme="dark"] .ip-docs .text-slate-600 {
    color: #c3d1e4 !important;
}

html[data-theme="dark"] .ip-docs table,
html[data-theme="dark"] .ip-docs td {
    background: #14243b !important;
    color: #d5e0f0 !important;
    border-color: #344762 !important;
}

html[data-theme="dark"] .ip-docs th {
    background: #203653 !important;
    color: #f1f5ff !important;
}

html[data-theme="dark"] .ip-docs .bg-slate-50 {
    background: #1b2d47 !important;
}

html[data-theme="dark"] .ip-docs code.kbd,
html[data-theme="dark"] .ip-docs p code,
html[data-theme="dark"] .ip-docs li code {
    background: #263b58 !important;
    color: #d9eaff !important;
}

html[data-theme="dark"] .ip-docs nav a {
    color: #c3d1e4 !important;
}

html[data-theme="dark"] .ip-docs nav a.active {
    color: #a5b4fc !important;
}

html[data-theme="dark"] .ip-docs select {
    background: #172943 !important;
    color: #edf4ff !important;
    border-color: #526d8e !important;
}

@media(max-width:640px) {
    .ip-docs {
        font-size: 15px;
    }
    .ip-docs h1 {
        font-size: clamp(2rem, 8vw, 2.7rem) !important;
        line-height: 1.15 !important;
        overflow-wrap: anywhere;
    }
    .ip-docs h2 {
        font-size: 1.55rem !important;
        line-height: 1.3 !important;
    }
    .ip-docs article {
        min-width: 0;
    }
    .ip-docs table {
        min-width: 570px;
    }
    .ip-docs pre {
        font-size: 12px !important;
        padding: 14px !important;
    }
}

/* =====================================================
   INPUT PAY DOCS — FINAL ACCESSIBILITY + MOBILE PATCH
   Applies to both Light and Dark themes only.
===================================================== */

/* Light theme */
html[data-theme="light"] body .ip-docs {
  background:#f5f8fc !important;
  color:#243b53 !important;
}
html[data-theme="light"] body .ip-docs article,
html[data-theme="light"] body .ip-docs article section {
  color:#243b53 !important;
}
html[data-theme="light"] body .ip-docs article h1,
html[data-theme="light"] body .ip-docs article h2,
html[data-theme="light"] body .ip-docs article h3,
html[data-theme="light"] body .ip-docs article h4,
html[data-theme="light"] body .ip-docs article strong,
html[data-theme="light"] body .ip-docs article b {
  color:#142b45 !important;
  opacity:1 !important;
}
html[data-theme="light"] body .ip-docs article p,
html[data-theme="light"] body .ip-docs article li,
html[data-theme="light"] body .ip-docs article td,
html[data-theme="light"] body .ip-docs article th,
html[data-theme="light"] body .ip-docs article label,
html[data-theme="light"] body .ip-docs article span {
  color:#40566d !important;
  opacity:1 !important;
}
html[data-theme="light"] body .ip-docs article .text-slate-400,
html[data-theme="light"] body .ip-docs article .text-slate-500,
html[data-theme="light"] body .ip-docs article .text-slate-600,
html[data-theme="light"] body .ip-docs article .text-gray-400,
html[data-theme="light"] body .ip-docs article .text-gray-500 {
  color:#526a82 !important;
  opacity:1 !important;
}
html[data-theme="light"] body .ip-docs article table,
html[data-theme="light"] body .ip-docs article tbody,
html[data-theme="light"] body .ip-docs article tr,
html[data-theme="light"] body .ip-docs article td {
  background:#fff !important;
  color:#354d65 !important;
}
html[data-theme="light"] body .ip-docs article thead,
html[data-theme="light"] body .ip-docs article th {
  background:#e8f1fb !important;
  color:#193b5c !important;
}
html[data-theme="light"] body .ip-docs article code:not(pre code) {
  background:#e5edf7 !important;
  color:#173b61 !important;
  opacity:1 !important;
}

/* Dark theme */
html[data-theme="dark"] body .ip-docs {
  background:#0b1428 !important;
  color:#d8e5f5 !important;
}
html[data-theme="dark"] body .ip-docs article,
html[data-theme="dark"] body .ip-docs article section {
  color:#d8e5f5 !important;
}
html[data-theme="dark"] body .ip-docs article h1,
html[data-theme="dark"] body .ip-docs article h2,
html[data-theme="dark"] body .ip-docs article h3,
html[data-theme="dark"] body .ip-docs article h4,
html[data-theme="dark"] body .ip-docs article strong,
html[data-theme="dark"] body .ip-docs article b {
  color:#f2f7ff !important;
  opacity:1 !important;
}
html[data-theme="dark"] body .ip-docs article p,
html[data-theme="dark"] body .ip-docs article li,
html[data-theme="dark"] body .ip-docs article td,
html[data-theme="dark"] body .ip-docs article th,
html[data-theme="dark"] body .ip-docs article label,
html[data-theme="dark"] body .ip-docs article span {
  color:#c3d2e5 !important;
  opacity:1 !important;
}
html[data-theme="dark"] body .ip-docs article .text-slate-400,
html[data-theme="dark"] body .ip-docs article .text-slate-500,
html[data-theme="dark"] body .ip-docs article .text-slate-600,
html[data-theme="dark"] body .ip-docs article .text-gray-400,
html[data-theme="dark"] body .ip-docs article .text-gray-500 {
  color:#aebfd5 !important;
  opacity:1 !important;
}
html[data-theme="dark"] body .ip-docs article table,
html[data-theme="dark"] body .ip-docs article tbody,
html[data-theme="dark"] body .ip-docs article tr,
html[data-theme="dark"] body .ip-docs article td {
  background:#111f38 !important;
  color:#d6e3f3 !important;
}
html[data-theme="dark"] body .ip-docs article thead,
html[data-theme="dark"] body .ip-docs article th {
  background:#1b3150 !important;
  color:#f0f6ff !important;
}
html[data-theme="dark"] body .ip-docs article code:not(pre code) {
  background:#263d5c !important;
  color:#e4f1ff !important;
  opacity:1 !important;
}

/* Code blocks — readable in both themes */
html body .ip-docs article pre,
html body .ip-docs article pre code,
html body .ip-docs article pre code *,
html body .ip-docs article .code-block {
  background:#0b1930 !important;
  color:#e8f2ff !important;
  opacity:1 !important;
  text-shadow:none !important;
}
html body .ip-docs article pre {
  border:1px solid #385779 !important;
  border-radius:14px !important;
  max-width:100% !important;
  overflow-x:auto !important;
  white-space:pre !important;
}
html body .ip-docs article pre .text-slate-400,
html body .ip-docs article pre .text-slate-500 {
  color:#b9cce3 !important;
}
html body .ip-docs article pre .text-green-600,
html body .ip-docs article pre .text-emerald-400 {
  color:#8ce8bd !important;
}

/* Endpoint and inline parameter badges */
html body .ip-docs article code,
html body .ip-docs article kbd {
  border-radius:5px !important;
  font-weight:700 !important;
  opacity:1 !important;
}
html body .ip-docs > .border-b code {
  display:inline-block !important;
  max-width:100% !important;
  overflow-wrap:anywhere !important;
  white-space:normal !important;
}

/* Tables: keep page width stable; scroll table inside its wrapper */
html body .ip-docs article .overflow-x-auto {
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  overflow-x:auto !important;
  -webkit-overflow-scrolling:touch !important;
}
html body .ip-docs article table {
  width:100% !important;
  max-width:100% !important;
  border-collapse:collapse !important;
}
html body .ip-docs article th,
html body .ip-docs article td {
  opacity:1 !important;
  vertical-align:top !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
}

/* Mobile layout */
html body .ip-docs,
html body .ip-docs article {
  min-width:0 !important;
  max-width:100% !important;
}
html body .ip-docs article * {
  min-width:0;
}
@media(max-width:640px) {
  html body .ip-docs article {
    font-size:15px !important;
    line-height:1.7 !important;
  }
  html body .ip-docs article h1 {font-size:29px !important}
  html body .ip-docs article h2 {font-size:24px !important}
  html body .ip-docs article h3 {font-size:20px !important}

  html body .ip-docs article th,
  html body .ip-docs article td {
    padding:12px 10px !important;
    font-size:13px !important;
    min-width:105px;
  }
  html body .ip-docs article pre {
    padding:14px !important;
    font-size:12px !important;
  }
  html body .ip-docs > .border-b {
    padding-left:18px !important;
    padding-right:18px !important;
  }
  html body .ip-docs > .border-b .inline-flex {
    display:flex !important;
    flex-wrap:wrap !important;
    max-width:100% !important;
  }
  html body .ip-docs > .border-b .inline-flex code {
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    word-break:break-all !important;
    max-width:100% !important;
  }
  html body .ip-docs button[data-copy] {
    max-width:100% !important;
    white-space:nowrap !important;
  }
}

/* Never fade documentation text */
html body .ip-docs article h1,
html body .ip-docs article h2,
html body .ip-docs article h3,
html body .ip-docs article p,
html body .ip-docs article li,
html body .ip-docs article td,
html body .ip-docs article th {
  text-shadow:none !important;
  filter:none !important;
}

/* ===== INPUT PAY DOCS: FINAL MOBILE + CONTRAST REPAIR ===== */

html body .ip-docs {
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    overflow-x:clip !important;
    box-sizing:border-box !important;
    font-size:16px !important;
    line-height:1.75 !important;
}
html body .ip-docs *,
html body .ip-docs *::before,
html body .ip-docs *::after {
    box-sizing:border-box !important;
}
html body .ip-docs article {
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    overflow-wrap:anywhere !important;
}

/* DARK MODE: readable text on dark surfaces */
html[data-theme="dark"] body .ip-docs article,
html[data-theme="dark"] body .ip-docs article section,
html[data-theme="dark"] body .ip-docs article .rounded-xl,
html[data-theme="dark"] body .ip-docs article .border {
    color:#dce8f7 !important;
}
html[data-theme="dark"] body .ip-docs article h1,
html[data-theme="dark"] body .ip-docs article h2,
html[data-theme="dark"] body .ip-docs article h3,
html[data-theme="dark"] body .ip-docs article h4,
html[data-theme="dark"] body .ip-docs article strong,
html[data-theme="dark"] body .ip-docs article b {
    color:#ffffff !important;
    opacity:1 !important;
}
html[data-theme="dark"] body .ip-docs article p,
html[data-theme="dark"] body .ip-docs article li,
html[data-theme="dark"] body .ip-docs article td,
html[data-theme="dark"] body .ip-docs article label,
html[data-theme="dark"] body .ip-docs article span:not(code span) {
    color:#dce8f7 !important;
    opacity:1 !important;
}
html[data-theme="dark"] body .ip-docs article .text-slate-400,
html[data-theme="dark"] body .ip-docs article .text-slate-500,
html[data-theme="dark"] body .ip-docs article .text-slate-600,
html[data-theme="dark"] body .ip-docs article .text-gray-400,
html[data-theme="dark"] body .ip-docs article .text-gray-500 {
    color:#bdcde2 !important;
}
html[data-theme="dark"] body .ip-docs article table,
html[data-theme="dark"] body .ip-docs article tbody,
html[data-theme="dark"] body .ip-docs article tr,
html[data-theme="dark"] body .ip-docs article td {
    background:#14243b !important;
    color:#e1ebf8 !important;
}
html[data-theme="dark"] body .ip-docs article thead,
html[data-theme="dark"] body .ip-docs article th {
    background:#203957 !important;
    color:#ffffff !important;
}
html[data-theme="dark"] body .ip-docs article .bg-white,
html[data-theme="dark"] body .ip-docs article .bg-slate-50 {
    background:#14243b !important;
}

/* LIGHT MODE: dark text on white surfaces */
html[data-theme="light"] body .ip-docs article,
html[data-theme="light"] body .ip-docs article section {
    color:#263b53 !important;
}
html[data-theme="light"] body .ip-docs article h1,
html[data-theme="light"] body .ip-docs article h2,
html[data-theme="light"] body .ip-docs article h3,
html[data-theme="light"] body .ip-docs article h4,
html[data-theme="light"] body .ip-docs article strong,
html[data-theme="light"] body .ip-docs article b {
    color:#10243d !important;
    opacity:1 !important;
}
html[data-theme="light"] body .ip-docs article p,
html[data-theme="light"] body .ip-docs article li,
html[data-theme="light"] body .ip-docs article td,
html[data-theme="light"] body .ip-docs article label,
html[data-theme="light"] body .ip-docs article span:not(code span) {
    color:#344b63 !important;
    opacity:1 !important;
}
html[data-theme="light"] body .ip-docs article .text-slate-400,
html[data-theme="light"] body .ip-docs article .text-slate-500,
html[data-theme="light"] body .ip-docs article .text-slate-600 {
    color:#526981 !important;
}
html[data-theme="light"] body .ip-docs article table,
html[data-theme="light"] body .ip-docs article tbody,
html[data-theme="light"] body .ip-docs article tr,
html[data-theme="light"] body .ip-docs article td {
    background:#ffffff !important;
    color:#344b63 !important;
}
html[data-theme="light"] body .ip-docs article thead,
html[data-theme="light"] body .ip-docs article th {
    background:#eaf1fa !important;
    color:#183653 !important;
}
html[data-theme="light"] body .ip-docs article .bg-white,
html[data-theme="light"] body .ip-docs article .bg-slate-50 {
    background:#ffffff !important;
}

/* Code blocks keep their own high-contrast theme */
html body .ip-docs article pre,
html body .ip-docs article pre code,
html body .ip-docs article pre code * {
    background:#0b1b31 !important;
    color:#edf5ff !important;
    opacity:1 !important;
    text-shadow:none !important;
}
html body .ip-docs article pre {
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    overflow-x:auto !important;
    white-space:pre !important;
    -webkit-overflow-scrolling:touch !important;
}
html body .ip-docs article code:not(pre code) {
    overflow-wrap:anywhere !important;
    word-break:break-word !important;
    white-space:normal !important;
    opacity:1 !important;
}

/* Tables remain inside the phone screen */
html body .ip-docs article .overflow-x-auto {
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch !important;
}
html body .ip-docs article table {
    width:100% !important;
    max-width:100% !important;
    border-collapse:collapse !important;
}
html body .ip-docs article th,
html body .ip-docs article td {
    overflow-wrap:anywhere !important;
    word-break:normal !important;
    vertical-align:top !important;
    opacity:1 !important;
}

@media(max-width:640px) {
    html body .ip-docs {
        width:100% !important;
        max-width:100vw !important;
        padding-left:0 !important;
        padding-right:0 !important;
        font-size:15px !important;
        line-height:1.7 !important;
    }
    html body .ip-docs article {
        padding-left:16px !important;
        padding-right:16px !important;
        font-size:15px !important;
        line-height:1.7 !important;
    }
    html body .ip-docs article h1 {
        font-size:27px !important;
        line-height:1.2 !important;
    }
    html body .ip-docs article h2 {
        font-size:22px !important;
        line-height:1.3 !important;
    }
    html body .ip-docs article h3 {
        font-size:18px !important;
        line-height:1.35 !important;
    }
    html body .ip-docs article p,
    html body .ip-docs article li {
        font-size:15px !important;
        line-height:1.7 !important;
    }
    html body .ip-docs article table {
        table-layout:fixed !important;
    }
    html body .ip-docs article th,
    html body .ip-docs article td {
        min-width:0 !important;
        width:auto !important;
        padding:9px 6px !important;
        font-size:11px !important;
        line-height:1.5 !important;
        overflow-wrap:anywhere !important;
    }
    html body .ip-docs article pre {
        padding:12px !important;
        font-size:11px !important;
        line-height:1.6 !important;
    }
    html body .ip-docs article .rounded-xl {
        max-width:100% !important;
    }
    html body .ip-docs article img,
    html body .ip-docs article svg {
        max-width:100% !important;
    }
}

/* INPUT PAY DOCS V4 - MOBILE WIDTH + TRUE CONTRAST */

html, body {
    width:100% !important;
    max-width:100% !important;
    overflow-x:hidden !important;
}

.ip-docs,
.ip-docs * {
    box-sizing:border-box !important;
}

.ip-docs {
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    overflow-x:clip !important;
}

.ip-docs > * {
    max-width:100% !important;
    min-width:0 !important;
}

.ip-docs article,
.ip-docs article section {
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
}

/* Hero must never create page-level horizontal scrolling */
.ip-docs > .border-b {
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    overflow:hidden !important;
}

.ip-docs > .border-b > *,
.ip-docs > .border-b h1,
.ip-docs > .border-b p {
    max-width:100% !important;
    overflow-wrap:anywhere !important;
    word-break:normal !important;
}

/* Base URL and endpoint badges */
.ip-docs code,
.ip-docs kbd {
    max-width:100% !important;
    overflow-wrap:anywhere !important;
    word-break:break-word !important;
}

.ip-docs > .border-b code,
.ip-docs article code:not(pre code),
.ip-docs article kbd {
    display:inline-block !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    word-break:break-word !important;
    padding:3px 7px !important;
    border-radius:6px !important;
}

/* Endpoint path should wrap instead of pushing page width */
.ip-docs article .inline-flex,
.ip-docs article .flex {
    min-width:0 !important;
    max-width:100% !important;
}

.ip-docs article .overflow-x-auto {
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch !important;
}

/* Table: scroll inside its own wrapper */
.ip-docs article table {
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    table-layout:fixed !important;
    border-collapse:collapse !important;
}

.ip-docs article th,
.ip-docs article td {
    min-width:0 !important;
    width:auto !important;
    max-width:100% !important;
    overflow-wrap:anywhere !important;
    word-break:normal !important;
    vertical-align:top !important;
}

/* LIGHT MODE - dark readable text */
html[data-theme="light"] .ip-docs,
html[data-theme="light"] .ip-docs article {
    background:#f5f8fd !important;
    color:#263d56 !important;
}

html[data-theme="light"] .ip-docs h1,
html[data-theme="light"] .ip-docs h2,
html[data-theme="light"] .ip-docs h3,
html[data-theme="light"] .ip-docs h4,
html[data-theme="light"] .ip-docs strong,
html[data-theme="light"] .ip-docs b {
    color:#142b46 !important;
    opacity:1 !important;
}

html[data-theme="light"] .ip-docs p,
html[data-theme="light"] .ip-docs li,
html[data-theme="light"] .ip-docs td,
html[data-theme="light"] .ip-docs th,
html[data-theme="light"] .ip-docs label,
html[data-theme="light"] .ip-docs span {
    color:#344d67 !important;
    opacity:1 !important;
}

html[data-theme="light"] .ip-docs code:not(pre code),
html[data-theme="light"] .ip-docs kbd {
    background:#dceaff !important;
    color:#12385f !important;
    border:1px solid #b9d1ee !important;
    opacity:1 !important;
}

html[data-theme="light"] .ip-docs table,
html[data-theme="light"] .ip-docs tbody,
html[data-theme="light"] .ip-docs tr,
html[data-theme="light"] .ip-docs td {
    background:#ffffff !important;
    color:#344d67 !important;
}

html[data-theme="light"] .ip-docs th {
    background:#e7f0fb !important;
    color:#173a5d !important;
}

/* DARK MODE - light readable text */
html[data-theme="dark"] .ip-docs,
html[data-theme="dark"] .ip-docs article {
    background:#0b1425 !important;
    color:#e0eafa !important;
}

html[data-theme="dark"] .ip-docs h1,
html[data-theme="dark"] .ip-docs h2,
html[data-theme="dark"] .ip-docs h3,
html[data-theme="dark"] .ip-docs h4,
html[data-theme="dark"] .ip-docs strong,
html[data-theme="dark"] .ip-docs b {
    color:#ffffff !important;
    opacity:1 !important;
}

html[data-theme="dark"] .ip-docs p,
html[data-theme="dark"] .ip-docs li,
html[data-theme="dark"] .ip-docs td,
html[data-theme="dark"] .ip-docs th,
html[data-theme="dark"] .ip-docs label,
html[data-theme="dark"] .ip-docs span {
    color:#d8e5f5 !important;
    opacity:1 !important;
}

html[data-theme="dark"] .ip-docs code:not(pre code),
html[data-theme="dark"] .ip-docs kbd {
    background:#263e5d !important;
    color:#ffffff !important;
    border:1px solid #496b91 !important;
    opacity:1 !important;
}

html[data-theme="dark"] .ip-docs table,
html[data-theme="dark"] .ip-docs tbody,
html[data-theme="dark"] .ip-docs tr,
html[data-theme="dark"] .ip-docs td {
    background:#14243b !important;
    color:#e0eafa !important;
}

html[data-theme="dark"] .ip-docs th {
    background:#203957 !important;
    color:#ffffff !important;
}

/* Code blocks stay readable in both modes */
html body .ip-docs pre,
html body .ip-docs pre code,
html body .ip-docs pre code * {
    background:#0b1b31 !important;
    color:#f0f6ff !important;
    opacity:1 !important;
    text-shadow:none !important;
}

.ip-docs pre {
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    overflow-x:auto !important;
    white-space:pre !important;
}

/* Mobile dimensions */
@media(max-width:640px) {
    html, body {
        max-width:100vw !important;
        overflow-x:hidden !important;
    }

    .ip-docs {
        width:100vw !important;
        max-width:100vw !important;
        overflow-x:clip !important;
        font-size:15px !important;
    }

    .ip-docs > .border-b {
        padding-left:16px !important;
        padding-right:16px !important;
    }

    .ip-docs article {
        padding-left:14px !important;
        padding-right:14px !important;
        font-size:15px !important;
    }

    .ip-docs article h1 {
        font-size:27px !important;
        line-height:1.2 !important;
    }

    .ip-docs article h2 {
        font-size:22px !important;
        line-height:1.3 !important;
    }

    .ip-docs article p,
    .ip-docs article li {
        font-size:15px !important;
        line-height:1.65 !important;
    }

    .ip-docs article th,
    .ip-docs article td {
        padding:9px 6px !important;
        font-size:11px !important;
    }

    .ip-docs article pre {
        padding:11px !important;
        font-size:11px !important;
    }

    .ip-docs .ip-theme-toggle {
        max-width:calc(100vw - 24px) !important;
    }
}

/* INPUT PAY — unified sidebar header, action and account footer */
#sidebar.ip-sidebar,
#sidebar.ip-sidebar .ip-sidebar-brand,
.ip-mobile-header {
    background: linear-gradient(180deg,#142e52 0%,#0b1d38 100%) !important;
}

#sidebar.ip-sidebar {
    border-color: #29466c !important;
}

#sidebar .ip-sidebar-brand {
    min-height: 76px !important;
    border-bottom: 1px solid #29466c !important;
}

#sidebar .ip-sidebar-brand a,
.ip-mobile-header a {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
}

#sidebar .ip-sidebar-brand .input-pay-wordmark,
.ip-mobile-header .input-pay-wordmark {
    color: #ffffff !important;
}

#sidebar .ip-sidebar-brand .input-pay-wordmark small,
.ip-mobile-header .input-pay-wordmark small {
    color: #8ed4ff !important;
}

#sidebar .ip-sidebar-brand svg,
.ip-mobile-header svg {
    flex-shrink: 0 !important;
}

#sidebar > .px-3.pt-4 {
    padding: 14px 14px 12px !important;
    background: #0d2140 !important;
}

#sidebar > .px-3.pt-4 > a {
    min-height: 54px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    border-radius: 13px !important;
    color: #ffffff !important;
    font-weight: 750 !important;
    background: linear-gradient(100deg,#1769dc,#0796b8) !important;
    border: 1px solid #55b9ff !important;
    box-shadow: 0 5px 16px #0003 !important;
}

#sidebar nav {
    background: transparent !important;
}

#sidebar nav > div > div:first-child {
    color: #a9c8e9 !important;
    opacity: 1 !important;
}

#sidebar nav a.ip-nav-link {
    color: #e4efff !important;
    min-height: 56px !important;
    border: 1px solid #345276 !important;
    background: #142b4b !important;
}

#sidebar nav a.ip-nav-link .ip-icon-idle {
    color: #91b5dc !important;
    opacity: 1 !important;
}

#sidebar nav a.ip-nav-link.ip-nav-active {
    color: #ffffff !important;
    background: linear-gradient(100deg,#1769dc,#0796b8) !important;
    border-color: #55b9ff !important;
}

#sidebar nav a.ip-nav-link.ip-nav-active svg {
    color: #ffffff !important;
}

#sidebar > .border-t {
    flex-shrink: 0 !important;
    background: #0b1d38 !important;
    border-top: 1px solid #345276 !important;
    padding: 14px 12px !important;
}

#sidebar > .border-t > div {
    min-width: 0 !important;
    background: #142b4b !important;
    border: 1px solid #345276 !important;
    border-radius: 13px !important;
    padding: 10px !important;
}

#sidebar .ip-account-name,
#sidebar .text-sm.font-semibold.text-slate-900 {
    color: #ffffff !important;
    opacity: 1 !important;
}

#sidebar .text-xs.text-slate-500 {
    color: #c3d8f0 !important;
    opacity: 1 !important;
}

#sidebar .rounded-full.font-semibold {
    background: #dceaff !important;
    color: #123d70 !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 8px #0004 !important;
}

#sidebar .ip-logout-button {
    min-width: 46px !important;
    min-height: 46px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    background: #dc3150 !important;
    border: 1px solid #ff7188 !important;
    border-radius: 12px !important;
}

#sidebar .ip-logout-button svg {
    color: #ffffff !important;
}

/* Keep mobile header consistent with sidebar in both themes */
@media (max-width: 1023px) {
    .ip-mobile-header {
        min-height: 76px !important;
        height: 76px !important;
        border-bottom: 1px solid #345276 !important;
        box-shadow: 0 4px 14px #0002 !important;
    }

    .ip-mobile-header button {
        color: #ffffff !important;
        background: #24466f !important;
        border: 1px solid #52749b !important;
        border-radius: 12px !important;
    }
}

/* Prevent theme-specific global rules from fading sidebar branding */
html[data-theme="light"] #sidebar .ip-sidebar-brand .input-pay-wordmark,
html[data-theme="dark"] #sidebar .ip-sidebar-brand .input-pay-wordmark,
html[data-theme="light"] .ip-mobile-header .input-pay-wordmark,
html[data-theme="dark"] .ip-mobile-header .input-pay-wordmark {
    color: #ffffff !important;
}

html[data-theme="light"] #sidebar .ip-sidebar-brand .input-pay-wordmark small,
html[data-theme="dark"] #sidebar .ip-sidebar-brand .input-pay-wordmark small,
html[data-theme="light"] .ip-mobile-header .input-pay-wordmark small,
html[data-theme="dark"] .ip-mobile-header .input-pay-wordmark small {
    color: #8ed4ff !important;
}


/* INPUT PAY - HEADER, SIDEBAR BRAND AND FOOTER CONTRAST FIX */

/* Mobile dashboard header */
html[data-theme="light"] .ip-mobile-header,
html[data-theme="dark"] .ip-mobile-header {
    background: #0b1b35 !important;
    border-bottom: 1px solid #29486e !important;
    box-shadow: 0 3px 14px rgba(0,0,0,.22) !important;
}

.ip-mobile-header .input-pay-wordmark,
.ip-mobile-header .input-pay-wordmark small {
    color: #ffffff !important;
    opacity: 1 !important;
}

.ip-mobile-header .btn,
.ip-mobile-header button {
    color: #ffffff !important;
}

/* Sidebar brand header */
#sidebar.ip-sidebar .ip-sidebar-brand {
    background: #0b1b35 !important;
    border-bottom: 1px solid #29486e !important;
    opacity: 1 !important;
}

#sidebar .ip-sidebar-brand .input-pay-wordmark,
#sidebar .ip-sidebar-brand .input-pay-wordmark small {
    color: #ffffff !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Sidebar footer */
#sidebar > .border-t {
    background: #0b1b35 !important;
    border-top: 1px solid #29486e !important;
    opacity: 1 !important;
}

#sidebar > .border-t > div {
    background: #142b4b !important;
    border: 1px solid #29486e !important;
    border-radius: 14px !important;
    padding: 12px 10px !important;
}

#sidebar .ip-account-name,
#sidebar .text-slate-900,
#sidebar > .border-t .text-sm {
    color: #ffffff !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #ffffff !important;
}

#sidebar .ip-account-email,
#sidebar > .border-t .text-xs {
    color: #c5d7ed !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #c5d7ed !important;
}

#sidebar > .border-t [class*="rounded-full"] {
    background: #1765bd !important;
    color: #ffffff !important;
    border: 2px solid #70c8ff !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #ffffff !important;
}

#sidebar .ip-logout-button {
    background: #dc3150 !important;
    color: #ffffff !important;
    border: 1px solid #ff7185 !important;
    opacity: 1 !important;
}

#sidebar .ip-logout-button svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* New payment button text contrast */
#sidebar a.ip-new-payment-button,
#sidebar a.btn-primary {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

#sidebar a.btn-primary svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}


/* =====================================================
   INPUT PAY - CENTRAL LIGHT / DARK THEME LAYER
   Loaded after app.css. No application logic changed.
===================================================== */

html[data-theme="light"] {
    color-scheme: light;
    --ip-bg: #f3f7fc;
    --ip-panel: #ffffff;
    --ip-panel-2: #edf3fa;
    --ip-text: #172f4d;
    --ip-muted: #526b86;
    --ip-line: #d5e1ee;
    --ip-shadow: 0 8px 28px rgba(20,50,85,.08);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --ip-bg: #071326;
    --ip-panel: #0e2039;
    --ip-panel-2: #152b48;
    --ip-text: #f0f6ff;
    --ip-muted: #b3c5dc;
    --ip-line: #2b4565;
    --ip-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* Main surfaces */
html[data-theme] body,
html[data-theme] body.ip-app-shell {
    background-color: var(--ip-bg) !important;
    color: var(--ip-text) !important;
}

html[data-theme] .ip-app-main,
html[data-theme] .ip-main-content,
html[data-theme] main {
    background: transparent !important;
    color: var(--ip-text) !important;
}

/* Cards and panels */
html[data-theme] body .card,
html[data-theme] body .ip-card,
html[data-theme] body .panel,
html[data-theme] body .pricing-card,
html[data-theme] body .feature-card {
    background: var(--ip-panel) !important;
    color: var(--ip-text) !important;
    border-color: var(--ip-line) !important;
    box-shadow: var(--ip-shadow) !important;
}

html[data-theme] body .card-header {
    background: var(--ip-panel-2) !important;
    color: var(--ip-text) !important;
    border-color: var(--ip-line) !important;
}

/* Text contrast */
html[data-theme] body .text-slate-950,
html[data-theme] body .text-slate-900,
html[data-theme] body .text-slate-800,
html[data-theme] body .text-gray-900,
html[data-theme] body .text-gray-800,
html[data-theme] body h1,
html[data-theme] body h2,
html[data-theme] body h3,
html[data-theme] body h4,
html[data-theme] body .card-title {
    color: var(--ip-text) !important;
    -webkit-text-fill-color: var(--ip-text);
}

html[data-theme] body .text-slate-700,
html[data-theme] body .text-slate-600,
html[data-theme] body .text-slate-500,
html[data-theme] body .text-slate-400,
html[data-theme] body .text-gray-700,
html[data-theme] body .text-gray-600,
html[data-theme] body .text-gray-500,
html[data-theme] body .text-gray-400,
html[data-theme] body .help {
    color: var(--ip-muted) !important;
    -webkit-text-fill-color: var(--ip-muted);
}

/* Form fields */
html[data-theme] body input:not([type="checkbox"]):not([type="radio"]),
html[data-theme] body select,
html[data-theme] body textarea,
html[data-theme] body .input {
    background: var(--ip-panel-2) !important;
    color: var(--ip-text) !important;
    border-color: var(--ip-line) !important;
}

html[data-theme] body input::placeholder,
html[data-theme] body textarea::placeholder {
    color: var(--ip-muted) !important;
    opacity: .85 !important;
}

html[data-theme] body label,
html[data-theme] body .label {
    color: var(--ip-muted) !important;
}

/* Tables */
html[data-theme] body table {
    background: var(--ip-panel) !important;
    color: var(--ip-text) !important;
    border-color: var(--ip-line) !important;
}

html[data-theme] body thead,
html[data-theme] body th {
    background: var(--ip-panel-2) !important;
    color: var(--ip-text) !important;
    border-color: var(--ip-line) !important;
}

html[data-theme] body td,
html[data-theme] body tbody tr {
    color: var(--ip-text) !important;
    border-color: var(--ip-line) !important;
}

html[data-theme] body tbody tr:hover {
    background: color-mix(in srgb, var(--ip-panel-2) 75%, var(--ip-bg)) !important;
}

/* Neutral utility backgrounds */
html[data-theme] body .bg-white,
html[data-theme] body .bg-white\/90,
html[data-theme] body .bg-white\/95 {
    background-color: var(--ip-panel) !important;
}

html[data-theme] body .bg-slate-50,
html[data-theme] body .bg-gray-50,
html[data-theme] body .bg-slate-100,
html[data-theme] body .bg-gray-100 {
    background-color: var(--ip-panel-2) !important;
}

html[data-theme] body .border-slate-100,
html[data-theme] body .border-slate-200,
html[data-theme] body .border-gray-100,
html[data-theme] body .border-gray-200 {
    border-color: var(--ip-line) !important;
}

/* Sidebar */
html[data-theme] body #sidebar.ip-sidebar {
    background: var(--ip-panel) !important;
    color: var(--ip-text) !important;
    border-color: var(--ip-line) !important;
}

html[data-theme] body #sidebar .ip-sidebar-brand {
    background: var(--ip-panel) !important;
    border-color: var(--ip-line) !important;
}

html[data-theme] body #sidebar .input-pay-wordmark {
    color: var(--ip-text) !important;
    -webkit-text-fill-color: var(--ip-text) !important;
}

html[data-theme] body #sidebar .input-pay-wordmark small {
    color: var(--ip-muted) !important;
    -webkit-text-fill-color: var(--ip-muted) !important;
}

html[data-theme] body #sidebar nav > div > div:first-child {
    color: var(--ip-muted) !important;
}

html[data-theme] body #sidebar .ip-nav-idle {
    color: var(--ip-muted) !important;
    background: transparent !important;
    border-color: transparent !important;
}

html[data-theme] body #sidebar .ip-nav-idle:hover {
    color: var(--ip-text) !important;
    background: var(--ip-panel-2) !important;
}

html[data-theme] body #sidebar .ip-nav-active {
    color: #ffffff !important;
    background: linear-gradient(110deg,#1769df,#078eaf) !important;
}

html[data-theme] body #sidebar .ip-nav-active * {
    color: #ffffff !important;
}

html[data-theme] body #sidebar > .border-t {
    background: var(--ip-panel) !important;
    border-color: var(--ip-line) !important;
}

html[data-theme] body #sidebar > .border-t > div {
    background: var(--ip-panel-2) !important;
    border-color: var(--ip-line) !important;
}

html[data-theme] body #sidebar > .border-t .text-sm {
    color: var(--ip-text) !important;
    -webkit-text-fill-color: var(--ip-text) !important;
}

html[data-theme] body #sidebar > .border-t .text-xs {
    color: var(--ip-muted) !important;
    -webkit-text-fill-color: var(--ip-muted) !important;
}

/* Mobile header */
html[data-theme] body .ip-mobile-header {
    background: var(--ip-panel) !important;
    border-color: var(--ip-line) !important;
    box-shadow: var(--ip-shadow) !important;
}

html[data-theme] body .ip-mobile-header .input-pay-wordmark {
    color: var(--ip-text) !important;
}

html[data-theme] body .ip-mobile-header .input-pay-wordmark small {
    color: var(--ip-muted) !important;
}

html[data-theme] body .ip-mobile-header button {
    color: var(--ip-text) !important;
    background: var(--ip-panel-2) !important;
    border-color: var(--ip-line) !important;
}

/* Buttons */
html[data-theme] body .btn-primary,
html[data-theme] body a.btn-primary {
    color: #ffffff !important;
    background: linear-gradient(110deg,#1769df,#078eaf) !important;
    border-color: transparent !important;
}

html[data-theme] body .btn-primary *,
html[data-theme] body a.btn-primary * {
    color: #ffffff !important;
}

html[data-theme] body .btn-secondary,
html[data-theme] body .btn-ghost {
    color: var(--ip-text) !important;
    background: var(--ip-panel-2) !important;
    border-color: var(--ip-line) !important;
}

html[data-theme] body .btn-secondary *,
html[data-theme] body .btn-ghost * {
    color: var(--ip-text) !important;
}

/* Preserve logout contrast */
html[data-theme] body #sidebar .ip-logout-button {
    color: #ffffff !important;
    background: #d92f4b !important;
    border-color: #ef7184 !important;
}

html[data-theme] body #sidebar .ip-logout-button svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* Theme toggle */
html[data-theme] body .ip-theme-toggle {
    color: var(--ip-text) !important;
    background: var(--ip-panel) !important;
    border-color: var(--ip-line) !important;
}

/* Keep code blocks readable */
html[data-theme] body pre {
    background: #0b1b31 !important;
    color: #eaf3ff !important;
    border-color: #345477 !important;
}

html[data-theme] body pre *,
html[data-theme] body pre code {
    color: #eaf3ff !important;
    background: transparent !important;
}

/* Mobile layout */
@media(max-width:1023px) {
    html[data-theme] body .ip-sidebar {
        background: var(--ip-panel) !important;
    }
}


/* INPUT PAY - LIGHT MODE TEXT READABILITY CORRECTION */

html[data-theme="light"] body {
    color: #243b55 !important;
}

/* Normal descriptions and paragraph text */
html[data-theme="light"] body p,
html[data-theme="light"] body li,
html[data-theme="light"] body label,
html[data-theme="light"] body .help,
html[data-theme="light"] body small {
    color: #405873 !important;
    opacity: 1 !important;
}

/* Muted utility text */
html[data-theme="light"] body .text-slate-400,
html[data-theme="light"] body .text-gray-400 {
    color: #526b85 !important;
    opacity: 1 !important;
}

html[data-theme="light"] body .text-slate-500,
html[data-theme="light"] body .text-gray-500 {
    color: #4b637d !important;
    opacity: 1 !important;
}

html[data-theme="light"] body .text-slate-600,
html[data-theme="light"] body .text-gray-600 {
    color: #405873 !important;
    opacity: 1 !important;
}

html[data-theme="light"] body .text-slate-700,
html[data-theme="light"] body .text-gray-700 {
    color: #304963 !important;
    opacity: 1 !important;
}

/* Page headings */
html[data-theme="light"] body h1,
html[data-theme="light"] body h2,
html[data-theme="light"] body h3,
html[data-theme="light"] body h4 {
    color: #173653 !important;
    opacity: 1 !important;
}

/* Cards and empty states */
html[data-theme="light"] body .card p,
html[data-theme="light"] body .card li,
html[data-theme="light"] body .card label,
html[data-theme="light"] body .ip-card p,
html[data-theme="light"] body .ip-card li {
    color: #405873 !important;
    opacity: 1 !important;
}

/* API documentation */
html[data-theme="light"] body .ip-docs p,
html[data-theme="light"] body .ip-docs li,
html[data-theme="light"] body .ip-docs td,
html[data-theme="light"] body .ip-docs label {
    color: #344b66 !important;
    opacity: 1 !important;
}

html[data-theme="light"] body .ip-docs .text-slate-400,
html[data-theme="light"] body .ip-docs .text-slate-500,
html[data-theme="light"] body .ip-docs .text-slate-600 {
    color: #526982 !important;
    opacity: 1 !important;
}

/* Sidebar descriptions */
html[data-theme="light"] body #sidebar .text-slate-400,
html[data-theme="light"] body #sidebar .text-slate-500 {
    color: #526982 !important;
    opacity: 1 !important;
}

/* Input placeholders */
html[data-theme="light"] body input::placeholder,
html[data-theme="light"] body textarea::placeholder {
    color: #657b93 !important;
    opacity: 1 !important;
}


/* INPUT PAY provider connection pages — readable in both themes */
.ip-connect-page,.ip-connect-form-wrap{width:100%;max-width:1100px;margin:0 auto;color:#172f4d}
.ip-connect-heading{margin:0 0 24px}
.ip-connect-eyebrow{display:block;font-size:11px;font-weight:900;letter-spacing:1.5px;color:#1769b4!important}
.ip-connect-heading h2,.ip-connect-form-title h2{font-size:clamp(23px,4vw,30px);font-weight:850;line-height:1.2;color:#142d4b!important;margin:8px 0}
.ip-connect-heading p,.ip-connect-form-title p{font-size:15px;line-height:1.65;color:#405b78!important}
.ip-provider-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.ip-provider-card{min-width:0;padding:22px;border:1px solid #c8d9eb;border-radius:20px;background:#fff;color:#183653;box-shadow:0 8px 24px #173c6010}
.ip-provider-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px}
.ip-provider-logo{width:52px;height:52px;display:grid;place-items:center;border-radius:15px;background:#edf4ff;border:1px solid #c6d9ef;color:#163e68;font-size:20px;font-weight:900}
.ip-provider-logo.phonepe{background:#f0eaff;color:#5531a5}
.ip-provider-logo.upi{font-size:14px;background:#e8f6ff;color:#075c91}
.ip-provider-status{font-size:10px;font-weight:900;letter-spacing:.5px;color:#087a45!important;background:#e5f7ed;border:1px solid #b9e8cb;padding:6px 9px;border-radius:20px}
.ip-provider-card h3{font-size:19px;font-weight:850;color:#142e4b!important;margin:0 0 8px}
.ip-provider-card p{font-size:14px;line-height:1.65;color:#3c5875!important;min-height:68px;margin:0 0 17px}
.ip-provider-requirement{display:flex;flex-direction:column;gap:5px;padding:12px;margin:0 0 17px;border-radius:11px;background:#f0f5fb;border:1px solid #dce7f2}
.ip-provider-requirement span{font-size:10px;font-weight:900;letter-spacing:1px;color:#526b84!important}
.ip-provider-requirement strong{font-size:12px;color:#183c60!important;overflow-wrap:anywhere}
.ip-connect-button{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px}
.ip-connect-note,.ip-provider-explainer{padding:16px 18px;border:1px solid #bfd7ef;border-radius:14px;background:#edf5ff;color:#244766;margin-top:20px}
.ip-connect-note strong,.ip-provider-explainer strong{display:block;color:#173b60!important;font-size:14px;margin-bottom:5px}
.ip-connect-note p,.ip-provider-explainer p{color:#355573!important;font-size:13px;line-height:1.65;margin:0}
.ip-connect-form-wrap{max-width:680px}
.ip-connect-form{padding:clamp(18px,4vw,30px)}
.ip-connect-form-title{margin-bottom:24px}
.ip-field{display:flex;flex-direction:column;gap:8px;margin:0 0 19px}
.ip-field label{font-size:14px;font-weight:800;color:#203e5c!important}
.ip-field input,.ip-field select{width:100%;min-height:52px;padding:12px 14px;border:1px solid #9db6d0;border-radius:12px;background:#fff!important;color:#142f4d!important;font-size:15px;opacity:1!important}
.ip-field input::placeholder{color:#647d96!important;opacity:1}
.ip-field-error{color:#b42335!important;font-size:12px;font-weight:700}
.ip-connect-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #d5e1ed;padding-top:20px;margin-top:24px}
.ip-connect-error{padding:12px;border-radius:10px;background:#fff0f0;color:#a51e2d!important}
html[data-theme="light"] .ip-connect-page,
html[data-theme="light"] .ip-connect-form-wrap{color:#172f4d!important}
html[data-theme="light"] .ip-connect-page p,
html[data-theme="light"] .ip-connect-form-wrap p{color:#355573!important;opacity:1!important}
html[data-theme="light"] .ip-provider-card,
html[data-theme="light"] .ip-connect-form{background:#fff!important;color:#183653!important}
html[data-theme="light"] .ip-connect-page h2,
html[data-theme="light"] .ip-connect-page h3,
html[data-theme="light"] .ip-connect-form-wrap h2,
html[data-theme="light"] .ip-connect-form-wrap label{color:#142e4b!important;opacity:1!important}
html[data-theme="dark"] .ip-provider-card,
html[data-theme="dark"] .ip-connect-form{background:#10243e!important;border-color:#365574!important;color:#eef5ff!important}
html[data-theme="dark"] .ip-connect-page h2,
html[data-theme="dark"] .ip-connect-page h3,
html[data-theme="dark"] .ip-connect-form-wrap h2,
html[data-theme="dark"] .ip-connect-form-wrap label{color:#f1f6ff!important;opacity:1!important}
html[data-theme="dark"] .ip-connect-page p,
html[data-theme="dark"] .ip-connect-form-wrap p{color:#c4d5e9!important;opacity:1!important}
html[data-theme="dark"] .ip-provider-requirement{background:#172e4b;border-color:#3a5878}
html[data-theme="dark"] .ip-provider-requirement strong,
html[data-theme="dark"] .ip-provider-requirement span{color:#e0ecfa!important}
html[data-theme="dark"] .ip-provider-explainer,
html[data-theme="dark"] .ip-connect-note{background:#1a3555;border-color:#466789}
html[data-theme="dark"] .ip-provider-explainer strong,
html[data-theme="dark"] .ip-connect-note strong,
html[data-theme="dark"] .ip-provider-explainer p,
html[data-theme="dark"] .ip-connect-note p{color:#e2edfa!important}
html[data-theme="dark"] .ip-field input,
html[data-theme="dark"] .ip-field select{background:#172e4a!important;color:#f2f7ff!important;border-color:#7894b3!important}
@media(max-width:680px){.ip-provider-grid{grid-template-columns:1fr}.ip-provider-card p{min-height:0}.ip-provider-card{padding:18px}.ip-connect-actions{flex-wrap:wrap}.ip-connect-actions>*{flex:1;text-align:center;justify-content:center}}

/* INPUT PAY CONNECT PROVIDERS — FINAL CONTRAST FIX */
.ip-connect-page {
    width:100%;
    max-width:1100px;
    margin:0 auto;
}
.ip-provider-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
}
.ip-provider-card {
    min-width:0;
    padding:22px;
    border-radius:18px!important;
    border:1px solid #cbd9e9!important;
    background:#ffffff!important;
    color:#183653!important;
    opacity:1!important;
    box-shadow:0 8px 24px rgba(20,50,80,.10)!important;
}
.ip-provider-card h3 {
    color:#142e4b!important;
    font-size:19px;
    font-weight:850;
    opacity:1!important;
}
.ip-provider-card p {
    color:#344f6c!important;
    font-size:14px;
    line-height:1.65;
    opacity:1!important;
}
.ip-provider-logo {
    width:58px!important;
    height:58px!important;
    flex:0 0 58px;
    display:grid;
    place-items:center;
    padding:5px;
    overflow:hidden;
    border-radius:15px!important;
    background:#ffffff!important;
    border:1px solid #d4e0ed!important;
}
.ip-provider-logo svg {
    width:100%;
    height:100%;
    display:block;
}
.ip-provider-status {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#08783e!important;
    background:#e4f8ec!important;
    border:1px solid #a9e5bf!important;
    font-size:10px;
    font-weight:900;
    opacity:1!important;
}
.ip-provider-requirement {
    background:#edf4fb!important;
    border:1px solid #d4e2f0!important;
}
.ip-provider-requirement span {
    color:#526982!important;
    opacity:1!important;
}
.ip-provider-requirement strong {
    color:#173a5b!important;
    opacity:1!important;
}
.ip-connect-note {
    background:#edf5ff!important;
    border-color:#c4d9ef!important;
}
.ip-connect-note strong {
    color:#173b60!important;
}
.ip-connect-note p {
    color:#355573!important;
    opacity:1!important;
}
.ip-connect-button {
    min-height:44px;
    font-weight:800!important;
    opacity:1!important;
}

/* DARK MODE — force dark provider cards and bright text */
html[data-theme="dark"] body main .ip-connect-page .ip-provider-card {
    background:linear-gradient(145deg,#142b49,#0e2038)!important;
    border-color:#355574!important;
    color:#f1f6ff!important;
}
html[data-theme="dark"] body main .ip-connect-page .ip-provider-card h3 {
    color:#ffffff!important;
    opacity:1!important;
}
html[data-theme="dark"] body main .ip-connect-page .ip-provider-card p {
    color:#d0def0!important;
    opacity:1!important;
}
html[data-theme="dark"] body main .ip-connect-page .ip-provider-requirement {
    background:#1b3554!important;
    border-color:#3a5a7c!important;
}
html[data-theme="dark"] body main .ip-connect-page .ip-provider-requirement span {
    color:#c5d7eb!important;
}
html[data-theme="dark"] body main .ip-connect-page .ip-provider-requirement strong {
    color:#ffffff!important;
}
html[data-theme="dark"] body main .ip-connect-page .ip-connect-note {
    background:#172f4c!important;
    border-color:#3b5b7a!important;
}
html[data-theme="dark"] body main .ip-connect-page .ip-connect-note strong {
    color:#ffffff!important;
}
html[data-theme="dark"] body main .ip-connect-page .ip-connect-note p {
    color:#d0def0!important;
}
html[data-theme="dark"] body main .ip-connect-page .ip-provider-status {
    color:#65e69a!important;
    background:#103e2c!important;
    border-color:#23794d!important;
}
html[data-theme="dark"] body main .ip-connect-page .ip-provider-logo {
    background:#ffffff!important;
    border-color:#dce8f5!important;
}
html[data-theme="dark"] body main .ip-connect-page .ip-connect-heading h2 {
    color:#ffffff!important;
}
html[data-theme="dark"] body main .ip-connect-page .ip-connect-heading p {
    color:#c8d8eb!important;
}
@media(max-width:680px) {
    .ip-provider-grid {grid-template-columns:1fr}
    .ip-provider-card {padding:18px!important}
    .ip-provider-card p {min-height:0}
}

/* INPUT PAY - PROVIDER BRANDING AND CONTRAST */
.ip-connect-page .ip-provider-card {
    padding:20px!important;
    border-radius:20px!important;
    opacity:1!important;
}
.ip-connect-page .ip-provider-logo {
    width:64px!important;
    height:64px!important;
    flex:0 0 64px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:8px!important;
    background:#fff!important;
    border:1px solid #d8e2ed!important;
    border-radius:14px!important;
}
.ip-connect-page .ip-provider-logo img {
    display:block!important;
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
}
.ip-connect-page .ip-provider-status {
    color:#08783e!important;
    background:#e4f8ec!important;
    border:1px solid #a9e5bf!important;
    font-weight:900!important;
    opacity:1!important;
}
html[data-theme="light"] body main .ip-connect-page .ip-provider-card {
    background:#fff!important;
    color:#183653!important;
    border-color:#cbd9e9!important;
}
html[data-theme="light"] body main .ip-connect-page .ip-provider-card h3 {
    color:#142e4b!important;
    -webkit-text-fill-color:#142e4b!important;
}
html[data-theme="light"] body main .ip-connect-page .ip-provider-card p {
    color:#344f6c!important;
    -webkit-text-fill-color:#344f6c!important;
}
html[data-theme="light"] body main .ip-connect-page .ip-provider-requirement {
    background:#edf4fb!important;
    border-color:#d4e2f0!important;
}
html[data-theme="light"] body main .ip-connect-page .ip-provider-requirement span {
    color:#526982!important;
}
html[data-theme="light"] body main .ip-connect-page .ip-provider-requirement strong {
    color:#173a5b!important;
}
html[data-theme="dark"] body main .ip-connect-page .ip-provider-card {
    background:linear-gradient(145deg,#142b49,#0e2038)!important;
    color:#f1f6ff!important;
    border-color:#355574!important;
}
html[data-theme="dark"] body main .ip-connect-page .ip-provider-card h3 {
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
}
html[data-theme="dark"] body main .ip-connect-page .ip-provider-card p {
    color:#d0def0!important;
    -webkit-text-fill-color:#d0def0!important;
}
html[data-theme="dark"] body main .ip-connect-page .ip-provider-requirement {
    background:#1b3554!important;
    border-color:#3a5a7c!important;
}
html[data-theme="dark"] body main .ip-connect-page .ip-provider-requirement span,
html[data-theme="dark"] body main .ip-connect-page .ip-provider-requirement strong {
    color:#e0ecfa!important;
}
@media(max-width:680px) {
    .ip-connect-page .ip-provider-grid {
        grid-template-columns:1fr!important;
    }
    .ip-connect-page .ip-provider-card {
        padding:18px!important;
    }
}

/* INPUT PAY - PROVIDER BRANDING AND CONTRAST */
.ip-connect-page .ip-provider-card {
    padding:20px!important;
    border-radius:20px!important;
    opacity:1!important;
}
.ip-connect-page .ip-provider-logo {
    width:64px!important;
    height:64px!important;
    flex:0 0 64px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:8px!important;
    background:#fff!important;
    border:1px solid #d8e2ed!important;
    border-radius:14px!important;
}
.ip-connect-page .ip-provider-logo img {
    display:block!important;
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
}
.ip-connect-page .ip-provider-status {
    color:#08783e!important;
    background:#e4f8ec!important;
    border:1px solid #a9e5bf!important;
    font-weight:900!important;
    opacity:1!important;
}
html[data-theme="light"] body main .ip-connect-page .ip-provider-card {
    background:#fff!important;
    color:#183653!important;
    border-color:#cbd9e9!important;
}
html[data-theme="light"] body main .ip-connect-page .ip-provider-card h3 {
    color:#142e4b!important;
    -webkit-text-fill-color:#142e4b!important;
}
html[data-theme="light"] body main .ip-connect-page .ip-provider-card p {
    color:#344f6c!important;
    -webkit-text-fill-color:#344f6c!important;
}
html[data-theme="light"] body main .ip-connect-page .ip-provider-requirement {
    background:#edf4fb!important;
    border-color:#d4e2f0!important;
}
html[data-theme="light"] body main .ip-connect-page .ip-provider-requirement span {
    color:#526982!important;
}
html[data-theme="light"] body main .ip-connect-page .ip-provider-requirement strong {
    color:#173a5b!important;
}
html[data-theme="dark"] body main .ip-connect-page .ip-provider-card {
    background:linear-gradient(145deg,#142b49,#0e2038)!important;
    color:#f1f6ff!important;
    border-color:#355574!important;
}
html[data-theme="dark"] body main .ip-connect-page .ip-provider-card h3 {
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
}
html[data-theme="dark"] body main .ip-connect-page .ip-provider-card p {
    color:#d0def0!important;
    -webkit-text-fill-color:#d0def0!important;
}
html[data-theme="dark"] body main .ip-connect-page .ip-provider-requirement {
    background:#1b3554!important;
    border-color:#3a5a7c!important;
}
html[data-theme="dark"] body main .ip-connect-page .ip-provider-requirement span,
html[data-theme="dark"] body main .ip-connect-page .ip-provider-requirement strong {
    color:#e0ecfa!important;
}
@media(max-width:680px) {
    .ip-connect-page .ip-provider-grid {
        grid-template-columns:1fr!important;
    }
    .ip-connect-page .ip-provider-card {
        padding:18px!important;
    }
}

/* FINAL PROVIDER CARD LAYOUT */
.ip-connect-page {
    width:100%;
    max-width:100%;
    margin:0 auto;
}
.ip-connect-page .ip-provider-grid {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:16px!important;
}
.ip-connect-page .ip-provider-card {
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    min-width:0!important;
    padding:18px!important;
    border-radius:18px!important;
    overflow:hidden!important;
}
.ip-connect-page .ip-provider-top {
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    min-height:52px!important;
    margin-bottom:16px!important;
}
.ip-connect-page .ip-provider-logo {
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:52px!important;
    height:52px!important;
    min-width:52px!important;
    min-height:52px!important;
    max-width:52px!important;
    max-height:52px!important;
    flex:0 0 52px!important;
    padding:5px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
    background:#fff!important;
    border:1px solid #d7e1ec!important;
    border-radius:12px!important;
}
.ip-connect-page .ip-provider-logo img {
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:42px!important;
    max-height:42px!important;
    object-fit:contain!important;
    object-position:center!important;
    flex:none!important;
}
.ip-connect-page .ip-provider-card h3 {
    margin:0 0 8px!important;
    font-size:19px!important;
    line-height:1.35!important;
    font-weight:850!important;
    overflow-wrap:anywhere!important;
}
.ip-connect-page .ip-provider-card p {
    min-height:0!important;
    margin:0 0 16px!important;
    font-size:14px!important;
    line-height:1.65!important;
    overflow-wrap:anywhere!important;
}
.ip-connect-page .ip-provider-status {
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:6px 9px!important;
    border-radius:20px!important;
    white-space:nowrap!important;
    font-size:10px!important;
    font-weight:900!important;
    color:#08783e!important;
    background:#e4f8ec!important;
    border:1px solid #a9e5bf!important;
}
.ip-connect-page .ip-provider-requirement {
    margin-top:auto!important;
    margin-bottom:14px!important;
    padding:12px!important;
    border-radius:11px!important;
}
.ip-connect-page .ip-connect-button {
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:10px!important;
    width:100%!important;
    min-height:48px!important;
    padding:12px!important;
    border-radius:12px!important;
    font-size:14px!important;
    font-weight:800!important;
    text-align:center!important;
    overflow-wrap:anywhere!important;
}
html[data-theme="light"] body main .ip-connect-page .ip-provider-card {
    background:#fff!important;
    color:#183653!important;
    border-color:#cbd9e9!important;
}
html[data-theme="light"] body main .ip-connect-page .ip-provider-card h3 {
    color:#142e4b!important;
    -webkit-text-fill-color:#142e4b!important;
}
html[data-theme="light"] body main .ip-connect-page .ip-provider-card p {
    color:#344f6c!important;
    -webkit-text-fill-color:#344f6c!important;
}
html[data-theme="dark"] body main .ip-connect-page .ip-provider-card {
    background:linear-gradient(145deg,#142b49,#0e2038)!important;
    color:#f1f6ff!important;
    border-color:#355574!important;
}
html[data-theme="dark"] body main .ip-connect-page .ip-provider-card h3 {
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
}
html[data-theme="dark"] body main .ip-connect-page .ip-provider-card p {
    color:#d0def0!important;
    -webkit-text-fill-color:#d0def0!important;
}
@media(max-width:680px) {
    .ip-connect-page .ip-provider-grid {
        grid-template-columns:1fr!important;
    }
}

/* =====================================================
   INPUT PAY - FINAL PROVIDER CARDS UI
   ===================================================== */

.ip-connect-page {
    width:100%;
    max-width:100%;
}

.ip-connect-page .ip-connect-heading {
    margin-bottom:30px!important;
}

.ip-connect-page .ip-connect-heading h2 {
    font-size:clamp(25px,4vw,34px)!important;
    line-height:1.25!important;
    font-weight:850!important;
    letter-spacing:-.5px!important;
}

.ip-connect-page .ip-connect-heading p {
    font-size:16px!important;
    line-height:1.6!important;
    margin-top:10px!important;
}

.ip-connect-page .ip-provider-grid {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:20px!important;
    align-items:stretch!important;
}

.ip-connect-page .ip-provider-card {
    min-width:0!important;
    width:100%!important;
    padding:22px!important;
    border-radius:20px!important;
    border:1px solid!important;
    box-shadow:0 10px 28px rgba(0,0,0,.12)!important;
    display:flex!important;
    flex-direction:column!important;
    gap:0!important;
    opacity:1!important;
}

.ip-connect-page .ip-provider-top {
    display:flex!important;
    justify-content:space-between!important;
    align-items:center!important;
    gap:12px!important;
    margin-bottom:18px!important;
}

.ip-connect-page .ip-provider-logo {
    width:54px!important;
    height:54px!important;
    min-width:54px!important;
    flex:0 0 54px!important;
    padding:8px!important;
    border-radius:15px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
}

.ip-connect-page .ip-provider-logo img {
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    object-fit:contain!important;
    object-position:center!important;
    filter:none!important;
}

.ip-connect-page .ip-upi-wordmark {
    font-size:16px!important;
    font-weight:900!important;
    letter-spacing:-.5px!important;
}

.ip-connect-page .ip-provider-status {
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    white-space:nowrap!important;
    padding:7px 11px!important;
    border-radius:30px!important;
    font-size:11px!important;
    font-weight:900!important;
    letter-spacing:.4px!important;
    color:#08783e!important;
    background:#e3f8eb!important;
    border:1px solid #9cdeb4!important;
    opacity:1!important;
}

.ip-connect-page .ip-provider-card h3 {
    font-size:20px!important;
    line-height:1.35!important;
    font-weight:850!important;
    margin:0 0 10px!important;
}

.ip-connect-page .ip-provider-card p {
    min-height:0!important;
    font-size:14px!important;
    line-height:1.7!important;
    margin:0 0 20px!important;
    font-weight:450!important;
    opacity:1!important;
}

.ip-connect-page .ip-provider-requirement {
    display:flex!important;
    flex-direction:column!important;
    gap:6px!important;
    padding:13px 15px!important;
    border:1px solid!important;
    border-radius:12px!important;
    margin-top:auto!important;
    margin-bottom:16px!important;
}

.ip-connect-page .ip-provider-requirement span {
    font-size:10px!important;
    font-weight:800!important;
    letter-spacing:1px!important;
}

.ip-connect-page .ip-provider-requirement strong {
    font-size:14px!important;
    line-height:1.4!important;
    font-weight:850!important;
}

.ip-connect-page .ip-connect-button {
    width:100%!important;
    min-height:48px!important;
    padding:12px 16px!important;
    border-radius:12px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:10px!important;
    text-align:center!important;
    white-space:normal!important;
    font-size:14px!important;
    line-height:1.35!important;
    font-weight:800!important;
    box-shadow:0 5px 14px rgba(0,90,200,.20)!important;
}

.ip-connect-page .ip-connect-button span {
    flex:0 0 auto!important;
    font-size:19px!important;
}

.ip-connect-page .ip-connect-note {
    margin-top:24px!important;
    padding:18px!important;
    border:1px solid!important;
    border-radius:15px!important;
    line-height:1.65!important;
}

/* DARK MODE */
html[data-theme="dark"] body main .ip-connect-page .ip-provider-card {
    background:linear-gradient(145deg,#142b49,#0b1b30)!important;
    border-color:#355574!important;
    color:#f4f7ff!important;
}

html[data-theme="dark"] body main .ip-connect-page .ip-provider-card h3 {
    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;
}

html[data-theme="dark"] body main .ip-connect-page .ip-provider-card p {
    color:#d4e1f2!important;
    -webkit-text-fill-color:#d4e1f2!important;
}

html[data-theme="dark"] body main .ip-connect-page .ip-provider-requirement {
    background:#1c3858!important;
    border-color:#416487!important;
}

html[data-theme="dark"] body main .ip-connect-page .ip-provider-requirement span {
    color:#b9cce2!important;
}

html[data-theme="dark"] body main .ip-connect-page .ip-provider-requirement strong {
    color:#ffffff!important;
}

html[data-theme="dark"] body main .ip-connect-page .ip-connect-note {
    background:#10243d!important;
    border-color:#345271!important;
    color:#dce8f7!important;
}

html[data-theme="dark"] body main .ip-connect-page .ip-connect-heading h2 {
    color:#f4f7ff!important;
}

html[data-theme="dark"] body main .ip-connect-page .ip-connect-heading p {
    color:#bdcde1!important;
}

/* LIGHT MODE */
html[data-theme="light"] body main .ip-connect-page .ip-provider-card {
    background:linear-gradient(145deg,#ffffff,#f1f6fc)!important;
    border-color:#c8d8e9!important;
    color:#17324f!important;
    box-shadow:0 8px 24px rgba(28,65,105,.09)!important;
}

html[data-theme="light"] body main .ip-connect-page .ip-provider-card h3 {
    color:#102d4b!important;
    -webkit-text-fill-color:#102d4b!important;
}

html[data-theme="light"] body main .ip-connect-page .ip-provider-card p {
    color:#38536f!important;
    -webkit-text-fill-color:#38536f!important;
}

html[data-theme="light"] body main .ip-connect-page .ip-provider-requirement {
    background:#e8f1fb!important;
    border-color:#c6d8eb!important;
}

html[data-theme="light"] body main .ip-connect-page .ip-provider-requirement span {
    color:#526a83!important;
}

html[data-theme="light"] body main .ip-connect-page .ip-provider-requirement strong {
    color:#153957!important;
}

html[data-theme="light"] body main .ip-connect-page .ip-connect-note {
    background:#edf4fc!important;
    border-color:#ccdeef!important;
    color:#294761!important;
}

html[data-theme="light"] body main .ip-connect-page .ip-connect-heading h2 {
    color:#102d4b!important;
}

html[data-theme="light"] body main .ip-connect-page .ip-connect-heading p {
    color:#435d78!important;
}

/* LOGO TILES */
.ip-connect-page .ip-provider-logo.paytm {
    background:#ffffff!important;
    border:1px solid #dce5ef!important;
}

.ip-connect-page .ip-provider-logo.phonepe {
    background:#ffffff!important;
    border:1px solid #e1d5f5!important;
}

.ip-connect-page .ip-provider-logo.upi {
    background:#ffffff!important;
    border:1px solid #c8ddec!important;
}

/* MOBILE */
@media(max-width:680px) {
    .ip-connect-page .ip-provider-grid {
        grid-template-columns:minmax(0,1fr)!important;
        gap:16px!important;
    }

    .ip-connect-page .ip-provider-card {
        padding:18px!important;
        border-radius:17px!important;
    }

    .ip-connect-page .ip-provider-card h3 {
        font-size:19px!important;
    }

    .ip-connect-page .ip-provider-card p {
        font-size:14px!important;
        line-height:1.65!important;
    }

    .ip-connect-page .ip-connect-button {
        min-height:50px!important;
        font-size:14px!important;
    }
}


/* ===== INPUT PAY PROVIDER CARDS FINAL FIX ===== */

.ip-connect-page .ip-provider-grid {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:18px!important;
}

.ip-connect-page .ip-provider-card {
    box-sizing:border-box!important;
    min-width:0!important;
    padding:22px!important;
    border-radius:18px!important;
    border:1px solid #355574!important;
    background:#142943!important;
    color:#f4f8ff!important;
    box-shadow:0 8px 25px rgba(0,0,0,.20)!important;
}

.ip-connect-page .ip-provider-top {
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    margin-bottom:18px!important;
}

.ip-connect-page .ip-provider-logo {
    width:68px!important;
    height:54px!important;
    min-width:68px!important;
    padding:8px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:12px!important;
    background:#ffffff!important;
    border:1px solid #dce5ef!important;
    overflow:hidden!important;
}

.ip-connect-page .ip-provider-logo img {
    display:block!important;
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
}

.ip-connect-page .ip-provider-logo.phonepe img {
    filter:none!important;
}

.ip-connect-page .ip-provider-card h3 {
    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;
    font-size:19px!important;
    font-weight:800!important;
    line-height:1.4!important;
    margin:0 0 9px!important;
}

.ip-connect-page .ip-provider-card p {
    color:#d5e2f1!important;
    -webkit-text-fill-color:#d5e2f1!important;
    font-size:14px!important;
    line-height:1.7!important;
    margin:0 0 18px!important;
    min-height:0!important;
}

.ip-connect-page .ip-provider-status {
    color:#087a42!important;
    -webkit-text-fill-color:#087a42!important;
    background:#dcfce8!important;
    border:1px solid #86efac!important;
    padding:7px 11px!important;
    border-radius:30px!important;
    font-size:11px!important;
    font-weight:900!important;
    white-space:nowrap!important;
}

.ip-connect-page .ip-provider-requirement {
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    gap:7px!important;
    padding:12px!important;
    margin:0 0 17px!important;
    border-radius:10px!important;
    background:#203c5c!important;
    border:1px solid #426487!important;
}

.ip-connect-page .ip-provider-requirement span {
    color:#b9cce1!important;
    font-size:11px!important;
    font-weight:800!important;
}

.ip-connect-page .ip-provider-requirement strong {
    color:#ffffff!important;
    font-size:13px!important;
    font-weight:850!important;
}

.ip-connect-page .ip-connect-button {
    width:100%!important;
    min-height:50px!important;
    padding:12px 16px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:10px!important;
    border:0!important;
    border-radius:11px!important;
    background:linear-gradient(110deg,#0875e8,#079bb5)!important;
    color:#ffffff!important;
    -webkit-text-fill-color:#ffffff!important;
    font-size:14px!important;
    font-weight:800!important;
    text-align:center!important;
    line-height:1.4!important;
    box-shadow:0 5px 15px rgba(0,120,220,.22)!important;
}

.ip-connect-page .ip-connect-button span {
    color:#ffffff!important;
}

html[data-theme="light"] body main .ip-connect-page .ip-provider-card {
    background:#ffffff!important;
    color:#17324f!important;
    border-color:#d2dfed!important;
}

html[data-theme="light"] body main .ip-connect-page .ip-provider-card h3 {
    color:#142e4b!important;
    -webkit-text-fill-color:#142e4b!important;
}

html[data-theme="light"] body main .ip-connect-page .ip-provider-card p {
    color:#405873!important;
    -webkit-text-fill-color:#405873!important;
}

html[data-theme="light"] body main .ip-connect-page .ip-provider-requirement {
    background:#edf4fb!important;
    border-color:#d0deec!important;
}

html[data-theme="light"] body main .ip-connect-page .ip-provider-requirement span {
    color:#526982!important;
}

html[data-theme="light"] body main .ip-connect-page .ip-provider-requirement strong {
    color:#173a5b!important;
}

html[data-theme="dark"] body main .ip-connect-page .ip-provider-card {
    background:#142943!important;
    color:#f4f8ff!important;
}

@media(max-width:680px) {
    .ip-connect-page .ip-provider-grid {
        grid-template-columns:minmax(0,1fr)!important;
        gap:15px!important;
    }

    .ip-connect-page .ip-provider-card {
        padding:18px!important;
    }

    .ip-connect-page .ip-connect-button {
        font-size:14px!important;
        min-height:50px!important;
    }
}

/* ===== END FINAL FIX ===== */



/* INPUT PAY - ORDERS PAGE READABILITY FIX */

.ip-orders-page {
    color: #eaf2ff;
}

.ip-orders-page .card {
    overflow: hidden;
    background: #10243e !important;
    border: 1px solid #294766 !important;
    color: #eaf2ff !important;
}

.ip-orders-page table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #10243e !important;
}

.ip-orders-page thead,
.ip-orders-page thead tr {
    background: #1b3858 !important;
}

.ip-orders-page .th {
    color: #dceaff !important;
    background: #1b3858 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .055em;
    border-bottom: 1px solid #385675 !important;
}

.ip-orders-page tbody,
.ip-orders-page tbody tr {
    background: #10243e !important;
}

.ip-orders-page tbody tr {
    border-bottom: 1px solid #294766 !important;
    transition: background .18s ease;
}

.ip-orders-page tbody tr:hover {
    background: #1b3858 !important;
}

.ip-orders-page .td {
    color: #d9e7f8 !important;
    border-bottom: 1px solid #294766 !important;
    vertical-align: middle;
}

.ip-orders-page .td a {
    color: #f3f7ff !important;
    font-weight: 750 !important;
    overflow-wrap: anywhere;
}

.ip-orders-page .td a:hover {
    color: #60c7ff !important;
}

.ip-orders-page .td.text-slate-500,
.ip-orders-page .td .text-slate-500 {
    color: #a9bfd8 !important;
}

.ip-orders-page .td.text-slate-600 {
    color: #d0def0 !important;
}

.ip-orders-page .td.text-slate-900 {
    color: #ffffff !important;
}

.ip-orders-page input.input {
    background: #172f4d !important;
    color: #ffffff !important;
    border: 1px solid #527394 !important;
}

.ip-orders-page input.input::placeholder {
    color: #afc3dc !important;
    opacity: 1;
}

.ip-orders-page nav a {
    color: #c6d8ed !important;
}

.ip-orders-page nav a.bg-slate-900 {
    background: #2563eb !important;
    color: #ffffff !important;
}

.ip-orders-page nav a span {
    background: #294766 !important;
    color: #ffffff !important;
}

.ip-orders-page nav a.bg-slate-900 span {
    background: #ffffff33 !important;
    color: #ffffff !important;
}

/* Status badges */
.ip-status {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    white-space: nowrap;
    border: 1px solid transparent;
}

.ip-status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
}

.ip-status-paid {
    background: #dcfce7 !important;
    color: #166534 !important;
    border-color: #86efac !important;
}
.ip-status-paid .ip-status-dot { background: #16a34a !important; }

.ip-status-pending {
    background: #fef3c7 !important;
    color: #92400e !important;
    border-color: #fcd34d !important;
}
.ip-status-pending .ip-status-dot { background: #d97706 !important; }

.ip-status-review {
    background: #dbeafe !important;
    color: #1e40af !important;
    border-color: #93c5fd !important;
}
.ip-status-review .ip-status-dot { background: #2563eb !important; }

.ip-status-failed {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border-color: #fca5a5 !important;
}
.ip-status-failed .ip-status-dot { background: #dc2626 !important; }

.ip-status-expired {
    background: #e5e7eb !important;
    color: #374151 !important;
    border-color: #cbd5e1 !important;
}
.ip-status-expired .ip-status-dot { background: #6b7280 !important; }

.ip-status-default {
    background: #e0e7ff !important;
    color: #3730a3 !important;
    border-color: #a5b4fc !important;
}
.ip-status-default .ip-status-dot { background: #4f46e5 !important; }

/* Light theme */
html[data-theme="light"] .ip-orders-page .card {
    background: #ffffff !important;
    border-color: #d6e2ef !important;
    color: #17324f !important;
}

html[data-theme="light"] .ip-orders-page table,
html[data-theme="light"] .ip-orders-page tbody,
html[data-theme="light"] .ip-orders-page tbody tr {
    background: #ffffff !important;
}

html[data-theme="light"] .ip-orders-page .th,
html[data-theme="light"] .ip-orders-page thead {
    background: #eaf2fb !important;
    color: #294563 !important;
}

html[data-theme="light"] .ip-orders-page .td {
    color: #294563 !important;
    border-color: #e0e9f2 !important;
}

html[data-theme="light"] .ip-orders-page .td a {
    color: #173d68 !important;
}

html[data-theme="light"] .ip-orders-page tbody tr:hover {
    background: #f0f7ff !important;
}

html[data-theme="light"] .ip-orders-page input.input {
    background: #ffffff !important;
    color: #17324f !important;
    border-color: #bdcfe1 !important;
}

html[data-theme="light"] .ip-orders-page nav a {
    color: #405b78 !important;
}

html[data-theme="light"] .ip-orders-page nav a.bg-slate-900 {
    background: #1d4ed8 !important;
    color: #ffffff !important;
}

@media(max-width:640px) {
    .ip-orders-page .th,
    .ip-orders-page .td {
        padding: 12px 11px !important;
        font-size: 12px !important;
    }

    .ip-orders-page .td a {
        font-size: 11px !important;
    }

    .ip-status {
        padding: 5px 8px;
        font-size: 11px;
    }
}

/* INPUT PAY V33 - ORDERS DARK MODE READABILITY FIX */
html[data-theme="dark"] body .ip-orders-page .card table tbody,
html[data-theme="dark"] body .ip-orders-page .card table tbody.bg-white {
    background: #10243d !important;
    color: #f1f6ff !important;
}

html[data-theme="dark"] body .ip-orders-page .card table tbody tr {
    background: #10243d !important;
    border-color: #36516f !important;
}

html[data-theme="dark"] body .ip-orders-page .card table tbody tr:hover {
    background: #193654 !important;
}

html[data-theme="dark"] body .ip-orders-page .card table tbody td {
    background: transparent !important;
    color: #e5efff !important;
    border-color: #36516f !important;
    opacity: 1 !important;
}

html[data-theme="dark"] body .ip-orders-page .card table tbody td a {
    color: #8fc5ff !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}

html[data-theme="dark"] body .ip-orders-page .card table tbody td .font-mono {
    color: #c6dcf5 !important;
}

html[data-theme="dark"] body .ip-orders-page .card table thead th {
    background: #193654 !important;
    color: #f1f6ff !important;
    border-color: #36516f !important;
}

/* Preserve readable status badge colors */
html[data-theme="dark"] body .ip-orders-page .card table tbody td .bg-emerald-50 {
    background: #064e3b !important;
    color: #a7f3d0 !important;
}
html[data-theme="dark"] body .ip-orders-page .card table tbody td .bg-amber-50 {
    background: #713f12 !important;
    color: #fde68a !important;
}
html[data-theme="dark"] body .ip-orders-page .card table tbody td .bg-sky-50 {
    background: #075985 !important;
    color: #bae6fd !important;
}
html[data-theme="dark"] body .ip-orders-page .card table tbody td .bg-red-50 {
    background: #7f1d1d !important;
    color: #fecaca !important;
}
html[data-theme="dark"] body .ip-orders-page .card table tbody td .bg-slate-100 {
    background: #334155 !important;
    color: #e2e8f0 !important;
}



/* INPUT PAY GATEWAY — unified brand and persistent navigation */
.input-pay-wordmark {
    display: inline-flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
}
.input-pay-wordmark > span {
    color: #e8f2ff !important;
    font-weight: 850 !important;
    letter-spacing: -.045em !important;
    font-size: 19px !important;
}
.input-pay-wordmark small {
    color: #24a8ee !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: .19em !important;
    margin-top: 5px !important;
}
html[data-theme="light"] .input-pay-wordmark > span {
    color: #142b46 !important;
}
html[data-theme="dark"] .input-pay-wordmark > span {
    color: #f2f7ff !important;
}

/* App sidebar stays fixed while page content scrolls */
#sidebar.ip-sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100dvh !important;
    overflow: hidden !important;
    z-index: 60 !important;
}
#sidebar.ip-sidebar nav {
    min-height: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
}
.ip-sidebar-brand {
    flex: 0 0 64px !important;
    min-height: 64px !important;
}
.ip-mobile-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 55 !important;
    min-height: 56px !important;
    isolation: isolate !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
}
.ip-app-main {
    min-width: 0 !important;
}
.ip-main-content {
    min-width: 0 !important;
}

/* Public documentation/navigation header remains visible on scroll */
.ip-public-nav {
    position: sticky !important;
    top: 0 !important;
    z-index: 55 !important;
    isolation: isolate !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
}

/* Connected provider logos */
.ip-account-provider-logo {
    flex: 0 0 48px !important;
    overflow: hidden !important;
    border: 1px solid rgba(120,150,190,.22) !important;
}
.ip-account-provider-logo img {
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

@media(max-width:1023px) {
    #sidebar.ip-sidebar {
        z-index: 70 !important;
    }
    .ip-mobile-header {
        z-index: 65 !important;
    }
}


/* INPUT PAY 24/7 support */
.ip-support-footer{margin-top:42px;border-top:1px solid var(--ip-line,#dbe3ee);padding:22px 0 12px;color:var(--ip-text,#172b43)}
.ip-support-footer-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.ip-support-title{font-size:15px;font-weight:800}
.ip-support-subtitle{font-size:12px;margin-top:4px;color:var(--ip-muted,#64748b)}
.ip-support-actions{display:flex;align-items:center;gap:12px}
.ip-support-icon{width:43px;height:43px;border-radius:50%;display:grid;place-items:center;color:white!important;box-shadow:0 5px 15px #0f172a1c;transition:transform .18s ease}
.ip-support-icon:hover{transform:translateY(-2px)}
.ip-support-icon svg{width:25px;height:25px}
.ip-support-whatsapp{background:#25D366!important}
.ip-support-telegram{background:#229ED9!important}
.ip-support-copyright{font-size:11px;color:var(--ip-muted,#64748b);text-align:center;margin-top:18px;line-height:1.7}
.ip-support-copyright a{font-weight:700;color:inherit;text-decoration:underline}
.ip-sidebar-support{padding:14px 16px;border-top:1px solid var(--ip-line,#dbe3ee)}
.ip-sidebar-support-label{font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--ip-muted,#64748b);margin-bottom:9px}
.ip-sidebar-support .ip-support-icon{width:36px;height:36px}
.ip-sidebar-support .ip-support-icon svg{width:21px;height:21px}
@media(max-width:640px){.ip-support-footer-inner{align-items:flex-start}.ip-support-footer{padding-top:18px}.ip-support-icon{width:40px;height:40px}}

/* ===== SIDEBAR VISIBILITY FIX ===== */
#sidebar,
.ip-sidebar {
    background: linear-gradient(180deg, #10294f 0%, #091a34 100%) !important;
    color: #f1f5ff !important;
}

#sidebar .ip-sidebar-brand,
.ip-sidebar .ip-sidebar-brand {
    background: transparent !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,.14) !important;
}

#sidebar a,
#sidebar button,
.ip-sidebar a,
.ip-sidebar button {
    color: #dce8f8 !important;
}

#sidebar .ip-nav-idle,
.ip-sidebar .ip-nav-idle {
    color: #dce8f8 !important;
}

#sidebar .ip-nav-active,
.ip-sidebar .ip-nav-active {
    background: linear-gradient(90deg,#2563eb,#1d4ed8) !important;
    color: #ffffff !important;
}

#sidebar .text-slate-400,
#sidebar .text-slate-500,
.ip-sidebar .text-slate-400,
.ip-sidebar .text-slate-500 {
    color: #b8c9df !important;
}

/* ===== ADMIN PAGE TEXT VISIBILITY FIX ===== */
.ip-app-main,
.ip-main-content {
    color: #172b45;
}

.ip-main-content h1,
.ip-main-content h2,
.ip-main-content h3,
.ip-main-content h4 {
    color: #10243e !important;
}

.ip-main-content p,
.ip-main-content label,
.ip-main-content th,
.ip-main-content td,
.ip-main-content .text-slate-500,
.ip-main-content .text-slate-600,
.ip-main-content .text-slate-700,
.ip-main-content .text-gray-500,
.ip-main-content .text-gray-600,
.ip-main-content .text-gray-700 {
    color: #334b66 !important;
}

.ip-main-content input,
.ip-main-content select,
.ip-main-content textarea {
    color: #172b45 !important;
    background-color: #ffffff !important;
}

.ip-main-content input::placeholder,
.ip-main-content textarea::placeholder {
    color: #71839a !important;
    opacity: 1 !important;
}

.ip-main-content table {
    color: #263e59;
}

.ip-main-content th {
    color: #173354 !important;
    font-weight: 700;
}

.ip-main-content td {
    color: #334b66 !important;
}


/* ===== FINAL ADMIN TABLE READABILITY FIX ===== */
.ip-main-content .card table {
    background: #ffffff !important;
    color: #263b53 !important;
}

.ip-main-content .card table thead th {
    background: #193555 !important;
    color: #f4f8ff !important;
}

.ip-main-content .card table tbody tr,
.ip-main-content .card table tbody tr:nth-child(even) {
    background: #ffffff !important;
}

.ip-main-content .card table tbody tr:hover {
    background: #f0f6fd !important;
}

.ip-main-content .card table tbody td {
    background: transparent !important;
    color: #263b53 !important;
}

.ip-main-content .card table tbody td .text-slate-900,
.ip-main-content .card table tbody td .text-slate-800,
.ip-main-content .card table tbody td .text-slate-700,
.ip-main-content .card table tbody td .text-slate-600,
.ip-main-content .card table tbody td .text-slate-500,
.ip-main-content .card table tbody td .text-slate-400,
.ip-main-content .card table tbody td .text-gray-900,
.ip-main-content .card table tbody td .text-gray-700,
.ip-main-content .card table tbody td .text-gray-600,
.ip-main-content .card table tbody td .text-gray-500 {
    color: #344b65 !important;
}

.ip-main-content .card table tbody td .text-emerald-700 {
    color: #047857 !important;
}

.ip-main-content .card table tbody td .text-red-700 {
    color: #b91c1c !important;
}

.ip-main-content .card table tbody td .text-amber-700 {
    color: #b45309 !important;
}

.ip-sidebar nav .ip-sidebar-support {
    position: static !important;
    flex-shrink: 0 !important;
    margin-top: 12px !important;
    padding: 16px 12px !important;
    border-top: 1px solid rgba(255,255,255,.16) !important;
}

.ip-sidebar nav .ip-sidebar-support-label {
    color: #c5d8f0 !important;
}


/* ==================================================
   INPUT PAY - GLOBAL PAGE TEXT CONTRAST FIX
   Applies to dashboard, merchant, admin and client pages
================================================== */

.ip-app-main,
.ip-main-content {
    color: #243b53 !important;
}

/* All normal page text */
.ip-app-main h1,
.ip-app-main h2,
.ip-app-main h3,
.ip-app-main h4,
.ip-app-main h5,
.ip-app-main h6,
.ip-app-main p,
.ip-app-main label,
.ip-app-main li,
.ip-app-main dt,
.ip-app-main dd,
.ip-app-main th,
.ip-app-main td,
.ip-app-main small,
.ip-app-main .help,
.ip-app-main .text-slate-950,
.ip-app-main .text-slate-900,
.ip-app-main .text-slate-800,
.ip-app-main .text-slate-700,
.ip-app-main .text-slate-600,
.ip-app-main .text-slate-500,
.ip-app-main .text-slate-400,
.ip-app-main .text-gray-900,
.ip-app-main .text-gray-800,
.ip-app-main .text-gray-700,
.ip-app-main .text-gray-600,
.ip-app-main .text-gray-500,
.ip-main-content h1,
.ip-main-content h2,
.ip-main-content h3,
.ip-main-content h4,
.ip-main-content h5,
.ip-main-content h6,
.ip-main-content p,
.ip-main-content label,
.ip-main-content li,
.ip-main-content th,
.ip-main-content td,
.ip-main-content small,
.ip-main-content .help,
.ip-main-content .text-slate-950,
.ip-main-content .text-slate-900,
.ip-main-content .text-slate-800,
.ip-main-content .text-slate-700,
.ip-main-content .text-slate-600,
.ip-main-content .text-slate-500,
.ip-main-content .text-slate-400,
.ip-main-content .text-gray-900,
.ip-main-content .text-gray-800,
.ip-main-content .text-gray-700,
.ip-main-content .text-gray-600,
.ip-main-content .text-gray-500 {
    color: #263d56 !important;
}

/* Main page headings */
.ip-app-main h1,
.ip-app-main h2,
.ip-app-main h3,
.ip-app-main h4,
.ip-main-content h1,
.ip-main-content h2,
.ip-main-content h3,
.ip-main-content h4 {
    color: #102a46 !important;
    font-weight: 700 !important;
}

/* Links */
.ip-app-main a:not(.btn):not([class*="ip-nav-"]),
.ip-main-content a:not(.btn) {
    color: #1556a0 !important;
}

/* Cards and panels */
.ip-app-main .card,
.ip-app-main .panel,
.ip-app-main .modal,
.ip-main-content .card,
.ip-main-content .panel,
.ip-main-content .modal {
    color: #263d56 !important;
}

.ip-app-main .card p,
.ip-app-main .card span:not([class*="text-"]),
.ip-main-content .card p,
.ip-main-content .card span:not([class*="text-"]) {
    color: #344b65;
}

/* Tables */
.ip-app-main table th,
.ip-main-content table th {
    color: #173653 !important;
    font-weight: 700 !important;
}

.ip-app-main table td,
.ip-main-content table td {
    color: #263d56 !important;
}

/* Form fields */
.ip-app-main input,
.ip-app-main select,
.ip-app-main textarea,
.ip-main-content input,
.ip-main-content select,
.ip-main-content textarea {
    color: #172b45 !important;
    background-color: #ffffff !important;
    border-color: #b8c9dc !important;
}

.ip-app-main input::placeholder,
.ip-app-main textarea::placeholder,
.ip-main-content input::placeholder,
.ip-main-content textarea::placeholder {
    color: #71839a !important;
    opacity: 1 !important;
}

/* Preserve status colors */
.ip-app-main .text-emerald-700,
.ip-main-content .text-emerald-700 { color: #047857 !important; }

.ip-app-main .text-red-700,
.ip-main-content .text-red-700 { color: #b91c1c !important; }

.ip-app-main .text-amber-700,
.ip-main-content .text-amber-700 { color: #a16207 !important; }

.ip-app-main .text-sky-700,
.ip-main-content .text-sky-700 { color: #0369a1 !important; }

/* Keep button text controlled by button styles */
.ip-app-main .btn,
.ip-main-content .btn,
.ip-app-main button,
.ip-main-content button {
    text-decoration: none;
}


/* =========================================================
   INPUT PAY — FINAL GLOBAL CONTENT READABILITY FIX
   Authenticated dashboard + admin pages
   ========================================================= */

/* Main content default text */
body .ip-app-main,
body .ip-main-content,
body .ip-app-main main,
body .ip-main-content main {
    color: #20364f !important;
    -webkit-text-fill-color: #20364f;
    opacity: 1 !important;
}

/* Headings */
body .ip-app-main h1,
body .ip-app-main h2,
body .ip-app-main h3,
body .ip-app-main h4,
body .ip-main-content h1,
body .ip-main-content h2,
body .ip-main-content h3,
body .ip-main-content h4 {
    color: #102a46 !important;
    -webkit-text-fill-color: #102a46 !important;
    opacity: 1 !important;
    font-weight: 750 !important;
}

/* Normal paragraphs and descriptions */
body .ip-app-main p,
body .ip-app-main li,
body .ip-app-main label,
body .ip-main-content p,
body .ip-main-content li,
body .ip-main-content label {
    color: #344b65 !important;
    -webkit-text-fill-color: #344b65 !important;
    opacity: 1 !important;
}

/* Text utility classes */
body .ip-app-main .text-slate-950,
body .ip-app-main .text-slate-900,
body .ip-app-main .text-slate-800,
body .ip-main-content .text-slate-950,
body .ip-main-content .text-slate-900,
body .ip-main-content .text-slate-800 {
    color: #172f49 !important;
    -webkit-text-fill-color: #172f49 !important;
    opacity: 1 !important;
}

body .ip-app-main .text-slate-700,
body .ip-app-main .text-slate-600,
body .ip-main-content .text-slate-700,
body .ip-main-content .text-slate-600 {
    color: #344b65 !important;
    -webkit-text-fill-color: #344b65 !important;
    opacity: 1 !important;
}

body .ip-app-main .text-slate-500,
body .ip-app-main .text-slate-400,
body .ip-main-content .text-slate-500,
body .ip-main-content .text-slate-400,
body .ip-app-main .text-gray-500,
body .ip-main-content .text-gray-500 {
    color: #526a83 !important;
    -webkit-text-fill-color: #526a83 !important;
    opacity: 1 !important;
}

/* Cards and panels */
body .ip-app-main .card,
body .ip-app-main .panel,
body .ip-main-content .card,
body .ip-main-content .panel {
    color: #263d56 !important;
}

body .ip-app-main .card p,
body .ip-app-main .card span:not([class*="text-"]),
body .ip-main-content .card p,
body .ip-main-content .card span:not([class*="text-"]) {
    opacity: 1 !important;
}

/* Tables */
body .ip-app-main table,
body .ip-main-content table {
    color: #263b53 !important;
}

body .ip-app-main table thead th,
body .ip-main-content table thead th {
    color: #173653 !important;
    -webkit-text-fill-color: #173653 !important;
    font-weight: 750 !important;
}

body .ip-app-main table tbody td,
body .ip-main-content table tbody td {
    color: #263b53 !important;
    -webkit-text-fill-color: #263b53 !important;
    opacity: 1 !important;
}

body .ip-app-main table tbody td .text-slate-500,
body .ip-main-content table tbody td .text-slate-500 {
    color: #526a83 !important;
    -webkit-text-fill-color: #526a83 !important;
}

/* Links, excluding buttons and sidebar */
body .ip-app-main a:not(.btn):not([class*="ip-nav-"]),
body .ip-main-content a:not(.btn):not([class*="ip-nav-"]) {
    color: #1556a0 !important;
    -webkit-text-fill-color: #1556a0 !important;
    opacity: 1 !important;
}

/* Inputs */
body .ip-app-main input:not([type="checkbox"]):not([type="radio"]),
body .ip-app-main select,
body .ip-app-main textarea,
body .ip-main-content input:not([type="checkbox"]):not([type="radio"]),
body .ip-main-content select,
body .ip-main-content textarea {
    color: #172b45 !important;
    -webkit-text-fill-color: #172b45 !important;
    background-color: #ffffff !important;
    border-color: #b8c9dc !important;
    opacity: 1 !important;
}

body .ip-app-main input::placeholder,
body .ip-app-main textarea::placeholder,
body .ip-main-content input::placeholder,
body .ip-main-content textarea::placeholder {
    color: #71839a !important;
    -webkit-text-fill-color: #71839a !important;
    opacity: 1 !important;
}

/* Preserve status colors */
body .ip-app-main .text-emerald-700,
body .ip-main-content .text-emerald-700 {
    color: #047857 !important;
    -webkit-text-fill-color: #047857 !important;
}

body .ip-app-main .text-red-700,
body .ip-main-content .text-red-700 {
    color: #b91c1c !important;
    -webkit-text-fill-color: #b91c1c !important;
}

body .ip-app-main .text-amber-700,
body .ip-main-content .text-amber-700 {
    color: #a16207 !important;
    -webkit-text-fill-color: #a16207 !important;
}

body .ip-app-main .text-sky-700,
body .ip-main-content .text-sky-700 {
    color: #0369a1 !important;
    -webkit-text-fill-color: #0369a1 !important;
}

/* Never fade main content text */
body .ip-app-main *,
body .ip-main-content * {
    text-shadow: none;
}

body .ip-app-main .btn,
body .ip-main-content .btn,
body .ip-app-main button,
body .ip-main-content button {
    -webkit-text-fill-color: currentColor;
}


/* ===== INPUT PAY: FINAL DARK THEME CONTENT CONTRAST ===== */

/* Keep existing white table rows, force readable dark text */
html[data-theme="dark"] body .ip-app-main .card table tbody tr,
html[data-theme="dark"] body .ip-main-content .card table tbody tr {
    background: #ffffff !important;
    color: #20364f !important;
}

html[data-theme="dark"] body .ip-app-main .card table tbody td,
html[data-theme="dark"] body .ip-main-content .card table tbody td {
    background: #ffffff !important;
    color: #263b53 !important;
    -webkit-text-fill-color: #263b53 !important;
    opacity: 1 !important;
}

/* Fix faded merchant names, IDs, references and nested text */
html[data-theme="dark"] body .ip-app-main .card table tbody td *,
html[data-theme="dark"] body .ip-main-content .card table tbody td * {
    opacity: 1 !important;
    text-shadow: none !important;
}

html[data-theme="dark"] body .ip-app-main .card table tbody td .text-slate-900,
html[data-theme="dark"] body .ip-app-main .card table tbody td .text-slate-800,
html[data-theme="dark"] body .ip-main-content .card table tbody td .text-slate-900,
html[data-theme="dark"] body .ip-main-content .card table tbody td .text-slate-800 {
    color: #172f49 !important;
    -webkit-text-fill-color: #172f49 !important;
}

html[data-theme="dark"] body .ip-app-main .card table tbody td .text-slate-700,
html[data-theme="dark"] body .ip-app-main .card table tbody td .text-slate-600,
html[data-theme="dark"] body .ip-app-main .card table tbody td .text-slate-500,
html[data-theme="dark"] body .ip-main-content .card table tbody td .text-slate-700,
html[data-theme="dark"] body .ip-main-content .card table tbody td .text-slate-600,
html[data-theme="dark"] body .ip-main-content .card table tbody td .text-slate-500 {
    color: #405873 !important;
    -webkit-text-fill-color: #405873 !important;
}

/* Table headers */
html[data-theme="dark"] body .ip-app-main .card table thead th,
html[data-theme="dark"] body .ip-main-content .card table thead th {
    background: #193755 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Status badges retain their own colors */
html[data-theme="dark"] body .ip-app-main .card table tbody td .bg-emerald-50,
html[data-theme="dark"] body .ip-main-content .card table tbody td .bg-emerald-50 {
    color: #047857 !important;
    -webkit-text-fill-color: #047857 !important;
}

html[data-theme="dark"] body .ip-app-main .card table tbody td .bg-red-50,
html[data-theme="dark"] body .ip-main-content .card table tbody td .bg-red-50 {
    color: #b91c1c !important;
    -webkit-text-fill-color: #b91c1c !important;
}

/* Filter navigation */
html[data-theme="dark"] body .ip-app-main .card nav a,
html[data-theme="dark"] body .ip-main-content .card nav a {
    color: #294563 !important;
    -webkit-text-fill-color: #294563 !important;
}

html[data-theme="dark"] body .ip-app-main .card nav a.bg-slate-900,
html[data-theme="dark"] body .ip-main-content .card nav a.bg-slate-900 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Merchant table horizontal scrolling on mobile */
body .ip-app-main .card > .overflow-x-auto,
body .ip-main-content .card > .overflow-x-auto {
    max-width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}


/* ===== INPUT PAY: FINAL DARK THEME CONTENT CONTRAST ===== */

/* Keep existing white table rows, force readable dark text */
html[data-theme="dark"] body .ip-app-main .card table tbody tr,
html[data-theme="dark"] body .ip-main-content .card table tbody tr {
    background: #ffffff !important;
    color: #20364f !important;
}

html[data-theme="dark"] body .ip-app-main .card table tbody td,
html[data-theme="dark"] body .ip-main-content .card table tbody td {
    background: #ffffff !important;
    color: #263b53 !important;
    -webkit-text-fill-color: #263b53 !important;
    opacity: 1 !important;
}

/* Fix faded merchant names, IDs, references and nested text */
html[data-theme="dark"] body .ip-app-main .card table tbody td *,
html[data-theme="dark"] body .ip-main-content .card table tbody td * {
    opacity: 1 !important;
    text-shadow: none !important;
}

html[data-theme="dark"] body .ip-app-main .card table tbody td .text-slate-900,
html[data-theme="dark"] body .ip-app-main .card table tbody td .text-slate-800,
html[data-theme="dark"] body .ip-main-content .card table tbody td .text-slate-900,
html[data-theme="dark"] body .ip-main-content .card table tbody td .text-slate-800 {
    color: #172f49 !important;
    -webkit-text-fill-color: #172f49 !important;
}

html[data-theme="dark"] body .ip-app-main .card table tbody td .text-slate-700,
html[data-theme="dark"] body .ip-app-main .card table tbody td .text-slate-600,
html[data-theme="dark"] body .ip-app-main .card table tbody td .text-slate-500,
html[data-theme="dark"] body .ip-main-content .card table tbody td .text-slate-700,
html[data-theme="dark"] body .ip-main-content .card table tbody td .text-slate-600,
html[data-theme="dark"] body .ip-main-content .card table tbody td .text-slate-500 {
    color: #405873 !important;
    -webkit-text-fill-color: #405873 !important;
}

/* Table headers */
html[data-theme="dark"] body .ip-app-main .card table thead th,
html[data-theme="dark"] body .ip-main-content .card table thead th {
    background: #193755 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Status badges retain their own colors */
html[data-theme="dark"] body .ip-app-main .card table tbody td .bg-emerald-50,
html[data-theme="dark"] body .ip-main-content .card table tbody td .bg-emerald-50 {
    color: #047857 !important;
    -webkit-text-fill-color: #047857 !important;
}

html[data-theme="dark"] body .ip-app-main .card table tbody td .bg-red-50,
html[data-theme="dark"] body .ip-main-content .card table tbody td .bg-red-50 {
    color: #b91c1c !important;
    -webkit-text-fill-color: #b91c1c !important;
}

/* Filter navigation */
html[data-theme="dark"] body .ip-app-main .card nav a,
html[data-theme="dark"] body .ip-main-content .card nav a {
    color: #294563 !important;
    -webkit-text-fill-color: #294563 !important;
}

html[data-theme="dark"] body .ip-app-main .card nav a.bg-slate-900,
html[data-theme="dark"] body .ip-main-content .card nav a.bg-slate-900 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Merchant table horizontal scrolling on mobile */
body .ip-app-main .card > .overflow-x-auto,
body .ip-main-content .card > .overflow-x-auto {
    max-width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}


/* =========================================================
   INPUT PAY - GLOBAL DARK THEME TEXT VISIBILITY FIX
   Text only: preserve existing backgrounds, theme and layout.
   ========================================================= */

html[data-theme="dark"] body .ip-app-main,
html[data-theme="dark"] body .ip-main-content {
    color: #e8f1ff !important;
    -webkit-text-fill-color: #e8f1ff;
}

/* Remove faded rendering throughout application content */
html[data-theme="dark"] body .ip-app-main *,
html[data-theme="dark"] body .ip-main-content * {
    opacity: 1 !important;
    text-shadow: none;
}

/* Main headings */
html[data-theme="dark"] body .ip-app-main h1,
html[data-theme="dark"] body .ip-app-main h2,
html[data-theme="dark"] body .ip-app-main h3,
html[data-theme="dark"] body .ip-app-main h4,
html[data-theme="dark"] body .ip-main-content h1,
html[data-theme="dark"] body .ip-main-content h2,
html[data-theme="dark"] body .ip-main-content h3,
html[data-theme="dark"] body .ip-main-content h4 {
    color: #f4f8ff !important;
    -webkit-text-fill-color: #f4f8ff !important;
    font-weight: 700 !important;
}

/* Normal text, descriptions and muted text */
html[data-theme="dark"] body .ip-app-main p,
html[data-theme="dark"] body .ip-app-main li,
html[data-theme="dark"] body .ip-app-main label,
html[data-theme="dark"] body .ip-app-main small,
html[data-theme="dark"] body .ip-main-content p,
html[data-theme="dark"] body .ip-main-content li,
html[data-theme="dark"] body .ip-main-content label,
html[data-theme="dark"] body .ip-main-content small,
html[data-theme="dark"] body .ip-app-main .text-slate-400,
html[data-theme="dark"] body .ip-app-main .text-slate-500,
html[data-theme="dark"] body .ip-app-main .text-slate-600,
html[data-theme="dark"] body .ip-app-main .text-gray-400,
html[data-theme="dark"] body .ip-app-main .text-gray-500,
html[data-theme="dark"] body .ip-app-main .text-gray-600,
html[data-theme="dark"] body .ip-main-content .text-slate-400,
html[data-theme="dark"] body .ip-main-content .text-slate-500,
html[data-theme="dark"] body .ip-main-content .text-slate-600,
html[data-theme="dark"] body .ip-main-content .text-gray-400,
html[data-theme="dark"] body .ip-main-content .text-gray-500,
html[data-theme="dark"] body .ip-main-content .text-gray-600 {
    color: #c5d7ed !important;
    -webkit-text-fill-color: #c5d7ed !important;
}

/* Strong text and important values */
html[data-theme="dark"] body .ip-app-main strong,
html[data-theme="dark"] body .ip-app-main b,
html[data-theme="dark"] body .ip-main-content strong,
html[data-theme="dark"] body .ip-main-content b,
html[data-theme="dark"] body .ip-app-main .text-slate-900,
html[data-theme="dark"] body .ip-app-main .text-slate-800,
html[data-theme="dark"] body .ip-app-main .text-slate-700,
html[data-theme="dark"] body .ip-app-main .text-gray-900,
html[data-theme="dark"] body .ip-app-main .text-gray-800,
html[data-theme="dark"] body .ip-app-main .text-gray-700,
html[data-theme="dark"] body .ip-main-content .text-slate-900,
html[data-theme="dark"] body .ip-main-content .text-slate-800,
html[data-theme="dark"] body .ip-main-content .text-slate-700,
html[data-theme="dark"] body .ip-main-content .text-gray-900,
html[data-theme="dark"] body .ip-main-content .text-gray-800,
html[data-theme="dark"] body .ip-main-content .text-gray-700 {
    color: #f0f6ff !important;
    -webkit-text-fill-color: #f0f6ff !important;
}

/* Links */
html[data-theme="dark"] body .ip-app-main a:not(.btn):not([class*="bg-"]),
html[data-theme="dark"] body .ip-main-content a:not(.btn):not([class*="bg-"]) {
    color: #8dcaff !important;
    -webkit-text-fill-color: #8dcaff !important;
}

/* Form labels and controls retain dark input backgrounds */
html[data-theme="dark"] body .ip-app-main input,
html[data-theme="dark"] body .ip-app-main select,
html[data-theme="dark"] body .ip-app-main textarea,
html[data-theme="dark"] body .ip-main-content input,
html[data-theme="dark"] body .ip-main-content select,
html[data-theme="dark"] body .ip-main-content textarea {
    color: #f1f6ff !important;
    -webkit-text-fill-color: #f1f6ff !important;
}

html[data-theme="dark"] body .ip-app-main input::placeholder,
html[data-theme="dark"] body .ip-app-main textarea::placeholder,
html[data-theme="dark"] body .ip-main-content input::placeholder,
html[data-theme="dark"] body .ip-main-content textarea::placeholder {
    color: #b5c9e0 !important;
    -webkit-text-fill-color: #b5c9e0 !important;
    opacity: 1 !important;
}

/* White table rows need dark readable text */
html[data-theme="dark"] body .ip-app-main table tbody td,
html[data-theme="dark"] body .ip-main-content table tbody td,
html[data-theme="dark"] body .ip-app-main table tbody td *,
html[data-theme="dark"] body .ip-main-content table tbody td * {
    color: #263b53 !important;
    -webkit-text-fill-color: #263b53 !important;
}

/* Keep table headers readable */
html[data-theme="dark"] body .ip-app-main table thead th,
html[data-theme="dark"] body .ip-main-content table thead th {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* White/light informational panels */
html[data-theme="dark"] body .ip-app-main .bg-white,
html[data-theme="dark"] body .ip-main-content .bg-white {
    color: #203b59 !important;
}

html[data-theme="dark"] body .ip-app-main .bg-white *,
html[data-theme="dark"] body .ip-main-content .bg-white * {
    color: #294765 !important;
    -webkit-text-fill-color: #294765 !important;
}

/* Preserve semantic status colors */
html[data-theme="dark"] body .ip-app-main .text-emerald-700,
html[data-theme="dark"] body .ip-main-content .text-emerald-700 {
    color: #047857 !important;
    -webkit-text-fill-color: #047857 !important;
}

html[data-theme="dark"] body .ip-app-main .text-red-700,
html[data-theme="dark"] body .ip-main-content .text-red-700 {
    color: #b91c1c !important;
    -webkit-text-fill-color: #b91c1c !important;
}

html[data-theme="dark"] body .ip-app-main .text-amber-700,
html[data-theme="dark"] body .ip-main-content .text-amber-700 {
    color: #a16207 !important;
    -webkit-text-fill-color: #a16207 !important;
}

/* Preserve button text and icons */
html[data-theme="dark"] body .ip-app-main button,
html[data-theme="dark"] body .ip-main-content button,
html[data-theme="dark"] body .ip-app-main .btn,
html[data-theme="dark"] body .ip-main-content .btn {
    -webkit-text-fill-color: currentColor;
}

/* Code blocks */
html[data-theme="dark"] body .ip-app-main pre,
html[data-theme="dark"] body .ip-main-content pre,
html[data-theme="dark"] body .ip-app-main code,
html[data-theme="dark"] body .ip-main-content code {
    opacity: 1 !important;
    text-shadow: none !important;
}


/* INPUT PAY: FINAL NESTED TEXT VISIBILITY FIX
   Text only. Do not change backgrounds, borders, layout or theme. */
html[data-theme="dark"] body .ip-app-main *,
html[data-theme="dark"] body .ip-main-content * {
    opacity: 1 !important;
    text-shadow: none !important;
}

/* All text inside dark cards, panels, nested boxes and sections */
html[data-theme="dark"] body .ip-app-main .card *,
html[data-theme="dark"] body .ip-main-content .card *,
html[data-theme="dark"] body .ip-app-main [class*="rounded"] *,
html[data-theme="dark"] body .ip-main-content [class*="rounded"] * {
    -webkit-text-fill-color: #f1f6ff;
}

/* Normal content text */
html[data-theme="dark"] body .ip-app-main .card,
html[data-theme="dark"] body .ip-main-content .card,
html[data-theme="dark"] body .ip-app-main [class*="rounded"],
html[data-theme="dark"] body .ip-main-content [class*="rounded"] {
    color: #e8f1ff;
}

/* Light information boxes: retain dark readable text */
html[data-theme="dark"] body .ip-app-main .bg-white *,
html[data-theme="dark"] body .ip-main-content .bg-white *,
html[data-theme="dark"] body .ip-app-main .bg-slate-50 *,
html[data-theme="dark"] body .ip-main-content .bg-slate-50 *,
html[data-theme="dark"] body .ip-app-main .bg-gray-50 *,
html[data-theme="dark"] body .ip-main-content .bg-gray-50 * {
    color: #263b53 !important;
    -webkit-text-fill-color: #263b53 !important;
}

/* Preserve status and alert colors */
html[data-theme="dark"] body .ip-app-main .text-emerald-700,
html[data-theme="dark"] body .ip-main-content .text-emerald-700,
html[data-theme="dark"] body .ip-app-main .text-emerald-800,
html[data-theme="dark"] body .ip-main-content .text-emerald-800 {
    color: #047857 !important;
    -webkit-text-fill-color: #047857 !important;
}
html[data-theme="dark"] body .ip-app-main .text-red-700,
html[data-theme="dark"] body .ip-main-content .text-red-700,
html[data-theme="dark"] body .ip-app-main .text-red-800,
html[data-theme="dark"] body .ip-main-content .text-red-800 {
    color: #b91c1c !important;
    -webkit-text-fill-color: #b91c1c !important;
}
html[data-theme="dark"] body .ip-app-main .text-amber-700,
html[data-theme="dark"] body .ip-main-content .text-amber-700,
html[data-theme="dark"] body .ip-app-main .text-amber-800,
html[data-theme="dark"] body .ip-main-content .text-amber-800 {
    color: #a16207 !important;
    -webkit-text-fill-color: #a16207 !important;
}

/* Form values and placeholders */
html[data-theme="dark"] body .ip-app-main input,
html[data-theme="dark"] body .ip-app-main select,
html[data-theme="dark"] body .ip-app-main textarea,
html[data-theme="dark"] body .ip-main-content input,
html[data-theme="dark"] body .ip-main-content select,
html[data-theme="dark"] body .ip-main-content textarea {
    color: #f1f6ff !important;
    -webkit-text-fill-color: #f1f6ff !important;
}
html[data-theme="dark"] body .ip-app-main input::placeholder,
html[data-theme="dark"] body .ip-app-main textarea::placeholder,
html[data-theme="dark"] body .ip-main-content input::placeholder,
html[data-theme="dark"] body .ip-main-content textarea::placeholder {
    color: #b5c9e0 !important;
    -webkit-text-fill-color: #b5c9e0 !important;
    opacity: 1 !important;
}

/* Buttons keep their existing foreground color */
html[data-theme="dark"] body .ip-app-main button *,
html[data-theme="dark"] body .ip-main-content button *,
html[data-theme="dark"] body .ip-app-main .btn *,
html[data-theme="dark"] body .ip-main-content .btn * {
    -webkit-text-fill-color: currentColor !important;
}

/* =========================================================
   INPUT PAY - FINAL GLOBAL BOX & TEXT VISIBILITY FIX
   Scope: authenticated dashboard content only
   ========================================================= */

html[data-theme="dark"] body .ip-app-main,
html[data-theme="dark"] body .ip-main-content {
    color: #edf5ff !important;
    -webkit-text-fill-color: #edf5ff !important;
}

/* Remove faded text from every nested element */
html[data-theme="dark"] body .ip-app-main *,
html[data-theme="dark"] body .ip-main-content * {
    opacity: 1 !important;
    text-shadow: none !important;
}

/* All card and panel headings */
html[data-theme="dark"] body .ip-app-main h1,
html[data-theme="dark"] body .ip-app-main h2,
html[data-theme="dark"] body .ip-app-main h3,
html[data-theme="dark"] body .ip-app-main h4,
html[data-theme="dark"] body .ip-main-content h1,
html[data-theme="dark"] body .ip-main-content h2,
html[data-theme="dark"] body .ip-main-content h3,
html[data-theme="dark"] body .ip-main-content h4,
html[data-theme="dark"] body .ip-app-main .card-title,
html[data-theme="dark"] body .ip-main-content .card-title {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 750 !important;
}

/* Normal text, descriptions, labels and required markers */
html[data-theme="dark"] body .ip-app-main p,
html[data-theme="dark"] body .ip-app-main label,
html[data-theme="dark"] body .ip-app-main small,
html[data-theme="dark"] body .ip-app-main li,
html[data-theme="dark"] body .ip-app-main span,
html[data-theme="dark"] body .ip-main-content p,
html[data-theme="dark"] body .ip-main-content label,
html[data-theme="dark"] body .ip-main-content small,
html[data-theme="dark"] body .ip-main-content li {
    -webkit-text-fill-color: currentColor;
}

/* Tailwind muted text classes */
html[data-theme="dark"] body .ip-app-main .text-slate-400,
html[data-theme="dark"] body .ip-app-main .text-slate-500,
html[data-theme="dark"] body .ip-app-main .text-slate-600,
html[data-theme="dark"] body .ip-app-main .text-gray-400,
html[data-theme="dark"] body .ip-app-main .text-gray-500,
html[data-theme="dark"] body .ip-app-main .text-gray-600,
html[data-theme="dark"] body .ip-main-content .text-slate-400,
html[data-theme="dark"] body .ip-main-content .text-slate-500,
html[data-theme="dark"] body .ip-main-content .text-slate-600,
html[data-theme="dark"] body .ip-main-content .text-gray-400,
html[data-theme="dark"] body .ip-main-content .text-gray-500,
html[data-theme="dark"] body .ip-main-content .text-gray-600 {
    color: #c7d9ee !important;
    -webkit-text-fill-color: #c7d9ee !important;
}

/* Strong text and values */
html[data-theme="dark"] body .ip-app-main strong,
html[data-theme="dark"] body .ip-app-main b,
html[data-theme="dark"] body .ip-main-content strong,
html[data-theme="dark"] body .ip-main-content b,
html[data-theme="dark"] body .ip-app-main .text-slate-900,
html[data-theme="dark"] body .ip-app-main .text-slate-800,
html[data-theme="dark"] body .ip-app-main .text-slate-700,
html[data-theme="dark"] body .ip-main-content .text-slate-900,
html[data-theme="dark"] body .ip-main-content .text-slate-800,
html[data-theme="dark"] body .ip-main-content .text-slate-700 {
    color: #f4f8ff !important;
    -webkit-text-fill-color: #f4f8ff !important;
}

/* All form fields */
html[data-theme="dark"] body .ip-app-main input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] body .ip-app-main select,
html[data-theme="dark"] body .ip-app-main textarea,
html[data-theme="dark"] body .ip-main-content input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] body .ip-main-content select,
html[data-theme="dark"] body .ip-main-content textarea {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background-color: #172f4e !important;
    border-color: #91b5dc !important;
    opacity: 1 !important;
    caret-color: #ffffff !important;
}

/* Placeholders */
html[data-theme="dark"] body .ip-app-main input::placeholder,
html[data-theme="dark"] body .ip-app-main textarea::placeholder,
html[data-theme="dark"] body .ip-main-content input::placeholder,
html[data-theme="dark"] body .ip-main-content textarea::placeholder {
    color: #c4d5e9 !important;
    -webkit-text-fill-color: #c4d5e9 !important;
    opacity: 1 !important;
}

/* Dropdown options */
html[data-theme="dark"] body .ip-app-main select option,
html[data-theme="dark"] body .ip-main-content select option {
    color: #ffffff !important;
    background: #172f4e !important;
}

/* Cards and nested boxes */
html[data-theme="dark"] body .ip-app-main .card,
html[data-theme="dark"] body .ip-app-main .panel,
html[data-theme="dark"] body .ip-app-main .modal,
html[data-theme="dark"] body .ip-main-content .card,
html[data-theme="dark"] body .ip-main-content .panel,
html[data-theme="dark"] body .ip-main-content .modal {
    color: #edf5ff !important;
    border-color: #355574 !important;
}

/* Explicit light boxes must retain dark readable text */
html[data-theme="dark"] body .ip-app-main .bg-white,
html[data-theme="dark"] body .ip-app-main .bg-slate-50,
html[data-theme="dark"] body .ip-app-main .bg-slate-100,
html[data-theme="dark"] body .ip-main-content .bg-white,
html[data-theme="dark"] body .ip-main-content .bg-slate-50,
html[data-theme="dark"] body .ip-main-content .bg-slate-100 {
    color: #203b59 !important;
    -webkit-text-fill-color: #203b59 !important;
}

html[data-theme="dark"] body .ip-app-main .bg-white *,
html[data-theme="dark"] body .ip-app-main .bg-slate-50 *,
html[data-theme="dark"] body .ip-app-main .bg-slate-100 *,
html[data-theme="dark"] body .ip-main-content .bg-white *,
html[data-theme="dark"] body .ip-main-content .bg-slate-50 *,
html[data-theme="dark"] body .ip-main-content .bg-slate-100 * {
    color: #294765 !important;
    -webkit-text-fill-color: #294765 !important;
}

/* Tables */
html[data-theme="dark"] body .ip-app-main table tbody td,
html[data-theme="dark"] body .ip-main-content table tbody td {
    color: #263b53 !important;
    -webkit-text-fill-color: #263b53 !important;
    opacity: 1 !important;
}

html[data-theme="dark"] body .ip-app-main table thead th,
html[data-theme="dark"] body .ip-main-content table thead th {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Buttons: retain their existing background and foreground */
html[data-theme="dark"] body .ip-app-main button,
html[data-theme="dark"] body .ip-main-content button,
html[data-theme="dark"] body .ip-app-main .btn,
html[data-theme="dark"] body .ip-main-content .btn {
    opacity: 1 !important;
    -webkit-text-fill-color: currentColor;
}

/* Links */
html[data-theme="dark"] body .ip-app-main a:not([class*="bg-"]),
html[data-theme="dark"] body .ip-main-content a:not([class*="bg-"]) {
    opacity: 1 !important;
}

/* Semantic status colors */
html[data-theme="dark"] body .ip-app-main .text-emerald-700,
html[data-theme="dark"] body .ip-main-content .text-emerald-700 {
    color: #047857 !important;
    -webkit-text-fill-color: #047857 !important;
}

html[data-theme="dark"] body .ip-app-main .text-red-700,
html[data-theme="dark"] body .ip-main-content .text-red-700 {
    color: #b91c1c !important;
    -webkit-text-fill-color: #b91c1c !important;
}

html[data-theme="dark"] body .ip-app-main .text-amber-700,
html[data-theme="dark"] body .ip-main-content .text-amber-700 {
    color: #a16207 !important;
    -webkit-text-fill-color: #a16207 !important;
}

/* Checkbox and radio visibility */
html[data-theme="dark"] body .ip-app-main input[type="checkbox"],
html[data-theme="dark"] body .ip-app-main input[type="radio"],
html[data-theme="dark"] body .ip-main-content input[type="checkbox"],
html[data-theme="dark"] body .ip-main-content input[type="radio"] {
    opacity: 1 !important;
    accent-color: #38a5ff !important;
}

/* Disabled controls remain readable */
html[data-theme="dark"] body .ip-app-main :disabled,
html[data-theme="dark"] body .ip-main-content :disabled {
    opacity: 0.85 !important;
}


/* INPUT PAY - targeted UPI account contrast */
html[data-theme="dark"] body .ip-app-main .card .bg-slate-50,
html[data-theme="dark"] body .ip-app-main .card .bg-slate-50 p,
html[data-theme="dark"] body .ip-app-main .card .bg-slate-50 span,
html[data-theme="dark"] body .ip-app-main .card .bg-slate-50 b {
    color: #263b53 !important;
    -webkit-text-fill-color: #263b53 !important;
}
html[data-theme="dark"] body .ip-app-main .card .bg-slate-50 .text-slate-500,
html[data-theme="dark"] body .ip-app-main .card .bg-slate-50 .text-slate-400 {
    color: #52677f !important;
    -webkit-text-fill-color: #52677f !important;
}
html[data-theme="dark"] body .ip-app-main .card .bg-slate-50 input {
    color: #172033 !important;
    -webkit-text-fill-color: #172033 !important;
    background: #ffffff !important;
    border-color: #94a3b8 !important;
}

/* Focused UPI Accounts card text contrast */
.ip-accounts-page .card {
    color: #243b55;
}
html[data-theme="dark"] body .ip-accounts-page .card {
    color: #f1f5fb !important;
}
html[data-theme="dark"] body .ip-accounts-page .card p,
html[data-theme="dark"] body .ip-accounts-page .card dt,
html[data-theme="dark"] body .ip-accounts-page .card .text-slate-500,
html[data-theme="dark"] body .ip-accounts-page .card .text-slate-600,
html[data-theme="dark"] body .ip-accounts-page .card .text-slate-700,
html[data-theme="dark"] body .ip-accounts-page .card .text-slate-800 {
    color: #dce7f5 !important;
    -webkit-text-fill-color: #dce7f5 !important;
    opacity: 1 !important;
}
html[data-theme="dark"] body .ip-accounts-page .card .bg-slate-50,
html[data-theme="dark"] body .ip-accounts-page .card .bg-slate-50 p,
html[data-theme="dark"] body .ip-accounts-page .card .bg-slate-50 span,
html[data-theme="dark"] body .ip-accounts-page .card .bg-slate-50 b {
    color: #263b53 !important;
    -webkit-text-fill-color: #263b53 !important;
}
html[data-theme="dark"] body .ip-accounts-page .card .bg-slate-50 .text-slate-500,
html[data-theme="dark"] body .ip-accounts-page .card .bg-slate-50 .text-slate-400 {
    color: #52677f !important;
    -webkit-text-fill-color: #52677f !important;
}


/* FINAL FIX: QR preview and UPI account text contrast */

/* Demo QR caption - both preview themes */
#checkoutPreview .ip-demo-qr-area small {
    color: #334155 !important;
    -webkit-text-fill-color: #334155 !important;
    opacity: 1 !important;
    font-weight: 700 !important;
}
#checkoutPreview.preview-dark .ip-demo-qr-area small {
    color: #e2eaf5 !important;
    -webkit-text-fill-color: #e2eaf5 !important;
}

/* UPI account cards - override global dark theme rules */
html[data-theme="dark"] body .ip-app-main .ip-accounts-page .card,
html[data-theme="dark"] body .ip-main-content .ip-accounts-page .card {
    color: #f1f6ff !important;
}

html[data-theme="dark"] body .ip-app-main .ip-accounts-page .card
:not(.bg-slate-50):not(.bg-slate-100),
html[data-theme="dark"] body .ip-main-content .ip-accounts-page .card
:not(.bg-slate-50):not(.bg-slate-100) {
    -webkit-text-fill-color: #e2eaf5 !important;
}

html[data-theme="dark"] body .ip-app-main .ip-accounts-page .card .text-slate-900,
html[data-theme="dark"] body .ip-app-main .ip-accounts-page .card .text-slate-800,
html[data-theme="dark"] body .ip-app-main .ip-accounts-page .card .text-slate-700,
html[data-theme="dark"] body .ip-app-main .ip-accounts-page .card .text-slate-600,
html[data-theme="dark"] body .ip-app-main .ip-accounts-page .card .text-slate-500,
html[data-theme="dark"] body .ip-app-main .ip-accounts-page .card dt,
html[data-theme="dark"] body .ip-app-main .ip-accounts-page .card dd,
html[data-theme="dark"] body .ip-app-main .ip-accounts-page .card p,
html[data-theme="dark"] body .ip-app-main .ip-accounts-page .card label,
html[data-theme="dark"] body .ip-app-main .ip-accounts-page .card span:not(.bg-emerald-500):not(.bg-amber-500):not(.bg-red-500),
html[data-theme="dark"] body .ip-main-content .ip-accounts-page .card .text-slate-900,
html[data-theme="dark"] body .ip-main-content .ip-accounts-page .card .text-slate-800,
html[data-theme="dark"] body .ip-main-content .ip-accounts-page .card .text-slate-700,
html[data-theme="dark"] body .ip-main-content .ip-accounts-page .card .text-slate-600,
html[data-theme="dark"] body .ip-main-content .ip-accounts-page .card .text-slate-500,
html[data-theme="dark"] body .ip-main-content .ip-accounts-page .card dt,
html[data-theme="dark"] body .ip-main-content .ip-accounts-page .card dd,
html[data-theme="dark"] body .ip-main-content .ip-accounts-page .card p,
html[data-theme="dark"] body .ip-main-content .ip-accounts-page .card label,
html[data-theme="dark"] body .ip-main-content .ip-accounts-page .card span:not(.bg-emerald-500):not(.bg-amber-500):not(.bg-red-500) {
    color: #e2eaf5 !important;
    -webkit-text-fill-color: #e2eaf5 !important;
    opacity: 1 !important;
}

/* Light information panels retain dark text */
html[data-theme="dark"] body .ip-app-main .ip-accounts-page .card .bg-slate-50,
html[data-theme="dark"] body .ip-app-main .ip-accounts-page .card .bg-slate-50 *,
html[data-theme="dark"] body .ip-main-content .ip-accounts-page .card .bg-slate-50,
html[data-theme="dark"] body .ip-main-content .ip-accounts-page .card .bg-slate-50 * {
    color: #263b53 !important;
    -webkit-text-fill-color: #263b53 !important;
}


/* INPUT PAY FINAL CONTRAST FIX 2026 */

/* Payment preview: correct light-theme palette */
#checkoutPreview.preview-light .ip-demo-card {
    --ip-card: #ffffff !important;
    --ip-text: #172b45 !important;
    --ip-muted: #52677f !important;
    --ip-border: #dce5f0 !important;
    --ip-soft: #f3f6fb !important;
}

#checkoutPreview.preview-light .ip-demo-content,
#checkoutPreview.preview-light .ip-demo-content * {
    text-shadow: none !important;
}

#checkoutPreview.preview-light .ip-demo-heading h3,
#checkoutPreview.preview-light .ip-demo-app-title,
#checkoutPreview.preview-light .ip-demo-apps div,
#checkoutPreview.preview-light .ip-demo-upi strong,
#checkoutPreview.preview-light .ip-demo-details strong,
#checkoutPreview.preview-light .ip-demo-instructions strong {
    color: #172b45 !important;
    -webkit-text-fill-color: #172b45 !important;
    opacity: 1 !important;
}

#checkoutPreview.preview-light .ip-demo-heading p,
#checkoutPreview.preview-light .ip-demo-qr-area small,
#checkoutPreview.preview-light .ip-demo-upi small,
#checkoutPreview.preview-light .ip-demo-details span,
#checkoutPreview.preview-light .ip-demo-instructions,
#checkoutPreview.preview-light .ip-demo-instructions li,
#checkoutPreview.preview-light .ip-demo-status {
    color: #52677f !important;
    -webkit-text-fill-color: #52677f !important;
    opacity: 1 !important;
}

#checkoutPreview.preview-light .ip-demo-upi,
#checkoutPreview.preview-light .ip-demo-instructions,
#checkoutPreview.preview-light .ip-demo-status,
#checkoutPreview.preview-light .ip-demo-apps div {
    background-color: #f3f6fb !important;
}

#checkoutPreview.preview-light .ip-demo-details {
    border-color: #dce5f0 !important;
}

/* QR caption in dark preview */
#checkoutPreview.preview-dark .ip-demo-qr-area small {
    color: #e2eaf5 !important;
    -webkit-text-fill-color: #e2eaf5 !important;
    opacity: 1 !important;
}

/* UPI account daily-limit input: readable placeholder */
html[data-theme="dark"] body .ip-app-main .ip-accounts-page .card input::placeholder,
html[data-theme="dark"] body .ip-main-content .ip-accounts-page .card input::placeholder {
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    opacity: 1 !important;
}

html[data-theme="dark"] body .ip-app-main .ip-accounts-page .card input,
html[data-theme="dark"] body .ip-main-content .ip-accounts-page .card input {
    color: #172b45 !important;
    -webkit-text-fill-color: #172b45 !important;
    background-color: #ffffff !important;
}




/* INPUT PAY: exact UPI Accounts contrast fixes */

/* Account rotation: payment_account_id badge is span.kbd */
html[data-theme="dark"] body .ip-main-content .ip-accounts-page span.kbd,
html[data-theme="dark"] body .ip-app-main .ip-accounts-page span.kbd {
    color: #263b53 !important;
    -webkit-text-fill-color: #263b53 !important;
    background: #e8eef6 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

/* Daily limit field: target only this input */
html[data-theme="dark"] body .ip-main-content .ip-accounts-page input[name="daily_limit"],
html[data-theme="dark"] body .ip-app-main .ip-accounts-page input[name="daily_limit"] {
    color: #172b45 !important;
    -webkit-text-fill-color: #172b45 !important;
    background: #ffffff !important;
    opacity: 1 !important;
}

html[data-theme="dark"] body .ip-main-content .ip-accounts-page input[name="daily_limit"]::placeholder,
html[data-theme="dark"] body .ip-app-main .ip-accounts-page input[name="daily_limit"]::placeholder {
    color: #52677f !important;
    -webkit-text-fill-color: #52677f !important;
    opacity: 1 !important;
}

/* Logo-only fit correction */
.input-pay-brand {
    display:inline-flex !important;
    align-items:center !important;
    flex-wrap:nowrap !important;
    flex-shrink:0 !important;
    min-width:max-content !important;
    overflow:visible !important;
}
.input-pay-brand > img {
    width:48px !important;
    height:48px !important;
    min-width:48px !important;
    max-width:48px !important;
    min-height:48px !important;
    max-height:48px !important;
    flex:0 0 48px !important;
    object-fit:contain !important;
    object-position:center !important;
    display:block !important;
    overflow:visible !important;
}
.ip-mobile-header > a,
#sidebar .ip-sidebar-brand > a {
    flex-shrink:0 !important;
    min-width:max-content !important;
    overflow:visible !important;
}

/* FINAL FIX: logo image only — preserve full image, no crop */
html body .ip-mobile-header .input-pay-brand > img,
html body #sidebar .ip-sidebar-brand .input-pay-brand > img {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    flex: 0 0 56px !important;
    object-fit: contain !important;
    object-position: center center !important;
    aspect-ratio: 1 / 1 !important;
    display: block !important;
    overflow: visible !important;
    transform: none !important;
    clip-path: none !important;
}

/* INPUT PAY full combined logo - image only */
.input-pay-brand-full {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-shrink: 0 !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    overflow: visible !important;
}

.input-pay-brand-full > img.input-pay-full-logo {
    display: block !important;
    width: 220px !important;
    height: 76px !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    flex: 0 1 220px !important;
}

.ip-mobile-header .input-pay-brand-full > img.input-pay-full-logo {
    width: 230px !important;
    height: 76px !important;
    max-width: calc(100vw - 112px) !important;
    flex: 0 1 230px !important;
}

#sidebar .ip-sidebar-brand .input-pay-brand-full > img.input-pay-full-logo {
    width: 210px !important;
    height: 76px !important;
    max-width: 100% !important;
    flex: 0 1 210px !important;
}

/* Mobile header: left and right sidebar controls */
.ip-mobile-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

.ip-mobile-header .ip-header-sidebar-toggle,
.ip-mobile-header button[data-sidebar-toggle] {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    flex: 0 0 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 9px !important;
    border-radius: 12px !important;
    background: #183456 !important;
    color: #ffffff !important;
    border: 1px solid #365778 !important;
}

.ip-mobile-header .ip-header-sidebar-toggle svg {
    width: 24px !important;
    height: 24px !important;
}

.ip-mobile-header > a {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    justify-content: center !important;
}

.ip-mobile-header .input-pay-brand-full > img.input-pay-full-logo {
    width: 100% !important;
    max-width: 100% !important;
    height: 70px !important;
}

/* INPUT PAY: mobile homepage header */
@media (max-width: 760px) {
    #input-pay-home .ip-header .ip-nav {
        display:flex !important;
        flex-direction:row !important;
        align-items:center !important;
        justify-content:space-between !important;
        flex-wrap:nowrap !important;
        width:100% !important;
        gap:5px !important;
    }

    #input-pay-home .ip-header .ip-brand {
        flex:0 1 auto !important;
        min-width:0 !important;
    }

    #input-pay-home .ip-home-full-logo {
        width:clamp(112px, 37vw, 160px) !important;
        height:52px !important;
        object-fit:contain !important;
        object-position:left center !important;
    }

    #input-pay-home .ip-header .ip-actions {
        display:flex !important;
        flex:0 0 auto !important;
        flex-direction:row !important;
        flex-wrap:nowrap !important;
        width:auto !important;
        gap:4px !important;
    }

    #input-pay-home .ip-header .ip-actions .ip-btn {
        flex:0 0 auto !important;
        width:auto !important;
        min-width:0 !important;
        padding:8px 6px !important;
        font-size:10px !important;
        line-height:1.2 !important;
        white-space:nowrap !important;
    }
}

/* INPUT PAY: API docs mobile header */
@media (max-width: 767px) {
    .ip-docs .ip-public-nav {
        height:auto !important;
        min-height:68px !important;
        overflow:visible !important;
    }

    .ip-docs .ip-public-nav > div {
        height:auto !important;
        min-height:68px !important;
        padding:9px 10px !important;
        display:flex !important;
        flex-direction:row !important;
        flex-wrap:nowrap !important;
        align-items:center !important;
        justify-content:space-between !important;
        gap:7px !important;
    }

    .ip-docs .ip-public-nav > div > a {
        flex:0 1 auto !important;
        min-width:0 !important;
        overflow:visible !important;
    }

    .ip-docs .ip-public-nav .input-pay-brand {
        gap:6px !important;
    }

    .ip-docs .ip-public-nav .input-pay-brand > img {
        width:38px !important;
        height:38px !important;
        min-width:38px !important;
        max-width:38px !important;
        min-height:38px !important;
        max-height:38px !important;
        flex:0 0 38px !important;
    }

    .ip-docs .ip-public-nav .input-pay-wordmark {
        font-size:14px !important;
        white-space:nowrap !important;
    }

    .ip-docs .ip-public-nav .input-pay-wordmark small {
        font-size:8px !important;
    }

    .ip-docs .ip-public-nav > div > div {
        display:flex !important;
        flex:0 0 auto !important;
        flex-direction:row !important;
        flex-wrap:nowrap !important;
        align-items:center !important;
        gap:5px !important;
        min-width:0 !important;
    }

    .ip-docs .ip-public-nav .btn {
        display:inline-flex !important;
        flex:0 0 auto !important;
        width:auto !important;
        min-width:0 !important;
        padding:8px 9px !important;
        font-size:11px !important;
        line-height:1.2 !important;
        white-space:nowrap !important;
    }
}


/* INPUT PAY - API DOCS MOBILE HEADER FIX */
@media (max-width: 767px) {
    #site-header.ip-public-nav {
        width: 100% !important;
        height: auto !important;
        min-height: 68px !important;
        overflow: visible !important;
    }

    #site-header.ip-public-nav > div {
        width: 100% !important;
        min-height: 68px !important;
        height: auto !important;
        padding: 8px 10px !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        box-sizing: border-box !important;
    }

    #site-header.ip-public-nav > div > a {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        max-width: 48% !important;
        white-space: nowrap !important;
    }

    #site-header.ip-public-nav > div > div:last-child {
        display: flex !important;
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: max-content !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 6px !important;
    }

    #site-header.ip-public-nav .btn {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: max-content !important;
        max-width: none !important;
        padding: 9px 10px !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        writing-mode: horizontal-tb !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }

    #site-header.ip-public-nav .input-pay-brand {
        flex-wrap: nowrap !important;
        min-width: 0 !important;
        gap: 5px !important;
    }

    #site-header.ip-public-nav .input-pay-brand > img {
        flex: 0 0 36px !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
    }

    #site-header.ip-public-nav .input-pay-wordmark {
        font-size: 13px !important;
        white-space: nowrap !important;
    }

    #site-header.ip-public-nav .input-pay-wordmark small {
        font-size: 8px !important;
    }
}

/* INPUT PAY - Dedicated public navigation layout */
.ip-public-nav-inner {
    width:100% !important;
    max-width:1152px !important;
    min-height:64px !important;
    margin:0 auto !important;
    padding:8px 12px !important;
    box-sizing:border-box !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;
}

.ip-public-nav-logo {
    display:flex !important;
    flex:1 1 auto !important;
    min-width:0 !important;
    align-items:center !important;
    overflow:visible !important;
}

.ip-public-nav-actions {
    display:flex !important;
    flex:0 0 auto !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:8px !important;
    width:auto !important;
    min-width:max-content !important;
}

.ip-public-nav-actions > a {
    display:inline-flex !important;
    flex:0 0 auto !important;
    align-items:center !important;
    justify-content:center !important;
    width:auto !important;
    min-width:max-content !important;
    max-width:none !important;
    padding:10px 12px !important;
    white-space:nowrap !important;
    writing-mode:horizontal-tb !important;
    word-break:normal !important;
    overflow-wrap:normal !important;
    line-height:1.3 !important;
    box-sizing:border-box !important;
}

.ip-public-nav-actions > a * {
    writing-mode:horizontal-tb !important;
    white-space:nowrap !important;
}

@media(max-width:767px) {
    .ip-public-nav-inner {
        padding:8px 10px !important;
        gap:7px !important;
    }

    .ip-public-nav-logo .input-pay-brand > img {
        width:34px !important;
        height:34px !important;
        min-width:34px !important;
        max-width:34px !important;
        flex:0 0 34px !important;
    }

    .ip-public-nav-logo .input-pay-wordmark {
        font-size:12px !important;
        white-space:nowrap !important;
    }

    .ip-public-nav-logo .input-pay-wordmark small {
        font-size:8px !important;
    }

    .ip-public-nav-actions {
        gap:5px !important;
    }

    .ip-public-nav-actions > a {
        padding:9px 9px !important;
        font-size:11px !important;
    }
}
