/* One Page Checkout Modern Styles */
:root {
    --checkout-primary: #0d6efd;
    --checkout-primary-700: #1b5fb3;
    --checkout-border: #e9ecef;
    --checkout-bg: #f8f9fa;
    --checkout-text: #212529;
    --checkout-muted: #6c757d;
    --checkout-success: #198754;
    --checkout-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --checkout-shadow-md: 0 12px 28px rgba(15, 23, 42, 0.12);
    --checkout-radius: 12px;
    --upsell-ink: #0f172a;
    --upsell-muted: #64748b;
    --upsell-soft: #f8fbff;
    --upsell-soft-border: #d8e6f7;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

body {
    background-color: var(--checkout-bg);
}

.checkout-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 15px;
}

.container-checkout {
    max-width: 1240px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: start;
}

.checkout-left {
    min-width: 0;
}

.checkout-right {
    position: sticky;
    top: 100px;
    align-self: start;
}

.checkout-navbar {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-bottom: 1px solid var(--checkout-border);
}

/* Checkout Sections */
.checkout-section {
    background: #fff;
    border-radius: var(--checkout-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--checkout-shadow-md);
    display: block;
    animation: fadeIn 0.4s ease;
}

.checkout-card {
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.domain-bind-card {
    border-color: #dbe7fb !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.domain-bind-card .btn-group .btn {
    font-size: 0.86rem;
    font-weight: 700;
}

.domain-bind-card[data-linked="1"] {
    background: #f4fff7;
    border-color: #badbcc !important;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--checkout-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-section-kicker {
    margin: -0.55rem 0 1rem;
    color: #5b6b84;
    font-size: 0.88rem;
    line-height: 1.45;
}

.guest-checkout-intro {
    background: linear-gradient(135deg, #f7fbff 0%, #eef5ff 100%);
    border: 1px solid #d6e5fb;
}

.guest-checkout-shell .guest-auth-panel {
    border: 1px solid #d7e5fb;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.guest-auth-title {
    margin: 0 0 .45rem;
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 800;
}

.guest-checkout-empty-actions .btn {
    min-width: 168px;
}

.guest-order-summary .guest-summary-meta span:last-child {
    font-weight: 600;
}

#guest-summary-empty-note {
    border-style: dashed;
}

#openCheckoutAuthBtn[aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.65;
    box-shadow: none;
}

.guest-progress {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.guest-progress-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    border: 1px solid #cfe0fb;
    background: #fff;
    color: #36506f;
    padding: .28rem .72rem;
    font-size: .74rem;
    font-weight: 700;
}

.guest-progress-chip.active {
    border-color: #1d4ed8;
    background: #eaf1ff;
    color: #1e40af;
}

/* Cart Summary Sidebar */
.order-summary {
    background: #fff;
    border-radius: var(--checkout-radius);
    padding: 1.5rem;
    box-shadow: var(--checkout-shadow-md);
    border: 1px solid #e8eef8;
}

.checkout-coupon-box {
    background: #f8fbff;
    border: 1px solid #dbe7fb;
    border-radius: 10px;
    padding: 0.7rem;
}

.summary-coupon-item {
    align-items: flex-start;
}

.checkout-items-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.checkout-item-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid #e4edf9;
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.checkout-item-card:hover {
    transform: translateY(-2px);
    border-color: #c9dcf7;
    box-shadow: 0 16px 28px rgba(13, 110, 253, 0.16);
}

.checkout-item-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 1rem 1.1rem 0.8rem;
    border-bottom: 1px solid #edf2fb;
}

.checkout-item-title {
    margin: 0;
    color: #0f172a;
    font-size: 1.1rem;
    line-height: 1.2;
    font-weight: 900;
}

.checkout-item-card-body {
    padding: 0.9rem 1.1rem 1rem;
}

.checkout-item-price-wrap {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 0.75rem;
}

.checkout-item-price {
    font-size: 1.45rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.1;
}

.checkout-item-cycle {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 700;
}

.checkout-benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.34rem;
}

.checkout-benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.84rem;
    color: #334155;
}

.checkout-benefits-list i {
    color: #059669;
    font-size: 0.88rem;
    flex-shrink: 0;
}

.checkout-item-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 0.42rem;
}

.checkout-item-meta .badge {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.checkout-remove-item-btn {
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none !important;
    padding: 0;
}

.checkout-inline-addons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.checkout-inline-addon-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #f2f7ff;
    border: 1px solid #dce9fa;
    color: #0f172a;
    border-radius: 999px;
    padding: 0.22rem 0.65rem;
    font-size: 0.76rem;
    font-weight: 700;
}

.checkout-inline-addon-pill small {
    color: #64748b;
    font-weight: 600;
}

.checkout-empty-state {
    border: 1px dashed #c9d9f2;
    border-radius: 15px;
    padding: 2rem 1rem;
    text-align: center;
    background: linear-gradient(180deg, #f9fbff 0%, #f3f8ff 100%);
}

.checkout-empty-state-icon {
    font-size: 2.4rem;
    color: #7ea8dd;
    margin-bottom: 0.7rem;
}

.checkout-empty-state h4 {
    margin: 0 0 0.4rem;
    color: #0f172a;
    font-weight: 900;
}

.checkout-empty-state p {
    color: #64748b;
    margin: 0 0 0.95rem;
    font-size: 0.92rem;
}

.checkout-item-card-guest .checkout-item-card-head {
    border-bottom: 0;
    padding-bottom: 0.35rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--checkout-border);
}

.summary-line-item {
    margin-bottom: 0.55rem;
    padding-bottom: 0.55rem;
    font-size: 0.88rem;
}

.summary-line-item span:first-child {
    max-width: 72%;
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-total {
    font-size: 26px;
    font-weight: 700;
    color: var(--checkout-text);
}

.checkout-total-savings {
    font-size: 0.85rem;
    color: #10b981;
    font-weight: 600;
    text-align: right;
    margin-top: -0.25rem;
    margin-bottom: 0.5rem;
}

.confirm-btn {
    transition: all 0.2s ease;
}

.confirm-btn:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

#checkout-subtotal.is-updated,
#checkout-total.is-updated,
#checkout-submit-total.is-updated {
    animation: totalPulse 0.45s ease;
}

@keyframes totalPulse {
    0% {
        color: #0f172a;
        transform: scale(1);
    }

    45% {
        color: var(--checkout-primary);
        transform: scale(1.045);
    }

    100% {
        color: inherit;
        transform: scale(1);
    }
}

.checkout-inline-notice {
    position: sticky;
    top: 10px;
    z-index: 20;
}

/* Payment Methods */
.payment-method-card {
    border: 2px solid var(--checkout-border);
    border-radius: var(--checkout-radius);
    padding: 1rem 1.05rem;
    cursor: pointer;
    transition: all 0.24s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
    background: #fff;
}

.payment-method-card:hover {
    border-color: #bed4f6;
    background-color: #f8faff;
    transform: translateY(-1px);
}

.payment-method-card.selected {
    border-color: var(--checkout-primary);
    background-color: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.payment-method-card .form-check-input {
    margin-top: 0.2rem;
}

.payment-method-icon {
    width: 58px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e8edf5;
    padding: 4px 7px;
}

.payment-method-content {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 12px;
    row-gap: 2px;
    width: 100%;
}

.payment-method-content .payment-method-icon {
    grid-row: 1 / 3;
}

.payment-method-content .fw-bold {
    font-size: 1rem;
    color: #0f172a;
    line-height: 1.25;
}

.payment-method-content .text-muted {
    grid-column: 2;
    margin-top: 0 !important;
    line-height: 1.3;
}

/* Form Controls */
.form-control,
.form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

/* Buttons */
.btn-checkout {
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(13, 110, 253, 0.28);
    outline-offset: 2px;
    border-radius: 8px;
}

/* Upsell (One Checkout) */
.upsell-section {
    margin-top: 2rem;
    padding-top: 0.25rem;
}

.upsell-main-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--upsell-ink);
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e9eff7;
}

.upsell-main-title i {
    color: var(--checkout-primary-700);
}

.upsell-block {
    margin-bottom: 1.25rem;
    background: #fff;
    border: 1px solid var(--checkout-border);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: var(--checkout-shadow);
    transition: box-shadow .24s ease, border-color .24s ease, transform .24s ease;
}

.upsell-block:hover {
    border-color: #cadef7;
    box-shadow: var(--checkout-shadow-md);
    transform: translateY(-1px);
}

.upsell-block-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.upsell-block-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.06rem;
    flex-shrink: 0;
}

.email-gradient {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.hosting-gradient {
    background: linear-gradient(135deg, #0f766e, #0d9488);
}

.addon-gradient {
    background: linear-gradient(135deg, #b45309, #d97706);
}

.upsell-block-title {
    margin: 0;
    color: var(--upsell-ink);
    font-size: 1rem;
    font-weight: 800;
}

.upsell-block-subtitle {
    margin: 0.08rem 0 0;
    color: var(--upsell-muted);
    font-size: 0.8rem;
}

.plan-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--checkout-border);
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--checkout-shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.plan-card:hover {
    transform: translateY(-4px);
    border-color: #bcd6f6;
    box-shadow: 0 16px 34px rgba(13, 110, 253, 0.18);
}

.plan-card.recommended {
    border: 2px solid var(--checkout-primary);
    box-shadow: 0 16px 34px rgba(13, 110, 253, 0.2);
}

.plan-ribbon {
    position: absolute;
    top: 13px;
    right: -35px;
    transform: rotate(45deg);
    z-index: 2;
}

.plan-ribbon span {
    display: block;
    color: #fff;
    background: linear-gradient(135deg, var(--checkout-primary), #1a73e8);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 5px 45px;
}

.plan-card-top {
    padding: 1.1rem 1.1rem 0.5rem;
}

.plan-name {
    margin: 0 0 .2rem;
    font-size: 1.04rem;
    font-weight: 900;
    color: var(--upsell-ink);
}

.plan-desc {
    margin: 0;
    color: var(--upsell-muted);
    font-size: .8rem;
    line-height: 1.4;
}

.plan-card-specs {
    padding: .4rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.plan-card-specs .spec {
    display: flex;
    align-items: center;
    gap: .45rem;
    color: #334155;
    font-size: .84rem;
}

.plan-card-specs .spec i {
    color: var(--checkout-primary-700);
    width: 16px;
    text-align: center;
}

.plan-card-specs .spec strong {
    color: var(--upsell-ink);
}

.plan-card-features {
    list-style: none;
    margin: 0;
    padding: .3rem 1.1rem 0;
    flex: 1;
}

.plan-card-features li {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .2rem 0;
    font-size: .79rem;
    color: #334155;
}

.plan-card-features li i {
    color: #059669;
    font-size: .78rem;
    flex-shrink: 0;
}

.plan-card-pricing {
    margin-top: .75rem;
    border-top: 1px solid #edf2f8;
    padding: .95rem 1.1rem .35rem;
    text-align: center;
}

.plan-price-value {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--upsell-ink);
    line-height: 1.1;
}

.plan-price-value small {
    font-size: .68em;
    font-weight: 700;
    color: var(--upsell-muted);
}

.plan-price-label {
    display: block;
    margin-top: .1rem;
    color: var(--upsell-muted);
    font-size: .74rem;
}

.plan-action-btn {
    margin: .9rem 1.1rem 1.1rem;
    border-radius: 11px;
    font-weight: 800;
    padding: .68rem .9rem;
}

.addon-card {
    border: 1px solid var(--checkout-border);
    border-radius: 14px;
    padding: 1rem;
    background: #fff;
    transition: all .25s ease;
}

.addon-card:hover {
    transform: translateY(-2px);
    border-color: #bcd6f6;
    box-shadow: 0 10px 24px rgba(13, 110, 253, 0.12);
}

.addon-card-body {
    min-height: 62px;
}

.addon-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: #eaf2ff;
    color: var(--checkout-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.08rem;
    margin-bottom: .55rem;
}

.addon-name {
    margin: 0 0 .2rem;
    font-size: .92rem;
    font-weight: 800;
    color: var(--upsell-ink);
}

.addon-desc {
    margin: 0;
    font-size: .78rem;
    color: var(--upsell-muted);
}

.addon-card-action {
    margin-top: .7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.addon-price {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .24rem .7rem;
    background: var(--upsell-soft);
    border: 1px solid var(--upsell-soft-border);
    color: var(--checkout-primary);
    font-size: .82rem;
    font-weight: 900;
}

.addon-price small {
    font-size: .72em;
    color: var(--upsell-muted);
    margin-left: .2rem;
}

.addon-add-btn {
    border-radius: 9px;
    font-size: .78rem;
    font-weight: 800;
    padding: .33rem .75rem;
    white-space: nowrap;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 2px solid #d8e3f1;
    border-radius: 12px;
    overflow: hidden;
    max-width: 210px;
    margin: 0 auto;
    background: #fff;
}

.qty-stepper-btn {
    width: 46px;
    height: 46px;
    border: none;
    background: #f8fbff;
    color: var(--checkout-primary);
    font-size: 1.08rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .15s ease;
}

.qty-stepper-btn:hover {
    background: var(--checkout-primary);
    color: #fff;
}

.qty-stepper-btn:active {
    transform: scale(0.97);
}

.qty-stepper-input {
    width: 82px;
    height: 46px;
    border: none;
    border-left: 2px solid #d8e3f1;
    border-right: 2px solid #d8e3f1;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--upsell-ink);
    outline: none;
}

.qty-stepper-input::-webkit-outer-spin-button,
.qty-stepper-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-summary-box {
    background: var(--upsell-soft);
    border: 1px solid var(--upsell-soft-border);
    border-radius: 12px;
    padding: .95rem;
}

.price-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .6rem;
    padding: .26rem 0;
    font-size: .85rem;
    color: #334155;
}

.price-summary-divider {
    border-top: 1px dashed #d7e3f2;
    margin: .5rem 0;
}

.price-summary-row.total {
    font-size: 1rem;
    font-weight: 900;
    color: var(--upsell-ink);
}

.price-summary-row.total span:last-child {
    color: var(--checkout-primary-700);
    font-size: 1.08rem;
}

#emailQuantityModal .modal-content {
    border-radius: 16px;
}

#emailQuantityModal .modal-body {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .checkout-step::after {
        display: none;
    }

    .checkout-section {
        padding: 1.5rem;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .checkout-right {
        position: static;
    }

    .order-summary {
        margin-top: 0.5rem;
    }

    .checkout-item-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkout-item-price-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .checkout-item-price {
        font-size: 1.24rem;
    }

    .payment-method-content {
        display: block;
    }

    .payment-method-icon {
        margin-bottom: 6px;
    }

    .plan-card {
        margin-bottom: .8rem;
    }

    .addon-card {
        text-align: left;
    }
}

/* Premium visual polish overrides (safe: visual only) */
:root {
    --checkout-primary: #1d4ed8;
    --checkout-primary-700: #1e3a8a;
    --checkout-border: #dbe5f4;
    --checkout-bg: #f3f7fd;
    --checkout-text: #0f172a;
    --checkout-muted: #617089;
    --checkout-success: #15803d;
    --checkout-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    --checkout-shadow-md: 0 20px 44px rgba(15, 23, 42, 0.12);
    --checkout-radius: 18px;
    --checkout-radius-sm: 12px;
}

body {
    background:
        radial-gradient(1200px 380px at 20% -10%, rgba(29, 78, 216, 0.1), transparent 65%),
        radial-gradient(760px 320px at 88% 0%, rgba(2, 132, 199, 0.08), transparent 62%),
        var(--checkout-bg);
    color: var(--checkout-text);
}

.checkout-container {
    max-width: 1200px;
    padding: 2.2rem 18px;
}

.checkout-grid {
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 26px;
}

.checkout-section,
.order-summary {
    border: 1px solid #dce7f8;
    border-radius: var(--checkout-radius);
}

.checkout-section {
    padding: 1.85rem;
    box-shadow: var(--checkout-shadow-md);
}

.section-title {
    font-size: 1.34rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 1.2rem;
    padding-bottom: 0.95rem;
    border-bottom: 1px solid #e5edf8;
}

.section-title i {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eaf1ff;
    color: var(--checkout-primary);
    font-size: 0.98rem;
}

.checkout-container .btn {
    border-radius: var(--checkout-radius-sm);
    font-weight: 700;
}

.checkout-item-card {
    position: relative;
    border-color: #d8e5f8;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
}

.checkout-item-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #1d4ed8 0%, #0ea5e9 100%);
    opacity: 0.9;
}

.checkout-item-card-head {
    padding: 1.05rem 1.15rem 0.9rem;
    border-bottom-color: #e8eef8;
}

.checkout-item-card-body {
    padding: 0.95rem 1.15rem 1.08rem;
}

.checkout-item-title {
    font-size: 1.17rem;
    letter-spacing: -0.01em;
}

.checkout-item-meta {
    margin-top: 0.5rem;
    gap: 0.5rem;
}

.checkout-item-meta .badge {
    border-radius: 999px;
    border-width: 1px !important;
    padding: 0.4rem 0.65rem;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
}

.checkout-item-meta .badge:first-of-type {
    background: #eff4ff !important;
    border-color: #d6e4ff !important;
    color: #1e40af !important;
}

.checkout-item-meta .badge:nth-of-type(2) {
    background: #e8fbf1 !important;
    border-color: #bcead0 !important;
    color: #166534 !important;
}

.checkout-period-meta {
    display: inline-flex;
    align-items: center;
    background: #f4f7fc;
    border: 1px solid #e4eaf4;
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    font-weight: 700 !important;
    color: #53627a !important;
}

.checkout-remove-item-btn {
    border: 1px solid #f4d4d7;
    background: #fff7f7;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #b42318 !important;
    padding: 0.33rem 0.55rem !important;
    min-width: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}

.checkout-remove-item-btn:hover {
    background: #fdeced;
    border-color: #efb9be;
    color: #991b1b !important;
}

.checkout-item-price-wrap {
    margin-bottom: 0.82rem;
}

.checkout-item-price {
    font-size: 1.62rem;
    letter-spacing: -0.02em;
}

.checkout-item-cycle {
    display: inline-flex;
    align-items: center;
    padding: 0.26rem 0.62rem;
    border-radius: 999px;
    background: #f1f5fb;
    border: 1px solid #dde6f5;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.checkout-period-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    margin: 0.1rem 0 0.9rem;
    background: #f7faff;
    border: 1px solid #d4e3fb;
    border-radius: 999px;
    padding: 0.3rem;
}

.checkout-period-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #c6d8f8;
    background: #fff;
    color: #1e3a8a;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.checkout-period-btn:hover:not(:disabled) {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

.checkout-period-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.checkout-period-btn.is-loading {
    color: transparent !important;
    pointer-events: none;
    position: relative;
}

.checkout-period-btn.is-loading::after {
    content: "";
    width: 15px;
    height: 15px;
    border: 2px solid rgba(29, 78, 216, 0.24);
    border-top-color: #1d4ed8;
    border-radius: 50%;
    animation: checkoutSpin 0.75s linear infinite;
    position: absolute;
    inset: 0;
    margin: auto;
}

.checkout-period-value {
    min-width: 86px;
    text-align: center;
    font-size: 0.84rem;
    font-weight: 800;
    color: #1f2f47;
}

.checkout-benefits-list {
    border-top: 1px dashed #deebfb;
    margin-top: 0.1rem;
    padding-top: 0.7rem;
}

.checkout-benefits-list li {
    font-size: 0.82rem;
}

.checkout-benefits-list i {
    width: 16px;
}

.domain-linked-label {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background: #ecfdf3;
    border: 1px solid #b7ebcd;
    border-radius: 999px;
    padding: 0.26rem 0.58rem;
}

.domain-missing-label {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 0.26rem 0.58rem;
    color: #b45309 !important;
}

.checkout-inline-addon-pill {
    background: #edf4ff;
    border-color: #cfe1ff;
    color: #1e3a8a;
    border-radius: 999px;
    padding: 0.3rem 0.68rem;
}

.checkout-inline-addon-pill small {
    color: #546884;
}

.checkout-domain-addons {
    margin-top: 0.95rem !important;
    border: 1px solid #dbe7fb;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff 0%, #f3f8ff 100%);
    padding: 0.75rem;
}

.checkout-domain-addons-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1f3b75;
    margin-bottom: 0.62rem;
}

.checkout-domain-addon-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 0.6rem;
}

.checkout-domain-addon-option {
    position: relative;
    border: 1px solid #d4e2f9;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    text-align: left;
    padding: 0.66rem 0.76rem;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-height: 76px;
    transition: all 0.2s ease;
}

.checkout-domain-addon-option .addon-title {
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
}

.checkout-domain-addon-option .addon-price {
    font-size: 0.76rem;
    font-weight: 800;
    color: #1e40af;
}

.checkout-domain-addon-option:hover:not(:disabled) {
    border-color: #adc8f7;
    background: #f8fbff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.14);
}

.checkout-domain-addon-option.selected {
    border-color: #1d4ed8;
    background: linear-gradient(180deg, #eff5ff 0%, #f7faff 100%);
    box-shadow: inset 0 0 0 1px rgba(29, 78, 216, 0.18), 0 10px 20px rgba(29, 78, 216, 0.14);
}

.checkout-domain-addon-option.selected::before {
    content: "Selecionado";
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.57rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1d4ed8;
    background: #e8efff;
    border: 1px solid #c8dafd;
    border-radius: 999px;
    padding: 0.08rem 0.36rem;
}

.checkout-domain-addon-option:disabled {
    opacity: 1;
}

.checkout-domain-addon-option.is-loading {
    pointer-events: none;
    opacity: 0.8;
}

.checkout-domain-addon-option.is-loading::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(29, 78, 216, 0.24);
    border-top-color: #1d4ed8;
    animation: checkoutSpin 0.75s linear infinite;
}

.order-summary {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 1.3rem 1.25rem 1.35rem;
}

.order-summary::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg, #1d4ed8 0%, #0ea5e9 100%);
}

.order-summary h5 {
    margin-bottom: 1rem !important;
    padding-bottom: 0.85rem !important;
    border-bottom-color: #e5edf8 !important;
    font-size: 1.06rem;
    font-weight: 800 !important;
    color: #0f172a;
}

.summary-item {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom-color: #dfe8f5;
}

.summary-line-item {
    margin-bottom: 0.42rem;
    padding: 0.44rem 0.46rem;
    border-bottom: 0;
    border-radius: 10px;
    background: #f7faff;
    font-size: 0.84rem;
}

.summary-coupon-item {
    margin-bottom: 0.72rem;
    padding-bottom: 0.72rem;
}

.summary-total {
    color: #0b3ab0;
    font-size: 1.42rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

#checkout-total {
    color: #0b3ab0;
}

#checkout-subtotal,
#checkout-discount {
    font-weight: 800 !important;
}

.checkout-coupon-box {
    border-radius: 12px;
    border: 1px solid #d6e3fb;
    background: #f6f9ff;
    padding: 0.72rem;
}

.checkout-coupon-box .form-label {
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.66rem !important;
}

#couponCodeInput {
    border-color: #c9daf8;
    font-size: 0.83rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding-top: 0.52rem;
    padding-bottom: 0.52rem;
}

#couponCodeInput::placeholder {
    color: #94a3b8;
}

#applyCouponBtn {
    border-color: #b7cdf6;
    color: #1d4ed8;
    font-weight: 800;
    background: #edf4ff;
}

#applyCouponBtn:hover:not(:disabled) {
    border-color: #1d4ed8;
    color: #fff;
    background: #1d4ed8;
}

#couponFeedback {
    margin-top: 0.38rem;
    font-size: 0.72rem;
}

#checkout-coupon-badge {
    border-radius: 999px;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.upsell-section {
    margin-top: 2.05rem;
}

.upsell-main-title {
    font-size: 1.1rem;
    margin-bottom: 0.85rem;
    border-bottom-width: 1px;
    border-bottom-color: #dbe7fb;
}

.upsell-block {
    border-radius: 14px;
    border-color: #dbe6f7;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    padding: 0.9rem;
}

.upsell-block-header {
    margin-bottom: 0.7rem;
}

.upsell-block-subtitle {
    font-size: 0.76rem;
}

.upsell-block .row {
    --bs-gutter-x: 0.68rem;
    --bs-gutter-y: 0.68rem;
}

.plan-card {
    border-radius: 14px;
    border-color: #dbe6f7;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}

.plan-card:hover {
    transform: translateY(-3px);
}

.plan-card.recommended {
    border-color: #1d4ed8;
    box-shadow: 0 16px 30px rgba(29, 78, 216, 0.2);
}

.plan-ribbon span {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.plan-card-top {
    padding: 0.95rem 0.95rem 0.38rem;
}

.plan-name {
    font-size: 0.97rem;
}

.plan-desc {
    font-size: 0.75rem;
}

.plan-card-specs {
    padding: 0.3rem 0.95rem;
    gap: 0.28rem;
}

.plan-card-specs .spec {
    font-size: 0.79rem;
}

.plan-card-features {
    padding: 0.24rem 0.95rem 0;
}

.plan-card-features li {
    font-size: 0.75rem;
    padding: 0.14rem 0;
}

.plan-card-pricing {
    padding: 0.78rem 0.95rem 0.26rem;
}

.plan-price-value {
    font-size: 1.32rem;
}

.plan-action-btn {
    margin: 0.72rem 0.95rem 0.95rem;
    padding: 0.58rem 0.85rem;
    font-size: 0.82rem;
    border-radius: 10px;
}

.addon-card {
    border-color: #dbe6f7;
    border-radius: 12px;
    padding: 0.8rem;
}

.addon-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.addon-name {
    font-size: 0.86rem;
}

.addon-desc {
    font-size: 0.75rem;
    line-height: 1.35;
}

.addon-card-action {
    margin-top: 0.55rem;
}

.addon-add-btn {
    border-radius: 10px;
    font-weight: 800;
}

#emailQuantityModal .modal-header {
    background: linear-gradient(130deg, #1d4ed8 0%, #2563eb 52%, #0ea5e9 100%) !important;
}

#step2 .alert {
    border: 1px solid #d6e4fb;
    border-radius: 12px;
    font-size: 0.85rem;
}

#step2 .alert-info {
    background: #f2f7ff;
    color: #1e3a8a;
}

#step2 .alert-success {
    background: #ecfdf3;
    color: #166534;
    border-color: #bcead0;
}

#step2 .card {
    border: 1px solid #dbe6f8;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

#step2 .card-header {
    border-bottom: 1px solid #e5edf8;
    background: linear-gradient(180deg, #f7faff 0%, #f2f7ff 100%) !important;
    font-size: 0.87rem;
    font-weight: 800 !important;
    color: #1e3a8a;
    padding: 0.8rem 0.95rem;
}

#step2 .card-body {
    padding: 0.9rem 0.95rem;
}

#step2 .form-label {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #334155;
    font-weight: 700;
}

#step2 .form-control,
#step2 .form-select {
    border-color: #d4e0f3;
    border-radius: 10px;
    background-color: #fff;
}

#step2 .form-control:focus,
#step2 .form-select:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}

#step2 .btn-group .btn {
    border-radius: 10px !important;
    border-color: #c7d8f6;
    color: #1e3a8a;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.46rem 0.55rem;
}

#step2 .btn-check:checked+.btn {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.16);
}

#step2 .checkout-save-domain-btn,
#saveEppInlineBtn {
    border-radius: 10px;
    font-weight: 800;
    padding-inline: 0.95rem;
}

#step3 h5 {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.checkout-readiness-card {
    border: 1px solid #dbe7fb;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    padding: 0.85rem 0.95rem;
}

.checkout-readiness-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.42rem;
    margin-bottom: 0.55rem;
}

.checkout-readiness-title {
    color: #1e3a8a;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.checkout-readiness-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.checkout-readiness-list li {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    font-size: 0.85rem;
    line-height: 1.2;
    font-weight: 700;
    color: #6b7280;
}

.checkout-readiness-list li .bi {
    color: #9ca3af;
}

.checkout-readiness-list li.is-ready {
    color: #166534;
}

.checkout-readiness-list li.is-ready .bi {
    color: #16a34a;
}

.checkout-readiness-list li.is-pending {
    color: #b45309;
}

.checkout-readiness-list li.is-pending .bi {
    color: #d97706;
}

.checkout-readiness-foot {
    margin-top: 0.55rem;
    color: #5b6b84;
    font-size: 0.77rem;
    line-height: 1.35;
}

.checkout-submit-wrap {
    gap: 0.6rem;
}

.checkout-submit-meta {
    display: grid;
    gap: 0.18rem;
    text-align: right;
    width: 100%;
    max-width: 560px;
}

.checkout-submit-state {
    font-size: 0.82rem;
    font-weight: 800;
}

.checkout-submit-state.is-pending {
    color: #b45309;
}

.checkout-submit-state.is-ready {
    color: #166534;
}

.checkout-submit-hint {
    color: #64748b;
    font-size: 0.74rem;
    line-height: 1.35;
}

.checkout-trust-copy {
    display: grid;
    gap: 0.3rem;
    margin-top: 0.7rem;
}

.checkout-trust-line {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #5b6b84;
    font-size: 0.76rem;
    line-height: 1.3;
    font-weight: 600;
}

.payment-method-card {
    position: relative;
    border: 1px solid #d9e4f6;
    border-radius: 14px;
    padding: 0.95rem 1rem;
    margin-bottom: 0.78rem;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.payment-method-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    pointer-events: none;
    transition: border-color 0.22s ease;
}

.payment-method-card:hover {
    border-color: #bfd3f5;
    background: #f8fbff;
}

.payment-method-card.selected {
    border-color: #1d4ed8;
    background: #f0f6ff;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14), 0 12px 22px rgba(29, 78, 216, 0.12);
}

.payment-method-card.selected::before {
    border-color: rgba(29, 78, 216, 0.2);
}

.payment-method-card .form-check-input {
    border-color: #9fb8e6;
    box-shadow: none;
}

.payment-method-card .form-check-input:checked {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.payment-method-icon {
    border-color: #d5e1f5;
    background: #fff;
}

#step3 .form-check.mb-4 {
    border-radius: 12px !important;
    border: 1px solid #dbe7fb !important;
    background: #f7faff !important;
}

#btnFinalizar {
    border: 0;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #0ea5e9 100%);
    color: #fff;
    box-shadow: 0 12px 26px rgba(29, 78, 216, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

#btnFinalizar.is-pending {
    filter: saturate(0.92);
}

#btnFinalizar.is-ready {
    filter: saturate(1.04);
}

#btnFinalizar:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(29, 78, 216, 0.34);
    filter: brightness(1.02);
}

#btnFinalizar:disabled {
    opacity: 0.8;
}

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

@media (max-width: 1024px) {
    .checkout-grid {
        grid-template-columns: minmax(0, 1fr) 350px;
        gap: 20px;
    }

    .checkout-section {
        padding: 1.6rem;
    }
}

@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .checkout-right {
        position: static;
    }

    .checkout-container {
        padding: 1.25rem 14px;
    }

    .checkout-section {
        padding: 1.2rem;
        border-radius: 15px;
    }

    .order-summary {
        border-radius: 15px;
    }

    .section-title {
        font-size: 1.14rem;
        margin-bottom: 1rem;
    }

    .checkout-item-card-head {
        padding: 0.9rem 0.9rem 0.68rem;
    }

    .checkout-item-card-body {
        padding: 0.8rem 0.9rem 0.9rem;
    }

    .checkout-item-price {
        font-size: 1.35rem;
    }

    .checkout-remove-item-btn {
        width: 100%;
        justify-content: center;
    }

    .checkout-domain-addon-list {
        grid-template-columns: 1fr;
    }

    .summary-line-item {
        padding: 0.42rem 0.42rem;
    }

    #step2 .btn-group {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.42rem;
    }

    #step2 .btn-group .btn {
        width: 100%;
    }

    .payment-method-card {
        gap: 11px;
    }

    .checkout-readiness-head {
        align-items: flex-start;
    }

    .checkout-readiness-list li {
        font-size: 0.82rem;
    }

    .checkout-submit-wrap {
        align-items: stretch !important;
    }

    .checkout-submit-meta {
        text-align: left;
    }

    #btnFinalizar {
        width: 100%;
    }
}

/* Premium cycle/period selector refinement */
.checkout-item-pricing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.92rem;
    align-items: start;
}

.checkout-price-stack {
    min-width: 0;
}

.checkout-item-price {
    font-size: 1.72rem;
}

.checkout-item-price.is-updated {
    animation: itemPricePop 0.34s ease;
}

.checkout-item-price-secondary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    min-height: 1.2rem;
    margin-top: 0.16rem;
}

.checkout-item-old-price {
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.checkout-item-saving-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 0.12rem 0.5rem;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.checkout-item-renewal-note {
    margin-top: 0.24rem;
    color: #5b6c86;
    font-size: 0.76rem;
    font-weight: 600;
}

.checkout-item-renewal-note.is-updated {
    animation: renewalFade 0.32s ease;
}

.checkout-item-cycle {
    margin-bottom: 0.75rem;
}

.checkout-period-panel {
    min-width: 295px;
    background: #f7faff;
    border: 1px solid #d5e4fb;
    border-radius: 14px;
    padding: 0.62rem;
}

.checkout-period-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #1e3a8a;
    font-size: 0.71rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.checkout-period-label i {
    color: #2563eb;
    font-size: 0.78rem;
}

.checkout-period-controls {
    display: grid;
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    gap: 0.42rem;
    border: 0;
    padding: 0;
    background: transparent;
    margin: 0;
}

.checkout-period-btn {
    width: auto;
    height: auto;
    min-height: 52px;
    border-radius: 12px;
    border: 1px solid #c7d9f8;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.08rem;
    padding: 0.35rem 0.22rem;
    text-align: center;
    color: #1e3a8a;
}

.checkout-period-btn .period-years {
    font-size: 1rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.checkout-period-btn .period-unit {
    font-size: 0.62rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #64748b;
}

.checkout-period-btn:hover:not(:disabled) {
    color: #1d4ed8;
    border-color: #9fc0f5;
    background: #f5f9ff;
    transform: translateY(-1px);
}

.checkout-period-btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
}

.checkout-period-btn.is-selected {
    border-color: #1d4ed8;
    background: linear-gradient(180deg, #eaf1ff 0%, #f4f8ff 100%);
    color: #1e3a8a;
    box-shadow: inset 0 0 0 1px rgba(29, 78, 216, 0.2);
}

.checkout-period-btn.is-selected .period-unit {
    color: #1d4ed8;
}

.checkout-period-btn:disabled {
    opacity: 1;
    cursor: default;
}

.checkout-item-card.period-updating .checkout-item-price,
.checkout-item-card.period-updating .checkout-item-renewal-note,
.checkout-item-card.period-updating .checkout-item-cycle {
    opacity: 0.66;
}

.checkout-item-card.period-updating .checkout-period-panel {
    position: relative;
}

.checkout-item-card.period-updating .checkout-period-panel::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.25);
    border-top-color: #2563eb;
    animation: checkoutSpin 0.7s linear infinite;
}

.summary-line-name {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    min-width: 0;
}

.summary-line-title {
    font-weight: 700;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.summary-line-period {
    color: #64748b;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

@keyframes itemPricePop {
    0% {
        transform: translateY(2px);
        opacity: 0.66;
    }

    60% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes renewalFade {
    0% {
        opacity: 0.5;
        transform: translateY(2px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .checkout-item-pricing-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .checkout-period-panel {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .checkout-item-price {
        font-size: 1.46rem;
    }

    .checkout-period-panel {
        padding: 0.55rem;
    }

    .checkout-period-controls {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .checkout-period-btn {
        min-height: 46px;
        border-radius: 10px;
    }

    .checkout-period-btn .period-years {
        font-size: 0.93rem;
    }
}

.checkout-quantity-panel {
    margin-top: 0.72rem;
    padding: 0.68rem 0.74rem;
    border: 1px solid #d8e4f7;
    border-radius: 13px;
    background: linear-gradient(180deg, #f9fbff 0%, #f5f8ff 100%);
}

.checkout-quantity-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #3b4d6b;
    margin-bottom: 0.45rem;
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.checkout-quantity-label i {
    color: #2563eb;
}

.checkout-quantity-controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid #bfd3f3;
    background: #fff;
    border-radius: 11px;
    overflow: hidden;
}

.checkout-qty-btn {
    width: 36px;
    height: 34px;
    border: 0;
    background: #f3f7ff;
    color: #1e3a8a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, color 0.18s ease;
}

.checkout-qty-btn:hover:not(:disabled) {
    background: #1d4ed8;
    color: #fff;
}

.checkout-qty-btn:disabled {
    opacity: 0.55;
    cursor: default;
}

.checkout-qty-input {
    width: 78px;
    border: 0;
    border-left: 1px solid #d5e2f5;
    border-right: 1px solid #d5e2f5;
    height: 34px;
    text-align: center;
    font-size: 0.96rem;
    font-weight: 800;
    color: #0f172a;
    background: #fff;
}

.checkout-qty-input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.checkout-qty-input::-webkit-outer-spin-button,
.checkout-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.checkout-quantity-hint {
    margin-top: 0.44rem;
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 700;
}

.checkout-item-card.quantity-updating .checkout-item-price,
.checkout-item-card.quantity-updating .checkout-item-renewal-note,
.checkout-item-card.quantity-updating .checkout-item-cycle,
.checkout-item-card.quantity-updating .checkout-quantity-panel {
    opacity: 0.66;
}

.checkout-legal-modal-content {
    border-radius: 16px;
    overflow: hidden;
}

.checkout-legal-modal-frame {
    width: 100%;
    min-height: 70vh;
    border: 0;
    display: block;
    background: #fff;
}

@media (max-width: 768px) {
    .checkout-quantity-panel {
        width: 100%;
    }

    .checkout-quantity-controls {
        width: 100%;
        display: grid;
        grid-template-columns: 38px 1fr 38px;
    }

    .checkout-qty-input {
        width: 100%;
    }

    .checkout-legal-modal-frame {
        min-height: 72vh;
    }
}

/* Auth modal premium no checkout */
.auth-modal-premium .auth-modal-premium-dialog {
    max-width: 820px;
}

.auth-modal-premium .auth-modal-premium-content {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 40px 90px -35px rgba(15, 23, 42, 0.5);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.auth-modal-premium .auth-modal-premium-header {
    padding: 1.2rem 1.4rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(120deg, #e0f2fe 0%, #f8fafc 50%, #ecfeff 100%);
}

.auth-modal-premium .auth-modal-premium-header .modal-title {
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #0f172a;
}

.auth-modal-premium .auth-modal-premium-body {
    padding: 1.3rem 1.4rem 1.4rem;
}

.auth-modal-premium .auth-modal-premium-tabs {
    border-bottom: 0;
    gap: 0.5rem;
}

.auth-modal-premium .auth-modal-premium-tabs .nav-link {
    border: 1px solid #dbe5f3;
    border-radius: 999px;
    color: #334155;
    font-weight: 700;
    padding: 0.55rem 1rem;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.auth-modal-premium .auth-modal-premium-tabs .nav-link:hover {
    background: #eef4ff;
    border-color: #c9d8f2;
}

.auth-modal-premium .auth-modal-premium-tabs .nav-link.active {
    color: #0f172a;
    background: #dbeafe;
    border-color: #bfdbfe;
}

.auth-modal-premium .auth-modal-nif-highlight {
    border: 1px solid #bfdbfe;
    background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
    border-radius: 14px;
    padding: 1rem;
}

.auth-modal-premium .auth-modal-nif-result {
    border-radius: 14px;
    background: #f8fafc;
}

.auth-modal-premium #registerCustomerTypeGroup .btn {
    font-weight: 700;
}

.auth-modal-premium #registerCustomerTypeGroup .btn-check:checked+.btn {
    box-shadow: 0 0 0 0.15rem rgba(59, 130, 246, 0.2);
}

.auth-modal-premium .form-control,
.auth-modal-premium .form-select {
    border-radius: 12px;
    padding-top: 0.62rem;
    padding-bottom: 0.62rem;
}

.auth-modal-premium .btn-primary {
    border-radius: 12px;
    font-weight: 800;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

@media (max-width: 768px) {
    .auth-modal-premium .auth-modal-premium-dialog {
        margin: 0.6rem;
    }

    .auth-modal-premium .auth-modal-premium-body {
        padding: 1rem 1rem 1.1rem;
    }

    .auth-modal-premium .auth-modal-premium-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .auth-modal-premium #registerCustomerTypeGroup {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* --- Upsell e Conversao Premium --- */
.billing-best {
    background: #e8f7ee;
    border: 1px solid #3dbf87;
    color: #2e8b57;
    font-size: 11.5px;
    padding: 3px 8px;
    border-radius: 8px;
    display: inline-block;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.checkout-period-btn.is-selected .billing-best {
    background: #3dbf87;
    color: #fff;
    border-color: #2e8b57;
}

.smart-addon-card {
    transition: all 0.2s ease;
}

.smart-addon-card:hover {
    border-color: var(--checkout-primary) !important;
    background: #f8fbff !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.smart-addon-card input[type="checkbox"] {
    transform: scale(1.15);
    cursor: pointer;
}

/* Addon pill remove button */
.checkout-inline-addon-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-remove-addon {
    background: transparent;
    border: none;
    color: #64748b;
    padding: 0;
    margin-left: 4px;
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.btn-remove-addon:hover {
    color: #dc2626;
    background: #fee2e2;
}

/* Animations */
@keyframes flash-update {
    0% { background-color: rgba(61, 191, 135, 0.4); transform: scale(1.02); }
    100% { background-color: transparent; transform: scale(1); }
}

.is-updated {
    animation: flash-update 0.6s ease-out;
    border-radius: 4px;
    padding: 0 4px;
}

/* Scroll-to-Error Highlight */
.highlight-error {
    border: 2px solid #dc3545 !important;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.4) !important;
    transition: all 0.3s ease;
}

/* Mobile Sticky Payment Anchor Button */
.mobile-sticky-pay-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 1050;
    background: #198754;
    color: #fff;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 8px 16px rgba(25, 135, 84, 0.3);
    border: 1px solid #146c43;
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
}

.mobile-sticky-pay-btn:active {
    transform: translateY(2px);
    box-shadow: 0 4px 8px rgba(25, 135, 84, 0.2);
}

.mobile-sticky-pay-btn.is-hidden {
    transform: translateY(150%);
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 991px) {
    .mobile-sticky-pay-btn.enabled {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Give some bottom padding to body so we don't cover footer content */
    body {
        padding-bottom: 80px;
    }
}