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

:root {
    /* Updated color palette for more vibrant and striking appearance */
    --primary: #a855f7;
    --primary-dark: #9333ea;
    --bg: #0a0a14;
    --bg-light: #1a1a2e;
    --text: #ffffff;
    --text-secondary: #b0b0c0;
    --border: #3a3a4e;
    --accent: #ec4899;
    
    /* Netflix Red */
    --netflix: #e50914;
    /* Spotify Green */
    --spotify: #1db954;
    /* Disney+ Cyan */
    --disney: #00d4ff;
    /* HBO Max Purple */
    --hbo: #c77dff;
    /* Prime Video Blue */
    --prime: #0099ff;
    /* Paramount Blue */
    --paramount: #0066ff;
    /* Sport TV Red */
    --sporttv: #ff3333;
    /* Apple TV Black */
    --appletv: #4a4a4a;
    /* Globo Play Orange */
    --globoplay: #ff6b35;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg) 0%, #1a0a3e 100%);
    color: var(--text);
    min-height: 100vh;
}

/* Header */
.header {
    background: rgba(12, 12, 25, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1.5rem 0;
}

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

.header-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.header h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.2;
}

.header-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.cart-btn {
    position: relative;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.6);
}

.cart-count {
    background: #ec4899;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Hero */
/* Removed hero section CSS */

/* Products */
.products {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #2a1a4e 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: #a855f7;
    box-shadow: 0 20px 50px rgba(168, 85, 247, 0.3);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 1rem;
    /* add border-radius to images */
    border-radius: 4px;
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    /* uppercase names, larger font, bold numbers */
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.product-prices {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.product-original-price {
    font-size: 1rem;
    color: #ef4444;
    text-decoration: line-through;
    /* bold numbers for original price */
    font-weight: 700;
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.add-to-cart-btn {
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    font-size: 0.95rem;
    margin-top: auto;
    background: linear-gradient(135deg, #a855f7, #ec4899);
}

/* Gradient buttons for each service */
/* Updated gradient buttons with more vibrant colors */
.netflix-btn { background: linear-gradient(135deg, #a855f7, #ec4899); }
.spotify-btn { background: linear-gradient(135deg, #a855f7, #ec4899); }
.disney-btn { background: linear-gradient(135deg, #a855f7, #ec4899); }
.hbo-btn { background: linear-gradient(135deg, #a855f7, #ec4899); }
.prime-btn { background: linear-gradient(135deg, #a855f7, #ec4899); }
.paramount-btn { background: linear-gradient(135deg, #a855f7, #ec4899); }
.sporttv-btn { background: linear-gradient(135deg, #a855f7, #ec4899); }
.appletv-btn { background: linear-gradient(135deg, #a855f7, #ec4899); }
.globoplay-btn { background: linear-gradient(135deg, #a855f7, #ec4899); }
.spotify-anual-btn { background: linear-gradient(135deg, #a855f7, #ec4899); }

.add-to-cart-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #2a1a4e 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    margin-top: 2rem;
    max-height: 90vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text);
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #a855f7;
}

.modal h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.cart-items {
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: var(--bg);
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    /* changed to flex-column for mobile-friendly layout */
}

.cart-item-info {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-prices {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-item-original-price {
    color: #ef4444;
    font-size: 0.85rem;
    text-decoration: line-through;
    font-weight: 600;
}

.cart-item-price {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    width: 100%;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-btn {
    background: var(--primary);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.quantity-display {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.remove-btn {
    background: #e11d48;
    border: none;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    width: 100%;
    /* make remove button full width on mobile */
}

.remove-btn:hover {
    background: #be123c;
}

.cart-summary {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.summary-row.discount {
    color: #1db954;
    font-weight: 600;
}

.summary-row.discount .discount-value {
    color: #1db954;
    font-weight: 700;
}

.summary-row.total {
    border-top: 1px solid var(--border);
    padding-top: 0.8rem;
    margin-top: 0.8rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(22, 163, 74, 0.4);
}

.secure-text-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
}

.secure-text {
    text-align: center;
    color: #1db954;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1.2rem 1rem;
    background: rgba(29, 185, 84, 0.15);
    border: 1px solid rgba(29, 185, 84, 0.4);
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

/* Compra Segura */
.secure-purchase {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    padding: 0.5rem;
}

.secure-purchase-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(29, 185, 84, 0.15);
    border: 1px solid rgba(29, 185, 84, 0.4);
    border-radius: 8px;
}

.secure-purchase-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.secure-shield {
    position: relative;
    width: 50px;
    height: 60px;
    background: linear-gradient(135deg, #1db954, #1ed760);
    border-radius: 6px 6px 0 0;
    clip-path: polygon(50% 0%, 100% 0, 100% 70%, 50% 100%, 0 70%, 0 0);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(29, 185, 84, 0.3);
}

.shield-cart-icon {
    width: 28px;
    height: 28px;
    position: relative;
    z-index: 1;
}

.shield-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: #2d3748;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.secure-purchase-text {
    display: flex;
    flex-direction: column;
    color: #1db954;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.2;
}

.secure-purchase-text span {
    display: block;
}

/* Recommendations */
.recommendations-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.recommendations-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.rec-product {
    background: linear-gradient(135deg, #1a1a2e 0%, #2a1a4e 100%);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.rec-product:hover {
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.15);
}

.rec-product-image {
    width: 100%;
    height: 100px;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: var(--bg);
}

.rec-product-name {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    /* uppercase names in recommendations */
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

.rec-product-prices {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.8rem;
}

.rec-original-price {
    font-size: 0.8rem;
    color: #ef4444;
    text-decoration: line-through;
    /* bold numbers in recommendations */
    font-weight: 700;
}

.rec-product-price {
    font-size: 0.9rem;
    color: #a855f7;
    font-weight: 700;
}

.rec-product-btn {
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    color: white;
    margin-top: auto;
    /* add button styling for recommendations */
}

/* Success Modal */
.success-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin-bottom: 1.5rem;
}

.success-content h2 {
    margin-bottom: 1rem;
}

.success-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Add PIX modal styling */
.pix-content {
    text-align: center;
}

.pix-container {
    background: var(--bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.pix-qrcode {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
}

.pix-qrcode img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid #a855f7;
}

.pix-info {
    text-align: left;
}

.pix-info p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.pix-copy-label {
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.pix-copy-container {
    display: flex;
    gap: 0.5rem;
}

.pix-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.7rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: monospace;
}

.pix-copy-btn {
    background: linear-gradient(135deg, #1db954, #1ed760);
    border: none;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pix-copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(29, 185, 84, 0.4);
}

.pix-copy-btn.copied {
    background: linear-gradient(135deg, #a855f7, #ec4899);
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* PIX Payment Page Styles */
.pix-payment-content {
    max-width: 600px !important;
    text-align: center;
}

.pix-payment-container {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.pix-qrcode-large {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
}

.pix-qrcode-large img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 3px solid #a855f7;
    /* Improved image quality and size */
    image-rendering: crisp-edges;
}

.pix-info-section {
    text-align: left;
}

.pix-amount-display {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    text-align: center;
    /* reduced padding from 1.2rem to 0.8rem */
}

.pix-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    /* reduced font-size from 0.85rem to 0.75rem */
    margin-bottom: 0.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pix-amount {
    font-size: 2rem;
    /* reduced font-size from 2.8rem to 2rem */
    font-weight: 900;
    color: #ffffff;
}

.pix-code-section {
    margin-top: 1.2rem;
}

.pix-input-large {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.9rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: monospace;
    margin-bottom: 0.8rem;
    word-break: break-all;
}

.pix-copy-btn-large {
    /* Button now full width below code */
    width: 100%;
    background: linear-gradient(135deg, #1db954, #1ed760);
    border: none;
    color: white;
    padding: 0.85rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.pix-copy-btn-large:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(29, 185, 84, 0.4);
}

.pix-copy-btn-large.copied {
    background: linear-gradient(135deg, #a855f7, #ec4899);
}

.pix-status {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid #a855f7;
    padding: 1.2rem;
    border-radius: 8px;
    text-align: center;
    color: var(--text-secondary);
    /* Reduced padding for compact layout */
    font-size: 0.95rem;
}

.pix-status.success {
    background: rgba(29, 185, 84, 0.2);
    border-color: #1db954;
    color: #1ed760;
}

/* Thank You Page */
.thank-you-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 500px !important;
}

.thank-you-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #1db954, #1ed760);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    margin-bottom: 2rem;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.thank-you-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.thank-you-content p {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.thank-you-message {
    background: rgba(29, 185, 84, 0.2);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    color: #1ed760;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.5rem;
    }

    .header-subtitle {
        font-size: 0.75rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }

    .modal-content {
        max-width: 90%;
    }

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

    .secure-text-container {
        margin-top: 1rem;
        margin-bottom: 0.5rem;
        padding: 0.25rem;
    }

    .secure-text {
        font-size: 1rem;
        padding: 1rem 0.9rem;
        letter-spacing: 0.8px;
    }

    .secure-purchase {
        margin-top: 1rem;
        padding: 0.5rem 0.25rem;
    }

    .secure-purchase-container {
        gap: 1rem;
        padding: 1rem 1.2rem;
        max-width: 100%;
        width: 100%;
    }

    .secure-shield {
        width: 55px;
        height: 66px;
        flex-shrink: 0;
    }

    .shield-cart-icon {
        width: 32px;
        height: 32px;
    }

    .shield-badge {
        width: 22px;
        height: 22px;
        font-size: 0.8rem;
        top: -6px;
        right: -8px;
    }

    .secure-purchase-text {
        font-size: 1rem;
        letter-spacing: 0.8px;
        flex-shrink: 0;
    }
}
