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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
    padding-bottom: 80px; /* Space for bottom nav */
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.popup-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.popup-content {
    background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    margin: 1rem;
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.3);
    border: 1px solid rgba(0, 102, 255, 0.2);
}

/* Welcome Popup Styles */
.welcome-popup {
    background: url('/public/overlayVert.jpg') center/cover no-repeat;
    color: #fff;
    max-width: 380px;
    width: 100%;
    height: 85vh;
    max-height: 700px;
    min-height: 600px;
    padding: 0;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: none;
}

.popup-header {
    position: relative;
    z-index: 2;
    padding: 2.5rem 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.popup-logo {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #0066FF, #00FF88);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.4);
}

.popup-logo svg {
    color: white;
    width: 30px;
    height: 30px;
}

.popup-logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.7);
}

.popup-content-spacer {
    flex: 1;
}

.popup-footer {
    position: relative;
    z-index: 2;
    padding: 1rem 2rem 3rem;
}

.bonus-button {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    padding: 1.4rem 2rem;
    border-radius: 60px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 15px 35px rgba(34, 197, 94, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    animation: buttonPulse 2s infinite;
}

.bonus-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.bonus-button:hover::before {
    left: 100%;
}

.bonus-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 45px rgba(34, 197, 94, 0.6);
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.bonus-button:active {
    transform: translateY(-2px) scale(1.01);
    animation-play-state: paused;
}

@keyframes buttonPulse {
    0% {
        box-shadow: 0 15px 35px rgba(34, 197, 94, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 20px 45px rgba(34, 197, 94, 0.7);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 15px 35px rgba(34, 197, 94, 0.5);
        transform: scale(1);
    }
}

.popup-icon, .success-icon {
    color: #0066FF;
    margin-bottom: 1rem;
}

.popup-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 600;
}

.popup-content p {
    margin-bottom: 1.5rem;
    color: #cccccc;
    font-size: 0.95rem;
}

.popup-button, .withdraw-button {
    background: linear-gradient(135deg, #0066FF, #00FF88);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.popup-button:hover, .withdraw-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.4);
}

.success-popup {
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.2);
}

.error-popup {
    border: 1px solid rgba(255, 68, 68, 0.3);
    box-shadow: 0 20px 40px rgba(255, 68, 68, 0.2);
}

.error-icon {
    color: #ff4444;
    margin-bottom: 1rem;
}

.final-balance {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00FF88;
    margin: 1rem 0;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

 /* Header e Barra de Segurança */
        /* ROOT VARIABLES FOR CONSISTENT STYLING */
:root {
    /* Nexa Theme Colors */
    --nexa-primary: #0066FF;
    --nexa-secondary: #00BFFF;
    --nexa-accent: #1E90FF;
    --nexa-success: #00FF88;
    --nexa-dark: #0a0a0a;

    /* Gradients */
    --nexa-gradient: linear-gradient(135deg, var(--nexa-primary) 0%, var(--nexa-secondary) 50%, var(--nexa-accent) 100%);
    --nexa-bg-gradient: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    
    /* Text & Border Colors */
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-tertiary: #9CA3AF;
    --border-color-dark: rgba(31, 41, 55, 1);
    --bg-dark-800: rgba(30, 41, 59, 0.7);
}


/* --- CONSOLIDATED HEADER AND SECURITY BAR --- */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color-dark);
}

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

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

.logo-animated {
    position: relative;
    width: 40px;
    height: 40px;
    background: var(--nexa-gradient);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    overflow: hidden;
}

.logo-animated .shine-effect {
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease-in-out;
}

.logo-animated:hover .shine-effect {
    left: 150%;
}

.logo-animated svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 10;
    color: white;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--nexa-secondary);
}

.header-balance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(30, 41, 59, 0.5);
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
}

.header-balance span:first-child {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.header-balance span:last-child {
    font-weight: 700;
    color: var(--nexa-secondary);
}

.security-bar {
    position: fixed;
    top: 73px; /* Adjusted to be below the header */
    left: 0;
    right: 0;
    z-index: 30;
    background-color: var(--bg-dark-800);
    backdrop-filter: blur(4px);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 102, 255, 0.2);
}

.security-bar-content {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    max-width: 640px;
    margin: 0 auto;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.security-item svg {
    width: 1rem;
    height: 1rem;
}

.secure-icon { color: #34d399; }
.encrypted-icon { color: #38bdf8; }
.verified-icon { color: #2dd4bf; }


/* --- CONSOLIDATED MAIN CONTENT --- */
main {
    max-width: 640px;
    margin: 0 auto;
    padding: 140px 1.5rem 5rem; /* Adjusted for fixed header and security bar */
}

.animate-on-load {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}    

/* Depoimentos */
        .testimonials { margin-bottom: 2rem; }
        .testimonials-title { font-size: 1.25rem; font-weight: 700; text-align: center; margin-bottom: 0.5rem; }
        .testimonials-subtitle { font-size: 0.9rem; color: var(--text-tertiary); text-align: center; margin-bottom: 1.5rem; }
        .testimonial-container { background-color: rgba(15, 23, 42, 0.5); border: 1px solid var(--border-color-dark); border-radius: 1.25rem; padding: 1.5rem; position: relative; overflow: hidden; }
        .testimonial-card { display: flex; align-items: flex-start; gap: 1rem; }
        .testimonial-image { position: relative; flex-shrink: 0; }
        .testimonial-image img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
        .testimonial-verified { position: absolute; bottom: -2px; right: -2px; width: 1.25rem; height: 1.25rem; background-color: #22c55e; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #0f172a; }
        .testimonial-verified svg { width: 0.75rem; height: 0.75rem; color: white; }
        .testimonial-content { flex: 1; }
        .testimonial-rating { display: flex; gap: 2px; margin-bottom: 0.5rem; }
        .star { width: 1rem; height: 1rem; fill: #facc15; }
        .testimonial-text { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.6; }
        .testimonial-footer { display: flex; justify-content: space-between; align-items: flex-end; }
        .testimonial-author { font-size: 0.875rem; font-weight: 600; }
        .testimonial-location { font-size: 0.75rem; color: var(--text-tertiary); }
        .testimonial-amount { font-size: 0.875rem; font-weight: 700; color: var(--nexa-secondary); text-align: right; }
        .testimonial-amount-label { font-size: 0.75rem; color: var(--text-tertiary); text-align: right; }
        .testimonial-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
        .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background-color: var(--bg-dark-800); cursor: pointer; transition: all 0.3s ease; }
        .dot.active { background-color: var(--nexa-secondary); width: 1.5rem; }


/* Validation Section */
.validation-section {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 255, 136, 0.1));
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.validation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.validation-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0066FF, #00FF88);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: pulse 2s infinite;
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.5);
    position: relative;
    z-index: 2;
}

.validation-icon.validating {
    animation: spin 2s linear infinite;
}

.validation-icon.validated {
    background: linear-gradient(135deg, #00FF88, #22c55e);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    animation: successPulse 2s infinite;
}

.validation-icon.error {
    background: linear-gradient(135deg, #ff4444, #cc3333);
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.5);
    animation: errorPulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes successPulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(0, 255, 136, 0.7);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    }
}

@keyframes errorPulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 30px rgba(255, 68, 68, 0.5);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(255, 68, 68, 0.7);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 0 30px rgba(255, 68, 68, 0.5);
    }
}

.validation-icon svg {
    color: white;
    width: 40px;
    height: 40px;
}

.validation-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.validation-subtitle {
    color: #cccccc;
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.validation-button {
    width: 100%;
    background: linear-gradient(135deg, #0066FF, #00FF88);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.3);
}

.validation-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.validation-button:hover::before {
    left: 100%;
}

.validation-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 102, 255, 0.4);
}

.validation-button:disabled {
    background: rgba(102, 102, 102, 0.3);
    color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.validation-button:disabled::before {
    display: none;
}

.validation-status {
    font-size: 0.9rem;
    color: #cccccc;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border-left: 4px solid #0066FF;
}

.validation-status.success {
    color: #00FF88;
    border-left-color: #00FF88;
    background: rgba(0, 255, 136, 0.1);
}

.validation-status.error {
    color: #ff4444;
    border-left-color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

/* Withdrawal Section */
.withdrawal-section {
    padding: 1rem 0 2rem;
}

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

.success-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00FF88, #22c55e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    animation: pulse 2s infinite;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.success-icon-large svg {
    color: white;
    width: 50px;
    height: 50px;
}

.withdrawal-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #00FF88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.withdrawal-subtitle {
    color: #cccccc;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Balance Card */
.balance-card {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.1), transparent);
    animation: scanLine 3s linear infinite;
}

.balance-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.balance-card-header h2 {
    font-size: 1.2rem;
    color: #ffffff;
    margin: 0;
}

.balance-status {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #00FF88;
    font-size: 0.8rem;
    font-weight: 500;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00FF88;
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.7);
}

.balance-details {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.balance-detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.detail-label {
    color: #cccccc;
}

.detail-value {
    color: #ffffff;
    font-weight: 500;
}

.balance-detail-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.balance-detail-item.total {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0;
}

.balance-detail-item.total .detail-value {
    color: #00FF88;
}

/* Withdrawal Form */
.withdrawal-form-container {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.withdrawal-form-container h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0066FF;
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.3);
}

.form-group input::placeholder {
    color: #888888;
}

.form-help {
    display: block;
    margin-top: 0.3rem;
    color: #888888;
    font-size: 0.8rem;
}

/* Amount Input Container */
.amount-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 1rem;
    color: #cccccc;
    font-weight: 600;
    z-index: 2;
}

.amount-input-container input {
    padding-left: 2.5rem;
    padding-right: 3rem;
}

.edit-amount-btn {
    position: absolute;
    right: 0.5rem;
    background: rgba(0, 102, 255, 0.2);
    border: none;
    border-radius: 8px;
    padding: 0.5rem;
    color: #0066FF;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-amount-btn:hover {
    background: rgba(0, 102, 255, 0.3);
    transform: scale(1.05);
}

/* PIX Input Container */
.pix-input-container {
    display: flex;
    gap: 0.5rem;
}

.pix-input-container select {
    flex: 0 0 120px;
}

.pix-input-container input {
    flex: 1;
}

/* Processing Info */
.processing-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.processing-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 102, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0066FF;
    flex-shrink: 0;
}

.processing-details h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: #ffffff;
}

.processing-details p {
    font-size: 0.85rem;
    color: #cccccc;
    margin: 0;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cancel-button {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cancel-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.confirm-button {
    flex: 2;
    background: linear-gradient(135deg, #0066FF, #00FF88);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.confirm-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 102, 255, 0.4);
}

.confirm-button:active {
    transform: translateY(0);
}

/* Transaction Details in Success Popup */
.transaction-details {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: left;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.transaction-item:last-child {
    margin-bottom: 0;
}

.transaction-item span:first-child {
    color: #cccccc;
}

.transaction-item span:last-child {
    color: #00FF88;
    font-weight: 600;
}

/* Hero Section - Minimal spacing */
.hero-section {
    text-align: center;
    padding: 0.2rem 0; /* Minimal padding */
}

.hero-image-container {
    margin-bottom: 0.3rem; /* Minimal margin */
}

.multiplier-graphic {
    position: relative;
    display: inline-block;
    margin-bottom: 0.2rem; /* Minimal margin */
}

.multiplier-circle {
    width: 80px; /* Much smaller */
    height: 80px;
    background: linear-gradient(135deg, #0066FF, #00FF88);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.2rem; /* Minimal margin */
    animation: pulse 2s infinite;
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.5);
}

.multiplier-circle svg {
    color: white;
    width: 50px;
    height: 50px;
}

.multiplier-text {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: #00FF88;
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.hero-section h1 {
    font-size: 1.4rem; /* Smaller */
    font-weight: 700;
    margin-bottom: 0.4rem; /* Minimal margin */
    line-height: 1.3;
}

.highlight {
    color: #00FF88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.hero-description {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 0.5rem; /* Minimal margin */
}

/* Earning Module - Compact */
.earning-module {
    background: rgba(30, 30, 30, 0.8);
    padding: 1rem; /* Reduced */
    border-radius: 20px;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 102, 255, 0.2);
    position: relative;
    overflow: hidden;
    opacity: 0.5;
    pointer-events: none;
    transition: all 0.3s ease;
}

.earning-module.unlocked {
    opacity: 1;
    pointer-events: auto;
}

.earning-module.locked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.earning-module.locked::after {
    content: '🔒 Validação Necessária';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    z-index: 11;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Progress Icons Row */
.progress-icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem; /* Minimal margin */
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.progress-icons.visible {
    opacity: 1;
}

.progress-icon {
    width: 35px; /* Smaller */
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.bluetooth-progress-icon {
    background: linear-gradient(135deg, #0066FF, #00BFFF);
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.6);
    animation: bluetoothPulse 2s infinite;
}

.coin-progress-icon {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    animation: coinFloat 3s ease-in-out infinite;
}

.progress-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Connection Line */
.connection-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0066FF, #00BFFF, #00FF88, #FFD700);
    border-radius: 2px;
    transform: translateY(-50%);
    z-index: 1;
    animation: connectionFlow 2s linear infinite;
}

@keyframes connectionFlow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.progress-container {
    margin-bottom: 0.6rem; /* Minimal margin */
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #cccccc;
}

.progress-goal {
    color: #00FF88;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0066FF, #00FF88);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.progress-percentage {
    text-align: center;
    font-size: 0.9rem;
    color: #00FF88;
    font-weight: 600;
}

/* Earnings Display */
.earnings-display-container {
    background: rgba(0, 20, 40, 0.9);
    border: 1px solid rgba(0, 191, 255, 0.4);
    border-radius: 15px;
    padding: 0.8rem; /* Reduced */
    margin: 0.6rem 0; /* Minimal margin */
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.earnings-display-container.visible {
    opacity: 1;
}

.earnings-display-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.2), transparent);
    animation: scanLine 3s linear infinite;
}

.earnings-display {
    font-size: 1.3rem; /* Smaller */
    font-weight: 700;
    color: #00FF88;
    margin-bottom: 0.2rem; /* Minimal margin */
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.7);
    animation: textGlow 2s ease-in-out infinite alternate;
}

.status-display {
    font-size: 0.8rem; /* Smaller */
    color: #00BFFF;
    font-weight: 500;
}

/* Matrix Code Display - Compact */
.code-display {
    background: rgba(0, 10, 30, 0.95);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 10px;
    padding: 0.6rem; /* Reduced */
    margin: 0.6rem 0; /* Minimal margin */
    font-family: 'Courier New', monospace;
    font-size: 0.55rem; /* Smaller */
    line-height: 1.2;
    color: #00BFFF;
    text-align: left;
    height: 60px; /* Much smaller */
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.3);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.code-display.visible {
    opacity: 1;
}

.code-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 191, 255, 0.03) 2px,
            rgba(0, 191, 255, 0.03) 4px
        );
    pointer-events: none;
    animation: matrixScan 2s linear infinite;
}

.code-line {
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    margin-bottom: 1px; /* Minimal margin */
    position: relative;
    animation: matrixType 0.8s ease forwards;
    text-shadow: 0 0 5px rgba(0, 191, 255, 0.8);
}

.code-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #00BFFF;
    animation: cursor 1s infinite;
}

.code-line:nth-child(1) { animation-delay: 0.1s; }
.code-line:nth-child(2) { animation-delay: 0.3s; }
.code-line:nth-child(3) { animation-delay: 0.5s; }
.code-line:nth-child(4) { animation-delay: 0.7s; }
.code-line:nth-child(5) { animation-delay: 0.9s; }

/* Animations */
@keyframes bluetoothPulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 15px rgba(0, 102, 255, 0.6);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 0 25px rgba(0, 102, 255, 0.8);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 0 15px rgba(0, 102, 255, 0.6);
    }
}

@keyframes coinFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    }
    50% { 
        transform: translateY(-8px) rotate(180deg);
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
    }
}

@keyframes scanLine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.7);
    }
    100% {
        text-shadow: 0 0 30px rgba(0, 255, 136, 1), 0 0 40px rgba(0, 255, 136, 0.5);
    }
}

@keyframes matrixType {
    0% {
        opacity: 0;
        width: 0;
    }
    100% {
        opacity: 1;
        width: 100%;
    }
}

@keyframes matrixScan {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

@keyframes cursor {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.cta-button {
    width: 100%;
    background: linear-gradient(135deg, #0066FF, #00FF88);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.6rem; /* Minimal margin */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 102, 255, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button.earning-active {
    display: none;
}

.cta-button:disabled {
    background: rgba(102, 102, 102, 0.3);
    color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner.hidden {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.status-text {
    text-align: center;
    color: #00FF88;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    min-height: 1.5rem;
    display: none; /* Hide this completely since we only want status in the box */
}

.status-text.visible {
    opacity: 1;
}



/* Bottom Navigation */
/* --- ESTILOS PARA A NOVA NAVBAR --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.85); /* Fundo escuro com transparência */
    backdrop-filter: blur(12px); /* Efeito de vidro fosco */
    border-top: 1px solid rgba(51, 65, 85, 0.5); /* Borda sutil */
    padding: 0.5rem 1rem;
    z-index: 200;
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px; /* Limita a largura em telas grandes */
    margin: 0 auto; /* Centraliza a navbar */
    border-radius: 20px 20px 0 0; /* Bordas arredondadas no topo */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    cursor: pointer;
    color: #94a3b8; /* Cor para ícones inativos */
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.nav-item:hover {
    color: #ffffff; /* Cor ao passar o mouse */
    transform: translateY(-2px);
}

.nav-icon {
    width: 28px;
    height: 28px;
}

.nav-label {
    font-size: 0.7rem; /* 11.2px */
    font-weight: 500;
}

/* Estilo para o botão Home especial */
.nav-item-special {
    transform: translateY(-16px); /* Eleva o botão */
}

.nav-icon-home {
    position: relative;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--nexa-primary), var(--nexa-success));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.4);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-icon-home:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 12px 30px rgba(0, 255, 136, 0.5);
}

.nav-icon-home .shine-effect {
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.8s;
}

.nav-icon-home:hover .shine-effect {
    left: 150%;
}
/* --- ESTILOS PARA DEIXAR A NAVBAR "APAGADA" E SEM FUNÇÃO --- */

/* Aplica o estilo desativado para todos os itens, incluindo o botão Home */
.bottom-nav .nav-item,
.bottom-nav .nav-item-special {
    opacity: 0.4;           /* Deixa os ícones e textos "apagados" */
    pointer-events: none;   /* Impede qualquer clique ou interação */
    cursor: not-allowed;    /* Mostra o cursor de "não permitido" ao passar o mouse */
}

/* Garante que os efeitos de hover sejam removidos para reforçar o estado desativado */
.nav-item:hover,
.nav-item-special:hover {
    transform: none; /* Remove o efeito de "subir" no hover */
    color: #94a3b8;  /* Garante que a cor do texto não mude */
}

.nav-icon-home:hover {
    transform: none; /* Remove o efeito de escalar e girar do botão Home */
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.4); /* Mantém a sombra padrão sem o efeito de hover */
}

/* Remove o efeito de brilho do botão home */
.nav-icon-home:hover .shine-effect {
    left: -150%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .popup-overlay {
        padding: 0.5rem;
    }
    
    .welcome-popup {
        max-width: 350px;
        height: 80vh;
        max-height: 650px;
        min-height: 550px;
    }
    
    .popup-header {
        padding: 2rem 1.2rem 1rem;
    }
    
    .popup-logo {
        width: 46px;
        height: 46px;
    }
    
    .popup-logo svg {
        width: 26px;
        height: 26px;
    }
    
    .popup-logo-text {
        font-size: 1.8rem;
    }
    
    .popup-footer {
        padding: 1rem 1.5rem 2.5rem;
    }
    
    .bonus-button {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }
    
    
    .logo-text {
        font-size: 1rem;
    }
    
    .balance-container {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    main {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section {
        padding: 0.1rem 0; /* Minimal */
    }
    
    .hero-section h1 {
        font-size: 1.3rem;
    }
    
    .multiplier-circle {
        width: 70px;
        height: 70px;
    }
    
    .multiplier-circle svg {
        width: 40px;
        height: 40px;
    }
    
    .earning-module {
        padding: 0.8rem;
    }
    
              
    .progress-icon {
        width: 30px;
        height: 30px;
    }
    
    .progress-icon img {
        width: 16px;
        height: 16px;
    }
    
    .earnings-display {
        font-size: 1.1rem;
    }
    
    .code-display {
        font-size: 0.5rem;
        height: 50px;
    }
    
    .withdrawal-header h1 {
        font-size: 1.8rem;
    }
    
    .balance-amount {
        font-size: 2rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .cancel-button,
    .confirm-button {
        flex: none;
    }
}

@media (max-width: 480px) {
    .welcome-popup {
        max-width: 320px;
        height: 75vh;
        max-height: 600px;
        min-height: 500px;
    }
    
    .popup-header {
        padding: 1.5rem 1rem 0.5rem;
    }
    
    .popup-logo {
        width: 42px;
        height: 42px;
    }
    
    .popup-logo svg {
        width: 24px;
        height: 24px;
    }
    
    .popup-logo-text {
        font-size: 1.6rem;
    }
    
    .popup-footer {
        padding: 0.8rem 1.2rem 2rem;
    }
    
    .bonus-button {
        padding: 1.1rem 1.3rem;
        font-size: 0.95rem;
        letter-spacing: 0.6px;
    }
    
    .hero-section {
        padding: 0.05rem 0; /* Minimal */
    }
    
    .hero-description {
        margin-bottom: 0.4rem;
    }
    
    .progress-icon {
        width: 28px;
        height: 28px;
    }
    
    .progress-icon img {
        width: 14px;
        height: 14px;
    }
    
    .earnings-display {
        font-size: 1rem;
    }
    
    .code-display {
        font-size: 0.45rem;
        height: 45px;
    }
    
    .withdrawal-header h1 {
        font-size: 1.6rem;
    }
    
    .balance-amount {
        font-size: 1.8rem;
    }
    
    .withdrawal-form-container {
        padding: 1rem;
    }
    
    .processing-info {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Animation for fade transitions */
.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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