/* ═══ Pages ═══ */

.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 1rem; background: radial-gradient(ellipse at top, rgba(124, 58, 237, 0.15), transparent 60%);
}
.auth-card {
  width: 100%; max-width: 400px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 12px; padding: 2rem;
}
.auth-card .brand { text-align: center; font-size: 1.5rem; font-weight: 700; letter-spacing: 0.05em; color: var(--primary); margin-bottom: 0.5rem; }
.auth-card .tagline { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.auth-card .form-footer { text-align: center; margin-top: 1rem; font-size: 0.85rem; color: var(--text-muted); }

.dashboard-hero {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), transparent);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 1.25rem; margin-bottom: 1.5rem;
}
.market-condition { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.market-condition .item { display: flex; flex-direction: column; }
.market-condition .item .label { font-size: 0.75rem; color: var(--text-muted); }
.market-condition .item .value { font-size: 1rem; font-weight: 600; font-family: 'JetBrains Mono', monospace; }

.signals-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.75rem; }
.signals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }

.admin-tabs { display: flex; gap: 0.25rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }

.ai-chat-container {
  display: flex; flex-direction: column; height: calc(100vh - 140px);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.ai-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.ai-message { max-width: 80%; padding: 0.75rem 1rem; border-radius: 12px; font-size: 0.92rem; line-height: 1.5; }
.ai-message.user { align-self: flex-end; background: var(--primary); color: white; border-bottom-right-radius: 4px; }
.ai-message.assistant { align-self: flex-start; background: var(--bg); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.ai-message.assistant pre { white-space: pre-wrap; font-family: inherit; }
.ai-input-bar { display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid var(--border); }
.ai-input-bar .form-input { flex: 1; }
