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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.app {
    width: 100%;
    max-width: 600px;
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    background: white;
    border-radius: 25px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.logo p {
    color: #6b7280;
    font-size: 1rem;
}

.logo-small {
    text-align: center;
    margin-bottom: 25px;
}

.logo-small h1 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    text-align: center;
    color: #1f2937;
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* Operadoras */
.operators {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.operator-item {
    background: #f9fafb;
    border: 3px solid #e5e7eb;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.operator-item:active {
    transform: scale(0.95);
}

.operator-item:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.operator-item.selected {
    border-color: #667eea;
    background: #eef2ff;
}

.operator-item img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 10px;
}

.operator-item span {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1f2937;
}

/* Selected Info */
.selected-info,
.order-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 25px;
}

.selected-info img,
.order-info img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.selected-info span {
    font-weight: 700;
    font-size: 1.2rem;
    color: #667eea;
}

.order-info div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.order-info strong {
    font-size: 1.1rem;
    color: #667eea;
}

.order-info span {
    font-size: 0.95rem;
    color: #6b7280;
}

/* Phone Input */
#phoneInput {
    width: 100%;
    padding: 18px;
    font-size: 1.3rem;
    text-align: center;
    border: 3px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 10px;
    font-weight: 600;
}

#phoneInput:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.hint {
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

/* Values */
.values {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.value-item {
    background: #f9fafb;
    border: 3px solid #e5e7eb;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.value-item:active {
    transform: scale(0.98);
}

.value-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.value-item.selected {
    border-color: #667eea;
    background: #eef2ff;
}



.value-item.popular {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}

.value-item.best {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.value-item.best .badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.value-price {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #1f2937;
}

.value-bonus {
    background: #fbbf24;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}

.value-total {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 5px;
}

.value-note {
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
}

.value-save {
    font-size: 0.9rem;
    color: #8b5cf6;
    font-weight: 600;
}

.value-item.best .value-save {
    color: #10b981;
}

/* Checkout */
.checkout-summary {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.summary-line:last-child {
    border-bottom: none;
}

.summary-line span {
    color: #6b7280;
}

.summary-line strong {
    color: #1f2937;
}

.summary-line.highlight {
    border-top: 2px solid #667eea;
    padding-top: 15px;
    margin-top: 10px;
}

.summary-line.highlight strong {
    color: #667eea;
    font-size: 1.3rem;
}

/* Form */
.form {
    margin-bottom: 25px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937;
}

.form-field input {
    width: 100%;
    padding: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
}

.form-field input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: #d1fae5;
    border-radius: 10px;
    color: #10b981;
    font-weight: 600;
}

/* Payment */
.payment-info {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.info-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.info-line span {
    color: #6b7280;
}

.info-line strong {
    color: #1f2937;
}

.info-line.total {
    border-top: 2px solid #667eea;
    padding-top: 12px;
    margin-top: 8px;
}

.info-line.total strong {
    color: #667eea;
    font-size: 1.4rem;
}

.qrcode {
    background: #f9fafb;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 25px;
}

#qrcodeImage {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

#qrcodeImage img {
    max-width: 100%;
}

.qrcode p {
    color: #6b7280;
    font-size: 0.9rem;
}

.pix-copy {
    margin-bottom: 25px;
}

.pix-copy label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1f2937;
}

.copy-box {
    display: flex;
    gap: 10px;
}

.copy-box input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-family: monospace;
    font-size: 0.85rem;
}

.copy-box button {
    padding: 12px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-box button:hover {
    background: #5568d3;
}

.copy-box button:active {
    transform: scale(0.95);
}

.warning {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: #fef3c7;
    border: 2px solid #fbbf24;
    border-radius: 12px;
    margin-bottom: 25px;
}

.warning svg {
    color: #fbbf24;
    flex-shrink: 0;
}

.warning strong {
    display: block;
    color: #92400e;
    margin-bottom: 5px;
}

.warning p {
    margin: 3px 0;
    font-size: 0.9rem;
    color: #78350f;
}

/* Buttons */
.actions {
    display: flex;
    gap: 12px;
}

.btn-back,
.btn-next,
.btn-pay,
.btn-check {
    flex: 1;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back {
    background: #f3f4f6;
    color: #1f2937;
}

.btn-back:hover {
    background: #e5e7eb;
}

.btn-back:active {
    transform: scale(0.95);
}

.btn-next,
.btn-pay,
.btn-check {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-next:hover,
.btn-pay:hover,
.btn-check:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-next:active,
.btn-pay:active,
.btn-check:active {
    transform: scale(0.95);
}

/* Responsive */
@media (max-width: 768px) {
    .operators {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 30px 20px;
    }
    
    .copy-box {
        flex-direction: column;
    }
}
