/* ===== Journi — mobil öncelikli sosyal ağ ===== */
:root {
  --brand: #6d28d9;
  --brand-weak: #ede9fe;
  --brand-ink: #4c1d95;
  --bg: #f4f4f7;
  --app: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f7fa;
  --fg: #16151a;
  --muted: #6b6a76;
  --faint: #9b9aa6;
  --line: #e9e8ef;
  --r-fayda: #0ea5a4;
  --r-kaydet: #f59e0b;
  --r-ilham: #ec4899;
  --ok: #16a34a;
  --danger: #dc2626;
  --shadow: 0 1px 2px rgba(20,18,30,.05), 0 8px 24px rgba(20,18,30,.06);
  --radius: 18px;
  --ff: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 500px;
  color-scheme: light;
}
html[data-theme="dark"] {
  --brand: #a78bfa; --brand-weak: #2a2140; --brand-ink: #c4b5fd;
  --bg: #0a0a0c; --app: #141318; --surface: #1b1a21; --surface-2: #232230;
  --fg: #f3f2f7; --muted: #a09faf; --faint: #74738a; --line: #2b2a36;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--ff); font-size: 14px; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* ---- App kabuğu ---- */
.app {
  max-width: var(--maxw); margin: 0 auto; min-height: 100%;
  background: var(--app); position: relative;
  display: flex; flex-direction: column;
  box-shadow: 0 0 60px rgba(0,0,0,.05);
}

/* ---- Üst çubuk ---- */
.appbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: color-mix(in srgb, var(--app) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
  padding: 12px max(16px, env(safe-area-inset-left,0px)) 12px max(16px, env(safe-area-inset-right,0px));
}
.appbar .logo { font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--brand); display: flex; align-items: center; gap: 7px; text-decoration: none; }
.appbar .logo .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-weak); }
.appbar h1 { font-size: 18px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.appbar .spacer { flex: 1; }
.iconbtn { width: 38px; height: 38px; border-radius: 12px; border: none; background: var(--surface-2); color: var(--fg); display: grid; place-items: center; cursor: pointer; position: relative; text-decoration: none; }
.iconbtn:hover { background: var(--line); }
.iconbtn .badge { position: absolute; top: 5px; right: 5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--r-ilham); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--app); }
.backbtn { width: 38px; height: 38px; border-radius: 12px; border: none; background: transparent; color: var(--fg); cursor: pointer; display: grid; place-items: center; margin-left: -6px; text-decoration: none; }

/* ---- E-posta doğrulama şeridi ---- */
.verify-banner {
  display: flex; align-items: center; gap: 10px;
  background: color-mix(in srgb, var(--r-kaydet) 16%, var(--app));
  border-bottom: 1px solid color-mix(in srgb, var(--r-kaydet) 35%, var(--line));
  color: var(--fg); font-size: 13px; font-weight: 600;
  padding: 10px max(16px, env(safe-area-inset-left,0px)) 10px max(16px, env(safe-area-inset-right,0px));
}
.verify-banner span { flex: 1; min-width: 0; }
.verify-banner button { border: none; background: var(--r-kaydet); color: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-weight: 700; font-size: 12px; cursor: pointer; white-space: nowrap; }

/* ---- İçerik alanı ---- */
.content {
  flex: 1;
  padding: 14px max(16px, env(safe-area-inset-left,0px)) 96px max(16px, env(safe-area-inset-right,0px));
}
.section-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); margin: 6px 2px 10px; }

/* ---- Aktif seri şeridi ---- */
.rail { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.ring { flex: 0 0 auto; width: 70px; text-align: center; cursor: pointer; text-decoration: none; }
.ring .circle { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 6px; background: var(--surface); position: relative; }
.ring .circle::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: conic-gradient(var(--brand) var(--p,40%), var(--line) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); }
.ring .emoji { font-size: 26px; }
.ring .name { font-size: 11px; color: var(--muted); line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ring.add .circle { background: var(--brand-weak); color: var(--brand); border: 1px dashed var(--brand); font-size: 24px; }
.ring.add .circle::before { display: none; }

/* ---- Feed kartı ---- */
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--brand-weak); display: grid; place-items: center; font-weight: 700; color: var(--brand); text-decoration: none; }
.avatar.sm { width: 32px; height: 32px; font-size: 13px; }
.avatar.lg { width: 86px; height: 86px; font-size: 34px; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.post-head .who { line-height: 1.25; min-width: 0; text-decoration: none; color: inherit; }
.post-head .who b { font-size: 14.5px; }
.post-head .who .time { font-size: 12px; color: var(--faint); }
.post-head .cat { margin-left: auto; font-size: 20px; }
.path { padding: 2px 14px 8px; font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.path a { color: var(--brand); font-weight: 700; text-decoration: none; }
.path a:hover { text-decoration: underline; }
.path .sep { color: var(--faint); }
.post-body { padding: 0 14px 12px; font-size: 14.5px; line-height: 1.5; color: var(--fg); white-space: pre-wrap; word-wrap: break-word; }
.post-media { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--brand-weak), var(--surface-2)); display: grid; place-items: center; color: var(--brand); font-size: 40px; position: relative; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-media .mtag { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 999px; }

/* ---- Medya carousel ---- */
.media-carousel { position: relative; background: #000; }
.mc-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mc-track::-webkit-scrollbar { display: none; }
.mc-slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4/3; display: grid; place-items: center; background: #000; }
.mc-slide img { width: 100%; height: 100%; object-fit: cover; }
.mc-slide video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.mc-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 100%; background: var(--surface-2); color: var(--brand); text-decoration: none; font-weight: 700; font-size: 14px; }
.mc-card svg { color: var(--fg); }
.mc-card .mc-ic { font-size: 40px; }
.mc-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.mc-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); }
.mc-dots i.on { background: #fff; }
.mc-count { position: absolute; right: 10px; top: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }

/* ---- Tepkiler ---- */
.reactions { display: flex; align-items: center; gap: 4px; padding: 8px 10px; border-top: 1px solid var(--line); }
.react { display: flex; align-items: center; gap: 6px; border: none; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; padding: 7px 9px; border-radius: 999px; cursor: pointer; }
.react:hover { background: var(--surface-2); }
.react .ic { font-size: 16px; filter: grayscale(1); opacity: .7; transition: .15s; }
.react.on { color: var(--fg); background: var(--surface-2); }
.react.on.fayda { color: var(--r-fayda); } .react.on.kaydet { color: var(--r-kaydet); } .react.on.ilham { color: var(--r-ilham); }
.react.on .ic { filter: none; opacity: 1; transform: scale(1.12); }
.react.cmt { margin-left: auto; }

/* ---- Yorumlar ---- */
.comments { border-top: 1px solid var(--line); padding: 10px 14px; display: none; }
.comments.open { display: block; }
.comment { font-size: 13.5px; line-height: 1.45; padding: 6px 0; }
.comment b { color: var(--fg); }
.comment-form { display: flex; gap: 8px; margin-top: 8px; }
.comment-form input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); border-radius: 999px; padding: 9px 14px; font: inherit; font-size: 13.5px; outline: none; }
.comment-form input:focus { border-color: var(--brand); }
.comment-form button { border: none; background: var(--brand); color: #fff; border-radius: 999px; padding: 0 16px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }

/* ---- Keşfet ---- */
.searchbar { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; color: var(--faint); margin-bottom: 14px; }
.searchbar input { border: none; background: transparent; color: var(--fg); font: inherit; font-size: 14.5px; flex: 1; min-width: 0; outline: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer; text-decoration: none; }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.scard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; text-decoration: none; color: inherit; display: block; }
.scard .cover { aspect-ratio: 16/10; background: var(--cv, linear-gradient(135deg,#6d28d9,#ec4899)); display: grid; place-items: center; font-size: 30px; }
.scard .meta { padding: 10px 12px 12px; }
.scard .meta b { font-size: 14px; display: block; line-height: 1.25; margin-bottom: 4px; }
.scard .meta .by { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.scard .bar { height: 5px; border-radius: 999px; background: var(--line); margin-top: 9px; overflow: hidden; }
.scard .bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }

/* ---- Seri detay ---- */
.cover-head { margin: -14px calc(-1 * max(16px, env(safe-area-inset-left,0px))) 0; padding: 20px 16px 18px; background: var(--cv, linear-gradient(135deg,#6d28d9,#4c1d95)); color: #fff; }
.cover-head .ctop { display: flex; align-items: center; gap: 8px; font-size: 13px; opacity: .92; }
.cover-head h2 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 6px; text-wrap: balance; }
.cover-head .sub { font-size: 13.5px; opacity: .92; line-height: 1.45; }
.cover-head .stats-row { display: flex; gap: 18px; margin-top: 16px; }
.cover-head .stat b { font-size: 18px; font-weight: 800; display: block; }
.cover-head .stat span { font-size: 11px; opacity: .85; text-transform: uppercase; letter-spacing: .04em; }
.progress-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 16px 0; display: flex; align-items: center; gap: 14px; }
.pring { width: 58px; height: 58px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: conic-gradient(var(--brand) var(--p,45%), var(--line) 0); position: relative; color: var(--fg); }
.pring::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.pring span { position: relative; z-index: 1; }
.modbar { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; scrollbar-width: none; }
.modbar::-webkit-scrollbar { display: none; }
.mod { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.mod.on { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); background: var(--brand-weak); }
.chapter { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; background: var(--surface); }
.chapter .ch-head { display: flex; align-items: center; gap: 10px; padding: 14px; cursor: pointer; }
.chapter .ch-no { width: 28px; height: 28px; border-radius: 9px; background: var(--brand-weak); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: 0 0 auto; }
.chapter .ch-head b { font-size: 15px; }
.chapter .ch-head .meta { font-size: 12px; color: var(--faint); }
.chapter .ch-head .chev { margin-left: auto; color: var(--faint); transition: transform .2s; }
.chapter.open .chev { transform: rotate(90deg); }
.chapter .ch-body { padding: 0 14px 14px; display: none; }
.chapter.open .ch-body { display: block; }
.mini-post { border-top: 1px solid var(--line); padding: 12px 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.mini-post .mp-time { font-size: 12px; color: var(--faint); margin-bottom: 4px; }

/* ---- Modüller ---- */
.mod-form { display: inline; }
.mod-btn { cursor: pointer; }
.mod.soon { opacity: .45; }

.roadmap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.rm-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.rm-item:last-child { border-bottom: none; }
.rm-dot { width: 24px; height: 24px; border-radius: 50%; flex: 0 0 auto; border: 2px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; color: #fff; font-size: 13px; padding: 0; }
.rm-dot.planned { border-color: var(--line); }
.rm-dot.inprogress { border-color: var(--r-kaydet); background: var(--r-kaydet); }
.rm-dot.done { border-color: var(--ok); background: var(--ok); }
.rm-title { flex: 1; font-size: 14.5px; min-width: 0; }
.rm-item.done .rm-title { color: var(--muted); text-decoration: line-through; }
.rm-status { font-size: 11.5px; font-weight: 700; color: var(--faint); }
.rm-del, .cost-del { border: none; background: transparent; color: var(--faint); cursor: pointer; font-size: 16px; padding: 4px; }
.rm-add, .cost-add { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.rm-add input, .cost-add input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 13.5px; outline: none; }
.rm-add button, .cost-add button { border: none; background: var(--brand); color: #fff; border-radius: 10px; padding: 0 14px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }

.cost { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.cost-row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.cost-row .cl { flex: 1; min-width: 0; }
.cost-row .cv { font-weight: 700; font-variant-numeric: tabular-nums; }
.cost-row.total { background: var(--surface-2); font-weight: 800; }
.cost-row.total .cv { color: var(--brand); }
.cost-add { width: 100%; }
.cost-add .lbl { flex: 2; } .cost-add .amt { flex: 1; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.stat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.stat-tile b { font-size: 22px; font-weight: 800; display: block; font-variant-numeric: tabular-nums; }
.stat-tile span { font-size: 12px; color: var(--muted); }

/* Sürümler + Referanslar (liste) */
.vlist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.vrow { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.vrow:last-child { border-bottom: none; }
.vtag { flex: 0 0 auto; font-size: 12px; font-weight: 800; color: var(--brand); background: var(--brand-weak); border-radius: 8px; padding: 4px 9px; }
.vbody { flex: 1; min-width: 0; font-size: 14px; }
.vnote { line-height: 1.4; }
.vtime { font-size: 11.5px; color: var(--faint); margin-top: 3px; }

/* Karar günlüğü */
.dlist { margin-bottom: 16px; }
.dcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; margin-bottom: 10px; }
.dhead { display: flex; align-items: flex-start; gap: 10px; }
.dhead b { flex: 1; font-size: 14.5px; }
.drat { font-size: 13.5px; color: var(--muted); line-height: 1.45; margin-top: 5px; }
.dout { font-size: 13px; font-weight: 700; color: var(--ok); margin-top: 6px; }
.dcard-add { background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; padding: 13px 14px; }

/* Öncesi/Sonrası */
.ba-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.ba-compare { position: relative; aspect-ratio: 4/3; overflow: hidden; user-select: none; }
.ba-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; overflow: hidden; z-index: 1; }
.ba-before img { width: 100vw; max-width: var(--maxw); }
.ba-divider { position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; z-index: 2; transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(0,0,0,.2); pointer-events: none; }
.ba-divider::after { content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 30px; height: 30px; background: #fff; color: #333; border-radius: 50%; display: grid; place-items: center; font-size: 14px; }
.ba-tag { position: absolute; top: 10px; z-index: 3; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.ba-tagL { left: 10px; } .ba-tagR { right: 10px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-foot { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13.5px; }
.ba-foot span { flex: 1; }
.ba-add { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }
.ba-add-row { display: flex; gap: 10px; }
.ba-pick { flex: 1; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px 8px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.ba-pick.set { color: var(--ok); border-color: var(--ok); }

/* Dosya Merkezi */
.file-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.file-card { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-decoration: none; color: var(--fg); }
.file-card .fic { font-size: 22px; flex: 0 0 auto; }
.file-card .fname { font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Profil ---- */
.profile-head { text-align: center; padding: 8px 0 4px; }
.profile-head .avatar.lg { margin: 0 auto 10px; border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--brand); }
.profile-head h2 { font-size: 20px; margin: 0; }
.profile-head .handle { color: var(--muted); font-size: 13.5px; }
.profile-head .bio { font-size: 14px; color: var(--fg); max-width: 320px; margin: 10px auto 0; line-height: 1.5; }
.pstats { display: flex; justify-content: center; gap: 28px; margin: 16px 0; }
.pstats .st { text-align: center; } .pstats .st b { font-size: 18px; display: block; } .pstats .st span { font-size: 12px; color: var(--muted); }
.badges { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.badges::-webkit-scrollbar { display: none; }
.badge-item { flex: 0 0 auto; width: 72px; text-align: center; }
.badge-item .bz { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; margin: 0 auto 6px; background: var(--brand-weak); }
.badge-item.lock .bz { background: var(--surface-2); filter: grayscale(1); opacity: .5; }
.badge-item small { font-size: 10.5px; color: var(--muted); line-height: 1.2; display: block; }
.ptabs { display: flex; gap: 4px; background: var(--surface-2); border-radius: 12px; padding: 4px; margin: 4px 0 14px; }
.ptabs a, .ptabs button { flex: 1; border: none; background: transparent; font: inherit; font-weight: 700; font-size: 13.5px; color: var(--muted); padding: 9px; border-radius: 9px; cursor: pointer; text-align: center; text-decoration: none; }
.ptabs a.on, .ptabs button.on { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }

/* ---- Bildirim ---- */
.notif { display: flex; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.notif .nic { width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto; display: grid; place-items: center; font-size: 18px; background: var(--surface-2); }
.notif .nbody { font-size: 14px; line-height: 1.4; } .notif .nbody .t { color: var(--faint); font-size: 12px; margin-top: 3px; }
.notif.unread { background: var(--brand-weak); margin: 0 calc(-1 * max(16px, env(safe-area-inset-left,0px))); padding: 13px 16px; border-bottom-color: transparent; }

/* ---- Formlar / genel ---- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.input, textarea.input {
  width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--fg);
  border-radius: 13px; padding: 13px 14px; font: inherit; font-size: 15px; outline: none;
}
.input:focus, textarea.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-weak); }
textarea.input { resize: vertical; min-height: 120px; line-height: 1.5; }
.btn { border: none; border-radius: 13px; font: inherit; font-weight: 700; font-size: 15px; padding: 13px 16px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: var(--surface-2); color: var(--fg); border: 1px solid var(--line); }
.btn.block { width: 100%; }
.btn.danger { background: var(--danger); color: #fff; }
.val-err, .field .text-danger, span.field-validation-error { color: var(--danger); font-size: 12.5px; display: block; margin-top: 5px; }
.form-error { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--line)); color: var(--danger); border-radius: 12px; padding: 11px 14px; font-size: 13.5px; margin-bottom: 14px; }

.add-row { display: flex; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.add-row .ab { flex: 1; min-width: 90px; display: flex; flex-direction: column; align-items: center; gap: 5px; background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; padding: 14px 8px; cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 600; }
.add-row .ab .i { font-size: 22px; }
.attach-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.attach-preview:empty { display: none; }
.att-chip { position: relative; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; }
.att-chip img { width: 100%; height: 100%; object-fit: cover; }
.att-chip .ic { font-size: 28px; }
.att-chip .att-x { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; border: none; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; cursor: pointer; display: grid; place-items: center; padding: 0; }

.empty { text-align: center; color: var(--faint); padding: 40px 20px; }
.empty .e { font-size: 42px; margin-bottom: 10px; }
.note { font-size: 11.5px; color: var(--faint); text-align: center; padding: 12px; }

/* ---- Alt tab bar ---- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  max-width: var(--maxw); margin: 0 auto;
  display: flex; background: color-mix(in srgb, var(--app) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
}
.tab { flex: 1; border: none; background: transparent; color: var(--faint); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; font: inherit; font-size: 10.5px; font-weight: 600; padding: 4px; text-decoration: none; }
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--brand); }
.tab.fab .fabc { width: 46px; height: 46px; margin-top: -14px; border-radius: 16px; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 45%, transparent); }
.tab.fab .fabc svg { width: 26px; height: 26px; }

/* ---- Flash / toast ---- */
.flash { position: fixed; left: 50%; transform: translateX(-50%); bottom: 90px; background: var(--fg); color: var(--app); padding: 11px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600; z-index: 60; opacity: 0; transition: opacity .25s; pointer-events: none; max-width: 90%; }
.flash.show { opacity: 1; }

/* ---- Auth ekranı ---- */
.auth-wrap { max-width: 420px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 40px max(20px, env(safe-area-inset-left,0px)) 40px max(20px, env(safe-area-inset-right,0px)); }
.auth-brand { text-align: center; margin-bottom: 28px; }
.auth-brand .mark { font-size: 34px; font-weight: 800; color: var(--brand); letter-spacing: -.03em; }
.auth-brand .tag { color: var(--muted); font-size: 14px; margin-top: 4px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px 20px; box-shadow: var(--shadow); }
.auth-card h2 { margin: 0 0 4px; font-size: 20px; }
.auth-card .lead { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-foot a { color: var(--brand); font-weight: 700; text-decoration: none; }
