/* FlipScout Data-Dense Command Center */

:root {
  --cc-bg: #050810;
  --cc-panel: #0a0f1c;
  --cc-border: rgba(255, 255, 255, 0.08);
  --cc-green: #22c55e;
  --cc-amber: #facc15;
  --cc-blue: #3b82f6;
  --cc-red: #ef4444;
  --cc-mono: "SF Mono", "Cascadia Code", "Consolas", monospace;
}

* { box-sizing: border-box; }

.cc-terminal {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body.cc-modal-open { overflow: hidden; }

/* ── Global nav ── */
.cc-global-nav { flex-shrink: 0; }

.cc-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.cc-logo-mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.4rem;
  background: var(--cc-green);
  color: var(--cc-bg);
  font-size: 0.65rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cc-logo-text { letter-spacing: -0.02em; }

.cc-global-links a { text-decoration: none; }
.cc-nav-active { color: var(--cc-green) !important; }

/* ── Search bar ── */
.cc-search-bar { flex-shrink: 0; }

.cc-search-input-wrap { position: relative; }

.cc-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #475569;
  font-size: 14px;
  pointer-events: none;
}

.cc-search-input {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--cc-border);
  border-radius: 8px;
  padding: 10px 12px 10px 32px;
  font-size: 13px;
  color: #e2e8f0;
  outline: none;
  font-family: system-ui, sans-serif;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cc-search-input:focus {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.12);
}

.cc-search-input::placeholder { color: #475569; }

.cc-search-btn {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cc-bg);
  background: var(--cc-green);
  border: none;
  border-radius: 8px;
  padding: 0 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.cc-search-btn:hover { background: #4ade80; }

.cc-filter-reply { animation: cc-line-in 0.25s ease-out; }

/* ── Main layout ── */
.cc-main {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.cc-view-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
  pointer-events: none;
}

.cc-view-panel.cc-view-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

/* ── Card grid ── */
.cc-card-grid-wrap {
  background: #060a14;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.cc-card-grid-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.cc-card-grid-wrap::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}

.cc-card-grid-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

.cc-card-grid-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(34, 197, 94, 0.45);
}

.cc-card-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  align-content: start;
}

.cc-card-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: #475569;
  padding: 3rem;
  font-style: italic;
  font-size: 13px;
}

.cc-property-card {
  background: var(--cc-panel);
  border: 1px solid var(--cc-border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.cc-property-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(34, 197, 94, 0.1);
}

.cc-property-card.cc-card--selected {
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.cc-property-card.cc-card--hidden { display: none; }

.cc-card-photo-wrap {
  position: relative;
  height: 140px;
  overflow: hidden;
  background: #000;
}

.cc-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 0.3s ease;
}

.cc-property-card:hover .cc-card-photo { transform: scale(1.03); }

.cc-apex-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  min-width: 36px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--cc-mono);
  text-align: center;
  z-index: 2;
}

.cc-apex-badge--hot {
  color: #050810;
  background: var(--cc-amber);
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.55), 0 0 32px rgba(250, 204, 21, 0.25);
}

.cc-apex-badge--good {
  color: #86efac;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.cc-apex-badge--mid { color: #fde68a; background: rgba(234, 179, 8, 0.15); }
.cc-apex-badge--low { color: #94a3b8; background: rgba(100, 116, 139, 0.2); }
.cc-apex-badge--na { color: #475569; background: rgba(0, 0, 0, 0.5); }

.cc-traj-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  z-index: 2;
}

.cc-traj--improving {
  color: #86efac;
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.35);
}

.cc-traj--stable {
  color: #cbd5e1;
  background: rgba(100, 116, 139, 0.25);
  border-color: rgba(148, 163, 184, 0.3);
}

.cc-traj--declining {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
}

.cc-card-body { padding: 10px 12px 12px; }

.cc-card-address {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-card-specs {
  margin: 2px 0 0;
  font-size: 10px;
  color: #64748b;
  font-family: var(--cc-mono);
}

.cc-card-price {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: #e2e8f0;
  font-family: var(--cc-mono);
}

.cc-card-snippet {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: #94a3b8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cc-card-math {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--cc-border);
}

.cc-math-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #64748b;
  margin-bottom: 2px;
  font-family: var(--cc-mono);
}

.cc-math-row span:last-child { color: #cbd5e1; font-weight: 600; }

.cc-math-row--profit span:last-child {
  color: var(--cc-green);
  font-size: 14px;
  font-weight: 800;
}

.cc-mini-apex {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.cc-mini-bar-row {
  display: grid;
  grid-template-columns: 58px 1fr 22px;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
  font-size: 8px;
}

.cc-mini-bar-label {
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cc-mini-bar-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.cc-mini-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cc-blue), var(--cc-green));
}

.cc-mini-bar-val {
  text-align: right;
  color: #94a3b8;
  font-family: var(--cc-mono);
}

/* ── Liquid modal ── */
.cc-liquid-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.cc-liquid-modal.hidden { display: none; }

.cc-liquid-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, 0.75);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.cc-liquid-modal--open .cc-liquid-backdrop { opacity: 1; }

.cc-liquid-panel {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  background: linear-gradient(165deg, rgba(10, 15, 28, 0.97) 0%, rgba(5, 8, 16, 0.98) 100%);
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  overflow: hidden;
}

.cc-liquid-modal--open .cc-liquid-panel {
  transform: translateY(0);
  opacity: 1;
}

.cc-liquid-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--cc-border);
  flex-shrink: 0;
}

.cc-modal-close {
  font-size: 24px;
  line-height: 1;
  color: #64748b;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 4px;
}

.cc-modal-close:hover { color: #e2e8f0; }

.cc-modal-back {
  font-size: 11px;
  font-weight: 600;
  color: var(--cc-green);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.15s;
}

.cc-modal-back:hover { background: rgba(34, 197, 94, 0.15); }

.cc-liquid-body {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 2rem;
}

.cc-modal-loading {
  text-align: center;
  color: #64748b;
  padding: 4rem;
  font-style: italic;
}

.cc-modal-hero {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #000;
}

.cc-modal-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.cc-modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 8, 16, 0.9) 0%, transparent 50%);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px;
}

.cc-modal-content { padding: 16px 20px 24px; }

.cc-modal-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.cc-modal-location {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
  font-family: var(--cc-mono);
}

.cc-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.cc-section-title {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.cc-proforma {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--cc-border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}

.cc-proforma-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 4px 0;
  color: #94a3b8;
  font-family: var(--cc-mono);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cc-proforma-row span:last-child { color: #e2e8f0; font-weight: 600; }

.cc-proforma-row--total {
  border-bottom: none;
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px solid var(--cc-border);
}

.cc-proforma-row--total span:last-child {
  color: var(--cc-green);
  font-size: 18px;
  font-weight: 800;
}

.cc-proforma-roi {
  margin: 6px 0 0;
  font-size: 11px;
  color: #64748b;
}

.cc-reno-scope {
  margin-top: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--cc-border);
  border-radius: 8px;
  padding: 12px;
}

.cc-reno-scope-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cc-reno-scope-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: #94a3b8;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cc-reno-scope-amt {
  color: #fbbf24;
  font-family: var(--cc-mono);
  font-weight: 600;
  white-space: nowrap;
}

.cc-reno-disclaimer {
  margin: 12px 0 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 10px;
  font-style: italic;
  color: #94a3b8;
  line-height: 1.45;
}

.cc-arv-buildup {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--cc-border);
  border-radius: 8px;
  padding: 12px;
}

.cc-arv-meta {
  margin: 0 0 8px;
  font-size: 11px;
  color: #94a3b8;
  font-family: var(--cc-mono);
}

.cc-comps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
  color: #cbd5e1;
}

.cc-comps-list li {
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cc-apex-panel {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--cc-border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}

.cc-apex-score-lg {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 800;
  color: var(--cc-amber);
  font-family: var(--cc-mono);
}

.cc-inspector-panel {
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  padding: 12px;
}

.cc-inspector-notes {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #cbd5e1;
}

.cc-trajectory-notes {
  margin: 10px 0 0;
  font-size: 11px;
  color: #64748b;
  font-style: italic;
}

.cc-condition-tag {
  margin: 8px 0 0;
  font-size: 10px;
  color: #94a3b8;
  font-family: var(--cc-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cc-datasheet-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  color: var(--cc-green);
  text-decoration: none;
  font-family: var(--cc-mono);
}

.cc-datasheet-link:hover { text-decoration: underline; }

/* ── Neural strip ── */
.cc-neural-strip { max-height: 72px; }

.cc-neural-strip-feed {
  flex-direction: row;
  flex-wrap: nowrap;
  max-height: 44px;
}

.cc-neural-chip {
  flex-shrink: 0;
  font-size: 9px;
  line-height: 1.35;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #94a3b8;
  font-family: var(--cc-mono);
  white-space: nowrap;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-neural-chip time { color: #475569; margin-right: 4px; }
.cc-neural-chip--alert { border-color: rgba(34, 197, 94, 0.35); color: #86efac; }
.cc-neural-chip--macro { border-color: rgba(59, 130, 246, 0.35); color: #93c5fd; }


/* ── Ticker ── */
.cc-ticker-bar {
  height: 22px;
  background: linear-gradient(90deg, #0a1628 0%, #0d1f3c 50%, #0a1628 100%);
  border-bottom: 1px solid rgba(34, 197, 94, 0.25);
  overflow: hidden;
  position: relative;
}

.cc-ticker-bar::before {
  content: "LIVE";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 2;
  background: #0a1628;
  padding: 0 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--cc-green);
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(34, 197, 94, 0.3);
}

.cc-ticker-track {
  display: flex;
  white-space: nowrap;
  animation: cc-ticker-scroll 40s linear infinite;
  padding-left: 48px;
}

.cc-ticker-item {
  font-size: 10px;
  font-family: var(--cc-mono);
  color: #94a3b8;
  padding: 4px 0;
  flex-shrink: 0;
}

.cc-ticker-dup { padding-left: 4rem; }

@keyframes cc-ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Pane headers ── */
.cc-pane-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--cc-border);
  background: rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.cc-pane-header h2 {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #cbd5e1;
}

.cc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cc-dot-green { background: var(--cc-green); box-shadow: 0 0 6px var(--cc-green); }
.cc-dot-amber { background: var(--cc-amber); box-shadow: 0 0 6px var(--cc-amber); }
.cc-dot-blue { background: var(--cc-blue); box-shadow: 0 0 6px var(--cc-blue); }

/* ── AI Chat ── */
.cc-chat-log { font-family: var(--cc-mono); }

.cc-chat-msg {
  padding: 6px 8px;
  border-radius: 4px;
  line-height: 1.4;
}

.cc-chat-ai {
  background: rgba(59, 130, 246, 0.08);
  border-left: 2px solid var(--cc-blue);
  color: #94a3b8;
}

.cc-chat-user {
  background: rgba(34, 197, 94, 0.08);
  border-left: 2px solid var(--cc-green);
  color: #cbd5e1;
}

.cc-chat-input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--cc-border);
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 11px;
  color: #e2e8f0;
  outline: none;
  font-family: var(--cc-mono);
}

.cc-chat-input:focus {
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.15);
}

.cc-chat-input::placeholder { color: #475569; }

.cc-locate-btn {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #facc15;
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 4px;
  padding: 3px 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.cc-locate-btn:hover {
  background: rgba(250, 204, 21, 0.18);
  border-color: rgba(250, 204, 21, 0.55);
}

/* ── View toggle ── */
.cc-view-toggle {
  display: flex;
  border: 1px solid var(--cc-border);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}

.cc-view-btn {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  background: transparent;
  border: none;
  padding: 4px 10px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  font-family: var(--cc-mono);
}

.cc-view-btn:hover { color: #cbd5e1; }

.cc-view-btn.active {
  color: var(--cc-green);
  background: rgba(34, 197, 94, 0.12);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.25);
}

/* ── Grid toolbar / presets ── */
.cc-grid-toolbar { flex-shrink: 0; }

.cc-grid-toolbar-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #475569;
  margin-right: 4px;
}

.cc-preset-clear { margin-left: auto; }

.cc-preset-btn {
  font-size: 9px;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--cc-border);
  border-radius: 999px;
  padding: 3px 7px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.cc-preset-btn:hover,
.cc-preset-btn.active {
  color: var(--cc-green);
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.08);
}

.cc-locate-btn {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #facc15;
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.cc-locate-btn:hover {
  background: rgba(250, 204, 21, 0.18);
  border-color: rgba(250, 204, 21, 0.55);
}

/* ── Neural Monitor ── */
.cc-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64748b;
  flex-shrink: 0;
}

.cc-pulse-dot.online {
  background: var(--cc-green);
  box-shadow: 0 0 8px var(--cc-green);
  animation: cc-pulse 2s ease-in-out infinite;
}

.cc-pulse-dot.offline { background: var(--cc-red); }

@keyframes cc-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.cc-activity-label {
  font-size: 9px;
  color: #64748b;
  font-family: var(--cc-mono);
  margin-left: auto;
}

.cc-neural-feed {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--cc-mono);
}

.cc-feed-empty {
  color: #475569;
  font-size: 10px;
  text-align: center;
  margin: 1.5rem 0;
}

.cc-neural-line {
  font-size: 10px;
  line-height: 1.45;
  padding: 0.55rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  border-left: 2px solid transparent;
  animation: cc-line-in 0.35s ease-out;
  margin-bottom: 0.35rem;
}

.cc-neural-line time {
  color: #475569;
  margin-right: 4px;
}

.cc-neural-line.status { border-color: #64748b; color: #64748b; }
.cc-neural-line.log {
  border-color: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.04);
}
.cc-neural-line.idle,
.cc-neural-line.heartbeat {
  border-color: rgba(100, 116, 139, 0.35);
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.4);
  font-style: italic;
}
.cc-neural-line.price { border-color: var(--cc-green); color: #86efac; background: rgba(34,197,94,0.06); }
.cc-neural-line.macro { border-color: var(--cc-blue); color: #93c5fd; background: rgba(59,130,246,0.06); }

@keyframes cc-line-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Legacy alert cards (price_drop / macro_alert) */
.cc-alert {
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 10px;
  line-height: 1.35;
  border: 1px solid transparent;
  animation: cc-line-in 0.3s ease-out;
}

.cc-alert-price {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.cc-alert-macro {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}

.cc-alert strong {
  display: block;
  font-size: 8px;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
  opacity: 0.8;
}

.cc-alert time { font-size: 9px; opacity: 0.5; }

/* ── Map ── */
.cc-map { min-height: 0; }

.mapboxgl-popup-content {
  background: #0a0f1c !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 6px !important;
  padding: 8px 10px !important;
  font-size: 11px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6) !important;
}

.mapboxgl-popup-tip { border-top-color: #0a0f1c !important; }

.cc-map-fallback {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(34,197,94,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(239,68,68,0.08) 0%, transparent 60%),
    #060a14;
}

/* Glowing pins */
.cc-pin-glow {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 0 12px 3px currentColor;
  transition: transform 0.15s;
}

.cc-pin-glow:hover { transform: scale(1.3); }
.cc-pin-hot { color: #22c55e; background: #22c55e; }
.cc-pin-apex { color: #facc15; background: #facc15; }
.cc-pin-normal { color: #3b82f6; background: #3b82f6; }

.cc-inspector-close {
  font-size: 16px;
  line-height: 1;
  color: #64748b;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 4px;
}

.cc-inspector-close:hover { color: #e2e8f0; }

/* ── Mobile deal sheet modal ── */
.cc-deal-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.cc-deal-modal.hidden { display: none; }

.cc-deal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.cc-deal-modal-panel {
  position: relative;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--cc-panel);
  border-top: 1px solid var(--cc-border);
  border-radius: 12px 12px 0 0;
  animation: cc-modal-slide 0.3s ease-out;
}

@keyframes cc-modal-slide {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ── Inspector ── */
.cc-inspector-photo-wrap {
  position: relative;
  height: 120px;
  overflow: hidden;
  background: #000;
}

.cc-inspector-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.cc-inspector-badges {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  gap: 4px;
}

.cc-badge {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 3px;
}

.cc-badge-hot { background: rgba(34,197,94,0.9); color: #050810; }
.cc-badge-apex { background: rgba(250,204,21,0.9); color: #050810; }

.cc-metric {
  padding: 4px 6px;
  background: rgba(0,0,0,0.25);
  border-radius: 3px;
  border: 1px solid var(--cc-border);
}

.cc-metric-lbl {
  display: block;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.cc-metric-val {
  display: block;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--cc-mono);
  color: #e2e8f0;
  margin-top: 1px;
}

.cc-apex-bar-row {
  display: grid;
  grid-template-columns: 72px 1fr 28px;
  align-items: center;
  gap: 4px;
  font-size: 9px;
}

.cc-apex-bar-label {
  color: #64748b;
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-apex-bar-track {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.cc-apex-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #3b82f6, #22c55e);
  transition: width 0.3s ease;
}

.cc-apex-bar-val {
  text-align: right;
  color: #94a3b8;
  font-family: var(--cc-mono);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .cc-card-grid {
    grid-template-columns: 1fr;
  }
  .cc-modal-grid {
    grid-template-columns: 1fr;
  }
  .cc-global-links { display: none !important; }
  .cc-neural-strip { display: none; }
}

@media (max-width: 1024px) {
  .cc-modal-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Auth pages (login / register) ── */
.cc-auth-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--cc-bg);
  color: #e2e8f0;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

.cc-auth-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.cc-auth-mesh::before,
.cc-auth-mesh::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: cc-mesh-drift 18s ease-in-out infinite;
}

.cc-auth-mesh::before {
  width: 55vw;
  height: 55vw;
  top: -15%;
  left: -10%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.3) 0%, transparent 70%);
}

.cc-auth-mesh::after {
  width: 50vw;
  height: 50vw;
  bottom: -20%;
  right: -15%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, transparent 70%);
  animation-delay: -9s;
}

.cc-auth-mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: cc-mesh-pulse 12s ease-in-out infinite;
}

.cc-auth-mesh-orb--1 {
  width: 40vw;
  height: 40vw;
  top: 35%;
  left: 30%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.16) 0%, transparent 65%);
}

.cc-auth-mesh-orb--2 {
  width: 35vw;
  height: 35vw;
  top: 60%;
  left: 5%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.14) 0%, transparent 65%);
  animation-delay: -4s;
}

@keyframes cc-mesh-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4%, 3%) scale(1.05); }
  66% { transform: translate(-3%, 2%) scale(0.98); }
}

@keyframes cc-mesh-pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(1.08); }
}

.cc-auth-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.cc-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  transition: opacity 0.2s;
}

.cc-logo:hover { opacity: 0.88; }

.cc-logo-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--cc-green);
  color: var(--cc-bg);
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cc-auth-logo { margin-bottom: 1.75rem; }

.cc-auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2rem 1.75rem;
  border-radius: 1rem;
  background: rgba(10, 15, 28, 0.85);
  border: 1px solid var(--cc-border);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.cc-auth-card h1 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.cc-auth-sub {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #94a3b8;
}

.cc-auth-error {
  margin-bottom: 1rem;
  padding: 0.75rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.cc-auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cc-auth-form label {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #cbd5e1;
}

.cc-auth-form input {
  width: 100%;
  padding: 0.7rem 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: #f1f5f9;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cc-auth-form input::placeholder { color: #64748b; }

.cc-auth-form input:focus {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.cc-auth-btn {
  margin-top: 1.25rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 9999px;
  background: #fff;
  color: var(--cc-bg);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.cc-auth-btn:hover {
  background: #f1f5f9;
}

.cc-auth-btn:active { transform: scale(0.98); }

.cc-auth-foot {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

.cc-auth-foot a {
  color: var(--cc-green);
  text-decoration: none;
  font-weight: 500;
}

.cc-auth-foot a:hover { text-decoration: underline; }

.cc-auth-back {
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
}

.cc-auth-back a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s;
}

.cc-auth-back a:hover { color: #cbd5e1; }
