:root {
  --bg: #0b0f17;
  --surface: #111820;
  --card: #161e27;
  --border: #1f2a37;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --bull: #10b981;
  --bull-glow: rgba(16,185,129,0.15);
  --bear: #f43f5e;
  --bear-glow: rgba(244,63,94,0.15);
  --accent: #3b82f6;
  --radius: 14px;
  --prob-medium: #f59e0b;
  --prob-medium-glow: rgba(245,158,11,0.15);
}

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

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

.container { width: 92%; max-width: 1100px; margin: 0 auto; }

/* NAV */
.navbar {
  border-bottom: 1px solid var(--border);
  background: rgba(11,15,23,0.8);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.nav-content {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.5px; }
.brand-icon { width: 26px; height: 26px; color: var(--accent); }
.brand-text { font-size: 1.25rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.nav-links a:hover { color: var(--text); }

/* HEADER */
.page-header { margin: 40px 0 20px; }
.page-header h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.subtitle { color: var(--muted); margin-top: 6px; max-width: 640px; }

/* BANNIÈRES */
.alert-box, .info-box {
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  line-height: 1.4;
}
.alert-box {
  background: rgba(251, 191, 36, 0.08);
  border-left: 4px solid #f59e0b;
  color: #fcd34d;
}
.alert-box strong {
  font-weight: 800;
  color: #fbbf24;
}
.info-box {
  background: rgba(59, 130, 246, 0.06);
  border-left: 4px solid var(--accent);
  color: var(--muted);
}
.info-box strong {
  color: #60a5fa;
  font-weight: 700;
}

/* SECTIONS */
.bias-section { margin-top: 36px; }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-date {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

/* GRID */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 20px; }

/* CARDS */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); }

.card.bullish { border-left: 5px solid var(--bull); box-shadow: 0 10px 30px -10px var(--bull-glow); }
.card.bearish { border-left: 5px solid var(--bear); box-shadow: 0 10px 30px -10px var(--bear-glow); }

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.symbol { font-weight: 800; font-size: 1.1rem; letter-spacing: 0.02em; color: var(--text); }
.badge {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 999px;
}
.badge.bullish { background: rgba(16,185,129,0.12); color: var(--bull); }
.badge.bearish { background: rgba(244,63,94,0.12); color: var(--bear); }

/* ============================================
   PROBABILITY BADGES : High / Medium / Low
   ============================================ */

.probability {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.prob-badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--muted);
}

/* HIGH : inversé — texte noir sur fond clair */
.prob-high {
  background: #e2e8f0; /* ← Gris clair / blanc cassé */
  color: #0f172a; /* ← Noir profund (presque noir) */
  border-color: #e2e8f0;
}

/* MEDIUM : gris clair sur fond transparent */
.prob-medium {
  background: transparent;
  color: var(--text); /* ← Gris clair standard */
  border-color: var(--muted);
}

/* LOW : gris clair sur fond transparent */
.prob-low {
  background: transparent;
  color: var(--text); /* ← Gris clair standard */
  border-color: var(--muted);
}

.prob-label-inline {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


.notes { margin-top: 14px; font-size: 0.85rem; color: var(--muted); line-height: 1.4; }

/* OVERLAY LOGIN */
.overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(11,15,23,0.96);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.overlay-content { text-align: center; max-width: 420px; padding: 20px; }
.overlay-content h2 { font-size: 1.6rem; margin-bottom: 6px; }
.tagline { color: var(--muted); margin-bottom: 24px; }

.login-box { display: flex; flex-direction: column; gap: 12px; }
#license-input {
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 0.95rem;
}
#license-input:focus { outline: none; border-color: var(--accent); }

.btn-primary {
  background: var(--text); color: var(--bg); font-weight: 700;
  border: none; padding: 12px; border-radius: 10px; cursor: pointer;
}
.btn-primary:hover { opacity: 0.9; }

.btn-whop {
  display: inline-block; margin-top: 4px;
  color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.9rem;
}
.btn-whop:hover { text-decoration: underline; }

.small { font-size: 0.8rem; color: var(--muted); margin-top: 8px; }

/* FOOTER */
.site-footer { border-top: 1px solid var(--border); padding: 30px 0; margin-top: 20px; }
.site-footer p { color: var(--muted); font-size: 0.8rem; max-width: 900px; line-height: 1.5; }
.copyright { margin-top: 10px; opacity: 0.7; }

.hidden { display: none !important; }
