:root {
    --ink: #152029;
    --ink-soft: #34444e;
    --muted: #6b767d;
    --muted-light: #8b9499;
    --paper: #f5f4ef;
    --surface: #ffffff;
    --surface-soft: #faf9f5;
    --line: #e3e1da;
    --line-strong: #d3d0c7;
    --accent: #0f6b5c;
    --accent-dark: #0a5146;
    --accent-soft: #e8f2ef;
    --success: #137a5b;
    --success-soft: #edf7f3;
    --success-line: #cfe7df;
    --warning: #a66512;
    --warning-soft: #fbf3e5;
    --warning-line: #efdfc3;
    --danger: #b33a3a;
    --danger-soft: #fbf0ef;
    --danger-line: #eed4d1;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(21, 32, 41, 0.04), 0 10px 28px rgba(21, 32, 41, 0.035);
    --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Noto Naskh Arabic", serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--paper);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

html[lang="ur"] body {
    font-family: var(--font-urdu);
    line-height: 1.9;
}

button,
input {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--accent);
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pay-shell,
.result-shell {
    width: 100%;
    min-height: 100vh;
    padding: 0 16px max(22px, env(safe-area-inset-bottom));
}

.pay-header {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: max(18px, env(safe-area-inset-top)) 2px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.pay-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pay-brand-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--ink);
    color: #fff;
}

.pay-brand-mark svg {
    width: 19px;
    height: 19px;
    display: block;
}

.pay-brand-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.pay-brand-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.15px;
}

.pay-brand-sub {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.55px;
    text-transform: uppercase;
}

html[lang="ur"] .pay-brand-sub {
    letter-spacing: 0;
    text-transform: none;
    font-size: 11px;
}

.lang-switch {
    flex: 0 0 auto;
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ebe9e2;
}

.lang-btn {
    min-width: 44px;
    min-height: 30px;
    padding: 0 9px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 30px;
    cursor: pointer;
}

.lang-btn[lang="ur"] {
    font-family: var(--font-urdu);
    min-width: 48px;
    font-size: 11.5px;
    line-height: 30px;
    padding-top: 0;
}

.lang-btn[aria-pressed="true"] {
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(21, 32, 41, 0.1);
}

.pay-main,
.result-main {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.amount-card {
    padding: 22px 20px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.eyebrow,
.result-kicker {
    margin: 0;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.85px;
    text-transform: uppercase;
}

html[lang="ur"] .eyebrow,
html[lang="ur"] .result-kicker {
    letter-spacing: 0;
    text-transform: none;
    font-size: 12px;
}

.amount-value {
    margin: 7px 0 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    direction: ltr;
    color: var(--ink);
    font-size: clamp(34px, 9vw, 42px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.amount-value .currency {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
}

.amount-meta {
    margin: 18px 0 0;
    padding-top: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 14px;
    border-top: 1px dashed var(--line-strong);
}

.meta-item {
    min-width: 0;
}

.meta-item dt {
    margin: 0 0 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.meta-item dd {
    margin: 0;
    color: var(--ink-soft);
    font-size: 12.5px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.meta-item .order-number {
    direction: ltr;
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

html[dir="rtl"] .amount-meta {
    text-align: right;
}

.section-card {
    margin-top: 14px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.section-head {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.section-step {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: grid;
    place-items: center;
    margin-top: 1px;
    border-radius: 7px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.section-heading {
    min-width: 0;
}

.section-heading h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.section-heading p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.method-list {
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
    list-style: none;
}

.method-item {
    position: relative;
    margin: 0;
    padding: 0;
}

.method-item input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.method-option {
    min-height: 62px;
    padding: 11px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-soft);
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.method-option:hover {
    border-color: var(--line-strong);
    background: #fff;
}

.method-item input:checked+.method-option {
    border-color: var(--accent);
    background: #f3f8f6;
    box-shadow: inset 0 0 0 1px var(--accent);
}

.method-item input:focus-visible+.method-option {
    outline: 2px solid rgba(15, 107, 92, 0.35);
    outline-offset: 2px;
}

.method-item input:disabled+.method-option {
    cursor: default;
}

.method-logo {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
}

svg.method-logo {
    color: var(--ink);
}

.method-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    text-align: start;
}

.method-name {
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
}

.method-desc {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.method-radio {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-inline-start: auto;
    border: 1.5px solid var(--line-strong);
    border-radius: 50%;
    background: #fff;
    transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.method-item input:checked+.method-option .method-radio {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: inset 0 0 0 4px #fff;
}

.field {
    margin-top: 18px;
}

.field-label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 700;
}

.text-input {
    width: 100%;
    height: 50px;
    padding: 0 13px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--surface-soft);
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.25px;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.text-input::placeholder {
    color: #a9b0b3;
    font-weight: 500;
}

.text-input:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(15, 107, 92, 0.1);
}

.text-input:disabled {
    background: #f0eee8;
    color: var(--muted);
}

.field-hint {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.field-error {
    margin: 7px 0 0;
    padding: 8px 10px;
    display: block;
    border: 1px solid var(--danger-line);
    border-radius: 8px;
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.5;
}

.primary-btn,
.secondary-btn {
    width: 100%;
    min-height: 50px;
    padding: 11px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, transform 120ms ease;
}

.primary-btn {
    margin-top: 18px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    box-shadow: 0 5px 14px rgba(15, 107, 92, 0.18);
}

.primary-btn:hover:not(:disabled) {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.primary-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.lang-btn:focus-visible,
.qr-close-btn:focus-visible {
    outline: 2px solid rgba(15, 107, 92, 0.4);
    outline-offset: 2px;
}

.primary-btn:disabled {
    opacity: 0.72;
    cursor: wait;
}

.secondary-btn {
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--ink);
}

.secondary-btn:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
}

.btn-spinner {
    width: 15px;
    height: 15px;
    display: none;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pay-spin 700ms linear infinite;
}

.primary-btn:disabled .btn-spinner {
    display: block;
}

@keyframes pay-spin {
    to {
        transform: rotate(360deg);
    }
}

.secure-note {
    margin: 13px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.5;
    text-align: center;
}

.secure-note svg {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
}

.qr-panel {
    text-align: center;
}

.qr-panel .section-head {
    text-align: start;
}

.qr-frame {
    width: min(74vw, 238px);
    margin: 20px auto 14px;
    padding: 13px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(21, 32, 41, 0.05);
    cursor: zoom-in;
}

.qr-frame:focus-visible {
    outline: 2px solid rgba(15, 107, 92, 0.4);
    outline-offset: 3px;
}

.qr-frame img,
.qr-frame canvas {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1;
    display: block;
    border-radius: 5px;
}

.qr-amount {
    margin: 0;
    direction: ltr;
    color: var(--ink);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.7px;
}

.qr-amount .currency {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.qr-hint {
    max-width: 310px;
    margin: 7px auto 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.qr-timer {
    margin: 14px auto 0;
    padding: 7px 11px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
}

.qr-timer strong {
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    direction: ltr;
}

.qr-actions {
    margin-top: 15px;
}

.qr-save-help {
    max-width: 315px;
    margin: 9px auto 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.status-line {
    margin: 17px auto 0;
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-top: 1px solid var(--line);
    color: var(--success);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.5;
}

.status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--success);
}

.demo-block {
    display: none;
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.demo-toggle {
    min-height: 40px;
    padding: 7px 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    background: transparent;
    color: var(--accent-dark);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
}

.demo-toggle svg {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
}

.demo-body {
    margin-top: 8px;
}

.demo-body video {
    width: 100%;
    max-width: 280px;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    background: #000;
}

.demo-hint {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.expired-state {
    padding: 8px 0 5px;
    text-align: center;
}

.expired-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 15px;
    display: grid;
    place-items: center;
    border: 1px solid var(--danger-line);
    border-radius: 50%;
    background: var(--danger-soft);
    color: var(--danger);
}

.expired-icon svg {
    width: 25px;
    height: 25px;
}

.expired-title {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.2px;
}

.expired-desc {
    max-width: 310px;
    margin: 8px auto 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.65;
}

.expired-hint {
    margin: 12px 0 0;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
}

.pay-footer {
    width: 100%;
    max-width: 480px;
    margin: 20px auto 0;
    padding: 0 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--muted-light);
    font-size: 10px;
    line-height: 1.5;
    text-align: center;
}

.pay-footer svg {
    width: 12px;
    height: 12px;
}

.qr-viewer {
    position: fixed;
    inset: 0;
    z-index: 100;
    padding: 18px;
    display: grid;
    place-items: center;
    background: rgba(21, 32, 41, 0.72);
}

.qr-viewer-panel {
    width: 100%;
    max-width: 370px;
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: 20px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.qr-viewer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    text-align: start;
}

.qr-viewer-head h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -0.25px;
}

.qr-close-btn {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--ink);
    cursor: pointer;
}

.qr-close-btn svg {
    width: 16px;
    height: 16px;
}

.qr-viewer-image {
    width: 100%;
    max-width: 300px;
    margin: 16px auto 0;
    display: block;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    -webkit-touch-callout: default;
    user-select: auto;
}

.qr-viewer-hint {
    margin: 12px 0 0;
    color: var(--ink-soft);
    font-size: 12.5px;
    line-height: 1.7;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: max(24px, calc(env(safe-area-inset-bottom) + 14px));
    z-index: 120;
    width: max-content;
    max-width: calc(100vw - 32px);
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    box-shadow: 0 8px 24px rgba(21, 32, 41, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

body.qr-active .pay-form-card {
    display: none;
}

body.qr-active .amount-card {
    padding-bottom: 17px;
}

.result-main {
    padding-top: 10px;
}

.result-card {
    padding: 30px 22px 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
    text-align: center;
}

.status-mark {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.status-mark svg {
    width: 30px;
    height: 30px;
}

.status-mark--success {
    border: 1px solid var(--success-line);
    background: var(--success-soft);
    color: var(--success);
}

.status-mark--pending {
    border: 1px solid var(--warning-line);
    background: var(--warning-soft);
    color: var(--warning);
}

.status-mark--error {
    border: 1px solid var(--danger-line);
    background: var(--danger-soft);
    color: var(--danger);
}

.status-mark--action {
    border: 1px solid #d6e2df;
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.result-card h1 {
    margin: 7px 0 0;
    color: var(--ink);
    font-size: clamp(22px, 6vw, 27px);
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.55px;
}

.result-message {
    max-width: 335px;
    margin: 10px auto 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.receipt-row {
    margin-top: 20px;
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
}

.status-pill {
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

html[lang="ur"] .status-pill {
    letter-spacing: 0;
    text-transform: none;
    font-size: 11px;
}

.status-pill--success {
    background: var(--success-soft);
    color: var(--success);
}

.status-pill--pending {
    background: var(--warning-soft);
    color: var(--warning);
}

.status-pill--error {
    background: var(--danger-soft);
    color: var(--danger);
}

.result-note {
    margin: 14px 0 0;
    color: var(--muted-light);
    font-size: 11.5px;
    line-height: 1.65;
}

.tips-steps {
    margin: 19px 0 0;
    padding: 14px 15px;
    display: grid;
    gap: 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-soft);
    list-style: none;
    text-align: start;
}

.tips-steps li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.55;
}

.tips-step-num {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    display: grid;
    place-items: center;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 10px;
    font-weight: 700;
}

.support-card {
    margin-top: 14px;
    padding: 15px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.55);
}

.support-copy {
    min-width: 0;
}

.support-label {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

html[lang="ur"] .support-label {
    letter-spacing: 0;
    text-transform: none;
    font-size: 11.5px;
}

.support-email {
    margin: 3px 0 0;
    color: var(--ink-soft);
    font-size: 12.5px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.support-email a {
    color: inherit;
    text-decoration: none;
}

.support-email a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.support-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--muted);
}

.support-icon svg {
    width: 17px;
    height: 17px;
}

.result-footer {
    margin-top: 20px;
}

@media (max-width: 380px) {
    .pay-shell,
    .result-shell {
        padding-inline: 12px;
    }
    .amount-card,
    .section-card {
        padding-inline: 16px;
    }
    .method-option {
        gap: 10px;
        padding-inline: 10px;
    }
    .method-logo {
        width: 37px;
        height: 37px;
        flex-basis: 37px;
    }
    .result-card {
        padding-inline: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ------------------------------------------------------------------
   Manual PKR gateway additions
   ------------------------------------------------------------------ */

.method-logo--badge {
    padding: 0;
    border: 0;
    background: transparent;
}

.notice-card {
    margin: 14px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--warning-line);
    border-radius: var(--radius);
    background: var(--warning-soft);
    color: var(--ink-soft);
    font-size: 12.5px;
    line-height: 1.6;
}

.pay-method-chip {
    margin: 16px auto 0;
    padding: 6px 12px 6px 6px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.pay-method-chip .method-logo {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    padding: 3px;
    border-radius: 50%;
}

.pay-method-chip .method-logo--badge {
    padding: 0;
}

html[dir="rtl"] .pay-method-chip {
    padding: 6px 6px 6px 12px;
}

.account-box {
    margin: 18px 0 0;
    padding: 4px 14px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-soft);
    text-align: start;
}

.account-box-title {
    margin: 10px 0 4px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

html[lang="ur"] .account-box-title {
    letter-spacing: 0;
    text-transform: none;
    font-size: 12px;
}

.account-list {
    margin: 0;
}

.account-row {
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px dashed var(--line-strong);
}

.account-row:last-child {
    border-bottom: 0;
}

.account-row dt {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
}

.account-row dd {
    min-width: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.account-value {
    min-width: 0;
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 700;
    text-align: end;
    overflow-wrap: anywhere;
}

.account-value--mono {
    direction: ltr;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.3px;
}

.copy-btn {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    background: #fff;
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.copy-btn:hover {
    border-color: var(--accent);
}

.copy-btn:focus-visible {
    outline: 2px solid rgba(15, 107, 92, 0.4);
    outline-offset: 2px;
}

.account-note {
    margin: 10px 0 0;
    padding: 9px 11px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-line;
}

.account-warning {
    margin: 10px 0 0;
    color: var(--warning);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.55;
}

.time-over {
    margin: 4px 0 0;
    padding: 14px;
    border: 1px solid var(--warning-line);
    border-radius: 10px;
    background: var(--warning-soft);
    text-align: center;
}

.time-over-title {
    margin: 0;
    color: var(--warning);
    font-size: 14px;
    font-weight: 700;
}

.time-over-desc {
    margin: 5px 0 0;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.6;
}

.tid-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    text-align: start;
}

.text-input--mono {
    direction: ltr;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.text-input--mono::placeholder {
    text-transform: none;
}

html[dir="rtl"] .text-input--mono {
    text-align: right;
}

.receipt-list {
    margin: 20px 0 0;
    border-top: 1px solid var(--line);
}

.receipt-list .receipt-row {
    margin-top: 0;
    padding: 11px 0;
    border-top: 0;
    border-bottom: 1px solid var(--line);
}

.receipt-list dt {
    margin: 0;
}

.receipt-list dd {
    margin: 0;
    color: var(--ink);
    font-weight: 700;
    overflow-wrap: anywhere;
}

a.primary-btn,
a.secondary-btn {
    text-decoration: none;
}

.result-btn {
    margin-top: 18px;
}

.expired-return {
    max-width: 260px;
    margin: 16px auto 0;
}

.spin-slow {
    animation: pay-spin 1.4s linear infinite;
}

.qr-panel .section-head {
    text-align: start;
}

.primary-btn:disabled .btn-spinner + span {
    opacity: 0.9;
}

/* "Watch how to pay" video (step 02) */
.how-to-pay {
    margin: 12px 0 0;
    text-align: center;
}

.how-to-pay .demo-toggle {
    min-height: 38px;
    padding: 7px 14px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    background: var(--accent-soft);
    font-size: 12.5px;
}

.how-to-pay .demo-toggle[aria-expanded="true"] {
    background: #fff;
}

.how-to-pay .demo-body {
    margin-top: 10px;
}

.how-to-pay .demo-body video {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    background: #000;
}
