:root {
    --background-color: #121A1E;
    /* Cor de fundo */
    --text-color: white;
    /* Cor do texto */
    --primary-color: #152731;
    /* Cor primária */
    --secondary-color: #335D67;
    /* Cor secundária */
    --dark-background: #152731;
    /* Cor de fundo escuro */
    --font-family: Arial, sans-serif;
    /* Fonte padrão */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    max-width: 400px;
    margin: 0 auto;
    padding: 6px;
    text-align: center;
}

header h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

header p {
    font-size: 16px;
    margin-bottom: 15px;
}

.welcome-message {
    background-color: var(--primary-color);
    padding: 1px;
    border-radius: 8px;
    display: flex;
    /* Alinha o ícone e o texto em uma linha */
    align-items: center;
    /* Centraliza verticalmente */
    overflow: hidden;
    /* Oculta o excesso de texto */
    position: relative;
    /* Necessário para o efeito de animação */
    margin-bottom: 25px;
}

.news-icon {
    font-size: 20px;
    /* Tamanho do ícone */
    margin-right: 10px;
    /* Espaço entre o ícone e o texto */
    color: var(--text-color);
    /* Cor do ícone */
}

.marquee {
    display: inline-block;
    /* Para permitir o movimento do texto */
    white-space: nowrap;
    /* Impede a quebra de linha */
    animation: marquee 10s linear infinite;
    /* Animação contínua */
}

.marquee p {
    margin-top: 10px;
    /* Ajuste o valor conforme necessário */
    margin-bottom: 10px;
}

/* @keyframes marquee {
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } 
} */

.image-banner img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 20px;
}

.actions {
    display: flex;
    justify-content: space-around;
    text-decoration: none;
    padding: 0px;
    background-color: var(--dark-background);
    /* Cor de fundo para a área de ações */
    border-radius: 10px;
    /* Bordas arredondadas para o contêiner */
    margin-bottom: 20px;
    white-space: nowrap;
    /* Impede a quebra de linha */
}

.action-btn {
    background-color: transparent;
    /* Sem fundo individual para os botões */
    border: none;
    color: var(--text-color);
    padding: 10px;
    display: flex;
    text-decoration: none;
    flex-direction: column;
    /* Empilha ícone e texto verticalmente */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 1;
    /* Garante que os botões ocupem largura igual */
    text-align: center;
}

.action-btn i {
    font-size: 24px;
    /* Tamanho do ícone */
    margin-bottom: 5px;
    /* Espaço entre ícone e texto */
}

.action-btn span {
    font-size: 14px;
}

.investment-card {
    background-color: var(--dark-background);
    /* Cor de fundo do cartão */
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    /* Margem entre os cartões */
    display: flex;
    align-items: center;
    gap: 15px;
}

.investment-card:last-child {
    margin-bottom: 100px;
    /* Aumente a margem inferior do último cartão */
}


.investment-image {
    width: 100px;
    height: auto;
    border-radius: 8px;
}

.investment-details {
    flex-grow: 1;
    text-align: left;
}

.investment-card h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.investment-card p {
    font-size: 14px;
    margin-bottom: 5px;
}

.invest-btn {
    background-color: var(--secondary-color);
    border: none;
    color: var(--text-color);
    padding: 10px;
    border-radius: 20px;
    cursor: pointer;
    width: 100%;
}



.bottom-nav {
    display: flex;
    justify-content: space-around;
    background-color: var(--primary-color);
    padding: 10px;
    width: 100%;
    /* Garante que a nav ocupe a largura total */
    position: fixed;
    /* Fixa a nav na parte inferior */
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    /* Remove borda arredondada para largura total */
}

.logo-container {
    text-align: center;
    /* Centraliza o conteúdo */
    margin-bottom: 20px;
    /* Espaço inferior */
}

.logo-img {
    max-width: 190px;
    /* Tamanho máximo da logo */
    height: auto;
    /* Mantém a proporção da imagem */
    padding-bottom: 15px;
    padding-top: 12px;
}

.stats-cards {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 10px;
    /* Espaçamento entre os cards */
}

.stats-card {
    background-color: var(--dark-background);
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
}

.stats-card i {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.stats-card p {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 5px;
}

.stats-card span {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
}



.bottom-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    /* Garante que cada link ocupe espaço igual */
}

.bottom-nav a i {
    font-size: 20px;
    margin-bottom: 5px;
}

.mobile-only {
    display: block;
    /* Exibe o conteúdo por padrão */
}

/* Oculta o conteúdo em telas maiores que 768px - REMOVIDO PARA EXIBIR NO DESKTOP TAMBÉM */
/* @media (min-width: 768px) {
    .mobile-only {
        display: none;
    }
} */

/* =========================================
   NEW DESIGN STYLES (Matching Reference)
   ========================================= */

:root {
    --new-header-bg: #0d1b52;
    --new-bg: #f8f9fd;
    --card-bg: #ffffff;
    --text-dark: #333333;
    --text-light: #ffffff;
    --accent-orange: #d9822b;
    --accent-purple: #6a1b9a;
    --accent-green: #2e7d32;
    --nav-bg: #212121;
    --nav-active: #1a237e;
}

body {
    background-color: var(--new-bg) !important;
    color: var(--text-dark);
}

/* Header */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 10px 20px;
    background-color: var(--new-header-bg);
    color: white;
}

.header-left .logo-img {
    max-height: 40px;
    padding: 0;
}

.header-right .profile-link {
    color: white;
    font-size: 24px;
}

/* Page Title */
.page-title-section {
    padding: 20px 20px 10px 20px;
    background-color: white;
    text-align: left;
    border-radius: 0 0 20px 20px;
}

.page-title-section h1 {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    margin-bottom: 5px;
}

.page-title-section p {
    color: #666;
    font-size: 14px;
}

/* Stats Cards - New Design */
.main-container .stats-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.main-container .stats-card {
    background: white;
    border-radius: 15px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-container .stats-card i {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--accent-purple);
}

.main-container .stats-card p {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.main-container .stats-card span {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    display: block;
}

/* Hide PHP Warnings/Errors */
br[style*="display"]+b,
b:contains("Deprecated"),
b:contains("Warning"),
font[color="red"] {
    display: none !important;
}

/* Plan Card */
.products-list {
    padding: 20px;
}

.plan-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
    padding-bottom: 20px;
}

.plan-image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.plan-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plan-content {
    padding: 20px;
}

.plan-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #000;
}

.plan-investment-range {
    background-color: #f5f5f5;
    border-radius: 10px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.plan-investment-range .currency {
    font-weight: bold;
    margin-right: 5px;
    color: #666;
}

.plan-investment-range .label {
    font-size: 12px;
    color: #888;
    margin-right: auto;
}

.plan-investment-range .value {
    color: var(--accent-orange);
    font-weight: bold;
    font-size: 18px;
}

.plan-stats-grid {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-box {
    flex: 1;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-box.purple {
    background-color: #f3eafd;
    color: var(--accent-purple);
}

.stat-box.gray {
    background-color: #f5f5f5;
    color: #333;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    margin-top: 5px;
}

.stat-label {
    font-size: 12px;
}

/* Simulation */
.plan-simulation {
    background-color: #f3eafd;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
}

.simulation-header {
    font-weight: bold;
    color: var(--accent-purple);
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.simulation-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

.simulation-row.total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.green-text {
    color: var(--accent-green);
}

.daily-note {
    text-align: right;
    font-size: 11px;
    font-style: italic;
    color: var(--accent-purple);
    margin-top: 5px;
}

.plan-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, #6a1b9a 0%, #4a148c 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
}

/* Floating Nav */
.bottom-nav-floating {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: #212121;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.nav-item {
    color: #888;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
}

.nav-item i {
    font-size: 18px;
    margin-bottom: 3px;
}

.nav-item.active {
    color: white;
}

.big-home {
    position: relative;
    top: -30px;
}

.home-circle {
    width: 55px;
    height: 55px;
    background-color: #1a237e;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 5px solid var(--new-bg);
    color: white;
    font-size: 20px;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
}

/* Actions Section - Profile Page */
.main-container .actions {
    padding: 20px;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.main-container .actions p {
    color: #666;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: left;
}

.main-container .actions .action-btn {
    background: white;
    border-radius: 15px;
    padding: 18px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: #333;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.main-container .actions .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.main-container .actions .action-btn i {
    font-size: 24px;
    margin-right: 15px;
    margin-bottom: 0;
    color: var(--accent-purple);
}

.main-container .actions .action-btn span {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.main-container .actions .spacer {
    display: none;
}

/* Form Container - New Design */
.main-container .form-container {
    padding: 20px;
}

.main-container form {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-container form label {
    display: block;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 15px;
}

.main-container form label:first-of-type {
    margin-top: 0;
}

.main-container form input[type="text"],
.main-container form input[type="email"],
.main-container form input[type="tel"],
.main-container form input[type="number"],
.main-container form input[type="password"],
.main-container form select,
.main-container form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    color: #333 !important;
    background: #f8f9fd !important;
    transition: all 0.3s ease;
}

.main-container .input-group {
    background: #f8f9fd;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 15px;
}

.main-container .input-group input {
    background: transparent !important;
    border: none !important;
}

.main-container .input-group label i,
.main-container .input-group .toggle-password i {
    color: #666 !important;
}

.main-container form input:focus,
.main-container form select:focus,
.main-container form textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: white !important;
}

.main-container form button.invest-btn,
.main-container form button[type="submit"] {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, #6a1b9a 0%, #4a148c 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.main-container form button.invest-btn:hover,
.main-container form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 27, 154, 0.3);
}

/* Info Card - Instructions */
.main-container .info-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.main-container .info-card h3 {
    color: var(--accent-purple);
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-container .info-card h3 i {
    font-size: 18px;
}

.main-container .info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-container .info-card ul li {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.main-container .info-card ul li:before {
    content: "•";
    color: var(--accent-purple);
    font-weight: bold;
    font-size: 18px;
    position: absolute;
    left: 5px;
}

/* Investment Detail Page */
.main-container .investment-detail-container {
    padding: 20px;
}

.main-container .image-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-container .image-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.main-container .product-title {
    font-size: 22px;
    font-weight: bold;
    color: #000;
    padding: 20px 20px 10px 20px;
}

.main-container .product-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    padding: 0 20px 20px 20px;
}

.main-container .details-container {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-container .details-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-purple);
    margin-bottom: 15px;
}

.main-container .details-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.main-container .details-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.main-container .details-table tr:last-child {
    border-bottom: none;
}

.main-container .details-table th {
    text-align: left;
    padding: 15px 10px;
    font-size: 14px;
    color: #666;
    font-weight: 600;
    width: 50%;
}

.main-container .details-table td {
    text-align: right;
    padding: 15px 10px;
    font-size: 16px;
    color: #000;
    font-weight: bold;
}

.main-container .confirm-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, #6a1b9a 0%, #4a148c 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.main-container .confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 27, 154, 0.3);
}

/* Auth Pages Styles */
.main-container .auth-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

.main-container .auth-link a {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: bold;
}

.main-container .auth-link a:hover {
    text-decoration: underline;
}

.main-container .remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    margin: 15px 0;
    cursor: pointer;
}

.main-container .remember-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Reports Page Styles */
.main-container .reports-container {
    padding: 20px;
}

.main-container .tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.main-container .tabs .tab {
    flex: 1;
    padding: 12px 20px;
    background: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.main-container .tabs .tab.active {
    background: linear-gradient(90deg, #6a1b9a 0%, #4a148c 100%);
    color: white;
}

.main-container .tabs .tab:hover:not(.active) {
    background: #f0f0f0;
}

.main-container .tab-content {
    display: none;
}

.main-container .tab-content.active {
    display: block;
}

.main-container .record-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-container .record-card p {
    margin: 8px 0;
    font-size: 14px;
    color: #333;
}

.main-container .record-card p strong {
    color: #666;
    font-weight: 600;
}