/* ==========================================================================
   McAfee™ Dedicated Checkout Stylesheet
   Matches official McAfee consumer purchase flow
   ========================================================================== */

:root {
    --primary-blue: #2563eb;
    --primary-blue-hover: #1d4ed8;
    --mcafee-red: #c01818;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #cbd5e1;
    --border-light: #e2e8f0;
    --bg-page: #f8fafc;
    --card-bg: #ffffff;
    --success-green: #059669;
    --success-badge-bg: #dcfce7;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-pill: 9999px;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05), 0 10px 25px -5px rgba(0, 0, 0, 0.04);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.checkout-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    padding: 0.85rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-badge-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

.mcafee-logo {
    height: 32px;
    width: auto;
    display: block;
}

.mcafee-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--mcafee-red);
    letter-spacing: -0.5px;
}

.trademark {
    font-size: 0.75rem;
    vertical-align: super;
}

.secure-title {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-left: 0.35rem;
}

.verified-shield {
    color: #2563eb;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
}

.country-selector {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease;
}

.country-selector:hover {
    background: #f1f5f9;
}

.flag {
    font-size: 1.15rem;
}

.chevron {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==========================================================================
   MAIN LAYOUT (2 Columns)
   ========================================================================== */
.checkout-main {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 1.5rem 4rem;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 430px;
    gap: 2.5rem;
    align-items: flex-start;
}

@media (max-width: 960px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   CARDS & FORMS (LEFT COLUMN)
   ========================================================================== */
.checkout-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}

.section-heading {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.3px;
}

/* EMAIL CARD */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.checkout-field {
    width: 100%;
    height: 48px;
    padding: 0 1rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.checkout-field:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.field-info-icon {
    position: absolute;
    right: 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.15s;
}

.field-info-icon:hover {
    color: var(--primary-blue);
}

/* ==========================================================================
   PAYMENT METHOD OPTIONS
   ========================================================================== */
.payment-method-row {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
}

.payment-method-row:hover {
    border-color: #94a3b8;
    background: #fafbfc;
}

.payment-method-row.active {
    border-color: var(--primary-blue);
    background: #f8faff;
}

.radio-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    user-select: none;
    width: 100%;
}

.radio-container input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #94a3b8;
    border-radius: 50%;
    margin-right: 0.85rem;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.radio-container input[type="radio"]:checked ~ .radio-custom {
    border-color: var(--primary-blue);
}

.radio-container input[type="radio"]:checked ~ .radio-custom::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-blue);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.method-label {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.75rem;
}

.paypal-logo-img {
    height: 22px;
    width: auto;
}

.method-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-method-header {
    justify-content: space-between;
}

.card-title-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.card-icon {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.card-brand-badges {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.card-brand-badges img {
    height: 20px;
    width: auto;
    object-fit: contain;
}

/* EXPANDED PAYMENT DETAILS */
.payment-details-box {
    margin-top: 1rem;
    margin-bottom: 1.25rem;
    padding-left: 2.25rem;
}

/* GROUPED CARD INPUT (Card Number | MM/YY | CVV) */
.grouped-input-box {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #ffffff;
    margin-bottom: 0.85rem;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.grouped-input-box:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.grouped-cell {
    position: relative;
    display: flex;
    align-items: center;
}

.grouped-cell:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

.card-num-cell {
    flex: 2;
}

.card-exp-cell {
    flex: 1;
}

.card-cvv-cell {
    flex: 1;
}

.nested-field {
    width: 100%;
    height: 48px;
    padding: 0 0.85rem;
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-primary);
    background: transparent;
}

.brand-indicator {
    position: absolute;
    right: 0.85rem;
    color: #1a1f71;
    font-size: 1.35rem;
}

/* DOUBLE-COL ROWS */
.field-row.double-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.select-field {
    appearance: none;
    cursor: pointer;
    background-color: #ffffff;
}

.select-chevron {
    position: absolute;
    right: 1rem;
    pointer-events: none;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* PAYPAL / CRYPTO EXPANDED DETAILS */
.paypal-instruction {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.btn-paypal-sandbox {
    background: #ffc439;
    color: #003087;
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    transition: filter 0.15s ease;
}

.btn-paypal-sandbox:hover {
    filter: brightness(0.95);
}

.crypto-qr-strip {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #f1f5f9;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.crypto-addr-text {
    font-size: 0.85rem;
    word-break: break-all;
    color: #0f172a;
    background: #ffffff;
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
}

/* ==========================================================================
   ORDER SUMMARY CARD (RIGHT COLUMN)
   ========================================================================== */
.order-summary-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.75rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    position: sticky;
    top: 5rem;
}

.summary-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    font-family: 'Outfit', sans-serif;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.85rem;
}

.main-product {
    padding-bottom: 0.75rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.2rem;
}

.product-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.product-original-price {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 500;
}

/* SAVINGS LINE */
.savings-line {
    align-items: center;
    margin-bottom: 1rem;
}

.savings-label-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.savings-badge {
    background: var(--success-badge-bg);
    color: var(--success-green);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill);
}

.savings-amount {
    color: var(--success-green);
    font-weight: 700;
    font-size: 0.95rem;
}

/* TAX LINE */
.tax-line {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.tax-status {
    color: var(--text-muted);
}

/* TOTAL LINE */
.total-line {
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.total-label {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.total-price {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* AUTO RENEWAL TERMS */
.auto-renewal-terms {
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.terms-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
}

.terms-body {
    margin-bottom: 0.6rem;
}

.terms-body a, .terms-agreement a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.terms-body strong {
    color: var(--text-primary);
}

/* BUY NOW BUTTON (Royal Blue Pill) */
.btn-buy-now {
    width: 100%;
    background: var(--primary-blue);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.95rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.btn-buy-now:hover {
    background: var(--primary-blue-hover);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

.btn-buy-now:active {
    transform: translateY(0);
}

/* GUARANTEE BADGE */
.guarantee-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.star-badge-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    font-size: 1.45rem;
}

.star-badge-icon .days-num {
    position: absolute;
    font-size: 0.65rem;
    font-weight: 800;
    color: #dc2626;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ==========================================================================
   SUCCESS RECEIPT MODAL
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1.5rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-receipt-box {
    background: #ffffff;
    border-radius: var(--radius-lg);
    max-width: 520px;
    width: 100%;
    padding: 2.25rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.success-check-icon {
    width: 64px;
    height: 64px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.25rem;
}

.modal-receipt-box h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.receipt-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.receipt-card-body {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    text-align: left;
    margin-bottom: 1.5rem;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.receipt-row:not(:last-child) {
    border-bottom: 1px dashed var(--border-light);
}

.receipt-row .lbl {
    color: var(--text-secondary);
}

.receipt-row .val {
    color: var(--text-primary);
    font-weight: 600;
}

.receipt-row .text-success {
    color: var(--success-green);
    font-size: 1.05rem;
}

.key-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.key-container code {
    background: #ffffff;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    color: var(--primary-blue);
    font-family: monospace;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.key-container button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.2rem;
    transition: color 0.15s;
}

.key-container button:hover {
    color: var(--primary-blue);
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-primary-blue {
    background: var(--primary-blue);
    color: #ffffff;
    text-decoration: none;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.15s;
}

.btn-primary-blue:hover {
    background: var(--primary-blue-hover);
}

.btn-secondary-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-secondary-link:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-bar {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #0f172a;
    color: #ffffff;
    padding: 0.85rem 1.35rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2000;
    font-size: 0.9rem;
    font-weight: 500;
}

.toast-bar.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-bar i {
    color: #4ade80;
}

/* ==========================================================================
   CHECKOUT ACCOUNT AUTH GATE & VERIFICATION
   ========================================================================== */
.auth-account-card {
    border-left: 4px solid #c01818;
    position: relative;
    overflow: hidden;
}
.auth-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}
.auth-badge-mandatory {
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.auth-badge-mandatory.verified {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
}

/* State A: Logged In */
.checkout-user-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: var(--radius-md);
    position: relative;
}
.user-avatar-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #22c55e;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.user-badge-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.verified-label {
    font-size: 0.74rem;
    font-weight: 700;
    color: #15803d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.user-display-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}
.user-display-email {
    font-size: 0.85rem;
    color: #475569;
}
.btn-change-user {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-pill);
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s;
}
.btn-change-user:hover {
    border-color: #c01818;
    color: #c01818;
}

/* State B: Guest Sign Up */
.auth-gate-desc {
    font-size: 0.88rem;
    color: #475569;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    line-height: 1.4;
}
.auth-gate-desc i {
    font-size: 1.1rem;
    color: #c01818;
}
.checkout-mini-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f1f5f9;
    padding: 0.25rem;
    border-radius: var(--radius-md);
    gap: 0.25rem;
    margin-bottom: 1.25rem;
}
.mini-tab {
    border: none;
    background: transparent;
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s;
}
.mini-tab.active {
    background: #ffffff;
    color: #c01818;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.mini-auth-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}
.field-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
}
.nested-pw-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.nested-pw-wrap .checkout-field {
    padding-right: 2.5rem;
    width: 100%;
}
.btn-mini-eye {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.35rem;
}
.mini-auth-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}
.btn-confirm-account {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}
.btn-confirm-account:hover {
    background: #c01818;
    transform: translateY(-1px);
}
.link-external-auth {
    font-size: 0.82rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}
.link-external-auth:hover {
    text-decoration: underline;
}

/* Delivery Status & Email Row in Modal */
.email-delivery-row {
    background: #f8fafc;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin: 0.75rem 0;
}
.delivery-status-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    text-align: right;
}
.delivery-badge {
    font-size: 0.82rem;
    font-weight: 700;
    color: #15803d;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.email-sent-target {
    font-size: 0.8rem;
    color: #64748b;
}
.btn-open-email-preview {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
    margin-top: 0.2rem;
}
.btn-open-email-preview:hover {
    background: #0284c7;
    color: #ffffff;
}

/* ==========================================================================
   SIMULATED EMAIL INBOX PREVIEW MODAL
   ========================================================================== */
.email-inbox-frame {
    background: #ffffff;
    width: 92%;
    max-width: 680px;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
.email-frame-header {
    background: #1e293b;
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.email-window-btns {
    display: flex;
    gap: 6px;
}
.email-window-btns span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.email-window-btns span:nth-child(1) { background: #ef4444; }
.email-window-btns span:nth-child(2) { background: #f59e0b; }
.email-window-btns span:nth-child(3) { background: #10b981; }
.email-window-title {
    font-size: 0.84rem;
    font-weight: 600;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.email-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.email-close-btn:hover {
    color: #ffffff;
}
.email-message-body {
    overflow-y: auto;
    padding: 1.5rem 2rem;
    background: #f8fafc;
}
.email-meta-strip {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 0.85rem 1.15rem;
    font-size: 0.85rem;
    color: #334155;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.email-content-box {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.email-brand-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
}
.email-certified-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: #059669;
    background: #dcfce7;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.email-salutation h3 {
    font-size: 1.25rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
}
.email-salutation p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
}
.email-key-card {
    background: #fff1f2;
    border: 2px dashed #fecdd3;
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    margin: 1.5rem 0;
}
.email-key-header {
    font-size: 0.78rem;
    font-weight: 800;
    color: #be123c;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
}
.email-key-display code {
    font-family: monospace;
    font-size: 1.45rem;
    font-weight: 900;
    color: #9f1239;
    letter-spacing: 0.08em;
    background: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    display: inline-block;
    border: 1px solid #fecdd3;
}
.email-key-sub {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.5rem;
}
.email-instructions {
    margin: 1.5rem 0;
}
.email-instructions h4 {
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 0.6rem;
}
.email-instructions ol {
    padding-left: 1.25rem;
    font-size: 0.88rem;
    color: #475569;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.email-cta-row {
    text-align: center;
    margin: 1.75rem 0 1.25rem;
}
.email-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #c01818;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(192, 24, 24, 0.35);
    transition: all 0.2s;
}
.email-btn-primary:hover {
    background: #991b1b;
    transform: translateY(-1px);
}
.email-footer-legal {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    font-size: 0.74rem;
    color: #94a3b8;
    text-align: center;
}

/* ==========================================================================
   TESTING & SANDBOX MODE BANNER (1$ / FAKE TEST)
   ========================================================================== */
.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.test-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    transition: all 0.2s;
}

.checkout-test-banner {
    background: linear-gradient(135deg, rgba(238, 242, 255, 0.9) 0%, rgba(240, 253, 250, 0.9) 100%);
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.test-banner-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #3730a3;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.test-banner-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-test-action {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.18s ease-in-out;
    text-decoration: none;
}

.btn-test-action.btn-1usd {
    background: #4f46e5;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

.btn-test-action.btn-1usd:hover {
    background: #4338ca;
    transform: translateY(-1px);
}

.btn-test-action.btn-fake {
    background: #059669;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.btn-test-action.btn-fake:hover {
    background: #047857;
    transform: translateY(-1px);
}

.btn-test-action.btn-reset {
    background: #ffffff;
    color: #64748b;
    border-color: #cbd5e1;
}

.btn-test-action.btn-reset:hover {
    background: #f8fafc;
    color: #0f172a;
}

.test-card-quick-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.78rem;
    color: #475569;
}

.btn-autofill-card {
    background: none;
    border: none;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.78rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.15s;
}

.btn-autofill-card:hover {
    color: #1d4ed8;
    text-decoration: underline;
}


