:root {
  --bg: #0b0b0c;
  --bg-2: #141416;
  --bg-3: #1c1c20;
  --line: #2a2a30;
  --text: #f2f2f2;
  --muted: #9a9aa3;
  --red: #e31c2c;
  --red-2: #ff4b57;
  --glow: rgba(227, 28, 44, 0.35);
  --ok: #3ccf7a;
  --warn: #f5b942;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; background-image: radial-gradient(900px 500px at 85% -10%, var(--glow), transparent 60%), radial-gradient(600px 400px at -10% 110%, rgba(227,28,44,0.18), transparent 60%); background-attachment: fixed; }
a { color: var(--red-2); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; border: 1px solid var(--line); background: var(--bg-3); color: var(--text); padding: 10px 16px; border-radius: 10px; transition: background .15s, border-color .15s, transform .05s; }
button:hover { border-color: #3a3a42; background: #232329; }
button:active { transform: translateY(1px); }
button.primary { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
button.primary:hover { background: var(--red-2); border-color: var(--red-2); }
button.ghost { background: transparent; }
button.small { padding: 6px 12px; font-size: 14px; }
button:disabled { opacity: .5; cursor: default; }
input, textarea { font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
input:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
textarea { min-height: 90px; resize: vertical; }
[hidden] { display: none !important; }

.app { max-width: 1080px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.top { display: flex; align-items: center; gap: 16px; padding: calc(18px + env(safe-area-inset-top)) 0 8px; }
.brand { font-size: 26px; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 2px; color: inherit; text-decoration: none; border-radius: 6px; }
.brand:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.brand .logo { height: 22px; width: auto; display: block; }
.brand .spark { margin-left: 10px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--red-2); font-weight: 600; }
.top-meta { margin-left: auto; color: var(--muted); font-size: 13px; text-align: right; }
.refresh { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 34px; padding: 6px 10px; }
.refresh[hidden] { display: none; }
.refresh.spin svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 10px 14px; color: var(--muted); white-space: nowrap; }
.tab:hover { color: var(--text); background: transparent; }
.tab.active { color: var(--text); border-bottom-color: var(--red); }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.badge:empty { display: none; }

.login { max-width: 440px; margin: 10vh auto; }
.login h1 { font-size: 40px; margin: 0 0 8px; font-weight: 600; letter-spacing: -0.02em; }
.login p { color: var(--muted); }
.login form { display: grid; gap: 10px; margin-top: 16px; }
.error { color: var(--red-2); }

h2 { font-size: 22px; margin: 6px 0 12px; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 17px; margin: 0 0 6px; font-weight: 600; }
.sub { color: var(--muted); margin: -6px 0 14px; font-size: 14px; }
.grid { display: grid; gap: 14px; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card.approved { border-color: rgba(60,207,122,.5); }
.card.skipped { opacity: .6; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line); color: var(--muted); }
.chip.tier { border-color: var(--red); color: var(--red-2); font-weight: 600; }
.chip.ok { border-color: var(--ok); color: var(--ok); }
.chip.warn { border-color: var(--warn); color: var(--warn); }
.company { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.signal { margin: 8px 0; }
.label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 12px 0 4px; }
.source { font-size: 13px; color: var(--muted); }
.ideas { display: grid; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.ideas li { background: var(--bg-3); border-radius: 10px; padding: 10px 12px; }
.ideas .t { font-weight: 600; }
.ideas .s { color: var(--muted); font-size: 14px; }
.actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.note { margin-top: 10px; }
.note textarea { min-height: 56px; }
.status-line { margin-top: 12px; font-size: 14px; color: var(--muted); }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

.track { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.step { flex: 1; min-width: 90px; text-align: center; font-size: 12px; padding: 6px 4px; border-radius: 8px; background: var(--bg-3); color: var(--muted); border: 1px solid transparent; }
.step.done { color: var(--text); border-color: var(--line); }
.step.now { color: #fff; background: var(--red); }

.pkg .contact { font-size: 14px; }
.pkg textarea { min-height: 180px; font-size: 14px; }
.pkg .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted); word-break: break-all; }

.report-body { max-width: 760px; }
.report-body h1, .report-body h2, .report-body h3 { margin-top: 20px; }
.report-body blockquote { border-left: 3px solid var(--red); margin: 10px 0; padding: 4px 12px; color: var(--muted); }
.report-body table { border-collapse: collapse; width: 100%; font-size: 14px; }
.report-body th, .report-body td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.report-list button { width: 100%; text-align: left; }

.thread { display: grid; gap: 8px; max-height: 60vh; overflow: auto; padding: 4px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 14px; background: var(--bg-3); }
.msg.in { margin-left: auto; background: var(--red); color: #fff; }
.msg .meta { font-size: 11px; opacity: .7; margin-top: 4px; }
.compose { display: grid; gap: 8px; margin-top: 12px; }

.foot { color: var(--muted); font-size: 12px; margin-top: 30px; border-top: 1px solid var(--line); padding-top: 10px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--bg-3); border: 1px solid var(--line); padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 10; box-shadow: 0 10px 30px rgba(0,0,0,.5); }

@media (max-width: 640px) {
  .brand { font-size: 22px; }
  .top-meta { display: none; }
  .card { padding: 14px; }
  .msg { max-width: 92%; }
  .login h1 { font-size: 32px; }
}
@media (prefers-color-scheme: light) {
  /* Panel kasıtlı olarak koyu: Momentum marka dili. */
}

/* Ekler: fırsat ve paket kartlarındaki görsel/PDF listesi */
.ekler { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 4px; }
.ek-list { display: grid; gap: 8px; margin-bottom: 8px; }
.ek { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--bg-3); border-radius: 10px; padding: 8px; }
.ek-thumb { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--bg-2); border: 1px solid var(--line); text-decoration: none; }
.ek-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ek-ico { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--red-2); }
.ek-body { min-width: 0; display: grid; gap: 4px; }
.ek-body > a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.ek-meta { font-size: 12px; color: var(--muted); }
.ek-note { font-size: 14px; padding: 6px 8px; }
.ek-del { padding: 4px 10px; font-size: 18px; line-height: 1; align-self: start; }
.ek-add { position: relative; display: inline-block; cursor: pointer; font-size: 14px; color: var(--red-2); padding: 8px 0; }
.ek-add input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.ek-add:focus-within { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 6px; }
