*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    :root {
      --bg: #0f1117; --surface: #1a1d27; --border: #2a2d3a;
      --text: #e8e9ed; --muted: #7a7d8e; --accent: #e6c84c; --accent2: #3b82f6;
    }
    body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; padding: 0 0 60px; }
    header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 24px; position: sticky; top: 0; z-index: 100; }
    .header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
    .logo { font-size: 18px; font-weight: 700; color: var(--accent); white-space: nowrap; }
    .logo span { color: var(--muted); font-weight: 400; }
    .search-wrap { flex: 1; min-width: 200px; position: relative; }
    .search-wrap svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
    #search { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px 8px 34px; color: var(--text); font-size: 14px; outline: none; transition: border-color 0.2s; }
    #search:focus { border-color: var(--accent); }
    .filters { display: flex; gap: 8px; flex-wrap: wrap; }
    select { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 28px 8px 10px; color: var(--text); font-size: 13px; cursor: pointer; outline: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a7d8e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 6px center; background-size: 14px; }
    select:focus { border-color: var(--accent); }
    .stats { font-size: 12px; color: var(--muted); white-space: nowrap; }
    .stats strong { color: var(--accent); }
    main { max-width: 1200px; margin: 0 auto; padding: 20px 24px; }
    #message { padding: 10px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; display: none; }
    #message.loading { display: block; background: #1e3a5f; color: #93c5fd; }
    #message.error { display: block; background: #3f1e1e; color: #fca5a5; }
    #campaigns { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
    .card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; transition: border-color 0.2s, transform 0.2s; cursor: default; }
    .card:hover { border-color: var(--accent); transform: translateY(-2px); }
    .card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
    .card-title { font-size: 14px; font-weight: 600; line-height: 1.4; flex: 1; }
    .card-title a { color: var(--text); text-decoration: none; }
    .card-title a:hover { color: var(--accent); text-decoration: underline; }
    .card-badges { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
    .badge { font-size: 10px; padding: 2px 7px; border-radius: 20px; font-weight: 600; white-space: nowrap; }
    .badge-bank   { background: #1e2a4a; color: #93c5fd; border: 1px solid #2a3a6a; }
    .badge-kt     { background: #1a2a1a; color: #86efac; border: 1px solid #2a4a2a; }
    .badge-yk     { background: #2a1a3a; color: #d8b4fe; border: 1px solid #4a2a5a; }
    .badge-enpara { background: #1a2a3a; color: #67e8f9; border: 1px solid #2a4a5a; }
    .badge-isbank  { background: #1a2a2a; color: #fde68a; border: 1px solid #4a4a2a; }
    .badge-vakif   { background: #1a2a1a; color: #a7f3d0; border: 1px solid #2a4a2a; }
    .card-desc { font-size: 12px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .card-meta { font-size: 11px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 12px; }
    .card-meta span { display: flex; align-items: center; gap: 3px; }
    .card-cats { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
    .cat-tag { font-size: 10px; padding: 2px 8px; border-radius: 6px; background: #1f2937; color: #9ca3af; border: 1px solid #374151; }
    .card-footer { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
    .card-link { font-size: 12px; color: var(--accent2); text-decoration: none; font-weight: 600; }
    .card-link:hover { text-decoration: underline; }
    .no-results { text-align: center; color: var(--muted); padding: 60px 20px; font-size: 15px; }
    .no-results strong { display: block; font-size: 18px; margin-bottom: 8px; color: var(--text); }
    #load-time { font-size: 11px; color: var(--muted); margin-top: 20px; text-align: center; }

/* ── Modal ────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(4px);
}
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; width: 100%; max-width: 640px; max-height: 85vh;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.modal-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  flex-shrink: 0;
}
.modal-title { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--text); flex: 1; }
.modal-close {
  background: none; border: none; font-size: 24px; color: var(--muted);
  cursor: pointer; padding: 0; line-height: 1; flex-shrink: 0;
}
.modal-close:hover { color: var(--text); }
.modal-body { overflow-y: auto; padding: 20px; }
.modal-campaign { margin-bottom: 16px; }
.modal-section { display: flex; flex-direction: column; gap: 10px; }
.modal-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.modal-desc { font-size: 13px; color: var(--text); line-height: 1.6; white-space: pre-wrap; }
.modal-cards { font-size: 12px; color: var(--muted); line-height: 1.5; }
.modal-url { font-size: 12px; }
.modal-url a { color: var(--accent2); }
.modal-dates { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 12px; }
.modal-cats { display: flex; flex-wrap: wrap; gap: 4px; }
.modal-json { margin-top: 8px; }
.modal-json summary {
  font-size: 12px; color: var(--muted); cursor: pointer; user-select: none;
  padding: 4px 0;
}
.modal-json pre {
  margin-top: 6px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px; font-size: 11px; color: #a8b3cf;
  overflow-x: auto; white-space: pre; max-height: 300px;
}
.card-title-btn {
  background: none; border: none; padding: 0; color: var(--text);
  font-size: inherit; font-weight: inherit; cursor: pointer; text-align: left;
}
.card-title-btn:hover { color: var(--accent); text-decoration: underline; }
.card-detail-btn {
  background: none; border: none; color: var(--accent2); font-size: 12px;
  font-weight: 600; cursor: pointer; padding: 0; font-family: inherit;
}
.card-detail-btn:hover { text-decoration: underline; }