/* =====================================================
   CARTEIRA DE INVESTIMENTOS - CSS
   v2.1 - Corrigido cor do valor
   ===================================================== */

/* Botão Flutuante */
.investment-fab-container {
    position: fixed;
    bottom: 100px;
    right: 90px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.investment-fab {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00c853, #00e676);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 200, 83, 0.5), 0 0 40px rgba(0, 230, 118, 0.3);
    transition: all 0.3s ease;
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.4);
}

.investment-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 200, 83, 0.7), 0 0 60px rgba(0, 230, 118, 0.4);
}

.investment-fab-icon {
    font-size: 28px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.investment-fab-label {
    background: rgba(0, 0, 0, 0.85);
    color: #00e676;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.investment-fab.pulsing {
    animation: investmentPulse 2s ease-in-out infinite;
}

@keyframes investmentPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(0, 200, 83, 0.5), 0 0 40px rgba(0, 230, 118, 0.3);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 8px 40px rgba(0, 200, 83, 0.8), 0 0 80px rgba(0, 230, 118, 0.5);
    }
}

.investment-fab-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    border-radius: 11px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 8px rgba(238, 90, 36, 0.5);
}

/* =====================================================
   MODAL PRINCIPAL
   ===================================================== */
.investment-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.investment-modal-overlay.active {
    display: flex;
}

.investment-modal {
    background: linear-gradient(180deg, #1a1a2e 0%, #0d0d1a 100%);
    border-radius: 24px;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid rgba(0, 200, 83, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 100px rgba(0, 200, 83, 0.1);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.investment-modal-header {
    background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.investment-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.investment-modal-title-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.investment-modal-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.investment-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.investment-modal-content {
    padding: 24px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

/* Tabs */
.investment-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
}

.investment-tab {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.investment-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.investment-tab.active {
    background: linear-gradient(135deg, #00c853, #00e676);
    color: #fff;
    border-color: #00c853;
}

/* =====================================================
   ABA DETALHES
   ===================================================== */
.investment-details-section {
    margin-bottom: 24px;
}

.investment-details-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
}

.investment-details-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #00e676;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.investment-details-card-title .icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 230, 118, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.investment-details-text {
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.investment-details-text strong {
    color: #fff;
}

.investment-details-highlight {
    background: rgba(0, 230, 118, 0.1);
    border-left: 4px solid #00e676;
    padding: 16px;
    border-radius: 0 12px 12px 0;
    margin: 16px 0;
}

.investment-details-highlight p {
    color: #fff;
    margin: 0;
    font-size: 14px;
}

/* Tabela de Planos */
.investment-plans-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.investment-plans-table th {
    background: rgba(0, 230, 118, 0.1);
    color: #00e676;
    padding: 12px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.investment-plans-table td {
    padding: 12px 16px;
    text-align: center;
    color: #fff;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.investment-plans-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.investment-plans-table .win { color: #10b981; font-weight: 600; }
.investment-plans-table .loss { color: #ef4444; font-weight: 600; }
.investment-plans-table .bonus { color: #f59e0b; font-weight: 600; }

/* Exemplos */
.investment-example-box {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.1), rgba(0, 230, 118, 0.05));
    border: 1px solid rgba(0, 230, 118, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin: 16px 0;
}

.investment-example-title {
    color: #00e676;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.investment-example-content {
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.8;
}

.investment-example-content .result {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    margin: 4px 0;
}

.investment-example-content .result.positive {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.investment-example-content .result.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Lista de Regras */
.investment-rules-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.investment-rules-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #d1d5db;
    font-size: 14px;
}

.investment-rules-list li:last-child {
    border-bottom: none;
}

.investment-rules-list li .check {
    width: 24px;
    height: 24px;
    background: rgba(0, 230, 118, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00e676;
    font-size: 12px;
    flex-shrink: 0;
}

/* =====================================================
   STEPS DE CRIAÇÃO
   ===================================================== */
.investment-step {
    display: none;
}

.investment-step.active {
    display: block;
    animation: stepFadeIn 0.3s ease;
}

@keyframes stepFadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.investment-step-header {
    text-align: center;
    margin-bottom: 24px;
}

.investment-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #00c853, #00e676);
    border-radius: 50%;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
}

.investment-step-title {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.investment-step-subtitle {
    color: #9ca3af;
    font-size: 14px;
}

/* Grid de Ativos */
.investment-assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.investment-asset-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    position: relative;
}

.investment-asset-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 200, 83, 0.3);
}

.investment-asset-card.selected {
    background: rgba(0, 200, 83, 0.1);
    border-color: #00c853;
    box-shadow: 0 0 20px rgba(0, 200, 83, 0.2);
}

.investment-asset-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f7931a, #ff9500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.investment-asset-icon.eth { background: linear-gradient(135deg, #627eea, #4c6ce0); }
.investment-asset-icon.bnb { background: linear-gradient(135deg, #f3ba2f, #d4a012); }
.investment-asset-icon.sol { background: linear-gradient(135deg, #9945ff, #14f195); }
.investment-asset-icon.xrp { background: linear-gradient(135deg, #00aae4, #0088cc); }
.investment-asset-icon.ada { background: linear-gradient(135deg, #0033ad, #0052ff); }
.investment-asset-icon.doge { background: linear-gradient(135deg, #c2a633, #a08c28); }
.investment-asset-icon.dot { background: linear-gradient(135deg, #e6007a, #cc006b); }
.investment-asset-icon.matic { background: linear-gradient(135deg, #8247e5, #6b3cc9); }
.investment-asset-icon.ltc { background: linear-gradient(135deg, #bfbbbb, #a0a0a0); }

.investment-asset-name {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.investment-asset-symbol {
    color: #9ca3af;
    font-size: 12px;
    margin-bottom: 8px;
}

.investment-asset-change {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-block;
}

.investment-asset-change.positive {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.investment-asset-change.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.investment-asset-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #00c853;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.investment-asset-card.selected .investment-asset-check {
    display: flex;
}

.investment-selection-counter {
    text-align: center;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(0, 200, 83, 0.1);
    border-radius: 12px;
    color: #00e676;
    font-size: 14px;
    font-weight: 600;
}

.investment-selection-counter span {
    font-size: 20px;
}

/* Seleção de posição */
.investment-positions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.investment-position-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.investment-position-asset {
    display: flex;
    align-items: center;
    gap: 12px;
}

.investment-position-asset-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #f7931a, #ff9500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

.investment-position-asset-icon.eth { background: linear-gradient(135deg, #627eea, #4c6ce0); }
.investment-position-asset-icon.bnb { background: linear-gradient(135deg, #f3ba2f, #d4a012); }
.investment-position-asset-icon.sol { background: linear-gradient(135deg, #9945ff, #14f195); }
.investment-position-asset-icon.xrp { background: linear-gradient(135deg, #00aae4, #0088cc); }
.investment-position-asset-icon.ada { background: linear-gradient(135deg, #0033ad, #0052ff); }
.investment-position-asset-icon.doge { background: linear-gradient(135deg, #c2a633, #a08c28); }
.investment-position-asset-icon.dot { background: linear-gradient(135deg, #e6007a, #cc006b); }
.investment-position-asset-icon.matic { background: linear-gradient(135deg, #8247e5, #6b3cc9); }
.investment-position-asset-icon.ltc { background: linear-gradient(135deg, #bfbbbb, #a0a0a0); }

.investment-position-name {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.investment-position-price {
    color: #9ca3af;
    font-size: 12px;
}

.investment-position-buttons {
    display: flex;
    gap: 8px;
}

.investment-position-btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    min-width: 100px;
}

.investment-position-btn.buy {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.investment-position-btn.buy:hover,
.investment-position-btn.buy.selected {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

.investment-position-btn.sell {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.investment-position-btn.sell:hover,
.investment-position-btn.sell.selected {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

/* Seleção de Plano */
.investment-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.investment-plan-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.investment-plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00c853, #00e676);
    opacity: 0;
    transition: opacity 0.3s;
}

.investment-plan-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 200, 83, 0.3);
    transform: translateY(-4px);
}

.investment-plan-card.selected {
    background: rgba(0, 200, 83, 0.1);
    border-color: #00c853;
}

.investment-plan-card.selected::before {
    opacity: 1;
}

.investment-plan-duration {
    font-size: 32px;
    font-weight: 800;
    color: #00e676;
    margin-bottom: 4px;
}

.investment-plan-label {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 16px;
}

.investment-plan-min {
    background: rgba(0, 200, 83, 0.1);
    color: #00e676;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    display: inline-block;
}

.investment-plan-rates {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.investment-plan-rate {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.investment-plan-rate:last-child {
    border-bottom: none;
}

.investment-plan-rate-label {
    color: #9ca3af;
}

.investment-plan-rate-value {
    font-weight: 600;
}

.investment-plan-rate-value.win { color: #10b981; }
.investment-plan-rate-value.loss { color: #ef4444; }
.investment-plan-rate-value.bonus { color: #f59e0b; }

/* Input de Valor */
.investment-amount-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.investment-amount-label {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 12px;
    display: block;
}

.investment-amount-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 4px;
    transition: border-color 0.3s;
}

.investment-amount-input-wrap:focus-within {
    border-color: #00c853;
}

.investment-amount-currency {
    padding: 12px 16px;
    color: #00e676 !important;
    font-weight: 700 !important;
    font-size: 20px !important;
}

.investment-amount-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    padding: 12px;
    outline: none;
}

.investment-amount-input::placeholder {
    color: #6b7280 !important;
}

.investment-amount-info {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 13px;
}

.investment-amount-info span {
    color: #9ca3af;
}

.investment-amount-info strong {
    color: #fff;
}

/* Resumo */
.investment-summary {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.1), rgba(0, 230, 118, 0.05));
    border: 1px solid rgba(0, 200, 83, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.investment-summary-title {
    color: #00e676;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.investment-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    color: #ffffff;
}

.investment-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.investment-summary-item:last-child {
    border-bottom: none;
}

.investment-summary-item span:first-child {
    color: #9ca3af;
}

.investment-summary-item span:last-child {
    color: #ffffff;
    font-weight: 600;
}

/* Botões de Navegação */
.investment-nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

.investment-btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.investment-btn-back {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.investment-btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
}

.investment-btn-next {
    background: linear-gradient(135deg, #00c853, #00e676);
    color: #fff;
    margin-left: auto;
}

.investment-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 200, 83, 0.4);
}

.investment-btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.investment-btn-confirm {
    background: linear-gradient(135deg, #00c853, #00e676);
    color: #fff;
    flex: 1;
    justify-content: center;
    font-size: 16px;
}

.investment-btn-confirm:hover {
    box-shadow: 0 8px 20px rgba(0, 200, 83, 0.4);
}

.investment-btn-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =====================================================
   MINHAS CARTEIRAS
   ===================================================== */
.investment-portfolios-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.investment-portfolio-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s;
}

.investment-portfolio-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 200, 83, 0.3);
}

.investment-portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.investment-portfolio-id {
    color: #00e676;
    font-size: 14px;
    font-weight: 600;
}

.investment-portfolio-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.investment-portfolio-status.active {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.investment-portfolio-status.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.investment-portfolio-progress {
    margin-bottom: 16px;
}

.investment-portfolio-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.investment-portfolio-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00c853, #00e676);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.investment-portfolio-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #9ca3af;
}

.investment-portfolio-assets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.investment-portfolio-asset-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 12px;
    color: #fff;
}

.investment-portfolio-asset-tag .win {
    color: #10b981;
}

.investment-portfolio-asset-tag .loss {
    color: #ef4444;
}

/* FOOTER DAS CARTEIRAS - CORRIGIDO COR PRETA */
.investment-portfolio-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
}

.investment-portfolio-footer span:first-child {
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
}

.investment-portfolio-return {
    font-size: 18px;
    font-weight: 700;
}

.investment-portfolio-return.positive {
    color: #10b981 !important;
}

.investment-portfolio-return.negative {
    color: #ef4444 !important;
}

/* Empty State */
.investment-empty {
    text-align: center;
    padding: 60px 20px;
}

.investment-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.investment-empty-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.investment-empty-text {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .investment-modal {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .investment-tabs {
        flex-wrap: wrap;
    }

    .investment-tab {
        flex: 1;
        text-align: center;
        padding: 10px 12px;
        font-size: 12px;
    }

    .investment-plans-grid {
        grid-template-columns: 1fr;
    }

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

    .investment-position-item {
        flex-direction: column;
        align-items: stretch;
    }

    .investment-position-buttons {
        justify-content: stretch;
    }

    .investment-position-btn {
        flex: 1;
    }

    .investment-fab-container {
        bottom: 80px;
        right: 80px;
    }

    .investment-fab {
        width: 50px;
        height: 50px;
    }

    .investment-fab-icon {
        font-size: 22px;
    }
}

/* =====================================================
   DETALHES EXPANDÍVEIS DAS CARTEIRAS
   ===================================================== */

.investment-expand-btn {
    width: 100%;
    padding: 12px;
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid rgba(0, 200, 83, 0.3);
    border-radius: 8px;
    color: #00e676;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 12px;
}

.investment-expand-btn:hover {
    background: rgba(0, 200, 83, 0.2);
}

.investment-portfolio-card.expanded .investment-expand-btn {
    background: rgba(0, 200, 83, 0.2);
    border-color: #00e676;
}

/* Footer melhorado */
.investment-portfolio-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.investment-portfolio-invested {
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
}

.investment-portfolio-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.investment-portfolio-score {
    color: #9ca3af;
    font-size: 13px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

/* Tabela de Ativos */
.investment-assets-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 1000px; }
}

.investment-assets-table {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.investment-assets-table-header {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1.2fr;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 200, 83, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.investment-assets-table-header span {
    color: #00e676;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.investment-assets-table-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1.2fr;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
    transition: background 0.2s;
}

.investment-assets-table-row:last-child {
    border-bottom: none;
}

.investment-assets-table-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.investment-assets-table-row.win {
    background: rgba(16, 185, 129, 0.05);
}

.investment-assets-table-row.loss {
    background: rgba(239, 68, 68, 0.05);
}

.investment-assets-table-row span {
    font-size: 13px;
    color: #fff;
}

.investment-assets-table-row .col-asset {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.investment-assets-table-row .col-asset strong {
    color: #fff;
    font-size: 13px;
}

.investment-assets-table-row .col-asset small {
    color: #9ca3af;
    font-size: 11px;
}

.investment-assets-table-row .col-position {
    font-weight: 600;
    font-size: 12px;
}

.investment-assets-table-row .col-position.buy {
    color: #10b981;
}

.investment-assets-table-row .col-position.sell {
    color: #ef4444;
}

.investment-assets-table-row .col-entry,
.investment-assets-table-row .col-current {
    color: #d1d5db;
    font-family: monospace;
    font-size: 12px;
}

.investment-assets-table-row .col-change {
    font-weight: 600;
    font-size: 12px;
}

.investment-assets-table-row .col-change.positive {
    color: #10b981;
}

.investment-assets-table-row .col-change.negative {
    color: #ef4444;
}

.investment-assets-table-row .col-result {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-weight: 700;
}

.investment-assets-table-row .col-result.win {
    color: #10b981;
}

.investment-assets-table-row .col-result.loss {
    color: #ef4444;
}

.investment-assets-table-row .col-result small {
    font-size: 11px;
    font-weight: 600;
}

/* Resumo dos ativos */
.investment-assets-summary {
    display: flex;
    justify-content: space-around;
    padding: 16px;
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.investment-assets-summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.investment-assets-summary-item span {
    color: #9ca3af;
    font-size: 11px;
}

.investment-assets-summary-item strong {
    color: #fff;
    font-size: 14px;
}

.investment-assets-summary-item strong.win {
    color: #10b981;
}

.investment-assets-summary-item strong.loss {
    color: #ef4444;
}

/* Responsivo para tabela */
@media (max-width: 768px) {
    .investment-assets-table-header,
    .investment-assets-table-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .investment-assets-table-header span:nth-child(3),
    .investment-assets-table-header span:nth-child(4),
    .investment-assets-table-row .col-entry,
    .investment-assets-table-row .col-current {
        display: none;
    }

    .investment-assets-summary {
        flex-direction: column;
        gap: 12px;
    }
}
