:root {
  --premium-bg: #091019;
  --premium-surface: #101b28;
  --premium-surface-soft: #152536;
  --premium-border: #26405a;
  --premium-text: #eaf2ff;
  --premium-muted: #93a8c2;
  --premium-accent: #11c5b2;
  --premium-accent-2: #2b79ff;
  --premium-danger: #ff6b6b;
}

.premium-body {
  background: radial-gradient(circle at 12% 10%, #13253a 0%, #091019 55%, #060b11 100%);
  color: var(--premium-text);
}

.premium-hero {
  margin-top: 72px;
  padding: 56px 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.premium-hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.premium-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3.3vw, 3rem);
  color: #f4f8ff;
}

.premium-hero .lead {
  color: var(--premium-muted);
  max-width: 720px;
}

.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #76f4e4;
  margin-bottom: 10px;
}

.account-chip {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--premium-border);
  background: linear-gradient(135deg, rgba(17, 197, 178, 0.2), rgba(43, 121, 255, 0.2));
}

.auth-wall {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 15, 0.84);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1100;
}

.auth-wall-card {
  width: min(680px, 92%);
  border: 1px solid var(--premium-border);
  background: var(--premium-surface);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}

.auth-wall-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.premium-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  padding: 24px 24px 64px;
}

.premium-sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
  background: var(--premium-surface);
  border: 1px solid var(--premium-border);
  border-radius: 14px;
  padding: 16px;
}

.premium-sidebar h3 {
  margin-bottom: 10px;
  color: #f0f5ff;
}

.premium-sidebar a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--premium-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.premium-sidebar a:hover {
  background: rgba(43, 121, 255, 0.18);
  color: #f3f7ff;
}

.sidebar-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--premium-border);
  color: var(--premium-muted);
  font-size: 0.92rem;
}

.premium-content {
  display: grid;
  gap: 18px;
}

.panel {
  border: 1px solid var(--premium-border);
  border-radius: 14px;
  padding: 20px;
  background: linear-gradient(180deg, var(--premium-surface), var(--premium-surface-soft));
}

.panel header h2 {
  color: #f6f9ff;
  margin-bottom: 6px;
}

.panel header p {
  color: var(--premium-muted);
}

.form-grid {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: #d8e6ff;
}

.form-grid input, .research-topbar input {
  border: 1px solid #355474;
  border-radius: 8px;
  background: #091a2a;
  color: #f4f8ff;
  padding: 10px 12px;
  font-family: 'Manrope', sans-serif;
}

.stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.row-card {
  border: 1px solid #2e4d6d;
  background: #0b1b2d;
  border-radius: 10px;
  padding: 12px;
}

.row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.action-row {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.result-cards {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric {
  background: #0b1f33;
  border: 1px solid #2e4d6d;
  border-radius: 10px;
  padding: 10px;
}

.metric .label { color: var(--premium-muted); font-size: 0.85rem; }
.metric .value { color: #f4f8ff; font-size: 1.15rem; font-weight: 800; }

.children-toolbar {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.research-topbar {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.research-topbar label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #d8e6ff;
  font-weight: 600;
}

.market-layout {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}

.chart-card, .fundamentals-card, .watchlist-card, .edgar-card {
  border: 1px solid #2b4765;
  border-radius: 12px;
  background: #0a1827;
  padding: 12px;
}

.chart-header p {
  color: var(--premium-muted);
}

#market-chart {
  width: 100%;
  height: auto;
  border: 1px solid #2b4765;
  border-radius: 10px;
  background: linear-gradient(180deg, #07121f, #0a1a2a);
  margin-top: 10px;
}

.meta-row {
  margin-top: 10px;
  color: var(--premium-muted);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-weight: 600;
}

.fundamentals-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.f-item {
  background: #0e2236;
  border: 1px solid #2e4d6d;
  border-radius: 10px;
  padding: 9px;
}

.f-item .k { color: var(--premium-muted); font-size: 0.8rem; }
.f-item .v { color: #f4f8ff; font-weight: 800; margin-top: 4px; }

.watchlist {
  margin-top: 10px;
  list-style: none;
  display: grid;
  gap: 6px;
}

.watchlist button {
  width: 100%;
  text-align: left;
  border: 1px solid #2e4d6d;
  background: #0c1f31;
  color: #dbe9ff;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 700;
}

.edgar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.edgar-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.edgar-row {
  display: grid;
  grid-template-columns: 90px 120px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid #2e4d6d;
  border-radius: 8px;
  padding: 8px 10px;
  background: #0c1f31;
}

.edgar-row a {
  color: #7cc4ff;
  font-weight: 700;
}

.tax-actions {
  margin-top: 12px;
}

.hidden { display: none !important; }

@media (max-width: 1100px) {
  .premium-grid { grid-template-columns: 1fr; }
  .premium-sidebar { position: static; }
  .market-layout { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .result-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col, .three-col { grid-template-columns: 1fr; }
  .edgar-row { grid-template-columns: 1fr; }
}
