* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  }
  
  body {
    margin: 0;
    background: #24283b;
    color: #e6e8eb;
  }
  
  /* Narrower content so there's room for side ads */
  .container {
    width: 82%;
    max-width: 1400px;
    margin: 0 auto;
  }
  
  
  /* Responsive: collapse ad rails and widen content on smaller screens */
  @media (max-width: 1200px) {
    .container { width: 72%; }
  }
  @media (max-width: 900px) {
    .container { width: 92%; }
  }
  
  /* Header */
  .header{
    position: sticky;
    padding: 18px 0;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(10, 14, 24, 0.55); /* adjust to match your theme */
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  
  
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  
  .logo {
    font-size: 1.25rem;
    font-weight: 760;
    letter-spacing: 0.2px;
  }
  
  .logo span {
    color: #4da3ff;
  }
  
  .nav a {
    color: #9aa4b2;
    text-decoration: none;
    margin-left: 18px;
    font-size: 0.95rem;
  }
  
  .nav a:hover {
    color: #ffffff;
  }
  
  /* Page layout with ad rails */
  .page {
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    gap: 0;
  }
  
  .content {
    min-width: 0;
  }
  
  /* Hide ad rails on smaller screens */
  @media (max-width: 1200px) {
    .page {
      grid-template-columns: 1fr;
    }
    .ad-rail {
      display: none;
    }
  }
  
  /* Hero */
  .hero {
    padding: 80px 0 44px;
  }
  
  .hero h1 {
    font-size: 3rem;
    line-height: 1.05;
    margin: 0 0 16px 0;
  }
  
  .hero p {
    margin: 0;
    font-size: 1.1rem;
    color: #b2bac5;
    max-width: 720px;
  }
  
  /* Sections */
  .screener {
    padding: 26px 0 54px;
  }
  
  .section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
  }
  
  .section-head h2 {
    margin: 0;
    font-size: 1.35rem;
  }
  
  .badge {
    font-size: 0.8rem;
    color: #a9b3c2;
    border: 1px solid #1c2330;
    padding: 6px 10px;
    border-radius: 999px;
    background: #0f1522;
  }
  
  /* Table */
  .table-wrap {
    background: #121826;
    border: 1px solid #1c2330;
    border-radius: 14px;
    overflow: hidden;
  }
  
  table {
    width: 100%;
    border-collapse: collapse;
  }
  
  th, td {
    padding: 14px 14px;
    border-bottom: 1px solid #1c2330;
    text-align: left;
  }
  
  th {
    color: #8b95a5;
    font-size: 0.8rem;
    font-weight: 650;
  }
  
  tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
  }
  
  .ticker {
    font-weight: 720;
    letter-spacing: 0.2px;
  }
  
  .up {
    color: #4ade80;
    font-weight: 750;
  }
  
  /* Filters (clean cards) */
  .filters {
    margin-top: 16px;
    padding: 16px;
    background: #0f1522;
    border: 1px solid #1c2330;
    border-radius: 14px;
  }
  
  .filters-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }
  
  .filters-head h3 {
    margin: 0 0 4px 0;
    font-size: 1.05rem;
  }
  
  .muted {
    color: #8b95a5;
  }
  
  .filters-actions {
    display: flex;
    gap: 10px;
  }
  
  /* grid of cards */
  .filters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 14px;
  }
  
  @media (max-width: 900px) {
    .filters-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 520px) {
    .filters-grid { grid-template-columns: 1fr; }
  }
  
  .filter-card {
    padding: 12px;
    background: #0b0f14;
    border: 1px solid #1c2330;
    border-radius: 12px;
  }
  
  .filter-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
  }
  
  .filter-title {
    font-size: 0.85rem;
    color: #b2bac5;
    font-weight: 650;
  }
  
  .pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #1c2330;
    background: #121826;
    color: #e6e8eb;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  
  .num {
    width: 88px;
    background: transparent;
    border: none;
    outline: none;
    color: #e6e8eb;
    font-size: 0.9rem;
  }
  
  .num::-webkit-outer-spin-button,
  .num::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
  
  .slider {
    width: 100%;
    accent-color: #4da3ff;
  }
  
  .filter-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.78rem;
  }
  /* 2x2 filters grid */
.filters-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
  }
  
  @media (max-width: 900px) {
    .filters-grid-2x2 {
      grid-template-columns: 1fr;
    }
  }
  
  .filter-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }
  
  /* Slider left, number right */
  .filter-control-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
  }
  
  .num-wide {
    width: 120px;
  }
  
  /* Toggle */
  .toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    user-select: none;
  }
  
  .toggle input {
    display: none;
  }
  
  .toggle-ui {
    width: 44px;
    height: 26px;
    border-radius: 999px;
    background: #121826;
    border: 1px solid #1c2330;
    position: relative;
  }
  
  .toggle-ui::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #8b95a5;
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
    transition: all 0.18s ease;
  }
  
  .toggle input:checked + .toggle-ui {
    background: rgba(77, 163, 255, 0.18);
    border-color: rgba(77, 163, 255, 0.35);
  }
  
  .toggle input:checked + .toggle-ui::after {
    left: 21px;
    background: #4da3ff;
  }
  
  .toggle-text {
    color: #cfd6e0;
    font-size: 0.9rem;
  }
  
  .divider {
    height: 1px;
    background: #1c2330;
    margin: 12px 0;
  }
  
  /* Chips */
  .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .chip {
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid #1c2330;
    background: #121826;
    color: #cfd6e0;
    font-size: 0.85rem;
    cursor: pointer;
  }
  
  .chip:hover {
    background: rgba(255,255,255,0.06);
  }
  
  .chip-on {
    border-color: rgba(77, 163, 255, 0.45);
    background: rgba(77, 163, 255, 0.16);
    color: #e6f2ff;
  }
  
  /* Buttons */
  .btn {
    border: 1px solid #1c2330;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.95rem;
    cursor: pointer;
    background: transparent;
    color: #d7dbe2;
  }
  
  .btn-primary {
    background: #4da3ff;
    color: #0b0f14;
    border-color: transparent;
    font-weight: 750;
  }
  
  .btn-primary:hover { opacity: 0.92; }
  
  .btn-ghost:hover {
    background: rgba(255,255,255,0.06);
  }
  
  /* Banner ad slot */
  .ad-banner {
    margin-top: 14px;
  }
  
  .ad-rail {
    padding: 18px 10px;
    position: sticky;
    top: 76px;
    height: calc(100vh - 76px);
    display: flex;
    justify-content: center;
  }
  
  .ad-box {
    width: 160px;
    height: 600px;
    border: 1px dashed #2a3444;
    border-radius: 14px;
    background: rgba(18, 24, 38, 0.35);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #9aa4b2;
    gap: 10px;
  }
  
  .ad-box-banner {
    width: 100%;
    height: 90px;
  }
  
  .ad-label {
    font-size: 0.8rem;
    opacity: 0.85;
  }
  
  .ad-size {
    font-weight: 750;
    letter-spacing: 0.2px;
  }
  
  .ad-note {
    font-size: 0.8rem;
    opacity: 0.8;
  }
  
  /* Pricing / CTA */
  .pricing {
    padding: 44px 0;
    border-top: 1px solid #1c2330;
    background: #0f1522;
  }
  
  .pricing-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }
  
  .pricing h2 {
    margin: 0 0 8px 0;
    font-size: 1.35rem;
  }
  
  /* Footer */
  .footer {
    padding: 18px 0;
    border-top: 1px solid #1c2330;
  }
  
  .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 0.85rem;
  }
  /* Checklist */
.checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  @media (max-width: 520px) {
    .checklist {
      grid-template-columns: 1fr;
    }
  }
  
  .check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
  }
  
  .check input {
    display: none;
  }
  
  .check-ui {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid #1c2330;
    background: #121826;
    position: relative;
  }
  
  .check input:checked + .check-ui {
    border-color: rgba(77, 163, 255, 0.55);
    background: rgba(77, 163, 255, 0.18);
  }
  
  .check input:checked + .check-ui::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #4da3ff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  
  .check-text {
    color: #cfd6e0;
    font-size: 0.92rem;
  }
/* ===== Modal base ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 20, 0.72);
    backdrop-filter: blur(6px);
    display: none;              /* 🔴 THIS IS THE KEY */
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }


/* Show modal */
.modal-overlay.is-open {
    display: flex;
  }
  

  
  .modal {
    width: 100%;
    max-width: 720px;
    border-radius: 18px;
    border: 1px solid #1c2330;
    background: radial-gradient(900px 320px at 20% 10%, rgba(77,163,255,0.12), rgba(11,15,20,0) 55%),
                rgba(18, 24, 38, 0.92);
    box-shadow: 0 20px 70px rgba(0,0,0,0.55);
    position: relative;
    overflow: hidden;
  }
  
  .modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: 1px solid #1c2330;
    background: rgba(11, 15, 20, 0.65);
    color: #d7dbe2;
    border-radius: 12px;
    padding: 8px 10px;
    cursor: pointer;
  }
  
  .modal-header {
    padding: 18px 18px 10px 18px;
  }
  
  .modal-kicker {
    font-size: 0.78rem;
    color: #8b95a5;
    letter-spacing: 0.2px;
  }
  
  .modal-title {
    margin: 8px 0 6px 0;
    font-size: 1.6rem;
  }
  
  .modal-subtitle {
    margin: 0;
    font-size: 0.95rem;
  }
  
  .steps {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 0 18px;
  }
  
  .step-dot {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid #1c2330;
    background: #0b0f14;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa4b2;
    font-weight: 750;
    font-size: 0.85rem;
  }
  
  .step-dot.step-active {
    border-color: rgba(77, 163, 255, 0.55);
    background: rgba(77, 163, 255, 0.16);
    color: #e6f2ff;
  }
  
  .step-line {
    height: 1px;
    flex: 1;
    background: rgba(28,35,48,0.9);
  }
  
  .modal-step {
    padding: 14px 18px 18px 18px;
  }
  
  .card {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #1c2330;
    background: rgba(11, 15, 20, 0.55);
  }
  
  .card-title {
    margin: 0 0 6px 0;
    font-size: 1.05rem;
  }
  
  .card-sub {
    margin: 0 0 14px 0;
  }
  
  .btn-wide {
    width: 100%;
  }
  
  .fineprint {
    margin: 10px 0 0 0;
    font-size: 0.82rem;
  }
  
  .modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
  }
  
  @media (max-width: 520px) {
    .modal-actions {
      flex-direction: column;
    }
  }
  
  .form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  .form-label {
    display: block;
    font-size: 0.85rem;
    color: #b2bac5;
    font-weight: 650;
    margin-bottom: 8px;
  }
  
  .hint {
    margin: 8px 0 0 0;
    font-size: 0.85rem;
  }
  
  /* Segmented controls */
  .segmented {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .segmented-btn {
    border: 1px solid #1c2330;
    background: #121826;
    color: #cfd6e0;
    border-radius: 999px;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.9rem;
  }
  
  .segmented-btn:hover {
    background: rgba(255,255,255,0.06);
  }
  
  .segmented-on {
    border-color: rgba(77, 163, 255, 0.55);
    background: rgba(77, 163, 255, 0.16);
    color: #e6f2ff;
  }
  
  .pill-static {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid #1c2330;
    background: #121826;
    color: #e6e8eb;
    font-size: 0.9rem;
  }
  
  /* Checkout summary box */
  .checkout-box {
    margin: 10px 0 14px 0;
    border: 1px solid #1c2330;
    background: #121826;
    border-radius: 14px;
    padding: 12px;
  }
  
  .checkout-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(28,35,48,0.8);
  }
  
  .checkout-row:last-child {
    border-bottom: none;
  }
  
  .strong {
    font-weight: 750;
  }
  .market-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #9aa3b2;
  }
  
  .market-item strong {
    font-weight: 600;
  }
  
  .market-item.up strong {
    color: #3ef08f;
  }
  
  .market-item.down strong {
    color: #ff6b6b;
  }
  
  .market-status .divider {
    opacity: 0.4;
  }
  
  /* Hero layout with right-side chart */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.hero-left {
  min-width: 0;
}

.hero-right {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.hero-chart {
  width: min(560px, 100%);
  height: 240px;

  /* Kill the widget silhouette */
  border-radius: 0;
  border: none;
  box-shadow: none;

  /* Let the background show through */
  background: transparent;

  overflow: visible;
  position: relative;

  /* Fade the whole thing into the hero */
  opacity: 0.72;

  /* Soft edge fade so it blends */
  -webkit-mask-image: radial-gradient(
    120% 90% at 55% 45%,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 55%,
    rgba(0,0,0,0) 82%
  );
  mask-image: radial-gradient(
    120% 90% at 55% 45%,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 55%,
    rgba(0,0,0,0) 82%
  );
}



/* SVG */
.spark {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.95;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.25));
}


.grid line {
  stroke: rgba(255,255,255,0.06);
  stroke-width: 1;
}

.line {
  opacity: 0.95;
}

.fill {
  opacity: 1;
}

.dot {
  fill: rgba(62,240,143,0.65);
  filter: drop-shadow(0 0 8px rgba(62,240,143,0.35));
  opacity: 0.65;
}

/* Animated reveal sweep */
.reveal {
  animation: sweep 3.8s ease-in-out infinite;
  opacity: 0.85;
}

@keyframes sweep {
  0%   { transform: translateX(-120px); }
  45%  { transform: translateX(560px); }
  100% { transform: translateX(560px); }
}

/* Reduce motion support */
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-right {
    justify-content: flex-start;
  }
  .hero-chart {
    height: 200px;
  }
}
