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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.container {
    min-height: 100vh;
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 50%, #f3e5f5 100%);
}

/* Header */
.header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e0e0e0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 24px;
}

.title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.security {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

/* Main */
.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 16px;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    margin-bottom: 24px;
    font-size: 16px;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: #333;
}

/* Screens */
.screen {
    display: none;
}

.screen.active {
    display: block;
}

.center-content {
    text-align: center;
}

.main-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 16px;
}

.subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 32px;
}

/* Operadoras */
.operators-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
    max-width: 600px;
    margin: 0 auto 32px;
}

.operator-card {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.operator-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.operator-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.operator-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.operator-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.features {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #666;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Card */
.card {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 0 auto;
}

.card-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 16px;
    color: #333;
}

.operator-info {
    text-align: center;
    margin-bottom: 24px;
    color: #666;
}

.input {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 24px;
    box-sizing: border-box;
}

.button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.button:hover:not(:disabled) {
    background-color: #1976D2;
}

.button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.copy-button {
    background-color: white;
    color: #333;
    border: 2px solid #e0e0e0;
    margin-bottom: 24px;
}

.copy-button:hover {
    background-color: #f5f5f5;
}

/* Amounts */
.amounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.amount-card {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.amount-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.amount-card.popular {
    border: 2px solid #2196F3;
}

.popular-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2196F3;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.amount-value {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.bonus {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #4CAF50;
    font-weight: 600;
    margin-bottom: 8px;
}

.total {
    font-size: 14px;
    color: #666;
}

/* Checkout */
.checkout-details {
    margin-bottom: 24px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 8px 0;
}

.bonus-row {
    color: #4CAF50;
}

.divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 16px 0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* Payment */
.pix-container {
    text-align: center;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.pix-subtitle {
    color: #666;
    margin-bottom: 24px;
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.qr-code-image {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    background-color: white;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-instruction {
    font-size: 14px;
    color: #666;
    margin: 8px 0;
}

.pix-code {
    background-color: #f5f5f5;
    padding: 16px;
    border-radius: 8px;
    border: 2px dashed #ccc;
    margin-bottom: 16px;
    word-break: break-all;
    font-size: 12px;
    font-family: monospace;
}

.payment-info {
    text-align: center;
    margin-bottom: 24px;
    font-size: 14px;
    color: #666;
}

.instructions {
    background-color: #e3f2fd;
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: left;
}

.instructions-title {
    font-weight: 600;
    color: #1976D2;
    margin-bottom: 8px;
}

.instructions-list {
    margin: 0;
    padding-left: 20px;
    line-height: 1.6;
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-content {
    background-color: white;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.loading-spinner {
    font-size: 48px;
    margin-bottom: 16px;
}

/* Footer */
.footer {
    background-color: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    padding: 32px 16px;
    text-align: center;
    color: #666;
    margin-top: 64px;
}

.footer-subtitle {
    font-size: 14px;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .operators-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        max-width: 300px;
    }
    
    .amounts-grid {
        grid-template-columns: 1fr;
    }
    
    .features {
        flex-direction: column;
        gap: 16px;
    }
    
    .main-title {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 16px;
    }
}
