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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 50%, #F3E8FF 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.container {
    width: 100%;
    max-width: 42rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease-in;
}

.logo-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #2563EB 0%, #9333EA 100%);
    border-radius: 50%;
    margin-bottom: 1rem;
}

.icon-smartphone {
    width: 2rem;
    height: 2rem;
    color: white;
}

.title {
    font-size: 2.25rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #6B7280;
    font-size: 1rem;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.step-item {
    display: flex;
    align-items: center;
}

.step-circle {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: #E5E7EB;
    color: #6B7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.step-circle.active {
    background: linear-gradient(135deg, #2563EB 0%, #9333EA 100%);
    color: white;
}

.step-circle.completed {
    background: linear-gradient(135deg, #2563EB 0%, #9333EA 100%);
    color: white;
}

.step-number {
    display: block;
}

.step-circle.completed .step-number {
    display: none;
}

.step-check {
    display: none;
    width: 1.25rem;
    height: 1.25rem;
}

.step-circle.completed .step-check {
    display: block;
}

.step-line {
    width: 3rem;
    height: 0.25rem;
    background-color: #E5E7EB;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.step-line.active {
    background: linear-gradient(90deg, #2563EB 0%, #9333EA 100%);
}

/* Card */
.card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: fadeIn 0.5s ease-in;
}

.card.hidden {
    display: none;
}

.card-header {
    padding: 1.5rem 1.5rem 0;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 0.5rem;
}

.card-description {
    color: #6B7280;
    font-size: 0.875rem;
}

.card-content {
    padding: 1.5rem;
}

/* Operators Grid */
.operators-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.operator-btn {
    padding: 1.5rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.75rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.operator-btn:hover {
    border-color: #D1D5DB;
    transform: scale(1.05);
}

.operator-btn.selected {
    border-color: #2563EB;
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.operator-btn.selected.tim {
    border-color: #2563EB;
}

.operator-btn.selected.claro {
    border-color: #DC2626;
}

.operator-btn.selected.vivo {
    border-color: #9333EA;
}

.operator-btn.selected.oi {
    border-color: #EAB308;
}

.operator-logo {
    width: 5rem;
    height: 5rem;
    object-fit: contain;
    margin: 0 auto 0.75rem;
    display: block;
}

.operator-name {
    font-size: 1.25rem;
    font-weight: bold;
    color: #111827;
}

/* Form */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    height: 3.5rem;
    padding: 0 1rem;
    font-size: 1.125rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.btn-primary {
    width: 100%;
    height: 3rem;
    background: linear-gradient(135deg, #2563EB 0%, #9333EA 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #1D4ED8 0%, #7E22CE 100%);
}

.btn-success {
    flex: 1;
    height: 3rem;
    background: linear-gradient(135deg, #16A34A 0%, #2563EB 100%);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #15803D 0%, #1D4ED8 100%);
}

.btn-outline {
    flex: 1;
    height: 3rem;
    background: white;
    color: #111827;
    border: 1px solid #D1D5DB;
}

.btn-outline:hover {
    background: #F9FAFB;
}

.btn-group {
    display: flex;
    gap: 0.75rem;
}

.btn-full {
    width: 100%;
}

.btn-small {
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Amounts List */
.amounts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.amount-btn {
    width: 100%;
    padding: 1.25rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.75rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.amount-btn:hover {
    border-color: #D1D5DB;
    transform: scale(1.02);
}

.amount-btn.selected {
    border-color: #9333EA;
    background: linear-gradient(135deg, #F3E8FF 0%, #EFF6FF 100%);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.amount-btn.popular {
    border: 2px solid #A855F7;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1);
}

.popular-badge {
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FBBF24 0%, #F97316 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.amount-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.amount-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563EB 0%, #9333EA 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.amount-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

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

.amount-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
}

.amount-bonus {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #16A34A;
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.bonus-icon {
    width: 1rem;
    height: 1rem;
}

.amount-right {
    text-align: right;
}

.amount-label {
    font-size: 0.875rem;
    color: #6B7280;
}

.amount-total {
    font-size: 1.25rem;
    font-weight: bold;
    color: #9333EA;
}

/* Payment */
.payment-content {
    text-align: center;
}

.qrcode-container {
    width: 16rem;
    height: 16rem;
    margin: 0 auto 1rem;
    background: white;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 2px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode-container img {
    width: 100%;
    height: 100%;
}

.loading-text {
    color: #6B7280;
}

.pix-code-container {
    padding: 0.75rem;
    background: #F9FAFB;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.pix-code {
    font-size: 0.75rem;
    color: #6B7280;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    margin-bottom: 0.5rem;
}

.summary-box {
    padding: 1rem;
    background: #EFF6FF;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.summary-text {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.6;
}

.expiration-box {
    padding: 0.75rem;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.expiration-text {
    font-size: 0.75rem;
    color: #92400E;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .title {
        font-size: 1.875rem;
    }
    
    .operators-grid {
        gap: 0.75rem;
    }
    
    .operator-btn {
        padding: 1rem;
    }
    
    .operator-icon {
        width: 3rem;
        height: 3rem;
    }
    
    .operator-name {
        font-size: 1rem;
    }
    
    .amount-value {
        font-size: 1.25rem;
    }
    
    .amount-total {
        font-size: 1rem;
    }
}
