* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #0a1628; color: #e8edf5; font-size: 14px; }

/* Header */
.header { background: #0d1f3c; border-bottom: 2px solid #1e4a8a; padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.header-left { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { width: 36px; height: 36px; background: #1e4a8a; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.logo-icon i { font-size: 20px; color: #60a5fa; }
.logo-text { font-size: 22px; font-weight: 500; color: #fff; letter-spacing: -0.5px; }
.logo-text span { color: #60a5fa; }
.logo-sub { font-size: 10px; color: #4a6a94; letter-spacing: 1.2px; text-transform: uppercase; }

/* Navigatie */
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: #9ab8d8; text-decoration: none; font-size: 14px; padding: 8px 14px; border-radius: 8px; font-weight: 500; display: inline-flex; align-items: center; }
.nav a:hover { background: #16294a; color: #e8edf5; }
.nav a.active { background: #1e4a8a; color: #fff; }
.nav .soon { font-size: 9px; background: #2e2750; color: #c4b5fd; padding: 1px 6px; border-radius: 4px; margin-left: 6px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Live ticker */
.ticker { background: #071020; border-bottom: 1px solid #1e3a5f; padding: 8px 0; overflow: hidden; white-space: nowrap; position: relative; }
.live-dot { display: inline-flex; align-items: center; gap: 5px; background: #0d1f3c; color: #22c55e; font-size: 10px; font-weight: 500; padding: 3px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); z-index: 2; }
.live-dot .dot { width: 6px; height: 6px; background: #22c55e; border-radius: 50%; animation: pulse 1.5s infinite; }
.live-dot.soon { color: #c4b5fd; }
.live-dot.soon .dot { background: #c4b5fd; animation: none; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.ticker-track { padding-left: 90px; }
.ticker-inner { display: inline-flex; gap: 28px; font-size: 13px; }
.tick { display: inline-flex; gap: 6px; align-items: center; }
.tick-name { color: #9ab8d8; font-weight: 500; }
.tick-price { color: #e8edf5; }
.tick-soon { color: #4a6a94; font-style: italic; }
.up { color: #22c55e; }
.down { color: #ef4444; }

/* Search hero */
.hero { max-width: 720px; margin: 0 auto; padding: 56px 24px 32px; text-align: center; }
.hero h1 { font-size: 30px; font-weight: 500; color: #fff; margin-bottom: 10px; letter-spacing: -0.5px; }
.hero p { font-size: 15px; color: #7a9cc4; margin-bottom: 28px; }
.search-wrap { display: flex; gap: 10px; max-width: 560px; margin: 0 auto; }
.search-box { flex: 1; position: relative; display: flex; align-items: center; gap: 10px; background: #0d1f3c; border: 1px solid #1e4a8a; border-radius: 10px; padding: 0 16px; }
.autocomplete { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #0d1f3c; border: 1px solid #1e4a8a; border-radius: 10px; overflow: hidden; z-index: 50; text-align: left; box-shadow: 0 12px 30px rgba(0,0,0,0.4); }
.ac-item { display: flex; align-items: center; gap: 12px; padding: 11px 16px; cursor: pointer; border-bottom: 1px solid #14233f; }
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item.active { background: #16294a; }
.ac-sym { font-size: 14px; font-weight: 500; color: #60a5fa; min-width: 64px; letter-spacing: 0.5px; }
.ac-name { font-size: 13px; color: #c8d8ec; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-empty { padding: 12px 16px; font-size: 13px; color: #4a6a94; text-align: left; }
.search-box:focus-within { border-color: #3b82f6; }
.search-box i { color: #4a6a94; font-size: 20px; }
.search-box input { flex: 1; background: none; border: none; outline: none; color: #e8edf5; font-size: 16px; padding: 15px 0; }
.search-box input::placeholder { color: #4a6a94; }
.search-box.disabled { opacity: 0.55; }
.search-btn { background: #3b82f6; color: #fff; border: none; border-radius: 10px; padding: 0 24px; font-size: 15px; font-weight: 500; cursor: pointer; font-family: inherit; }
.search-btn:hover { background: #2563eb; }
.search-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.suggestions { display: flex; gap: 8px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.chip { background: #0d1f3c; border: 1px solid #1e3a5f; border-radius: 20px; color: #9ab8d8; font-size: 13px; padding: 6px 14px; cursor: pointer; font-family: inherit; display: flex; align-items: center; gap: 6px; }
.chip:hover { border-color: #3b82f6; color: #60a5fa; }
.chip .tk { color: #4a6a94; font-size: 11px; }

/* Resultaten */
.results { max-width: 860px; margin: 0 auto; padding: 0 24px 60px; }
.panel { background: #0d1f3c; border: 1px solid #1e3a5f; border-radius: 12px; padding: 22px; margin-bottom: 18px; }
.panel-title { font-size: 12px; font-weight: 500; color: #7a9cc4; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid #1e3a5f; display: flex; align-items: center; gap: 8px; }
.panel-title i { color: #3b82f6; font-size: 16px; }

.company-head { display: flex; align-items: center; gap: 16px; }
.company-logo { width: 52px; height: 52px; border-radius: 10px; background: #fff; object-fit: contain; padding: 6px; }
.company-logo-fallback { width: 52px; height: 52px; border-radius: 10px; background: #1e4a8a; display: flex; align-items: center; justify-content: center; color: #60a5fa; font-weight: 500; font-size: 18px; }
.company-name { font-size: 20px; font-weight: 500; color: #fff; }
.company-sub { font-size: 13px; color: #7a9cc4; }
.company-price { margin-left: auto; text-align: right; }
.company-price .p { font-size: 24px; font-weight: 500; color: #fff; }
.company-price .c { font-size: 14px; }

.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.metric { background: #071020; border: 1px solid #1a2e4a; border-radius: 8px; padding: 14px; }
.metric .label { font-size: 11px; color: #7a9cc4; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.4px; }
.metric .value { font-size: 20px; font-weight: 500; color: #e8edf5; }
.metric .sub { font-size: 12px; margin-top: 3px; }

.analysis-block { margin-bottom: 16px; }
.analysis-block:last-child { margin-bottom: 0; }
.analysis-block .h { font-size: 13px; font-weight: 500; color: #60a5fa; margin-bottom: 6px; }
.analysis-block .t { font-size: 14px; color: #c8d8ec; line-height: 1.7; }
.kernpunt { font-size: 16px; font-weight: 500; color: #e8edf5; line-height: 1.5; padding: 12px 16px; background: #0f2444; border-left: 3px solid #3b82f6; border-radius: 0 8px 8px 0; margin-bottom: 16px; }
.bullbear { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 4px 0 4px; }
.bb-col { background: #071020; border: 1px solid #1a2e4a; border-radius: 8px; padding: 12px 14px; }
.bb-head { font-size: 12px; font-weight: 500; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.bb-col.bull .bb-head { color: #22c55e; }
.bb-col.bear .bb-head { color: #f87171; }
.bb-col ul { list-style: none; margin: 0; padding: 0; }
.bb-col li { font-size: 13px; color: #c8d8ec; line-height: 1.5; padding-left: 14px; position: relative; margin-bottom: 7px; }
.bb-col li:last-child { margin-bottom: 0; }
.bb-col li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: #3b5680; }
.peer-row { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 560px) { .bullbear { grid-template-columns: 1fr; } }
.ai-tag { display: inline-flex; align-items: center; gap: 5px; background: #1e2a4a; color: #93c5fd; font-size: 10px; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

.target-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.target { background: #071020; border: 1px solid #1a2e4a; border-radius: 8px; padding: 14px; text-align: center; }
.target .label { font-size: 11px; color: #7a9cc4; margin-bottom: 6px; }
.target .value { font-size: 18px; font-weight: 500; color: #e8edf5; }
.rec-bar { display: flex; height: 28px; border-radius: 6px; overflow: hidden; margin-top: 6px; }
.rec-seg { display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; }
.rec-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 11px; color: #7a9cc4; }
.rec-legend span { display: inline-flex; align-items: center; gap: 5px; }
.rec-legend .sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.note { font-size: 11px; color: #4a6a94; margin-top: 10px; font-style: italic; }

/* Koersgrafiek */
.chart-box { height: 380px; border-radius: 8px; overflow: hidden; }

/* 52-weeks-range balk */
.range-wrap { margin-top: 4px; }
.range-track { position: relative; height: 8px; background: #071020; border: 1px solid #1a2e4a; border-radius: 5px; }
.range-fill { position: absolute; top: 0; bottom: 0; left: 0; background: #1e4a8a; border-radius: 5px 0 0 5px; }
.range-marker { position: absolute; top: -4px; width: 3px; height: 16px; background: #60a5fa; border-radius: 2px; transform: translateX(-1px); }
.range-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: #7a9cc4; }
.range-labels b { color: #e8edf5; font-weight: 500; }

/* WPA-trend mini bar chart */
.eps-chart { display: flex; align-items: flex-end; gap: 10px; height: 130px; padding-top: 10px; }
.eps-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.eps-bar-wrap { width: 100%; display: flex; align-items: flex-end; justify-content: center; flex: 1; position: relative; }
.eps-bar { width: 60%; background: #2563eb; border-radius: 4px 4px 0 0; min-height: 3px; position: relative; }
.eps-bar.miss { background: #b45309; }
.eps-val { font-size: 11px; color: #c8d8ec; font-weight: 500; }
.eps-label { font-size: 10px; color: #4a6a94; }
.eps-est { position: absolute; left: 15%; right: 15%; height: 2px; background: #93c5fd; }

/* Volgende cijfers */
.next-earn { display: flex; align-items: center; gap: 14px; background: #071020; border: 1px solid #1a2e4a; border-radius: 8px; padding: 14px; }
.next-earn .cal-ic { width: 42px; height: 42px; border-radius: 8px; background: #1e2a4a; display: flex; align-items: center; justify-content: center; color: #60a5fa; font-size: 22px; flex-shrink: 0; }
.next-earn .ne-date { font-size: 16px; font-weight: 500; color: #e8edf5; }
.next-earn .ne-sub { font-size: 12px; color: #7a9cc4; margin-top: 2px; }

.news-item { padding: 12px 0; border-bottom: 1px solid #1a2e4a; }
.news-item:last-child { border-bottom: none; padding-bottom: 0; }
.news-item a { color: #dde8f5; text-decoration: none; font-size: 14px; line-height: 1.5; }
.news-item a:hover { color: #60a5fa; }
.news-meta { font-size: 11px; color: #4a6a94; margin-top: 4px; }

.loader { text-align: center; padding: 50px 20px; color: #7a9cc4; }
.spinner { width: 34px; height: 34px; border: 3px solid #1e3a5f; border-top-color: #3b82f6; border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-box { background: #2a1015; border: 1px solid #7f1d1d; border-radius: 10px; padding: 16px; color: #fecaca; font-size: 13px; }

/* Binnenkort-pagina */
.coming { max-width: 640px; margin: 40px auto; padding: 0 24px 60px; text-align: center; }
.coming-card { background: #0d1f3c; border: 1px solid #1e3a5f; border-radius: 16px; padding: 48px 32px; }
.coming-icon { width: 72px; height: 72px; border-radius: 16px; background: #1e2a4a; display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.coming-icon i { font-size: 36px; color: #60a5fa; }
.coming-badge { display: inline-block; background: #2e2750; color: #c4b5fd; font-size: 11px; font-weight: 500; padding: 4px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 16px; }
.coming h1 { font-size: 26px; font-weight: 500; color: #fff; margin-bottom: 12px; }
.coming p { font-size: 15px; color: #9ab8d8; line-height: 1.7; max-width: 480px; margin: 0 auto; }
.coming .preview-list { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; text-align: left; }
.coming .preview-item { display: flex; align-items: center; gap: 12px; background: #071020; border: 1px solid #1a2e4a; border-radius: 10px; padding: 13px 16px; font-size: 14px; color: #c8d8ec; }
.coming .preview-item i { color: #3b82f6; font-size: 18px; }

/* ── Trackers ── */
.holding-row { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #1a2e4a; }
.holding-row:last-child { border-bottom: none; }
.holding-rank { font-size: 12px; color: #4a6a94; text-align: center; }
.holding-name { font-size: 14px; color: #e8edf5; }
.holding-name span { font-size: 11px; color: #4a6a94; display: block; }
.holding-weight { font-size: 14px; font-weight: 500; color: #e8edf5; text-align: right; min-width: 52px; }
.holding-ytd { font-size: 12px; text-align: right; min-width: 60px; }
.rest-bar { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; background: #071020; border: 1px solid #1a2e4a; border-radius: 8px; font-size: 13px; color: #9ab8d8; }
.rest-bar b { color: #e8edf5; font-weight: 500; }

.geo-row { display: grid; grid-template-columns: 130px 1fr 48px; gap: 10px; align-items: center; margin-bottom: 8px; }
.geo-label { font-size: 13px; color: #c8d8ec; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.geo-track { height: 18px; background: #071020; border-radius: 4px; overflow: hidden; }
.geo-fill { height: 100%; border-radius: 4px; }
.geo-pct { font-size: 12px; color: #9ab8d8; text-align: right; }

.sector-row { display: grid; grid-template-columns: 150px 1fr 48px auto; gap: 10px; align-items: center; margin-bottom: 8px; }
.sector-label { font-size: 13px; color: #c8d8ec; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sector-track { height: 18px; background: #071020; border-radius: 4px; overflow: hidden; }
.sector-fill { height: 100%; background: #2563eb; border-radius: 4px; }
.sector-pct { font-size: 12px; color: #e8edf5; text-align: right; }
.ow-badge { font-size: 10px; padding: 2px 7px; border-radius: 4px; white-space: nowrap; }
.ow-badge.over { background: #11331f; color: #4ade80; }
.ow-badge.under { background: #3a1a1a; color: #f87171; }
.ow-badge.neutral { background: #1a2e4a; color: #7a9cc4; }

.etf-stats { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: 13px; color: #9ab8d8; }
.etf-stats b { color: #e8edf5; font-weight: 500; }
.equity-warn { background: #3a2a10; border: 1px solid #855; border-color: #6b4f1a; border-radius: 8px; padding: 12px 14px; font-size: 13px; color: #fcd9a0; margin-bottom: 18px; }

/* ── Broker-CTA (contextueel op aandelenpagina) ── */
.broker-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: #103163; border: 1px solid #2a5a9a; border-radius: 12px;
  padding: 16px 20px; margin-bottom: 18px; text-decoration: none; transition: border-color 0.15s; }
.broker-cta:hover { border-color: #60a5fa; }
.broker-cta-text { font-size: 15px; color: #e8edf5; display: flex; align-items: center; gap: 10px; }
.broker-cta-text i { font-size: 22px; color: #93c5fd; }
.broker-cta-text b { color: #fff; font-weight: 500; }
.broker-cta-btn { background: #3b82f6; color: #fff; font-size: 14px; font-weight: 500; padding: 9px 18px;
  border-radius: 8px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.broker-cta:hover .broker-cta-btn { background: #2563eb; }

/* ── Brokervergelijking ── */
.brokers-intro { max-width: 860px; margin: 0 auto; padding: 8px 24px 0; }
.brokers-intro h1 { font-size: 26px; font-weight: 500; color: #fff; margin-bottom: 8px; }
.brokers-intro p { font-size: 15px; color: #9ab8d8; line-height: 1.6; }
.brokers-intro .highlight { background: #0f2444; border: 1px solid #1e4a8a; border-radius: 10px; padding: 12px 16px;
  font-size: 13px; color: #9ab8d8; margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; }
.brokers-intro .highlight i { color: #93c5fd; font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.broker-grid { max-width: 860px; margin: 0 auto; padding: 18px 24px 40px; display: grid; gap: 16px; }
.broker-card { background: #0d1f3c; border: 1px solid #1e3a5f; border-radius: 12px; padding: 20px; display: grid;
  grid-template-columns: 56px 1fr auto; gap: 18px; align-items: center; }
.broker-card.featured { border: 2px solid #3b82f6; }
.broker-logo { width: 56px; height: 56px; border-radius: 12px; background: #fff; display: flex; align-items: center;
  justify-content: center; font-size: 26px; color: #1e4a8a; overflow: hidden; padding: 7px; flex-shrink: 0; }
.broker-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.broker-info { min-width: 0; }
.broker-name { font-size: 18px; font-weight: 500; color: #fff; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.broker-tag { font-size: 10px; background: #11331f; color: #4ade80; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.broker-pitch { font-size: 13px; color: #9ab8d8; margin: 4px 0 10px; }
.broker-pros { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.broker-pros span { font-size: 13px; color: #c8d8ec; display: inline-flex; align-items: center; gap: 6px; }
.broker-pros i { color: #4ade80; font-size: 15px; }
.broker-action { width: 190px; text-align: center; }
.broker-btn { background: #3b82f6; color: #fff; border: none; font-size: 14px; font-weight: 500; padding: 11px 20px;
  border-radius: 8px; text-decoration: none; display: block; width: 100%; white-space: nowrap; cursor: pointer; }
.broker-btn:hover { background: #2563eb; }
.broker-action .small { font-size: 11px; color: #4a6a94; margin-top: 6px; }
@media (max-width: 600px) {
  .broker-card { grid-template-columns: 1fr; text-align: left; }
  .broker-action { width: auto; text-align: left; }
  .broker-btn { display: inline-block; width: auto; }
}
.broker-disclosure { max-width: 860px; margin: 0 auto 40px; padding: 0 24px; font-size: 12px; color: #4a6a94; line-height: 1.6; }

.footer { background: #071020; border-top: 1px solid #1e3a5f; padding: 18px; text-align: center; }
.footer p { font-size: 12px; color: #4a6a94; }
