/* ============================================================
   Polymarket UK — Brand Protection Site
   Design: Dark theme + green accent, mirroring polymarket.com
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0d0f14;
  --bg-card:     #161a24;
  --bg-card-h:   #1c2130;
  --border:      #242a38;
  --green:       #00dc82;
  --green-dim:   #00b368;
  --green-bg:    rgba(0, 220, 130, 0.08);
  --red:         #f04f4f;
  --red-bg:      rgba(240, 79, 79, 0.08);
  --text:        #f0f2f7;
  --text-muted:  #7a8499;
  --text-dim:    #4a5568;
  --accent-blue: #5b8def;
  --radius:      12px;
  --radius-sm:   8px;
  --transition:  0.18s ease;
  --font:        'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font); }
input, select { font-family: var(--font); }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: #000;
}

/* Logo image (replaces logo-icon when using actual image) */
.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.logo-text { color: var(--text); }
.logo-text span { color: var(--green); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--bg-card);
}

/* Nav right */
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; border-radius: var(--radius-sm); transition: all var(--transition); border: none; white-space: nowrap; }

.btn-ghost {
  padding: 8px 16px;
  font-size: 0.875rem;
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); background: var(--bg-card); }

.btn-primary {
  padding: 8px 20px;
  font-size: 0.875rem;
  background: var(--green);
  color: #000;
}
.btn-primary:hover { background: #00f090; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,220,130,0.3); }

.btn-outline {
  padding: 10px 24px;
  font-size: 0.9375rem;
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
}
.btn-outline:hover { background: var(--green-bg); }

.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.hamburger span { width: 22px; height: 2px; background: var(--text-muted); border-radius: 2px; transition: all 0.25s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 72px;
  text-align: center;
}

/* Gradient glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(0,220,130,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-bg);
  border: 1px solid rgba(0,220,130,0.25);
  color: var(--green);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-badge .dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: var(--text);
}

.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Stats row */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-value {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  display: block;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section { padding: 72px 24px; }
.section-sm { padding: 48px 24px; }

.container { max-width: 1280px; margin: 0 auto; }
.container-sm { max-width: 800px; margin: 0 auto; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.section-title-lg {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Content Sections (What is / How it Works / Legal) ---------- */
.content-section-inner { max-width: 860px; margin: 0 auto; }
.content-section-inner .section-title-lg { margin-bottom: 28px; }

.content-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.content-body p strong { color: var(--text); }

.legal-notice {
  background: rgba(0, 220, 130, 0.08);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 24px;
}
.legal-notice strong { color: var(--green); }

/* FAQ list */
.faq-list { margin-top: 40px; display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item[open] { border-color: var(--green); }

.faq-q {
  list-style: none;
  padding: 18px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: '+'; font-size: 1.25rem; color: var(--green); flex-shrink: 0; }
.faq-item[open] .faq-q::after { content: '−'; }

.faq-a {
  padding: 0 20px 18px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.faq-a p { margin: 0; }

/* ---------- Tag / Category Filters ---------- */
.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 32px;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }

.filter-btn {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--green-bg);
  color: var(--green);
  border-color: rgba(0,220,130,0.3);
}

/* ============================================================
   MARKET CARDS
   ============================================================ */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.market-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
}

.market-card:hover {
  background: var(--bg-card-h);
  border-color: rgba(0,220,130,0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* Card header */
.card-header { display: flex; align-items: flex-start; gap: 12px; }

.card-icon {
  width: 40px;
  height: 40px;
  max-width: 50px;
  max-height: 50px;
  border-radius: var(--radius-sm);
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  overflow: hidden;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Market article banner image */
.market-article-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.card-meta {
  flex: 1;
  min-width: 0;
}

.card-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Probability bar */
.prob-bar-wrap { display: flex; flex-direction: column; gap: 8px; }

.prob-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prob-yes {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--green);
}

.prob-no {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--red);
}

.prob-track {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.prob-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-dim));
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* Card footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.card-vol {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.card-vol strong {
  color: var(--text);
  font-weight: 600;
}

.card-ends {
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  padding: 3px 8px;
  border-radius: 4px;
}

/* Trade buttons inside card */
.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-yes, .btn-no {
  padding: 9px 0;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  transition: all var(--transition);
  letter-spacing: 0.2px;
}

.btn-yes {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid rgba(0,220,130,0.25);
}
.btn-yes:hover { background: var(--green); color: #000; }

.btn-no {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid rgba(240,79,79,0.25);
}
.btn-no:hover { background: var(--red); color: #fff; }

/* ============================================================
   TRENDING SECTION
   ============================================================ */
.trending-list { display: flex; flex-direction: column; gap: 1px; }

.trending-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
}

.trending-item + .trending-item { margin-top: 8px; }

.trending-item:hover {
  background: var(--bg-card-h);
  border-color: rgba(0,220,130,0.15);
}

.trending-rank {
  width: 28px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-dim);
  text-align: center;
  flex-shrink: 0;
}

.trending-icon { font-size: 22px; flex-shrink: 0; width: 40px; height: 40px; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.trending-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

.trending-body { flex: 1; min-width: 0; }

.trending-q {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trending-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.trending-prob {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--green);
  flex-shrink: 0;
}

/* ============================================================
   HOW IT WORKS STEPS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}

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

.step-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.step-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition);
}

.feature-card:hover { border-color: rgba(0,220,130,0.2); }

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--green-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, rgba(0,220,130,0.08) 0%, rgba(91,141,239,0.06) 100%);
  border: 1px solid rgba(0,220,130,0.15);
  border-radius: 20px;
  padding: 64px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0,220,130,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider { height: 1px; background: var(--border); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  margin-top: 48px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
}

.footer-brand .logo { margin-bottom: 12px; }

.footer-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition);
  color: var(--text-muted);
}

.social-btn:hover {
  border-color: rgba(0,220,130,0.3);
  color: var(--green);
  background: var(--green-bg);
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--green); }

.footer-bottom {
  max-width: 1280px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.8125rem;
  color: var(--text-dim);
  transition: color var(--transition);
}

.footer-bottom-links a:hover { color: var(--text-muted); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding: 64px 24px 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-wrap {
  position: relative;
  max-width: 520px;
}

.search-wrap input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color var(--transition);
}

.search-wrap input::placeholder { color: var(--text-dim); }
.search-wrap input:focus { border-color: rgba(0,220,130,0.4); }

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 17px;
  pointer-events: none;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text h2 {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.about-text p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.av-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.av-stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green);
}

.av-stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: border-color var(--transition);
}

.team-card:hover { border-color: rgba(0,220,130,0.2); }

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-bg);
  border: 2px solid rgba(0,220,130,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 12px;
}

.team-name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: 0.8125rem; color: var(--text-muted); }

/* ============================================================
   BADGE / CHIPS
   ============================================================ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-green { background: var(--green-bg); color: var(--green); border: 1px solid rgba(0,220,130,0.2); }
.badge-blue { background: rgba(91,141,239,0.1); color: var(--accent-blue); border: 1px solid rgba(91,141,239,0.2); }
.badge-red { background: var(--red-bg); color: var(--red); border: 1px solid rgba(240,79,79,0.2); }
.badge-gray { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border); }

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 320px;
}

.toast.show { transform: translateY(0); opacity: 1; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 440px;
  transform: scale(0.95);
  transition: transform 0.2s;
}

.modal-overlay.open .modal { transform: scale(1); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-title { font-size: 1.125rem; font-weight: 700; }

.modal-close {
  width: 32px;
  height: 32px;
  background: var(--border);
  border: none;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 18px;
  transition: all var(--transition);
}

.modal-close:hover { background: rgba(255,255,255,0.1); color: var(--text); }

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }

.form-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color var(--transition);
}

.form-input:focus { border-color: rgba(0,220,130,0.4); }
.form-input::placeholder { color: var(--text-dim); }

.form-divider {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin: 16px 0;
  position: relative;
}

.form-divider::before, .form-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 20px);
  height: 1px;
  background: var(--border);
}

.form-divider::before { left: 0; }
.form-divider::after { right: 0; }

/* ============================================================
   MARKET ARTICLE (SEO Analysis Layout)
   ============================================================ */
.market-analyses {
  margin-top: 72px;
  padding-top: 64px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.market-analyses-heading {
  text-align: center;
  margin-bottom: 8px;
}

.market-article {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: start;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

.market-article:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.market-article-card {
  position: sticky;
  top: 84px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.market-article-card-body { padding: 20px; }

.market-article-card-top {
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  background: rgba(0,220,130,0.04);
}

.mac-prob-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mac-prob-val {
  font-size: 2rem;
  font-weight: 900;
  color: var(--green);
  letter-spacing: -1px;
  line-height: 1;
}

.mac-outcome {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-align: right;
  max-width: 140px;
  line-height: 1.4;
}

.mac-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.mac-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-dim));
  border-radius: 3px;
  transition: width 0.6s ease;
}

.mac-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 0 0;
}

.mac-stat-item { display: flex; flex-direction: column; gap: 2px; }
.mac-stat-label { font-size: 0.7rem; color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.mac-stat-val { font-size: 0.875rem; font-weight: 700; color: var(--text); }

.mac-ends {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
}

.mac-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 20px 16px;
}

/* Article body */
.market-article-body { min-width: 0; }

.market-article-body h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
  line-height: 1.35;
  color: var(--text);
}

.market-article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.market-article-body p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.market-article-body p:last-child { margin-bottom: 0; }

.market-article-body strong { color: var(--text); font-weight: 600; }

.market-article-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 8px;
}

.analysis-highlights {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.analysis-highlights strong { color: var(--green); }

.key-factors {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 14px 0;
}

.key-factor {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.key-factor::before {
  content: '→';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

@media (max-width: 960px) {
  .market-article {
    grid-template-columns: 1fr;
  }
  .market-article-card { position: static; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-intro { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    z-index: 99;
    gap: 2px;
  }

  .nav-links.open a { display: block; padding: 10px 14px; }

  .stats-row { gap: 32px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .markets-grid { grid-template-columns: 1fr; }

  .section { padding: 48px 16px; }
  .hero { padding: 56px 16px 48px; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .stats-row { gap: 24px; }
  .stat-value { font-size: 1.5rem; }
}
