/* Paleta de Cores e Variáveis */
:root {
    --bg-app: #0d0f12;       /* Fundo quase preto */
    --bg-card: #161920;      /* Cinza escuro para os cards */
    --royal-blue: #2563eb;   /* Azul Royal moderno */
    --royal-blue-glow: #3b82f680; 
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-radius: 24px;   /* Bordas bem arredondadas */
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    background-color: #000;
    color: var(--text-main);
    display: flex;
    justify-content: center;
}

.app-container {
    width: 100%;
    max-width: 414px;
    min-height: 100vh;
    background-color: var(--bg-app);
    padding: 24px 20px;
    position: relative;
    overflow: hidden;
}

/* Header & Abas */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

h1 { font-size: 24px; font-weight: 600; }
h1 span { color: var(--royal-blue); }

.tabs {
    display: flex;
    background-color: var(--bg-card);
    border-radius: 100px;
    padding: 4px;
    margin-bottom: 24px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 0;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background-color: var(--royal-blue);
    color: #fff;
    box-shadow: 0 4px 12px var(--royal-blue-glow);
}

/* Esconder e Mostrar Abas */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

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

/* Estilo dos Cards */
.card {
    padding: 24px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    text-align: center;
}

.card h2 { font-size: 14px; color: var(--text-muted); font-weight: 500; margin-bottom: 8px; }
.card h3 { font-size: 32px; font-weight: 700; }

.card-royal { background: linear-gradient(135deg, #1e3a8a, var(--royal-blue)); box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2); }
.card-dark { background-color: var(--bg-card); }
.card-outline { border: 1px solid #2e3646; background-color: transparent; }

/* Inputs Interativos */
.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.input-group label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    margin-left: 12px;
}

.input-group input {
    background-color: var(--bg-card);
    border: 1px solid #2e3646;
    color: var(--text-main);
    padding: 16px;
    border-radius: 16px;
    font-size: 16px;
    outline: none;
    transition: border 0.3s ease;
}

.input-group input:focus { border-color: var(--royal-blue); }

/* Botões */
.action-btn {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: none;
    background-color: var(--bg-card);
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.ai-glow {
    background-color: var(--royal-blue);
    box-shadow: 0 0 20px var(--royal-blue-glow);
    transition: transform 0.2s;
}

.ai-glow:active { transform: scale(0.98); }

/* Listas de Investimento */
.ai-subtitle { font-size: 12px; color: var(--royal-blue); margin-bottom: 20px; }
.investment-list { display: flex; flex-direction: column; gap: 16px; }
.inv-item { display: flex; justify-content: space-between; align-items: center; background-color: var(--bg-card); padding: 16px; border-radius: 16px; }
.inv-item span { font-size: 14px; color: var(--text-muted); }
.text-royal { color: #60a5fa; font-weight: 600; }