/* 
 * CHECKOUT CINEMATIC THEME
 * Isolated Styles - No Global Inheritance 
 */

:root {
    --bg-dark: #0f0f13;
    --bg-card: #1a1a20;
    --bg-input: #252530;
    --accent-gold: #d4af37;
    --accent-green: #2ecc71;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --border-color: #333340;
    --glow-gold: 0 0 20px rgba(212, 175, 55, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- TOPO --- */
.checkout-top-bar {
    background: linear-gradient(90deg, #111, #222);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.countdown-container {
    color: var(--accent-gold);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.5rem;
    line-height: 1;
    transition: color 0.2s;
}

.close-link:hover {
    color: white;
}

/* --- HERO --- */
.checkout-hero {
    position: relative;
    height: 250px;
    width: 100%;
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-dark) 95%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.hero-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

/* --- LAYOUT GRID --- */
.main-wrapper {
    max-width: 1200px;
    margin: -50px auto 50px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.checkout-columns-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cinematic-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.section-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- FORMS --- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cinematic-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.cinematic-input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

.helper-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 5px;
    display: block;
}

.btn-continue {
    width: 100%;
    padding: 15px;
    background: var(--accent-gold);
    color: black;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-gold);
}

/* --- PAYMENT AREA --- */
.payment-method-box {
    border: 2px solid var(--accent-green);
    background: rgba(46, 204, 113, 0.05);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.pix-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-green);
}

/* --- SUMMARY COLUMN --- */
.summary-card {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.plan-badge {
    background: var(--accent-gold);
    color: black;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}

.plan-name-display {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.total-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin: 20px 0;
}

.benefits-list {
    list-style: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.benefits-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-mark {
    color: var(--accent-gold);
}

/* --- QR CODE AREA --- */
.qr-container {
    text-align: center;
    margin-top: 20px;
    animation: fadeIn 0.5s;
}

.qr-img {
    background: white;
    padding: 10px;
    border-radius: 8px;
    max-width: 250px;
    margin: 0 auto;
}

.copypaste-box {
    margin-top: 15px;
    position: relative;
}

.copypaste-input {
    width: 100%;
    background: black;
    border: 1px solid var(--border-color);
    padding: 10px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-radius: 4px;
}

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

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

/* --- MOBILE --- */
@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column-reverse;
        /* Form on top? No, usually Summary first or last. Let's keep standard stacking. */
        display: block;
        /* Stack normally */
    }

    .checkout-columns-left {
        order: 2;
    }

    .summary-card {
        margin-bottom: 30px;
        position: relative;
        top: 0;
        order: 1;
    }

    .hero-title {
        font-size: 1.5rem;
    }
}
/* --- COPY PASTE BUTTON --- */
.copypaste-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.copypaste-input {
    padding-right: 50px !important; /* Space for button */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: text;
}

.btn-copy {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-gold);
    border: none;
    border-radius: 4px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: black;
}

.btn-copy:hover {
    background: white;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.btn-copy:active {
    transform: translateY(-50%) scale(0.95);
}

.copy-feedback {
    position: absolute;
    top: -30px;
    right: 0;
    background: var(--accent-green);
    color: black;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.copy-feedback.show {
    opacity: 1;
}
.btn-copy { z-index: 100; cursor: pointer; }
