:root {
  --bg: #F7F6F3;
  --surface: #FFFFFF;
  --ink: #15161A;
  --text-2: #4A4D55;
  --muted: #5B5E66;
  --line: #E4E2DC;
  --line-2: #C9C6BE;
  --soft: #F0EEE9;
  --accent: #D7262E;
  --accent-ink: #B81E25;
  --ok: #1F7A4D;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Figtree', system-ui, sans-serif;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
input, select, button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 680px; padding-top: 56px; padding-bottom: 56px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.error { color: var(--accent-ink); font-weight: 600; }

/* Düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; background: none; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #33353C; color: #fff; }
.btn-outline { border-color: var(--line-2); background: var(--surface); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { border-color: var(--line-2); background: var(--surface); font-weight: 600; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 17px; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; border-radius: 10px; }

/* Üst bar */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; text-decoration: none; color: var(--ink); }
.logo span { color: var(--accent); }
.mainnav { display: flex; gap: 24px; flex: 1; font-weight: 600; }
.mainnav a { text-decoration: none; padding: 10px 0; }

/* Hero + yükleyici */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 40px; }
.hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-weight: 800; font-size: clamp(52px, 8vw, 80px); line-height: 0.95; letter-spacing: -0.04em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 19px; color: var(--text-2); margin: 0; max-width: 520px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--text-2); font-size: 15px; }
.checks li::before { content: "✓"; font-weight: 800; color: var(--ink); margin-right: 8px; }

.uploader { flex: 1 1 480px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px;
  display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 48px -24px rgba(21, 22, 26, .18); }
.drop { border: 2px dashed var(--line-2); border-radius: 16px; padding: 36px 20px; display: flex; flex-direction: column; align-items: center;
  gap: 12px; text-align: center; background: #FBFAF8; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.is-over { border-color: var(--accent); background: #FFF6F5; }
.drop-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; }
.drop-title { font-family: var(--display); font-weight: 700; font-size: 24px; }
.drop-sub { font-size: 15px; color: var(--muted); }
.urlrow { display: flex; gap: 8px; }
.urlrow input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #FBFAF8; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.opts label, .stack label, .report-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
select, .stack input { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 15px; color: var(--ink); }

/* Şifre koruma */
.lockbox { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.lockbox .check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.lockbox .check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.lock-fields[hidden] { display: none; }
.lock-fields { display: flex; flex-direction: column; gap: 6px; }
.lock-fields p { margin: 0; }
.lock-fields input { font-size: 15px; letter-spacing: .02em; }
.lock-note { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--soft); border-radius: 10px; padding: 8px 12px; }
.lock-icon { width: 96px; height: 96px; }
.unlock { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; width: 100%; max-width: 420px; }
.unlock input { flex: 1 1 220px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; font-size: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
select:disabled { opacity: .6; }

/* Yükleme sonuçları */
.results { display: flex; flex-direction: column; gap: 12px; }
.result { border-top: 1px solid var(--line); padding-top: 14px; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
.result-thumb { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--soft); }
.result-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.result-head { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.result-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-ok { color: var(--ok); font-weight: 600; white-space: nowrap; }
.result-err { color: var(--accent-ink); font-weight: 600; }
.progress { height: 6px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs button { border: 0; background: var(--soft); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 32px; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.code-row { display: flex; gap: 6px; }
.code-row input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #FBFAF8;
  font: 13px/1.3 ui-monospace, Menlo, monospace; color: var(--ink); }
.result-foot { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.result-foot a { color: var(--muted); }

/* Kartlar */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; padding-top: 16px; padding-bottom: 64px; }
.card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card { display: flex; flex-direction: column; gap: 10px; }
.card .num { font-family: var(--display); font-weight: 800; color: var(--accent); }
.card h2 { font-size: 26px; }
.card p { margin: 0; color: var(--text-2); }
.panel.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.panel h1 { font-size: 32px; }

/* Koyu bant */
.band { background: var(--ink); color: #fff; }
.band-in { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.band-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #FF8A8F; }
.band h2 { font-size: clamp(36px, 5vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.band p { font-size: 18px; color: #C4C6CC; margin: 0; }
.band-demo { flex: 1 1 440px; min-width: 0; height: 320px; background: #2A2C33; border-radius: 20px; position: relative; overflow: hidden; }
.demo-shot { position: absolute; left: 18%; top: 18%; width: 56%; height: 48%; background: #8FA39A; border: 2px dashed #fff; border-radius: 4px; }
.demo-bar { position: absolute; left: 18%; top: calc(66% + 10px); display: flex; gap: 4px; background: #fff; color: var(--ink); border-radius: 10px; padding: 6px; }
.demo-bar span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; font-weight: 700; }
.demo-bar span:first-child { background: var(--soft); }
.demo-bar b { padding: 0 12px; display: grid; place-items: center; background: var(--accent); color: #fff; border-radius: 8px; font-size: 13px; }
.demo-toast { position: absolute; right: 20px; top: 20px; background: #fff; color: var(--ink); border-radius: 12px; padding: 10px 14px;
  font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.demo-toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

/* Bölümler ve ızgaralar */
.section { padding-top: 56px; padding-bottom: 56px; }
.section > h2 { font-size: 28px; margin: 40px 0 16px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 6px; }
.h-xl { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tile { text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; background: var(--soft); }
.tile-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.tile-meta span:first-child { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg a { text-decoration: none; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.seg a[aria-current] { background: var(--ink); color: #fff; }
.masonry { column-width: 260px; column-gap: 16px; }
.mcard { break-inside: avoid; display: block; margin-bottom: 16px; text-decoration: none; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden; }
.mcard img { width: 100%; height: auto; max-height: 560px; object-fit: cover; object-position: top; background: var(--soft); }
.mcard-meta { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; font-size: 14px; }
.mcard-meta b { font-size: 15px; }
.pager { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.empty { text-align: center; padding: 64px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* Görsel sayfası */
.detail { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding-top: 28px; padding-bottom: 64px; }
.detail-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.detail-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.stage { margin: 0; background: #1C1D22; border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.stage img { max-height: 80vh; width: auto; height: auto; border-radius: 6px; }
.stage figcaption { color: #C4C6CC; font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.report summary { list-style: none; }
.report summary::-webkit-details-marker { display: none; }
.report-form { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.detail-side .panel { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.detail-side h1 { font-size: 30px; font-weight: 800; overflow-wrap: anywhere; }
.detail-side h2 { font-size: 20px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.stats.wide { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 8px; }
.stats div { background: var(--bg); border-radius: 12px; padding: 12px 6px; display: flex; flex-direction: column; }
.stats b { font-size: 19px; }
.stats span { font-size: 12px; color: var(--muted); }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { text-decoration: none; font-size: 14px; font-weight: 600; border: 1px solid var(--line); padding: 9px 14px; border-radius: 999px; }
.code { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* Silme / yönetim */
.del-thumb { width: 200px; height: 150px; object-fit: cover; border-radius: 12px; }
.stack { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-row { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.admin-row img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; }
.admin-row .grow { flex: 1; min-width: 0; }
.admin-row form { display: flex; gap: 6px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.admin-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.admin-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }

.key-new { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; border-color: var(--ok); }
.key-form { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.key-form input { flex: 1 1 280px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 15px; }

/* Metin sayfaları */
.prose pre { background: var(--ink); color: #E8E6E1; padding: 16px; border-radius: 12px; overflow-x: auto; font: 13px/1.55 ui-monospace, Menlo, monospace; }
.prose code { font: 0.92em ui-monospace, Menlo, monospace; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose h1 { font-size: 40px; margin-bottom: 8px; }
.prose h2 { font-size: 22px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--text-2); }

.footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* Çerez onayı */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  box-shadow: 0 16px 40px -12px rgba(21, 22, 26, .3); }
.consent p { margin: 0; flex: 1 1 320px; font-size: 14px; color: var(--text-2); }
.consent-actions { display: flex; gap: 8px; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .topbar-in { gap: 14px; }
  .mainnav { gap: 14px; }
  .opts { grid-template-columns: minmax(0, 1fr); }
  .urlrow { flex-direction: column; }
  .uploader { padding: 16px; }
  .band-demo { height: 240px; }
}
