:root {
    --green-950: #06382f;
    --green-900: #08483c;
    --green-800: #0b5d4d;
    --green-700: #0b6b57;
    --green-600: #0e8b70;
    --green-500: #18a27f;
    --green-100: #dff5ed;
    --green-50: #f0faf6;
    --ink: #10231e;
    --muted: #667872;
    --line: #dbe7e3;
    --surface: #ffffff;
    --surface-soft: #f6faf8;
    --page: #eef5f2;
    --danger: #bd3445;
    --warning: #996000;
    --shadow-lg: 0 28px 80px rgba(8, 62, 50, 0.14);
    --shadow-md: 0 14px 38px rgba(8, 62, 50, 0.10);
    --radius-xl: 30px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
    min-width: 320px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--page);
}
body { margin: 0; min-width: 320px; }
body, button, input, textarea, select { font: inherit; }
button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Page de paiement */
.checkout-page {
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(circle at 6% 4%, rgba(14, 139, 112, 0.12), transparent 28rem),
        radial-gradient(circle at 96% 92%, rgba(242, 177, 73, 0.13), transparent 27rem),
        var(--page);
}
.checkout-topbar {
    width: min(1180px, calc(100% - 40px));
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.checkout-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
}
.checkout-brand > span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(145deg, var(--green-700), var(--green-600));
    box-shadow: 0 10px 24px rgba(11, 107, 87, 0.22);
    font-size: 20px;
    font-weight: 900;
}
.checkout-brand div { display: grid; min-width: 0; gap: 2px; }
.checkout-brand strong {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}
.checkout-brand small { color: var(--muted); font-size: 11px; }
.topbar-security {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.topbar-security i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #25b786;
    box-shadow: 0 0 0 5px rgba(37, 183, 134, 0.12);
}
.checkout-layout {
    width: min(1180px, calc(100% - 40px));
    min-height: 680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(330px, 390px) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(14, 97, 78, 0.08);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}
.checkout-summary {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(34px, 4vw, 48px);
    color: #fff;
    background: linear-gradient(155deg, var(--green-950) 0%, var(--green-800) 50%, #0e8068 100%);
}
.summary-intro, .summary-card, .trust-list { position: relative; z-index: 1; }
.eyebrow {
    margin: 0 0 9px;
    color: var(--green-600);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}
.eyebrow.light { color: #afe7d8; }
.summary-intro h1 {
    max-width: 330px;
    margin: 0 0 16px;
    font-size: clamp(35px, 4vw, 46px);
    line-height: 1.03;
    letter-spacing: -0.05em;
}
.summary-intro > p:last-child {
    max-width: 340px;
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
    line-height: 1.68;
}
.summary-card {
    margin-top: 34px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}
.summary-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.summary-card > strong {
    display: block;
    margin: 12px 0 18px;
    font-size: clamp(31px, 4vw, 38px);
    line-height: 1;
    letter-spacing: -0.045em;
}
.summary-card > strong em {
    color: rgba(255, 255, 255, 0.70);
    font-size: 12px;
    font-style: normal;
    letter-spacing: 0;
}
.summary-card dl {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.summary-card dl div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    min-width: 0;
}
.summary-card dt { color: rgba(255, 255, 255, 0.60); font-size: 10px; }
.summary-card dd {
    min-width: 0;
    max-width: 190px;
    margin: 0;
    overflow: hidden;
    color: #fff;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 800;
}
.trust-list {
    display: grid;
    gap: 14px;
    margin-top: auto;
    padding-top: 30px;
}
.trust-list > div { display: flex; align-items: flex-start; gap: 11px; }
.trust-list > div > span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    color: #075b49;
    background: #b9eee0;
    font-size: 12px;
    font-weight: 900;
}
.trust-list p { display: grid; gap: 3px; margin: 0; }
.trust-list strong { font-size: 11px; }
.trust-list small { color: rgba(255, 255, 255, 0.64); font-size: 9px; line-height: 1.45; }
.summary-rings {
    position: absolute;
    right: -330px;
    bottom: -205px;
    width: 480px;
    height: 480px;
    border: 54px solid rgba(255, 255, 255, 0.055);
    border-radius: 50%;
    pointer-events: none;
}
.summary-rings::before {
    content: "";
    position: absolute;
    inset: 55px;
    border: 38px solid rgba(255, 255, 255, 0.04);
    border-radius: inherit;
}
.checkout-workspace {
    min-width: 0;
    padding: clamp(34px, 4.5vw, 52px) clamp(30px, 5vw, 58px) 44px;
    background: var(--surface);
}
.checkout-progress {
    display: flex;
    align-items: center;
    width: min(100%, 610px);
    margin-bottom: 34px;
}
.checkout-progress button {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    color: #8b9a96;
    background: transparent;
    text-align: left;
    cursor: pointer;
}
.checkout-progress button > span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    color: #7f918c;
    background: #eff4f2;
    font-size: 12px;
    font-weight: 850;
    transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.checkout-progress button div { display: grid; min-width: 0; gap: 1px; }
.checkout-progress button strong { color: inherit; font-size: 11px; line-height: 1.25; }
.checkout-progress button small { color: inherit; font-size: 9px; line-height: 1.25; }
.checkout-progress > i {
    flex: 1;
    min-width: 30px;
    height: 1px;
    margin: 0 18px;
    background: var(--line);
}
.checkout-progress button.is-active { color: var(--ink); }
.checkout-progress button.is-active > span {
    color: #fff;
    background: var(--green-700);
    box-shadow: 0 8px 20px rgba(11, 107, 87, 0.20);
}
.checkout-progress button.is-complete > span { color: var(--green-700); background: #daf2ea; }
.setup-alert, .form-alert {
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    font-size: 12px;
    line-height: 1.55;
}
.setup-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 15px;
    border: 1px solid #f1d3a0;
    color: #78500a;
    background: #fff8e8;
}
.setup-alert > span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffe6b4;
    font-weight: 900;
}
.setup-alert div { display: grid; gap: 4px; }
.setup-alert strong { font-size: 12px; }
.setup-alert p, .setup-alert ul { margin: 0; padding-left: 17px; font-size: 10px; }
.form-alert {
    padding: 13px 15px;
    border: 1px solid #efc0c8;
    color: #a42d3d;
    background: #fff0f2;
}
.payment-form { position: relative; }
.form-step { animation: step-enter 260ms ease both; }
@keyframes step-enter {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}
.step-heading { margin-bottom: 26px; }
.step-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 3.2vw, 36px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}
.step-heading > p:last-child {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}
.fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.field { display: grid; min-width: 0; align-content: start; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field > span { font-size: 12px; font-weight: 780; }
.field input, .field textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #d1dfda;
    border-radius: 13px;
    outline: none;
    color: var(--ink);
    background: #f7faf9;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.field input { height: 52px; padding: 0 14px; }
.field textarea { min-height: 86px; padding: 13px 14px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #99aaa5; }
.field input:focus, .field textarea:focus,
.phone-control:focus-within, .amount-control:focus-within {
    border-color: #48ad94;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(14, 139, 112, 0.10);
}
.field.has-error input, .field.has-error textarea,
.field.has-error .phone-control, .field.has-error .amount-control { border-color: #d66d79; }
.field-help { color: var(--muted); font-size: 10px; line-height: 1.4; }
.field-error { min-height: 14px; color: var(--danger); font-size: 10px; font-weight: 700; line-height: 1.35; }
.phone-control, .amount-control {
    display: flex;
    min-width: 0;
    height: 52px;
    align-items: center;
    overflow: hidden;
    border: 1px solid #d1dfda;
    border-radius: 13px;
    background: #f7faf9;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.phone-control b, .amount-control b {
    display: grid;
    place-items: center;
    align-self: stretch;
    flex: 0 0 auto;
    padding: 0 13px;
    color: #61746e;
    background: #edf4f1;
    font-size: 11px;
    white-space: nowrap;
}
.phone-control input, .amount-control input {
    height: 100%;
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
}
.amount-control b { margin-left: auto; }
.step-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.next-button, .pay-button, .back-button, .primary-button, .secondary-button {
    min-height: 52px;
    border-radius: 14px;
    font-weight: 850;
}
.next-button, .pay-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0 22px;
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--green-600), var(--green-700));
    box-shadow: 0 12px 26px rgba(11, 107, 87, 0.20);
    font-size: 12px;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
.next-button:hover, .pay-button:hover { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(11, 107, 87, 0.24); }
.next-button:active, .pay-button:active { transform: translateY(0); }
.next-button b { font-size: 18px; }
.back-button {
    padding: 0 8px;
    border: 0;
    color: var(--muted);
    background: transparent;
    font-size: 12px;
    cursor: pointer;
}
.payment-methods { min-width: 0; margin: 0; padding: 0; border: 0; }
.methods-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.method-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 80px;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}
.method-card:hover { transform: translateY(-1px); border-color: #8fc8b8; }
.method-card input { position: absolute; opacity: 0; pointer-events: none; }
.method-card:has(input:focus-visible) { outline: 3px solid rgba(14, 139, 112, 0.22); outline-offset: 2px; }
.method-card:has(input:checked) { border-color: #4aac93; background: var(--green-50); box-shadow: 0 0 0 3px rgba(14, 139, 112, 0.08); }
.method-card.is-disabled { opacity: 0.46; cursor: not-allowed; }
.method-card.is-disabled:hover { transform: none; border-color: var(--line); }
.method-logo {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 900;
}
.method-logo.wave { color: #008db6; background: #d9f7ff; }
.method-logo.orange-money { color: #de7700; background: #fff0d7; }
.method-logo.yas { color: #5c49c4; background: #eae7ff; }
.method-logo.card { color: #4359ad; background: #e6ebff; }
.method-copy { display: grid; min-width: 0; gap: 3px; }
.method-copy strong { font-size: 12px; }
.method-copy small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.radio-indicator {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-left: auto;
    border: 2px solid #c7d5d1;
    border-radius: 50%;
    box-shadow: inset 0 0 0 4px #fff;
}
.method-card:has(input:checked) .radio-indicator { border-color: var(--green-700); background: var(--green-700); }
.review-card {
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #f7faf9;
}
.review-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 17px;
    border-bottom: 1px solid var(--line);
}
.review-head div { display: grid; gap: 3px; }
.review-head span { color: var(--muted); font-size: 9px; letter-spacing: 0.09em; text-transform: uppercase; }
.review-head strong { font-size: 20px; letter-spacing: -0.03em; }
.review-head button { min-height: 40px; padding: 0 8px; border: 0; color: var(--green-700); background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.review-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 15px 17px; }
.review-card dl div { display: grid; min-width: 0; gap: 4px; }
.review-card dt { color: var(--muted); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; }
.review-card dd { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 750; }
.final-actions { margin-top: 22px; }
.pay-button { min-width: 260px; }
.pay-button:disabled { opacity: 0.52; cursor: not-allowed; transform: none; box-shadow: none; }
.button-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}
.pay-button.is-loading .button-spinner { display: block; }
.pay-button.is-loading .button-arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.privacy-note {
    display: flex;
    max-width: 610px;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    margin: 15px auto 0;
    color: var(--muted);
    text-align: center;
    font-size: 9px;
    line-height: 1.55;
}
.checkout-footer {
    width: min(1180px, calc(100% - 40px));
    min-height: 66px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #81908c;
    font-size: 9px;
}

/* Modale opérateur */
.modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 27, 23, 0.66); backdrop-filter: blur(5px); }
.modal-dialog {
    position: relative;
    z-index: 1;
    width: min(460px, 100%);
    max-height: calc(100dvh - 40px);
    overflow: auto;
    padding: 32px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
    text-align: center;
}
.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    color: #60716c;
    background: #edf3f1;
    font-size: 22px;
    cursor: pointer;
}
.modal-provider { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 17px; border-radius: 18px; color: #de7700; background: #fff0d7; font-size: 13px; font-weight: 900; }
.modal-dialog h2 { margin: 0 0 9px; font-size: 27px; letter-spacing: -0.04em; }
.modal-dialog > p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.6; }
.operator-links { display: grid; gap: 9px; margin: 18px 0; }
.primary-button, .secondary-button { display: flex; align-items: center; justify-content: center; padding: 0 18px; text-decoration: none; font-size: 12px; }
.primary-button { color: #fff; background: var(--green-700); }
.secondary-button { color: var(--green-700); background: #edf6f3; }
.operator-qr { display: block; width: 190px; height: 190px; object-fit: contain; margin: 17px auto; border: 10px solid #fff; border-radius: 14px; box-shadow: 0 8px 26px rgba(0, 0, 0, 0.10); }
.modal-dialog > small { display: block; margin-top: 14px; color: var(--muted); font-size: 9px; }
.modal-open { overflow: hidden; }

/* Pages de statut */
.status-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(circle at 15% 10%, rgba(14, 139, 112, 0.13), transparent 30rem), var(--page);
}
.status-card { width: min(540px, 100%); padding: 40px; border-radius: 26px; background: #fff; box-shadow: var(--shadow-lg); text-align: center; }
.status-brand { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 28px; color: var(--ink); font-size: 12px; font-weight: 800; text-decoration: none; }
.status-brand span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: var(--green-700); }
.status-icon { display: grid; place-items: center; width: 78px; height: 78px; margin: 0 auto 22px; border-radius: 50%; background: #e9f7f2; }
.status-icon > span { width: 24px; height: 24px; border: 3px solid #acd9cc; border-top-color: var(--green-700); border-radius: 50%; animation: spin 800ms linear infinite; }
.status-icon.is-success { background: #e4f7ef; }
.status-icon.is-success > span, .status-icon.is-failed > span { width: auto; height: auto; border: 0; animation: none; }
.status-icon.is-success > span::before { content: "✓"; color: var(--green-700); font-size: 34px; font-weight: 900; }
.status-icon.is-failed { background: #fff0f2; }
.status-icon.is-failed > span::before { content: "×"; color: var(--danger); font-size: 38px; font-weight: 800; }
.status-card h1 { margin: 0 0 11px; font-size: 31px; letter-spacing: -0.04em; }
.status-card > p:not(.eyebrow):not(.refresh-note) { margin: 0 auto 24px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.status-details { display: grid; margin: 0 0 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; text-align: left; }
.status-details div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.status-details div:last-child { border-bottom: 0; }
.status-details dt { color: var(--muted); font-size: 10px; }
.status-details dd { margin: 0; overflow-wrap: anywhere; text-align: right; font-size: 11px; font-weight: 800; }
.refresh-note { color: var(--green-700); font-size: 10px; font-weight: 750; }
.status-card > .secondary-button { margin-top: 16px; }

@media (max-width: 980px) {
    .checkout-layout { grid-template-columns: minmax(300px, 340px) minmax(0, 1fr); }
    .checkout-summary { padding: 34px 30px; }
    .checkout-workspace { padding: 36px 34px 40px; }
    .summary-intro h1 { font-size: 37px; }
}

@media (max-width: 820px) {
    .checkout-topbar { min-height: 72px; }
    .checkout-layout { display: block; min-height: 0; }
    .checkout-summary {
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr);
        align-items: center;
        gap: 24px;
        padding: 28px 30px;
    }
    .summary-intro h1 { max-width: 500px; margin-bottom: 10px; font-size: 34px; }
    .summary-intro > p:last-child { max-width: 520px; font-size: 12px; }
    .summary-card { margin-top: 0; padding: 18px; }
    .summary-card > strong { margin: 10px 0 14px; font-size: 30px; }
    .trust-list { display: none; }
    .summary-rings { right: -300px; bottom: -310px; }
    .checkout-workspace { padding: 32px 30px 38px; }
    .checkout-progress { margin-bottom: 28px; }
}

@media (max-width: 640px) {
    .checkout-page { background: #f3f7f5; }
    .checkout-topbar {
        position: sticky;
        z-index: 30;
        top: 0;
        width: 100%;
        min-height: 64px;
        padding: 0 16px;
        border-bottom: 1px solid rgba(14, 97, 78, 0.08);
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(14px);
    }
    .checkout-brand { gap: 10px; }
    .checkout-brand > span { width: 38px; height: 38px; border-radius: 12px; font-size: 17px; }
    .checkout-brand strong { max-width: 180px; font-size: 12px; }
    .checkout-brand small { font-size: 9px; }
    .topbar-security span { display: none; }
    .checkout-layout {
        width: calc(100% - 20px);
        margin-top: 10px;
        overflow: visible;
        border: 0;
        border-radius: 22px;
        box-shadow: 0 12px 36px rgba(8, 62, 50, 0.10);
    }
    .checkout-summary {
        display: block;
        min-height: 0;
        padding: 22px 20px 20px;
        border-radius: 22px 22px 0 0;
    }
    .summary-intro .eyebrow { margin-bottom: 6px; font-size: 9px; }
    .summary-intro h1 { max-width: 100%; margin: 0; font-size: 25px; line-height: 1.08; }
    .summary-intro > p:last-child { display: none; }
    .summary-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: 10px 16px;
        margin-top: 16px;
        padding: 15px 16px;
        border-radius: 16px;
    }
    .summary-card-head { grid-column: 1 / -1; }
    .summary-card > strong { margin: 0; font-size: 28px; }
    .summary-card dl { min-width: 116px; gap: 6px; padding: 0 0 0 14px; border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.14); }
    .summary-card dl div:first-child { display: none; }
    .summary-card dl div { display: grid; gap: 1px; }
    .summary-card dd { max-width: 115px; text-align: left; font-size: 10px; }
    .summary-rings { width: 260px; height: 260px; right: -185px; bottom: -150px; border-width: 32px; }
    .summary-rings::before { inset: 30px; border-width: 22px; }
    .checkout-workspace { padding: 0 18px 28px; border-radius: 0 0 22px 22px; }
    .checkout-progress {
        position: sticky;
        z-index: 15;
        top: 64px;
        width: auto;
        margin: 0 -18px 24px;
        padding: 14px 18px;
        border-bottom: 1px solid rgba(14, 97, 78, 0.08);
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
    }
    .checkout-progress button { flex: 1; }
    .checkout-progress button:last-child { justify-content: flex-end; }
    .checkout-progress button > span { width: 31px; height: 31px; border-radius: 10px; }
    .checkout-progress button div small { display: none; }
    .checkout-progress button strong { font-size: 10px; }
    .checkout-progress > i { flex: 0 0 34px; min-width: 34px; margin: 0 8px; }
    .setup-alert, .form-alert { font-size: 11px; }
    .step-heading { margin-bottom: 22px; }
    .step-heading .eyebrow { font-size: 9px; }
    .step-heading h2 { font-size: 27px; }
    .step-heading > p:last-child { font-size: 11px; }
    .fields-grid { grid-template-columns: 1fr; gap: 15px; }
    .field-wide { grid-column: auto; }
    .field > span { font-size: 12px; }
    .field input, .field textarea, .phone-control, .amount-control { font-size: 16px; }
    .field input, .phone-control, .amount-control { height: 54px; }
    .field textarea { min-height: 94px; }
    .phone-control b, .amount-control b { font-size: 12px; }
    .step-actions {
        position: static;
        margin: 26px 0 0;
        padding: 18px 0 calc(2px + env(safe-area-inset-bottom));
        border-top: 1px solid rgba(14, 97, 78, 0.10);
        background: transparent;
        backdrop-filter: none;
    }
    .next-button { width: 100%; min-height: 55px; font-size: 12px; }
    .methods-grid { grid-template-columns: 1fr; }
    .method-card { min-height: 76px; }
    .method-copy strong { font-size: 12px; }
    .review-card dl { grid-template-columns: 1fr; gap: 10px; }
    .review-card dl div { grid-template-columns: 88px minmax(0, 1fr); align-items: baseline; }
    .review-card dd { white-space: normal; overflow-wrap: anywhere; }
    .final-actions { flex-direction: column-reverse; align-items: stretch; gap: 7px; }
    .back-button, .pay-button { width: 100%; min-width: 0; }
    .back-button { min-height: 42px; }
    .privacy-note { margin-bottom: 0; font-size: 9px; }
    .checkout-footer { width: 100%; min-height: 58px; padding: 0 14px; font-size: 8px; }
    .modal { align-items: end; padding: 0; }
    .modal-dialog {
        width: 100%;
        max-height: calc(100dvh - 24px);
        padding: 30px 20px calc(22px + env(safe-area-inset-bottom));
        border-radius: 24px 24px 0 0;
        animation: sheet-up 230ms ease both;
    }
    @keyframes sheet-up { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }
    .modal-dialog h2 { font-size: 25px; }
    .status-page { align-items: start; padding: 14px; }
    .status-card { margin-top: 18px; padding: 30px 20px; border-radius: 22px; }
    .status-card h1 { font-size: 27px; }
    .status-details div { gap: 10px; }
}

@media (max-width: 380px) {
    .checkout-brand strong { max-width: 145px; }
    .checkout-progress button div { display: none; }
    .checkout-progress button { flex: 0 0 auto; }
    .checkout-progress button:last-child { margin-left: auto; }
    .checkout-progress > i { flex: 1; }
    .summary-card { grid-template-columns: 1fr; }
    .summary-card dl { display: none; }
}

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