/* ═══════════════════════════════════════════════════════
   iPredicta — Shared Stylesheet
   All pages inherit from this file
═══════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --navy:        #0d1b3e;
  --navy-mid:    #1a2f5e;
  --navy-light:  #2a4080;
  --blue:        #2979e8;
  --blue-light:  #4fb3f6;
  --blue-pale:   #e8f1fd;
  --white:       #ffffff;
  --off-white:   #f7f9fc;
  --grey-light:  #eef1f6;
  --grey-mid:    #c8d4e8;
  --grey:        #6b7a99;
  --text-dark:   #0d1b3e;
  --text-mid:    #3d4f6e;
  --text-light:  #6b7a99;
  --green:       #00b87a;
  --green-light: #e6f9f3;
  --red:         #e8364a;
  --red-light:   #fdeef0;
  --amber:       #f59e0b;
  --amber-light: #fef3c7;
  --border:      #e2e8f4;
  --shadow-sm:   0 1px 4px rgba(13,27,62,.06);
  --shadow-md:   0 4px 16px rgba(13,27,62,.10);
  --shadow-lg:   0 8px 32px rgba(13,27,62,.14);
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
}

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  font-family: "DM Sans", sans-serif;
  background: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}
h1,h2,h3,h4,h5 { font-family:"Syne",sans-serif; line-height:1.15; }
a { text-decoration:none; color:inherit; }
button { font:inherit; cursor:pointer; border:none; }
img { display:block; max-width:100%; }
ul { list-style:none; }

/* ── Typography ── */
.section-label {
  font-size:.72rem; font-weight:700; letter-spacing:.15em;
  text-transform:uppercase; color:var(--blue); margin-bottom:12px;
  display:flex; align-items:center; gap:8px;
}
.section-label::before {
  content:""; width:20px; height:2px; background:var(--blue);
  border-radius:2px; flex-shrink:0;
}
.section-title {
  font-size:clamp(1.8rem,4vw,2.8rem); font-weight:800;
  letter-spacing:-.03em; color:var(--navy); margin-bottom:12px;
}
.section-sub {
  color:var(--text-mid); font-size:1.05rem;
  max-width:560px; line-height:1.7; font-weight:300;
}

/* ── Layout ── */
section { padding:80px 2rem; }
.container { max-width:1240px; margin:0 auto; width:100%; }
.section-header { margin-bottom:48px; }

/* ── Buttons ── */
.btn-primary {
  background:var(--blue); color:var(--white);
  border-radius:var(--radius-sm); padding:13px 28px;
  font-family:"Syne",sans-serif; font-weight:700; font-size:.95rem;
  transition:all .2s; display:inline-flex; align-items:center; gap:8px;
}
.btn-primary:hover { background:#1a63d4; transform:translateY(-1px); box-shadow:var(--shadow-md); }
.btn-outline {
  background:transparent; color:var(--navy);
  border:1.5px solid var(--border); border-radius:var(--radius-sm);
  padding:13px 28px; font-family:"Syne",sans-serif;
  font-weight:700; font-size:.95rem; transition:all .2s;
  display:inline-flex; align-items:center; gap:8px;
}
.btn-outline:hover { border-color:var(--blue); color:var(--blue); }
.btn-ghost {
  background:transparent; color:var(--blue);
  border-radius:var(--radius-sm); padding:10px 20px;
  font-weight:600; font-size:.875rem; transition:all .2s;
}
.btn-ghost:hover { background:var(--blue-pale); }

/* ── Badges ── */
.badge {
  display:inline-flex; align-items:center; gap:5px;
  border-radius:100px; padding:4px 10px;
  font-size:.68rem; font-weight:700; letter-spacing:.05em;
}
.badge-live { background:var(--green-light); color:var(--green); }
.badge-soon { background:var(--grey-light); color:var(--grey); }
.badge-hot  { background:var(--red-light); color:var(--red); }
.badge-new  { background:var(--blue-pale); color:var(--blue); }
.badge-dot  { width:5px; height:5px; border-radius:50%; background:currentColor; }
.badge-dot.pulse { animation:pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ── Source pills ── */
.source-pill {
  font-size:.65rem; font-weight:700; letter-spacing:.08em;
  text-transform:uppercase; padding:3px 8px; border-radius:4px;
}
.source-poly    { background:rgba(99,102,241,.12); color:#6366f1; }
.source-kalshi  { background:rgba(41,121,232,.12); color:var(--blue); }
.source-predictit { background:rgba(0,184,122,.12); color:var(--green); }
.source-robinhood { background:rgba(245,158,11,.12); color:var(--amber); }

/* ── Cards ── */
.card {
  background:var(--white); border:1.5px solid var(--border);
  border-radius:var(--radius-md); padding:20px;
  transition:all .2s; box-shadow:var(--shadow-sm);
}
.card:hover {
  border-color:var(--blue); box-shadow:var(--shadow-md);
  transform:translateY(-2px);
}

/* ── Market card ── */
.market-card {
  background:var(--white); border:1.5px solid var(--border);
  border-radius:var(--radius-md); padding:20px;
  transition:all .2s; display:block; color:var(--text-dark);
  box-shadow:var(--shadow-sm);
}
.market-card:hover {
  border-color:var(--blue); box-shadow:var(--shadow-md);
  transform:translateY(-2px);
}
.market-card-header {
  display:flex; justify-content:space-between;
  align-items:flex-start; margin-bottom:10px; gap:10px;
}
.market-prob {
  font-family:"Syne",sans-serif; font-size:1.4rem;
  font-weight:800; white-space:nowrap;
}
.market-title {
  font-size:.9rem; font-weight:500; margin-bottom:14px;
  line-height:1.45; color:var(--text-mid); min-height:52px;
}
.market-rationale {
  font-size:.78rem; color:var(--text-light); line-height:1.55;
  padding:10px 12px; background:var(--off-white);
  border-radius:var(--radius-sm); margin-bottom:12px;
  border-left:3px solid var(--blue);
}
.prob-bar-bg {
  background:var(--grey-light); border-radius:4px;
  height:5px; margin-bottom:12px; overflow:hidden;
}
.prob-bar { height:5px; border-radius:4px; transition:width .4s ease; }
.market-footer {
  display:flex; justify-content:space-between;
  font-size:.72rem; color:var(--text-light); gap:8px; flex-wrap:wrap;
}
.market-cta {
  font-size:.75rem; color:var(--blue); font-weight:600;
  margin-top:12px; display:inline-flex; align-items:center; gap:4px;
}
.market-cta::after { content:"→"; transition:transform .2s; }
.market-card:hover .market-cta::after { transform:translateX(3px); }

/* ── Countdown chip ── */
.countdown-chip {
  display:inline-flex; align-items:center; gap:5px;
  background:var(--red-light); color:var(--red);
  border-radius:100px; padding:3px 10px;
  font-size:.68rem; font-weight:700;
}

/* ── Grids ── */
.markets-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  gap:16px;
}
.markets-grid-4 {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:16px;
}

/* ── Prob colors ── */
.prob-high { color:#00b87a; }
.prob-mid  { color:var(--blue); }
.prob-low  { color:var(--red); }

/* ══════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════ */
.site-nav {
  position:fixed; top:0; left:0; right:0; z-index:500;
  background:var(--navy); height:68px;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 2rem; box-shadow:0 2px 16px rgba(13,27,62,.25);
}
.nav-logo { display:flex; align-items:center; flex-shrink:0; }
.nav-logo img { height:38px; width:auto; display:block; }
.nav-center {
  display:flex; align-items:center; gap:4px;
  position:absolute; left:50%; transform:translateX(-50%);
}
.nav-link {
  color:rgba(255,255,255,.75); font-size:.875rem; font-weight:500;
  padding:8px 14px; border-radius:var(--radius-sm);
  transition:all .2s; position:relative; white-space:nowrap;
  display:flex; align-items:center; gap:5px;
}
.nav-link:hover { color:var(--white); background:rgba(255,255,255,.08); }
.nav-link.active { color:var(--white); }
.nav-link .chevron {
  font-size:.6rem; transition:transform .2s; margin-top:1px;
}
/* Dropdown */
.nav-dropdown { position:relative; }
.nav-dropdown:hover .dropdown-menu { opacity:1; visibility:visible; transform:translateY(0); }
.nav-dropdown:hover .chevron { transform:rotate(180deg); }
.dropdown-menu {
  position:absolute; top:calc(100% + 8px); left:0;
  background:var(--white); border:1.5px solid var(--border);
  border-radius:var(--radius-md); padding:8px;
  min-width:200px; box-shadow:var(--shadow-lg);
  opacity:0; visibility:hidden;
  transform:translateY(-8px); transition:all .2s;
  z-index:600;
}
.dropdown-item {
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; border-radius:var(--radius-sm);
  color:var(--text-dark); font-size:.875rem; font-weight:500;
  transition:all .15s;
}
.dropdown-item:hover { background:var(--blue-pale); color:var(--blue); }
.dropdown-item .di-icon {
  width:28px; height:28px; border-radius:6px;
  background:var(--blue-pale); display:flex;
  align-items:center; justify-content:center; font-size:.85rem; flex-shrink:0;
}
.dropdown-item:hover .di-icon { background:var(--blue); }
/* Nav right */
.nav-right { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.nav-search-btn {
  width:36px; height:36px; border-radius:var(--radius-sm);
  background:rgba(255,255,255,.08); color:rgba(255,255,255,.75);
  display:flex; align-items:center; justify-content:center;
  font-size:1rem; transition:all .2s;
}
.nav-search-btn:hover { background:rgba(255,255,255,.15); color:var(--white); }
.nav-signup-btn {
  background:var(--blue); color:var(--white);
  border-radius:var(--radius-sm); padding:8px 18px;
  font-family:"Syne",sans-serif; font-weight:700; font-size:.82rem;
  transition:all .2s;
}
.nav-signup-btn:hover { background:#1a63d4; }
/* Hamburger */
.nav-hamburger {
  display:none; width:40px; height:40px;
  background:rgba(255,255,255,.08); border-radius:var(--radius-sm);
  align-items:center; justify-content:center; flex-direction:column;
  gap:5px; transition:all .2s;
}
.nav-hamburger:hover { background:rgba(255,255,255,.15); }
.ham-line {
  width:20px; height:2px; background:var(--white);
  border-radius:2px; transition:all .3s;
}
.nav-hamburger.open .ham-line:nth-child(1) { transform:rotate(45deg) translate(5px,5px); }
.nav-hamburger.open .ham-line:nth-child(2) { opacity:0; }
.nav-hamburger.open .ham-line:nth-child(3) { transform:rotate(-45deg) translate(5px,-5px); }
/* Mobile drawer */
.mobile-drawer {
  position:fixed; top:68px; left:0; right:0; bottom:0;
  background:var(--navy); z-index:499; overflow-y:auto;
  transform:translateX(100%); transition:transform .3s ease;
  padding:16px;
}
.mobile-drawer.open { transform:translateX(0); }
.mobile-nav-link {
  display:flex; align-items:center; justify-content:space-between;
  color:rgba(255,255,255,.85); font-size:1rem; font-weight:500;
  padding:14px 16px; border-radius:var(--radius-sm);
  transition:all .2s; border-bottom:1px solid rgba(255,255,255,.06);
}
.mobile-nav-link:hover { background:rgba(255,255,255,.06); color:var(--white); }
.mobile-nav-link .expand-icon { font-size:.75rem; transition:transform .2s; }
.mobile-nav-link.expanded .expand-icon { transform:rotate(180deg); }
.mobile-sub-links { display:none; padding:4px 8px 8px 16px; }
.mobile-sub-links.open { display:block; }
.mobile-sub-link {
  display:flex; align-items:center; gap:8px;
  color:rgba(255,255,255,.65); font-size:.9rem;
  padding:10px 12px; border-radius:var(--radius-sm);
  transition:all .2s;
}
.mobile-sub-link:hover { color:var(--blue-light); background:rgba(41,121,232,.1); }
.mobile-cta-area { padding:16px 0; border-top:1px solid rgba(255,255,255,.1); margin-top:8px; }
.mobile-signup-btn {
  display:block; width:100%; background:var(--blue); color:var(--white);
  border-radius:var(--radius-sm); padding:14px; text-align:center;
  font-family:"Syne",sans-serif; font-weight:700; font-size:.95rem;
  margin-bottom:10px;
}
/* Search overlay */
.search-overlay {
  position:fixed; top:68px; left:0; right:0; z-index:498;
  background:var(--white); border-bottom:1.5px solid var(--border);
  padding:16px 2rem; box-shadow:var(--shadow-md);
  display:none;
}
.search-overlay.open { display:block; }
.search-inner { max-width:1240px; margin:0 auto; position:relative; }
.search-input {
  width:100%; padding:14px 20px 14px 48px;
  border:1.5px solid var(--border); border-radius:var(--radius-md);
  font-size:1rem; font-family:"DM Sans",sans-serif; color:var(--text-dark);
  outline:none; transition:border-color .2s; background:var(--off-white);
}
.search-input:focus { border-color:var(--blue); background:var(--white); }
.search-icon {
  position:absolute; left:16px; top:50%; transform:translateY(-50%);
  color:var(--text-light); font-size:1.1rem; pointer-events:none;
}
.search-results {
  position:absolute; top:calc(100% + 8px); left:0; right:0;
  background:var(--white); border:1.5px solid var(--border);
  border-radius:var(--radius-md); max-height:400px; overflow-y:auto;
  box-shadow:var(--shadow-lg); display:none; z-index:600;
}
.search-results.open { display:block; }
.search-result-item {
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 16px; border-bottom:1px solid var(--border);
  transition:background .15s; gap:12px;
}
.search-result-item:last-child { border-bottom:none; }
.search-result-item:hover { background:var(--off-white); }
.search-result-title { font-size:.875rem; font-weight:500; color:var(--text-dark); }
.search-result-meta { font-size:.72rem; color:var(--text-light); margin-top:2px; }
.search-result-prob {
  font-family:"Syne",sans-serif; font-weight:800;
  font-size:1rem; flex-shrink:0;
}
.search-empty { padding:32px; text-align:center; color:var(--text-light); font-size:.9rem; }

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
.site-footer {
  background:var(--navy); color:rgba(255,255,255,.7);
  padding:64px 2rem 32px;
}
.footer-grid {
  display:grid; grid-template-columns:2fr 1fr 1fr 1fr;
  gap:48px; max-width:1240px; margin:0 auto;
  padding-bottom:48px; border-bottom:1px solid rgba(255,255,255,.1);
}
.footer-brand img { height:36px; margin-bottom:20px; }
.footer-brand p { font-size:.875rem; line-height:1.7; max-width:280px; }
.footer-col h4 {
  font-family:"Syne",sans-serif; font-weight:700; font-size:.875rem;
  color:var(--white); margin-bottom:16px; letter-spacing:.02em;
}
.footer-col a {
  display:block; color:rgba(255,255,255,.6); font-size:.825rem;
  padding:4px 0; transition:color .2s;
}
.footer-col a:hover { color:var(--white); }
.footer-bottom {
  max-width:1240px; margin:0 auto; padding-top:24px;
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:12px; font-size:.78rem;
}
.footer-bottom a { color:rgba(255,255,255,.5); transition:color .2s; }
.footer-bottom a:hover { color:var(--white); }
.footer-affiliate-note {
  font-size:.72rem; color:rgba(255,255,255,.4);
  max-width:1240px; margin:12px auto 0; line-height:1.6;
}

/* ══════════════════════════════════════════════════════
   SIGN-UP MODAL
══════════════════════════════════════════════════════ */
.modal-backdrop {
  position:fixed; inset:0; background:rgba(13,27,62,.6);
  z-index:800; display:none; align-items:center;
  justify-content:center; padding:2rem;
  backdrop-filter:blur(4px);
}
.modal-backdrop.open { display:flex; }
.signup-modal {
  background:var(--white); border-radius:var(--radius-xl);
  padding:40px; max-width:480px; width:100%;
  box-shadow:var(--shadow-lg); position:relative;
}
.modal-close-btn {
  position:absolute; top:16px; right:16px;
  width:32px; height:32px; border-radius:50%;
  background:var(--grey-light); color:var(--text-mid);
  display:flex; align-items:center; justify-content:center;
  font-size:1.1rem; transition:all .2s;
}
.modal-close-btn:hover { background:var(--border); }
.signup-modal h2 {
  font-size:1.5rem; font-weight:800; color:var(--navy);
  margin-bottom:8px;
}
.signup-modal p { color:var(--text-mid); font-size:.9rem; margin-bottom:24px; }
.form-group { margin-bottom:16px; }
.form-label {
  display:block; font-size:.8rem; font-weight:600;
  color:var(--text-mid); margin-bottom:6px;
}
.form-input {
  width:100%; padding:12px 16px; border:1.5px solid var(--border);
  border-radius:var(--radius-sm); font-size:.9rem;
  font-family:"DM Sans",sans-serif; color:var(--text-dark);
  outline:none; transition:border-color .2s; background:var(--off-white);
}
.form-input:focus { border-color:var(--blue); background:var(--white); }
.form-select {
  width:100%; padding:12px 16px; border:1.5px solid var(--border);
  border-radius:var(--radius-sm); font-size:.9rem;
  font-family:"DM Sans",sans-serif; color:var(--text-dark);
  outline:none; background:var(--off-white); appearance:none;
  cursor:pointer;
}
.checkbox-row {
  display:flex; align-items:flex-start; gap:10px;
  font-size:.8rem; color:var(--text-mid); line-height:1.5;
}
.checkbox-row input { margin-top:2px; flex-shrink:0; accent-color:var(--blue); }
.checkbox-row a { color:var(--blue); }
.form-categories { display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; }
.cat-chip {
  padding:6px 14px; border-radius:100px;
  border:1.5px solid var(--border); font-size:.78rem;
  font-weight:600; color:var(--text-mid); transition:all .2s;
  background:var(--off-white);
}
.cat-chip.selected {
  background:var(--blue); border-color:var(--blue); color:var(--white);
}
.signup-success {
  text-align:center; padding:20px 0; display:none;
}
.signup-success .success-icon {
  width:56px; height:56px; border-radius:50%;
  background:var(--green-light); color:var(--green);
  font-size:1.5rem; display:flex; align-items:center;
  justify-content:center; margin:0 auto 16px;
}

/* ══════════════════════════════════════════════════════
   CHAT WIDGET
══════════════════════════════════════════════════════ */
.chat-fab {
  position:fixed; bottom:28px; right:28px; z-index:600;
  width:56px; height:56px; border-radius:50%;
  background:linear-gradient(135deg,var(--blue),var(--blue-light));
  box-shadow:0 4px 20px rgba(41,121,232,.45);
  display:flex; align-items:center; justify-content:center; transition:all .2s;
}
.chat-fab:hover { transform:scale(1.08); }
.chat-fab .fab-open { display:flex; }
.chat-fab .fab-close { display:none; font-size:1.3rem; color:white; }
.chat-fab.open .fab-open { display:none; }
.chat-fab.open .fab-close { display:flex; align-items:center; justify-content:center; }
.chat-window {
  position:fixed; bottom:96px; right:28px; z-index:599;
  width:380px; max-width:calc(100vw - 40px);
  background:var(--white); border:1.5px solid var(--border);
  border-radius:var(--radius-xl); overflow:hidden;
  box-shadow:var(--shadow-lg); display:none; flex-direction:column;
  opacity:0; transform:scale(.95) translateY(12px);
  transition:transform .25s ease, opacity .25s ease;
}
.chat-window.open { display:flex; opacity:1; transform:scale(1) translateY(0); }
.chat-header {
  background:var(--navy); padding:14px 16px;
  display:flex; align-items:center; gap:10px;
}
.chat-avatar {
  width:32px; height:32px; border-radius:8px;
  background:linear-gradient(135deg,var(--blue),var(--blue-light));
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:.75rem; font-family:"Syne",sans-serif;
  color:white; flex-shrink:0;
}
.chat-header-info h4 { font-size:.875rem; font-weight:700; color:var(--white); }
.chat-header-info p { font-size:.68rem; color:var(--green); }
.chat-messages {
  height:300px; overflow-y:auto; padding:14px;
  display:flex; flex-direction:column; gap:12px;
  background:var(--off-white);
}
.cmsg { display:flex; gap:7px; max-width:88%; }
.cmsg.user { align-self:flex-end; flex-direction:row-reverse; }
.cmsg-av {
  width:24px; height:24px; border-radius:5px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  font-size:.6rem; font-weight:800; font-family:"Syne",sans-serif;
}
.cmsg-av.bot { background:linear-gradient(135deg,var(--blue),var(--blue-light)); color:white; }
.cmsg-av.user { background:var(--grey-mid); color:var(--text-mid); }
.cmsg-bubble {
  padding:9px 13px; border-radius:10px;
  font-size:.8rem; line-height:1.55;
}
.cmsg.bot .cmsg-bubble {
  background:var(--white); color:var(--text-mid);
  border-radius:3px 10px 10px 10px;
  border:1px solid var(--border);
}
.cmsg.user .cmsg-bubble {
  background:var(--blue); color:white;
  border-radius:10px 3px 10px 10px;
}
.cmsg-bubble a { color:var(--blue-light); text-decoration:underline; }
.cmsg.user .cmsg-bubble a { color:rgba(255,255,255,.85); }
.chat-chips {
  padding:8px 14px 6px; display:flex; gap:6px; flex-wrap:wrap;
  background:var(--off-white); border-top:1px solid var(--border);
}
.chat-chip {
  background:var(--white); border:1.5px solid var(--border);
  border-radius:100px; padding:4px 11px; font-size:.68rem;
  color:var(--text-mid); transition:all .2s; white-space:nowrap;
}
.chat-chip:hover { border-color:var(--blue); color:var(--blue); }
.chat-input-row {
  border-top:1.5px solid var(--border); padding:10px 12px;
  display:flex; gap:8px; background:var(--white);
}
.chat-input {
  flex:1; border:1.5px solid var(--border); border-radius:var(--radius-sm);
  padding:9px 13px; font-size:.82rem; font-family:"DM Sans",sans-serif;
  color:var(--text-dark); outline:none; transition:border-color .2s;
  background:var(--off-white);
}
.chat-input:focus { border-color:var(--blue); background:var(--white); }
.chat-send {
  background:var(--blue); border-radius:var(--radius-sm);
  width:36px; height:36px; display:flex;
  align-items:center; justify-content:center; flex-shrink:0;
}
.chat-send svg { width:14px; height:14px; fill:white; }
.typing-dots { display:flex; gap:3px; align-items:center; padding:2px 0; }
.typing-dots span {
  width:5px; height:5px; border-radius:50%;
  background:var(--blue); animation:typing 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay:.2s; }
.typing-dots span:nth-child(3) { animation-delay:.4s; }
@keyframes typing { 0%,80%,100%{opacity:.3;transform:scale(.8)} 40%{opacity:1;transform:scale(1)} }

/* ══════════════════════════════════════════════════════
   GUIDE MODAL
══════════════════════════════════════════════════════ */
.guide-modal-backdrop {
  position:fixed; inset:0; background:rgba(13,27,62,.6);
  z-index:800; display:none; align-items:center;
  justify-content:center; padding:2rem; backdrop-filter:blur(4px);
}
.guide-modal-backdrop.open { display:flex; }
.guide-modal {
  background:var(--white); border-radius:var(--radius-xl);
  max-width:640px; width:100%; max-height:85vh;
  overflow-y:auto; box-shadow:var(--shadow-lg);
}
.guide-modal-header {
  padding:28px 28px 20px; border-bottom:1.5px solid var(--border);
  display:flex; justify-content:space-between;
  align-items:flex-start; gap:16px; position:sticky; top:0;
  background:var(--white); z-index:1;
}
.guide-modal-body { padding:28px; }
.guide-step-block { display:flex; gap:16px; margin-bottom:24px; }
.guide-step-num {
  width:28px; height:28px; background:var(--blue-pale);
  border:1.5px solid var(--blue); border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-family:"Syne",sans-serif; font-weight:800; font-size:.75rem;
  color:var(--blue); flex-shrink:0; margin-top:2px;
}
.guide-step-content h4 {
  font-family:"Syne",sans-serif; font-size:.9rem;
  font-weight:700; margin-bottom:5px; color:var(--navy);
}
.guide-step-content p { font-size:.85rem; color:var(--text-mid); line-height:1.65; }
.guide-modal-cta {
  display:inline-flex; align-items:center; gap:8px;
  margin-top:8px; background:var(--blue); color:var(--white);
  border-radius:var(--radius-sm); padding:12px 24px;
  font-family:"Syne",sans-serif; font-weight:700; font-size:.875rem;
  transition:background .2s;
}
.guide-modal-cta:hover { background:#1a63d4; }

/* ══════════════════════════════════════════════════════
   PAGE HERO (sub-pages)
══════════════════════════════════════════════════════ */
.page-hero {
  background:var(--navy); padding:120px 2rem 64px;
  position:relative; overflow:hidden;
}
.page-hero::before {
  content:""; position:absolute; inset:0;
  background-image:linear-gradient(rgba(41,121,232,.06) 1px,transparent 1px),
  linear-gradient(90deg,rgba(41,121,232,.06) 1px,transparent 1px);
  background-size:40px 40px;
}
.page-hero-inner {
  max-width:1240px; margin:0 auto; position:relative;
  display:flex; align-items:center; justify-content:space-between;
  gap:40px; flex-wrap:wrap;
}
.page-hero h1 {
  font-size:clamp(2rem,4vw,3rem); font-weight:800;
  color:var(--white); letter-spacing:-.03em; margin-bottom:12px;
}
.page-hero p { color:rgba(255,255,255,.7); font-size:1rem; max-width:480px; }
.page-hero-illustration {
  width:200px; height:160px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media(max-width:1024px) {
  .nav-center { display:none; }
  .nav-hamburger { display:flex; }
  .nav-right .nav-signup-btn { display:none; }
}
@media(max-width:768px) {
  section { padding:56px 1.25rem; }
  .footer-grid { grid-template-columns:1fr 1fr; gap:32px; }
  .markets-grid { grid-template-columns:1fr; }
  .markets-grid-4 { grid-template-columns:1fr; }
  .chat-window { width:calc(100vw - 32px); right:16px; }
  .chat-fab { right:16px; bottom:16px; }
  .page-hero-illustration { display:none; }
}
@media(max-width:480px) {
  .footer-grid { grid-template-columns:1fr; }
  .site-nav { padding:0 1.25rem; }
  .nav-logo img { height:30px; }
}
