@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #eef3f9;
    --bg-accent: #d9e5f5;
    --panel: #ffffff;
    --panel-soft: rgba(255, 255, 255, 0.74);
    --ink: #0a2540;
    --ink-soft: #3c4e65;
    --ink-faint: #6c7f96;
    --line: #dbe6f2;
    --line-strong: #c8d7e8;
    --accent: #005bd3;
    --accent-deep: #0b3b91;
    --accent-soft: #eff5ff;
    --success: #0c8c5c;
    --success-soft: #edf9f3;
    --danger: #c03f53;
    --danger-soft: #fdf1f3;
    --warning: #b26a00;
    --warning-soft: #fff6e9;
    --shadow-lg: 0 24px 80px rgba(13, 37, 64, 0.12);
    --shadow-md: 0 12px 32px rgba(13, 37, 64, 0.08);
    --shadow-sm: 0 6px 18px rgba(13, 37, 64, 0.06);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Manrope', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(0, 91, 211, 0.12), transparent 32%),
        radial-gradient(circle at top right, rgba(11, 59, 145, 0.10), transparent 28%),
        linear-gradient(180deg, #f6f9fd 0%, var(--bg) 100%);
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

.page-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 48px;
}

.page-shell.compact {
    width: min(960px, calc(100% - 24px));
}

.surface {
    background: var(--panel-soft);
    border: 1px solid rgba(219, 230, 242, 0.86);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    margin-bottom: 24px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, #07213e 0%, #005bd3 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.brand-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--ink-faint);
}

.topbar-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 600;
}

.checkout-stage {
    overflow: hidden;
    padding: 0;
    background: var(--panel);
}

.stage-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #071f3c 0%, #0a366b 100%);
    color: #fff;
}

.stage-top .brand-title,
.stage-top .brand-subtitle {
    color: #fff;
}

.stage-top .brand-subtitle {
    opacity: 0.78;
}

.stage-top .brand-mark {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 24px rgba(0, 0, 0, 0.22);
}

.stage-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.stage-chip,
.stage-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.stage-chip {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
}

.stage-link {
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.stage-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 24px;
    padding: 30px 28px 24px;
    background:
        radial-gradient(circle at top right, rgba(0, 91, 211, 0.10), transparent 32%),
        linear-gradient(180deg, #fbfdff 0%, #f4f8fd 100%);
}

.stage-copy .eyebrow {
    background: #eaf2ff;
}

.stage-copy .page-title {
    margin-top: 16px;
    margin-bottom: 12px;
    max-width: 13ch;
    font-size: clamp(34px, 5.8vw, 54px);
    line-height: 0.98;
}

.stage-copy .page-copy {
    max-width: 60ch;
    font-size: 15px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.merchant-card {
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.merchant-label {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    background: #edf5ff;
    color: var(--accent-deep);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.merchant-name {
    margin-top: 16px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.merchant-copy {
    margin-top: 8px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.7;
}

.merchant-list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.merchant-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--line-strong);
}

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

.merchant-row span:first-child {
    color: var(--ink-faint);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.merchant-row span:last-child {
    text-align: right;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
}

.stage-bottom {
    padding: 0 28px 24px;
}

.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.stack {
    display: grid;
    gap: 20px;
}

.panel {
    padding: 28px;
}

.hero-card {
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(5, 91, 211, 0.08), rgba(255, 255, 255, 0.92)),
        var(--panel);
    border: 1px solid rgba(0, 91, 211, 0.08);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-title {
    margin: 18px 0 10px;
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.page-copy {
    margin: 0;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.7;
    max-width: 62ch;
}

.trust-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.trust-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(219, 230, 242, 0.92);
    box-shadow: var(--shadow-sm);
}

.trust-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.trust-card span {
    display: block;
    color: var(--ink-faint);
    font-size: 12px;
    line-height: 1.55;
}

.section-card {
    padding: 28px;
    background: var(--panel);
}

.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.section-title {
    margin: 0;
    font-size: 21px;
    letter-spacing: -0.03em;
}

.section-copy {
    margin: 8px 0 0;
    color: var(--ink-faint);
    font-size: 14px;
    line-height: 1.65;
}

.section-kicker {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: var(--ink-faint);
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field-grid.single {
    grid-template-columns: 1fr;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}

.form-help {
    margin-top: -2px;
    font-size: 12px;
    color: var(--ink-faint);
}

.form-control,
.input-prefix {
    min-height: 56px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.form-control {
    width: 100%;
    padding: 0 16px;
    font-size: 15px;
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.form-control::placeholder {
    color: #93a2b4;
}

.form-control:focus {
    outline: none;
    border-color: rgba(0, 91, 211, 0.45);
    box-shadow: 0 0 0 4px rgba(0, 91, 211, 0.10);
}

.form-control.error {
    border-color: rgba(192, 63, 83, 0.6);
    box-shadow: 0 0 0 4px rgba(192, 63, 83, 0.10);
}

.form-control.success {
    border-color: rgba(12, 140, 92, 0.55);
    box-shadow: 0 0 0 4px rgba(12, 140, 92, 0.10);
}

.input-group {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0;
}

.input-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    border-right: 0;
    border-radius: 16px 0 0 16px;
    background: #f7faff;
    color: var(--ink-soft);
    font-weight: 800;
}

.input-group .form-control {
    border-left: 0;
    border-radius: 0 16px 16px 0;
}

.status-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 18px;
    font-size: 12px;
    font-weight: 700;
}

.error-message {
    color: var(--danger);
}

.success-message {
    color: var(--success);
}

.calc-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border-radius: 16px;
    background: var(--accent-soft);
    border: 1px solid rgba(0, 91, 211, 0.12);
    color: var(--accent-deep);
    font-size: 13px;
    font-weight: 700;
}

.notice-card {
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.notice-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.notice-card p {
    margin: 0;
    font-size: 13px;
    color: var(--ink-faint);
    line-height: 1.6;
}

.summary-shell {
    position: sticky;
    top: 24px;
}

.amount-highlight {
    padding: 20px 22px;
    border-radius: 22px;
    background: linear-gradient(135deg, #071f3c 0%, #0a4aaf 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(7, 31, 60, 0.24);
}

.amount-highlight .label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    opacity: 0.82;
    text-transform: uppercase;
}

.amount-highlight .amount {
    margin-top: 10px;
    font-size: clamp(30px, 5vw, 40px);
    font-weight: 800;
    letter-spacing: -0.05em;
}

.amount-highlight .subcopy {
    margin-top: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
}

.summary-list {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 14px;
}

.summary-row span:first-child {
    color: var(--ink-faint);
}

.summary-row span:last-child {
    font-weight: 700;
}

.summary-row.total {
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 16px;
}

.summary-row.total span:last-child {
    color: var(--accent);
}

.gateway-card {
    margin-top: 22px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fff;
}

.gateway-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.gateway-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: #f8fbff;
    border: 1px solid var(--line);
    font-size: 12px;
    font-weight: 800;
    color: var(--ink);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.method-chip {
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 700;
}

.meta-list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.84);
}

.meta-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent-deep);
    flex-shrink: 0;
}

.meta-text strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.meta-text span {
    display: block;
    color: var(--ink-faint);
    font-size: 12px;
    line-height: 1.55;
}

.secure-note {
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--warning-soft);
    border: 1px solid rgba(178, 106, 0, 0.18);
    color: var(--warning);
    font-size: 13px;
    line-height: 1.6;
}

.secure-note strong {
    color: #6f4300;
}

.primary-button,
.secondary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    border-radius: 18px;
    border: 0;
    padding: 0 22px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.primary-button {
    width: 100%;
    color: #fff;
    background: linear-gradient(135deg, #0a2540 0%, #005bd3 100%);
    box-shadow: 0 18px 28px rgba(0, 91, 211, 0.22);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
    transform: translateY(-1px);
}

.primary-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

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

.ghost-button {
    color: var(--accent-deep);
    background: var(--accent-soft);
    border: 1px solid rgba(0, 91, 211, 0.12);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 24px 0 0;
    padding: 0;
}

.progress-step {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.progress-step::before {
    content: '';
    position: absolute;
    top: 18px;
    left: calc(-50% + 22px);
    width: calc(100% - 44px);
    height: 2px;
    background: var(--line);
    z-index: 0;
}

.progress-step:first-child::before {
    display: none;
}

.step-circle {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--ink-faint);
}

.step-label {
    font-size: 11px;
    color: var(--ink-faint);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.progress-step.active .step-circle,
.progress-step.completed .step-circle,
.progress-step.success .step-circle {
    color: #fff;
    border-color: transparent;
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, #0a2540 0%, #005bd3 100%);
    box-shadow: 0 8px 22px rgba(0, 91, 211, 0.22);
}

.progress-step.completed .step-circle,
.progress-step.success .step-circle {
    background: linear-gradient(135deg, #0f6f4c 0%, #10a66a 100%);
}

.progress-step.failed .step-circle {
    color: #fff;
    background: linear-gradient(135deg, #a92f43 0%, #d44e61 100%);
    border-color: transparent;
}

.progress-step.completed::before,
.progress-step.success::before {
    background: linear-gradient(90deg, #0f8c5c 0%, #10a66a 100%);
}

.progress-step.active .step-label {
    color: var(--accent-deep);
}

.progress-step.completed .step-label,
.progress-step.success .step-label {
    color: var(--success);
}

.progress-step.failed .step-label {
    color: var(--danger);
}

.status-shell {
    display: grid;
    gap: 20px;
}

.status-card {
    padding: 30px;
    background: #fff;
}

.status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-badge.success {
    color: var(--success);
    background: var(--success-soft);
    border: 1px solid rgba(12, 140, 92, 0.18);
}

.status-badge.error {
    color: var(--danger);
    background: var(--danger-soft);
    border: 1px solid rgba(192, 63, 83, 0.16);
}

.status-badge.info {
    color: var(--accent-deep);
    background: var(--accent-soft);
    border: 1px solid rgba(0, 91, 211, 0.14);
}

.status-title {
    margin: 16px 0 10px;
    font-size: clamp(28px, 5vw, 40px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.status-copy {
    margin: 0;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.7;
    max-width: 54ch;
}

.alert-card {
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid var(--line);
}

.alert-card.success {
    background: var(--success-soft);
    border-color: rgba(12, 140, 92, 0.18);
    color: #0d6e49;
}

.alert-card.error {
    background: var(--danger-soft);
    border-color: rgba(192, 63, 83, 0.18);
    color: #8e2637;
}

.alert-card strong {
    font-size: 14px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.detail-card {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fbfdff;
}

.detail-card .label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-faint);
    font-weight: 800;
}

.detail-card .value {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.45;
}

.detail-card .value.amount {
    color: var(--accent);
}

.timeline-card {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fbfdff;
}

.timeline-card h3 {
    margin: 0 0 14px;
    font-size: 15px;
}

.timeline-list {
    display: grid;
    gap: 12px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    margin-top: 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0a2540 0%, #005bd3 100%);
    box-shadow: 0 0 0 5px rgba(0, 91, 211, 0.08);
    flex-shrink: 0;
}

.timeline-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.timeline-item span {
    display: block;
    color: var(--ink-faint);
    font-size: 12px;
    line-height: 1.55;
}

.meter {
    margin-top: 24px;
}

.meter-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--ink-soft);
}

.meter-track {
    position: relative;
    overflow: hidden;
    margin-top: 12px;
    height: 10px;
    border-radius: 999px;
    background: #d9e5f5;
}

.meter-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0a2540 0%, #005bd3 100%);
    transition: width 0.28s ease;
}

.meter-count {
    margin-top: 14px;
    font-size: clamp(38px, 9vw, 58px);
    font-weight: 800;
    letter-spacing: -0.05em;
}

.meter-caption {
    color: var(--ink-faint);
    font-size: 13px;
}

.receipt-card {
    padding: 24px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fdfefe 0%, #f4f8fd 100%);
}

.receipt-paper {
    position: relative;
    padding: 24px 22px;
    margin-top: 16px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.98)),
        repeating-linear-gradient(180deg, rgba(12, 37, 64, 0.00), rgba(12, 37, 64, 0.00) 24px, rgba(12, 37, 64, 0.028) 25px);
    border: 1px dashed rgba(12, 37, 64, 0.22);
    box-shadow: var(--shadow-sm);
    font-family: 'IBM Plex Mono', monospace;
}

.receipt-paper::before,
.receipt-paper::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    height: 10px;
    background:
        radial-gradient(circle at 10px 5px, transparent 5px, rgba(255, 255, 255, 0.98) 5px),
        radial-gradient(circle at calc(100% - 10px) 5px, transparent 5px, rgba(255, 255, 255, 0.98) 5px);
}

.receipt-paper::before {
    top: -5px;
}

.receipt-paper::after {
    bottom: -5px;
    transform: rotate(180deg);
}

.receipt-head {
    padding-bottom: 16px;
    border-bottom: 1px dashed rgba(12, 37, 64, 0.24);
    text-align: center;
}

.receipt-brand {
    font-size: 16px;
    font-weight: 700;
}

.receipt-subhead {
    margin-top: 6px;
    font-size: 12px;
    color: #51657d;
    line-height: 1.6;
}

.receipt-section {
    padding: 16px 0;
    border-bottom: 1px dashed rgba(12, 37, 64, 0.18);
}

.receipt-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    font-size: 12px;
    line-height: 1.7;
}

.receipt-row strong {
    font-size: 13px;
}

.receipt-row .muted {
    color: #60758d;
}

.receipt-total {
    padding-top: 16px;
    font-size: 14px;
    font-weight: 700;
}

.receipt-footer {
    padding-top: 16px;
    font-size: 11px;
    text-align: center;
    color: #60758d;
    line-height: 1.75;
}

.support-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fff;
}

.support-strip strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.support-strip span {
    display: block;
    font-size: 12px;
    color: var(--ink-faint);
}

.confirmation-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 28, 52, 0.58);
    backdrop-filter: blur(8px);
    z-index: 200;
}

.confirmation-overlay.show {
    display: flex;
}

.confirmation-dialog {
    width: min(540px, 100%);
    padding: 28px;
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.confirmation-title {
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.confirmation-copy {
    margin: 10px 0 0;
    color: var(--ink-faint);
    font-size: 14px;
    line-height: 1.65;
}

.confirmation-list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.confirmation-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid var(--line);
}

.confirmation-row span:first-child {
    color: var(--ink-faint);
    font-size: 13px;
}

.confirmation-row span:last-child {
    font-weight: 800;
    font-size: 14px;
}

.muted-error {
    margin-top: 10px;
    color: var(--danger);
    font-size: 13px;
    font-weight: 700;
}

.no-print {
    display: initial;
}

@media (max-width: 1080px) {
    .page-grid {
        grid-template-columns: 1fr;
    }

    .summary-shell {
        position: static;
    }
}

@media (max-width: 760px) {
    .page-shell {
        width: min(100% - 18px, 100%);
        padding: 18px 0 34px;
    }

    .topbar,
    .panel,
    .section-card,
    .status-card,
    .hero-card,
    .confirmation-dialog {
        padding: 22px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .stage-top,
    .stage-hero {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .stage-hero,
    .stage-bottom {
        padding-left: 22px;
        padding-right: 22px;
    }

    .stage-actions {
        justify-content: flex-start;
    }

    .stage-copy .page-title {
        max-width: none;
        font-size: clamp(30px, 9vw, 42px);
    }

    .trust-grid,
    .field-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .button-row,
    .support-strip {
        flex-direction: column;
        align-items: stretch;
    }

    .progress-steps {
        gap: 2px;
    }

    .step-label {
        font-size: 10px;
    }

    .support-strip {
        text-align: left;
    }
}

@media print {
    body {
        background: #fff;
    }

    .no-print,
    .topbar,
    .progress-steps,
    .alert-card,
    .button-row,
    .support-strip,
    .timeline-card,
    .secure-note {
        display: none !important;
    }

    .page-shell,
    .page-shell.compact {
        width: auto;
        margin: 0;
        padding: 0;
    }

    .surface,
    .status-card,
    .receipt-card {
        border: 0;
        box-shadow: none;
        background: #fff;
        backdrop-filter: none;
    }

    .receipt-paper {
        width: 80mm;
        max-width: 80mm;
        margin: 0 auto;
        padding: 10mm 6mm;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: #fff;
    }

    .receipt-paper::before,
    .receipt-paper::after {
        display: none;
    }
}
