/* ============================================================
   yacht-payment.css — non-scoped shared styles for pages under
   OptimaPMS/Pages/Yacht/Payment/*.
   Loaded globally from _Layout.cshtml.
   Companion to PaymentCheckoutShell.razor.css (which ships the
   header/stepper/grid). These classes cover page-specific bits:
   plan cards, method tiles, flip card, receipt, success hero, etc.
   Uses .yacht-page tokens so light theme inherits automatically.
   ============================================================ */

.pay-page .pay-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .pay-page .pay-section {
    box-shadow: 0 8px 22px rgba(16, 24, 40, 0.05);
}

.pay-page .pay-section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.pay-page .pay-section-icon {
    width: 40px; height: 40px; border-radius: 11px;
    background: rgba(242, 183, 53, 0.12);
    color: #F2B735;
    display: inline-flex; align-items: center; justify-content: center;
}

[data-theme="light"] .pay-page .pay-section-icon {
    background: rgba(217, 119, 6, 0.08);
    color: #D97706;
}

.pay-page .pay-section-icon .material-symbols-rounded {
    font-size: 22px; font-variation-settings: 'FILL' 1;
}

.pay-page .pay-section-title { color: var(--text-main); font-weight: 700; font-size: 15.5px; }
.pay-page .pay-section-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* ──────────────── Buttons ──────────────── */
.pay-page .pay-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 12px 22px; border-radius: 12px;
    font-family: inherit; font-weight: 700; font-size: 14px;
    cursor: pointer; border: none;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}

.pay-page .pay-btn .material-symbols-rounded { font-size: 17px; }

.pay-page .pay-btn-ghost {
    background: transparent; color: var(--text-main);
    border: 1px solid var(--card-border);
    padding: 12px 20px; font-weight: 600;
}
.pay-page .pay-btn-ghost:hover { border-color: #F2B735; color: #F2B735; }
[data-theme="light"] .pay-page .pay-btn-ghost:hover { border-color: #D97706; color: #D97706; }

.pay-page .pay-btn-primary {
    background: linear-gradient(180deg, #F2B735 0%, #D97706 100%);
    color: #fff;
    box-shadow: 0 10px 22px rgba(242, 183, 53, 0.28);
}
[data-theme="light"] .pay-page .pay-btn-primary {
    background: linear-gradient(180deg, #D97706 0%, #B45309 100%);
    box-shadow: 0 10px 22px rgba(217, 119, 6, 0.22);
}
.pay-page .pay-btn-primary:hover { transform: translateY(-1px); }
.pay-page .pay-btn-primary:disabled {
    opacity: .55; cursor: not-allowed; transform: none; box-shadow: none;
}

.pay-page .pay-footer {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; flex-wrap: wrap;
}

/* ──────────────── Plan cards (Pay-in-full vs Monthly) ──────────────── */
.pay-page .pay-plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 720px) {
    .pay-page .pay-plans { grid-template-columns: 1fr; }
}

.pay-page .pay-plan {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

[data-theme="light"] .pay-page .pay-plan {
    box-shadow: 0 8px 22px rgba(16, 24, 40, 0.05);
}

.pay-page .pay-plan:hover { transform: translateY(-2px); border-color: #F2B735; }
[data-theme="light"] .pay-page .pay-plan:hover { border-color: #D97706; }

.pay-page .pay-plan.is-selected {
    border: 2px solid #F2B735;
    box-shadow: 0 12px 28px rgba(242, 183, 53, 0.18);
    padding: 21px;
}
[data-theme="light"] .pay-page .pay-plan.is-selected {
    border-color: #D97706;
    box-shadow: 0 14px 34px rgba(217, 119, 6, 0.14);
}

.pay-page .pay-plan-check {
    position: absolute; top: 14px; right: 14px;
    width: 26px; height: 26px; border-radius: 50%;
    background: #F2B735; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity .15s;
}
[data-theme="light"] .pay-page .pay-plan-check { background: #D97706; }
.pay-page .pay-plan.is-selected .pay-plan-check { opacity: 1; }
.pay-page .pay-plan-check .material-symbols-rounded {
    font-size: 16px; font-variation-settings: 'wght' 700;
}

.pay-page .pay-plan-head { display: flex; align-items: center; gap: 12px; }

.pay-page .pay-plan-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(242, 183, 53, 0.12);
    color: #F2B735;
    display: inline-flex; align-items: center; justify-content: center;
}
[data-theme="light"] .pay-page .pay-plan-icon {
    background: rgba(217, 119, 6, 0.08);
    color: #D97706;
}
.pay-page .pay-plan-icon .material-symbols-rounded {
    font-size: 24px; font-variation-settings: 'FILL' 1;
}

.pay-page .pay-plan-title { flex: 1; font-weight: 700; font-size: 16px; color: var(--text-main); }

.pay-page .pay-plan-badge {
    padding: 3px 9px; border-radius: 999px;
    font-size: 11px; font-weight: 700;
}
.pay-page .pay-plan-badge.is-success {
    background: var(--success-soft-bg); color: var(--success-soft-text);
}
.pay-page .pay-plan-badge.is-primary {
    background: var(--primary-soft-bg); color: var(--primary-soft-text);
}

.pay-page .pay-plan-sub {
    color: var(--muted); font-size: 13px; line-height: 1.5;
}

.pay-page .pay-plan-amount-box {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px; padding: 14px 16px;
}
[data-theme="light"] .pay-page .pay-plan-amount-box { background: rgba(16, 24, 40, 0.02); }

.pay-page .pay-plan.is-selected .pay-plan-amount-box {
    background: rgba(242, 183, 53, 0.12);
}
[data-theme="light"] .pay-page .pay-plan.is-selected .pay-plan-amount-box {
    background: rgba(217, 119, 6, 0.08);
}

.pay-page .pay-plan-amount {
    font-size: 28px; font-weight: 800; color: var(--text-main);
    letter-spacing: -0.6px; line-height: 1;
    font-variant-numeric: tabular-nums;
}
.pay-page .pay-plan.is-selected .pay-plan-amount { color: #F2B735; }
[data-theme="light"] .pay-page .pay-plan.is-selected .pay-plan-amount { color: #D97706; }

.pay-page .pay-plan-amount-hint {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.pay-page .pay-plan-bullets { display: flex; flex-direction: column; gap: 7px; }

.pay-page .pay-plan-bullet {
    display: flex; align-items: center; gap: 8px;
    font-size: 12.5px; color: var(--text-main); opacity: .9;
}
.pay-page .pay-plan-bullet .material-symbols-rounded {
    font-size: 15px; color: var(--success-soft-text);
    font-variation-settings: 'FILL' 1;
}

/* ──────────────── Method tiles ──────────────── */
.pay-page .pay-methods { display: flex; flex-direction: column; gap: 12px; }

.pay-page .pay-method {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 16px;
    display: flex; align-items: center; gap: 14px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: border-color .15s, box-shadow .15s;
}

[data-theme="light"] .pay-page .pay-method {
    box-shadow: 0 8px 22px rgba(16, 24, 40, 0.05);
}

.pay-page .pay-method:hover { border-color: #F2B735; }
[data-theme="light"] .pay-page .pay-method:hover { border-color: #D97706; }

.pay-page .pay-method.is-selected {
    border: 2px solid #F2B735;
    padding: 15px;
    box-shadow: 0 10px 22px rgba(242, 183, 53, 0.14);
}
[data-theme="light"] .pay-page .pay-method.is-selected {
    border-color: #D97706;
    box-shadow: 0 10px 22px rgba(217, 119, 6, 0.10);
}

.pay-page .pay-method-radio {
    width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid var(--card-border);
    background: transparent;
    flex-shrink: 0;
    transition: border-color .15s, background .15s, border-width .15s;
    box-sizing: border-box;
}
.pay-page .pay-method.is-selected .pay-method-radio {
    border: 7px solid #F2B735;
    background: #fff;
}
[data-theme="light"] .pay-page .pay-method.is-selected .pay-method-radio { border-color: #D97706; }

.pay-page .pay-method-icon {
    width: 46px; height: 46px; border-radius: 12px;
    background: rgba(242, 183, 53, 0.12);
    color: #F2B735;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
[data-theme="light"] .pay-page .pay-method-icon {
    background: rgba(217, 119, 6, 0.08);
    color: #D97706;
}
.pay-page .pay-method-icon .material-symbols-rounded {
    font-size: 24px; font-variation-settings: 'FILL' 1;
}

.pay-page .pay-method-body { flex: 1; min-width: 0; }
.pay-page .pay-method-title { font-weight: 700; font-size: 15px; color: var(--text-main); }
.pay-page .pay-method-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.pay-page .pay-method-fee {
    margin-top: 4px; color: var(--success-soft-text);
    font-size: 11.5px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 4px;
}
.pay-page .pay-method-fee .material-symbols-rounded { font-size: 13px; }

.pay-page .pay-method-meta { text-align: right; flex-shrink: 0; }
.pay-page .pay-method-meta-key {
    color: var(--muted); font-size: 11px; font-weight: 600;
    letter-spacing: 0.4px; text-transform: uppercase;
}
.pay-page .pay-method-meta-val {
    color: var(--text-main); opacity: .9;
    font-size: 12.5px; font-weight: 600; margin-top: 2px;
}

/* ──────────────── Field blocks (shared form input styling) ──────────────── */
.pay-page .pay-field-label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.pay-page .pay-field-grid {
    display: grid; gap: 14px; margin-bottom: 14px;
}

.pay-page .pay-field-grid.col-2 { grid-template-columns: 1fr 1fr; }
.pay-page .pay-field-grid.col-3 { grid-template-columns: 1fr 1fr 1fr; }

@media (max-width: 720px) {
    .pay-page .pay-field-grid.col-2,
    .pay-page .pay-field-grid.col-3 { grid-template-columns: 1fr; }
}

/* Style Radzen inputs inside .pay-page consistently with the mockup */
.pay-page .pay-field-input .rz-textbox,
.pay-page .pay-field-input .rz-dropdown,
.pay-page .pay-field-input .rz-numeric {
    width: 100% !important;
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
    border-radius: 10px !important;
    color: var(--text-main) !important;
    min-height: 42px;
    transition: border-color .15s;
}

/* Larger variant for prominent inputs (expiry, CVV, etc.) */
.pay-page .pay-field-input.is-large .rz-textbox,
.pay-page .pay-field-input.is-large .rz-dropdown,
.pay-page .pay-field-input.is-large .rz-numeric {
    min-height: 52px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding-left: 14px !important;
    padding-right: 14px !important;
}

.pay-page .pay-field-input.is-large .rz-textbox input,
.pay-page .pay-field-input.is-large .rz-dropdown .rz-dropdown-trigger {
    font-size: 16px;
}

/* ──────────────── Native HTML input / select (full control) ────────────────
   Used for CVV and expiry month/year where the Radzen wrapper was too small
   and interfered with input focus on CVV. */
.pay-page .pay-native-input,
.pay-page .pay-native-select {
    width: 100%;
    min-height: 52px;
    height: 52px;
    padding: 0 14px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background-color: var(--card-bg);
    color: var(--text-main);
    font-family: Inter, system-ui, sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.pay-page .pay-native-input::placeholder {
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.pay-page .pay-native-input:focus,
.pay-page .pay-native-select:focus {
    border-color: #F2B735;
    box-shadow: 0 0 0 3px rgba(242, 183, 53, 0.15);
}

[data-theme="light"] .pay-page .pay-native-input:focus,
[data-theme="light"] .pay-page .pay-native-select:focus {
    border-color: #D97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}

/* Chevron for the select (replaces the native arrow we hid with appearance:none) */
.pay-page .pay-native-select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 32px;
    padding-left: 14px;
    cursor: pointer;
}

[data-theme="light"] .pay-page .pay-native-select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}

/* Date group: month / year inline under one "Exp. date" label */
.pay-page .pay-native-dategroup {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pay-page .pay-native-dategroup .pay-native-select {
    flex: 1 1 0;
    min-width: 0;
}

.pay-page .pay-native-dategroup-sep {
    color: var(--muted);
    font-size: 22px;
    font-weight: 600;
    flex-shrink: 0;
    padding: 0 2px;
}

.pay-page .pay-native-input {
    text-align: center;
}

/* Left-align variant when used for longer text (names, routing numbers, etc.) */
.pay-page .pay-native-input.pay-text-left,
.pay-page .pay-native-select.pay-text-left {
    text-align: left;
    text-align-last: left;
    padding-left: 14px;
}

/* Danger variant for the info banner */
.pay-page .pay-info-banner.is-danger {
    background: var(--danger-soft-bg);
    border-color: var(--danger-soft-text);
}
.pay-page .pay-info-banner.is-danger .material-symbols-rounded {
    color: var(--danger-soft-text);
}

/* ──────────────── Mode toggle tiles (ACH: email link vs direct entry) ──────────────── */
.pay-page .pay-mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 720px) {
    .pay-page .pay-mode-toggle { grid-template-columns: 1fr; }
}

.pay-page .pay-mode-tile {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
}

.pay-page .pay-mode-tile:hover { border-color: #F2B735; }
[data-theme="light"] .pay-page .pay-mode-tile:hover { border-color: #D97706; }

.pay-page .pay-mode-tile.is-selected {
    border: 2px solid #F2B735;
    padding: 13px;
    box-shadow: 0 10px 22px rgba(242, 183, 53, 0.14);
}
[data-theme="light"] .pay-page .pay-mode-tile.is-selected {
    border-color: #D97706;
    box-shadow: 0 10px 22px rgba(217, 119, 6, 0.10);
}

.pay-page .pay-mode-radio {
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid var(--card-border);
    flex-shrink: 0;
    box-sizing: border-box;
    transition: border-color .15s, border-width .15s;
}
.pay-page .pay-mode-tile.is-selected .pay-mode-radio {
    border: 6px solid #F2B735;
    background: #fff;
}
[data-theme="light"] .pay-page .pay-mode-tile.is-selected .pay-mode-radio {
    border-color: #D97706;
}

.pay-page .pay-mode-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(242, 183, 53, 0.12);
    color: #F2B735;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
[data-theme="light"] .pay-page .pay-mode-icon {
    background: rgba(217, 119, 6, 0.08);
    color: #D97706;
}
.pay-page .pay-mode-icon .material-symbols-rounded {
    font-size: 22px; font-variation-settings: 'FILL' 1;
}

.pay-page .pay-mode-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pay-page .pay-mode-title {
    color: var(--text-main); font-weight: 700; font-size: 13.5px;
}
.pay-page .pay-mode-sub {
    color: var(--muted); font-size: 12px; line-height: 1.4;
}

.pay-page .pay-field-input .rz-textbox:focus,
.pay-page .pay-field-input .rz-numeric:focus-within,
.pay-page .pay-field-input .rz-dropdown:focus-within {
    border-color: #F2B735 !important;
    box-shadow: 0 0 0 3px rgba(242, 183, 53, 0.15) !important;
}
[data-theme="light"] .pay-page .pay-field-input .rz-textbox:focus,
[data-theme="light"] .pay-page .pay-field-input .rz-numeric:focus-within,
[data-theme="light"] .pay-page .pay-field-input .rz-dropdown:focus-within {
    border-color: #D97706 !important;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12) !important;
}

/* ──────────────── Attestation / authorization row ──────────────── */
.pay-page .pay-attestation {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}
.pay-page .pay-attestation.is-dashed {
    border-style: dashed;
    background: var(--pay-surface-subtle, rgba(255,255,255,0.02));
}
[data-theme="light"] .pay-page .pay-attestation.is-dashed {
    background: rgba(16, 24, 40, 0.02);
}

.pay-page .pay-check {
    width: 22px; height: 22px; border-radius: 6px;
    background: transparent;
    border: 1.5px solid var(--card-border);
    flex-shrink: 0; margin-top: 1px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s, border-color .15s;
}
.pay-page .pay-check .material-symbols-rounded {
    font-size: 15px; color: #fff; opacity: 0;
    font-variation-settings: 'wght' 700;
}
.pay-page .pay-attestation.is-checked .pay-check {
    background: #F2B735; border-color: #F2B735;
}
[data-theme="light"] .pay-page .pay-attestation.is-checked .pay-check {
    background: #D97706; border-color: #D97706;
}
.pay-page .pay-attestation.is-checked .pay-check .material-symbols-rounded { opacity: 1; }
.pay-page .pay-attestation-body {
    font-size: 13px; color: var(--text-main); opacity: .92; line-height: 1.6;
}
.pay-page .pay-attestation-body a {
    color: #F2B735; font-weight: 600; text-decoration: none;
}
[data-theme="light"] .pay-page .pay-attestation-body a { color: #D97706; }

/* ──────────────── Credit card flip preview ──────────────── */
.pay-page .pay-card-preview {
    perspective: 1200px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.pay-page .pay-card-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 1.586 / 1;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.pay-page .pay-card-inner.is-flipped { transform: rotateY(180deg); }

.pay-page .pay-card-face {
    position: absolute; inset: 0;
    backface-visibility: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}
.pay-page .pay-card-face.is-back { transform: rotateY(180deg); }

.pay-page .pay-card-front {
    width: 100%; height: 100%; border-radius: 16px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 60%, #3d2e12 100%);
    padding: 22px 24px; color: #fff;
    display: flex; flex-direction: column; gap: 14px;
    position: relative; overflow: hidden; box-sizing: border-box;
}

.pay-page .pay-card-glow {
    position: absolute; top: -40px; right: -40px;
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(242, 183, 53, 0.4) 0%, transparent 60%);
    pointer-events: none;
}

.pay-page .pay-card-top {
    display: flex; justify-content: space-between; align-items: flex-start;
    position: relative;
}
.pay-page .pay-card-top .material-symbols-rounded { font-size: 22px; color: #F2B735; }

.pay-page .pay-card-chip {
    width: 38px; height: 28px; border-radius: 5px;
    background: linear-gradient(135deg, #e8c269 0%, #c99c3b 100%);
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5px; padding: 4px;
}
.pay-page .pay-card-chip > span {
    background: rgba(0, 0, 0, 0.12); border-radius: 1px;
}

.pay-page .pay-card-number {
    font-size: 22px; letter-spacing: 3px; font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    flex: 1; display: flex; align-items: center;
    position: relative;
}

.pay-page .pay-card-bottom {
    display: flex; justify-content: space-between; align-items: flex-end;
    position: relative;
}
.pay-page .pay-card-small-label {
    font-size: 9px; letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.6); font-weight: 700;
    margin-bottom: 3px;
}
.pay-page .pay-card-value {
    font-size: 13px; font-weight: 600; letter-spacing: 0.5px;
}
.pay-page .pay-card-brand {
    font-size: 18px; font-weight: 800; font-style: italic;
    color: #F2B735; letter-spacing: 1px;
}

.pay-page .pay-card-back {
    width: 100%; height: 100%; border-radius: 16px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #fff; overflow: hidden; position: relative; box-sizing: border-box;
}
.pay-page .pay-card-back-stripe {
    height: 42px; background: #000; margin-top: 20px;
}
.pay-page .pay-card-cvv-block { padding: 18px 24px; }
.pay-page .pay-card-cvv-box {
    background: #f5f5f5; height: 36px; border-radius: 4px;
    display: flex; align-items: center; justify-content: flex-end;
    padding: 0 14px; color: #1a1a1a;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 18px; font-weight: 700; letter-spacing: 4px;
}
.pay-page .pay-card-cvv-hint {
    margin-top: 14px; font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
}

/* ──────────────── Receipt (ACH) ──────────────── */
.pay-page .pay-receipt {
    border: 1px dashed var(--card-border);
    border-radius: 14px;
    padding: 20px;
    position: relative;
}

.pay-page .pay-receipt-brand {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px; margin-bottom: 20px;
}
.pay-page .pay-receipt-brand-name {
    font-size: 20px; font-weight: 800; color: #F2B735;
    letter-spacing: -0.3px;
}
[data-theme="light"] .pay-page .pay-receipt-brand-name { color: #D97706; }
.pay-page .pay-receipt-brand-sub {
    font-size: 11.5px; color: var(--muted); margin-top: 2px;
}

.pay-page .pay-receipt-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 999px;
    background: var(--success-soft-bg); color: var(--success-soft-text);
    font-size: 11px; font-weight: 700;
}
.pay-page .pay-receipt-chip .material-symbols-rounded { font-size: 13px; }

.pay-page .pay-receipt-rows {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 14px; margin-bottom: 18px;
}
.pay-page .pay-receipt-row.wide { grid-column: 1 / -1; }

.pay-page .pay-receipt-label {
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.7px;
    color: var(--muted); text-transform: uppercase; margin-bottom: 3px;
}
.pay-page .pay-receipt-value {
    color: var(--text-main); font-size: 14px; font-weight: 600;
}

.pay-page .pay-receipt-divider {
    height: 1px; background: var(--card-border); margin: 14px 0;
}

.pay-page .pay-receipt-lines {
    display: flex; flex-direction: column; gap: 8px;
}
.pay-page .pay-receipt-line {
    display: flex; justify-content: space-between; align-items: baseline;
}
.pay-page .pay-receipt-line > span:first-child {
    color: var(--text-main); opacity: .85; font-size: 13px;
}
.pay-page .pay-receipt-line > span:last-child {
    color: var(--text-main); font-weight: 600; font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.pay-page .pay-receipt-total {
    margin-top: 14px;
    background: rgba(242, 183, 53, 0.12);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex; justify-content: space-between; align-items: center;
}
[data-theme="light"] .pay-page .pay-receipt-total {
    background: rgba(217, 119, 6, 0.08);
}
.pay-page .pay-receipt-total-label {
    color: #F2B735; font-weight: 700; font-size: 14px;
}
[data-theme="light"] .pay-page .pay-receipt-total-label { color: #D97706; }
.pay-page .pay-receipt-total-value {
    color: #F2B735; font-weight: 800; font-size: 22px;
    font-variant-numeric: tabular-nums;
}
[data-theme="light"] .pay-page .pay-receipt-total-value { color: #D97706; }

.pay-page .pay-info-banner {
    margin-top: 14px; padding: 10px 12px;
    background: var(--primary-soft-bg);
    border: 1px solid var(--primary-soft-text);
    border-radius: 10px;
    display: flex; align-items: flex-start; gap: 10px;
}
.pay-page .pay-info-banner .material-symbols-rounded {
    font-size: 16px; color: var(--primary-soft-text); flex-shrink: 0; margin-top: 2px;
}
.pay-page .pay-info-banner-text {
    font-size: 12.5px; color: var(--text-main); opacity: .9; line-height: 1.5;
}

/* ──────────────── Success page ──────────────── */
.pay-page .pay-success-wrap {
    max-width: 720px;
    margin: 0 auto;
}

.pay-page .pay-success-hero {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 48px 32px 36px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .pay-page .pay-success-hero {
    box-shadow: 0 20px 60px rgba(16, 24, 40, 0.10), 0 6px 16px rgba(16, 24, 40, 0.06);
}

.pay-page .pay-success-hero::before {
    content: "";
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--success-soft-bg) 0%, transparent 55%);
    pointer-events: none;
}

.pay-page .pay-check-animated {
    width: 96px; height: 96px; border-radius: 50%;
    background: var(--success-soft-bg);
    display: inline-flex; align-items: center; justify-content: center;
    margin: 0 auto; position: relative;
    animation: payCheckPulse 2s ease-in-out infinite;
}

.pay-page .pay-check-animated::before {
    content: "";
    position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid var(--success-soft-text);
    opacity: 0.3;
    animation: payCheckRing 2s ease-out infinite;
}

.pay-page .pay-check-animated svg { position: relative; }
.pay-page .pay-check-animated svg path {
    stroke-dasharray: 40;
    stroke-dashoffset: 0;
    animation: payCheckDraw 0.6s ease-out;
}

@keyframes payCheckPulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes payCheckRing  { 0% { transform: scale(1); opacity: 0.3; } 100% { transform: scale(1.4); opacity: 0; } }
@keyframes payCheckDraw  { 0% { stroke-dashoffset: 40; } 100% { stroke-dashoffset: 0; } }

.pay-page .pay-success-title {
    margin: 22px 0 8px; font-size: 28px; font-weight: 800;
    color: var(--text-main); letter-spacing: -0.5px;
    position: relative;
}

.pay-page .pay-success-body {
    margin: 0 auto; max-width: 460px;
    color: var(--muted); font-size: 15px; line-height: 1.6;
    position: relative;
}
.pay-page .pay-success-body strong { color: var(--text-main); }

.pay-page .pay-success-chips {
    display: inline-flex; align-items: center; gap: 10px;
    margin-top: 22px; flex-wrap: wrap; justify-content: center;
    position: relative;
}
.pay-page .pay-success-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 999px;
    font-size: 13px; font-weight: 700;
}
.pay-page .pay-success-chip .material-symbols-rounded { font-size: 15px; }
.pay-page .pay-success-chip.is-success {
    background: var(--success-soft-bg); color: var(--success-soft-text);
}
.pay-page .pay-success-chip.is-primary {
    background: var(--primary-soft-bg); color: var(--primary-soft-text);
}
.pay-page .pay-success-chip.is-success .material-symbols-rounded {
    font-variation-settings: 'FILL' 1;
}

/* Success cards: policy details + next steps */
.pay-page .pay-success-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 22px;
    margin-top: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
[data-theme="light"] .pay-page .pay-success-card {
    box-shadow: 0 8px 22px rgba(16, 24, 40, 0.05);
}

.pay-page .pay-success-card-eyebrow {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.7px;
    color: var(--muted); text-transform: uppercase;
}
.pay-page .pay-success-card-eyebrow .material-symbols-rounded {
    font-size: 18px; color: var(--success-soft-text);
    font-variation-settings: 'FILL' 1;
}

.pay-page .pay-policy-details {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media (max-width: 720px) {
    .pay-page .pay-policy-details { grid-template-columns: 1fr; }
}

.pay-page .pay-next-steps { display: flex; flex-direction: column; gap: 12px; }

.pay-page .pay-next-step {
    display: flex; align-items: center; gap: 14px;
    padding: 14px; border: 1px solid var(--card-border); border-radius: 12px;
}
.pay-page .pay-next-step-icon {
    width: 40px; height: 40px; border-radius: 11px;
    background: rgba(242, 183, 53, 0.12); color: #F2B735;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
[data-theme="light"] .pay-page .pay-next-step-icon {
    background: rgba(217, 119, 6, 0.08); color: #D97706;
}
.pay-page .pay-next-step-icon .material-symbols-rounded {
    font-size: 20px; font-variation-settings: 'FILL' 1;
}
.pay-page .pay-next-step-body { flex: 1; min-width: 0; }
.pay-page .pay-next-step-title {
    font-weight: 600; font-size: 14px; color: var(--text-main);
}
.pay-page .pay-next-step-sub {
    color: var(--muted); font-size: 12.5px; margin-top: 2px;
}
.pay-page .pay-next-step-cta {
    background: transparent; color: #F2B735; border: 1px solid #F2B735;
    border-radius: 10px; padding: 7px 14px;
    font-weight: 600; font-size: 12.5px; cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}
.pay-page .pay-next-step-cta:hover { background: rgba(242, 183, 53, 0.12); }
[data-theme="light"] .pay-page .pay-next-step-cta { color: #D97706; border-color: #D97706; }
[data-theme="light"] .pay-page .pay-next-step-cta:hover { background: rgba(217, 119, 6, 0.08); }

/* Success footer */
.pay-page .pay-success-actions {
    display: flex; justify-content: center; align-items: center;
    margin-top: 20px; gap: 12px; flex-wrap: wrap;
}

/* ──────────────── Monthly financing hero ──────────────── */
.pay-page .pay-monthly-hero {
    background: linear-gradient(140deg, rgba(242, 183, 53, 0.12) 0%, var(--card-bg) 60%);
    border: 1.5px solid #F2B735;
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 16px;
    box-shadow: 0 14px 34px rgba(242, 183, 53, 0.18);
    position: relative;
    overflow: hidden;
}
[data-theme="light"] .pay-page .pay-monthly-hero {
    background: linear-gradient(140deg, rgba(217, 119, 6, 0.08) 0%, var(--card-bg) 60%);
    border-color: #D97706;
    box-shadow: 0 14px 34px rgba(217, 119, 6, 0.14);
}
.pay-page .pay-monthly-hero::after {
    content: "";
    position: absolute; top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(242, 183, 53, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.pay-page .pay-monthly-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    margin-bottom: 8px; position: relative;
    font-size: 11px; font-weight: 700; letter-spacing: 0.8px;
    color: #F2B735; text-transform: uppercase;
}
[data-theme="light"] .pay-page .pay-monthly-eyebrow { color: #D97706; }
.pay-page .pay-monthly-eyebrow .material-symbols-rounded {
    font-size: 18px; font-variation-settings: 'FILL' 1;
}

.pay-page .pay-monthly-amount-row {
    display: flex; align-items: baseline; gap: 12px;
    flex-wrap: wrap; position: relative;
}

.pay-page .pay-monthly-amount {
    font-size: 56px; font-weight: 800; color: #F2B735;
    letter-spacing: -2px; line-height: 1;
    font-variant-numeric: tabular-nums;
}
[data-theme="light"] .pay-page .pay-monthly-amount { color: #D97706; }

.pay-page .pay-monthly-amount-hint {
    font-size: 20px; font-weight: 600;
    color: var(--text-main); opacity: .85;
    letter-spacing: -0.3px;
}

.pay-page .pay-monthly-meta {
    margin-top: 6px; color: var(--muted); font-size: 13px;
    position: relative;
}
.pay-page .pay-monthly-meta strong { color: var(--text-main); }

.pay-page .pay-contract-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px;
}
@media (max-width: 720px) {
    .pay-page .pay-contract-grid { grid-template-columns: 1fr; }
}

.pay-page .pay-contract-tile {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 10px;
}
[data-theme="light"] .pay-page .pay-contract-tile {
    background: rgba(16, 24, 40, 0.02);
}

.pay-page .pay-contract-tile.is-highlight {
    background: rgba(242, 183, 53, 0.12);
    border-color: #F2B735;
}
[data-theme="light"] .pay-page .pay-contract-tile.is-highlight {
    background: rgba(217, 119, 6, 0.08);
    border-color: #D97706;
}

.pay-page .pay-contract-label {
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.6px;
    color: var(--muted); text-transform: uppercase;
}

.pay-page .pay-contract-value {
    margin-top: 3px; color: var(--text-main);
    font-size: 15px; font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pay-page .pay-contract-tile.is-highlight .pay-contract-value {
    color: #F2B735; font-size: 17px;
}
[data-theme="light"] .pay-page .pay-contract-tile.is-highlight .pay-contract-value { color: #D97706; }

.pay-page .pay-schedule {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px; padding: 14px;
}
[data-theme="light"] .pay-page .pay-schedule { background: rgba(16, 24, 40, 0.02); }

.pay-page .pay-schedule-label {
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.7px;
    color: var(--muted); text-transform: uppercase; margin-bottom: 10px;
}

.pay-page .pay-schedule-cells {
    display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px;
}
@media (max-width: 720px) {
    .pay-page .pay-schedule-cells { grid-template-columns: repeat(5, 1fr); }
}

.pay-page .pay-schedule-cell {
    padding: 8px 4px; text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    font-size: 10.5px; font-weight: 600;
    color: var(--text-main); opacity: .9;
}
.pay-page .pay-schedule-cell.is-first {
    background: rgba(242, 183, 53, 0.12);
    border-color: #F2B735;
    color: #F2B735;
}
[data-theme="light"] .pay-page .pay-schedule-cell.is-first {
    background: rgba(217, 119, 6, 0.08);
    border-color: #D97706;
    color: #D97706;
}

.pay-page .pay-schedule-cell-month {
    font-size: 9px; letter-spacing: 0.4px; opacity: 0.7;
}

.pay-page .pay-schedule-cell-amount {
    margin-top: 3px; font-variant-numeric: tabular-nums;
}

/* PaymentReview document preview dialog — cap the fixed width on small screens */
.yd-preview-panel.rz-dialog,
.yd-preview-panel .rz-dialog {
    max-width: 96vw;
}

/* ──────────────── Signature pad (EQPay checkout port) ──────────────── */
.pay-page .pay-sig-wrap {
    position: relative;
    border: 2px dashed var(--card-border);
    border-radius: 10px;
    overflow: hidden;
    height: 150px;
    background: #fff;
}
.pay-page .pay-sig-canvas { width: 100%; height: 100%; cursor: crosshair; display: block; }
.pay-page .pay-sig-placeholder {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: #9ca3af; font-size: 1rem; pointer-events: none;
}
.pay-page .pay-sig-clear {
    display: inline-flex; align-items: center; gap: 4px; margin-top: 8px;
    border: none; background: none; color: var(--muted); font-size: 0.85rem;
    cursor: pointer; padding: 4px 8px; border-radius: 6px;
}
.pay-page .pay-sig-clear:hover { background: var(--card-bg); }

/* Field-level validation error (shared billing fields) */
.pay-page .pay-field-error { color: var(--danger-soft-text, #ef4444); font-size: 0.78rem; margin-top: 3px; }

/* Highlighted receipt/schedule row (e.g. the down-payment row) */
.pay-page .pay-receipt-row.is-highlight .pay-receipt-value,
.pay-page .pay-receipt-row.is-highlight .pay-receipt-label { font-weight: 700; }
