/* Royal Routes — Premium payment portal */

:root {
    --rr-pay-navy: #123a73;
    --rr-pay-navy-dark: #0a1f3d;
    --rr-pay-navy-light: #1a4d8f;
    --rr-pay-gold: #f4b400;
    --rr-pay-gold-soft: rgba(244, 180, 0, 0.25);
    --rr-pay-white: #ffffff;
    --rr-pay-glass: rgba(255, 255, 255, 0.72);
    --rr-pay-glass-border: rgba(255, 255, 255, 0.45);
    --rr-pay-text: #0f172a;
    --rr-pay-muted: #64748b;
    --rr-pay-radius: 20px;
    --rr-pay-shadow: 0 24px 64px rgba(15, 23, 42, 0.12);
}

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

/* Payment content below video page header */
#rr-payment-page .page-header {
    margin-bottom: 0;
}

.rr-payment-page .rr-pay-page {
    position: relative;
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    color: var(--rr-pay-text);
    background: linear-gradient(135deg, #eef4fb 0%, #f8fafc 40%, #e8eef5 100%);
    overflow-x: hidden;
    padding: 40px 0 56px;
    min-height: 50vh;
}

.rr-payment-page .page-wrapper {
    overflow-x: hidden;
}

.rr-pay-live-warning {
    font-size: 14px;
    line-height: 1.55;
}

.rr-pay-live-warning code {
    font-size: 12px;
}

.rr-pay-test-badge {
    max-width: 1280px;
    margin: 0 auto 16px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    text-align: center;
}

.rr-pay-gateway-alert {
    max-width: 1280px;
    margin: 0 auto 16px;
    border-radius: 10px;
}

.rr-pay-setup-alert__title {
    margin: 0 0 12px;
    font-weight: 800;
    font-size: 15px;
}

.rr-pay-setup-alert__list {
    margin: 0 0 14px;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.55;
}

.rr-pay-setup-alert__list li {
    margin-bottom: 8px;
}

.rr-pay-setup-alert__checks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
}

.rr-pay-setup-alert__checks .is-ok {
    color: #047857;
}

.rr-pay-setup-alert__checks .is-miss {
    color: #b91c1c;
}

.rr-pay-setup-alert__help {
    margin: 0;
    font-size: 13px;
}

.rr-stripe-card-wrap {
    margin-bottom: 20px;
}

.rr-stripe-card-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rr-pay-navy);
}

.rr-stripe-card-element {
    padding: 16px 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rr-stripe-card-element.StripeElement--focus {
    border-color: var(--rr-pay-navy);
    box-shadow: 0 0 0 4px rgba(18, 58, 115, 0.12);
}

.rr-stripe-card-errors {
    min-height: 22px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #dc2626;
}

/* Animated background */
.rr-pay-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.rr-pay-bg__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    animation: rrPayFloat 12s ease-in-out infinite;
}

.rr-pay-bg__orb--1 {
    width: 480px;
    height: 480px;
    top: -120px;
    left: -80px;
    background: radial-gradient(circle, var(--rr-pay-gold-soft), transparent 70%);
}

.rr-pay-bg__orb--2 {
    width: 520px;
    height: 520px;
    bottom: -160px;
    right: -100px;
    background: radial-gradient(circle, rgba(18, 58, 115, 0.35), transparent 70%);
    animation-delay: -4s;
}

.rr-pay-bg__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(18, 58, 115, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 58, 115, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.rr-pay-bg__particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(18, 58, 115, 0.15);
}

@keyframes rrPayFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(24px, 18px) scale(1.06); }
}

/* Progress bar */
.rr-payment-page .rr-pay-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 9999;
    background: rgba(18, 58, 115, 0.08);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rr-pay-progress.is-active {
    opacity: 1;
}

.rr-pay-progress__bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--rr-pay-navy), var(--rr-pay-gold));
    border-radius: 0 2px 2px 0;
    transition: width 0.15s ease;
}

/* Processing overlay */
body.rr-pay-is-processing {
    overflow: hidden;
}

.rr-pay-processing {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.rr-pay-processing.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.rr-pay-processing__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
}

.rr-pay-processing__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 36px 32px 28px;
    text-align: center;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow:
        0 4px 6px rgba(18, 58, 115, 0.06),
        0 32px 64px rgba(18, 58, 115, 0.2);
    animation: rrPayProcessingIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes rrPayProcessingIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.rr-pay-processing__spinner {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
}

.rr-pay-processing__ring {
    position: absolute;
    inset: 0;
    border: 3px solid rgba(18, 58, 115, 0.12);
    border-top-color: var(--rr-pay-navy);
    border-radius: 50%;
    animation: rrSpin 0.9s linear infinite;
}

.rr-pay-processing__ring--2 {
    inset: 8px;
    border-top-color: var(--rr-pay-gold);
    animation-duration: 1.2s;
    animation-direction: reverse;
}

.rr-pay-processing__icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    color: var(--rr-pay-navy);
}

.rr-pay-processing__title {
    margin: 0 0 10px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--rr-pay-navy);
    letter-spacing: -0.02em;
}

.rr-pay-processing__message {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--rr-pay-muted);
}

.rr-pay-processing__steps {
    list-style: none;
    margin: 0 0 20px;
    padding: 16px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-align: left;
}

.rr-pay-processing__steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    transition: color 0.25s ease;
}

.rr-pay-processing__steps li:not(:last-child) {
    border-bottom: 1px solid #e2e8f0;
}

.rr-pay-processing__steps li i {
    font-size: 14px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.rr-pay-processing__steps li.is-done {
    color: #047857;
}

.rr-pay-processing__steps li.is-done i {
    color: #10b981;
}

.rr-pay-processing__steps li.is-active {
    color: var(--rr-pay-navy);
}

.rr-pay-processing__steps li.is-active i {
    color: var(--rr-pay-gold);
    animation: rrPayPulse 1s ease-in-out infinite;
}

@keyframes rrPayPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.rr-pay-processing__hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--rr-pay-muted);
    letter-spacing: 0.02em;
}

.rr-pay-processing__hint i {
    color: var(--rr-pay-navy);
    font-size: 14px;
}

/* Toast */
.rr-pay-toast-wrap {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
}

.rr-pay-toast {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
    animation: rrToastIn 0.35s ease;
}

.rr-pay-toast--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.rr-pay-toast--success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

@keyframes rrToastIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.rr-pay-page__container {
    position: relative;
    z-index: 1;
    max-width: 1280px;
}

/* Step indicator */
.rr-pay-steps {
    margin-bottom: 28px;
}

.rr-pay-steps__list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 16px 20px;
    list-style: none;
    background: var(--rr-pay-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--rr-pay-glass-border);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.rr-pay-steps__item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--rr-pay-muted);
    font-size: 14px;
    font-weight: 600;
}

.rr-pay-steps__item.is-active {
    color: var(--rr-pay-navy);
}

.rr-pay-steps__item.is-done {
    color: #10b981;
}

.rr-pay-steps__item.is-done .rr-pay-steps__num {
    background: #10b981;
    color: #fff;
}

.rr-pay-steps__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
    background: #e2e8f0;
    color: var(--rr-pay-muted);
    transition: background 0.25s ease, color 0.25s ease;
}

.rr-pay-steps__item.is-active .rr-pay-steps__num {
    background: linear-gradient(135deg, var(--rr-pay-navy), var(--rr-pay-navy-light));
    color: #fff;
}

.rr-pay-steps__divider {
    width: 48px;
    height: 2px;
    margin: 0 16px;
    background: linear-gradient(90deg, #e2e8f0, var(--rr-pay-gold), #e2e8f0);
    border-radius: 2px;
}

/* Layout */
.rr-pay-app {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: 36px;
    align-items: start;
}

.rr-pay-step {
    display: none;
}

.rr-pay-step.is-active {
    display: block;
}

.rr-pay-summary--sticky {
    position: sticky;
    top: 100px;
    z-index: 2;
    margin-bottom: 20px;
}

.rr-pay-summary--compact {
    margin-bottom: 18px;
    padding: 14px 18px;
}

.rr-pay-summary--compact .rr-pay-summary__row strong {
    font-size: 1.2rem;
}

.rr-pay-actions {
    margin-top: 24px;
}

.rr-pay-actions--split {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.rr-pay-actions--split .rr-pay-submit {
    flex: 1;
    min-width: 200px;
}

.rr-pay-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 56px;
    padding: 0 22px;
    border: 2px solid var(--rr-pay-navy);
    border-radius: 14px;
    background: transparent;
    color: var(--rr-pay-navy);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.rr-pay-btn-back:hover {
    background: var(--rr-pay-navy);
    color: #fff;
}

.glass-card {
    background: var(--rr-pay-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--rr-pay-glass-border);
    border-radius: var(--rr-pay-radius);
    box-shadow: var(--rr-pay-shadow);
}

/* Brand panel */
.rr-pay-brand {
    padding: 12px 8px;
}

.rr-pay-brand__logo img {
    max-width: 200px;
    height: auto;
    display: block;
    margin-bottom: 28px;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.08));
}

.rr-pay-brand__secure {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--rr-pay-navy);
    background: rgba(18, 58, 115, 0.08);
    border-radius: 999px;
}

.rr-pay-brand__secure i {
    color: #10b981;
}

.rr-pay-brand__secure--local {
    color: #0f766e;
    background: rgba(16, 185, 129, 0.12);
}

.rr-pay-brand__secure--local i {
    color: #10b981;
}

.rr-pay-autofill-guard {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}

.rr-pay-brand__title {
    margin: 0 0 14px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--rr-pay-navy-dark);
}

.rr-pay-brand__text {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--rr-pay-muted);
}

.rr-pay-benefits {
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.rr-pay-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--rr-pay-text);
}

.rr-pay-benefits i {
    color: var(--rr-pay-gold);
    font-size: 18px;
}

.rr-pay-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.rr-pay-trust__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--rr-pay-navy);
    background: rgba(255, 255, 255, 0.65);
    border-radius: 10px;
    border: 1px solid rgba(18, 58, 115, 0.1);
}

.rr-pay-cards-logos {
    display: flex;
    gap: 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.rr-pay-cards-logos__visa { color: #1a1f71; }
.rr-pay-cards-logos__mc { color: #eb001b; }
.rr-pay-cards-logos__amex { color: #006fcf; }

/* Main form area */
.rr-pay-main {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
}

.rr-pay-summary {
    padding: 18px 22px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--rr-pay-navy) 0%, var(--rr-pay-navy-light) 100%);
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 12px 32px rgba(18, 58, 115, 0.25);
}

.rr-pay-summary__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.85;
    margin-bottom: 10px;
}

.rr-pay-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.rr-pay-summary__row strong {
    font-size: 1.5rem;
    font-weight: 800;
}

.rr-pay-summary__row--muted {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.9;
}

.rr-pay-card {
    padding: 32px 28px 28px;
}

.rr-pay-card__head {
    margin-bottom: 24px;
}

.rr-pay-card__head h2 {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--rr-pay-navy);
}

.rr-pay-card__head p {
    margin: 0;
    font-size: 13px;
    color: var(--rr-pay-muted);
}

/* Floating labels */
.rr-field {
    position: relative;
}

.rr-field__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    color: #94a3b8;
    z-index: 2;
    pointer-events: none;
    transition: color 0.2s ease;
}

.rr-field__input {
    width: 100%;
    min-height: 52px;
    padding: 22px 14px 10px 44px;
    font-size: 15px;
    font-weight: 500;
    color: var(--rr-pay-text);
    background: rgba(255, 255, 255, 0.85);
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rr-field__input:focus {
    border-color: var(--rr-pay-navy);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(18, 58, 115, 0.12);
}

.rr-field__input:focus + .rr-field__label,
.rr-field__input:not(:placeholder-shown) + .rr-field__label {
    top: 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--rr-pay-navy);
}

.rr-field__input:focus ~ .rr-field__icon {
    color: var(--rr-pay-navy);
}

.rr-field__label {
    position: absolute;
    left: 44px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    pointer-events: none;
    transition: all 0.2s ease;
}

.rr-field.is-invalid .rr-field__input {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.rr-field__error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #dc2626;
}

.rr-field--select {
    margin-top: -13px;
    padding-top: 8px;
}

.rr-field__label-static {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rr-pay-muted);
}

.rr-field__select {
    width: 100%;
    min-height: 39px;
    padding: 0 12px;
    font-size: 15px;
    font-weight: 600;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--rr-pay-navy);
}

.rr-pay-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--rr-pay-muted);
}

.rr-pay-divider::before,
.rr-pay-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* Card preview — single-screen layout */
.rr-pay-card-preview-wrap {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.rr-card-single,
.rr-card-flip {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1.586 / 1;
    filter: drop-shadow(0 24px 48px rgba(8, 20, 40, 0.38));
}

.rr-card-single {
    --rr-card-input-h: 46px;
    --rr-card-input-pad-x: 14px;
    --rr-card-input-radius: 10px;
    --rr-card-input-border: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
    --rr-card-input-bg: rgba(0, 0, 0, 0.14);
    --rr-card-input-focus-ring: 0 0 0 1px rgba(244, 180, 0, 0.85), 0 0 18px rgba(244, 180, 0, 0.22);
}

.rr-card-single > .rr-card-preview {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 24px 26px 22px;
    border-radius: 16px;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(135deg, #2d5a9e 0%, #1a4480 28%, var(--rr-pay-navy) 55%, #0c2342 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.25) inset,
        0 0 0 1px rgba(0, 0, 0, 0.08);
}

.rr-card-single .rr-card-preview.is-visa {
    background: linear-gradient(135deg, #1a1f71 0%, #2e3192 45%, #1a237e 100%);
}

.rr-card-single .rr-card-preview.is-mastercard {
    background: linear-gradient(135deg, #eb001b 0%, #f79e1b 50%, #ff5f00 100%);
}

.rr-card-single .rr-card-preview.is-amex {
    background: linear-gradient(135deg, #006fcf 0%, #009cde 50%, #00467f 100%);
}

.rr-card-flip {
    perspective: 2400px;
    perspective-origin: 50% 42%;
}

.rr-card-flip__ground {
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -20px;
    height: 28px;
    background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.4) 0%, transparent 72%);
    filter: blur(10px);
    transition: transform 0.85s ease, opacity 0.85s ease;
    pointer-events: none;
}

.rr-card-flip.is-flipped .rr-card-flip__ground {
    transform: scaleX(0.88);
    opacity: 0.75;
}

.rr-card-flip__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateY(-4deg) rotateX(6deg);
    transition: transform 0.9s cubic-bezier(0.34, 0.72, 0.22, 1);
    will-change: transform;
}

.rr-card-flip.is-flipped .rr-card-flip__inner {
    transform: rotateY(176deg) rotateX(6deg);
}

.rr-card-flip.is-flipping .rr-card-flip__inner {
    filter: drop-shadow(0 32px 56px rgba(10, 31, 61, 0.55));
    transition-timing-function: cubic-bezier(0.45, 0.05, 0.25, 1);
}

.rr-card-flip__toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
}

.rr-card-flip__nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1.5px solid rgba(18, 58, 115, 0.15);
    border-radius: 12px;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    font-size: 13px;
    font-weight: 700;
    color: var(--rr-pay-navy);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.rr-card-flip__nav:hover {
    border-color: var(--rr-pay-gold);
    background: #fffbeb;
    box-shadow: 0 6px 20px rgba(244, 180, 0, 0.22);
    transform: translateY(-2px);
}

.rr-card-flip__nav i {
    font-size: 18px;
    color: var(--rr-pay-gold);
}

.rr-card-flip__nav[hidden] {
    display: none !important;
}

.rr-card-flip__nav:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
    background: #f1f5f9;
    border-color: rgba(18, 58, 115, 0.1);
}

/* Card face mesh + shine */
.rr-card-face__mesh {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(255, 255, 255, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 90% 80%, rgba(244, 180, 0, 0.12) 0%, transparent 50%),
        repeating-linear-gradient(
            -55deg,
            transparent,
            transparent 3px,
            rgba(255, 255, 255, 0.02) 3px,
            rgba(255, 255, 255, 0.02) 4px
        );
    pointer-events: none;
}

.rr-card-face__mesh--back {
    background:
        radial-gradient(ellipse 60% 50% at 80% 90%, rgba(244, 180, 0, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, transparent 35%);
}

.rr-card-face__shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        115deg,
        transparent 30%,
        rgba(255, 255, 255, 0.12) 45%,
        transparent 58%
    );
    transform: translateX(-100%);
    pointer-events: none;
}

.rr-card-preview.is-active .rr-card-face__shine,
.rr-card-flip.is-flipping .rr-card-face__shine {
    animation: rrCardShine 0.9s ease forwards;
}

@keyframes rrCardShine {
    to { transform: translateX(100%); }
}

.rr-card-preview__top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
}

.rr-card-preview__contactless {
    width: 28px;
    height: 28px;
    margin-left: auto;
    margin-right: 10px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 50%, transparent 38%, rgba(255, 255, 255, 0.5) 39%, rgba(255, 255, 255, 0.5) 41%, transparent 42%),
        radial-gradient(circle at 50% 50%, transparent 48%, rgba(255, 255, 255, 0.45) 49%, rgba(255, 255, 255, 0.45) 51%, transparent 52%),
        radial-gradient(circle at 70% 50%, transparent 58%, rgba(255, 255, 255, 0.4) 59%, rgba(255, 255, 255, 0.4) 61%, transparent 62%);
    opacity: 0.85;
}

/* Back of card — magnetic stripe + signature panel */
.rr-card-preview__mag-stripe {
    position: relative;
    z-index: 2;
    height: 48px;
    margin: 0 -28px 0;
    width: calc(100% + 56px);
    overflow: hidden;
    background: linear-gradient(180deg, #3a3a3a 0%, #0a0a0a 42%, #1f1f1f 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.35);
}

.rr-card-preview__mag-stripe-gloss {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.06) 35%,
        rgba(255, 255, 255, 0.14) 50%,
        rgba(255, 255, 255, 0.05) 65%,
        transparent 100%
    );
    animation: rrMagStripeGloss 4s ease-in-out infinite;
}

@keyframes rrMagStripeGloss {
    0%, 100% { transform: translateX(-30%); opacity: 0.7; }
    50% { transform: translateX(30%); opacity: 1; }
}

.rr-card-preview__signature-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 28px 0 0;
    min-height: 44px;
}

.rr-card-preview__signature-strip {
    position: relative;
    flex: 1;
    min-height: 44px;
    border-radius: 4px 0 0 4px;
    background: repeating-linear-gradient(
        90deg,
        #e8ecf1 0,
        #e8ecf1 8px,
        #f1f5f9 8px,
        #f1f5f9 16px
    );
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.rr-card-preview__signature-line {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, #94a3b8 8%, #64748b 50%, #94a3b8 92%, transparent);
    opacity: 0.55;
}

.rr-card-preview__cvc-panel {
    flex: 0 0 42%;
    max-width: 150px;
    padding: 8px 12px 10px;
    border-radius: 0 6px 6px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    border: 1px solid #cbd5e1;
    border-left: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.rr-card-preview__cvc-panel small {
    display: block;
    margin-bottom: 4px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #64748b;
}

.rr-card-preview__cvc-panel.is-highlighted {
    box-shadow:
        0 0 0 3px rgba(244, 180, 0, 0.5),
        0 4px 16px rgba(244, 180, 0, 0.2);
}

.rr-card-preview__cvc-mount {
    min-height: 36px;
    padding: 4px 8px;
    background: #ffffff;
    border: 1.5px solid #94a3b8;
    border-radius: 4px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.rr-card-preview__cvc-mount.is-highlighted {
    border-color: var(--rr-pay-gold);
    box-shadow: 0 0 0 2px rgba(244, 180, 0, 0.3);
}

.rr-card-preview__back-meta {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
}

.rr-card-preview__hologram {
    width: 44px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(
        135deg,
        rgba(244, 180, 0, 0.55) 0%,
        rgba(255, 255, 255, 0.35) 35%,
        rgba(56, 189, 248, 0.35) 55%,
        rgba(18, 58, 115, 0.45) 100%
    );
    background-size: 200% 200%;
    box-shadow:
        inset 0 0 14px rgba(255, 255, 255, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.25);
    animation: rrHologramShift 5s ease-in-out infinite;
}

@keyframes rrHologramShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.rr-card-preview__back-legal {
    text-align: right;
    max-width: 72%;
}

.rr-card-preview__issuer {
    display: block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 4px;
}

.rr-card-preview__back-hint {
    margin: 0;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.45);
}


/* Card number slot — dot mask + Stripe input overlay */
.rr-card-preview__number-slot {
    position: relative;
    margin-bottom: 20px;
    min-height: var(--rr-card-input-h);
    padding: 0;
    border-radius: var(--rr-card-input-radius);
}

/* Single outline lives on .rr-card-preview__stripe-wrap only (not the slot) */
.rr-card-preview__number-slot.is-focused,
.rr-card-preview__number-slot.is-highlighted {
    background: transparent;
    box-shadow: none;
}

.rr-card-number-ui__dot.is-hidden {
    opacity: 0;
    width: 0;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
}

.rr-card-number-ui {
    position: absolute;
    top: 0;
    left: var(--rr-card-input-pad-x);
    right: var(--rr-card-input-pad-x);
    z-index: 1;
    pointer-events: none;
    height: var(--rr-card-input-h);
    overflow: visible;
}

.rr-card-number-ui__track {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    font-family: "SF Mono", "Consolas", "Courier New", monospace;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
}

.rr-card-number-ui__group {
    display: inline-flex;
    align-items: center;
    gap: 0.08em;
}

.rr-card-number-ui__dot {
    display: inline-block;
    width: 0.62em;
    text-align: center;
    color: rgba(255, 255, 255, 0.38);
    transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.2s ease;
    will-change: opacity, transform;
}

.rr-card-number-ui__dot.is-typed {
    opacity: 0;
    transform: scale(0.55) translateY(2px);
}

/* Cursor sits above Stripe iframe — visibility toggled by payment.js */
.rr-card-preview__number-slot > .rr-card-number-ui__cursor {
    position: absolute;
    top: 50%;
    left: var(--rr-card-input-pad-x);
    z-index: 10;
    width: 2px;
    height: 28px;
    margin-top: -14px;
    border-radius: 1px;
    pointer-events: none;
    background: #ffffff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateX(0);
    transition: transform 0.12s cubic-bezier(0.4, 0, 0.2, 1);
}

.rr-card-preview__number-slot > .rr-card-number-ui__cursor.is-visible {
    visibility: visible;
}

.rr-card-preview__stripe-wrap {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--rr-card-input-h);
    padding: 0 var(--rr-card-input-pad-x);
    border-radius: var(--rr-card-input-radius);
    box-shadow: var(--rr-card-input-border);
    background: var(--rr-card-input-bg);
    transition: box-shadow 0.3s ease, background 0.25s ease;
}

.rr-card-preview__stripe-wrap.is-highlighted,
.rr-card-preview__field.is-field-highlight .rr-card-preview__stripe-wrap {
    background: rgba(244, 180, 0, 0.1);
    box-shadow: var(--rr-card-input-focus-ring);
}

.rr-card-preview__stripe-field {
    width: 100%;
}

.rr-card-preview__stripe-field--expiry,
.rr-card-preview__stripe-field--cvc {
    max-width: 100%;
}

.rr-card-single .rr-card-preview__footer-row .rr-card-preview__stripe-wrap {
    width: 100%;
    justify-content: flex-start;
    padding-left: 6px;
    padding-right: var(--rr-card-input-pad-x);
}

.rr-card-single .rr-card-preview__footer-row .rr-card-preview__stripe-field {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: var(--rr-card-input-h);
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: left;
}

.rr-card-single .rr-card-preview__footer-row .rr-card-preview__stripe-field .__PrivateStripeElement,
.rr-card-single .rr-card-preview__footer-row .rr-card-preview__stripe-field > div {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100%;
    min-height: var(--rr-card-input-h) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.rr-card-single .rr-card-preview__stripe-wrap .StripeElement,
.rr-card-single .rr-card-preview__stripe-wrap .__PrivateStripeElement,
.rr-card-single .rr-card-preview__stripe-wrap iframe {
    min-height: var(--rr-card-input-h) !important;
    height: var(--rr-card-input-h) !important;
    background: transparent !important;
}

.rr-card-single .rr-card-preview__footer-row .rr-card-preview__stripe-wrap iframe {
    margin: 0;
}

.rr-card-preview__field {
    flex: 1;
    min-width: 0;
    padding: 0;
    margin: 0;
    border-radius: var(--rr-card-input-radius);
    transition: color 0.2s ease;
}

.rr-card-preview__field.is-field-highlight {
    background: transparent;
    box-shadow: none;
}

.rr-card-preview__name-input {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 2px 0;
    border: none;
    border-bottom: 1px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.98);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    outline: none;
    font-family: inherit;
    transition: border-color 0.25s ease, text-shadow 0.25s ease;
}

.rr-card-preview__name-input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.rr-card-preview__name-input:hover {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.rr-card-preview__name-input:focus {
    border-bottom-color: rgba(244, 180, 0, 0.55);
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
}

/* Stripe inputs mounted on the card (white text) */
.rr-card-preview .StripeElement,
.rr-card-preview .StripeElement--focus,
.rr-card-preview .StripeElement--invalid {
    width: 100%;
}

.rr-card-preview__stripe-wrap .StripeElement,
.rr-card-preview__stripe-wrap iframe {
    min-height: var(--rr-card-input-h) !important;
    height: var(--rr-card-input-h) !important;
}

.rr-card-preview__stripe-wrap .__PrivateStripeElement {
    min-height: var(--rr-card-input-h);
    height: var(--rr-card-input-h);
}

.rr-card-preview__number-slot .rr-card-preview__stripe-wrap {
    justify-content: flex-start;
}

.rr-card-preview__number-slot .rr-card-preview__stripe-field {
    width: 100%;
    min-height: var(--rr-card-input-h);
}

.rr-stripe-field-mount {
    min-height: 52px;
    padding: 14px 14px 14px 44px;
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.rr-stripe-field-mount.is-highlighted,
.rr-field--stripe-cvv.is-highlighted .rr-stripe-field-mount {
    border-color: var(--rr-pay-gold);
    background: #ffffff;
    box-shadow:
        0 0 0 4px rgba(244, 180, 0, 0.28),
        0 0 24px rgba(244, 180, 0, 0.18);
}

.rr-stripe-field-mount .StripeElement--focus {
    border-radius: 12px;
}

.rr-field--stripe-cvv.is-highlighted .rr-field__icon {
    color: var(--rr-pay-gold);
}

.rr-field--stripe-cvv .rr-field__label-static {
    margin-left: 44px;
}

.rr-stripe-fields-row {
    margin-bottom: 8px;
}

/* Shared card face — 3D layered faces */
.rr-card-flip__inner > .rr-card-preview--front,
.rr-card-flip__inner > .rr-card-preview--back {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 22px 26px 20px;
    border-radius: 16px;
    color: #fff;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.25) inset,
        0 24px 48px rgba(8, 20, 40, 0.45),
        0 0 0 1px rgba(0, 0, 0, 0.08);
}

.rr-card-flip__inner > .rr-card-preview--front {
    background: linear-gradient(135deg, #2d5a9e 0%, #1a4480 28%, var(--rr-pay-navy) 55%, #0c2342 100%);
    transform: rotateY(0deg) translateZ(18px);
}

.rr-card-flip__inner > .rr-card-preview--back {
    padding-top: 0;
    background: linear-gradient(160deg, #243f6e 0%, #152d52 38%, #0a1a30 100%);
    transform: rotateY(180deg) translateZ(18px);
}

.rr-card-preview {
    border-radius: 16px;
    color: #fff;
}

.rr-card-flip__inner > .rr-card-preview--front.is-typing {
    transform: rotateY(0deg) translateZ(18px) scale(1.01);
}

.rr-card-preview__chip {
    width: 48px;
    height: 36px;
    margin-bottom: 0;
    border-radius: 8px;
    background: linear-gradient(145deg, #b8860b 0%, #f4e4a6 35%, #d4af37 70%, #9a7b0a 100%);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.35s ease;
}

.rr-card-preview.is-active .rr-card-preview__chip {
    box-shadow: 0 2px 12px rgba(244, 180, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.rr-card-preview__brand {
    position: static;
    font-size: 16px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.rr-card-preview.is-active .rr-card-preview__brand {
    transform: scale(1.04);
}

.rr-card-preview__number {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.12em;
    margin-bottom: 20px;
    font-family: "Courier New", monospace;
}

.rr-card-preview__footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: auto;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.rr-card-preview__footer-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.rr-card-preview__field--expiry {
    flex: 1 1 50%;
    min-width: 0;
}

.rr-card-preview__field--cvc {
    flex: 1 1 50%;
    min-width: 0;
}

.rr-card-preview__field--holder {
    flex: 1 1 100%;
    width: 100%;
}

.rr-card-single .rr-card-preview__field--cvc small,
.rr-card-single .rr-card-preview__field--expiry small {
    display: block;
    margin-left: 6px;
    margin-bottom: 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.5);
}

.rr-card-preview__field.is-field-highlight small {
    color: rgba(244, 180, 0, 0.92);
}

.rr-card-preview__footer small {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 5px;
}

.rr-card-preview__footer span {
    font-weight: 700;
    font-size: 12px;
}

.rr-card-preview__field.is-expiry-focus small,
.rr-card-preview__field.is-name-focus small {
    color: rgba(244, 180, 0, 0.9);
}

.rr-card-flip__inner > .rr-card-preview--front.is-visa {
    background: linear-gradient(135deg, #1a1f71 0%, #2e3192 45%, #1a237e 100%);
}

.rr-card-flip__inner > .rr-card-preview--front.is-mastercard {
    background: linear-gradient(135deg, #eb001b 0%, #f79e1b 50%, #ff5f00 100%);
}

.rr-card-flip__inner > .rr-card-preview--front.is-amex {
    background: linear-gradient(135deg, #006fcf 0%, #00a1e4 55%, #004b8d 100%);
}

.rr-card-preview.is-active {
    border-color: rgba(244, 180, 0, 0.45);
    box-shadow:
        0 24px 56px rgba(10, 31, 61, 0.5),
        0 0 0 2px rgba(244, 180, 0, 0.4),
        0 0 32px rgba(244, 180, 0, 0.12);
}

.rr-card-preview.is-number-focus::before {
    opacity: 1.15;
}

.rr-card-preview.is-input-active {
    border-color: rgba(244, 180, 0, 0.5);
    box-shadow:
        0 24px 56px rgba(10, 31, 61, 0.5),
        0 0 0 2px rgba(244, 180, 0, 0.45),
        0 0 40px rgba(244, 180, 0, 0.15);
}

.rr-card-preview .StripeElement--focus {
    outline: none;
}

.rr-card-preview__field.is-invalid .rr-card-preview__name-input {
    color: #fecaca;
}

.rr-card-preview__field .rr-field__error {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #fecaca;
}

.rr-pay-notice {
    display: flex;
    gap: 10px;
    margin: 20px 0 24px;
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--rr-pay-muted);
    background: rgba(18, 58, 115, 0.06);
    border-radius: 10px;
}

.rr-pay-notice i {
    color: var(--rr-pay-navy);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Submit */
.rr-pay-submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 56px;
    padding: 0 24px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--rr-pay-navy);
    background: linear-gradient(135deg, var(--rr-pay-gold) 0%, #ffcc33 100%);
    box-shadow: 0 10px 28px var(--rr-pay-gold-soft);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rr-pay-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(244, 180, 0, 0.45);
}

.rr-pay-submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.rr-pay-submit.is-loading .rr-pay-submit__text,
.rr-pay-submit.is-loading .rr-pay-submit__icon {
    opacity: 0;
}

.rr-pay-submit__loader {
    display: none;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(18, 58, 115, 0.2);
    border-top-color: var(--rr-pay-navy);
    border-radius: 50%;
    animation: rrSpin 0.7s linear infinite;
}

.rr-pay-submit.is-loading .rr-pay-submit__loader {
    display: block;
    position: absolute;
}

@keyframes rrSpin {
    to { transform: rotate(360deg); }
}

.rr-pay-footer-note {
    margin: 20px 0 0;
    text-align: center;
    font-size: 12px;
    color: var(--rr-pay-muted);
}

.rr-pay-footer-note a {
    color: var(--rr-pay-navy);
    font-weight: 600;
}

/* Success overlay */
.rr-pay-success {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 31, 61, 0.55);
    backdrop-filter: blur(8px);
}

.rr-pay-success[hidden] {
    display: none !important;
}

.rr-pay-success__card {
    max-width: 440px;
    width: 100%;
    padding: 40px 32px 32px;
    text-align: center;
}

.rr-pay-success__check {
    width: 88px;
    height: 88px;
    margin: 0 auto 24px;
}

.rr-pay-success__svg {
    width: 100%;
    height: 100%;
}

.rr-pay-success__circle {
    stroke: #10b981;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
}

.rr-pay-success__tick {
    stroke: #10b981;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
}

.rr-pay-success__card h2 {
    margin: 0 0 10px;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--rr-pay-navy);
}

.rr-pay-success__lead {
    margin: 0 0 24px;
    color: var(--rr-pay-muted);
    font-size: 15px;
}

.rr-pay-success__details {
    text-align: left;
    margin-bottom: 28px;
    padding: 18px;
    background: rgba(18, 58, 115, 0.06);
    border-radius: 12px;
}

.rr-pay-success__details div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(18, 58, 115, 0.08);
}

.rr-pay-success__details div:last-child {
    border-bottom: none;
}

.rr-pay-success__details span {
    color: var(--rr-pay-muted);
}

.rr-pay-success__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rr-pay-btn-primary {
    background: var(--rr-pay-navy) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px !important;
    font-weight: 700 !important;
}

.rr-pay-btn-secondary {
    border-radius: 12px !important;
    padding: 14px !important;
    font-weight: 600 !important;
    color: var(--rr-pay-navy) !important;
    border-color: var(--rr-pay-navy) !important;
}

/* Responsive */
@media (max-width: 991px) {
    .rr-payment-page .rr-pay-page {
        padding: 24px 0 36px;
    }

    .rr-pay-app {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .rr-pay-summary--sticky {
        position: static;
    }

    .rr-pay-steps__label {
        font-size: 12px;
    }

    .rr-pay-steps__divider {
        width: 24px;
        margin: 0 10px;
    }

    .rr-pay-brand {
        text-align: center;
        padding: 8px 0;
    }

    .rr-pay-brand__logo img {
        margin: 0 auto 20px;
    }

    .rr-pay-benefits,
    .rr-pay-trust,
    .rr-pay-cards-logos {
        justify-content: center;
    }

    .rr-pay-benefits li {
        justify-content: center;
    }

    .rr-pay-trust {
        justify-content: center;
    }

    .rr-pay-cards-logos {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .rr-pay-card {
        padding: 24px 18px 20px;
    }

    .rr-card-flip {
        max-width: 100%;
    }

    .rr-card-flip__inner > .rr-card-preview--front,
    .rr-card-flip__inner > .rr-card-preview--back {
        padding: 18px 18px 16px;
    }

    .rr-card-preview__brand {
        font-size: 13px;
    }

    .rr-card-number-ui__track {
        font-size: 16px;
        gap: 8px;
    }

    .rr-card-preview__mag-stripe {
        margin: 0 -18px;
        width: calc(100% + 36px);
    }

    .rr-card-flip__nav {
        width: 100%;
        justify-content: center;
        font-size: 12px;
    }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .rr-payment-page .rr-pay-page {
        color: #e2e8f0;
        background: linear-gradient(135deg, #0a1628 0%, #0f172a 50%, #0a1f3d 100%);
    }

    .rr-pay-steps__list {
        background: rgba(15, 23, 42, 0.75);
        border-color: rgba(255, 255, 255, 0.08);
    }

    .glass-card {
        background: rgba(15, 23, 42, 0.75);
        border-color: rgba(255, 255, 255, 0.08);
    }

    .rr-pay-brand__title { color: #f8fafc; }
    .rr-pay-brand__text,
    .rr-pay-benefits li { color: #cbd5e1; }
    .rr-pay-trust__item {
        background: rgba(255, 255, 255, 0.06);
        color: #e2e8f0;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .rr-field__input,
    .rr-field__select {
        background: rgba(15, 23, 42, 0.6);
        border-color: #334155;
        color: #f1f5f9;
    }

    .rr-field__input:focus {
        background: rgba(15, 23, 42, 0.9);
    }

    .rr-pay-card__head h2 { color: #f4b400; }
    .rr-pay-success__card h2 { color: #f8fafc; }
}

@media (prefers-reduced-motion: reduce) {
    .rr-pay-bg__orb,
    .rr-pay-submit__loader {
        animation: none;
    }

    .rr-card-flip__inner {
        transition: none;
        transform: none;
    }

    .rr-card-flip.is-flipped .rr-card-flip__inner {
        transform: none;
    }

    .rr-card-flip.is-flipped .rr-card-flip__inner > .rr-card-preview--front {
        display: none;
    }

    .rr-card-flip.is-flipped .rr-card-flip__inner > .rr-card-preview--back {
        position: absolute;
        transform: none;
    }

    .rr-card-flip:not(.is-flipped) .rr-card-flip__inner > .rr-card-preview--back {
        display: none;
    }

    .rr-card-preview--front.is-typing,
    .rr-card-number-ui__dot,
    .rr-card-preview__number-slot > .rr-card-number-ui__cursor {
        transition: transform 0.12s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .rr-card-preview__mag-stripe-gloss,
    .rr-card-preview__hologram {
        animation: none;
    }
}
