:root {
    --primary: #FF3B30; /* Vermelho / Viral For Money */
    --primary-dark: #D32F2F;
    --bg-light: #f1f4f9;
    --text-dark: #121212;
    --text-muted: #5f6368;
    --white: #ffffff;
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.05);
    --border-radius: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

/* Loader Screen Aprimorado */
#loader-screen {
    justify-content: center;
    align-items: center;
    background: var(--white);
    padding: 20px;
}

.loader-container {
    width: 100%;
    max-width: 350px;
    text-align: center;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--primary);
}

.logo span {
    color: var(--text-dark);
    opacity: 0.8;
}

.loader-security {
    margin-top: 15px;
    font-size: 0.7rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-weight: 600;
    opacity: 0.8;
}

.processing-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(50, 188, 173, 0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1.2s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 10px;
    margin-top: 20px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

.loader-subtext {
    margin-top: 25px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Dashboard Styles */
header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    border-bottom: 1px solid #eee;
}

.logo-small {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary);
}

.logo-small span {
    color: var(--primary);
}

.secure-badge {
    background: #e6f7f5;
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.container {
    padding: 15px;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.dashboard-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.user-greeting {
    margin-bottom: 25px;
}

.user-greeting h2 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.user-greeting p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Release Alert */
.release-alert {
    background: #fff9e6;
    border: 1px solid #ffe58f;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.alert-icon {
    font-size: 1.5rem;
}

.release-alert p {
    font-size: 0.95rem;
    color: #856404;
    line-height: 1.4;
}

.release-alert strong {
    color: #d93025;
}

.balance-card {
    background: linear-gradient(135deg, #121212 0%, #2c3e50 100%);
    color: var(--white);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.balance-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 8px;
}

.balance-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.pix-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Setup Box (PIX Input) */
.setup-box {
    background: #fdfdfd;
    border: 2px dashed #ddd;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.setup-box h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.setup-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    text-align: center;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: var(--primary);
}

.validate-button {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}

.mini-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(50, 188, 173, 0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Success Message */
.success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #e6f7f5;
    color: var(--primary-dark);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
    border: 1px solid var(--primary);
}

.check-icon {
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(50, 188, 173, 0.2);
}

.cta-button {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 20px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(50, 188, 173, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.cta-button small {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.9;
}

.guarantee-box {
    text-align: center;
    margin-top: 25px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

#timer {
    color: #d93025;
    font-weight: 700;
}

footer {
    padding: 40px 20px;
    text-align: center;
}

.security-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    opacity: 0.5;
    margin-bottom: 20px;
}

.security-logos img {
    height: 30px;
    filter: grayscale(1);
}

footer p {
    font-size: 0.75rem;
    color: #aaa;
}

/* Animations */
.fade-in {
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* PC Support */
@media (min-width: 768px) {
    .container {
        padding-top: 40px;
    }
}

/* Estilos da Tela de Login Simulada */
#login-screen {
    justify-content: center;
    align-items: center;
    background: var(--bg-light);
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.login-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    margin: 20px 0 25px;
    text-align: left;
}

.login-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
    text-align: center;
}

.login-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    text-align: center;
    font-weight: 500;
}

.input-field {
    margin-bottom: 20px;
}

.input-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-field input {
    width: 100%;
    padding: 15px;
    border: 1.5px solid #e1e5eb;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    background-color: #fafbfc;
}

.input-field input:focus {
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(50, 188, 173, 0.1);
}

.login-button {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 6px 20px rgba(50, 188, 173, 0.2);
    margin-top: 5px;
}

.login-button:hover {
    background: var(--primary-dark);
}

.login-button:active {
    transform: scale(0.98);
}

.error-text {
    color: #d93025;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    background: #fdf2f2;
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 3px solid #d93025;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-text svg {
    flex-shrink: 0;
}

.password-hint {
    margin-top: 20px;
    background: #fdf2f2;
    border: 1px dashed #f5c6cb;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
}

.password-hint p {
    font-size: 0.8rem;
    color: var(--primary-dark);
    margin: 0;
    line-height: 1.4;
}

.first-access-option {
    margin: 15px 0;
    display: flex;
    align-items: center;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.first-access-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
    font-style: italic;
    font-weight: 500;
}

/* Estilos da Tela de Boas-Vindas Splash */
#welcome-screen {
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #121212 0%, #1f2d3d 100%);
    padding: 20px;
    color: var(--white);
    text-align: center;
}

.welcome-container {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.welcome-icon {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-icon img {
    z-index: 2;
    width: 80px;
    height: 80px;
}

.circle-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(50, 188, 173, 0.2);
    border-radius: 50%;
    animation: welcomePulse 2s infinite ease-in-out;
    z-index: 1;
}

@keyframes welcomePulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(1); opacity: 0.8; }
}

.welcome-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-shadow: 0 4px 10px rgba(50, 188, 173, 0.3);
}

.welcome-subtitle {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 40px;
    font-weight: 400;
}

.welcome-dots {
    display: flex;
    gap: 8px;
}

.welcome-dots .dot {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: dotFlashing 1.2s infinite alternate;
}

.welcome-dots .dot:nth-child(2) {
    animation-delay: 0.4s;
}

.welcome-dots .dot:nth-child(3) {
    animation-delay: 0.8s;
}

@keyframes dotFlashing {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

/* Menu de Navegação Superior (Estilo App) */
.top-nav {
    background: var(--white);
    border: 1px solid #e1e5eb;
    border-radius: 16px;
    display: flex;
    justify-content: space-around;
    padding: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-item {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    flex: 1;
    position: relative;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
}

.nav-item.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(50, 188, 173, 0.3);
}

.nav-icon {
    width: 22px;
    height: 22px;
    transition: filter 0.2s;
}

/* Filtro para converter ícone em branco quando ativo, ou cinza quando inativo */
.nav-item.active .nav-icon {
    filter: brightness(0) invert(1);
}

.nav-item:not(.active) .nav-icon {
    filter: invert(48%) sepia(13%) saturate(307%) hue-rotate(170deg) brightness(92%) contrast(88%);
}

.nav-badge {
    position: absolute;
    top: 6px;
    right: 15px;
    background: #ff3b30;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(255, 59, 48, 0.4);
}

.nav-item.active .nav-badge {
    background: #ffffff;
    color: #ff3b30;
}

/* Sistema de Abas (Tab Views) */
.tab-view {
    display: none;
}

.tab-view.active {
    display: block;
}

/* Estilos da Central de Tarefas */
.tasks-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.tasks-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #f1f4f9;
    padding-bottom: 15px;
}

.tasks-header h2 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.tasks-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Overlay de bloqueio de tarefas */
.blocked-tasks-overlay {
    text-align: center;
    padding: 25px 15px;
    background: #fafbfc;
    border-radius: 16px;
    border: 1px solid #e1e5eb;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lock-icon-container {
    background: #fff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    animation: lockBounce 2.5s infinite ease-in-out;
}

@keyframes lockBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.blocked-tasks-overlay h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 10px;
}

.blocked-message-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.pending-badge-box {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(133, 100, 4, 0.05);
}

.warning-emoji {
    font-size: 1.2rem;
    animation: emojiBlink 1.5s infinite;
}

@keyframes emojiBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.action-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 25px;
    font-weight: 500;
}

.redirect-withdrawal-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 6px 20px rgba(50, 188, 173, 0.2);
    width: 100%;
}

.redirect-withdrawal-button:hover {
    background: var(--primary-dark);
}

.redirect-withdrawal-button:active {
    transform: scale(0.98);
}