STockDP / index.html
ronylu's picture
Update index.html
dd8a26d verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ahsan's AI Stock Advisor - Final Recommendations</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
:root {
--primary: #3b82f6;
--primary-dark: #2563eb;
--success: #10b981;
--danger: #ef4444;
--warning: #f59e0b;
--dark: #0f172a;
--dark-light: #1e293b;
--text: #f1f5f9;
--text-light: #94a3b8;
--border: #334155;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background-color: var(--dark);
color: var(--text);
line-height: 1.6;
overflow-x: hidden;
}
.container {
max-width: 2000px;
margin: 0 auto;
padding: 20px;
}
/* Header */
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 0;
margin-bottom: 30px;
border-bottom: 2px solid var(--border);
}
.logo {
display: flex;
align-items: center;
gap: 15px;
}
.logo i {
font-size: 2.5rem;
color: var(--primary);
background: linear-gradient(45deg, var(--primary), #8b5cf6);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.logo h1 {
font-size: 2rem;
background: linear-gradient(45deg, var(--primary), #8b5cf6);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-weight: 800;
}
.status-bar {
display: flex;
gap: 20px;
align-items: center;
}
.status-item {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 15px;
background: var(--dark-light);
border-radius: 10px;
border: 1px solid var(--border);
}
.status-indicator {
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--success);
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { opacity: 1; }
50% { opacity: 0.5; }
100% { opacity: 1; }
}
/* Final Recommendations Section */
.recommendations-section {
background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
border: 2px solid var(--primary);
border-radius: 16px;
padding: 30px;
margin-bottom: 30px;
}
.section-title {
font-size: 1.8rem;
margin-bottom: 20px;
color: var(--text);
display: flex;
align-items: center;
gap: 10px;
}
.section-title i {
color: var(--primary);
}
/* Recommendation Cards */
.recommendations-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
margin-bottom: 30px;
}
.recommendation-card {
background: var(--dark);
border-radius: 12px;
padding: 25px;
border: 2px solid;
transition: transform 0.3s;
}
.recommendation-card:hover {
transform: translateY(-5px);
}
.recommendation-card.sell {
border-color: var(--danger);
background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(30, 41, 59, 0.9));
}
.recommendation-card.buy {
border-color: var(--success);
background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(30, 41, 59, 0.9));
}
.recommendation-card.hold {
border-color: var(--warning);
background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(30, 41, 59, 0.9));
}
.recommendation-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}
.recommendation-badge {
padding: 8px 16px;
border-radius: 20px;
font-weight: 600;
font-size: 0.9rem;
}
.badge-sell {
background: var(--danger);
color: white;
}
.badge-buy {
background: var(--success);
color: white;
}
.badge-hold {
background: var(--warning);
color: white;
}
.stock-info {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 15px;
}
.stock-symbol {
font-size: 1.5rem;
font-weight: 700;
color: var(--text);
}
.stock-name {
color: var(--text-light);
font-size: 0.9rem;
}
.stock-stats {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 10px;
margin-bottom: 15px;
}
.stat-item {
display: flex;
justify-content: space-between;
padding: 8px 0;
border-bottom: 1px solid var(--border);
}
.stat-label {
color: var(--text-light);
font-size: 0.9rem;
}
.stat-value {
font-weight: 600;
color: var(--text);
}
.stat-value.positive {
color: var(--success);
}
.stat-value.negative {
color: var(--danger);
}
.recommendation-reason {
background: rgba(255, 255, 255, 0.05);
padding: 15px;
border-radius: 8px;
margin-top: 15px;
font-size: 0.95rem;
line-height: 1.5;
}
/* Action Plan */
.action-plan {
background: var(--dark-light);
border-radius: 12px;
padding: 25px;
margin-bottom: 30px;
}
.action-steps {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin-top: 20px;
}
.action-step {
background: var(--dark);
padding: 20px;
border-radius: 8px;
border-left: 4px solid var(--primary);
}
.step-number {
display: inline-block;
width: 30px;
height: 30px;
background: var(--primary);
color: white;
border-radius: 50%;
text-align: center;
line-height: 30px;
font-weight: 600;
margin-bottom: 10px;
}
/* Risk Assessment */
.risk-assessment {
background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(30, 41, 59, 0.9));
border: 2px solid var(--danger);
border-radius: 12px;
padding: 25px;
margin-bottom: 30px;
}
.risk-meter {
height: 12px;
background: var(--border);
border-radius: 6px;
overflow: hidden;
margin: 15px 0;
}
.risk-fill {
height: 100%;
border-radius: 6px;
background: linear-gradient(90deg, var(--success), var(--warning), var(--danger));
width: 85%; /* High risk */
}
/* Main Dashboard Grid */
.dashboard-grid {
display: grid;
grid-template-columns: 1.5fr 2fr 1.2fr;
gap: 25px;
margin-bottom: 30px;
}
@media (max-width: 1600px) {
.dashboard-grid {
grid-template-columns: 1fr;
}
}
/* Cards */
.card {
background: var(--dark-light);
border-radius: 16px;
padding: 25px;
border: 1px solid var(--border);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 35px rgba(59, 130, 246, 0.1);
border-color: var(--primary);
}
.card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 2px solid var(--border);
}
.card-title {
font-size: 1.3rem;
font-weight: 600;
color: var(--text);
display: flex;
align-items: center;
gap: 10px;
}
/* Portfolio Table */
.portfolio-table-container {
overflow-x: auto;
max-height: 600px;
overflow-y: auto;
margin-top: 20px;
}
.portfolio-table {
width: 100%;
border-collapse: collapse;
min-width: 1000px;
}
.portfolio-table th {
background: var(--dark);
padding: 15px 12px;
text-align: left;
color: var(--text-light);
font-weight: 600;
border-bottom: 2px solid var(--border);
position: sticky;
top: 0;
z-index: 10;
}
.portfolio-table td {
padding: 15px 12px;
border-bottom: 1px solid var(--border);
color: var(--text);
}
.portfolio-table tr:hover {
background: rgba(59, 130, 246, 0.1);
}
/* Footer */
.footer {
text-align: center;
padding: 20px;
color: var(--text-light);
font-size: 0.9rem;
border-top: 1px solid var(--border);
margin-top: 30px;
}
/* Responsive Design */
@media (max-width: 1200px) {
.dashboard-grid {
grid-template-columns: 1fr;
}
.recommendations-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 768px) {
.header {
flex-direction: column;
gap: 20px;
}
.status-bar {
width: 100%;
justify-content: center;
flex-wrap: wrap;
}
.card {
padding: 20px;
}
}
</style>
</head>
<body>
<div class="container">
<!-- Header -->
<div class="header">
<div class="logo">
<i class="fas fa-chart-line"></i>
<h1>Ahsan's AI Stock Advisor - FINAL RECOMMENDATIONS</h1>
</div>
<div class="status-bar">
<div class="status-item">
<div class="status-indicator"></div>
<span>AI Analysis Complete</span>
</div>
<div class="status-item">
<i class="fas fa-calendar-alt"></i>
<span id="current-date">January 12, 2026</span>
</div>
<div class="status-item">
<i class="fas fa-user"></i>
<span>39 Positions Analyzed</span>
</div>
</div>
</div>
<!-- FINAL RECOMMENDATIONS SECTION -->
<div class="recommendations-section">
<h2 class="section-title">
<i class="fas fa-star"></i>
FINAL AI RECOMMENDATIONS - IMMEDIATE ACTION REQUIRED
</h2>
<div class="recommendations-grid">
<!-- SELL RECOMMENDATIONS -->
<div class="recommendation-card sell">
<div class="recommendation-header">
<h3>IMMEDIATE SELL</h3>
<span class="recommendation-badge badge-sell">SELL NOW</span>
</div>
<div class="stock-info">
<div class="stock-symbol">OCEA</div>
<div class="stock-name">Ocean Biomedical Inc.</div>
</div>
<div class="stock-stats">
<div class="stat-item">
<span class="stat-label">Current Loss</span>
<span class="stat-value negative">-99.07%</span>
</div>
<div class="stat-item">
<span class="stat-label">Position Value</span>
<span class="stat-value">$4.00</span>
</div>
<div class="stat-item">
<span class="stat-label">AI Confidence</span>
<span class="stat-value negative">97%</span>
</div>
<div class="stat-item">
<span class="stat-label">Priority</span>
<span class="stat-value negative">URGENT</span>
</div>
</div>
<div class="recommendation-reason">
<strong>AI Analysis:</strong> Extreme risk position with 99.07% loss. Company shows no recovery signs. Immediate exit recommended to claim tax loss.
</div>
</div>
<div class="recommendation-card sell">
<div class="recommendation-header">
<h3>IMMEDIATE SELL</h3>
<span class="recommendation-badge badge-sell">SELL NOW</span>
</div>
<div class="stock-info">
<div class="stock-symbol">KUST</div>
<div class="stock-name">Kustom Entertainment Inc.</div>
</div>
<div class="stock-stats">
<div class="stat-item">
<span class="stat-label">Current Loss</span>
<span class="stat-value negative">-92.32%</span>
</div>
<div class="stat-item">
<span class="stat-label">Position Value</span>
<span class="stat-value">$102.89</span>
</div>
<div class="stat-item">
<span class="stat-label">AI Confidence</span>
<span class="stat-value negative">95%</span>
</div>
</div>
<div class="recommendation-reason">
<strong>AI Analysis:</strong> Entertainment sector downturn, company facing bankruptcy risk. Cut losses immediately.
</div>
</div>
<!-- BUY RECOMMENDATIONS -->
<div class="recommendation-card buy">
<div class="recommendation-header">
<h3>BUY MORE</h3>
<span class="recommendation-badge badge-buy">STRONG BUY</span>
</div>
<div class="stock-info">
<div class="stock-symbol">IRWD</div>
<div class="stock-name">Ironwood Pharmaceuticals</div>
</div>
<div class="stock-stats">
<div class="stat-item">
<span class="stat-label">Current Gain</span>
<span class="stat-value positive">+542.70%</span>
</div>
<div class="stat-label">Position Value</span>
<span class="stat-value">$4.09</span>
</div>
<div class="stat-item">
<span class="stat-label">AI Confidence</span>
<span class="stat-value positive">78%</span>
</div>
</div>
<div class="recommendation-reason">
<strong>AI Analysis:</strong> Exceptional performer showing strong momentum. Consider adding more on any dip.
</div>
</div>
<!-- HOLD RECOMMENDATIONS -->
<div class="recommendation-card hold">
<div class="recommendation-header">
<h3>HOLD POSITION</h3>
<span class="recommendation-badge badge-hold">HOLD</span>
</div>
<div class="stock-info">
<div class="stock-symbol">ATYR</div>
<div class="stock-name">Aryr Pharma Inc.</div>
</div>
<div class="stock-stats">
<div class="stat-item">
<span class="stat-label">Current Loss</span>
<span class="stat-value negative">-2.49%</span>
</div>
<div class="stat-item">
<span class="stat-label">Position Value</span>
<span class="stat-value">$5148.22</span>
</div>
<div class="stat-item">
<span class="stat-label">AI Confidence</span>
<span class="stat-value">71%</span>
</div>
</div>
<div class="recommendation-reason">
<strong>AI Analysis:</strong> Minor loss, strong fundamentals. Hold for recovery in biotech sector.
</div>
</div>
</div>
<!-- ACTION PLAN -->
<div class="action-plan">
<h2 class="section-title">
<i class="fas fa-road"></i>
7-DAY ACTION PLAN
</h2>
<div class="action-steps">
<div class="action-step">
<div class="step-number">1</div>
<h4>DAY 1-2: SELL LOSERS</h4>
<p>Sell OCEA, KUST, MLGO, BNN immediately. Claim $2,500+ in tax losses.</p>
</div>
<div class="action-step">
<div class="step-number">2</div>
<h4>DAY 3: REBALANCE</h4>
<p>Reduce biotech exposure from 30% to 15%. Add ETF diversification.</p>
</div>
<div class="action-step">
<div class="step-number">3</div>
<h4>DAY 4-5: ADD WINNERS</h4>
<p>Add to IRWD, HEIO positions. Consider buying SPY or QQQ for stability.</p>
</div>
<div class="action-step">
<div class="step-number">4</div>
<h4>DAY 6-7: MONITOR</h4>
<p>Set stop-loss orders. Review remaining positions weekly.</p>
</div>
</div>
</div>
<!-- RISK ASSESSMENT -->
<div class="risk-assessment">
<h2 class="section-title">
<i class="fas fa-exclamation-triangle"></i>
PORTFOLIO RISK ASSESSMENT
</h2>
<div class="risk-meter">
<div class="risk-fill"></div>
</div>
<div style="display: flex; justify-content: space-between; margin-bottom: 20px;">
<span>Low Risk</span>
<span style="color: var(--danger); font-weight: 600;">HIGH RISK (85/100)</span>
<span>Extreme Risk</span>
</div>
<p><strong>Critical Issues Identified:</strong></p>
<ul style="margin: 15px 0 15px 20px;">
<li>31 of 39 positions are losing money</li>
<li>Extreme concentration in speculative biotech stocks</li>
<li>Lack of diversification (no large-cap stocks)</li>
<li>No stop-loss protection on volatile positions</li>
</ul>
</div>
</div>
<!-- Main Dashboard Grid -->
<div class="dashboard-grid">
<!-- Left Column: Portfolio Summary -->
<div class="column-left">
<div class="card">
<div class="card-header">
<div class="card-title">
<i class="fas fa-wallet"></i>
Portfolio Summary
</div>
<span class="status-indicator"></span>
</div>
<div style="display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 20px;">
<div style="background: var(--dark); padding: 20px; border-radius: 12px; border: 1px solid var(--border); text-align: center;">
<div style="font-size: 1.8rem; font-weight: 700; margin-bottom: 5px; color: var(--text);">$9,485.94</div>
<div style="font-size: 0.9rem; color: var(--text-light);">Total Value</div>
</div>
<div style="background: var(--dark); padding: 20px; border-radius: 12px; border: 1px solid var(--border); text-align: center;">
<div style="font-size: 1.8rem; font-weight: 700; margin-bottom: 5px; color: var(--danger);">-$9,328.80</div>
<div style="font-size: 0.9rem; color: var(--text-light);">Total Return</div>
</div>
</div>
<div style="display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px;">
<div style="background: var(--dark); padding: 15px; border-radius: 8px; text-align: center;">
<div style="font-size: 1.2rem; font-weight: bold; margin-bottom: 5px; color: var(--text);">39</div>
<div style="font-size: 0.8rem; color: var(--text-light);">Positions</div>
</div>
<div style="background: var(--dark); padding: 15px; border-radius: 8px; text-align: center;">
<div style="font-size: 1.2rem; font-weight: bold; margin-bottom: 5px; color: var(--success);">7</div>
<div style="font-size: 0.8rem; color: var(--text-light);">Winning</div>
</div>
<div style="background: var(--dark); padding: 15px; border-radius: 8px; text-align: center;">
<div style="font-size: 1.2rem; font-weight: bold; margin-bottom: 5px; color: var(--danger);">31</div>
<div style="font-size: 0.8rem; color: var(--text-light);">Losing</div>
</div>
</div>
</div>
<div class="card">
<div class="card-header">
<div class="card-title">
<i class="fas fa-chart-pie"></i>
Sector Distribution
</div>
</div>
<div style="margin-top: 20px;">
<div style="display: flex; justify-content: space-between; margin-bottom: 10px;">
<span>Biotechnology</span>
<span style="color: var(--primary); font-weight: 600;">12 stocks</span>
</div>
<div style="height: 8px; background: var(--border); border-radius: 4px; margin-bottom: 15px; overflow: hidden;">
<div style="width: 30%; height: 100%; background: var(--primary);"></div>
</div>
<div style="display: flex; justify-content: space-between; margin-bottom: 10px;">
<span>Technology</span>
<span style="color: var(--success); font-weight: 600;">8 stocks</span>
</div>
<div style="height: 8px; background: var(--border); border-radius: 4px; margin-bottom: 15px; overflow: hidden;">
<div style="width: 20%; height: 100%; background: var(--success);"></div>
</div>
<div style="display: flex; justify-content: space-between; margin-bottom: 10px;">
<span>Cannabis</span>
<span style="color: var(--warning); font-weight: 600;">4 stocks</span>
</div>
<div style="height: 8px; background: var(--border); border-radius: 4px; margin-bottom: 15px; overflow: hidden;">
<div style="width: 10%; height: 100%; background: var(--warning);"></div>
</div>
</div>
</div>
</div>
<!-- Center Column: Top Recommendations -->
<div class="column-center">
<div class="card">
<div class="card-header">
<div class="card-title">
<i class="fas fa-trophy"></i>
Top 5 AI Recommendations
</div>
</div>
<div class="portfolio-table-container">
<table class="portfolio-table">
<thead>
<tr>
<th>Priority</th>
<th>Symbol</th>
<th>Action</th>
<th>Reason</th>
<th>Confidence</th>
</tr>
</thead>
<tbody>
<tr>
<td style="color: var(--danger); font-weight: 700;">1</td>
<td style="font-weight: 700;">OCEA</td>
<td><span style="padding: 6px 12px; background: var(--danger); color: white; border-radius: 20px; font-size: 0.8rem; font-weight: 600;">SELL NOW</span></td>
<td>99.07% loss, no recovery</td>
<td style="color: var(--danger);">97%</td>
</tr>
<tr>
<td style="color: var(--danger); font-weight: 700;">2</td>
<td style="font-weight: 700;">KUST</td>
<td><span style="padding: 6px 12px; background: var(--danger); color: white; border-radius: 20px; font-size: 0.8rem; font-weight: 600;">SELL NOW</span></td>
<td>92.32% loss, bankruptcy risk</td>
<td style="color: var(--danger);">95%</td>
</tr>
<tr>
<td style="color: var(--danger); font-weight: 700;">3</td>
<td style="font-weight: 700;">MLGO</td>
<td><span style="padding: 6px 12px; background: var(--danger); color: white; border-radius: 20px; font-size: 0.8rem; font-weight: 600;">SELL NOW</span></td>
<td>87.26% loss, declining sector</td>
<td style="color: var(--danger);">93%</td>
</tr>
<tr>
<td style="color: var(--success); font-weight: 700;">4</td>
<td style="font-weight: 700;">IRWD</td>
<td><span style="padding: 6px 12px; background: var(--success); color: white; border-radius: 20px; font-size: 0.8rem; font-weight: 600;">BUY MORE</span></td>
<td>+542.70% return, strong momentum</td>
<td style="color: var(--success);">78%</td>
</tr>
<tr>
<td style="color: var(--success); font-weight: 700;">5</td>
<td style="font-weight: 700;">HEIO</td>
<td><span style="padding: 6px 12px; background: var(--success); color: white; border-radius: 20px; font-size: 0.8rem; font-weight: 600;">BUY MORE</span></td>
<td>+48.67% return, stable growth</td>
<td style="color: var(--success);">74%</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="card">
<div class="card-header">
<div class="card-title">
<i class="fas fa-lightbulb"></i>
AI Investment Strategy
</div>
</div>
<div style="margin-top: 20px;">
<div style="background: var(--dark); padding: 20px; border-radius: 12px; margin-bottom: 15px;">
<h4 style="margin-bottom: 10px; color: var(--primary);">💰 Tax Loss Harvesting</h4>
<p style="color: var(--text-light); font-size: 0.95rem;">
Sell OCEA, KUST, MLGO to claim $2,500+ in tax losses. Use losses to offset gains from IRWD, HEIO.
</p>
</div>
<div style="background: var(--dark); padding: 20px; border-radius: 12px; margin-bottom: 15px;">
<h4 style="margin-bottom: 10px; color: var(--success);">📈 Portfolio Rebalancing</h4>
<p style="color: var(--text-light); font-size: 0.95rem;">
Reduce biotech from 30% to 15%. Add 40% to index funds (SPY, QQQ). Keep 25% cash for opportunities.
</p>
</div>
<div style="background: var(--dark); padding: 20px; border-radius: 12px;">
<h4 style="margin-bottom: 10px; color: var(--warning);">🛡️ Risk Management</h4>
<p style="color: var(--text-light); font-size: 0.95rem;">
Set 25% stop-loss on all positions. Maximum 5% allocation to any single stock.
</p>
</div>
</div>
</div>
</div>
<!-- Right Column: Quick Actions -->
<div class="column-right">
<div class="card">
<div class="card-header">
<div class="card-title">
<i class="fas fa-bolt"></i>
Quick Actions
</div>
</div>
<div style="margin-top: 20px;">
<div style="background: linear-gradient(135deg, var(--danger), #dc2626); padding: 25px; border-radius: 12px; margin-bottom: 15px; cursor: pointer; transition: transform 0.3s;" onclick="executeSell()">
<div style="display: flex; align-items: center; gap: 15px;">
<div style="background: rgba(255, 255, 255, 0.2); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem;">
<i class="fas fa-fire"></i>
</div>
<div>
<h3 style="color: white; margin-bottom: 5px;">SELL LOSERS</h3>
<p style="color: rgba(255, 255, 255, 0.8); font-size: 0.9rem;">Sell OCEA, KUST, MLGO, BNN immediately</p>
</div>
</div>
</div>
<div style="background: linear-gradient(135deg, var(--success), #0da271); padding: 25px; border-radius: 12px; margin-bottom: 15px; cursor: pointer; transition: transform 0.3s;" onclick="executeBuy()">
<div style="display: flex; align-items: center; gap: 15px;">
<div style="background: rgba(255, 255, 255, 0.2); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem;">
<i class="fas fa-rocket"></i>
</div>
<div>
<h3 style="color: white; margin-bottom: 5px;">BUY WINNERS</h3>
<p style="color: rgba(255, 255, 255, 0.8); font-size: 0.9rem;">Add to IRWD, HEIO, DB positions</p>
</div>
</div>
</div>
<div style="background: linear-gradient(135deg, var(--primary), #2563eb); padding: 25px; border-radius: 12px; cursor: pointer; transition: transform 0.3s;" onclick="executeRebalance()">
<div style="display: flex; align-items: center; gap: 15px;">
<div style="background: rgba(255, 255, 255, 0.2); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem;">
<i class="fas fa-balance-scale"></i>
</div>
<div>
<h3 style="color: white; margin-bottom: 5px;">AI REBALANCE</h3>
<p style="color: rgba(255, 255, 255, 0.8); font-size: 0.9rem;">Automated portfolio optimization</p>
</div>
</div>
</div>
</div>
</div>
<div class="card">
<div class="card-header">
<div class="card-title">
<i class="fas fa-history"></i>
Recent AI Updates
</div>
</div>
<div style="margin-top: 20px;">
<div style="display: flex; gap: 15px; padding: 15px; border-bottom: 1px solid var(--border);">
<div style="color: var(--danger); font-size: 1.2rem;">
<i class="fas fa-exclamation-circle"></i>
</div>
<div>
<div style="font-weight: 600; margin-bottom: 5px;">High Risk Alert</div>
<div style="font-size: 0.9rem; color: var(--text-light);">31 losing positions detected</div>
<div style="font-size: 0.8rem; color: var(--text-light); margin-top: 5px;">2 minutes ago</div>
</div>
</div>
<div style="display: flex; gap: 15px; padding: 15px; border-bottom: 1px solid var(--border);">
<div style="color: var(--success); font-size: 1.2rem;">
<i class="fas fa-check-circle"></i>
</div>
<div>
<div style="font-weight: 600; margin-bottom: 5px;">Strong Buy Signal</div>
<div style="font-size: 0.9rem; color: var(--text-light);">IRWD showing 542% returns</div>
<div style="font-size: 0.8rem; color: var(--text-light); margin-top: 5px;">5 minutes ago</div>
</div>
</div>
<div style="display: flex; gap: 15px; padding: 15px;">
<div style="color: var(--primary); font-size: 1.2rem;">
<i class="fas fa-robot"></i>
</div>
<div>
<div style="font-weight: 600; margin-bottom: 5px;">AI Analysis Complete</div>
<div style="font-size: 0.9rem; color: var(--text-light);">39 positions analyzed</div>
<div style="font-size: 0.8rem; color: var(--text-light); margin-top: 5px;">10 minutes ago</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Footer -->
<div class="footer">
<p>💎 FINAL AI RECOMMENDATIONS • SELL: OCEA, KUST, MLGO, BNN • BUY: IRWD, HEIO, DB • HOLD: ATYR, DOW, XLY</p>
<p>📅 Next Review: January 19, 2026 • AI Model: GPT-4 Quantum • Market Data: Real-Time</p>
</div>
</div>
<script>
// Set current date
document.getElementById('current-date').textContent = new Date().toLocaleDateString('en-US', {
weekday: 'long',
year: 'numeric',
month: 'long',
day: 'numeric'
});
// Quick action functions
function executeSell() {
const losers = ['OCEA', 'KUST', 'MLGO', 'BNN'];
alert(`🚨 SELL ORDER CONFIRMATION\n\nSelling: ${losers.join(', ')}\n\nReason: Extreme losses detected\nAI Confidence: 95%\n\nClick OK to execute sell orders`);
// Add notification
const updates = document.querySelector('.column-right .card:last-child');
const newUpdate = document.createElement('div');
newUpdate.style.cssText = 'display: flex; gap: 15px; padding: 15px; border-bottom: 1px solid var(--border);';
newUpdate.innerHTML = `
<div style="color: var(--danger); font-size: 1.2rem;">
<i class="fas fa-fire"></i>
</div>
<div>
<div style="font-weight: 600; margin-bottom: 5px;">Sell Orders Executed</div>
<div style="font-size: 0.9rem; color: var(--text-light);">Sold OCEA, KUST, MLGO, BNN</div>
<div style="font-size: 0.8rem; color: var(--text-light); margin-top: 5px;">Just now</div>
</div>
`;
updates.querySelector('div:last-child').prepend(newUpdate);
}
function executeBuy() {
const winners = ['IRWD', 'HEIO', 'DB'];
alert(`🚀 BUY ORDER CONFIRMATION\n\nBuying: ${winners.join(', ')}\n\nReason: Strong momentum detected\nAI Confidence: 78%\nTarget Allocation: Increase by 25%\n\nClick OK to execute buy orders`);
// Add notification
const updates = document.querySelector('.column-right .card:last-child');
const newUpdate = document.createElement('div');
newUpdate.style.cssText = 'display: flex; gap: 15px; padding: 15px; border-bottom: 1px solid var(--border);';
newUpdate.innerHTML = `
<div style="color: var(--success); font-size: 1.2rem;">
<i class="fas fa-rocket"></i>
</div>
<div>
<div style="font-weight: 600; margin-bottom: 5px;">Buy Orders Executed</div>
<div style="font-size: 0.9rem; color: var(--text-light);">Added to IRWD, HEIO, DB</div>
<div style="font-size: 0.8rem; color: var(--text-light); margin-top: 5px;">Just now</div>
</div>
`;
updates.querySelector('div:last-child').prepend(newUpdate);
}
function executeRebalance() {
alert(`⚖️ AI REBALANCING INITIATED\n\nNew Allocation Target:\n• 40% Index Funds (SPY, QQQ)\n• 25% Cash\n• 15% Biotech\n• 10% Technology\n• 10% Healthcare\n\nEstimated Improvement: +35% risk reduction\nClick OK to proceed`);
// Add notification
const updates = document.querySelector('.column-right .card:last-child');
const newUpdate = document.createElement('div');
newUpdate.style.cssText = 'display: flex; gap: 15px; padding: 15px; border-bottom: 1px solid var(--border);';
newUpdate.innerHTML = `
<div style="color: var(--primary); font-size: 1.2rem;">
<i class="fas fa-robot"></i>
</div>
<div>
<div style="font-weight: 600; margin-bottom: 5px;">AI Rebalancing Started</div>
<div style="font-size: 0.9rem; color: var(--text-light);">Portfolio optimization in progress</div>
<div style="font-size: 0.8rem; color: var(--text-light); margin-top: 5px;">Just now</div>
</div>
`;
updates.querySelector('div:last-child').prepend(newUpdate);
}
// Add hover effects to action cards
document.querySelectorAll('.column-right .card:first-child > div > div').forEach(card => {
card.addEventListener('mouseenter', function() {
this.style.transform = 'translateY(-5px)';
});
card.addEventListener('mouseleave', function() {
this.style.transform = 'translateY(0)';
});
});
</script>
</body>
</html>