/* HESCOM Online Payment (OnlinePay.aspx) - standalone page */
:root {
    --op-navy: #0f2338;
    --op-navy-2: #17406a;
    --op-accent: #f28c28;
    --op-accent-2: #ffb547;
    --op-primary: #1c6fb8;
    --op-text: #1f2d3d;
    --op-muted: #66788a;
    --op-border: #dfe6ee;
    --op-bg: #f2f5f9;
    --op-danger: #d93c3c;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.op-body {
    min-height: 100vh; background: var(--op-bg); color: var(--op-text);
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Noto Sans Kannada", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.op-wrap { display: flex; min-height: 100vh; }

/* ---------- hero ---------- */
.op-hero {
    position: relative; overflow: hidden; flex: 0 0 46%;
    display: flex; flex-direction: column; gap: 34px;
    padding: 44px 56px; color: #fff;
    background:
        radial-gradient(circle at 85% 10%, rgba(242, 140, 40, .35), transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(54, 209, 220, .18), transparent 45%),
        linear-gradient(160deg, var(--op-navy) 0%, var(--op-navy-2) 100%);
}
.op-hero-art { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 55%; pointer-events: none; }
.op-hero > *:not(.op-hero-art) { position: relative; z-index: 1; }
.op-brand { display: flex; align-items: center; gap: 14px; }
.op-brand img { width: 56px; height: 56px; border-radius: 50%; background: #fff; padding: 3px; object-fit: contain; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.op-brand strong { display: block; font-size: 22px; letter-spacing: .8px; }
.op-brand span { display: block; font-size: 13px; color: #b8c7d8; }

.op-eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 600; letter-spacing: .4px;
    background: rgba(242, 140, 40, .18); color: var(--op-accent-2); border: 1px solid rgba(242, 140, 40, .35);
}
.op-hero-copy h1 { margin: 16px 0 10px; font-size: 40px; line-height: 1.15; font-weight: 700; max-width: 480px; }
.op-hero-copy h1 em { font-style: normal; color: var(--op-accent-2); }
.op-hero-copy p { margin: 0; font-size: 16px; color: #c9d6e4; max-width: 460px; line-height: 1.5; }

.op-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 420px; }
.op-trust li {
    display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.op-trust li > span {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 11px; font-size: 18px;
    background: linear-gradient(135deg, var(--op-accent-2), var(--op-accent)); color: #fff;
}
.op-trust b { display: block; font-size: 14.5px; }
.op-trust small { display: block; font-size: 12.5px; color: #b8c7d8; margin-top: 1px; }
.op-hero-foot { margin-top: auto; font-size: 14px; color: #c9d6e4; }
.op-hero-foot .fa { color: var(--op-accent-2); margin-right: 6px; }
.op-hero-foot b { color: #fff; font-size: 16px; }

/* ---------- main / card ---------- */
.op-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px 24px; }
.op-card {
    width: 100%; max-width: 460px; background: #fff; border-radius: 20px; padding: 32px 32px 26px;
    border: 1px solid #e6ecf3; box-shadow: 0 20px 50px rgba(16, 35, 56, .10), 0 2px 6px rgba(16, 35, 56, .04);
}
.op-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.op-icon {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 52px; height: 52px; border-radius: 15px; font-size: 22px; color: #fff;
    background: linear-gradient(135deg, #2b8be0, var(--op-primary)); box-shadow: 0 8px 18px rgba(28, 111, 184, .3);
}
.op-card-head h2 { margin: 0; font-size: 24px; font-weight: 700; }
.op-card-head p { margin: 2px 0 0; color: var(--op-muted); font-size: 14px; }

.op-steps { list-style: none; display: flex; margin: 0 0 24px; padding: 0; counter-reset: s; }
.op-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; font-size: 12px; color: #93a3b5; }
.op-steps li::before { content: ""; position: absolute; top: 14px; left: -50%; width: 100%; height: 2px; background: #e6ecf3; z-index: 0; }
.op-steps li:first-child::before { display: none; }
.op-steps b {
    position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%; font-size: 13px; background: #eef2f7; color: #93a3b5; border: 2px solid #fff;
}
.op-steps li.is-active { color: var(--op-primary); font-weight: 600; }
.op-steps li.is-active b { background: var(--op-primary); color: #fff; box-shadow: 0 0 0 4px rgba(28, 111, 184, .15); }

.op-field { margin-bottom: 20px; }
.op-field > label, .op-label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: var(--op-text); }
.op-field > label span, .op-label span { font-weight: 400; color: var(--op-muted); }
.op-input { position: relative; }
.op-input .fa { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #93a3b5; font-size: 17px; pointer-events: none; }
.op-input input {
    width: 100%; height: 52px; padding: 0 16px 0 44px; border-radius: 12px;
    border: 1.5px solid var(--op-border); background: #f8fafc; color: var(--op-text);
    font: 600 17px/1 "Segoe UI", Roboto, Arial, sans-serif; letter-spacing: 1.5px;
    outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.op-input input::placeholder { font-weight: 400; letter-spacing: 0; color: #9aa9b8; font-size: 15px; }
.op-input input:focus { border-color: var(--op-primary); background: #fff; box-shadow: 0 0 0 4px rgba(28, 111, 184, .14); }
.op-input input:focus + .fa, .op-input input:focus ~ .fa { color: var(--op-primary); }
.op-input input[disabled] { background: #eef3f8; color: var(--op-text); cursor: not-allowed; }
.op-error { display: none; margin-top: 7px; font-size: 13px; color: var(--op-danger); font-weight: 600; }
.op-field.has-error .op-error { display: block; }
.op-field.has-error .op-input input { border-color: var(--op-danger); box-shadow: 0 0 0 4px rgba(217, 60, 60, .12); }
.op-help { margin: 9px 0 0; font-size: 12.5px; color: var(--op-muted); line-height: 1.5; }
.op-link {
    border: 0; background: none; padding: 0; margin-left: 2px; cursor: pointer;
    color: var(--op-primary); font: 600 12.5px "Segoe UI", Roboto, Arial, sans-serif;
}
.op-link:hover { text-decoration: underline; }

/* segmented radio (RadioButtonList, flow layout) */
.op-seg { display: flex; gap: 6px; padding: 5px; border-radius: 13px; background: #eef2f7; }
.op-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.op-seg label {
    flex: 1; display: flex; align-items: center; justify-content: center; text-align: center;
    min-height: 42px; padding: 6px 10px; border-radius: 9px; cursor: pointer;
    font-size: 14px; font-weight: 600; color: var(--op-muted); transition: background .15s, color .15s, box-shadow .15s;
}
.op-seg label:hover { color: var(--op-text); }
.op-seg input:checked + label { background: #fff; color: var(--op-primary); box-shadow: 0 2px 8px rgba(16, 35, 56, .12); }
.op-seg input:focus-visible + label { outline: 2px solid var(--op-primary); outline-offset: 1px; }

.op-btn {
    width: 100%; height: 54px; margin-top: 4px; border: 0; border-radius: 13px; cursor: pointer;
    font: 700 16.5px "Segoe UI", Roboto, Arial, sans-serif; color: #fff; letter-spacing: .3px;
    background: linear-gradient(135deg, var(--op-accent-2), var(--op-accent));
    box-shadow: 0 10px 24px rgba(242, 140, 40, .35); transition: transform .15s, box-shadow .15s, filter .15s;
    -webkit-appearance: none; appearance: none;
}
.op-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(242, 140, 40, .42); }
.op-btn:active { transform: translateY(0); }
.op-btn:focus-visible { outline: 3px solid rgba(242, 140, 40, .45); outline-offset: 2px; }
.op-btn.is-busy { filter: saturate(.6); pointer-events: none; }
.op-secure { margin: 14px 0 0; text-align: center; font-size: 12.5px; color: var(--op-muted); }
.op-secure .fa { color: #1e9e57; margin-right: 5px; }

.op-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin-top: 22px; }
.op-links a {
    display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 20px;
    background: #fff; border: 1px solid var(--op-border); color: var(--op-primary); text-decoration: none;
    font-size: 13px; font-weight: 600; transition: background .15s, border-color .15s;
}
.op-links a:hover { background: #e8f1fa; border-color: #b9d3ee; }
.op-footer { margin-top: 18px; font-size: 12.5px; color: #93a3b5; }

/* ---------- sample bill modal ---------- */
.op-modal[hidden] { display: none; }
.op-modal {
    position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
    padding: 20px; background: rgba(10, 22, 36, .6);
}
.op-modal-box { width: 100%; max-width: 520px; max-height: 92vh; display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.op-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #eef2f6; }
.op-modal-head h3 { margin: 0; font-size: 16px; }
.op-modal-head h3 .fa { color: var(--op-accent); margin-right: 6px; }
.op-modal-close { border: 0; background: #f1f4f8; width: 34px; height: 34px; border-radius: 9px; cursor: pointer; font-size: 16px; color: var(--op-muted); }
.op-modal-close:hover { background: #e6ebf1; color: var(--op-text); }
.op-modal-body { overflow: auto; padding: 14px; background: #f6f8fb; text-align: center; }
.op-modal-body img { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 14px rgba(16, 35, 56, .12); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
    .op-hero { flex-basis: 42%; padding: 36px 36px; }
    .op-hero-copy h1 { font-size: 32px; }
}
@media (max-width: 860px) {
    .op-wrap { flex-direction: column; }
    .op-hero { flex-basis: auto; gap: 18px; padding: 24px 20px 70px; }
    .op-hero-art { height: 100%; opacity: .6; }
    .op-hero-copy h1 { font-size: 26px; margin: 12px 0 6px; }
    .op-hero-copy p { font-size: 14px; }
    .op-trust { display: none; }
    .op-hero-foot { display: none; }
    .op-main { justify-content: flex-start; padding: 0 16px 20px; margin-top: -52px; position: relative; z-index: 2; }
}
@media (max-width: 480px) {
    .op-card { padding: 24px 18px 20px; border-radius: 16px; }
    .op-card-head h2 { font-size: 21px; }
    .op-seg label { font-size: 13px; }
    .op-brand img { width: 46px; height: 46px; }
    .op-brand strong { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .op-btn, .op-input input { transition: none; } }

/* ---------- sample bill shown next to the form ---------- */
.op-main-row { display: flex; align-items: flex-start; justify-content: center; gap: 22px; width: 100%; }
.op-card { flex: 0 1 460px; }
.op-bill {
    flex: 0 0 250px; margin: 0; padding: 14px; background: #fff; border: 1px solid #e6ecf3; border-radius: 18px;
    box-shadow: 0 12px 30px rgba(16, 35, 56, .08);
}
.op-bill figcaption { font-size: 13.5px; font-weight: 700; margin-bottom: 10px; color: var(--op-text); }
.op-bill figcaption .fa { color: var(--op-accent); margin-right: 6px; }
.op-bill-img {
    position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--op-border); border-radius: 10px;
    overflow: hidden; background: #f6f8fb; cursor: zoom-in;
}
.op-bill-img img { display: block; width: 100%; height: auto; }
.op-bill-zoom {
    position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); white-space: nowrap;
    padding: 5px 11px; border-radius: 20px; font: 600 12px "Segoe UI", Roboto, Arial, sans-serif;
    background: rgba(15, 35, 56, .82); color: #fff; opacity: .9; transition: opacity .15s;
}
.op-bill-img:hover .op-bill-zoom { opacity: 1; }
.op-bill-img:focus-visible { outline: 3px solid rgba(28, 111, 184, .4); outline-offset: 2px; }
.op-bill p { margin: 10px 0 0; font-size: 12.5px; color: var(--op-muted); line-height: 1.45; }
@media (max-width: 1240px) {
    .op-main-row { flex-direction: column; align-items: center; }
    .op-card { flex: none; }
    .op-bill { flex: none; width: 100%; max-width: 460px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
    .op-bill figcaption { width: 100%; margin-bottom: 0; }
    .op-bill-img { width: 120px; flex-shrink: 0; }
    .op-bill-zoom { display: none; }
    .op-bill p { flex: 1; min-width: 160px; margin: 0; }
}

/* =====================================================================
   PaymentDetails.aspx (pd-*)
   ===================================================================== */
body.pd-body { min-height: 100vh; }
.pd-top {
    position: relative; overflow: hidden; color: #fff; padding: 22px 24px 92px;
    background:
        radial-gradient(circle at 88% 0%, rgba(242, 140, 40, .35), transparent 40%),
        linear-gradient(160deg, var(--op-navy) 0%, var(--op-navy-2) 100%);
}
.pd-top-inner { max-width: 1040px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pd-top .op-brand img { width: 48px; height: 48px; }
.pd-top .op-brand strong { font-size: 20px; }
.pd-steps { flex: 0 1 360px; margin: 0; }
.pd-steps li { color: #9fb3c8; }
.pd-steps li::before { background: rgba(255, 255, 255, .18); }
.pd-steps b { background: rgba(255, 255, 255, .12); color: #c9d6e4; border-color: transparent; }
.pd-steps li.is-done { color: #c9f0d8; }
.pd-steps li.is-done b { background: #1e9e57; color: #fff; }
.pd-steps li.is-active { color: #fff; }
.pd-steps li.is-active b { background: var(--op-accent); color: #fff; box-shadow: 0 0 0 4px rgba(242, 140, 40, .25); }
.pd-title { max-width: 1040px; margin: 26px auto 0; }
.pd-title h1 { margin: 0; font-size: 30px; font-weight: 700; }
.pd-title p { margin: 6px 0 0; color: #c9d6e4; font-size: 14.5px; }

.pd-main {
    position: relative; z-index: 2; max-width: 1040px; margin: -64px auto 0; padding: 0 24px;
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 22px; align-items: start;
}
.pd-card {
    background: #fff; border: 1px solid #e6ecf3; border-radius: 20px; padding: 24px;
    box-shadow: 0 20px 50px rgba(16, 35, 56, .10), 0 2px 6px rgba(16, 35, 56, .04);
}
.pd-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.pd-card-head h2 { margin: 0; font-size: 18px; font-weight: 700; flex: 1; }
.pd-ico { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; font-size: 18px; color: #fff; }
.pd-ico-blue { background: linear-gradient(135deg, #2b8be0, var(--op-primary)); }
.pd-ico-orange { background: linear-gradient(135deg, var(--op-accent-2), var(--op-accent)); }
.pd-badge { padding: 4px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 700; background: #fff3e6; color: #b3600f; border: 1px solid #ffd9b0; }
.pd-badge[hidden] { display: none; }

/* read-only server textboxes shown as plain text */
.pd-ro {
    width: 100%; margin: 0; padding: 0; border: 0 !important; background: transparent !important; box-shadow: none !important;
    font: 600 15px/1.35 "Segoe UI", Roboto, Arial, sans-serif; color: var(--op-text); outline: none; cursor: default;
    resize: none; overflow: hidden; -webkit-appearance: none; appearance: none;
}
textarea.pd-ro { display: block; min-height: 22px; }

.pd-amount {
    padding: 18px; border-radius: 16px; margin-bottom: 18px;
    background: linear-gradient(135deg, #fff7ee, #fff1e0); border: 1px solid #ffe0bd;
}
.pd-amount-label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #a85a10; }
.pd-amount-value { display: flex; align-items: baseline; gap: 4px; margin-top: 4px; }
.pd-rupee { font-size: 26px; font-weight: 700; color: var(--op-text); }
.pd-ro-amount { font-size: 34px !important; font-weight: 800 !important; letter-spacing: .5px; font-variant-numeric: tabular-nums; }

.pd-list { margin: 0; display: grid; gap: 0; }
.pd-list > div { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px dashed #e3e9f0; }
.pd-list > div:last-child { border-bottom: 0; }
.pd-list dt { flex: 0 0 120px; font-size: 13px; color: var(--op-muted); padding-top: 1px; }
.pd-list dd { flex: 1; min-width: 0; margin: 0; }
.pd-note { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: #f3f7fb; font-size: 12.5px; color: var(--op-muted); line-height: 1.45; }
.pd-note .fa { color: var(--op-primary); margin-right: 5px; }

.pd-input-amt input { font-size: 22px !important; letter-spacing: .5px; padding-left: 40px; }
.pd-input-rupee { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 700; color: #93a3b5; pointer-events: none; }
.pd-fill {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; padding: 6px 12px; border-radius: 20px; cursor: pointer;
    border: 1px dashed #f5b26b; background: #fff8f0; color: #b3600f; font: 600 12.5px "Segoe UI", Roboto, Arial, sans-serif;
}
.pd-fill:hover { background: #fff0de; }
.pd-fill[hidden] { display: none; }
.pd-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.pd-grid2 .op-field { margin-bottom: 8px; }
.pd-receipt-help { margin: 0 0 20px; }
.pd-receipt-help .fa { margin-right: 4px; }
.pd-req { color: var(--op-danger) !important; font-weight: 700 !important; }

/* gateway option card */
.pd-gw-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pd-gw-list input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pd-gw-list label {
    position: relative; display: flex; align-items: center; gap: 10px; min-width: 200px; flex: 1;
    padding: 14px 16px 14px 46px; border-radius: 13px; cursor: pointer;
    border: 1.5px solid var(--op-border); background: #fff; font-size: 15px; font-weight: 700; color: var(--op-text);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.pd-gw-list label::before {
    content: ""; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; border-radius: 50%; border: 2px solid #b8c5d3; background: #fff; box-sizing: border-box;
}
.pd-gw-list label::after { content: "Secure online payment gateway"; display: block; margin-left: auto; font-size: 12px; font-weight: 500; color: var(--op-muted); }
.pd-gw-list input:checked + label { border-color: var(--op-primary); background: #f3f8fd; box-shadow: 0 0 0 4px rgba(28, 111, 184, .10); }
.pd-gw-list input:checked + label::before { border: 5px solid var(--op-primary); }
.pd-gw-list input:focus-visible + label { outline: 2px solid var(--op-primary); outline-offset: 2px; }
#pdErrGw { margin-top: 8px; }

.pd-actions { display: flex; gap: 12px; margin-top: 6px; }
.pd-btn-back {
    flex: 0 0 120px; height: 54px; border-radius: 13px; cursor: pointer;
    border: 1.5px solid var(--op-border); background: #fff; color: var(--op-text);
    font: 600 15px "Segoe UI", Roboto, Arial, sans-serif; transition: background .15s, border-color .15s;
}
.pd-btn-back:hover { background: #f3f6f9; border-color: #c9d4df; }
.pd-btn-pay { flex: 1; margin-top: 0 !important; }
.op-btn[disabled] { filter: grayscale(.7); opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.pd-footer { text-align: center; padding: 26px 16px 22px; margin: 0; }

@media (max-width: 900px) {
    .pd-main { grid-template-columns: 1fr; }
    .pd-title h1 { font-size: 25px; }
}
@media (max-width: 600px) {
    .pd-top { padding: 18px 16px 84px; }
    .pd-steps { flex-basis: 100%; }
    .pd-main { padding: 0 14px; gap: 16px; }
    .pd-card { padding: 20px 16px; border-radius: 16px; }
    .pd-grid2 { grid-template-columns: 1fr; }
    .pd-list dt { flex-basis: 105px; }
    .pd-ro-amount { font-size: 30px !important; }
    .pd-gw-list label::after { display: none; }
    .pd-btn-back { flex-basis: 96px; }
}

/* =====================================================================
   MainDefault.aspx - consumer search (md-*)
   ===================================================================== */
.md-meter { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: -4px 0 18px; }
.md-meter:empty { display: none; }
.md-meter-item {
    display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px;
    background: #f3f8fd; border: 1px solid #d7e7f6;
}
.md-meter-ico {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--op-primary); font-size: 16px;
    box-shadow: 0 1px 3px rgba(16, 35, 56, .08);
}
.md-meter-item small { display: block; font-size: 11.5px; color: var(--op-muted); text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
.md-meter-item span[id] { display: block; font-size: 15px; font-weight: 700; margin-top: 1px; overflow-wrap: anywhere; }
.md-actions { display: flex; gap: 10px; margin-top: 12px; }
.md-btn { flex: 1 !important; height: 48px !important; }
.md-btn-dash {
    border: 0; border-radius: 13px; cursor: pointer; color: #fff;
    font: 600 15px "Segoe UI", Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #2b8be0, var(--op-primary)); box-shadow: 0 8px 18px rgba(28, 111, 184, .25);
    transition: transform .15s, box-shadow .15s;
}
.md-btn-dash:hover { transform: translateY(-1px); box-shadow: 0 12px 22px rgba(28, 111, 184, .32); }
.md-footer { text-align: center; }
.md-footer b { color: var(--op-text); font-weight: 600; }
@media (max-width: 480px) { .md-meter { grid-template-columns: 1fr; } }
.md-meter:not(:has(.md-meter-item)) { display: none; }

/* =====================================================================
   Full-width layout (OnlinePay, MainDefault, PaymentDetails)
   ===================================================================== */
/* OnlinePay / MainDefault: right side uses its whole width */
.op-main { align-items: stretch; padding: 40px 40px 24px; }
.op-main > .op-card, .op-main-row, .op-links, .op-footer { width: 100%; max-width: none; }
.op-main-row { justify-content: stretch; }
.op-main-row > .op-card { flex: 1 1 auto; max-width: none; }
.op-bill { flex: 0 0 300px; }
.op-links { justify-content: flex-start; }
.op-footer { text-align: left; }

/* PaymentDetails: header and cards span the screen */
.pd-top-inner, .pd-title { max-width: none; }
.pd-main { max-width: none; margin: -64px 0 0; padding: 0 20px; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }

@media (max-width: 1240px) {
    .op-main-row > .op-card { flex: none; width: 100%; }
    .op-bill { width: 100%; max-width: none; }
}
@media (max-width: 860px) {
    .op-main { padding: 0 16px 20px; }
    .op-links { justify-content: center; }
    .op-footer { text-align: center; }
}
@media (max-width: 900px) { .pd-main { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .pd-main { padding: 0 14px; } }
.op-footer.pd-footer { text-align: center; }

/* MainDefault: compact, centred search card (inputs and buttons at a comfortable width) */
.md-body .op-main { align-items: center; justify-content: center; }
.md-body .op-main > .op-card.md-card { width: 100%; max-width: 480px; }
.md-body .op-main > .op-links, .md-body .op-main > .op-footer { max-width: 480px; justify-content: center; text-align: center; }
.md-body .md-card .op-input input { height: 48px; font-size: 16px; }
.md-body .md-card .op-btn { height: 48px; font-size: 15.5px; }
.md-body .md-actions .md-btn { height: 44px !important; font-size: 14.5px; }
/* a card placed directly in the (column) main area must not take the 460px flex-basis as its height */
.op-main > .op-card { flex: none; }

/* PaymentDetails: centred, comfortable width instead of edge-to-edge */
.pd-body .pd-top-inner, .pd-body .pd-title { max-width: 1100px; margin-left: auto; margin-right: auto; }
.pd-body .pd-main { max-width: 1100px; margin: -64px auto 0; padding: 0 24px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.pd-body .op-input input { height: 48px; }
.pd-body .pd-input-amt input { height: 52px; }
.pd-body .pd-actions { max-width: 520px; margin-left: auto; }
.pd-body .pd-btn-pay, .pd-body .pd-btn-back { height: 48px; }
@media (max-width: 900px) { .pd-body .pd-main { grid-template-columns: 1fr; } .pd-body .pd-actions { max-width: none; } }
@media (max-width: 600px) { .pd-body .pd-main { padding: 0 14px; } }.pd-body .pd-main { padding: 0; width: calc(100% - 48px); }
@media (max-width: 600px) { .pd-body .pd-main { width: calc(100% - 28px); } }
