/* ============================================
   RECARGA DIGITAL - THEME
   ============================================ */

/* ============================================
   RESET E VARIÁVEIS GLOBAIS
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;900&display=swap');

:root {
    /* Cores Padrão */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #eeeeee;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent: #007bff;
    --accent-light: #0056b3;
    --border-color: #dddddd;
    --shadow-color: rgba(0, 123, 255, 0.1);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ============================================
   CONTAINER
   ============================================ */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ============================================
   HEADER
   ============================================ */

.header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    background-color: var(--bg-secondary);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-sm);
}

.app-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: none;
}

.back-button {
    padding: 0.5rem 1rem;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-button:hover {
    border-color: var(--text-primary);
    background-color: rgba(255, 215, 0, 0.1);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 50%, #ffffff 100%);
    padding: 5rem 0;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.bf-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent);
    color: var(--bg-primary);
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    text-shadow: none;
}

.accent-text {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: #0066FF;
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats {
    background-color: var(--bg-secondary);
    padding: 4rem 0;
}

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

.stat-card {
    background-color: var(--bg-tertiary);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-stars {
    font-size: 1.25rem;
    letter-spacing: 0.25rem;
}

.stat-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
}



/* ============================================
   FORM SECTION
   ============================================ */

.form-section {
    padding: 3rem 0;
}

.form-card {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.form-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: none;
}

.form-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

.recharge-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-input {
    padding: 0.75rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

/* ============================================
   OPERATORS GRID
   ============================================ */

.operators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.operator-btn {
    padding: 1rem;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.operator-btn:hover {
    border-color: var(--text-primary);
    background-color: rgba(255, 215, 0, 0.1);
}

.operator-btn.active {
    border-color: var(--text-primary);
    background-color: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2), 0 0 40px rgba(255, 215, 0, 0.1);
}

/* ============================================
   RECHARGE GRID
   ============================================ */

.recharge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.recharge-btn {
    position: relative;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.recharge-btn:hover {
    border-color: var(--text-primary);
    background-color: rgba(255, 215, 0, 0.05);
}

.recharge-btn.active {
    border-color: var(--text-primary);
    background-color: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2), 0 0 60px rgba(255, 215, 0, 0.1);
}



.recharge-content {
    flex: 1;
}

.recharge-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
}

.recharge-bonus {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 0.25rem;
}

.recharge-btn.best-seller {
    border: 2px solid var(--accent);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.2);
}

.best-seller-badge {
    position: absolute;
    top: -0.75rem;
    right: -0.75rem;
    padding: 0.25rem 0.75rem;
    background-color: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */

.submit-button {
    padding: 1.5rem;
    background-color: #0066FF;
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.submit-button:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

/* ============================================
   PAYMENT SECTION
   ============================================ */

.payment-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.payment-header {
    text-align: center;
}

.payment-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.payment-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.payment-subtitle {
    color: var(--text-secondary);
}

.payment-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.qr-code-container {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.qr-code {
    width: 100%;
    max-width: 300px;
    height: auto;
}

.pix-code-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pix-code-input {
    display: flex;
    gap: 0.5rem;
}

.pix-code-input .form-input {
    flex: 1;
    font-family: monospace;
    font-size: 0.85rem;
}

.copy-button {
    padding: 0.75rem 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.copy-button:hover {
    border-color: var(--text-primary);
    background-color: rgba(255, 215, 0, 0.1);
}

.payment-info {
    background-color: rgba(255, 215, 0, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    color: var(--text-secondary);
}

.info-value {
    font-weight: 700;
    color: var(--text-primary);
}

.status-waiting {
    color: var(--accent);
}

.payment-instructions {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.payment-instructions p {
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

.back-to-form-button {
    padding: 1rem;
    background-color: transparent;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-to-form-button:hover {
    border-color: var(--text-primary);
    background-color: rgba(255, 215, 0, 0.1);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
}

.footer-text {
    color: var(--text-secondary);
    font-weight: 600;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }

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

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

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

    .operators-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .logo-section {
        width: 100%;
        justify-content: center;
    }

    .back-button {
        width: 100%;
        text-align: center;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .form-section {
        padding: 1.5rem 0;
    }

    .form-card {
        padding: 1rem;
    }
}
