/* ============================================================
   ATLAS KILLER FEATURES — All 14 wholesaler superpowers
   Brand: navy #0A1F44, orange #F59E0B, blue accent #2563EB
   ============================================================ */

.killer-feature {
  flex: 1;
  padding: 24px 32px;
  overflow-y: auto;
  background: var(--bg-page, #F8FAFC);
}

/* Hub landing */
.killer-hub-head {
  margin-bottom: 28px;
}
.killer-hub-head h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary, #0A1F44);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.killer-hub-head .sub {
  font-size: 14px;
  color: var(--text-secondary, #64748B);
  max-width: 700px;
  line-height: 1.5;
}

.killer-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.killer-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 16px;
}

.killer-card {
  background: var(--bg-card, #FFFFFF);
  border: 1px solid var(--border-color, #E2E8F0);
  border-radius: 10px;
  padding: 18px 20px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 140px;
}
.killer-card:hover {
  transform: translateY(-2px);
  border-color: #F59E0B;
  box-shadow: 0 8px 24px -8px rgba(245, 158, 11, 0.25);
}
.killer-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 18px;
}
.killer-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary, #0A1F44);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.killer-card-desc {
  font-size: 12.5px;
  color: var(--text-secondary, #64748B);
  line-height: 1.45;
  flex: 1;
}
.killer-card-cta {
  margin-top: 12px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  background: #2563EB;
  border-radius: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: inline-block;
  transition: background 0.15s ease;
}
.killer-card:hover .killer-card-cta {
  background: #1D4ED8;
}
.theme-dark .killer-card-cta,
[data-theme="dark"] .killer-card-cta {
  background: #3B82F6;
  color: #FFFFFF;
}
.theme-dark .killer-card:hover .killer-card-cta,
[data-theme="dark"] .killer-card:hover .killer-card-cta {
  background: #60A5FA;
}

/* Section heads inside features */
.killer-section {
  background: var(--bg-card, #FFFFFF);
  border: 1px solid var(--border-color, #E2E8F0);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 16px;
}
.killer-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary, #0A1F44);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.killer-section h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary, #0A1F44);
  margin: 0 0 10px;
}
.killer-section .sub {
  font-size: 13px;
  color: var(--text-secondary, #64748B);
  margin-bottom: 14px;
}

.killer-back {
  background: transparent;
  border: 1px solid var(--border-color, #E2E8F0);
  color: var(--text-secondary, #64748B);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 14px;
}
.killer-back:hover { background: var(--bg-page, #F1F5F9); }

/* Tabs (rotation / whale / anti / lost) */
.rot-tab, .whale-tab, .anti-tab, .lost-tab {
  background: transparent;
  border: 1px solid var(--border-color, #E2E8F0);
  color: var(--text-secondary, #64748B);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 6px;
  margin-bottom: 6px;
  transition: all 0.15s;
}
.rot-tab.active, .whale-tab.active, .anti-tab.active, .lost-tab.active {
  background: #0A1F44;
  border-color: #0A1F44;
  color: #fff;
}
.rot-tab:hover, .whale-tab:hover, .anti-tab:hover, .lost-tab:hover {
  border-color: #F59E0B;
  color: #F59E0B;
}
.rot-tab.active:hover, .whale-tab.active:hover, .anti-tab.active:hover, .lost-tab.active:hover {
  color: #fff;
}

/* Rotation tab groups — Active (with 13F holders) vs Recent launches (no 13F yet) */
.rot-group {
  margin-bottom: 10px;
}
.rot-group-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary, #64748B);
  margin-bottom: 6px;
}
.rot-group-count {
  display: inline-block;
  background: var(--bg-page, #F1F5F9);
  color: var(--text-secondary, #64748B);
  padding: 1px 7px;
  border-radius: 10px;
  font-size: 11px;
  margin-left: 3px;
}
.rot-group-sub {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #94A3B8;
  font-size: 11px;
  margin-left: 4px;
}
.rot-group--empty .rot-group-label { color: #94A3B8; }

/* Dimmed tab variant — ticker has no 13F holders yet (recent launch) */
.rot-tab--empty {
  opacity: 0.6;
  border-style: dashed;
  color: #94A3B8;
  background: #FAFBFC;
}
.rot-tab--empty:hover {
  opacity: 1;
  border-style: solid;
}
.rot-tab--empty.active {
  opacity: 1;
  border-style: solid;
  background: #475569;
  border-color: #475569;
  color: #fff;
}

/* Tables */
.killer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.killer-table thead th {
  text-align: left;
  background: var(--bg-page, #F8FAFC);
  color: var(--text-secondary, #475569);
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color, #E2E8F0);
}
.killer-table tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border-color, #EEF2F7);
  color: var(--text-primary, #0F172A);
  vertical-align: top;
}
.killer-table tbody tr:hover { background: var(--bg-page, #F8FAFC); }

/* Rotation score bubble */
.rot-score {
  display: inline-block;
  min-width: 38px;
  text-align: center;
  padding: 3px 8px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
}
.rot-score.s0 { background: #94A3B8; }
.rot-score.s1 { background: #60A5FA; }
.rot-score.s2 { background: #34D399; }
.rot-score.s3 { background: #FBBF24; }
.rot-score.s4 { background: #FB923C; }
.rot-score.s5 { background: #DC2626; }

/* Conviction tier chips (v3.1) — Lead-Lag Media palette */
/* High = gold #FFB800 (issuer side, strong signal) */
/* Medium = teal #00C9A7 (advisor side, moderate signal) */
/* Low = neutral slate (worth listing, low conviction) */
.tier-chip {
  display: inline-block;
  min-width: 38px;
  text-align: center;
  padding: 3px 8px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 12px;
  cursor: help;
}
.tier-chip.tier-high   { background: #FFB800; color: #0D0D1A; }
.tier-chip.tier-medium { background: #00C9A7; color: #0D0D1A; }
.tier-chip.tier-low    { background: #E2E8F0; color: #475569; }

/* Move badges */
.move-NEW       { background: #DCFCE7; color: #15803D; padding: 2px 7px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.move-INCREASED { background: #DBEAFE; color: #1D4ED8; padding: 2px 7px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.move-DECREASED { background: #FEF3C7; color: #92400E; padding: 2px 7px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.move-SOLD      { background: #FEE2E2; color: #B91C1C; padding: 2px 7px; border-radius: 4px; font-size: 11px; font-weight: 700; }

/* Lists */
.killer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.killer-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color, #EEF2F7);
  font-size: 13.5px;
  color: var(--text-primary, #0F172A);
  line-height: 1.45;
}
.killer-list li:last-child { border-bottom: none; }
.killer-list li strong { color: #0A1F44; font-weight: 600; }

/* Buttons */
.btn-primary {
  background: #F59E0B;
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: #D97706; }
.btn-secondary {
  background: transparent;
  color: #0A1F44;
  border: 1px solid #0A1F44;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-secondary:hover { background: #0A1F44; color: #fff; }
.btn-small {
  background: transparent;
  color: #2563EB;
  border: 1px solid #DBEAFE;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 4px;
  transition: all 0.15s;
}
.btn-small:hover { background: #2563EB; color: #fff; border-color: #2563EB; }

/* GPT examples */
.gpt-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}
.gpt-example {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #334155;
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.gpt-example:hover { background: #2563EB; color: #fff; border-color: #2563EB; }

/* Listening Post */
.listening-status {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.listening-status > div {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12.5px;
}
.listening-status .ticker { font-weight: 700; color: #0A1F44; font-size: 15px; margin-bottom: 4px; }
.listening-status .src-list { color: #64748B; font-size: 11.5px; }

.listening-feed {
  margin-top: 14px;
}
.listening-item {
  padding: 12px 14px;
  background: #FFF;
  border: 1px solid #E2E8F0;
  border-left: 3px solid #F59E0B;
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 13px;
}
.listening-item .meta { color: #94A3B8; font-size: 11.5px; margin-bottom: 4px; }
.listening-item .body { color: #0F172A; line-height: 1.5; }

/* Territory Plans */
.territory-days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.territory-day {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 14px;
  min-height: 180px;
}
.territory-day h4 {
  font-size: 13px;
  font-weight: 700;
  color: #0A1F44;
  margin: 0 0 4px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.territory-day .city {
  font-size: 12px;
  color: #F59E0B;
  font-weight: 600;
  margin-bottom: 10px;
}
.territory-firm {
  font-size: 12px;
  color: #0F172A;
  padding: 6px 0;
  border-bottom: 1px dashed #E2E8F0;
}
.territory-firm:last-child { border-bottom: none; }
.territory-firm .aum { color: #64748B; font-size: 11px; }

/* X-ray */
.xray-card {
  background: #FFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.xray-card h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #0A1F44;
  font-weight: 700;
}
.xray-bar {
  height: 8px;
  background: #F1F5F9;
  border-radius: 4px;
  overflow: hidden;
  margin: 4px 0;
}
.xray-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #F59E0B 0%, #D97706 100%);
  border-radius: 4px;
}
.xray-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
}

/* Have We Met */
.hwm-card {
  background: #FFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 10px;
}
.hwm-card h4 {
  margin: 0 0 6px;
  font-size: 14px;
  color: #0A1F44;
}
.hwm-card .channels { font-size: 12px; color: #64748B; }

/* Search input style */
.killer-input {
  width: 100%;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-size: 13.5px;
  color: #0F172A;
  margin-bottom: 12px;
}
.killer-input:focus {
  outline: none;
  border-color: #F59E0B;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
.killer-textarea {
  width: 100%;
  min-height: 120px;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-size: 13px;
  color: #0F172A;
  font-family: inherit;
  resize: vertical;
}

/* Toast */
.killer-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0A1F44;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 32px -8px rgba(10, 31, 68, 0.4);
  z-index: 100000;
  animation: killerToastIn 0.25s ease-out;
}
@keyframes killerToastIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Modal */
#killer-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.km-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 31, 68, 0.55);
  backdrop-filter: blur(2px);
}
.km-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  width: min(820px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px -12px rgba(10, 31, 68, 0.5);
  overflow: hidden;
}
.km-head {
  padding: 18px 24px;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.km-head h3 {
  margin: 0;
  font-size: 17px;
  color: #0A1F44;
  font-weight: 700;
}
.km-close {
  background: transparent;
  border: none;
  color: #64748B;
  font-size: 22px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}
.km-close:hover { background: #F1F5F9; color: #0A1F44; }
.km-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  font-size: 13.5px;
  color: #0F172A;
  line-height: 1.55;
}
.km-body h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #F59E0B;
  margin: 14px 0 6px;
  font-weight: 700;
}
.km-body p { margin: 6px 0; }
.km-body ul { padding-left: 22px; margin: 6px 0; }
.km-body ul li { margin: 4px 0; }

/* Dark mode tweaks */
.theme-dark .killer-feature { background: #0A1F44; }
.theme-dark .killer-card,
.theme-dark .killer-section,
.theme-dark .xray-card,
.theme-dark .hwm-card,
.theme-dark .listening-item {
  background: #112B5C;
  border-color: #1E3A6F;
  color: #E2E8F0;
}
.theme-dark .killer-card-title,
.theme-dark .killer-section h2,
.theme-dark .killer-section h3,
.theme-dark .hwm-card h4,
.theme-dark .xray-card h4,
.theme-dark .killer-hub-head h1 { color: #FBE5B4; }
.theme-dark .killer-card-desc,
.theme-dark .killer-hub-head .sub,
.theme-dark .killer-section .sub { color: #94A3B8; }
.theme-dark .killer-table thead th { background: #0A1F44; color: #94A3B8; border-color: #1E3A6F; }
.theme-dark .killer-table tbody td { border-color: #1E3A6F; color: #E2E8F0; }
.theme-dark .killer-table tbody tr:hover { background: #1A3367; }
.theme-dark .territory-day,
.theme-dark .listening-status > div { background: #1A3367; border-color: #1E3A6F; }
.theme-dark .km-card { background: #112B5C; }
.theme-dark .km-head { border-color: #1E3A6F; }
.theme-dark .km-head h3 { color: #FBE5B4; }
.theme-dark .km-body { color: #E2E8F0; }
.theme-dark .killer-input,
.theme-dark .killer-textarea { background: #0A1F44; color: #E2E8F0; border-color: #1E3A6F; }

/* QA additions: empty-state + coming-soon badge */
.empty-state {
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin: 16px 0;
}
.empty-state h3 { color: #0A1F44; margin-bottom: 8px; }
.empty-state p { color: #475569; max-width: 560px; margin: 8px auto; line-height: 1.5; }
.theme-dark .empty-state { background: #112B5C; border-color: #1E3A6F; }
.theme-dark .empty-state h3 { color: #FBE5B4; }
.theme-dark .empty-state p { color: #CBD5E1; }

.coming-soon-badge {
  display: inline-block;
  background: #FEF3C7;
  color: #92400E;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-left: 12px;
  vertical-align: middle;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.theme-dark .coming-soon-badge { background: #78350F; color: #FEF3C7; }
