/* ===================================
   SharpROI — Shared Styles
   =================================== */
:root {
  --bg: #0a0e13;
  --bg2: #0f1419;
  --panel: #161c25;
  --panel2: #1f2734;
  --border: #2a3340;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --dim: #64748b;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --up: #10b981;
  --down: #ef4444;
  --gold: #fbbf24;
  --c1: #3b82f6;
  --c2: #f59e0b;
  --c3: #ef4444;
  --c4: #a855f7;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 14px;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
.mono { font-family: 'JetBrains Mono', 'Menlo', monospace; }

/* ----- Top nav ----- */
.nav {
  background: rgba(22, 28, 37, 0.85);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
}
.logo {
  font-weight: 900; font-size: 18px;
  letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 6px;
}
.logo .accent {
  background: linear-gradient(135deg, #3b82f6, #10b981);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.btn {
  font-family: inherit; font-weight: 600; font-size: 13px;
  padding: 9px 18px; border-radius: 6px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: opacity 0.15s, transform 0.1s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-hover)); color: white; }
.btn-success { background: linear-gradient(135deg, #10b981, #059669); color: white; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ----- Hero ----- */
.hero {
  padding: 60px 28px 40px;
  background: radial-gradient(ellipse at top, rgba(59, 130, 246, 0.08), transparent 60%);
  text-align: center;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900; letter-spacing: -1px;
  margin-bottom: 12px; line-height: 1.1;
}
.hero h1 .grad {
  background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .sub {
  color: var(--muted); font-size: clamp(15px, 2vw, 18px);
  max-width: 640px; margin: 0 auto 28px;
}
.hero-cta {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ----- Stats strip ----- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding: 24px 28px;
  max-width: 1200px; margin: 0 auto;
}
.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  text-align: center;
}
.stat-card .v {
  font-family: 'JetBrains Mono', monospace;
  font-size: 30px; font-weight: 800;
  letter-spacing: -0.5px; margin-bottom: 4px;
}
.stat-card .l {
  color: var(--muted); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.8px;
}
.stat-card.pos .v { color: var(--up); }
.stat-card.accent .v { color: var(--accent); }
.stat-card.gold .v { color: var(--gold); }

/* ----- Sections ----- */
.section {
  padding: 40px 28px;
  max-width: 1200px; margin: 0 auto;
}
.section h2 {
  font-size: 28px; font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px; text-align: center;
}
.section .sub {
  color: var(--muted);
  text-align: center; margin-bottom: 32px;
  font-size: 15px;
}

/* ----- 3-step explainer ----- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px; text-align: center;
}
.step .icon { font-size: 36px; margin-bottom: 12px; }
.step h3 { font-size: 16px; margin-bottom: 8px; color: var(--accent); }
.step p { color: var(--muted); font-size: 13px; }

/* ----- Tiers ----- */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.tier {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  position: relative;
}
.tier.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), var(--panel));
}
.tier-badge {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent); color: white;
  padding: 4px 12px; border-radius: 12px;
  font-size: 11px; font-weight: 700;
}
.tier h3 { font-size: 22px; margin-bottom: 6px; }
.tier .price {
  font-size: 32px; font-weight: 900;
  margin: 12px 0;
  font-family: 'JetBrains Mono', monospace;
}
.tier .price .per { font-size: 14px; color: var(--muted); font-weight: 400; }
.tier ul { list-style: none; margin: 16px 0; }
.tier li {
  padding: 6px 0; color: var(--muted); font-size: 13px;
  display: flex; align-items: center; gap: 8px;
}
.tier li::before { content: '✓'; color: var(--up); font-weight: 800; }
.tier li.no::before { content: '✗'; color: var(--down); }

/* ----- Auth forms ----- */
.auth-wrap {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 80px);
  padding: 40px 20px;
}
.auth-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px 36px;
  width: 100%; max-width: 420px;
}
.auth-card h1 {
  font-size: 24px; margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.auth-card .sub {
  color: var(--muted); margin-bottom: 24px;
  font-size: 13px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--muted); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.field input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit; font-size: 14px;
  padding: 11px 14px; border-radius: 6px;
  outline: none; transition: border-color 0.15s;
}
.field input:focus { border-color: var(--accent); }
.auth-card .alt {
  margin-top: 18px; font-size: 13px;
  color: var(--muted); text-align: center;
}
.auth-card .alt a { color: var(--accent); }

.msg {
  padding: 10px 14px; border-radius: 6px;
  font-size: 13px; margin-bottom: 14px;
  display: none;
}
.msg.show { display: block; }
.msg.error { background: rgba(239, 68, 68, 0.12); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.msg.success { background: rgba(16, 185, 129, 0.12); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }
.msg.info { background: rgba(59, 130, 246, 0.12); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.3); }

/* ----- Dashboard ----- */
.dash-wrap { padding: 28px; max-width: 1400px; margin: 0 auto; }
.dash-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.tier-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 12px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.tier-pill.free { background: rgba(148, 163, 184, 0.15); color: var(--muted); }
.tier-pill.pro { background: linear-gradient(135deg, #3b82f6, #10b981); color: white; }

.upgrade-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(16, 185, 129, 0.15));
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 16px 22px; margin-bottom: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.upgrade-banner h3 { font-size: 16px; }
.upgrade-banner p { color: var(--muted); font-size: 13px; }

.signals-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
@media (max-width: 1100px) { .signals-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .signals-grid { grid-template-columns: 1fr; } }

.signal-col {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  min-height: 400px;
  display: flex; flex-direction: column;
}
.signal-col-header {
  padding: 12px 16px; background: var(--panel2);
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.signal-col-header h3 {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.signal-col-header .count {
  background: var(--bg);
  padding: 3px 10px; border-radius: 10px;
  font-size: 11px; color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}
.col-c1 .signal-col-header h3 { color: var(--c1); }
.col-c2 .signal-col-header h3 { color: var(--c2); }
.col-c3 .signal-col-header h3 { color: var(--c3); }
.col-c4 .signal-col-header h3 { color: var(--c4); }

.signal-col-body {
  padding: 10px; flex: 1;
  overflow-y: auto; max-height: 540px;
}
.sig-card {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 12px;
}
.sig-teams {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 12px;
  margin-bottom: 4px; letter-spacing: 1.5px;
}
.sig-teams.masked { color: var(--dim); letter-spacing: 2px; }
.sig-meta {
  display: flex; gap: 8px;
  font-size: 10px; color: var(--muted);
  flex-wrap: wrap; margin-top: 6px;
}
.sig-badge {
  background: var(--bg);
  padding: 2px 6px; border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
}
.sig-badge.edge { color: var(--up); font-weight: 700; }

.empty-state {
  color: var(--muted); text-align: center;
  padding: 30px 14px; font-size: 12px;
}

/* ----- Footer ----- */
footer {
  padding: 32px 28px;
  text-align: center;
  color: var(--dim);
  font-size: 12px;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}
footer a { color: var(--muted); }
.disclaimer {
  max-width: 800px; margin: 0 auto;
  padding: 20px;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  font-size: 11px; color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 680px) {
  .nav { padding: 12px 16px; }
  .hero { padding: 36px 16px 24px; }
  .stats-strip { padding: 16px; }
  .section { padding: 28px 16px; }
}
