/* Profit Targets Modal */
.profit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 20px;
}

.profit-modal-overlay.active {
    opacity: 1;
}

.profit-modal {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(10px);
    transition: transform 0.2s ease;
}

.profit-modal-overlay.active .profit-modal {
    transform: translateY(0);
}

.profit-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.profit-modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profit-modal-header h3 i {
    color: #8b5cf6;
}

.profit-modal-subtitle {
    font-size: 12px;
    color: #64748b;
    margin: 4px 0 0;
}

.profit-modal-close {
    background: none;
    border: none;
    color: #64748b;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s;
}

.profit-modal-close:hover {
    color: #f1f5f9;
}

.profit-modal-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profit-target-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profit-target-label {
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profit-target-hint {
    font-size: 11px;
    color: #64748b;
    display: block;
    margin-top: 1px;
}

.profit-tag {
    font-size: 10px;
    font-weight: 500;
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    padding: 1px 6px;
    border-radius: 4px;
}

.profit-target-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: border-color 0.15s;
}

.profit-target-input-wrap:focus-within {
    border-color: rgba(139, 92, 246, 0.5);
}

.profit-input-prefix,
.profit-input-suffix {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    padding: 0 10px;
    flex-shrink: 0;
}

.profit-target-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #f1f5f9;
    font-size: 14px;
    padding: 10px 12px;
    outline: none;
    width: 100%;
    -moz-appearance: textfield;
    appearance: textfield;
}

.profit-target-input::-webkit-outer-spin-button,
.profit-target-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.profit-target-input::placeholder {
    color: #475569;
}

.profit-target-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 4px 0;
}

.profit-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Profit Status Badge on Stat Cards */
.profit-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    width: fit-content;
}

.profit-status-profitable {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.profit-status-unprofitable {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.profit-status i {
    font-size: 10px;
}

/* Profit Signals Bar */
.profit-signals {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 8px;
}

.profit-signal {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.profit-signal i {
    font-size: 14px;
    flex-shrink: 0;
}

.profit-signal-danger {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.profit-signal-danger i {
    color: #ef4444;
}

.profit-signal-warning {
    background: rgba(251, 146, 60, 0.08);
    border: 1px solid rgba(251, 146, 60, 0.2);
    color: #fed7aa;
}

.profit-signal-warning i {
    color: #fb923c;
}

.profit-signal-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.profit-signal-success i {
    color: #10b981;
}

/* Profit Targets Button in Header */
.profit-targets-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    color: #c4b5fd;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.profit-targets-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    color: #ddd6fe;
}

.profit-targets-btn i {
    font-size: 12px;
}

/* Quick Prompt Chips in AI Chat */
.ai-quick-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 20px 12px;
    background: transparent;
}

.ai-quick-prompt {
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    color: #c4b5fd;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.ai-quick-prompt:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    color: #ddd6fe;
}

@media (max-width: 640px) {
    .profit-modal {
        max-width: 100%;
    }
    .profit-signals {
        gap: 6px;
    }
    .profit-signal {
        font-size: 12px;
        padding: 8px 12px;
    }
}
