* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  min-height: 100vh;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: #94a3b8;
  font-size: 1.1rem;
}

main {
  display: grid;
  gap: 2rem;
}

section {
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
}

section h2 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.75rem;
}

/* Controls */
.control-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.control-group label {
  font-size: 0.875rem;
  color: #94a3b8;
}

.control-group input,
.control-group select {
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #fff;
}

/* Total Holdings */
.total-holdings {
  text-align: center;
  padding: 2rem;
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.total-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: #fbbf24;
}

.total-label {
  color: #94a3b8;
  margin-top: 0.5rem;
}

/* Asset Grid */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.asset-item {
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.asset-symbol {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: #60a5fa;
  margin-bottom: 0.25rem;
}

.asset-pct {
  color: #94a3b8;
  font-size: 0.875rem;
}

/* Allocation Controls */
.alloc-control {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.alloc-control label {
  font-size: 0.875rem;
  color: #94a3b8;
}

.alloc-control input[type="range"] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  outline: none;
}

.alloc-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f59e0b;
  cursor: pointer;
}

.alloc-control span {
  font-size: 0.875rem;
  color: #cbd5e1;
}

/* Yield Grid */
.yield-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.yield-card {
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.yield-card.total {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.1));
}

.yield-label {
  color: #94a3b8;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.yield-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.25rem;
}

.yield-card.total .yield-value {
  color: #fbbf24;
}

.yield-amount {
  color: #4ade80;
  font-size: 0.875rem;
}

/* AI Section */
.ai-section {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.05));
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.ai-insight {
  margin-bottom: 1rem;
  color: #cbd5e1;
}

.ai-insight strong {
  color: #fbbf24;
}

.ai-metrics {
  display: flex;
  gap: 2rem;
}

.ai-metric {
  display: flex;
  gap: 0.5rem;
}

.ai-metric .value {
  color: #4ade80;
  font-weight: 600;
}

/* Actions */
.actions-section {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: none;
  background: #f59e0b;
  color: #fff;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background 0.2s;
}

.btn:hover {
  background: #d97706;
}

/* Attribution Marker */
body::after {
  content: "KateelLearningDemos";
  position: fixed;
  bottom: 5px;
  right: 5px;
  font-size: 8px;
  color: rgba(255,255,255,0.1);
  pointer-events: none;
  z-index: 9999;
}