@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Amiri:wght@700&display=swap');

:root {
  --ink: #0e3b33;          /* kenar çubuğu */
  --ink-2: #134a40;
  --bg: #f3f5f4;
  --card: #ffffff;
  --line: #dde3e0;
  --line-2: #eaeeec;
  --text: #15201d;
  --muted: #5d6b67;
  --primary: #0a5545;
  --primary-soft: #e3efeb;
  --on-primary: #ffffff;
  --gold: #b88a2e;
  --gold-soft: #f6eedb;
  --danger: #b23b3b;
  --danger-soft: #f8e4e4;
  --info: #2f5f8a;
  --info-soft: #e4edf6;
  --shadow: 0 1px 2px rgba(14, 59, 51, 0.06), 0 6px 20px rgba(14, 59, 51, 0.05);
  --radius: 10px;
  --radius-s: 7px;
  --font: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ink: #0a1f1b;
    --ink-2: #10302a;
    --bg: #0f1715;
    --card: #16211e;
    --line: #26332f;
    --line-2: #1d2926;
    --text: #e6ece9;
    --muted: #9aaaa5;
    --primary: #4fb79a;
    --primary-soft: #183a32;
    --on-primary: #0b1a16;
    --gold: #d8ae55;
    --gold-soft: #33291a;
    --danger: #e07a7a;
    --danger-soft: #3a2020;
    --info: #7fb0dc;
    --info-soft: #1c2b3a;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --ink: #0a1f1b;
  --ink-2: #10302a;
  --bg: #0f1715;
  --card: #16211e;
  --line: #26332f;
  --line-2: #1d2926;
  --text: #e6ece9;
  --muted: #9aaaa5;
  --primary: #4fb79a;
  --primary-soft: #183a32;
  --on-primary: #0b1a16;
  --gold: #d8ae55;
  --gold-soft: #33291a;
  --danger: #e07a7a;
  --danger-soft: #3a2020;
  --info: #7fb0dc;
  --info-soft: #1c2b3a;
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--font);
  font-feature-settings: 'tnum' 1;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- iskelet ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; overflow: auto;
  background: var(--ink); color: #dce9e4;
  display: flex; flex-direction: column;
}
.brand { position: relative; padding: 22px 20px 18px; overflow: hidden; }
.brand svg.girih { position: absolute; right: -38px; top: -34px; width: 150px; height: 150px; opacity: 0.22; }
.brand .ar { font-family: 'Amiri', serif; font-size: 34px; line-height: 1.1; color: var(--gold); direction: rtl; display: block; }
.brand .name { font-weight: 700; font-size: 15px; color: #fff; margin-top: 4px; }
.brand .env { font-size: 12px; color: #9fbfb5; }
.nav { padding: 6px 10px 16px; display: flex; flex-direction: column; gap: 1px; flex: 1; }
.nav .group { font-size: 12px; color: #86a99f; padding: 14px 10px 4px; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-s);
  color: #dce9e4; text-decoration: none; font-weight: 500;
}
.nav a svg { width: 18px; height: 18px; flex: none; opacity: 0.85; }
.nav a:hover { background: var(--ink-2); }
.nav a[aria-current='page'] { background: rgba(255, 255, 255, 0.09); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.nav .count { margin-left: auto; font-size: 12px; color: #9fbfb5; }
.side-foot { padding: 14px 18px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 13px; display: flex; align-items: center; gap: 10px; }
.side-foot .who { flex: 1; min-width: 0; }
.side-foot .who b { display: block; color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot .who span { color: #9fbfb5; font-size: 12px; }
.side-foot button { background: none; border: 1px solid rgba(255,255,255,0.18); color: #dce9e4; border-radius: var(--radius-s); padding: 5px 9px; cursor: pointer; }

.main { min-width: 0; }
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 28px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-2);
}
.top h1 { font-size: 20px; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
.top .sub { color: var(--muted); font-size: 13px; }
.top .grow { flex: 1; }
.btn.menu-btn { display: none; }
.content { padding: 24px 28px 64px; max-width: 1280px; }

/* ---------- ortak öğeler ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 18px 20px; }
.card h2 { font-size: 15px; margin: 0 0 2px; font-weight: 700; }
.card .hint { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.grid { display: grid; gap: 16px; }
.g-kpi { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1320px) { .g-kpi { grid-template-columns: repeat(3, 1fr); } }
.g-2 { grid-template-columns: 2fr 1fr; }
.g-half { grid-template-columns: 1fr 1fr; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12.5px; }
.ar-text { font-family: 'Amiri', serif; direction: rtl; font-size: 18px; line-height: 1.9; }

.kpi { padding: 16px 18px; }
.kpi .label { color: var(--muted); font-size: 13px; }
.kpi .value { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-top: 4px; }
.kpi .foot { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.kpi.premium { background: linear-gradient(0deg, var(--gold-soft), var(--gold-soft)); border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.kpi.premium .value { color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: var(--card); cursor: pointer;
  font-weight: 600; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.danger { color: var(--danger); }
.btn.danger.solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn.icon-btn { width: 32px; height: 32px; padding: 0; }

.input, select.input, textarea.input {
  width: 100%; height: 36px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--card);
}
textarea.input { height: auto; min-height: 76px; padding: 9px 11px; resize: vertical; line-height: 1.5; }
textarea.input.ar-text { font-size: 18px; }
.input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-soft); }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-size: 13px; color: var(--muted); font-weight: 500; }
.field .help { font-size: 12px; color: var(--muted); }
.form { display: grid; gap: 14px; }
.form.cols { grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.search { position: relative; }
.search svg { position: absolute; left: 10px; top: 10px; width: 16px; height: 16px; color: var(--muted); }
.search .input { padding-left: 32px; min-width: 260px; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 38px; height: 22px; border-radius: 11px; background: var(--line); position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--gold); outline-offset: 2px; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--line);
  background: var(--card); cursor: pointer; font-weight: 500; font-size: 13px;
}
.chip[aria-pressed='true'] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--line-2); color: var(--muted); }
.badge.green { background: var(--primary-soft); color: var(--primary); }
.badge.gold { background: var(--gold-soft); color: var(--gold); }
.badge.red { background: var(--danger-soft); color: var(--danger); }
.badge.blue { background: var(--info-soft); color: var(--info); }

/* ---------- tablo ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
th { font-size: 12.5px; color: var(--muted); font-weight: 600; background: var(--card); position: sticky; top: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--primary-soft) 45%, transparent); }
tbody tr.clickable { cursor: pointer; }
td.num, th.num { text-align: right; }
td .strong { font-weight: 600; }
.cell-user { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; background: var(--primary-soft); color: var(--primary); }
.avatar.anon { background: var(--line-2); color: var(--muted); }
.table-foot { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--muted); font-size: 13px; }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }

/* ---------- grafik ---------- */
.chart { width: 100%; height: 280px; display: block; }
.chart .grid-line { stroke: var(--line-2); }
.chart .axis { fill: var(--muted); font-size: 11px; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 46px; gap: 10px; align-items: center; font-size: 13px; }
.bar-row .bar { height: 10px; background: var(--line-2); border-radius: 5px; overflow: hidden; }
.bar-row .bar i { display: block; height: 100%; border-radius: 5px; }

/* ---------- akış ---------- */
.feed { display: flex; flex-direction: column; }
.feed .item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.feed .item:last-child { border-bottom: 0; }
.feed .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; }
.feed .when { margin-left: auto; color: var(--muted); white-space: nowrap; font-size: 12px; }

/* ---------- çekmece / pencere ---------- */
.scrim { position: fixed; inset: 0; background: rgba(8, 20, 17, 0.42); z-index: 40; animation: fade .15s ease; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); z-index: 41;
  background: var(--bg); border-left: 1px solid var(--line); display: flex; flex-direction: column;
  animation: slide .18s ease;
}
.drawer header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--card); }
.drawer header h3 { margin: 0; font-size: 17px; }
.drawer .body { padding: 18px 20px 40px; overflow: auto; display: flex; flex-direction: column; gap: 16px; }
.modal {
  position: fixed; z-index: 51; left: 50%; top: 8vh; transform: translateX(-50%);
  width: min(560px, calc(100vw - 32px)); max-height: 84vh; overflow: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.25);
  animation: pop .16s ease;
}
.modal.wide { width: min(860px, calc(100vw - 32px)); }
.modal header { padding: 18px 20px 6px; }
.modal header h3 { margin: 0; font-size: 17px; }
.modal header p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.modal .body { padding: 12px 20px; }
.modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line-2); position: sticky; bottom: 0; background: var(--card); }
.scrim.top { z-index: 50; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
@keyframes pop { from { transform: translate(-50%, 8px); opacity: 0; } }

.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }

.toast-wrap { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 500; box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: pop2 .18s ease; }
.toast.err { background: var(--danger); }
@keyframes pop2 { from { transform: translateY(8px); opacity: 0; } }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a[aria-current='page'] { color: var(--text); border-color: var(--gold); }

.code-chip { font-family: ui-monospace, Menlo, monospace; font-weight: 600; letter-spacing: 0.04em; }
.lines-editor { display: flex; flex-direction: column; gap: 10px; }
.line-pair { display: grid; grid-template-columns: 1fr 1fr 32px; gap: 8px; align-items: start; }

.phone { width: 270px; border-radius: 26px; background: #1a2421; padding: 14px; color: #fff; }
.phone .notif { background: rgba(255,255,255,0.12); border-radius: 14px; padding: 10px 12px; display: flex; gap: 10px; }
.phone .notif .ic { width: 28px; height: 28px; border-radius: 7px; background: var(--primary); display: grid; place-items: center; font-family: 'Amiri', serif; color: #f3dda0; font-size: 14px; }
.phone .time { text-align: center; font-size: 40px; font-weight: 300; margin: 6px 0 14px; }

/* ---------- giriş ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth .art { background: var(--ink); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px; color: #dce9e4; }
.auth .art svg { position: absolute; inset: -10% -20% auto auto; width: 120%; opacity: 0.16; }
.auth .art .ar { font-family: 'Amiri', serif; color: var(--gold); font-size: 76px; line-height: 1; direction: rtl; }
.auth .art p { max-width: 380px; font-size: 15px; color: #a9c6bd; }
.auth .panel { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth form { width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; }
.auth h1 { font-size: 24px; margin: 0; }
.auth .err { color: var(--danger); font-size: 13px; min-height: 18px; }
.auth .alt { font-size: 13px; color: var(--muted); }
.auth details { font-size: 13px; color: var(--muted); }
.auth details summary { cursor: pointer; }

.demo-flag { background: var(--gold); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 28px; text-align: center; }

/* ---------- mobil ---------- */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 30; width: 260px; transform: translateX(-100%); transition: transform .2s ease; }
  .side.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.35); }
  .btn.menu-btn { display: inline-flex; }
  .top { flex-wrap: wrap; }
  .top .grow { display: none; }
  #ptools { width: 100%; }
  .g-kpi { grid-template-columns: 1fr 1fr; }
  .top { padding: 12px 16px; }
  .content { padding: 16px 16px 56px; }
  .g-2, .g-half, .form.cols { grid-template-columns: 1fr; }
  .search .input { min-width: 0; width: 100%; }
  .auth { grid-template-columns: 1fr; }
  .auth .art { display: none; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .line-pair { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- ücretli / ücretsiz anahtarları ---------- */
.feat-group { margin-top: 14px; }
.feat-head { font-size: 12.5px; font-weight: 700; color: var(--muted); padding-bottom: 4px; border-bottom: 1px solid var(--line-2); }
.feat-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.feat-row:last-child { border-bottom: 0; }
.feat-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.feat-row.is-paid .feat-text b::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-left: 8px; vertical-align: 2px; }
.seg-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: var(--bg); flex: none; }
.seg-toggle button { border: 0; background: transparent; height: 28px; padding: 0 12px; border-radius: 6px; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; }
.seg-toggle button[aria-pressed='true'] { background: var(--card); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.seg-toggle button.paid[aria-pressed='true'] { background: var(--gold); color: #fff; }

/* ---------- Ehl-i Sünnet / Ca'ferî arayüz seçici ---------- */
.school-sw { display: flex; margin: 0 16px 6px; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, 0.07); gap: 3px; }
.school-sw button { flex: 1; border: 0; background: transparent; color: #b9d2ca; font: inherit; font-size: 13px; font-weight: 600; height: 32px; border-radius: 8px; cursor: pointer; }
.school-sw button[aria-pressed='true'] { background: var(--gold); color: #fff; }

/* ---------- Günün hadisi planı (sürükle-bırak) ---------- */
.plan-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; margin-top: 10px; }
.plan-day { position: relative; border: 1.5px dashed var(--line); border-radius: var(--radius-s); padding: 8px 10px; min-height: 74px; display: flex; flex-direction: column; gap: 2px; transition: background .12s, border-color .12s; }
.plan-day b { font-size: 13px; line-height: 1.3; }
.plan-day.is-set { border-style: solid; border-color: var(--gold); background: var(--gold-soft); }
.plan-day.drag-over { border-color: var(--primary); background: var(--primary-soft); }
.plan-day .icon-btn { position: absolute; top: 2px; right: 2px; }
tr.draggable { cursor: grab; }
tr.draggable:active { cursor: grabbing; }

/* ---------- Menü: ana başlıklar ve alt başlıklar ---------- */
.nav-search { position: relative; margin: 4px 16px 6px; }
.nav-search svg { position: absolute; left: 10px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: #86a99f; pointer-events: none; }
.nav-search input { width: 100%; height: 34px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.06); color: #fff; font: inherit; font-size: 13px; padding: 0 10px 0 32px; }
.nav-search input::placeholder { color: #86a99f; }
.nav-search input:focus { outline: none; border-color: var(--gold); background: rgba(255, 255, 255, 0.1); }
.nav { overflow-y: auto; }
.nav-group { margin-top: 2px; }
.nav-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: var(--radius-s); background: transparent; color: #f1f7f4; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; text-align: left; }
.nav-head:hover { background: var(--ink-2); }
.nav-head svg { width: 18px; height: 18px; flex: none; opacity: 0.9; }
.nav-head .chev { margin-left: auto; display: flex; transition: transform .18s ease; opacity: 0.7; }
.nav-head .chev svg { width: 15px; height: 15px; }
.nav-group.open .nav-head .chev { transform: rotate(90deg); }
.nav-items { display: none; padding: 2px 0 6px 14px; margin-left: 9px; border-left: 1px solid rgba(255, 255, 255, 0.1); }
.nav-group.open .nav-items { display: flex; flex-direction: column; gap: 1px; }
.nav-items a { padding: 7px 10px; font-size: 14px; }
.nav-items a svg { width: 16px; height: 16px; }
.nav a .ps { margin-left: auto; font-size: 10px; font-weight: 800; width: 18px; height: 18px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: rgba(216, 174, 85, 0.22); color: var(--gold); }

/* Ayar alt sayfaları: tek sütun, okunaklı genişlik */
.settings-col { max-width: 780px; display: flex; flex-direction: column; gap: 16px; }

/* ---------- Mağaza görselleri ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gimg { position: relative; margin: 0; border-radius: var(--radius-s); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1; background: var(--bg); }
.gimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gimg.is-cover { border: 2px solid var(--gold); }
.gbadge { position: absolute; top: 6px; left: 6px; background: var(--gold); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.gtools { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 4px; justify-content: flex-end; padding: 6px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.55)); opacity: 0; transition: opacity .15s; }
.gimg:hover .gtools, .gimg:focus-within .gtools { opacity: 1; }
@media (hover: none) { .gtools { opacity: 1; } }
.gadd { aspect-ratio: 1; border: 1.5px dashed var(--line); border-radius: var(--radius-s); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 10px; cursor: pointer; color: var(--primary); font-weight: 700; }
.gadd:hover { background: var(--primary-soft); border-color: var(--primary); }
.gadd svg { width: 26px; height: 26px; }
.gadd.busy { opacity: 0.6; pointer-events: none; }
.gadd.busy span:first-of-type::after { content: ' …'; }
.prow { display: flex; align-items: center; gap: 12px; }
.pthumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; border: 1px solid var(--line); }
.pemoji { display: inline-flex; align-items: center; justify-content: center; font-size: 24px; background: var(--primary-soft); }

/* ---------- Hangi arayüz düzenleniyor ---------- */
.school-strip { margin: 0 0 14px; padding: 9px 14px; border-radius: var(--radius-s); font-size: 13px; border-left: 4px solid; }
.school-strip.sunni { background: rgba(37, 99, 235, 0.09); border-color: #2563eb; }
.school-strip.caferi { background: var(--primary-soft); border-color: var(--primary); }
.school-strip.both { background: var(--gold-soft); border-color: var(--gold); }
