/*!
 * ELİT PASTACILAR — Pastacılar için mesleki sosyal platform
 * Kod yazarı : SEZGİNSOFT
 * Telefon    : +905444123581
 * E-posta    : admin@sezginsoft.com
 * Telif © SEZGİNSOFT. Tüm hakları saklıdır.
 */
/* =========================================================
   ELİT PASTACILAR — Arayüz stilleri
   Renkler admin panelinden (Görünüm) değiştirilebilir: --brand, --accent
   ========================================================= */
:root {
  --brand: #b5446e;
  --brand-600: color-mix(in srgb, var(--brand) 85%, #000);
  --brand-50: color-mix(in srgb, var(--brand) 8%, var(--surface));
  --brand-100: color-mix(in srgb, var(--brand) 16%, var(--surface));
  --accent: #e9a23b;
  --accent-50: color-mix(in srgb, var(--accent) 14%, var(--surface));
  --bg: #faf6f1;
  --surface: #ffffff;
  --surface-2: #f4eee7;
  --surface-3: #fcfaf7;
  --on-brand: #ffffff;
  --footer-bg: #241b20;
  --text: #2a2025;
  --muted: #7a6b72;
  --line: #ece3da;
  --success: #3f8f5a;
  --success-50: #e8f4ec;
  --danger: #c8443c;
  --danger-50: #fbeaea;
  --warning: #b9801c;
  --warning-50: #fdf3e2;
  --info: #3d76a8;
  --info-50: #e8f0f8;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(60, 30, 40, .04), 0 4px 16px rgba(60, 30, 40, .06);
  --shadow-lg: 0 12px 40px rgba(60, 30, 40, .14);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.55 var(--font); color: var(--text); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 3.4vw, 36px); }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.ic { flex: none; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px }
.mb-0 { margin-bottom: 0 } .mb-1 { margin-bottom: 8px } .mb-2 { margin-bottom: 16px } .mb-3 { margin-bottom: 24px }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 16px; }

/* ---------- Düzen ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container-sm { max-width: 760px; }
.page { padding: 24px 0 64px; }
.layout-3 { display: grid; grid-template-columns: 250px minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.layout-side { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.sticky { position: sticky; top: calc(var(--header-h) + 16px);
  /* Ekrandan uzun yan sütunların alt kısmı erişilemez kalmasın: sütun kendi içinde kayar */
  max-height: calc(100vh - var(--header-h) - 32px); max-height: calc(100dvh - var(--header-h) - 32px); overflow-y: auto; scrollbar-width: thin; }
.sticky:not(.card) { padding: 2px 6px 10px; margin: -2px -6px -10px; } /* kart gölgeleri kaydırma alanında kırpılmasın */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1080px) {
  .layout-3 { grid-template-columns: minmax(0, 1fr) 280px; }
  .layout-3 > .col-left { display: none; }
}
@media (max-width: 860px) {
  /* satır içi stil ile verilen sütun genişliklerini de mobilde tek sütuna indir */
  .layout-3, .layout-2, .layout-side { grid-template-columns: minmax(0, 1fr) !important; }
  .layout-3 > .col-right, .layout-2 > .col-right { order: 2; }
  .sticky { position: static; max-height: none; overflow: visible; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .grid-4.keep-2, .grid-3.keep-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  /* satır içi sütun ayarlı form satırları ve tarif gövdesi (malzemeler | yapılış) telefonda tek sütun:
     satır içi stil önceki kuralı eziyordu (üyeler filtresinde "Tü" diye kesilen seçimler) */
  .form-row[style], .form-row-3[style], #recipe-body { grid-template-columns: minmax(0, 1fr) !important; }
}

/* ---------- Üst menü ---------- */
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header .container { height: var(--header-h); display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--text); white-space: nowrap; letter-spacing: .01em; }
.logo img { height: 38px; width: auto; }
.logo-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--on-brand); background: linear-gradient(135deg, var(--brand), var(--accent)); box-shadow: 0 4px 10px color-mix(in srgb, var(--brand) 30%, transparent); }
.logo span b { color: var(--brand); font-weight: 700; }
.search-box { flex: 1; max-width: 380px; position: relative; }
.search-box input { width: 100%; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); padding: 0 16px 0 40px; font: inherit; color: var(--text); }
.search-box input:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 3px var(--brand-100); }
.search-box .ic { position: absolute; left: 14px; top: 11px; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 14px; position: relative; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--brand); background: var(--brand-50); }
.nav-icon { width: 40px; height: 40px; padding: 0; justify-content: center; }
.badge-dot { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--surface); }
.user-menu { position: relative; }
.user-menu > button { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px; border-radius: 999px; cursor: pointer; font: inherit; color: var(--text); }
.user-menu > button:hover { background: var(--surface-2); }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 60;
  /* Ekrana sığmayan uzun menüler kesilmez, kendi içinde kayar (kesin yükseklik app.js'de ayarlanır) */
  max-height: calc(100vh - var(--header-h) - 24px); max-height: calc(100dvh - var(--header-h) - 24px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.dropdown.open { display: block; animation: pop .15s ease-out; }.dropdown a, .dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 9px; color: var(--text); background: none; border: 0; font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-2); color: var(--brand); }
.dropdown hr { margin: 6px 0; }
.dropdown .head { padding: 10px 12px; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) } to { opacity: 1; transform: none } }
.menu-toggle { display: none; }
.subnav { background: var(--surface); border-bottom: 1px solid var(--line); }
.subnav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; height: 46px; align-items: center; }
.subnav .container::-webkit-scrollbar { display: none; }

@media (max-width: 960px) {
  .nav .nav-text { display: none; }
  .nav-link { padding: 8px 10px; }
}
@media (max-width: 720px) {
  .search-box { display: none; }
  .nav .hide-mobile { display: none; }
  .logo span { font-size: 17px; }
}

/* Mobil alt menü */
.bottom-nav { display: none; }
@media (max-width: 720px) {
  .bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); padding: 4px 8px; border-radius: 10px; position: relative; }
  .bottom-nav a.active { color: var(--brand); }
  .bottom-nav .plus { width: 44px; height: 44px; border-radius: 14px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; margin-top: -2px; }
  body { padding-bottom: 72px; }
}

/* ---------- Kartlar ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-body { padding: 18px; }
.card-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-head h3, .card-head h2 { margin: 0; font-size: 16px; font-family: var(--font); font-weight: 700; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--line); }
.card + .card { margin-top: 16px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 32px 0 14px; }
.section-title h2 { margin: 0; }

/* ---------- Butonlar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; font: 600 14px/1 var(--font); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .05s; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-600); color: var(--on-brand); }
.btn-accent { background: var(--accent); color: #2a1a05; }
.btn-accent:hover { filter: brightness(.95); color: #2a1a05; }
.btn-light { background: var(--surface-2); color: var(--text); }
.btn-light:hover { background: var(--line); color: var(--text); }
.btn-outline { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(.92); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(.92); color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1fb457; color: #fff; }
.btn-ghost { background: none; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; padding: 0; }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }

/* ---------- Formlar ---------- */
.form-group { margin-bottom: 16px; }
label, .label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--text); }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=date], input[type=datetime-local], input[type=search], input[type=color], select, textarea {
  width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; color: var(--text); background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
input[type=color] { padding: 4px; width: 64px; }
textarea { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.is-invalid { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: 12.5px; margin-top: 5px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 14px; cursor: pointer; margin-bottom: 10px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 600px) { .form-row, .form-row-3 { grid-template-columns: minmax(0, 1fr); } }
/* beş kısa sayı alanı (tarif süreleri): telefonda ikişerli satır */
.form-row-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 760px) { .form-row-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; } }
@media (max-width: 480px) { .form-row-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.input-group { display: flex; }
.input-group > :first-child { border-radius: 10px 0 0 10px; }
.input-group > :last-child { border-radius: 0 10px 10px 0; }
.input-addon { display: grid; place-items: center; padding: 0 12px; background: var(--surface-2); border: 1px solid var(--line); border-left: 0; color: var(--muted); font-size: 14px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.switch:last-child { border-bottom: 0; }
.switch .label { margin: 0; }
.toggle { position: relative; width: 44px; height: 24px; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; background: #d8ccd1; border-radius: 999px; transition: .2s; cursor: pointer; }
.toggle span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: var(--surface); border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle input:checked + span { background: var(--brand); }
.toggle input:checked + span::before { transform: translateX(20px); }
.role-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-picker label { border: 2px solid var(--line); border-radius: 12px; padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; font-weight: 500; margin: 0; transition: .15s; }
.role-picker label strong { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.role-picker label small { color: var(--muted); font-weight: 400; }
.role-picker input { position: absolute; opacity: 0; }
.role-picker input:checked + label { border-color: var(--brand); background: var(--brand-50); }
.file-drop { border: 2px dashed var(--line); border-radius: 12px; padding: 18px; text-align: center; color: var(--muted); cursor: pointer; transition: .15s; background: var(--surface-2); }
.file-drop:hover { border-color: var(--brand); color: var(--brand); }
.file-drop input { display: none; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumbs .thumb { position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .thumb label { position: absolute; inset: auto 0 0 0; margin: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 3px; display: flex; gap: 4px; align-items: center; justify-content: center; }

/* ---------- Uyarılar ---------- */
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid transparent; }
.alert-success { background: var(--success-50); color: #22603a; border-color: #cfe7d7; }
.alert-danger { background: var(--danger-50); color: #8f2a24; border-color: #f2cfcd; }
.alert-warning { background: var(--warning-50); color: #7a5410; border-color: #f2dfb9; }
.alert-info { background: var(--info-50); color: #24527a; border-color: #cddff0; }
.flash-wrap { position: fixed; top: calc(var(--header-h) + 12px); right: 16px; z-index: 80; width: min(380px, calc(100% - 32px)); }
.flash-wrap .alert { box-shadow: var(--shadow-lg); animation: slidein .25s ease-out; }
@keyframes slidein { from { opacity: 0; transform: translateX(20px) } to { opacity: 1; transform: none } }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--footer-bg); color: #fff; padding: 11px 18px; border-radius: 12px; z-index: 90; font-size: 14px; box-shadow: var(--shadow-lg); animation: pop .2s; max-width: calc(100% - 32px); }

/* ---------- Rozetler ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge-brand { background: var(--brand-50); color: var(--brand); }
.badge-accent { background: var(--accent-50); color: #8a5a10; }
.badge-success { background: var(--success-50); color: var(--success); }
.badge-danger { background: var(--danger-50); color: var(--danger); }
.badge-warning { background: var(--warning-50); color: var(--warning); }
.badge-info { background: var(--info-50); color: var(--info); }
.verified { display: inline-flex; vertical-align: -3px; margin-left: 2px; filter: drop-shadow(0 1px 1.5px rgba(29, 155, 240, .35)); cursor: help; }
.verified svg { display: block; }
h1 .verified { vertical-align: -2px; }
.verified-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 6px; border-radius: 999px; background: #e8f5fe; color: #0f6fb5; font-size: 12.5px; font-weight: 700; }
.verified-pill .verified { margin: 0; filter: none; vertical-align: 0; }
[data-theme] .verified-pill { background: color-mix(in srgb, #1d9bf0 14%, var(--surface)); }

/* ---------- Avatar ---------- */
.avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex: none; }
.avatar-sm { width: 32px; height: 32px; }
.avatar-xs { width: 26px; height: 26px; }
.avatar-lg { width: 64px; height: 64px; }
.avatar-xl { width: 132px; height: 132px; border: 5px solid var(--surface); box-shadow: var(--shadow); }
.user-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-line .name { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-line .meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.online-dot { width: 10px; height: 10px; border-radius: 50%; background: #3fbf6a; border: 2px solid var(--surface); position: absolute; bottom: 1px; right: 1px; }

/* ---------- Gönderi oluşturucu ---------- */
.composer textarea { border: 0; padding: 4px 0; min-height: 56px; font-size: 16px; resize: none; box-shadow: none !important; }
.composer .tools { display: flex; align-items: center; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.composer .tools select { width: auto; height: 34px; font-size: 13px; }
.composer .counter { font-size: 12px; color: var(--muted); margin-left: auto; }
.composer .preview { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.composer .preview img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; }

/* ---------- Gönderi ---------- */
.post { margin-bottom: 16px; }
.post-head { display: flex; align-items: flex-start; gap: 10px; padding: 16px 18px 6px; }
.post-body { padding: 4px 18px 12px; font-size: 15px; word-wrap: break-word; overflow-wrap: anywhere; }
.post-body a { font-weight: 500; }
.post-images { display: grid; gap: 3px; margin: 0 0 4px; background: var(--surface-2); }
.post-images.n1 { grid-template-columns: 1fr; }
.post-images.n2 { grid-template-columns: 1fr 1fr; }
.post-images.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.post-images.n3 a:first-child { grid-row: span 2; }
.post-images.n4 { grid-template-columns: 1fr 1fr; }
/* Gönderi kutusu: fotoğraf seçilince efekt ve müzik */
.composer-extras { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.composer-extras[hidden] { display: none; }
.fx-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.fx-item { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; padding: 0; cursor: pointer; font-size: 11px; color: var(--muted); flex: 0 0 auto; }
.fx-thumb { width: 58px; height: 58px; border-radius: 10px; background: var(--surface-2) center/cover no-repeat; border: 2px solid transparent; }
.fx-item.active { color: var(--brand); font-weight: 700; }
.fx-item.active .fx-thumb { border-color: var(--brand); }
/* Gönderi efekti (renk filtresi) ve müzik şeridi */
.post-images[data-fx] img { filter: var(--post-fx); }
.post-music { display: flex; align-items: center; gap: 8px; width: calc(100% - 24px); margin: 2px 12px 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 13px; cursor: pointer; text-align: left; }
.post-music .pm-icon { font-size: 15px; color: var(--brand); }
.post-music .pm-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.post-music .pm-state { font-size: 11px; color: var(--muted); }
.post-music.playing { border-color: var(--brand); }
.post-music.playing .pm-icon { animation: pm-pulse 1s ease-in-out infinite; }
@keyframes pm-pulse { 50% { transform: scale(1.25); } }
.post-images a { display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.post-images.n1 a { aspect-ratio: auto; max-height: 560px; }
.post-images img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-images a:hover img { transform: scale(1.02); }
.post-shared { margin: 0 18px 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.post-shared .post-head { padding: 12px 14px 4px; }
.post-shared .post-body { padding: 2px 14px 10px; }
.post-stats { display: flex; gap: 14px; padding: 6px 18px; font-size: 13px; color: var(--muted); }
.post-actions { display: flex; border-top: 1px solid var(--line); padding: 4px 8px; }
.post-actions button, .post-actions a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px; background: none; border: 0; border-radius: 9px; color: var(--muted); font: 600 13.5px var(--font); cursor: pointer; }
.post-actions button:hover, .post-actions a:hover { background: var(--surface-2); color: var(--text); }
.post-actions .liked { color: var(--brand); }
.post-actions .liked svg { fill: var(--brand); }
.post-menu { margin-left: auto; position: relative; }
.pinned-tag { font-size: 12px; color: var(--accent); font-weight: 600; display: flex; align-items: center; gap: 4px; padding: 10px 18px 0; }
.share-menu { position: relative; flex: 1; display: flex; }
.share-menu > button { width: 100%; }
.share-menu .dropdown { bottom: calc(100% + 6px); top: auto; right: 0; }

/* ---------- Yorumlar ---------- */
.comments { padding: 4px 18px 14px; border-top: 1px solid var(--line); }
.comment { display: flex; gap: 10px; margin-top: 12px; }
.comment-bubble { background: var(--surface-2); border-radius: 14px; padding: 8px 13px; display: inline-block; max-width: 100%; word-wrap: break-word; overflow-wrap: anywhere; }
.comment-bubble .name { font-weight: 600; font-size: 13.5px; color: var(--text); }
.comment-bubble .text { font-size: 14px; }
.comment-meta { display: flex; gap: 12px; font-size: 12px; color: var(--muted); padding: 3px 10px; align-items: center; }
.comment-meta button { background: none; border: 0; color: var(--muted); font: 600 12px var(--font); cursor: pointer; padding: 0; }
.comment-meta button:hover { color: var(--brand); }
.comment-meta .liked { color: var(--brand); }
.replies { margin-left: 42px; }
.comment-form { display: flex; gap: 8px; margin-top: 12px; align-items: flex-start; }
.comment-form textarea { min-height: 40px; height: 40px; border-radius: 20px; padding: 9px 14px; resize: none; }
.comment-form .btn { border-radius: 20px; }
.pending-tag { font-size: 11px; color: var(--warning); font-weight: 600; }

/* ---------- Kenar çubuğu ---------- */
.side-profile { text-align: center; overflow: hidden; }
.side-profile .cover { height: 70px; background: linear-gradient(135deg, var(--brand), var(--accent)); background-size: cover; background-position: center; }
.side-profile .avatar { margin: -34px auto 8px; width: 68px; height: 68px; border: 4px solid var(--surface); }
.side-profile .stats { display: flex; border-top: 1px solid var(--line); margin-top: 12px; }
.side-profile .stats a { flex: 1; padding: 10px 4px; color: var(--text); font-size: 12px; }
.side-profile .stats strong { display: block; font-size: 16px; }
.side-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: var(--text); border-radius: 10px; font-weight: 500; font-size: 14px; }
.side-menu a:hover, .side-menu a.active { background: var(--brand-50); color: var(--brand); }
.side-menu a .ic { color: var(--brand); }
.side-list > * { display: flex; gap: 10px; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.side-list > *:last-child { border-bottom: 0; }
.mini-listing { display: block !important; color: var(--text); }
.mini-listing:hover { background: var(--surface-2); color: var(--text); }
.mini-listing strong { display: block; font-size: 14px; line-height: 1.3; }

/* ---------- Profil ---------- */
.profile-cover { height: 280px; border-radius: 0 0 var(--radius) var(--radius); background: linear-gradient(135deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 50%, var(--accent)) 60%, var(--accent) 100%); background-size: cover; background-position: center; position: relative; }
.profile-head { display: flex; align-items: flex-end; gap: 20px; margin-top: -66px; padding: 0 24px 16px; position: relative; flex-wrap: wrap; }
.profile-head .info { flex: 1; min-width: 220px; padding-bottom: 6px; }
.profile-head h1 { margin: 0; font-size: 28px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-head .actions { display: flex; gap: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.profile-tabs { display: flex; gap: 2px; border-top: 1px solid var(--line); padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.profile-tabs a { padding: 14px 14px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 3px solid transparent; white-space: nowrap; }
.profile-tabs a.active, .profile-tabs a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--success-50); color: var(--success); }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 10px; padding: 7px 0; font-size: 14px; align-items: flex-start; }
.info-list .ic { color: var(--muted); margin-top: 2px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 10px; overflow: hidden; }
.photo-grid a { aspect-ratio: 1; overflow: hidden; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 11px; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-size: 13px; font-weight: 500; }
@media (max-width: 720px) {
  .profile-cover { height: 170px; border-radius: 0; }
  .profile-head { margin-top: -54px; padding: 0 16px 12px; gap: 12px; }
  .avatar-xl { width: 100px; height: 100px; }
  .profile-head h1 { font-size: 22px; }
}

/* ---------- Ilan / tarif kartları ---------- */
.item-card { display: flex; flex-direction: column; overflow: hidden; color: var(--text); transition: transform .15s, box-shadow .15s; height: 100%; position: relative; }
.item-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--text); }
.item-card .media { aspect-ratio: 4 / 3; background: var(--surface-2); position: relative; overflow: hidden; display: grid; place-items: center; color: color-mix(in srgb, var(--brand) 40%, #fff); }
.item-card .media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.item-card .media .tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 1; }
.item-card .body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.item-card .title { font-weight: 700; font-size: 15.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-card .price { color: var(--brand); font-weight: 700; font-size: 16px; }
.item-card .meta { display: flex; gap: 12px; font-size: 12.5px; color: var(--muted); margin-top: auto; flex-wrap: wrap; }
.item-card .meta span { display: flex; align-items: center; gap: 4px; }
.fav-btn { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; color: var(--muted); box-shadow: var(--shadow); }
.fav-btn.on { color: var(--brand); }
.fav-btn.on svg { fill: var(--brand); }
.list-row { display: flex; gap: 16px; padding: 16px; color: var(--text); border-bottom: 1px solid var(--line); align-items: flex-start; }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: #fffcf9; color: var(--text); }
.list-row .thumb { width: 120px; height: 90px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface-2); display: grid; place-items: center; color: color-mix(in srgb, var(--brand) 40%, #fff); overflow: hidden; }
.list-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-row .title { font-weight: 700; font-size: 16px; line-height: 1.3; }
.featured-row { background: linear-gradient(90deg, var(--accent-50), var(--surface) 60%); }
@media (max-width: 560px) { .list-row .thumb { width: 84px; height: 72px; } .list-row { gap: 12px; padding: 14px; } }

.type-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.type-tab { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 14px; }
.type-tab:hover { border-color: var(--brand); color: var(--brand); }
.type-tab.active { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.type-tab .count { font-size: 12px; opacity: .7; font-weight: 500; }
.filters .form-group { margin-bottom: 12px; }

.gallery-main { aspect-ratio: 4 / 3; background: var(--surface-2); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; display: grid; place-items: center; color: color-mix(in srgb, var(--brand) 35%, #fff); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #1d171a; }
.gallery-thumbs { display: flex; gap: 6px; padding: 10px; overflow-x: auto; }
.gallery-thumbs button { width: 72px; height: 56px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; flex: none; background: none; }
.gallery-thumbs button.active { border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 500; width: 42%; }
.big-price { font-size: 28px; font-weight: 800; color: var(--brand); font-family: var(--display); }
.description { white-space: pre-line; font-size: 15px; line-height: 1.7; }

/* ---------- Tarif ---------- */
.recipe-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; overflow: hidden; }
.recipe-hero .media { min-height: 340px; background: linear-gradient(135deg, var(--brand-100), var(--accent-50)); display: grid; place-items: center; color: color-mix(in srgb, var(--brand) 45%, #fff); }
.recipe-hero .media img { width: 100%; height: 100%; object-fit: cover; }
.recipe-hero .content { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.recipe-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.recipe-meta div { background: var(--surface-2); border-radius: 12px; padding: 10px; text-align: center; }
.recipe-meta strong { display: block; font-size: 16px; }
.recipe-meta span { font-size: 12px; color: var(--muted); }
.share-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.share-bar .btn { height: 38px; }
.btn-fb { background: #1877f2; color: #fff; } .btn-fb:hover { color: #fff; filter: brightness(.92); }
.btn-x { background: #111; color: #fff; } .btn-x:hover { color: #fff; background: #333; }
.btn-tg { background: #229ed9; color: #fff; } .btn-tg:hover { color: #fff; filter: brightness(.92); }
.ingredients { list-style: none; padding: 0; margin: 0; }
.ingredients li { padding: 10px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.ingredients li:last-child { border-bottom: 0; }
.ingredients li input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.ingredients li.done span { text-decoration: line-through; color: var(--muted); }
.ingredients .qty { font-weight: 700; color: var(--brand); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; display: flex; gap: 14px; padding: 12px 0; align-items: flex-start; }
.steps li::before { content: counter(step); flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.tip-box { background: var(--accent-50); border-left: 4px solid var(--accent); padding: 14px 16px; border-radius: 0 12px 12px 0; }
.servings-ctl { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.servings-ctl button { width: 34px; height: 34px; border: 0; background: var(--surface-2); cursor: pointer; font-size: 18px; color: var(--text); }
.servings-ctl input { width: 52px; height: 34px; border: 0; text-align: center; border-radius: 0; font-weight: 700; }
@media (max-width: 860px) { .recipe-hero { grid-template-columns: 1fr; } .recipe-hero .media { min-height: 220px; } .recipe-meta { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Blog ---------- */
.blog-card .media { aspect-ratio: 16 / 9; }
.article { max-width: 760px; margin: 0 auto; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin: 18px 0 24px; aspect-ratio: 16 / 8; background: var(--surface-2); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 17px; line-height: 1.8; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose img { border-radius: 12px; margin: 1em 0; }
.prose blockquote { border-left: 4px solid var(--brand); margin: 1.2em 0; padding: .4em 1.2em; color: var(--muted); font-style: italic; background: var(--brand-50); border-radius: 0 10px 10px 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; }

/* ---------- Karşılama (ziyaretçi) ---------- */
/* Karşılama şeridi: başlık + üye ol (ince, mobilde boşluk bırakmaz) */
.lp-welcome { background: radial-gradient(900px 300px at 90% -40%, var(--accent-50), transparent 60%), radial-gradient(700px 300px at -10% 140%, var(--brand-100), transparent 60%), var(--surface); border-bottom: 1px solid var(--line); }
.lp-welcome .container { padding-top: 18px; padding-bottom: 18px; }
.lp-welcome h1 { font-size: clamp(20px, 2.4vw, 30px); line-height: 1.15; margin: 0 0 4px; }
.lp-welcome h1 em { font-style: italic; color: var(--brand); }
.lp-welcome .lead { color: var(--muted); margin: 0; font-size: 15px; }

/* Renkli kategori kutucukları + vitrin (Migros tarzı mozaik) */
.lp-mosaic { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr); max-width: 1440px; margin: 0 auto; background: #2b2522; }
.lp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-tile { position: relative; overflow: hidden; min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px 10px; color: #fff; text-align: center; isolation: isolate;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.22), transparent 55%), linear-gradient(150deg, color-mix(in srgb, var(--c) 82%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 78%, #000));
  animation: lp-in .5s ease both; animation-delay: var(--d, 0ms); }
.lp-tile:hover { color: #fff; }
.lp-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; filter: saturate(1.1); }
.lp-tile.has-img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c); opacity: .72; transition: opacity .3s; }
.lp-tile-bg { position: absolute; right: -28px; bottom: -34px; z-index: -1; opacity: .13; transform: rotate(-12deg); transition: transform .6s ease; }
.lp-tile.has-img .lp-tile-bg { display: none; }
.lp-tile-ic { width: 78px; height: 78px; display: grid; place-items: center; border-radius: 50%; border: 2px solid rgba(255,255,255,.75); background: rgba(255,255,255,.12); transition: transform .3s ease, background .3s; }
.lp-tile strong { font-size: 15px; letter-spacing: .01em; text-shadow: 0 1px 6px rgba(0,0,0,.25); }
.lp-tile small { font-size: 12px; opacity: .88; }
.lp-tile:hover img { transform: scale(1.08); }
.lp-tile:hover::before { opacity: .55; }
.lp-tile:hover .lp-tile-ic { transform: translateY(-4px) scale(1.06); background: rgba(255,255,255,.22); }
.lp-tile:hover .lp-tile-bg { transform: rotate(-4deg) scale(1.08); }
@keyframes lp-in { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }

.lp-slider { position: relative; overflow: hidden; min-height: 380px; }
.lp-slides { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.lp-slides::-webkit-scrollbar { display: none; }
.lp-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; overflow: hidden; display: flex; align-items: flex-end; color: #fff; isolation: isolate;
  background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.25), transparent 50%), linear-gradient(160deg, color-mix(in srgb, var(--c) 75%, #fff), var(--c) 50%, color-mix(in srgb, var(--c) 60%, #000)); }
.lp-slide:hover { color: #fff; }
.lp-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.lp-slide.has-img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(20,12,10,.88), rgba(20,12,10,.25) 55%, transparent); }
.lp-slide-art { position: absolute; top: 20px; right: -40px; z-index: -1; opacity: .18; transform: rotate(-10deg); }
.lp-slide-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px 44px; }
.lp-kicker { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--c); box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.lp-slide:not(.has-img) .lp-kicker { background: rgba(255,255,255,.2); }
.lp-slide-title { font-family: var(--display); font-size: 24px; line-height: 1.2; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lp-slide-cta { font-weight: 600; font-size: 14px; opacity: .95; }
.lp-dots { position: absolute; left: 22px; bottom: 16px; display: flex; gap: 6px; }
.lp-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.5); cursor: pointer; transition: width .25s, background .25s; }
.lp-dots button.on { width: 22px; background: #fff; }

/* Hızlı erişim şeridi */
.lp-strip { background: #3a3431; }
.lp-strip .container { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 1440px; padding: 0; }
.lp-strip a { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 22px 12px; color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; border-bottom: 5px solid var(--c); transition: background .2s; }
.lp-strip a .ic { color: color-mix(in srgb, var(--c) 45%, #fff); transition: transform .25s; }
.lp-strip a:hover { background: rgba(255,255,255,.06); color: #fff; }
.lp-strip a:hover .ic { transform: scale(1.12) rotate(-6deg); }

.lp-stats { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.lp-stats div { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 10px 20px; box-shadow: var(--shadow); }
.lp-stats .ic { color: var(--brand); }
.lp-stats strong { font-family: var(--display); font-size: 22px; }
.lp-stats span { color: var(--muted); font-size: 13px; }

@media (max-width: 1080px) {
  .lp-mosaic { grid-template-columns: 1fr; }
  .lp-slider { min-height: 280px; order: -1; }
}
@media (max-width: 720px) {
  .lp-welcome .container { padding-top: 14px; padding-bottom: 14px; }
  .lp-welcome .lead { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .lp-slider { min-height: 210px; }
  .lp-slide-body { padding: 16px 16px 34px; gap: 6px; }
  .lp-slide-title { font-size: 19px; -webkit-line-clamp: 2; }
  .lp-slide-art .ic { width: 160px; height: 160px; }
  .lp-dots { left: 16px; bottom: 12px; }
  .lp-tile { min-height: 0; aspect-ratio: 1; padding: 8px 4px; gap: 4px; }
  .lp-tile-ic { width: auto; height: auto; border: 0; background: none; }
  .lp-tile-ic .ic { width: 32px; height: 32px; }
  .lp-tile strong { font-size: 11.5px; line-height: 1.2; }
  .lp-tile small, .lp-tile-bg { display: none; }
  .lp-strip .container { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .lp-strip .container::-webkit-scrollbar { display: none; }
  .lp-strip a { flex: 0 0 31%; flex-direction: column; gap: 6px; padding: 14px 6px; font-size: 11px; text-align: center; scroll-snap-align: start; border-bottom-width: 4px; }
  .lp-strip a .ic { width: 26px; height: 26px; }
  .lp-stats { gap: 8px; margin-top: 18px; }
  .lp-stats div { padding: 8px 14px; gap: 6px; }
  .lp-stats strong { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .lp-tile { animation: none; } .lp-slides { scroll-behavior: auto; } }

/* Ziyaretçi ana sayfası: her satır tam dolu (bkz. pages/landing.php) */
.lp-tiles > .lp-tile:last-child:nth-child(4n+3) { grid-column: span 2; aspect-ratio: auto; }
.lp-tiles > .lp-tile:last-child:nth-child(4n+2) { grid-column: span 3; aspect-ratio: auto; }
.lp-tiles > .lp-tile:last-child:nth-child(4n+1) { grid-column: span 4; aspect-ratio: auto; }
.lp-fill { grid-column: span var(--span, 1); min-width: 0; }
.lp-fill > a { height: 100%; min-height: 220px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: 28px; border-radius: var(--radius); color: #fff; background: linear-gradient(120deg, var(--brand), color-mix(in srgb, var(--brand) 50%, var(--accent)), var(--brand)); background-size: 220% 100%; animation: lpFillShift 9s ease-in-out infinite alternate; transition: transform .15s, box-shadow .15s; }
.lp-fill > a:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.lp-fill-ic { position: relative; flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.lp-fill-ic::before, .lp-fill-ic::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); animation: lpFillPulse 2.6s ease-out infinite; pointer-events: none; }
.lp-fill-ic::after { animation-delay: 1.3s; }
.lp-fill-ic .ic { transform-origin: 35% 60%; animation: lpFillWiggle 4.5s ease-in-out infinite; }
.lp-fill strong { font-family: var(--display); font-size: 21px; line-height: 1.2; }
.lp-fill-text { opacity: .92; font-size: 14px; line-height: 1.5; max-width: 460px; }
.lp-fill em { font-style: normal; margin-top: 4px; background: #fff; color: var(--brand); font-weight: 700; padding: 9px 18px; border-radius: 999px; font-size: 14px; }
/* Zengin çağrı kartı (ör. "Ücretsiz ilan ver"): hareketli şerit + renkli kategori kutuları */
.lp-fill--rich { display: flex; flex-direction: column; overflow: clip; /* hidden olursa kaydırma animasyonu sayfayı değil kartı izler */ border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.lp-fill-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 16px 18px; color: #fff; background: linear-gradient(120deg, var(--brand), color-mix(in srgb, var(--brand) 50%, var(--accent)), var(--brand)); background-size: 220% 100%; animation: lpFillShift 9s ease-in-out infinite alternate; }
.lp-fill-head .lp-fill-ic { width: 52px; height: 52px; }
.lp-fill-title { flex: 1 1 120px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lp-fill--rich .lp-fill-title strong { font-size: 20px; line-height: 1.15; }
.lp-fill-cta { margin-left: auto; background: #fff; color: var(--brand); font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 999px; white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); transition: transform .2s, box-shadow .2s; }
.lp-fill-cta:hover { color: var(--brand); transform: translateX(3px); box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
.lp-fill-chips { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 3px; background: var(--surface); }
.lp-fill--s3 .lp-fill-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lp-fill--s1 .lp-fill-head { padding: 12px 14px; gap: 8px 10px; }
.lp-fill--s1 .lp-fill-head .lp-fill-ic { width: 42px; height: 42px; }
.lp-fill--s1 .lp-fill-head .lp-fill-ic .ic { width: 22px; height: 22px; }
.lp-fill--s1 .lp-fill-title strong { font-size: 17px; }
.lp-fill--s1 .lp-fill-cta { padding: 6px 13px; font-size: 13px; }
.lp-fill-chips a { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 92px; padding: 12px 14px; color: #fff; background: linear-gradient(150deg, color-mix(in srgb, var(--c) 82%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 80%, #000)); transition: filter .25s; }
.lp-fill-chips a:hover { color: #fff; filter: brightness(1.08) saturate(1.12); }
.lp-fill-chips a::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .3) 50%, transparent 65%); transform: translateX(-120%); transition: transform .8s ease; pointer-events: none; }
.lp-fill-chips a:hover::after { transform: translateX(120%); }
.chip-bg { position: absolute; right: -22px; bottom: -26px; z-index: -1; opacity: .2; transform: rotate(-14deg); transition: transform .6s ease, opacity .3s; }
.lp-fill-chips a:hover .chip-bg { transform: rotate(-3deg) scale(1.12); opacity: .28; }
.chip-ic { width: 40px; height: 40px; margin-bottom: auto; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); border: 1.5px solid rgba(255, 255, 255, .55); animation: lpFillBob 3.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.8s); }
.lp-fill-chips b { margin-top: 8px; font-size: 14px; line-height: 1.2; text-shadow: 0 1px 6px rgba(0, 0, 0, .2); }
.lp-fill-chips small { font-size: 12px; opacity: .88; }
.lp-fill--s1 .lp-fill-chips a { min-height: 0; padding: 9px 10px; }
.lp-fill--s1 .chip-ic { width: 30px; height: 30px; }
.lp-fill--s1 .chip-ic .ic { width: 17px; height: 17px; }
.lp-fill--s1 .lp-fill-chips b { margin-top: 5px; font-size: 12.5px; }
.lp-fill--s1 .lp-fill-chips small { font-size: 11.5px; }
@keyframes lpFillShift { to { background-position: 100% 0; } }
@keyframes lpFillPulse { from { transform: scale(1); opacity: .6; } to { transform: scale(1.75); opacity: 0; } }
@keyframes lpFillWiggle { 0%, 78%, 100% { transform: rotate(0); } 82% { transform: rotate(-14deg); } 86% { transform: rotate(11deg); } 90% { transform: rotate(-7deg); } 94% { transform: rotate(4deg); } }
@keyframes lpFillBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes lpFillIn { from { opacity: 0; transform: translateY(26px) scale(.94); } }
@supports (animation-timeline: view()) {
  .lp-fill-chips a { animation: lpFillIn linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; animation-range: entry calc(var(--i, 0) * 10%) entry calc(70% + var(--i, 0) * 10%); }
}
@media (prefers-reduced-motion: reduce) {
  .lp-fill > a, .lp-fill-head, .lp-fill-ic .ic, .chip-ic, .lp-fill-chips a { animation: none; }
  .lp-fill-ic::before, .lp-fill-ic::after { display: none; }
}
.lp-post .media { aspect-ratio: 1; }
.lp-post .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-post-badge { position: absolute; right: 10px; bottom: 10px; z-index: 1; min-width: 36px; height: 36px; padding: 0 9px; border-radius: 999px; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; font-weight: 700; }
.lp-post-quote { position: absolute; inset: 0; display: grid; place-items: center; padding: 22px; overflow: hidden; text-align: center; font-family: var(--display); font-size: 18px; line-height: 1.35; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); }
.lp-post-quote > span { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.lp-post-author { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; font-weight: 700; }
.lp-post-author img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.lp-post-author > span:not(.verified) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-text { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lp-blog .lp-text { -webkit-line-clamp: 3; font-size: 13px; }
.lp-ad-card { min-width: 0; overflow: hidden; }
.lp-ad-card:has(.ad-slot > a > img) { background: #1f1b18; }
.lp-ad-card .ad-slot { height: 100%; margin: 0; display: flex; flex-direction: column; justify-content: center; }
.lp-ad-card .ad-slot > a:has(> img) { display: block; flex: 1; min-height: 0; }
.lp-ad-card .ad-slot img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.lp-ad-solo { max-width: 420px; margin: 32px auto 0; }
@media (max-width: 860px) {
  .lp-fill { display: none; }
  .lp-grid.is-odd > a:last-of-type { grid-column: 1 / -1; flex-direction: row; }
  .lp-grid.is-odd > a:last-of-type .media { flex: 0 0 50%; aspect-ratio: auto; min-height: 200px; }
}
@media (max-width: 560px) {
  /* tek sütunda zaten tam genişlik: yatay kart yalnızca 2 sütunda kalan (keep-2) ızgaralarda */
  .lp-grid.is-odd:not(.keep-2) > a:last-of-type { flex-direction: column; }
  .lp-grid.is-odd:not(.keep-2) > a:last-of-type .media { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
  .lp-post-quote { padding: 12px; font-size: 14px; }
  .lp-post-quote > span { -webkit-line-clamp: 5; }
  .lp-post .body { padding: 10px 12px; }
}
.cta-band { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 60%, var(--accent))); color: var(--on-brand); border-radius: 20px; padding: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 40px; }
.cta-band h2 { color: var(--on-brand); margin: 0; }

/* ---------- Kimlik sayfaları ---------- */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: linear-gradient(160deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--accent))); color: var(--on-brand); padding: 56px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-side h2 { color: var(--on-brand); font-size: 34px; }
.auth-side ul { list-style: none; padding: 0; margin: 20px 0 0; }
.auth-side li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 15px; opacity: .95; }
.auth-side::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(255,255,255,.07); right: -120px; bottom: -120px; }
.auth-form { display: grid; place-items: center; padding: 40px 16px; }
.auth-form .card { width: 100%; max-width: 460px; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------- Mesajlar ---------- */
.messenger { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - var(--header-h) - 48px); height: calc(100dvh - var(--header-h) - 48px); min-height: 480px; overflow: hidden; }
.convo-list { border-right: 1px solid var(--line); overflow-y: auto; }
.convo { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--text); align-items: center; }
.convo:hover, .convo.active { background: var(--brand-50); color: var(--text); }
.convo .preview { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo.unread .preview { color: var(--text); font-weight: 600; }
.thread { display: flex; flex-direction: column; min-height: 0; }
.thread-head { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.thread-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; background: #fdfbf8; }
.msg { max-width: 72%; padding: 9px 13px; border-radius: 16px; font-size: 14.5px; word-wrap: break-word; overflow-wrap: anywhere; }
.msg .time { display: block; font-size: 10.5px; opacity: .65; margin-top: 3px; text-align: right; }
.msg.me { align-self: flex-end; background: var(--brand); color: var(--on-brand); border-bottom-right-radius: 5px; }
.msg.them { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.thread-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.thread-form textarea { min-height: 44px; height: 44px; resize: none; border-radius: 22px; padding: 11px 16px; }
@media (max-width: 760px) {
  .messenger { grid-template-columns: 1fr; height: calc(100vh - var(--header-h) - 110px); height: calc(100dvh - var(--header-h) - 110px); }
  .messenger.has-thread .convo-list { display: none; }
  .messenger:not(.has-thread) .thread { display: none; }
}

/* ---------- Bildirimler ---------- */
.notif { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--text); align-items: center; }
.notif:hover { background: var(--surface-2); color: var(--text); }
.notif.unread { background: var(--brand-50); }
.notif .ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-100); color: var(--brand); flex: none; }

/* ---------- Tablolar ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 11px 14px; background: var(--surface-3); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: var(--surface-3); }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Sayfalama ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 24px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--text); }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .current { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* ---------- Boş durum ---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .ic-wrap { width: 72px; height: 72px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin: 0 auto 14px; }
.empty h3 { color: var(--text); font-family: var(--font); font-weight: 700; }

/* ---------- Reklam ---------- */
.ad-slot { position: relative; margin-bottom: 16px; }
.ad-slot .ad-label { position: absolute; top: 6px; right: 8px; font-size: 10px; color: var(--muted); background: color-mix(in srgb, var(--surface) 85%, transparent); padding: 1px 6px; border-radius: 6px; letter-spacing: .05em; z-index: 1; }
.ad-slot img { width: 100%; border-radius: var(--radius); }
.ad-header { margin: 16px 0 0; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(30, 20, 25, .55); z-index: 100; display: none; place-items: center; padding: 16px; }
.modal.open { display: grid; animation: fade .15s; }
.modal .card { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.lightbox { position: fixed; inset: 0; background: rgba(10, 6, 8, .92); z-index: 110; display: none; place-items: center; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 8px; }

/* ---------- Alt bilgi ---------- */
.footer { background: var(--footer-bg); color: #cdbec5; padding: 48px 0 24px; margin-top: 40px; font-size: 14px; }
.footer a { color: #e9dce2; }
.footer a:hover { color: #fff; }
.footer-logo { display: inline-block; margin-bottom: 12px; }
.footer-logo img { display: block; max-height: 60px; max-width: min(240px, 100%); width: auto; height: auto; }
.footer h4 { color: #fff; font-family: var(--font); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.footer .socials { display: flex; gap: 8px; margin-top: 14px; }
.footer .socials a { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; }

/* ---------- Ayarlar ---------- */
.settings-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 16px; color: var(--text); font-weight: 500; border-left: 3px solid transparent; }
.settings-nav a.active { border-left-color: var(--brand); background: var(--brand-50); color: var(--brand); }
.settings-nav a:hover { background: var(--surface-2); }
.image-edit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cover-preview { height: 140px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--accent)); background-size: cover; background-position: center; margin-bottom: 12px; }

/* ---------- Yükleniyor ---------- */
.spinner { width: 22px; height: 22px; border: 3px solid var(--brand-100); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg) } }

/* ---------- Yazdırma ---------- */
@media print {
  .header, .footer, .bottom-nav, .no-print, .ad-slot, .flash-wrap { display: none !important; }
  body { background: #fff; padding: 0; }
  .card { box-shadow: none; border: 0; }
}

/* =========================================================
   Yönetim paneli
   ========================================================= */
.admin { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: var(--footer-bg); color: #cdbec5; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; padding: 16px 12px 40px; }
.admin-side .logo { color: #fff; padding: 6px 8px 18px; font-size: 17px; }
.admin-side .group { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #8d7c84; padding: 16px 12px 6px; }
.admin-side a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: #e2d6db; font-size: 14px; font-weight: 500; }
.admin-side a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-side a.active { background: var(--brand); color: var(--on-brand); }
.admin-side a .count { margin-left: auto; background: var(--accent); color: #2a1a05; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.admin-main { min-width: 0; }
.admin-top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 95%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 24px; }
.admin-top h1 { font-family: var(--font); font-size: 18px; font-weight: 700; margin: 0; }
.admin-body { padding: 24px; max-width: 1400px; }
.admin-toggle { display: none; }
.stat-card { padding: 18px; display: flex; gap: 14px; align-items: center; }
.stat-card .ic-wrap { width: 46px; height: 46px; border-radius: 13px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.stat-card .val { font-size: 24px; font-weight: 800; line-height: 1.1; }
.stat-card .lbl { font-size: 13px; color: var(--muted); }
.stat-card .sub { font-size: 12px; color: var(--success); font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.bars .bar span.v { width: 100%; max-width: 34px; background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 60%, var(--accent))); border-radius: 6px 6px 2px 2px; min-height: 3px; position: relative; }
.bars .bar span.v:hover::after { content: attr(data-n); position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: var(--text); }
.bars .bar small { font-size: 10px; color: var(--muted); }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filter-bar input, .filter-bar select { width: auto; min-width: 140px; height: 38px; }
.filter-bar input[type=search] { min-width: 220px; }
.status-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
.status-tabs a { padding: 7px 13px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--line); }
.status-tabs a.active { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.status-tabs a .n { opacity: .75; font-weight: 500; margin-left: 4px; }
.settings-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.settings-tabs a { padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 3px solid transparent; display: flex; gap: 7px; align-items: center; }
.settings-tabs a.active { color: var(--brand); border-bottom-color: var(--brand); }
.setting-row { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.setting-row:last-of-type { border-bottom: 0; }
.setting-row .label { margin: 0; font-size: 14px; }
.cell-title { font-weight: 600; color: var(--text); display: block; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-sub { font-size: 12px; color: var(--muted); }
.table td.check-col, .table th.check-col { width: 34px; padding-right: 0; }
.table input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--brand); }
.editor-toolbar { display: flex; gap: 4px; flex-wrap: wrap; padding: 6px; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--surface-2); }
.editor-toolbar button { height: 30px; min-width: 32px; padding: 0 8px; border: 1px solid transparent; background: none; border-radius: 6px; cursor: pointer; font: 600 13px var(--font); color: var(--text); }
.editor-toolbar button:hover { background: var(--surface); border-color: var(--line); }
.editor-area { border-radius: 0 0 10px 10px !important; min-height: 380px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; }
.editor-preview { border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; min-height: 380px; background: var(--surface); }
@media (max-width: 960px) {
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 70; transform: translateX(-100%); transition: transform .2s; }
  .admin-side.open { transform: none; box-shadow: var(--shadow-lg); }
  .admin-toggle { display: inline-flex; }
  .admin-body { padding: 16px; }
  .setting-row { grid-template-columns: 1fr; gap: 8px; }
}
.btn.liked { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.btn.liked svg { fill: var(--on-brand); }

/* Düzeltmeler */
.search-box input[type=search] { padding-left: 40px; border-radius: 999px; background: var(--surface-2); }
.search-box input[type=search]:focus { background: var(--surface); }
.servings-ctl input { width: 56px; -moz-appearance: textfield; padding: 0; }
.servings-ctl input::-webkit-outer-spin-button, .servings-ctl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dd-wrap { position: relative; display: inline-block; }
.grid > .card + .card, .grid > * + .card { margin-top: 0; }
.admin { background: linear-gradient(to right, #221a1e 250px, var(--bg) 250px); }
@media (max-width: 960px) { .admin { background: var(--bg); } }
.profile-head { align-items: flex-start; }
.profile-head .info { padding-top: 74px; }
.profile-head .actions { padding-top: 78px; }
@media (max-width: 720px) {
  .profile-head .info { padding-top: 0; flex-basis: 100%; }
  .profile-head .actions { padding-top: 0; }
}

/* Malzeme üstü çizme, zamanlayıcı, kilitli içerik */
.ingredients li { user-select: none; transition: color .15s; }
.ingredients li:hover { background: var(--brand-50); border-radius: 8px; }
.ingredients li .tick { width: 20px; height: 20px; border: 2px solid var(--line); border-radius: 6px; flex: none; margin-top: 2px; display: grid; place-items: center; transition: .15s; }
.ingredients li.done .tick { background: var(--brand); border-color: var(--brand); }
.ingredients li.done .tick::after { content: "✓"; color: #fff; font-size: 13px; font-weight: 700; }
.ingredients li.done span:not(.tick), .ingredients li.done .qty { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--muted); }
.step-timer { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 3px 9px; border-radius: 999px; border: 1px dashed var(--brand); background: var(--brand-50); color: var(--brand); font: 600 12px var(--font); cursor: pointer; }
.step-timer:hover { background: var(--brand); color: var(--on-brand); }
.kitchen-timer { background: linear-gradient(135deg, var(--surface), var(--accent-50)); }
.timer-list:not(:empty) { margin-top: 14px; display: grid; gap: 8px; }
.timer-row { display: flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.timer-row.done { border-color: var(--danger); background: var(--danger-50); }
.timer-time { font: 700 20px/1 ui-monospace, Menlo, Consolas, monospace; color: var(--brand); }
.timer-bar { height: 5px; background: var(--surface-2); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.timer-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width 1s linear; }
.timer-alarm { position: fixed; inset: 0; background: rgba(30, 20, 25, .6); z-index: 120; display: grid; place-items: center; padding: 16px; }
.timer-alarm.hidden { display: none; }
.timer-alarm .card { max-width: 420px; width: 100%; animation: pop .2s; }
.timer-alarm .ring { animation: ring .5s ease-in-out infinite alternate; display: inline-block; }
@keyframes ring { from { transform: rotate(-15deg) } to { transform: rotate(15deg) } }
.locked-box { padding: 36px 24px; background: linear-gradient(160deg, var(--surface), var(--brand-50)); }
.price-tag { position: absolute; right: 10px; bottom: 10px; background: var(--text); color: var(--bg); padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; z-index: 1; }
.share-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.share-picker input { position: absolute; opacity: 0; }
.share-picker label { border: 2px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; margin: 0; display: flex; flex-direction: column; gap: 4px; font-weight: 500; transition: .15s; }
.share-picker label strong { display: flex; align-items: center; gap: 7px; font-size: 14.5px; }
.share-picker label small { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.share-picker input:checked + label { border-color: var(--brand); background: var(--brand-50); }
.price-box { margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--success-50); border: 1px solid #cfe7d7; }
@media (max-width: 640px) { .share-picker { grid-template-columns: 1fr; } }

/* Alt bilgi sosyal medya ikonları */
.footer-social { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.footer-social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: transform .15s, background .15s; }
.footer-social a:hover { transform: translateY(-3px); color: #fff; }
.footer-social .soc-instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.footer-social .soc-facebook:hover { background: #1877f2; }
.footer-social .soc-youtube:hover { background: #ff0000; }
.footer-social .soc-tiktok:hover { background: #010101; box-shadow: 2px 2px 0 #25f4ee, -2px -2px 0 #fe2c55; }
.footer-social .soc-x:hover { background: #000; }
.footer-social .soc-linkedin:hover { background: #0a66c2; }
.footer-social .soc-pinterest:hover { background: #e60023; }
.footer-social .soc-whatsapp:hover { background: #25d366; }
.footer-social .soc-telegram:hover { background: #229ed9; }
.footer .bottom { margin-top: 20px; }

/* Ödeme */
.pay-options { display: grid; gap: 8px; }
.pay-options input { position: absolute; opacity: 0; }
.pay-options label { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; margin: 0; font-weight: 500; transition: .15s; flex-wrap: wrap; }
.pay-options input:checked + label { border-color: var(--brand); background: var(--brand-50); }
.pay-logo { min-width: 112px; font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.pay-iyzico { color: #1e64ff; } .pay-paytr { color: #00a651; } .pay-shopier { color: #6c2bd9; } .pay-havale { color: var(--text); }
.pay-stripe { color: #635bff; } .pay-paypal { color: #003087; } .pay-mollie { color: #000; } .pay-yookassa { color: #0070f0; }

/* Eğitimler */
.course-hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: linear-gradient(135deg, var(--surface), var(--brand-50)); margin-bottom: 20px; }
.course-banner { background: linear-gradient(135deg, var(--footer-bg), color-mix(in srgb, var(--brand) 70%, var(--footer-bg))); color: #fff; padding: 36px 0 30px; }
.course-banner h1 { color: #fff; font-size: clamp(26px, 4vw, 40px); margin: 8px 0 10px; }
.lesson-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--text); }
.lesson-row:hover { background: var(--surface-2); color: var(--text); }
.lesson-row.current { background: var(--brand-50); font-weight: 600; }
.lesson-row.locked { color: var(--muted); }
.lesson-row .num { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.lesson-row .num.done { background: var(--success); color: #fff; }
.video-wrap { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-wrap iframe, .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-edit { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--surface); }
.lesson-edit summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.lesson-edit summary::-webkit-details-marker { display: none; }
.lesson-edit .num { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.lesson-edit[open] { border-color: var(--brand); }

/* =========================================================
   TEMALAR — Yönetim Paneli → Site Ayarları → Görünüm
   html[data-theme] ile seçilir; ana/ikincil renk ayrıca özelleştirilebilir.
   ========================================================= */
.logo-icon { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; background: #fff; padding: 3px; flex: none; }
.footer-motto { font-weight: 600; letter-spacing: .01em; color: color-mix(in srgb, var(--accent) 70%, #fff); }

/* --- Elit Altın (koyu) --- */
html[data-theme="elit"] {
  color-scheme: dark;
  --bg: #0f0e0d; --surface: #191715; --surface-2: #24211d; --surface-3: #1e1c19;
  --text: #f1ebe0; --muted: #a59b8c; --line: #322d27;
  --on-brand: #17130b; --footer-bg: #090807;
  --success: #62c285; --success-50: #16271c; --danger: #e46a62; --danger-50: #2e1715;
  --warning: #e2b250; --warning-50: #2b2211; --info: #6fa9de; --info-50: #13212f;
  --shadow: 0 1px 2px rgba(0,0,0,.45), 0 6px 22px rgba(0,0,0,.35);
  --shadow-lg: 0 18px 50px rgba(0,0,0,.6);
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --radius: 12px; --radius-sm: 8px;
}
html[data-theme="elit"] h1, html[data-theme="elit"] h2, html[data-theme="elit"] h3 { font-weight: 700; letter-spacing: .005em; }
html[data-theme="elit"] h1 { font-size: clamp(30px, 3.8vw, 42px); }
html[data-theme="elit"] h2 { font-size: 26px; }
html[data-theme="elit"] .header { border-bottom-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
html[data-theme="elit"] .card { border-color: color-mix(in srgb, var(--brand) 14%, var(--line)); }
html[data-theme="elit"] .btn-primary { background: linear-gradient(135deg, var(--accent), var(--brand) 55%, color-mix(in srgb, var(--brand) 70%, #000)); }
html[data-theme="elit"] .badge-accent { color: var(--accent); }
html[data-theme="elit"] .fav-btn { background: rgba(20,18,16,.85); color: var(--text); }
html[data-theme="elit"] .logo img { background: #fff; padding: 3px 8px; border-radius: 8px; }
html[data-theme="elit"] .profile-cover:not([style]) { background: linear-gradient(135deg, #1b1712, color-mix(in srgb, var(--brand) 45%, #1b1712) 60%, var(--brand)); }
html[data-theme="elit"] .lp-welcome, html[data-theme="elit"] .auth-side { background-color: var(--bg); }
html[data-theme="elit"] .cta-band, html[data-theme="elit"] .auth-side { background: linear-gradient(135deg, #1c1813, color-mix(in srgb, var(--brand) 55%, #1c1813)); color: var(--text); border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); }
html[data-theme="elit"] .cta-band h2, html[data-theme="elit"] .auth-side h2 { color: var(--accent); }
html[data-theme="elit"] ::selection { background: var(--brand); color: var(--on-brand); }

/* --- Kurumsal Mavi --- */
html[data-theme="kurumsal"] {
  --bg: #f3f5f9; --surface: #ffffff; --surface-2: #e9edf4; --surface-3: #f7f9fc;
  --text: #1b2333; --muted: #5d697d; --line: #dfe4ec; --footer-bg: #13203a;
  --display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 10px; --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(19,32,58,.05), 0 4px 14px rgba(19,32,58,.06);
  --shadow-lg: 0 14px 40px rgba(19,32,58,.14);
}
html[data-theme="kurumsal"] h1, html[data-theme="kurumsal"] h2, html[data-theme="kurumsal"] h3, html[data-theme="kurumsal"] h4 { font-weight: 700; letter-spacing: -.02em; }
html[data-theme="kurumsal"] .header { background: var(--surface); box-shadow: 0 1px 0 var(--line); }
html[data-theme="kurumsal"] .btn { border-radius: 8px; }
html[data-theme="kurumsal"] .logo-mark { border-radius: 8px; }

/* --- Fıstık & Krema --- */
html[data-theme="fistik"] {
  --bg: #f6f7f0; --surface: #ffffff; --surface-2: #ecefe2; --surface-3: #f9faf5;
  --text: #22281c; --muted: #687060; --line: #e1e5d4; --footer-bg: #1d2718;
  --display: "DM Serif Display", Georgia, serif;
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(34,40,28,.04), 0 6px 18px rgba(34,40,28,.06);
}
html[data-theme="fistik"] h1, html[data-theme="fistik"] h2, html[data-theme="fistik"] h3 { font-weight: 400; letter-spacing: 0; }
html[data-theme="fistik"] .btn { border-radius: 999px; }
html[data-theme="fistik"] .badge-accent { color: #7a5a14; }

/* --- Çikolata & Karamel --- */
html[data-theme="cikolata"] {
  --bg: #f7f1ea; --surface: #fffdfa; --surface-2: #f0e6db; --surface-3: #fbf6f0;
  --text: #2b1d16; --muted: #7b685c; --line: #eadccd; --footer-bg: #22140e;
  --display: "Playfair Display", Georgia, serif;
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(43,29,22,.05), 0 6px 18px rgba(43,29,22,.08);
}
html[data-theme="cikolata"] h1, html[data-theme="cikolata"] h2 { font-weight: 700; }
html[data-theme="cikolata"] .header { border-bottom: 2px solid color-mix(in srgb, var(--accent) 35%, var(--line)); }

/* Tema seçici (admin) */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.theme-card { position: relative; display: block; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; background: var(--surface); transition: border-color .15s, transform .15s; }
.theme-card:hover { transform: translateY(-2px); }
.theme-card input { position: absolute; opacity: 0; }
.theme-card:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.theme-card .preview { height: 86px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.theme-card .preview .bar { height: 12px; border-radius: 4px; }
.theme-card .preview .row { display: flex; gap: 6px; flex: 1; }
.theme-card .preview .blk { flex: 1; border-radius: 6px; }
.theme-card .preview .pill { width: 46px; height: 14px; border-radius: 7px; }
.theme-card .meta { padding: 8px 12px 12px; }
.theme-card .meta strong { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.theme-card .meta .check-ic { display: none; color: var(--brand); }
.theme-card:has(input:checked) .check-ic { display: inline; }
.theme-card .meta span { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 2px; }

/* Eğitmen başvurusu — komisyon kutusu */
.text-success { color: var(--success); }
.commission-box { border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line)); background: linear-gradient(135deg, var(--brand-50), var(--accent-50)); border-radius: var(--radius); padding: 16px; margin: 4px 0 16px; }
.commission-head { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.commission-rate { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.commission-rate small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.commission-rate strong { font-family: var(--display); font-size: 30px; line-height: 1.1; color: var(--brand); }
.commission-rate.is-you strong { color: var(--success); }
.commission-calc { background: var(--surface); border-radius: 10px; padding: 10px 12px; border: 1px dashed var(--line); }
.commission-calc .flex { flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.commission-calc input { height: 36px; }

/* Kapak & profil fotoğrafı konumlandırma */
.cover-tools { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; z-index: 2; }
.cover-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: rgba(0,0,0,.55); color: #fff; font: 600 13px var(--font); cursor: pointer; backdrop-filter: blur(6px); }
.cover-btn:hover { background: rgba(0,0,0,.72); color: #fff; }
.profile-cover .cover-tools { bottom: auto; top: 14px; }
.is-positioning { cursor: grab; touch-action: none; user-select: none; outline: 3px dashed color-mix(in srgb, var(--accent) 80%, #fff); outline-offset: -3px; }
.is-positioning:active { cursor: grabbing; }
.is-positioning .cover-tools { display: none; }
.cover-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 14px; background: linear-gradient(transparent, rgba(0,0,0,.65)); z-index: 3; cursor: default; }
.cover-hint { color: #fff; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.cover-preview { position: relative; }
.avatar-edit-btn { position: absolute; right: 4px; bottom: 6px; width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--surface); background: var(--brand); color: var(--on-brand); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); padding: 0; }
.avatar-edit-btn:hover { background: var(--brand-600); color: var(--on-brand); }
.avatar-modal .card { max-width: 400px; }
.crop-stage { position: relative; width: min(300px, 100%); aspect-ratio: 1; margin: 0 auto; overflow: hidden; border-radius: 16px; background: #111; touch-action: none; cursor: grab; user-select: none; }
.crop-stage:active { cursor: grabbing; }
.crop-stage img { position: absolute; max-width: none; pointer-events: none; }
.crop-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0,0,0,.55); border: 2px solid rgba(255,255,255,.85); pointer-events: none; }
.crop-zoom { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.crop-zoom input { flex: 1; accent-color: var(--brand); }
@media (max-width: 640px) {
  .cover-btn span { display: none; }
  .cover-btn { width: 36px; padding: 0; justify-content: center; }
  .profile-cover .cover-tools { top: 10px; right: 10px; }
}
.profile-cover .cover-bar { top: 0; bottom: auto; background: linear-gradient(rgba(0,0,0,.65), transparent); border-radius: 0; }

/* ---------- Sürüm 3: mobil uyum düzeltmeleri ---------- */
.layout-3 > *, .layout-2 > *, .layout-side > *, .grid > *, .auth-form > *, .admin-main > * { min-width: 0; }
@media (max-width: 560px) {
  .recipe-meta { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .auth-form { padding: 20px 12px; }
  .auth-form .card[style*="padding"] { padding: 20px !important; }
  .role-picker { grid-template-columns: minmax(0, 1fr); }
  .container { padding: 0 12px; }
}
.flex > div, .user-line > div { min-width: 0; }
.user-line .meta, .user-line .name { overflow-wrap: anywhere; }
#bulk-form, .admin-body .page-head .flex { flex-wrap: wrap; }
code { overflow-wrap: anywhere; word-break: break-word; }

/* =====================================================================
   Sürüm 4 — Canlı oturumlar, eğitim dosya paketleri, canlı sohbet
   ===================================================================== */
.show-mobile { display: none !important; }
@media (max-width: 720px) { .show-mobile { display: inline-flex !important; } }
.dd-explore { display: none; }
@media (max-width: 720px) { .dd-explore { display: block; } }
.hide-desktop { display: none; }
@media (max-width: 900px) { .hide-desktop { display: inline-flex; } }

/* Canlı göstergeleri */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ef3b3b; box-shadow: 0 0 0 0 rgba(239, 59, 59, .6); animation: livePulse 1.6s infinite; vertical-align: middle; }
.live-dot.big { width: 12px; height: 12px; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(239, 59, 59, .55); } 70% { box-shadow: 0 0 0 9px rgba(239, 59, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 59, 59, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.live-badge { background: #ef3b3b; color: #fff; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; letter-spacing: .04em; }
.live-badge .live-dot { background: #fff; }
.nav-link { position: relative; }
.nav-live { position: absolute; top: 6px; right: 6px; }
.live-hero { background: radial-gradient(600px 200px at 100% 0, color-mix(in srgb, #ef3b3b 10%, transparent), transparent 70%), var(--surface); }

.live-card .media { position: relative; }
.live-card .live-art, .live-cover .live-art { display: grid; place-items: center; width: 100%; height: 100%; color: var(--brand); background: linear-gradient(135deg, var(--brand-50), var(--accent-50)); }
.live-card.is-live { box-shadow: 0 0 0 2px #ef3b3b, var(--shadow); }
.date-chip { position: absolute; left: 12px; bottom: 12px; background: var(--surface); color: var(--text); border-radius: 10px; padding: 4px 10px; text-align: center; line-height: 1.05; box-shadow: var(--shadow); }
.date-chip b { display: block; font-size: 20px; font-family: var(--display); }
.date-chip span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.live-cover { position: relative; aspect-ratio: 16/7; background: var(--surface-2); }
.live-cover img { width: 100%; height: 100%; object-fit: cover; }
.live-cover .tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.countdown { display: inline-flex; align-items: baseline; gap: 6px; background: var(--brand-50); border-radius: 12px; padding: 10px 14px; margin: 4px 0 14px; font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.countdown span { font-size: 24px; font-weight: 800; color: var(--brand); font-family: var(--display); min-width: 1.4em; text-align: right; }
.countdown small { color: var(--muted); margin-right: 6px; }
.attendee-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }

/* Canlı oda */
.live-room { padding: 12px 0 24px; }
.live-room-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.live-title { font-size: 17px; min-width: 0; overflow-wrap: anywhere; }
.live-room-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: stretch; }
.live-stage { overflow: hidden; min-height: 420px; display: flex; }
.live-stage > * { flex: 1; }
.jitsi-frame { width: 100%; min-height: 70vh; background: #111; display: flex; }
.jitsi-frame iframe { width: 100%; min-height: 70vh; border: 0; }
.stage-msg { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 40px 20px; color: var(--muted); width: 100%; }
.jitsi-frame .stage-msg { color: #ddd; }
.stage-msg.big h2 { color: var(--text); margin: 6px 0 0; }
.stage-msg .ic-wrap { border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.live-chat { display: flex; flex-direction: column; height: min(78vh, 720px); overflow: hidden; }
.live-chat-body { flex: 1; overflow-y: auto; padding: 8px 14px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.lc-msg { display: flex; gap: 8px; align-items: flex-start; position: relative; font-size: 14px; }
.lc-msg.host .lc-text { background: var(--brand-50); }
.lc-msg.mine .lc-text { background: var(--accent-50); }
.lc-name { font-weight: 600; font-size: 12.5px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lc-name .badge { font-size: 10px; padding: 1px 6px; }
.lc-time { color: var(--muted); font-weight: 400; font-size: 11px; margin-left: auto; }
.lc-text { background: var(--surface-2); border-radius: 4px 12px 12px 12px; padding: 6px 10px; margin-top: 2px; overflow-wrap: anywhere; }
.lc-del { position: absolute; right: 0; top: 0; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 4px; opacity: 0; }
.lc-msg:hover .lc-del, .lc-del:focus { opacity: 1; }
.live-chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.live-chat-form input { flex: 1; min-width: 0; }
@media (max-width: 900px) {
  .live-room-body { grid-template-columns: minmax(0, 1fr); }
  .live-stage, .jitsi-frame, .jitsi-frame iframe { min-height: 56vh; }
  .live-chat { height: 60vh; }
  .live-chat.collapsed { height: auto; }
  .live-chat.collapsed .live-chat-body, .live-chat.collapsed .live-chat-form { display: none; }
  .lc-del { opacity: 1; }
}

/* Dosya paketleri */
.file-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.card-body .file-row, .lesson-files .file-row { padding: 10px 0; }
.file-row.locked { opacity: .65; }
.file-ic { font-size: 22px; width: 32px; text-align: center; flex-shrink: 0; }
.file-title { display: block; font-weight: 600; overflow-wrap: anywhere; }
.file-row .grow { min-width: 0; flex: 1 1 180px; }
.file-row.edit select { max-width: 220px; height: 36px; }
.file-row.edit input[type=text] { height: 36px; }
.drop-zone { position: relative; border: 2px dashed var(--line); border-radius: 14px; padding: 26px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); transition: .15s; background: var(--surface); }
.drop-zone strong { color: var(--text); }
.drop-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop-zone.over { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }
.upload-list { display: flex; flex-direction: column; gap: 8px; }
.up-item { background: var(--surface); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.up-item .flex-between { gap: 8px; }
.up-item .nm { font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.up-item.err { color: var(--danger); }
.up-item.ok .timer-bar span { background: var(--success); }

/* Mesajlaşma: yazıyor / çevrimiçi */
/* "hidden" özniteliği her zaman gizler (display: flex/grid tanımlı öğelerde de) */
[hidden] { display: none !important; }
.typing-line { padding: 4px 18px 6px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.typing-line .dots { display: inline-flex; gap: 3px; }
.typing-line .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: tdot 1.2s infinite; }
.typing-line .dots i:nth-child(2) { animation-delay: .15s; } .typing-line .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
.presence { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--success); margin-right: 5px; vertical-align: middle; }
.msg.me.seen .time::after { content: ' ✓✓'; color: var(--info); }
.live-filters select { width: auto; min-width: 150px; }
@media (max-width: 560px) { .live-filters { width: 100%; } .live-filters select { flex: 1; min-width: 0; } }
@media (max-width: 560px) { .live-title { font-size: 15px; line-height: 1.3; } .live-room-head .flex { gap: 6px !important; } }

/* ---------- Sertifikalar ---------- */
.cert-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.cert-tpl { overflow: hidden; }
.cert-tpl .thumb { position: relative; display: block; aspect-ratio: 1.414; background: var(--surface-2); }
.cert-tpl .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cert-tpl .thumb .zoom { position: absolute; right: 8px; top: 8px; background: rgba(0, 0, 0, .55); color: #fff; border-radius: 8px; padding: 4px 6px; opacity: 0; transition: .15s; }
.cert-tpl:hover .zoom { opacity: 1; }
/* Eğitim formu: sertifika tasarımı seçici (kendi tasarımları + hazır şablonlar) */
.cert-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 520px; overflow-y: auto; padding: 4px; }
.cert-opt { position: relative; display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.cert-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cert-opt .ph { display: block; aspect-ratio: 1.414; background: var(--surface-2); }
.cert-opt .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cert-opt .nm { padding: 6px 8px; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.cert-opt .zoom { position: absolute; right: 6px; top: 6px; background: rgba(0, 0, 0, .55); color: #fff; border-radius: 8px; padding: 4px 6px; display: grid; place-items: center; }
.cert-opt:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.cert-opt:has(input:checked)::after { content: '✓'; position: absolute; left: 6px; top: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: var(--on-brand, #fff); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.cert-opt:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 560px) { .cert-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; } }
/* Eğitim sayfası: örnek sertifika düğmesi */
.cert-sample { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed color-mix(in srgb, var(--brand) 45%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--brand) 6%, var(--surface)); color: var(--text); }
.cert-sample > svg:first-child { color: var(--brand); flex: none; }
.cert-sample span { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.cert-sample small { color: var(--muted); font-size: 12px; }
.cert-sample:hover { border-color: var(--brand); color: var(--text); }
.cert-card .media img { object-fit: cover; }
.cert-preview { overflow: hidden; padding: 0; }
.cert-preview img { width: 100%; height: auto; display: block; }
.cert-verify { display: flex; align-items: center; gap: 16px; }
.cert-verify .cv-ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.cert-verify.ok .cv-ic { background: var(--success-50); color: var(--success); }
.cert-verify.bad .cv-ic { background: var(--danger-50); color: var(--danger); }
.cert-verify.bad { border: 1px solid var(--danger); }

.ce-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ce-name { max-width: 380px; font-weight: 600; }
.ce-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.ce-panel { display: flex; flex-direction: column; gap: 12px; position: sticky; top: calc(var(--header-h) + 12px); max-height: calc(100vh - var(--header-h) - 24px); max-height: calc(100dvh - var(--header-h) - 24px); overflow-y: auto; }
.ce-stage { position: relative; overflow: hidden; padding: 0; user-select: none; -webkit-user-select: none; touch-action: none; aspect-ratio: 1.414; }
.ce-stage > img { width: 100%; height: 100%; object-fit: fill; display: block; pointer-events: none; }
.ce-layer { position: absolute; inset: 0; }
.ce-el { position: absolute; transform: translateY(-50%); cursor: move; line-height: 1.25; white-space: pre-line; outline: 1px dashed transparent; outline-offset: 2px; border-radius: 2px; }
.ce-el:hover { outline-color: rgba(47, 111, 191, .5); }
.ce-el.sel { outline: 2px solid #2f6fbf; }
.ce-el.is-hidden { opacity: .25; }
.ce-image { display: flex; justify-content: center; }
.ce-image img { width: 100%; height: auto; pointer-events: none; }
.ce-image.empty { border: 2px dashed rgba(127, 127, 127, .6); color: rgba(100, 100, 100, .9); align-items: center; font-size: 12px; background: rgba(255, 255, 255, .35); }
.ce-guide { position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px dashed #e0457b; pointer-events: none; }
.ce-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ce-li { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 4px 9px; font-size: 12.5px; cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.ce-li.active { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.ce-li.off { opacity: .5; text-decoration: line-through; }
.ph-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.ph-list .chip { border: 0; cursor: pointer; font-size: 11.5px; padding: 3px 8px; font-family: ui-monospace, monospace; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: 6px 12px; cursor: pointer; color: var(--text); }
.seg button.active { background: var(--brand); color: var(--on-brand); }
@media (max-width: 960px) {
  .ce-body { grid-template-columns: minmax(0, 1fr); }
  .ce-panel { position: static; max-height: none; }
}
#sertifika .btn { white-space: normal; text-align: center; height: auto; min-height: 40px; }
.cert-gallery > .card, .grid > .card { margin-top: 0; }
.ce-qr { transform: translateY(-50%); background: #fff; border-radius: 6%; overflow: hidden; }
.ce-qr img { width: 100%; height: 100%; display: block; pointer-events: none; image-rendering: pixelated; }
.ce-qr.no-plate { background: transparent; }
.ce-qr.no-plate img { mix-blend-mode: multiply; }
.cert-editor-page [hidden] { display: none !important; }

/* ---------- Hata sayfaları (404 / 403 / 500) ---------- */
.err-page { padding-top: 40px; padding-bottom: 64px; }
.err-hero { max-width: 640px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.err-code { display: flex; align-items: center; justify-content: center; gap: 6px; line-height: 1; color: var(--text); }
.err-code > span { font-family: var(--display); font-weight: 800; font-size: clamp(96px, 22vw, 168px); letter-spacing: -.04em;
  background: linear-gradient(160deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.err-cupcake { width: clamp(84px, 18vw, 132px); height: auto; margin: 0 -4px; filter: drop-shadow(0 10px 18px color-mix(in srgb, var(--brand) 25%, transparent)); }
.err-cherry { transform-origin: 60px 40px; animation: err-wobble 2.6s ease-in-out infinite; }
@keyframes err-wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(8deg); } }
@media (prefers-reduced-motion: reduce) { .err-cherry { animation: none; } }
.err-hero h1 { font-family: var(--display); font-size: clamp(26px, 5vw, 36px); margin: 6px 0 0; }
.err-hero > p { max-width: 520px; margin: 0; }
.err-search { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 520px; margin-top: 8px; padding: 6px 6px 6px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); color: var(--muted); }
.err-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--text); padding: 8px 0; outline: none; }
.err-search .btn { border-radius: 999px; }
.err-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.err-links a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-weight: 600; font-size: 14px; }
.err-links a:hover { background: var(--brand); color: var(--on-brand); }
.err-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.err-suggest { margin-top: 48px; }
.err-suggest h2 { font-size: 20px; margin-bottom: 14px; text-align: center; }
@media (max-width: 560px) { .err-page { padding-top: 24px; } .err-search { padding-left: 12px; } .err-hero h1 { font-size: 24px; } }

/* ---------- Mesaja yanıt ---------- */
.msg { position: relative; cursor: pointer; }
.msg-quote { display: block; margin: -2px -4px 6px; padding: 6px 9px; border-radius: 10px; border-left: 3px solid currentColor; font-size: 12.5px; line-height: 1.35;
  background: rgba(0, 0, 0, .06); color: inherit; opacity: .9; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; text-decoration: none; }
.msg.me .msg-quote { background: rgba(255, 255, 255, .18); }
.msg-quote strong { display: block; font-size: 12px; margin-bottom: 1px; }
.msg-quote:hover { opacity: 1; }
.msg-reply-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); font-size: 14px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; }
.msg.them .msg-reply-btn { right: -36px; }
.msg.me .msg-reply-btn { left: -36px; }
.msg:hover .msg-reply-btn, .msg-reply-btn:focus-visible { opacity: 1; }
@media (hover: none) { .msg-reply-btn { display: none; } }
.msg.flash { animation: msg-flash 1.4s ease-out; }
@keyframes msg-flash { 0%, 40% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 60%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.reply-bar { display: flex; align-items: center; gap: 10px; margin: 0 12px; padding: 8px 8px 8px 12px; border-left: 3px solid var(--brand); border-radius: 8px;
  background: var(--brand-50); font-size: 13px; }
.reply-bar strong { display: block; color: var(--brand); font-size: 12px; }
.reply-bar [data-reply-text] { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.thread-blocked { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ---------- @kişi / #etiket önerisi ---------- */
.mention-box { position: absolute; z-index: 120; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 4px; max-height: 280px; overflow-y: auto; }
.mention-box button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 9px; border: 0; border-radius: 9px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.mention-box button.on, .mention-box button:hover { background: var(--brand-50); }
.mention-box img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.mention-box span { min-width: 0; }
.mention-box b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mention-box small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-hash { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-weight: 800; flex: none; }
.mb-verified { color: #1d9bf0; font-size: 12px; }
a.mention, a.hashtag { font-weight: 600; }
/* ---------- Etiket sayfası ---------- */
.tag-head { flex-direction: row; align-items: center; gap: 14px; }
.tag-mark { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none; font-size: 30px; font-weight: 800; color: var(--on-brand); background: linear-gradient(135deg, var(--brand), var(--accent)); }

/* ---------- Takip listelerinde arama ---------- */
.people-search { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; margin-bottom: 16px; color: var(--muted); }
.people-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--text); padding: 8px 0; outline: none; }
@media (max-width: 560px) { .people-search [data-people-count] { display: none; } }

/* ---------- Yapay zekâ: Şefe sor, tarif önerisi, yönetim ---------- */
.ai-chat { scroll-margin-top: 90px; }
.ai-msgs { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 4px; max-height: 520px; overflow-y: auto; padding-right: 2px; }
.ai-msg { padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; max-width: 92%; overflow-wrap: anywhere; }
.ai-msg p { margin: 0 0 6px; } .ai-msg p:last-child { margin-bottom: 0; }
.ai-msg ul { margin: 4px 0 6px; padding-left: 20px; } .ai-msg li { margin: 2px 0; }
.ai-msg.me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 5px; white-space: pre-wrap; }
.ai-msg.bot { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 5px; }
.ai-msg.pending { color: var(--muted); }
.ai-msg.err { align-self: stretch; max-width: none; background: var(--warning-50); color: var(--warning); font-size: 13.5px; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.ai-chips .chip { border: 0; cursor: pointer; font: inherit; font-size: 12.5px; }
.ai-chips .chip:hover { filter: brightness(.96); }
.ai-ask { display: flex; gap: 8px; align-items: flex-end; margin-top: 12px; }
.ai-ask textarea { flex: 1; min-height: 44px; resize: none; }
.ai-ask.busy button { opacity: .6; pointer-events: none; }
.ai-dots { display: inline-flex; gap: 3px; margin-right: 4px; vertical-align: middle; }
.ai-dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .35; animation: ai-dot 1.1s infinite; }
.ai-dots i:nth-child(2) { animation-delay: .18s; } .ai-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes ai-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: .9; transform: translateY(-3px); } }
.ai-review { border: 1px dashed var(--brand); background: var(--brand-50); border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; }
.ai-review-out { margin-top: 12px; background: var(--surface); border-radius: 12px; padding: 14px; font-size: 14px; }
.ai-head { display: flex; gap: 12px; align-items: center; }
.ai-score { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; font-size: 20px; line-height: 1; }
.ai-score small { font-size: 10px; font-weight: 600; opacity: .85; display: block; margin-top: -10px; }
.ai-sec { margin-top: 12px; } .ai-sec ul { margin: 4px 0 0; padding-left: 20px; } .ai-sec li { margin: 3px 0; }
.ai-sec.good strong { color: var(--success); } .ai-sec.tip strong { color: var(--brand); } .ai-sec.warn strong { color: var(--warning); }
.ai-prov { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.ai-prov.is-default { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.ai-prov > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.ai-prov > summary::-webkit-details-marker { display: none; }
.ai-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.ai-form label.check { flex-direction: row; font-weight: 500; }
.ai-form label[hidden] { display: none !important; }
/* Google ile devam et */
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; font-weight: 600; }
.btn-google:hover { background: #f8f9fa; color: #1f1f1f; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 16px 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Hikâyeler (Instagram mantığı) ---------- */
.story-tray { display: flex; gap: 14px; overflow-x: auto; padding: 14px 16px 10px; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius, 16px); scrollbar-width: none; }
.story-tray::-webkit-scrollbar { display: none; }
.story-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; flex: none; width: 70px; }
.story-item .nm { font-size: 12px; color: var(--text); max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-ring { position: relative; width: 66px; height: 66px; padding: 3px; border-radius: 50%; border: 0; cursor: pointer; background: conic-gradient(from 210deg, var(--accent), var(--brand), #833ab4, var(--accent)); display: grid; place-items: center; }
.story-ring img, .story-ring .avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); background: var(--surface-2); }
.story-ring.seen { background: var(--line); }
.story-ring.empty { background: transparent; }
.story-ring.empty img { border-color: transparent; }
.story-ring.xl { width: auto; height: auto; padding: 4px; }
.story-ring.xl img { border-width: 4px; }
.story-add { position: absolute; top: 46px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--surface); background: #0095f6; color: #fff; font-weight: 800; font-size: 15px; line-height: 1; display: grid; place-items: center; cursor: pointer; padding: 0; }
.story-create .card { max-width: 440px; }
.story-create .seg { display: flex; gap: 6px; background: var(--surface-2); padding: 4px; border-radius: 12px; margin-bottom: 12px; }
.story-create .seg button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; border: 0; border-radius: 9px; background: none; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.story-create .seg button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.story-stage { position: relative; aspect-ratio: 9 / 14; max-height: 52vh; width: 100%; border-radius: 14px; background: #111; overflow: hidden; display: grid; place-items: center; }
.story-pick { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #ddd; cursor: pointer; text-align: center; padding: 20px; font-size: 14px; }
.story-preview { position: absolute; inset: 0; }
.story-preview img, .story-preview video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.story-change { position: absolute; right: 10px; bottom: 10px; }
.story-text { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent !important; border: 0 !important; box-shadow: none !important; color: #fff; font-size: 24px; font-weight: 700; text-align: center; padding: 30% 24px 0; resize: none; text-shadow: 0 1px 6px rgba(0,0,0,.25); }
.story-text::placeholder { color: rgba(255,255,255,.75); }
.story-bgs { display: flex; gap: 8px; margin-top: 10px; }
.story-bgs button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.story-bgs button.active { border-color: var(--text); box-shadow: 0 0 0 2px var(--surface) inset; }
.upload-progress { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 10px; }
.upload-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width .2s; }
body.sv-open { overflow: hidden; }
.story-viewer { position: fixed; inset: 0; z-index: 200; background: #111; display: grid; place-items: center; }
.story-viewer[hidden] { display: none !important; }
.sv-frame { position: relative; width: min(100vw, calc(100dvh * 9 / 16)); height: 100dvh; max-height: 100dvh; background: #000; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
@media (min-width: 721px) { .sv-frame { height: min(94dvh, 900px); width: min(94dvh * 9 / 16, 506px); border-radius: 14px; } }
.sv-bars { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 4px; z-index: 5; }
.sv-bars span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.sv-bars i { display: block; height: 100%; width: 0; background: #fff; }
.sv-head { position: absolute; top: 18px; left: 10px; right: 6px; display: flex; align-items: center; justify-content: space-between; z-index: 6; }
.sv-user { display: flex; align-items: center; gap: 8px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.sv-user:hover { color: #fff; }
.sv-user img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,.4); }
.sv-user small { opacity: .8; font-weight: 400; margin-left: 4px; }
.sv-tools { display: flex; gap: 2px; }
.sv-tools button { background: none; border: 0; color: #fff; font-size: 17px; padding: 8px 10px; cursor: pointer; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.sv-media { position: absolute; inset: 0; display: grid; place-items: center; }
.sv-media img, .sv-media video { position: relative; width: 100%; height: 100%; object-fit: contain; z-index: 1; }
.sv-blur { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(24px) brightness(.55); }
.sv-text { color: #fff; font-size: clamp(22px, 5vw, 30px); font-weight: 700; text-align: center; padding: 24px; white-space: pre-wrap; overflow-wrap: anywhere; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.sv-caption { position: absolute; left: 0; right: 0; bottom: 78px; z-index: 6; text-align: center; color: #fff; font-size: 15px; padding: 8px 18px; background: linear-gradient(transparent, rgba(0,0,0,.45)); pointer-events: none; }
.sv-caption[hidden] { display: none; }
.sv-nav { position: absolute; top: 70px; bottom: 80px; width: 35%; z-index: 4; background: none; border: 0; cursor: pointer; }
.sv-nav.prev { left: 0; } .sv-nav.next { right: 0; width: 65%; }
.sv-reply { position: absolute; left: 10px; right: 10px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 7; display: flex; gap: 8px; align-items: center; }
.sv-reply[hidden], .sv-own[hidden] { display: none; }
.sv-reply input { flex: 1; background: transparent !important; border: 1px solid rgba(255,255,255,.7) !important; color: #fff !important; border-radius: 999px; height: 44px; padding: 0 16px; box-shadow: none !important; }
.sv-reply input::placeholder { color: rgba(255,255,255,.85); }
.sv-reply button { background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; padding: 4px 6px; line-height: 1; }
.sv-like.on { color: #ff3040; }
.sv-like.pop { animation: sv-pop .35s; }
@keyframes sv-pop { 50% { transform: scale(1.35); } }
.sv-own { position: absolute; left: 0; right: 0; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 7; display: flex; justify-content: space-between; padding: 0 14px; }
.sv-own button { display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,.35); color: #fff; border: 0; border-radius: 999px; padding: 9px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.sv-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 60%; z-index: 9; background: var(--surface); color: var(--text); border-radius: 16px 16px 0 0; display: flex; flex-direction: column; }
.sv-sheet[hidden] { display: none; }
.sv-sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sv-sheet-head button { background: none; border: 0; font-size: 18px; cursor: pointer; color: var(--text); }
.sv-sheet-list { overflow-y: auto; padding: 6px 12px 16px; }
.sv-viewer { display: flex; align-items: center; gap: 10px; padding: 8px 4px; color: var(--text); }
.sv-viewer img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.sv-viewer span { flex: 1; display: flex; flex-direction: column; } .sv-viewer small { color: var(--muted); }
.sv-viewer b { color: #ff3040; }
.msg-story { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.msg-story small { opacity: .75; font-size: 11.5px; }
.msg-story img { width: 90px; height: 150px; object-fit: cover; border-radius: 10px; }
.msg-story b { width: 90px; height: 150px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 11px; padding: 6px; text-align: center; overflow: hidden; }
.msg-story em { font-size: 12.5px; opacity: .7; }
a.msg-story { color: inherit; text-decoration: none; }
/* Hikâye: yorum · kişilere gönder · Reels sorusu */
.sv-reply .sv-ic { position: relative; display: grid; place-items: center; }
.sv-reply .sv-ic svg { width: 26px; height: 26px; }
.sv-reply .sv-ic i { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10px; font-weight: 700; }
.sv-reply [hidden] { display: none; }
.sv-reply .sv-send-text { font-size: 15px; font-weight: 700; }
/* Sahibinin alt çubuğu: görüntüleme · yorum · Gönder · Sil dar çerçevede de tek satıra sığar */
.sv-own { gap: 6px; padding: 0 10px; justify-content: space-between; }
.sv-own button { padding: 8px 12px; white-space: nowrap; flex: 0 1 auto; min-width: 0; }
.sv-csheet { max-height: 70%; }
.sv-csheet .sv-sheet-list { flex: 1; }
.sv-comment { display: flex; gap: 10px; padding: 8px 2px; align-items: flex-start; }
.sv-comment.reply { padding-left: 40px; }
.sv-comment img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.sv-comment > div { flex: 1; min-width: 0; font-size: 14px; }
.sv-comment p { margin: 2px 0 0; overflow-wrap: anywhere; }
.sv-comment button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; padding: 4px; }
.sv-cform { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sv-cform input { flex: 1; border-radius: 999px; }
.send-sheet.over-story { z-index: 210; }
.story-ask { position: absolute; inset: 0; z-index: 5; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.45); border-radius: inherit; padding: 12px; }
.story-ask[hidden] { display: none; }
.story-ask-box { width: 100%; background: var(--surface); color: var(--text); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.story-ask-box strong { font-size: 17px; }
.story-ask-box p { margin: 0 0 6px; }
.story-create .card { position: relative; }
/* Videodaki yorum paneli (Instagram gibi): video üstte küçülür, panel altta; yükseklikleri app.js görünür alana göre verir */
.reels.commenting { overflow: hidden; }
.reel.commenting video { height: var(--cs-top, 38%) !important; object-fit: contain !important; }
.reel.commenting .reel-side, .reel.commenting .reel-info, .reel.commenting .reel-comment, .reel.commenting .reel-progress, .reels.commenting > .vv-close, .vv:has(.csheet) > .vv-close { display: none !important; }
.csheet { position: fixed; left: 0; right: 0; bottom: 0; height: 62%; z-index: 230; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; background: var(--surface); color: var(--text); border-radius: 16px 16px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.35); }
.csheet-head { position: relative; display: flex; justify-content: center; align-items: center; padding: 18px 16px 12px; border-bottom: 1px solid var(--line); }
.csheet-grip { position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line); }
.csheet-x { position: absolute; right: 10px; top: 10px; background: none; border: 0; font-size: 18px; color: var(--text); cursor: pointer; padding: 6px; }
.csheet-list { flex: 1; overflow-y: auto; padding: 6px 14px; overscroll-behavior: contain; }
.cs-row { display: flex; gap: 10px; padding: 8px 0; align-items: flex-start; }
.cs-row.reply { padding-left: 42px; }
.cs-row img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.cs-row > div { flex: 1; min-width: 0; font-size: 14px; }
.cs-row p { margin: 2px 0 0; overflow-wrap: anywhere; }
.cs-row button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; padding: 4px; }
.cs-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 40px 10px; }
.csheet-form { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.csheet-form input { flex: 1; border-radius: 999px; }
.csheet-login { display: block; text-align: center; padding: 14px; border-top: 1px solid var(--line); font-weight: 600; }
/* Sohbette ✈ ile gönderilen gönderi kartı (Instagram gibi) */
.msg-post { display: flex; flex-direction: column; width: 230px; max-width: 100%; margin: -2px 0 4px; border-radius: 14px; overflow: hidden; background: var(--surface); color: var(--text); border: 1px solid var(--line); text-decoration: none; }
.msg-post.gone { padding: 10px 12px; color: var(--muted); }
/* Kart balonsuz durur; not (varsa) altında kendi balonunda */
.msg.msg-has-post { background: transparent !important; border: 0 !important; padding: 0; color: var(--text); display: flex; flex-direction: column; }
.msg.me.msg-has-post { align-items: flex-end; }
.msg.msg-has-post .msg-text:not([hidden]) { display: inline-block; padding: 9px 13px; border-radius: 16px; margin-top: 2px; }
.msg.me.msg-has-post .msg-text { background: var(--brand); color: var(--on-brand); border-bottom-right-radius: 5px; }
.msg.them.msg-has-post .msg-text { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.msg-has-post .time { color: var(--muted); }
.mp-user { display: flex; align-items: center; gap: 7px; padding: 8px 10px; font-size: 13px; }
.mp-user img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.mp-media { position: relative; display: block; aspect-ratio: 4 / 5; background: #000; }
.mp-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-play, .mp-multi { position: absolute; top: 8px; right: 9px; color: #fff; font-style: normal; font-size: 15px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.mp-text { padding: 8px 10px 10px; font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Hikâyede de: yorum paneli açıkken görsel / video üstte kalan alana küçülür */
.sv-csheet { height: 62%; max-height: none; }
.story-viewer.commenting .sv-media { bottom: auto; height: 38%; }
/* Oluştur menüsü */
.create-list { display: flex; flex-direction: column; gap: 6px; }
.create-list a, .create-list button { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; border: 0; background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.create-list a:hover, .create-list button:hover { background: var(--surface-2); color: var(--text); }
.create-list span { display: flex; flex-direction: column; } .create-list small { color: var(--muted); }
/* Akış videosu */
/* Instagram gibi: kutu videonun oranında (en dik 4:5, en yatay 1.91:1 — app.js ayarlar), video kutuyu doldurur;
   yanlarda siyah şerit kalmaz, gerekirse kenarlardan kırpılır. Dokununca tam ekranda gerçek oranında açılır. */
/* width:100% şart: yoksa max-height dik videoda en-boy oranı üzerinden genişliği de daraltır, kutu sola yaslanıp sağda boşluk kalır */
.post-video { position: relative; background: #000; cursor: pointer; width: 100%; aspect-ratio: 4 / 5; max-height: 640px; overflow: hidden; }
.post-video video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.vid-sound { position: absolute; right: 12px; bottom: 12px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; cursor: pointer; }
.vid-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 54px; text-shadow: 0 2px 12px rgba(0,0,0,.5); pointer-events: none; }
.post-video.playing .vid-play { display: none; }
.composer .preview .composer-video { width: 100%; max-height: 320px; border-radius: 10px; background: #000; }

/* ---------- Telefon görünümü: Instagram düzeni ---------- */
@media (max-width: 720px) {
  .bottom-nav a .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bottom-nav a { padding: 8px 12px; color: var(--text); }
  .bottom-nav a.active { color: var(--text); }
  .bottom-nav a.active svg { stroke-width: 2.6; }
  .bottom-nav .plus { width: 30px; height: 30px; border-radius: 9px; background: none; color: var(--text); border: 2px solid var(--text); margin-top: 0; }
  .bottom-nav a.me .avatar { width: 26px; height: 26px; }
  .bottom-nav a.me.active .avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--text); }
  body { padding-bottom: 64px; }
}
@media (max-width: 600px) {
  .story-tray { margin: -8px -12px 8px; border-radius: 0; border-left: 0; border-right: 0; border-top: 0; padding: 10px 12px 8px; }
  .post { display: flex; flex-direction: column; margin: 0 -12px 10px; border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .post > .pinned-tag { order: 0; }
  .post > .post-head { order: 1; padding: 10px 12px 8px; align-items: center; }
  .post > .post-head .avatar { width: 34px; height: 34px; }
  .post > .post-head .badge { display: none; }
  .post > .post-images, .post > .post-video { order: 2; }
  /* müzik etiketi resmin hemen altında (sırası verilmeyince gönderinin en üstüne çıkıyordu) */
  .post > .post-music { order: 2; }
  .post > .post-shared { order: 2; margin: 0 12px 6px; }
  .post > .post-actions { order: 3; border-top: 0; padding: 2px 4px 0; justify-content: flex-start; }
  .post-actions button, .post-actions a, .post-actions .share-menu > button { flex: none; padding: 8px 9px; }
  .post-actions .lbl { display: none; }
  .post-actions svg { width: 25px; height: 25px; }
  .post > .post-stats { order: 4; padding: 0 12px 2px; font-weight: 700; color: var(--text); font-size: 14px; }
  .post > .post-body { order: 5; padding: 2px 12px 10px; }
  .post > .post-body .text { font-size: 14.5px; }
  .post-images { border-radius: 0; }
  .post-video { max-height: 75vh; }
}
@media (min-width: 561px) and (max-width: 600px) { .story-tray { margin-left: -16px; margin-right: -16px; } .post { margin-left: -16px; margin-right: -16px; } }
@media (max-width: 600px) {
  .post:not(:has(.post-images, .post-video, .post-shared)) > .post-body { order: 2; padding-bottom: 4px; }
  .post-actions .share-menu { flex: none; }
  .post > .post-stats { font-weight: 400; color: var(--muted); display: flex; gap: 10px; }
  .post > .post-stats [data-like-wrap] { font-weight: 700; color: var(--text); }
}

/* İşletme ihtiyaç talebi: tür seçimi */
.need-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.need-picker input { position: absolute; opacity: 0; pointer-events: none; }
.need-picker label { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--surface); transition: border-color .15s, background .15s; }
.need-picker label .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.need-picker label small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.need-picker input:checked + label { border-color: var(--brand); background: var(--brand-50); }
.need-picker input:focus-visible + label { box-shadow: 0 0 0 3px var(--brand-100); }

/* Belgeler */
.doc-list { display: flex; flex-direction: column; gap: 8px; }
.doc-row { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.doc-thumb { flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.doc-thumb .pdf { font-weight: 800; font-size: 13px; color: #fff; background: #d93a3a; padding: 4px 8px; border-radius: 6px; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.doc-card { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); background: var(--surface); }
.doc-card:hover { border-color: var(--brand); color: var(--text); }
.doc-card .doc-thumb { width: 100%; height: 130px; }
.doc-card small { color: var(--muted); font-size: 12px; }

/* ---------- Sesli mesaj ve görüntülü arama ---------- */
.thread-form { position: relative; align-items: center; }
.thread-form .voice-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; font-size: 18px; }
.thread-form.recording > textarea, .thread-form.recording > .voice-btn, .thread-form.recording > button[type=submit] { visibility: hidden; }
.voice-rec { position: absolute; inset: 12px; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.voice-rec[hidden] { display: none; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: recPulse 1s infinite; flex: none; }
@keyframes recPulse { 50% { opacity: .25; } }
.msg-audio { display: flex; align-items: center; gap: 8px; }
.msg-audio audio { height: 36px; width: 230px; max-width: 62vw; }
.msg-audio small { opacity: .75; font-size: 11px; white-space: nowrap; }
/* Fotoğraf / video mesajı (Instagram gibi): balonsuz, köşeleri yuvarlak */
.msg.msg-has-media { padding: 4px; }
.msg-media img, .msg-media video { display: block; width: 240px; max-width: 62vw; max-height: 340px; object-fit: cover; border-radius: 14px; background: #000; cursor: zoom-in; }
.msg-video { position: relative; display: block; cursor: pointer; }
.msg-video video { cursor: pointer; }
.msg-video .vid-play { font-size: 40px; }
.thread-form .photo-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.thread-form.recording > .photo-btn { visibility: hidden; }
/* Gönderilen, henüz görülmemiş mesaj: tek gri tik; görülünce çift mavi tik */
.msg.me:not(.msg-call):not(.seen) .time::after { content: ' ✓'; opacity: .7; }
.msg.me.seen .time::after { color: #34b7f1; }
.msg.msg-call { font-style: italic; opacity: .9; }
.call-btn { flex: none; }
.call-page { padding-top: 16px; padding-bottom: 24px; }
.call-head { gap: 10px; align-items: center; margin-bottom: 12px; }
.call-stage { position: relative; overflow: hidden; min-height: 70vh; background: #111; display: flex; }
.call-frame { position: absolute; inset: 0; }
.call-frame iframe { width: 100%; height: 100%; border: 0; }
.call-msg { position: relative; z-index: 1; margin: auto; text-align: center; color: #eee; padding: 24px; }
.call-msg[hidden] { display: none; }
.call-msg .muted { color: #bbb; }
.call-avatar, .call-incoming .avatar-xl { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.call-actions { gap: 14px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.call-incoming .card { max-width: 340px; margin: auto; text-align: center; }
@media (max-width: 720px) { .call-stage { min-height: 64vh; } }
.modal.call-incoming { z-index: 300; animation: none; }

/* ---------- Telefonda açılır menüler: alttan açılan panel ----------
   Masaüstündeki gibi düğmenin yanında açılan menü telefonda ekranın solundan/üstünden taşıyor, tarif kartı gibi
   kutuların içinde kesiliyor, alt menünün arkasında kalıyordu. Telefonda menü her zaman ekranın altında, tam
   genişlikte bir panel olarak açılır; arkası kararır, boşluğa dokununca kapanır. */
@media (max-width: 720px) {
  /* bulanık arka plan sabit konumlu menüyü üst çubuğa hapsediyordu */
  .header, .admin-top { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
  .dropdown.open {
    position: fixed !important; left: 8px !important; right: 8px !important; top: auto !important;
    bottom: calc(8px + env(safe-area-inset-bottom)) !important; min-width: 0; width: auto;
    max-height: min(72vh, calc(100dvh - 80px)) !important; overflow-y: auto; overscroll-behavior: contain;
    z-index: 140; border-radius: 18px; padding: 8px; animation: dd-sheet .18s ease-out;
  }
  .dropdown.open a, .dropdown.open button { padding: 12px 14px; font-size: 15px; min-height: 46px; }
  .dd-backdrop { position: fixed; inset: 0; z-index: 135; background: rgba(15, 10, 12, .45); animation: fade .15s; }
}
.dd-backdrop[hidden] { display: none; }
@keyframes dd-sheet { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: none } }

/* ---------- Tam ekran resim (mobil uygulamadaki galeri gibi) ---------- */
html.gal-lock, html.gal-lock body { overflow: hidden; }
html.gal-lock body { position: fixed; left: 0; right: 0; width: 100%; }
.gal { position: fixed; inset: 0; z-index: 150; background: #000; color: #fff; display: flex; flex-direction: column; touch-action: none; overscroll-behavior: contain; user-select: none; -webkit-user-select: none; animation: fade .15s; }
.gal-track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-x; overscroll-behavior: contain; }
.gal-track::-webkit-scrollbar { display: none; }
.gal.zoomed .gal-track { overflow: hidden; touch-action: none; }
.gal-slide { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; overflow: hidden; }
.gal-slide img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center center; will-change: transform; -webkit-user-drag: none; pointer-events: none; }
.gal[data-fx] .gal-slide img { filter: var(--post-fx); }
.gal-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; transition: opacity .2s; }
.gal-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; cursor: pointer; }
.gal-btn svg { width: 22px; height: 22px; }
.gal-count { background: rgba(0, 0, 0, .55); padding: 5px 12px; border-radius: 14px; font-weight: 700; font-size: 14px; }
.gal-count:empty { visibility: hidden; }
.gal-sp { width: 40px; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.gal-nav.prev { left: 12px; } .gal-nav.next { right: 12px; }
@media (hover: none) { .gal-nav { display: none; } }
.gal-bottom { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0, 0, 0, .75) 30%); padding: 28px 8px calc(10px + env(safe-area-inset-bottom)); transition: opacity .2s; }
.gal.chrome-off .gal-top, .gal.chrome-off .gal-bottom, .gal.chrome-off .gal-nav { opacity: 0; pointer-events: none; }
.gal-dots { display: flex; justify-content: center; gap: 6px; padding: 4px 0 8px; }
.gal-dots i { width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .4); transition: width .2s; }
.gal-dots i.on { width: 16px; background: #fff; }
.gal-actions { display: flex; align-items: center; gap: 4px; }
.gal-act { display: inline-flex; align-items: center; gap: 6px; padding: 8px; border: 0; background: none; color: #fff; font: 700 14px var(--font); cursor: pointer; }
.gal-act svg { width: 26px; height: 26px; }
.gal-act.liked { color: #ff3040; }
.gal-act.liked svg { fill: #ff3040; stroke: #ff3040; }
.gal-act span:empty { display: none; }
.gal-caption { padding: 2px 10px 4px; font-size: 14px; line-height: 1.45; max-height: 4.4em; overflow: hidden; cursor: pointer; }
.gal-caption.open { max-height: 40vh; overflow-y: auto; }
.gal-caption:empty { display: none; }
.gal-caption b { margin-right: 6px; }
.gal-heart { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; }
.gal-heart svg { width: 120px; height: 120px; fill: #fff; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .45)); }
.gal-heart.burst { animation: gal-burst .9s ease-out; }
@keyframes gal-burst { 0% { opacity: 0; transform: scale(.3) } 25% { opacity: 1; transform: scale(1.1) } 45% { transform: scale(1) } 80% { opacity: 1 } 100% { opacity: 0; transform: scale(1) } }.gal[hidden] { display: none; }
.post-images a.more { position: relative; }
.post-images a.more::after { content: attr(data-more); position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: #fff; font-size: 28px; font-weight: 800; }
@media (max-width: 720px) { .header:has(.dropdown.open), .admin-top:has(.dropdown.open) { z-index: 141; } }
@media (max-width: 720px) { .hide-mobile-inline { display: none !important; } .nav-menu-icon { padding: 4px; } }

/* ---------- Telefonda Instagram düzeni (site) ---------- */
.post-actions .cnt { display: none; }
.nav-create { color: var(--text); }
@media (max-width: 720px) {
  /* üst çubuk: + · logo (ortada) · ♡ — hesap menüsü yalnızca kendi profilinde */
  .header .container { gap: 4px; }
  .nav-create { align-items: center; justify-content: center; width: 42px; height: 42px; flex: none; border-radius: 12px; }
  .header .logo { flex: 1; justify-content: center; min-width: 0; margin: 0; }
  .header .logo img { max-height: 36px; }
  .header .nav { margin-left: 0; flex: none; }
  .user-menu:not(.here) { display: none; }
  .header .nav-icon .show-mobile svg { width: 26px; height: 26px; }
  /* alt menü rozet */
  .bottom-nav .badge-dot { position: absolute; top: 2px; right: 4px; }
}
@media (max-width: 600px) {
  /* gönderi: sayılar simgelerin yanında, ayrı istatistik satırı yok, beğenilen kalp kırmızı */
  .post > .post-stats { display: none; }
  .post-actions .cnt { display: inline; margin-left: -3px; font-size: 14px; font-weight: 700; color: var(--text); }
  .post-actions .cnt:empty { display: none; }
  .post-actions button, .post-actions a { color: var(--text); gap: 5px; }
  .post-actions .liked, .post-actions .liked .cnt { color: #ff3040; }
  .post-actions .liked svg { fill: #ff3040; stroke: #ff3040; }
}
/* ---------- Ara: bölüm kutucukları + keşfet ızgarası (Instagram keşfet gibi) ---------- */
.section-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.section-tiles a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 84px; border-radius: 14px; background: var(--c); color: #fff; font-weight: 700; font-size: 14px; transition: transform .15s, filter .15s; }
.section-tiles a:hover { color: #fff; filter: brightness(1.06); transform: translateY(-2px); }
@media (max-width: 720px) { .section-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .section-tiles a { height: 74px; font-size: 13px; } }
.explore-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.explore-grid a { position: relative; display: block; aspect-ratio: 1; background: var(--surface-2); overflow: hidden; }
.explore-grid img, .explore-grid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.explore-grid .ex-badge { position: absolute; top: 6px; right: 6px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }
@media (max-width: 720px) { .page:has(> .explore-grid) .explore-grid, .explore-grid { margin-left: -12px; margin-right: -12px; } }

/* ---------- Videolar (Instagram Reels gibi) ---------- */
body:has(.reels) .footer, body:has(.reels) .ad-header { display: none; }
.reels { height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; background: #000; max-width: 480px; margin: 0 auto; scrollbar-width: none; }
.reels::-webkit-scrollbar { display: none; }
.reel { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: grid; place-items: center; overflow: hidden; color: #fff; background: #000; }
.reel video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.reel-side { position: absolute; right: 8px; bottom: 96px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.reel-side button, .reel-side a { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; padding: 0; color: #fff; font: 700 13px var(--font); cursor: pointer; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .55)); }
.reel-side .cnt:empty { display: none; }
.reel-side .liked { color: #ff3040; }
.reel-side .liked svg { fill: #ff3040; stroke: #ff3040; }
.reel .snd-on { display: none; } .reel.sound .snd-on { display: inline; } .reel.sound .snd-off { display: none; }
.reel-info { position: absolute; left: 0; right: 60px; bottom: 0; padding: 48px 14px 16px; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); pointer-events: none; }
.reel-info a, .reel-info .reel-caption { pointer-events: auto; }
.reel-user { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.reel-user:hover { color: #fff; }
.reel-user .avatar { width: 32px; height: 32px; }
.reel-caption { margin-top: 8px; font-size: 14px; line-height: 1.4; max-height: 2.8em; overflow: hidden; cursor: pointer; }
.reel-caption.open { max-height: 40vh; overflow-y: auto; }
.reel-caption a { color: #fff; font-weight: 700; }
.reel-flash { position: absolute; width: 76px; height: 76px; border-radius: 50%; background: rgba(0, 0, 0, .45); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.reel-flash.show { opacity: 1; }
.reel-flash svg { width: 36px; height: 36px; color: #fff; }
.reel-heart { position: absolute; pointer-events: none; }
.reel-heart svg { width: 110px; height: 110px; fill: #fff; stroke: #fff; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .45)); }
.reel-heart.burst { animation: gal-burst .9s ease-out forwards; }
.reel-empty { color: var(--text); background: var(--bg); }
.reel-more-page { background: #000; }
@media (max-width: 720px) { .reels { max-width: none; } }
/* ---------- Videolar: Instagram Reels düzeni (Takip Et, sağ sütun, ilerleme, Yorum ekle) ---------- */
.reel-side { bottom: 118px; gap: 18px; }
.reel-side .saved svg { fill: #fff; }
.reel-more { position: relative; }
.reel-more .dropdown { right: 0; left: auto; bottom: calc(100% + 6px); top: auto; color: var(--text); }
.reel-info { bottom: 62px; padding-bottom: 10px; }
.reel-who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reel-follow { pointer-events: auto; background: none; border: 1.2px solid rgba(255, 255, 255, .85); color: #fff; border-radius: 9px; padding: 4px 12px; font: 700 13px var(--font); cursor: pointer; }
.reel-follow.btn-outline { opacity: .8; }
.reel-caption { max-height: 1.45em; }
.reel-progress { position: absolute; left: 0; right: 0; bottom: 58px; height: 2px; background: rgba(255, 255, 255, .25); }
.reel-progress span { display: block; height: 100%; width: 0; background: #fff; }
.reel-comment { position: absolute; left: 10px; right: 10px; bottom: 8px; display: block; padding: 11px 18px; border-radius: 22px; background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .8); font-size: 15px; }
.reel-comment:hover { color: #fff; background: rgba(255, 255, 255, .2); }
.reel video.cover { object-fit: cover; }

/* ---------- ✈ Gönder paneli (Instagram'daki paylaşım paneli gibi) ---------- */
html.ss-open, html.ss-open body { overflow: hidden; }
.send-sheet { position: fixed; inset: 0; z-index: 170; display: flex; align-items: flex-end; justify-content: center; }
.send-sheet[hidden] { display: none; }
.ss-backdrop { position: absolute; inset: 0; background: rgba(15, 10, 12, .5); animation: fade .15s; touch-action: none; }
.ss-panel { position: relative; width: 100%; max-width: 560px; height: min(78vh, 640px); height: min(78dvh, 640px); background: var(--surface); color: var(--text); border-radius: 22px 22px 0 0; display: flex; flex-direction: column; overflow: hidden; animation: dd-sheet .2s ease-out; box-shadow: var(--shadow-lg); }
@media (min-width: 721px) { .send-sheet { align-items: center; } .ss-panel { border-radius: 18px; height: min(72vh, 620px); } .ss-handle { display: none; } }
.ss-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 10px auto 4px; flex: none; }
.ss-head { display: flex; align-items: center; justify-content: center; position: relative; padding: 6px 14px 10px; flex: none; }
.ss-head strong { font-size: 16px; }
.ss-x { position: absolute; right: 10px; top: 0; background: none; border: 0; color: var(--text); padding: 6px; cursor: pointer; }
.ss-x svg { width: 22px; height: 22px; }
@media (max-width: 720px) { .ss-head { display: none; } }
.ss-search { display: flex; align-items: center; gap: 8px; margin: 4px 14px 10px; padding: 0 12px; border-radius: 12px; background: var(--surface-2); flex: none; }
.ss-search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.ss-search input { flex: 1; min-width: 0; border: 0; background: none; padding: 10px 0; font: inherit; color: var(--text); outline: none; box-shadow: none; }
.ss-search[hidden], .ss-people[hidden] { display: none; }
.ss-people { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 4px; padding: 4px 10px 10px; }
.ss-person { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; border-radius: 12px; }
.ss-person:hover { background: var(--surface-2); }
.ss-av { position: relative; width: 74px; height: 74px; }
.ss-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.ss-av i { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: #0095f6; color: #fff; border: 2px solid var(--surface); display: none; place-items: center; }
.ss-av i svg { width: 14px; height: 14px; stroke-width: 3; }
.ss-person.on .ss-av i { display: grid; }
.ss-person.on .ss-av img { opacity: .85; }
.ss-nm { font-size: 13px; line-height: 1.3; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.ss-empty { grid-column: 1 / -1; padding: 28px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.ss-bottom { flex: none; border-top: 1px solid var(--line); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); }
.ss-compose { display: flex; flex-direction: column; gap: 10px; padding: 0 14px; }
.ss-compose[hidden], .ss-actions[hidden] { display: none; }
.ss-compose input { border-radius: 20px; padding: 10px 14px; }
.ss-send { background: #0095f6; color: #fff; border: 0; border-radius: 12px; padding: 11px; font-weight: 700; width: 100%; }
.ss-send:hover { background: #1877f2; color: #fff; }
.ss-actions { display: flex; gap: 4px; overflow-x: auto; padding: 0 10px; scrollbar-width: none; }
.ss-actions::-webkit-scrollbar { display: none; }
.ss-act { flex: none; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; color: var(--text); font: 12.5px/1.25 var(--font); text-align: center; cursor: pointer; }
.ss-ic { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; }
.ss-ic svg { width: 26px; height: 26px; }
.ss-gray { background: var(--surface-2); color: var(--text); }
.ss-wa { background: #25d366; color: #fff; }
.ss-fb { background: #1877f2; color: #fff; }
.ss-x-brand { background: #111; color: #fff; }
/* gönderi kartı: 🔖 sağda (telefonda Instagram gibi) */
.post-actions .act-save.saved svg { fill: currentColor; }
@media (max-width: 600px) { .post-actions .act-save { margin-left: auto; } }/* Instagram gibi: video, altındaki siyah 'Yorum ekle…' şeridinin üstünde biter (kutu videonun üstüne binmez) */
.reel { box-sizing: border-box; padding-bottom: 58px; }
.reel video { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% - 58px); }

/* Tam ekran video: sitenin her yerindeki videoya dokununca açılan görüntüleyici (.vv) ve /videolar sayfasının tam ekranı.
   Tarayıcı tam ekranı yoksa (iPhone) sabit katman ekranı kaplar (.vv, .reels.vv-fs). */
html.vv-lock, html.vv-lock body { overflow: hidden; }
.vv { position: fixed; inset: 0; z-index: 160; background: #000; }
.vv > .reels { height: 100%; max-width: none; margin: 0; }
.reels:fullscreen { max-width: none; }
.reels.vv-fs { position: fixed; inset: 0; z-index: 160; height: auto !important; max-width: none; margin: 0; }
.vv-close { position: fixed; top: calc(12px + env(safe-area-inset-top)); left: 12px; z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .5); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 20px; }
.vv-close svg { width: 22px; height: 22px; }
.reels > .vv-close { display: none; }
.reels:fullscreen > .vv-close, .reels.vv-fs > .vv-close { display: grid; }
.vv [data-reel-fullscreen] { display: none; }
/* Yatay ekranda (bilgisayar, yan çevrilmiş telefon) dikey video kırpılmaz, sığdırılır */
@media (orientation: landscape) { .vv .reel video.cover, .reels:fullscreen .reel video.cover, .reels.vv-fs .reel video.cover { object-fit: contain; } }/* Kartı olmayan video (mesajdaki, ya da kartı daha gelmemiş): alttaki 'Yorum ekle…' şeridi yok, video tüm yüksekliği alır */
.vv .reel:not(:has(.reel-comment)) { padding-bottom: 0; }
.vv .reel:not(:has(.reel-comment)) video { height: 100%; }
.vv .reel:not(:has(.reel-comment)) .reel-progress { bottom: 0; }/* Basılı tutunca (video donar) yazılar ve düğmeler gizlenir; uzun basışta tarayıcının indirme menüsü açılmaz */
.reel.holding .reel-side, .reel.holding .reel-info, .reel.holding .reel-progress, .reel.holding .reel-comment { opacity: 0; transition: opacity .15s; }
.reel video { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
/* Üye rehberi kartları (/rehber ve kayıt sayfasındaki 'Neler yapabilirim?' penceresi) */
.guide-head{display:flex;gap:18px;align-items:flex-start;padding:26px;border-radius:20px;margin-bottom:22px;color:#fff;background:radial-gradient(circle at 85% 0,rgba(255,255,255,.25),transparent 50%),linear-gradient(135deg,var(--brand),color-mix(in srgb,var(--brand) 55%,var(--accent)))}
.guide-head h1{color:#fff;font-size:30px;margin-bottom:8px}
.guide-head p{margin:0;opacity:.95;line-height:1.65}
.guide-head-ic{flex:none;width:60px;height:60px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.18);border:2px solid rgba(255,255,255,.6)}
.guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.guide-card{margin:0!important;padding:20px 22px;border-top:4px solid var(--c);animation:lp-in .45s ease both;animation-delay:var(--d)}
.guide-card-head{display:flex;align-items:center;gap:12px;margin-bottom:8px}
.guide-card h2{font-size:18px;margin:0}
.guide-ic{flex:none;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;color:#fff;background:var(--c);box-shadow:0 4px 12px color-mix(in srgb,var(--c) 35%,transparent)}
.guide-card p,.guide-card li{line-height:1.6;font-size:14.5px}
.guide-card ul{padding-left:20px;margin:6px 0 0}
.guide-card li{margin:5px 0}
.guide-card li::marker{color:var(--c)}
@media (max-width:720px){.guide-grid{grid-template-columns:1fr}.guide-head{padding:18px;gap:12px;flex-direction:column}.guide-head h1{font-size:23px}.guide-head-ic{width:48px;height:48px}}
@media (prefers-reduced-motion:reduce){.guide-card{animation:none}}
/* Kayıt sayfası: gerçek görsellerden kolaj, sayılar, faydalar; telefonda formun üstünde kısa şerit */
.reg-side{justify-content:flex-start;gap:28px;padding:40px 48px}
.reg-mosaic{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;position:relative;z-index:1}
.reg-tile{aspect-ratio:1;border-radius:16px;overflow:hidden;display:grid;place-items:center;align-content:center;gap:6px;color:#fff;background:linear-gradient(145deg,var(--c),color-mix(in srgb,var(--c) 60%,#000));box-shadow:0 8px 22px rgba(0,0,0,.18);animation:lp-in .5s ease both;animation-delay:var(--d)}
.reg-tile:nth-child(even){transform:translateY(14px)}
.reg-tile{position:relative}
.reg-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.reg-tile small{font-size:12px;font-weight:600;opacity:.95;text-align:center;padding:0 6px}
.reg-pitch{position:relative;z-index:1}
.reg-kicker{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:99px;background:rgba(255,255,255,.18);font-size:13px;font-weight:600;margin-bottom:12px}
.reg-side h2{font-size:32px;line-height:1.2;margin-bottom:10px}
.reg-lead{opacity:.92;font-size:15.5px;line-height:1.6;margin:0 0 18px}
.reg-side .reg-benefits{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 20px}
.reg-side .reg-benefits li{margin:0;gap:10px;align-items:flex-start;padding:12px;border-radius:14px;background:rgba(255,255,255,.1);font-size:14px}
.reg-benefits strong{display:block;font-size:14.5px}
.reg-benefits small{display:block;opacity:.88;line-height:1.45;margin-top:2px}
.reg-ic{flex:none;width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:#fff;color:var(--c)}
.reg-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.reg-actions .btn-light{background:#fff;color:var(--brand);font-weight:700;box-shadow:0 6px 18px rgba(0,0,0,.18)}
.reg-video{display:inline-flex;align-items:center;gap:10px;color:inherit;padding:6px 14px 6px 6px;border-radius:99px;background:rgba(0,0,0,.18);text-decoration:none}
.reg-video:hover{color:inherit;background:rgba(0,0,0,.28)}
.reg-video strong{display:block;font-size:14px}
.reg-video small{display:block;font-size:12px;opacity:.85}
.reg-play{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--brand)}
.reg-roles label{align-items:flex-start;padding:16px 16px 14px}
.reg-roles label strong{font-size:16px}
.reg-role-ic{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;color:var(--c);background:color-mix(in srgb,var(--c) 14%,transparent);margin-bottom:6px;transition:.15s}
.reg-roles input:checked+label .reg-role-ic{background:var(--c);color:#fff}
.reg-roles input:checked+label{box-shadow:0 6px 18px color-mix(in srgb,var(--brand) 18%,transparent)}
.reg-free{display:flex;align-items:center;justify-content:center;gap:6px;font-size:13px;margin:12px 0 0}
.modal .card.guide-modal{max-width:920px;padding:0;display:flex;flex-direction:column;overflow:hidden}
.guide-modal-head{display:flex;align-items:center;gap:14px;padding:18px 20px;color:#fff;background:linear-gradient(135deg,var(--brand),color-mix(in srgb,var(--brand) 55%,var(--accent)))}
.guide-modal-head h2{flex:1;color:#fff;font-size:22px;margin:0}
.guide-modal-head .guide-head-ic{width:46px;height:46px}
.guide-modal-head .btn-ghost{color:#fff}
.guide-modal-body{overflow-y:auto;padding:20px;flex:1}
.guide-intro p{margin:0 0 16px;line-height:1.6}
.guide-modal-foot{padding:14px 20px;border-top:1px solid var(--line)}
@media (max-width:860px){
  .auth-side.reg-side{display:flex;padding:20px 16px 24px;gap:16px}
  .reg-mosaic{display:flex;overflow-x:auto;gap:8px;margin:0 -16px;padding:0 16px 6px;scrollbar-width:none}
  .reg-mosaic::-webkit-scrollbar{display:none}
  .reg-tile{flex:0 0 92px;border-radius:14px}
  .reg-tile:nth-child(even){transform:none}
  .reg-side h2{font-size:23px}
  .reg-lead{font-size:14.5px;margin-bottom:14px}
  .reg-side .reg-benefits{display:none}
  .reg-actions .btn{flex:1}
  .role-picker.reg-roles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .reg-roles label{padding:12px}
  .reg-role-ic{width:40px;height:40px}
  .auth-side.reg-side::after{display:none}
  .modal:has(.guide-modal){padding:0;place-items:end stretch}
  .modal .card.guide-modal{max-width:none;max-height:92dvh;border-radius:20px 20px 0 0}
}
@media (prefers-reduced-motion:reduce){.reg-tile{animation:none}}


/* ---------- Diller: bayrak, dil seçici, yönetim ---------- */
.lang-flag { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); flex: none; display: inline-block; vertical-align: middle; }
.lang-flag.lg { width: 36px; height: 27px; border-radius: 4px; }
.lang-flag-empty { display: inline-grid; place-items: center; font-size: 9px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.lang-flag-empty.lg { font-size: 11px; }
.lang-menu > .lang-btn { gap: 6px; padding: 6px 10px; }
.lang-menu .lang-code { font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.lang-menu .dropdown { min-width: 190px; }
.lang-menu .dropdown a.active { color: var(--brand); font-weight: 600; }
.lang-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 18px 0 4px; font-size: 13px; opacity: .9; }
.lang-footer a { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.lang-footer a.active { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.dd-langs { display: flex; width: 100%; flex-wrap: wrap; gap: 4px; padding: 4px 0; }
.dd-langs a { width: auto !important; flex: 1 1 auto; justify-content: center; border: 1px solid var(--line); }
.dd-langs a.active { border-color: var(--brand); color: var(--brand); }
.lang-progress { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.lang-progress span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.lang-table .lang-edit-row td { padding-top: 0; border-top: 0; }
.lang-table details summary { cursor: pointer; color: var(--muted); }
.lang-edit { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 14px; padding: 12px 0 6px; align-items: end; }
.lang-edit label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.lang-edit label.check { flex-direction: row; font-weight: 400; }
.lang-strings textarea { width: 100%; min-height: 38px; font-size: 14px; resize: vertical; }
.lang-strings td { vertical-align: top; }
/* Sağdan sola diller */
[dir="rtl"] .dropdown { right: auto; left: 0; }
[dir="rtl"] .search-box svg { left: auto; right: 14px; }
[dir="rtl"] .search-box input { padding: 0 40px 0 16px; }
.lang-edit-file { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.lang-edit label.file-btn, label.file-btn { flex-direction: row; font-weight: 600; gap: 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Ürün maliyet hesaplama ---------- */
.cost-page input:not([type]), .cost-page input[inputmode] { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: inherit; color: var(--text); background: var(--surface); min-width: 0; }
.cost-page select { height: 40px; padding: 0 8px; min-width: 0; }
.cost-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.cost-main { min-width: 0; }
.cost-main .card + .card { margin-top: 16px; }
.cost-side { position: sticky; top: calc(var(--header-h) + 16px); }
.cost-step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font: 700 13px var(--font); margin-right: 4px; vertical-align: 2px; }
.cost-rows-head, .cost-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.25fr) minmax(0, 2fr) minmax(0, .85fr) 32px; gap: 8px; align-items: start; }
.cost-page:not(.fire-on) .cr-fire { display: none; }
.fire-on .cost-rows-head, .fire-on .cost-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.25fr) 62px minmax(0, 2fr) minmax(0, .85fr) 32px; }
.cr-buy { display: grid; grid-template-columns: minmax(0, .8fr) 74px auto minmax(0, 1.2fr); gap: 4px; align-items: center; }
.cr-buy > i { font-style: normal; color: var(--muted); }
.cr-pair-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cost-product { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 0 16px; }
.cost-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cost-chips .chip { border: 1px solid transparent; cursor: pointer; font: 500 13px var(--font); padding: 7px 12px; display: inline-flex; align-items: center; gap: 4px; }
.cost-chips .chip.on { background: var(--brand); color: var(--on-brand); }
.cost-profit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.cost-profit label { font-weight: 600; }
.cost-pct { width: 110px; }
.cost-extra .cx-hint { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); margin-top: -4px; }
.cost-extra .cx-hint:empty { display: none; }
.cost-more { margin-top: 16px; }
.cost-more > summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.cost-more > summary::-webkit-details-marker { display: none; }
.cost-more > summary::before { content: '▸'; color: var(--brand); }
.cost-more[open] > summary::before { content: '▾'; }
.cost-more[open] > summary { border-bottom: 1px solid var(--line); }
.cs-break li.cs-total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px; font-weight: 600; }
.cs-break li.cs-total i { background: none; }
.cost-rows-head { font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 0 6px; border-bottom: 1px solid var(--line); }
.cost-row { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.cost-row .cr-l { display: none; }
.cr-pair { display: grid; grid-template-columns: minmax(0, 1fr) 70px; gap: 4px; }
.cr-money { position: relative; }
.cr-money input { padding-right: 24px !important; }
.cr-money span { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none; }
.cr-note { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.cost-row.cr-old .cr-note { color: var(--warning); }
.cr-cost { text-align: right; padding-top: 10px; white-space: nowrap; }
.cr-cost b { font-size: 14px; }
.cr-cost small { display: block; font-size: 11px; color: var(--muted); }
.cost-row.cr-bad .cr-cost b { color: var(--danger); font-size: 12px; white-space: normal; }
.cr-del { margin-top: 4px; font-size: 18px; line-height: 1; }
.cost-extras { display: grid; gap: 8px; margin-bottom: 10px; }
.cost-extra { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr) minmax(70px, .8fr) 32px; gap: 8px; align-items: center; }
.cost-extra .cx-cost { text-align: right; font-size: 14px; white-space: nowrap; }
.cost-extra .cr-del { margin-top: 0; }
/* Sonuç paneli */
.cost-summary h3 { margin-bottom: 12px; }
.cs-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cs-kpi { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.cs-kpi span, .cs-kpi small { display: block; font-size: 12px; color: var(--muted); }
.cs-kpi strong { display: block; font-size: 18px; font-weight: 800; overflow-wrap: anywhere; }
.cs-kpi strong.neg { color: var(--danger); }
.cs-kpi.main { grid-column: 1 / -1; background: var(--brand); color: var(--on-brand); }
.cs-kpi.main span, .cs-kpi.main small { color: inherit; opacity: .85; }
.cs-kpi.main strong { font-size: 28px; }
.cs-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; margin: 14px 0 8px; background: var(--surface-2); }
.cs-break { list-style: none; margin: 0 0 10px; padding: 0; font-size: 13px; }
.cs-break li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 52px; gap: 8px; align-items: center; padding: 3px 0; }
.cs-break i { width: 10px; height: 10px; border-radius: 3px; }
.cs-break span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-break em { font-style: normal; color: var(--muted); text-align: right; }
.cs-bar .p0, .cs-break .p0 { background: var(--brand); } .cs-bar .p1, .cs-break .p1 { background: #e9a23b; } .cs-bar .p2, .cs-break .p2 { background: #3d76a8; } .cs-bar .p3, .cs-break .p3 { background: #3f8f5a; }
.cs-bar .p4, .cs-break .p4 { background: #7c5caa; } .cs-bar .p5, .cs-break .p5 { background: #968c92; } .cs-bar .p6, .cs-break .p6 { background: #d66a49; } .cs-bar .p7, .cs-break .p7 { background: #2c9696; }
.cs-price { margin: 0 0 10px; font-size: 13px; border-top: 1px solid var(--line); }
.cs-price div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.cs-price dt { color: var(--muted); } .cs-price dd { margin: 0; font-weight: 600; white-space: nowrap; }
.cs-current { border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.cs-current strong { display: block; font-size: 16px; }
.cs-current.good { background: var(--success-50); color: var(--success); }
.cs-current.warn { background: var(--warning-50); color: var(--warning); }
.cs-current.bad { background: var(--danger-50); color: var(--danger); }
.cs-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 12.5px; line-height: 1.45; }
.cs-notes li { padding: 7px 10px; border-radius: 8px; border-left: 3px solid; background: var(--surface-3); }
.cs-notes .danger { border-color: var(--danger); } .cs-notes .warning { border-color: var(--warning); } .cs-notes .info { border-color: var(--info); } .cs-notes .success { border-color: var(--success); }
.cost-export { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.cost-export .btn { padding: 0 6px; font-size: 13px; }
.cost-export[hidden], [data-export-hint][hidden] { display: none; }
.cost-mobile-bar { display: none; }
/* Kart listesi */
.cost-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.cost-card { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.cost-card .cc-head { color: var(--text); display: flex; flex-direction: column; gap: 2px; }
.cost-card .cc-head strong { font-size: 16px; }
.cc-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cc-nums div { background: var(--surface-2); border-radius: 10px; padding: 8px; min-width: 0; }
.cc-nums span { display: block; font-size: 11px; color: var(--muted); }
.cc-nums b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.cc-nums b.brand { color: var(--brand); } .cc-nums b.pos { color: var(--success); } .cc-nums b.neg { color: var(--danger); }
.cc-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.cc-actions form { display: inline; }
.cost-intro { max-width: 760px; }
/* Malzeme fiyatlarım */
.ing-add { display: grid; grid-template-columns: auto minmax(0, 1.6fr) minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 16px; }
.ing-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.ing-row:last-child { border-bottom: 0; }
.ing-row small { display: block; font-size: 11.5px; margin-top: 2px; }
.ing-head { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); border-radius: var(--radius) var(--radius) 0 0; }
.ing-row.ing-old { background: color-mix(in srgb, var(--warning) 7%, var(--surface)); }
.ing-act { display: flex; gap: 6px; justify-content: flex-end; }
/* Rapor */
.cost-report-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin: 8px 0 14px; }
.cost-paper { padding: 36px 40px; background: #fff; color: #211e22; }
.cost-share { position: fixed; inset: 0; z-index: 200; background: rgba(20, 12, 16, .55); display: grid; place-items: center; padding: 16px; }
.cost-share-box { width: min(380px, 100%); padding: 18px; display: grid; gap: 8px; }
@media (max-width: 1080px) { .cost-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
@media (max-width: 960px) {
  .cost-layout { grid-template-columns: minmax(0, 1fr); }
  .cost-side { position: static; }
  .cost-mobile-bar { display: flex; position: sticky; bottom: 12px; z-index: 30; margin-top: 16px; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px 8px 8px 14px; }
  .cost-mobile-bar a { color: var(--text); display: flex; flex-direction: column; line-height: 1.2; }
  .cost-mobile-bar strong { font-size: 18px; color: var(--brand); }
}
@media (max-width: 860px) {
  .cost-rows-head { display: none; }
  .cost-row, .fire-on .cost-row { grid-template-columns: repeat(2, minmax(0, 1fr)); position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 8px; gap: 8px 10px; }
  .cost-row .cr-pack { grid-column: 1 / -1; }
  .cost-rows .cost-row { grid-auto-flow: row dense; }
  .cost-product { grid-template-columns: minmax(0, 1fr); }
  .cost-row .cr-l { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
  .cost-row .cr-name { grid-column: 1 / -1; padding-right: 36px; }
  .cost-row .cr-cost { text-align: left; padding-top: 0; }
  .cost-row .cr-del { position: absolute; top: 6px; right: 6px; margin: 0; }
  .ing-head { display: none; }
  .ing-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ing-row > div:first-child { grid-column: 1 / -1; }
  .ing-add { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ing-add strong, .ing-add > input { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .cost-mobile-bar { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .cost-extra { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px; grid-template-areas: "n n d" "a p p" "c c c"; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
  .cost-extra [data-k=name] { grid-area: n; } .cost-extra .cr-money { grid-area: a; } .cost-extra select { grid-area: p; } .cost-extra .cr-del { grid-area: d; }
  .cost-extra .cx-cost { grid-area: c; text-align: left; font-size: 13px; }
  .cost-extra .cx-cost:empty { display: none; }
  .cost-paper { padding: 18px 16px; }
  .cost-report-bar { justify-content: flex-start; }
  .cc-nums b { font-size: 13px; }
}
@media print { .cost-paper { border: 0; box-shadow: none; padding: 0; } .cost-page { max-width: none !important; } }

/* ===== 8.15.0: rütbe ve üye grubu rozetleri, puan tablosu, profil ek alanları, menü/grup yönetimi ===== */
.rank-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap; color: var(--rk, #6b7280); background: color-mix(in srgb, var(--rk, #6b7280) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--rk, #6b7280) 28%, transparent); text-decoration: none; vertical-align: middle; }
a.rank-badge:hover { text-decoration: none; background: color-mix(in srgb, var(--rk, #6b7280) 20%, var(--surface)); }
.rank-badge .ic { flex-shrink: 0; }
.rank-badge.rank-lg { font-size: 13px; padding: 3px 11px 3px 8px; }
.group-badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; color: #fff; background: var(--gb, #6b7280); vertical-align: middle; }
.group-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--gb, #6b7280); margin-right: 7px; }
.rank-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rank-points { font-size: 18px; }
.rank-bar { display: block; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 10px 0 6px; }
.rank-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--brand); transition: width .4s ease; }
.side-rank { display: block; padding: 10px 12px 6px; margin-top: 8px; border-top: 1px solid var(--line); color: var(--text); text-align: left; }
.side-rank:hover { text-decoration: none; background: var(--surface-2); }
.side-rank-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side-rank .rank-bar { margin: 8px 0 4px; height: 6px; }
.dd-rank { display: flex; align-items: center; gap: 6px; margin-top: 4px; }

.profile-extra { margin: 4px 0 8px; }
.profile-extra-title { font-size: 15px; margin: 18px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 14px; }
.check-grid .check { margin: 0; }
.extra-value { font-size: 14px; }
.req { color: var(--danger); }

.more-filters { margin: 2px 0 12px; }
.more-filters > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; list-style: none; }
.more-filters > summary::-webkit-details-marker { display: none; }
.more-filters-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 14px; margin-top: 12px; align-items: end; }
.more-filters-grid .form-group { margin: 0; }
.mf-check { align-self: center; }

.lb-tabs { display: flex; flex-wrap: wrap; align-items: center; }
.lb-sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.lb-list { list-style: none; margin: 0; padding: 0; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.lb-row:last-child { border-bottom: 0; }
.lb-row.is-me { background: var(--brand-50); }
.lb-pos { width: 30px; flex-shrink: 0; text-align: center; font-weight: 800; color: var(--muted); font-size: 15px; }
.lb-pos.top { height: 30px; line-height: 30px; border-radius: 50%; color: #fff; font-size: 14px; }
.lb-pos.top-1 { background: #b7791f; }
.lb-pos.top-2 { background: #7b8794; }
.lb-pos.top-3 { background: #9c5b2e; }
.lb-row .avatar { width: 44px; height: 44px; }
.lb-who { min-width: 0; }
.lb-who .name { font-weight: 700; color: var(--text); }
.lb-score { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.lb-score strong { font-size: 17px; }
.lb-ranks, .lb-rules { list-style: none; margin: 0; padding: 6px 16px 10px; }
.lb-ranks li, .lb-rules li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.lb-ranks li:last-child, .lb-rules li:last-child { border-bottom: 0; }
.lb-rules strong { color: var(--success); white-space: nowrap; }
@media (max-width: 720px) {
  .lb-row { padding: 10px 12px; gap: 10px; }
  .lb-row .avatar { width: 38px; height: 38px; }
}

.icon-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-pick label { margin: 0; cursor: pointer; position: relative; }
.icon-pick input { position: absolute; opacity: 0; pointer-events: none; }
.icon-pick span { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted); background: var(--surface); }
.icon-pick input:checked + span { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.icon-pick input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 1px; }
.perm-table td { vertical-align: middle; }
.perm-table tr.is-custom td { background: var(--brand-50); }
.table tr.is-muted td { opacity: .55; }
.extra-check { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text); }
.extra-check .ic { color: var(--success); flex-shrink: 0; }

/* ---------- Paylaşım kutusu: soluk yer tutucu yazı ---------- */
.composer textarea::placeholder { color: var(--muted); opacity: .55; font-weight: 400; }
.composer .tools .btn.active { background: var(--brand-50); color: var(--brand); }

/* ---------- Anket hazırlama (paylaşım kutusu) ---------- */
.poll-builder { margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-3); display: flex; flex-direction: column; gap: 10px; }
.poll-builder[hidden] { display: none; }
.pb-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pb-head strong { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); }
.pb-questions { display: flex; flex-direction: column; gap: 10px; }
.pb-q { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.pb-q-row, .pb-o { display: flex; align-items: center; gap: 6px; }
.pb-q-row input[type=text], .pb-o input[type=text] { flex: 1; min-width: 0; height: 38px; }
.pb-q-text { font-weight: 600; }
.pb-num { font-weight: 700; color: var(--muted); min-width: 20px; }
.single-q .pb-num { display: none; }
.pb-opts { display: flex; flex-direction: column; gap: 6px; padding-left: 26px; }
.single-q .pb-opts { padding-left: 0; }
.pb-dot { width: 16px; height: 16px; border: 2px solid var(--line); border-radius: 50%; flex-shrink: 0; }
.pb-q.is-multi .pb-dot { border-radius: 4px; }
.pb-img-wrap { position: relative; flex-shrink: 0; }
.pb-img { margin: 0; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--muted); cursor: pointer; background: var(--surface) center / cover no-repeat; }
.pb-img:hover { color: var(--brand); border-color: var(--brand); }
.pb-img.has-img { border-style: solid; }
.pb-img.has-img svg { display: none; }
.pb-img-x { position: absolute; top: -7px; right: -7px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: var(--text); color: var(--surface); font-size: 13px; line-height: 18px; padding: 0; cursor: pointer; }
.pb-img-x[hidden] { display: none; }
.pb-del { width: 32px; height: 32px; flex-shrink: 0; border: 0; background: none; color: var(--muted); border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pb-del:hover { color: var(--danger); background: var(--danger-50); }
.pb-q-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-left: 20px; }
.single-q .pb-q-foot { padding-left: 0; }
.pb-multi { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.pb-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pb-dur { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.pb-dur select { width: auto; height: 34px; font-size: 13px; }

/* ---------- Gönderideki anket ---------- */
.poll { margin: 4px 16px 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-3); display: flex; flex-direction: column; gap: 12px; }
.poll form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.poll-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.poll-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--brand); }
.poll-q { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.poll-q + .poll-q { padding-top: 12px; border-top: 1px dashed var(--line); }
.poll-q-text { padding: 0; font-weight: 700; font-size: 15px; color: var(--text); line-height: 1.35; }
.poll-q-num { color: var(--muted); }
.poll-q-hint { font-weight: 400; }
.poll-q-img { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.poll-q-img img { display: block; width: 100%; max-height: 360px; object-fit: cover; }
.poll-q.poll-missing .poll-q-text { color: var(--danger); }
.poll-q.poll-missing .poll-opt { border-color: var(--danger); }
.poll-opts { display: flex; flex-direction: column; gap: 6px; }
.poll-opts.has-img { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.poll-opt { position: relative; margin: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; font-size: 14px; }
.poll-opt .po-row { display: flex; align-items: center; gap: 8px; padding: 9px 12px; min-height: 40px; position: relative; z-index: 1; }
.poll-opt .po-text { flex: 1; min-width: 0; overflow-wrap: break-word; }
.poll-opts.has-img .poll-opt .po-row { padding: 8px 10px; gap: 6px; }
.poll-opts.has-img .poll-opt .po-bar { margin: 0 10px 6px; }
.poll-opts.has-img .poll-opt .po-votes { padding: 0 10px 8px; }
.poll-opt .po-img { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.poll-opt .po-img img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
/* Seçim */
.poll-opt.is-choice { cursor: pointer; transition: border-color .15s, background .15s; }
.poll-opt.is-choice:hover { border-color: var(--brand); }
.poll-opt.is-choice input { position: absolute; opacity: 0; pointer-events: none; }
.po-mark { width: 18px; height: 18px; border: 2px solid var(--line); border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; transition: .15s; }
.poll-opt.is-choice input[type=checkbox] ~ .po-row .po-mark { border-radius: 5px; }
.poll-opt.is-choice input:checked ~ .po-row .po-mark { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 3px var(--surface); }
.poll-opt.is-choice:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.poll-opt.is-choice input:focus-visible ~ .po-row .po-mark { outline: 2px solid var(--brand); outline-offset: 2px; }
.poll-opt.is-static .po-mark { opacity: .6; }
/* Sonuç */
.poll-opt.is-result .po-row { padding-bottom: 4px; }
.poll-opt.is-result .po-pct { font-weight: 700; font-variant-numeric: tabular-nums; }
.poll-opt.is-result .po-check { display: inline-flex; vertical-align: -2px; color: var(--brand); }
.poll-opt .po-bar { height: 6px; margin: 0 12px 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.poll-opt .po-bar span { display: block; height: 100%; width: var(--pct, 0%); border-radius: inherit; background: color-mix(in srgb, var(--muted) 45%, transparent); transition: width .6s ease; }
.poll-opt.top .po-bar span { background: var(--brand); }
.poll-opt.top .po-text { font-weight: 600; }
.poll-opt.mine { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.poll-opt .po-votes { padding: 0 12px 8px; }
.poll-q-foot { margin-top: -2px; }
.poll-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.poll-foot .poll-private { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.poll-done { display: inline-flex; align-items: center; gap: 4px; color: var(--success); font-weight: 600; }
.poll-close { color: var(--muted); }
.poll-shared-link { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 16px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; }
.poll-shared-link:hover { border-color: var(--brand); }
.poll-shared-link .muted { font-weight: 400; }
@media (max-width: 720px) {
  .poll { margin: 4px 12px 10px; padding: 10px 12px; }
  .poll-opts.has-img { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pb-opts, .pb-q-foot { padding-left: 0; }
}
