/* ═══════════════════════════════════════════════════════════════════════════
   Investigation Tips Portal — Main Stylesheet
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg:        #0a0e1a;
  --bg-card:   #111827;
  --bg-input:  #0d1526;
  --border:    #1e2f4a;
  --text:      #e2e8f0;
  --text-muted:#6c8098;
  --accent:    #e63946;
  --accent-2:  #2563eb;
  --nav-h:     64px;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(0,0,0,.4);
  --font:      'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ──────────────────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; color: #f0f4ff; }
a { color: var(--accent); text-decoration: none; transition: opacity .15s; }
a:hover { opacity: .8; }
.text-accent { color: var(--accent); }
.fw-600 { font-weight: 600; }

/* ── Navigation ──────────────────────────────────────────────────────────── */
.tips-nav {
  background: #0d1526;
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 1rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}
.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
}
.brand-sup {
  color: var(--text-muted);
  font-size: .7rem;
  font-weight: 400;
  border-left: 1px solid var(--border);
  padding-left: .5rem;
  margin-left: .25rem;
}
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.btn-submit-nav {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .45rem 1rem;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}
.btn-submit-nav:hover { background: #c1121f; color: #fff; opacity: 1; }
.nav-join-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: .45rem 1rem;
  font-size: .875rem;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.nav-join-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.tips-hero {
  background: linear-gradient(135deg, #0d1526 0%, #0a1628 50%, #0e1a2e 100%);
  padding: 5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.tips-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(230,57,70,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: #fff;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 2rem;
}
.hero-search { max-width: 680px; }
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #131e34;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.search-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(230,57,70,.15); }
.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  font-size: .9rem;
}
.search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 1rem 1rem 1rem 2.8rem;
  font-size: 1rem;
  outline: none;
  font-family: var(--font);
}
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: .85rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.search-btn:hover { background: #c1121f; }

.hero-stats {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}
.stat-pill {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: .35rem .9rem;
  font-size: .8rem;
  color: var(--text-muted);
}
.stat-pill .stat-num { font-weight: 700; color: var(--text); margin-right: .3rem; }
.stat-pill.stat-active  { border-color: rgba(37,99,235,.3); }
.stat-pill.stat-invest  { border-color: rgba(6,182,212,.3); }
.stat-pill.stat-resolved{ border-color: rgba(34,197,94,.3); }

/* ── Category Bar ────────────────────────────────────────────────────────── */
.category-bar {
  background: #0d1526;
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
}
.cat-scroll {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 50px;
  padding: .35rem .9rem;
  font-size: .8rem;
  font-weight: 500;
  transition: all .2s;
  white-space: nowrap;
}
.cat-pill:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }
.cat-pill.active {
  background: var(--cat-color, var(--accent));
  border-color: var(--cat-color, var(--accent));
  color: #fff;
}

/* ── Results Section ─────────────────────────────────────────────────────── */
.results-section { padding: 2rem 0 4rem; }
.results-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.results-count { color: var(--text-muted); font-size: .9rem; }
.results-count strong { color: var(--text); }
.results-sort { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.sort-label { color: var(--text-muted); font-size: .8rem; }
.sort-pills { display: flex; gap: .35rem; }
.sort-pill {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  padding: .25rem .65rem;
  font-size: .75rem;
  transition: all .2s;
}
.sort-pill:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }
.sort-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Tips Grid ───────────────────────────────────────────────────────────── */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

/* ── Tip Card ────────────────────────────────────────────────────────────── */
.tip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
}
.tip-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #2d3d57;
}
.tip-card--featured { border-color: rgba(230,57,70,.4); }
.featured-ribbon {
  position: absolute;
  top: 0; right: 0;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem .65rem;
  border-bottom-left-radius: 8px;
}
.tip-card-header {
  background: linear-gradient(135deg, rgba(var(--cat-color-rgb,100,100,100),.15), transparent);
  border-bottom: 1px solid var(--border);
  padding: .85rem 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.tip-cat-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cat-color, var(--text-muted));
  font-size: 1rem;
  flex-shrink: 0;
}
.tip-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.tip-code-badge {
  font-family: 'Courier New', monospace;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  letter-spacing: .1em;
}
.tip-card-body { padding: 1rem; flex: 1; }

/* ── Tip card image thumbnail ─────────────────────────────────────────────── */
.tip-card-body--has-thumb {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}
.tip-card-thumb {
  flex-shrink: 0;
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  text-decoration: none;
}
.tip-card-thumb img {
  width: 100%;
  height: 100%;
  max-width: 72px;
  max-height: 72px;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.tip-card:hover .tip-card-thumb img {
  transform: scale(1.08);
}
.tip-card-thumb-count {
  position: absolute;
  bottom: 2px;
  right: 3px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 10px;
  line-height: 1.5;
  backdrop-filter: blur(3px);
}
.tip-card-text { flex: 1; min-width: 0; }
.tip-category { color: var(--text-muted); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .4rem; }
.tip-title { font-size: 1rem; font-weight: 700; line-height: 1.3; margin-bottom: .5rem; }
.tip-title a { color: #f0f4ff; }
.tip-title a:hover { color: var(--accent); opacity: 1; }
.tip-excerpt { color: var(--text-muted); font-size: .875rem; line-height: 1.5; margin-bottom: .5rem; }
.tip-location { color: var(--text-muted); font-size: .8rem; }
.tip-card-footer {
  padding: .75rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.tip-stats { display: flex; gap: .75rem; color: var(--text-muted); font-size: .8rem; }
.tip-stats i { margin-right: 3px; }
.tip-right { display: flex; align-items: center; gap: .5rem; }
.rating-num { font-size: .75rem; font-weight: 700; color: #ffd700; }
.tip-time { color: var(--text-muted); font-size: .75rem; }

/* ── Grade Badge ─────────────────────────────────────────────────────────── */
.grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-weight: 800;
  font-size: .8rem;
  color: #fff;
  flex-shrink: 0;
}

/* ── Stars ───────────────────────────────────────────────────────────────── */
.stars { font-size: .75rem; }

/* ── Empty State ─────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-muted);
}
.empty-state i { font-size: 3rem; margin-bottom: 1rem; display: block; }
.empty-state h4 { color: var(--text); margin-bottom: .5rem; }

/* ── CTA Banner ──────────────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #0d1526, #1a0a14);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-inner h3 { font-size: 1.4rem; margin-bottom: .25rem; }
.btn-cta {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .85rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s, transform .2s;
}
.btn-cta:hover { background: #c1121f; color: #fff; transform: translateY(-2px); opacity: 1; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.tips-footer {
  background: #0a0e1a;
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 0;
}
.footer-brand { font-weight: 700; color: var(--text); }
.footer-byline { color: var(--text-muted); font-size: .875rem; }
.footer-link { color: var(--text-muted); font-size: .875rem; margin-left: 1.25rem; }
.footer-link:hover { color: var(--accent); }

/* ── Page Header Bar ─────────────────────────────────────────────────────── */
.page-header-bar {
  background: linear-gradient(135deg, #0d1526, #0a0e1a);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.bc-nav { font-size: .85rem; color: var(--text-muted); margin-bottom: .75rem; }
.bc-nav a { color: var(--text-muted); }
.bc-nav a:hover { color: var(--accent); }
.bc-sep { margin: 0 .5rem; color: var(--border); }
.page-header-title { font-size: 1.8rem; margin-bottom: .25rem; }
.page-header-sub { color: var(--text-muted); }

/* ── Form Card ───────────────────────────────────────────────────────────── */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.form-card-header {
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--border);
  padding: .85rem 1.25rem;
  font-size: .875rem;
  color: var(--text-muted);
}
.form-card-body { padding: 1.75rem; }

/* ── Tips Input ──────────────────────────────────────────────────────────── */
.tips-input {
  background: var(--bg-input) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
  border-radius: 8px !important;
}
.tips-input:focus {
  background: var(--bg-input) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(230,57,70,.15) !important;
  color: var(--text) !important;
}
.tips-input::placeholder { color: var(--text-muted) !important; }
textarea.tips-input { resize: vertical; }
.form-label { color: var(--text-muted); font-size: .85rem; font-weight: 500; margin-bottom: .4rem; }

/* ── Category Grid (submit form) ─────────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .5rem;
}
.cat-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: .75rem .5rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}
.cat-option input { display: none; }
.cat-option:hover { border-color: #2d3d57; }
.cat-option.selected { border-color: var(--accent); background: rgba(230,57,70,.08); }
.cat-option-icon { font-size: 1.3rem; }
.cat-option-label { font-size: .75rem; color: var(--text-muted); font-weight: 500; }
.char-count { font-size: .75rem; color: var(--text-muted); text-align: right; margin-top: .25rem; }

/* ── Submit Button ───────────────────────────────────────────────────────── */
.btn-submit-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .9rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s, transform .2s;
  text-decoration: none;
  width: 100%;
}
.btn-submit-main:hover { background: #c1121f; color: #fff; transform: translateY(-1px); opacity: 1; }

/* ── Submit Footer / Anon Notice ─────────────────────────────────────────── */
.submit-footer { border-top: 1px solid var(--border); padding-top: 1.5rem; margin-top: 1rem; }
.anon-notice { text-align: center; padding: 1.25rem; background: rgba(255,255,255,.03); border-radius: 8px; margin-bottom: 1rem; }
.anon-notice strong { color: var(--text); display: block; margin-bottom: .35rem; }
.anon-notice p { color: var(--text-muted); font-size: .85rem; margin: 0; }

/* ── Info Boxes ──────────────────────────────────────────────────────────── */
.info-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin-top: 1.5rem;
}
.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1rem;
  text-align: center;
}
.info-box i { font-size: 1.5rem; display: block; margin-bottom: .5rem; }
.info-box strong { display: block; font-size: .85rem; margin-bottom: .25rem; }
.info-box p { color: var(--text-muted); font-size: .75rem; margin: 0; }
@media (max-width: 640px) { .info-boxes { grid-template-columns: repeat(2,1fr); } }

/* ── Success Card ────────────────────────────────────────────────────────── */
.success-card {
  background: var(--bg-card);
  border: 1px solid rgba(34,197,94,.3);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
}
.success-icon { font-size: 3rem; color: #22c55e; margin-bottom: 1rem; }
.success-card h2 { margin-bottom: .75rem; }
.success-card p { color: var(--text-muted); margin-bottom: 1.5rem; }
.success-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.success-note { color: var(--text-muted); font-size: .8rem; margin-top: 1.25rem; margin-bottom: 0; }

/* ── Code Display ────────────────────────────────────────────────────────── */
.code-display {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
}
.code-label { color: var(--text-muted); font-size: .75rem; margin-bottom: .25rem; }
.code-value {
  font-family: 'Courier New', monospace;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--accent);
}
.code-inline {
  font-family: 'Courier New', monospace;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
  background: rgba(230,57,70,.1);
  border: 1px solid rgba(230,57,70,.2);
  border-radius: 4px;
  padding: 1px 8px;
}
.code-inline.sm { font-size: .75rem; }
.code-input {
  text-align: center;
  letter-spacing: .2em;
  font-family: 'Courier New', monospace;
  font-size: 2rem;
  font-weight: 800;
}
.btn-copy {
  background: rgba(255,255,255,.07);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  padding: .4rem .75rem;
  font-size: .8rem;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.btn-copy:hover { border-color: var(--accent); color: var(--accent); }
.share-link-wrap { display: flex; gap: .5rem; }
.share-link-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  padding: .5rem .75rem;
  font-size: .8rem;
  outline: none;
}

/* ── Tip Detail Page ─────────────────────────────────────────────────────── */
.tip-detail-header {
  background: linear-gradient(135deg, rgba(255,255,255,.03), transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  border-left: 3px solid var(--cat-color, var(--accent));
}
.tip-detail-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .75rem; }
.cat-tag { font-size: .8rem; font-weight: 600; }
.tip-detail-title { font-size: 1.6rem; font-weight: 800; line-height: 1.25; margin-bottom: .75rem; }
.tip-detail-info { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--text-muted); font-size: .85rem; }

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.tip-description { line-height: 1.8; color: var(--text); }

.tag-pill {
  display: inline-block;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 2px 10px;
  font-size: .75rem;
  color: var(--text-muted);
  margin-right: .35rem;
  margin-bottom: .35rem;
  transition: all .2s;
}
.tag-pill:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }

/* ── Vote Bar ────────────────────────────────────────────────────────────── */
.vote-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.vote-btn {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 8px;
  padding: .5rem .9rem;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  transition: all .2s;
}
.vote-btn:hover { border-color: #22c55e; color: #22c55e; }
.vote-btn.active { background: rgba(34,197,94,.15); border-color: #22c55e; color: #22c55e; }
.vote-btn.down:hover { border-color: var(--accent); color: var(--accent); }
.vote-btn.down.active { background: rgba(230,57,70,.15); border-color: var(--accent); color: var(--accent); }
.vote-label { color: var(--text-muted); font-size: .85rem; }

/* ── AI Panel ────────────────────────────────────────────────────────────── */
.ai-panel {
  background: linear-gradient(135deg, #0d1a2e, #0f1f36);
  border: 1px solid #1e3a5f;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.ai-panel-header {
  background: rgba(37,99,235,.12);
  border-bottom: 1px solid #1e3a5f;
  padding: .85rem 1.25rem;
  font-weight: 700;
  color: #93c5fd;
  font-size: .875rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.ai-model-tag {
  margin-left: auto;
  background: rgba(37,99,235,.2);
  border-radius: 4px;
  padding: 1px 8px;
  font-size: .7rem;
  font-weight: 400;
  color: #93c5fd;
  font-family: monospace;
}
.ai-panel-body { padding: 1.25rem; }
.ai-scores {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.ai-score-item { text-align: center; }
.ai-score-val { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.ai-score-label { font-size: .7rem; color: var(--text-muted); margin-top: .25rem; }
.ai-summary {
  background: rgba(255,255,255,.03);
  border-left: 3px solid #2563eb;
  padding: .75rem 1rem;
  border-radius: 0 8px 8px 0;
  color: var(--text-muted);
  font-style: italic;
  font-size: .9rem;
  margin-bottom: 1rem;
}
.ai-section-title { font-size: .8rem; font-weight: 700; color: #93c5fd; margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .05em; }
.ai-list { list-style: none; padding: 0; }
.ai-list li { padding: .3rem 0; color: var(--text-muted); font-size: .875rem; padding-left: 1rem; position: relative; }
.ai-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }
.ai-interest {
  background: rgba(34,197,94,.07);
  border: 1px solid rgba(34,197,94,.2);
  border-radius: 8px;
  padding: .75rem;
  color: #86efac;
  font-size: .875rem;
  margin-top: .75rem;
}
.ai-red-flags {
  background: rgba(230,57,70,.08);
  border: 1px solid rgba(230,57,70,.2);
  border-radius: 8px;
  padding: .65rem .85rem;
  color: #fca5a5;
  font-size: .825rem;
  margin-top: .75rem;
}

/* ── Evidence ────────────────────────────────────────────────────────────── */
.evidence-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.evidence-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.evidence-header h3 { font-size: 1rem; margin: 0; }
.evidence-count {
  background: var(--accent);
  color: #fff;
  border-radius: 50px;
  padding: 1px 8px;
  font-size: .75rem;
  margin-left: .5rem;
}
.btn-add-evidence {
  background: rgba(230,57,70,.1);
  border: 1px solid rgba(230,57,70,.3);
  color: var(--accent);
  border-radius: 6px;
  padding: .35rem .75rem;
  font-size: .8rem;
  cursor: pointer;
  transition: all .2s;
}
.btn-add-evidence:hover { background: rgba(230,57,70,.2); }

.evidence-form-card {
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem;
}
.evidence-form-card h5 { font-size: .95rem; margin-bottom: 1rem; }
.ev-type-picker { display: flex; gap: .5rem; flex-wrap: wrap; }
.ev-type {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .85rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: .85rem;
  color: var(--text-muted);
  transition: all .2s;
}
.ev-type.active { border-color: var(--accent); color: var(--accent); background: rgba(230,57,70,.07); }
.ev-type input { display: none; }
.ev-submit-row { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; }
.file-drop-zone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all .2s;
}
.file-drop-zone:hover, .file-drop-zone.dragover {
  border-color: var(--accent);
  background: rgba(230,57,70,.05);
}

.evidence-list { }
.evidence-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.evidence-item:last-child { border-bottom: none; }
.ev-type-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.ev-title { font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.ev-text { color: var(--text-muted); font-size: .875rem; line-height: 1.6; margin: 0; }
.ev-link { color: var(--accent-2); font-size: .85rem; word-break: break-all; }
.ev-meta { color: var(--text-muted); font-size: .75rem; margin-top: .4rem; }
.ev-image { max-width: 100%; max-height: 300px; border-radius: 8px; }
.ev-image-wrap a { display: inline-block; }
.no-evidence { text-align: center; padding: 3rem; color: var(--text-muted); }
.no-evidence i { display: block; margin-bottom: .75rem; }

/* ── Sidebar Cards ───────────────────────────────────────────────────────── */
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.sidebar-card-header {
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--border);
  padding: .85rem 1.1rem;
  font-weight: 700;
  font-size: .875rem;
}
.sidebar-card > p, .sidebar-card > div:not(.sidebar-card-header) { padding: 1rem 1.1rem; }
.stat-list { }
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .875rem;
  color: var(--text-muted);
}
.stat-row:last-child { border-bottom: none; }
.stat-row strong { color: var(--text); }
.anon-card {
  text-align: center;
  padding: 1.5rem 1rem;
  display: block;
}

/* ── Tips Modal ──────────────────────────────────────────────────────────── */
.tips-modal {
  background: #111827;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
}
.tips-modal .modal-header { border-color: var(--border); }

/* ── Bootstrap overrides ─────────────────────────────────────────────────── */
.badge { font-weight: 600; }
.alert { border-radius: 10px; }
.btn-xs {
  padding: .2rem .5rem;
  font-size: .75rem;
  border-radius: 5px;
}
.pagination .page-link {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-muted);
  border-radius: 6px !important;
  margin: 0 2px;
}
.pagination .page-item.active .page-link {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pagination .page-link:hover { background: #1e2a45; color: var(--text); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .tips-hero { padding: 3rem 0 2rem; }
  .hero-title { font-size: 2rem; }
  .hero-stats { gap: .5rem; }
  .nav-brand .brand-sup { display: none; }
  .cta-inner { flex-direction: column; text-align: center; }
  .results-sort { width: 100%; }
  .info-boxes { grid-template-columns: repeat(2,1fr); }
  .ai-scores { gap: 1rem; }
  .tip-detail-title { font-size: 1.3rem; }
}
