/* =========================================================
   CHECKOUT BRAKE FILMES - DESKTOP + MOBILE PREMIUM
   Arquivo separado para evitar conflito com os cards da home.
   ========================================================= */

.checkout-page {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(255, 0, 42, 0.18), transparent 30%),
        radial-gradient(circle at top right, rgba(75, 43, 255, 0.16), transparent 32%),
        #05050a;
    color: #fff;
}

.checkout-header {
    width: 100%;
    min-height: 118px;
    padding: 18px clamp(18px, 5vw, 72px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: rgba(5, 5, 10, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(16px);
}

.checkout-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.checkout-brand img {
    width: clamp(92px, 10vw, 132px);
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(255, 0, 42, 0.35));
}

.checkout-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 126px;
    min-height: 54px;
    padding: 14px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff002a, #ff3152);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    box-shadow:
        0 0 18px rgba(255, 0, 42, 0.56),
        0 0 44px rgba(255, 0, 42, 0.28);
    animation: checkoutPulse 2s infinite;
}

@keyframes checkoutPulse {
    0%, 100% {
        box-shadow:
            0 0 14px rgba(255, 0, 42, 0.45),
            0 0 32px rgba(255, 0, 42, 0.2);
    }
    50% {
        box-shadow:
            0 0 26px rgba(255, 0, 42, 0.86),
            0 0 58px rgba(255, 0, 42, 0.42);
    }
}

.checkout-main {
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
    padding: clamp(34px, 5vw, 70px) 0 64px;
}

.checkout-intro {
    max-width: 790px;
    margin: 0 auto 34px;
    text-align: center;
}

.checkout-eyebrow {
    margin-bottom: 12px;
    color: #ff002a;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.checkout-intro h1 {
    margin-bottom: 14px;
    font-size: clamp(2.3rem, 6vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
    font-weight: 900;
}

.checkout-intro p:not(.checkout-eyebrow) {
    max-width: 760px;
    margin: 0 auto;
    color: #d7d7e7;
    font-size: clamp(1rem, 2.2vw, 1.12rem);
    line-height: 1.7;
}

.checkout-plans-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.checkout-card {
    position: relative;
    min-height: 360px;
    padding: 30px;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
        #111118;
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    transition: 0.28s ease;
}

.checkout-card:hover,
.checkout-card.preselected {
    transform: translateY(-6px);
    border-color: rgba(255, 0, 42, 0.72);
    box-shadow: 0 30px 90px rgba(255, 0, 42, 0.14);
}

.checkout-card-featured {
    border-color: rgba(255, 0, 42, 0.8);
    box-shadow: 0 24px 90px rgba(255, 0, 42, 0.16);
}

.checkout-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 0, 42, 0.18);
    color: #ff8fa0;
    font-size: 0.76rem;
    font-weight: 900;
}

.checkout-card h2 {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.1;
    font-weight: 900;
}

.checkout-price {
    margin: 0 0 22px;
    font-size: clamp(2rem, 4vw, 2.65rem);
    line-height: 1;
    letter-spacing: -0.05em;
    font-weight: 900;
}

.checkout-price span {
    font-size: 0.95rem;
    color: #b7b7c9;
    letter-spacing: 0;
    font-weight: 700;
}

.checkout-features {
    list-style: none;
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    color: #d4d4e3;
    font-size: 1rem;
    line-height: 1.45;
}

.checkout-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkout-features li::before {
    content: "✓";
    color: #00ff88;
    font-weight: 900;
    flex: 0 0 auto;
}

.checkout-select-btn {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 999px;
    padding: 14px 20px;
    cursor: pointer;
    background: linear-gradient(135deg, #ff002a, #ff3152);
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    box-shadow: 0 18px 40px rgba(255, 0, 42, 0.22);
    transition: 0.25s ease;
}

.checkout-select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 54px rgba(255, 0, 42, 0.34);
}

.checkout-payment-box {
    width: min(100%, 560px);
    margin: 0 auto;
    padding: clamp(24px, 5vw, 34px);
    border-radius: 30px;
    border: 1px solid rgba(255, 0, 42, 0.6);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
        #101018;
    box-shadow: 0 30px 90px rgba(255, 0, 42, 0.14);
    text-align: center;
}

.checkout-back-btn {
    display: inline-flex;
    margin-bottom: 18px;
    background: transparent;
    border: 0;
    color: #b7b7c9;
    cursor: pointer;
    font-weight: 800;
}

.checkout-payment-box h2 {
    margin-bottom: 8px;
    font-size: clamp(1.6rem, 5vw, 2.35rem);
    line-height: 1.15;
}

.checkout-payment-subtitle {
    margin-bottom: 18px;
    color: #d4d4e3;
}

.checkout-qr-box {
    width: min(100%, 280px);
    aspect-ratio: 1;
    margin: 20px auto;
    padding: 14px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: #fff;
}

.checkout-qr-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
}

.checkout-copy-area {
    text-align: left;
}

.checkout-copy-area label {
    display: block;
    margin-bottom: 8px;
    color: #b7b7c9;
    font-size: 0.9rem;
    font-weight: 800;
}

.checkout-copy-area textarea {
    width: 100%;
    min-height: 112px;
    resize: vertical;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    outline: none;
    background: rgba(0, 0, 0, 0.34);
    color: #fff;
    font-size: 16px;
    line-height: 1.5;
}

.checkout-copy-btn {
    width: 100%;
    min-height: 54px;
    margin-top: 12px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff002a, #ff3152);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 0 28px rgba(255, 0, 42, 0.28);
}

.checkout-status-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    color: #b7b7c9;
    font-size: 0.9rem;
}

.checkout-loader {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.18);
    border-top-color: #ff002a;
    animation: checkoutSpin 1s linear infinite;
    flex: 0 0 auto;
}

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

@media (max-width: 920px) {
    .checkout-header {
        min-height: 104px;
    }

    .checkout-plans-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }

    .checkout-card {
        min-height: auto;
    }

    .checkout-card:hover,
    .checkout-card.preselected {
        transform: none;
    }
}

@media (max-width: 520px) {
    .checkout-header {
        min-height: 96px;
        padding: 14px 18px;
    }

    .checkout-brand img {
        width: 86px;
    }

    .checkout-login-btn {
        min-width: 112px;
        min-height: 52px;
        padding: 12px 22px;
        font-size: 0.95rem;
    }

    .checkout-main {
        width: min(100% - 24px, 1180px);
        padding: 28px 0 44px;
    }

    .checkout-intro {
        margin-bottom: 24px;
        text-align: left;
    }

    .checkout-intro h1 {
        font-size: clamp(2.15rem, 12vw, 3.1rem);
    }

    .checkout-intro p:not(.checkout-eyebrow) {
        font-size: 0.96rem;
    }

    .checkout-card {
        padding: 24px;
        border-radius: 24px;
    }

    .checkout-badge {
        position: static;
        width: fit-content;
        margin-bottom: 14px;
    }

    .checkout-price {
        font-size: 2.25rem;
    }

    .checkout-select-btn {
        min-height: 58px;
        font-size: 1rem;
    }

    .checkout-payment-box {
        border-radius: 24px;
    }

    .checkout-qr-box {
        width: min(100%, 245px);
    }

    .checkout-status-row {
        align-items: flex-start;
        text-align: left;
    }
}
