/* ==========================================================================
   AGENT GOD'S EYE — AVANT-GARDE OBSIDIAN TACTICAL RADAR DESIGN SYSTEM
   Neal Frazier Tech (@1nc0gn30) • NullAI Platform
   ========================================================================== */

:root {
  --bg-void: #08080B;
  --bg-card: #0F111A;
  --bg-card-subtle: #151824;
  --border-card: rgba(212, 175, 55, 0.22);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(6, 182, 212, 0.5);

  --gold: #D4AF37;
  --gold-glow: rgba(212, 175, 55, 0.4);
  --gold-dim: #997E25;

  --cyan: #06B6D4;
  --cyan-glow: rgba(6, 182, 212, 0.35);
  --cyan-dim: #0891B2;

  --emerald: #10B981;
  --emerald-glow: rgba(16, 185, 129, 0.35);

  --ruby: #EF4444;
  --ruby-glow: rgba(239, 68, 68, 0.4);

  --amber: #F59E0B;
  --amber-glow: rgba(245, 158, 11, 0.35);

  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;

  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg-void);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background Aurora Mesh */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  background: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.12) 0%, rgba(212, 175, 55, 0.08) 50%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   SALES FUNNEL BANNER (Above-the-Fold Sovereign Conversion Architecture)
   ========================================================================== */
.sales-banner {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.14) 0%, rgba(15, 17, 26, 0.96) 100%);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  margin: 1rem 0 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 4px 24px rgba(212, 175, 55, 0.15);
}

.sales-banner-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.founding-badge {
  background: var(--gold);
  color: #08080B;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sales-banner-text {
  font-size: 0.9rem;
  color: var(--text-main);
}

.price-strike {
  text-decoration: line-through;
  color: var(--text-dim);
  margin-right: 0.35rem;
}

.price-current {
  color: var(--gold);
  font-weight: 800;
}

.sales-banner-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   BUTTONS & CONTROLS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  min-height: 44px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #B8972E 100%);
  color: #08080B;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  background: #E5C34D;
  box-shadow: 0 4px 16px var(--gold-glow);
  transform: translateY(-1px);
}

.btn-cyan {
  background: linear-gradient(135deg, var(--cyan) 0%, #0891B2 100%);
  color: #08080B;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.3);
}

.btn-cyan:hover {
  background: #22D3EE;
  box-shadow: 0 4px 16px var(--cyan-glow);
  transform: translateY(-1px);
}

.btn-solana {
  background: linear-gradient(135deg, #14F195 0%, #9945FF 100%);
  color: #08080B;
  font-weight: 700;
}

.btn-solana:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 175, 55, 0.05);
}

.btn-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.4rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.btn-link:hover {
  color: var(--gold);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0 1.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-icon {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.5));
}

.brand-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.brand-version {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   BENTO GRID LAYOUT
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-card), transparent);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

.card-title-icon {
  color: var(--cyan);
}

/* Metric Cards */
.metric-box {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.metric-val.val-gold { color: var(--gold); }
.metric-val.val-cyan { color: var(--cyan); }
.metric-val.val-ruby { color: var(--ruby); }
.metric-val.val-emerald { color: var(--emerald); }

.metric-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   3D KINETIC RADAR CANVAS CONTAINER
   ========================================================================== */
.radar-stage {
  position: relative;
  width: 100%;
  height: 480px;
  background: radial-gradient(circle at 50% 50%, #0E1322 0%, #08080B 100%);
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  cursor: grab;
}

.radar-stage:active {
  cursor: grabbing;
}

#globeCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.radar-overlay-hud {
  position: absolute;
  top: 1rem;
  left: 1rem;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hud-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(8, 8, 11, 0.75);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--cyan);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  display: inline-block;
  width: fit-content;
}

.radar-controls-hud {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.radar-btn {
  background: rgba(15, 17, 26, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  min-height: 38px;
}

.radar-btn:hover, .radar-btn.active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.12);
}

/* ==========================================================================
   SEARCH & FILTER BAR
   ========================================================================== */
.search-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.search-input-group {
  display: flex;
  gap: 0.5rem;
}

.form-control {
  flex: 1;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #FFF;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  min-height: 44px;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px var(--border-focus);
}

.text-mono {
  font-family: var(--font-mono);
}

.preset-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chip {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.chip:hover, .chip.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

/* ==========================================================================
   TARGETS TABLE
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.data-table th {
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.threat-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.threat-high {
  background: rgba(239, 68, 68, 0.15);
  color: var(--ruby);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.threat-med {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.threat-low {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.port-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  display: inline-block;
  margin: 0.1rem;
}

/* ==========================================================================
   LIVE SSE STREAM CONSOLE
   ========================================================================== */
.stream-box {
  background: #050608;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  height: 220px;
  overflow-y: auto;
  color: #10B981;
}

.stream-entry {
  margin-bottom: 0.35rem;
  line-height: 1.4;
  word-break: break-all;
}

.stream-time {
  color: var(--text-dim);
  margin-right: 0.5rem;
}

/* ==========================================================================
   FROSTED GLASS BLUR PAYWALL
   ========================================================================== */
.paywall-wrapper {
  position: relative;
  overflow: hidden;
}

.paywall-blurred {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
  opacity: 0.65;
  transition: filter 0.3s ease;
}

body.pro-licensed .paywall-blurred {
  filter: none;
  user-select: auto;
  pointer-events: auto;
  opacity: 1;
}

.paywall-overlay {
  position: absolute;
  top: 55px;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(15, 17, 26, 0.94) 0%, rgba(8, 8, 11, 0.98) 100%);
  padding: 2rem;
  text-align: center;
  z-index: 10;
}

body.pro-licensed .paywall-overlay {
  display: none !important;
}

.paywall-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 12px var(--gold-glow));
}

.paywall-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.paywall-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* ==========================================================================
   MODAL (PRO PAYWALL & HOST INSPECTION)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px var(--gold-glow);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #FFF;
}

.matrix-list {
  list-style: none;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.matrix-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-main);
}

.matrix-check {
  color: var(--gold);
  font-weight: 800;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--gold);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVENESS (375px Mobile, 768px Tablet, 1280px Desktop)
   ========================================================================== */
@media (max-width: 1024px) {
  .col-3 { grid-column: span 6; }
  .col-4 { grid-column: span 6; }
  .col-8 { grid-column: span 12; }
}

@media (max-width: 768px) {
  .col-3, .col-4, .col-6 { grid-column: span 12; }
  .sales-banner { flex-direction: column; align-items: flex-start; }
  .sales-banner-right { width: 100%; justify-content: flex-start; }
  .radar-stage { height: 360px; }
  .header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container { padding: 0 0.75rem; }
  .radar-stage { height: 300px; }
  .search-input-group { flex-direction: column; }
  .btn { width: 100%; }
}
