/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Tema padrão (purple) - será sobrescrito inline */
:root {
    --bg: #0F0F1A;
    --bg-secondary: #1A1A2E;
    --card: #1E1E32;
    --card-hover: #252540;
    --border: #2D2D4A;
    --text: #FFFFFF;
    --text-muted: #9CA3AF;
    --primary: #8B5CF6;
    --primary-dark: #7C3AED;
    --accent: #A78BFA;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 100px;
}

/* Header */
.header {
    text-align: center;
    padding: 30px 0;
}

.header h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.header h1 i {
    color: var(--primary);
}

.header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Steps */
.step {
    margin-bottom: 30px;
}

.step h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.step-num {
    width: 28px;
    height: 28px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.options-grid.three-items {
    grid-template-columns: repeat(3, 1fr);
}

.option-card {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-card:hover {
    border-color: var(--primary);
    background: var(--card-hover);
}

.option-card.active {
    border-color: var(--primary);
    background: var(--card-hover);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.option-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    color: var(--primary);
}

.option-card span {
    display: block;
    font-weight: 500;
}

.option-card small {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 4px;
}

.option-card .flag {
    width: 48px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Packages */
.packages-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.package-item {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.package-item:hover {
    border-color: var(--primary);
    background: var(--card-hover);
}

.package-item.active {
    border-color: var(--primary);
    background: var(--card-hover);
}

.package-item.featured {
    border-color: var(--border);
}

.package-item.featured:hover,
.package-item.featured.active {
    border-color: var(--primary);
}

.featured-badge {
    position: absolute;
    top: -1px;
    right: 20px;
    background: linear-gradient(135deg, #F59E0B, #EF4444);
    color: white;
    padding: 4px 12px;
    border-radius: 0 0 8px 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.package-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.package-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.badge {
    background: var(--bg);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.package-pricing {
    text-align: right;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: block;
}

.package-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

/* Checkout */
.checkout-box {
    background: var(--card);
    border-radius: 20px;
    padding: 24px;
}

.selected-package {
    background: var(--bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.selected-package h4 {
    margin-bottom: 4px;
}

.selected-package .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
}

.alert-warning i {
    color: #FBBF24;
    margin-top: 2px;
}

.alert-warning span {
    color: #FCD34D;
}

.input-group {
    margin-bottom: 16px;
}

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

.input-group label i {
    margin-right: 6px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.btn-pay {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-pay:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-pay:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* FAQ */
.faq-section {
    margin-top: 40px;
}

.faq-section > h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.faq-section > h2 i {
    color: var(--primary);
}

.faq-item {
    background: var(--card);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    color: var(--text-muted);
    transition: transform 0.2s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 20px 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.faq-answer strong {
    color: var(--primary);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--card);
    border-radius: 24px;
    padding: 30px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-content h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.modal-content h3 i {
    color: #32BCAD;
}

#pix-qr {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.pix-code-box {
    display: flex;
    gap: 8px;
    margin: 16px 0;
}

.pix-code-box input {
    flex: 1;
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.8rem;
}

.pix-code-box button {
    padding: 12px 16px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
}

.pix-timer {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.success-icon {
    font-size: 4rem;
    color: #10B981;
    margin-bottom: 16px;
}

#pix-success h4 {
    color: #10B981;
    margin-bottom: 8px;
}

.success-detail {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    z-index: 1001;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Hidden */
.hidden {
    display: none !important;
}

/* Responsivo */
@media (max-width: 480px) {
    .container {
        padding: 16px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .options-grid.three-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .option-card {
        padding: 20px 12px;
    }
    
    .option-card i {
        font-size: 1.6rem;
    }
}
