/*!
 * 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)); }
}

/* ---------- Ü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); } }
.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; }
.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) ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, var(--accent-50), transparent 60%), radial-gradient(900px 500px at -10% 110%, var(--brand-100), transparent 60%), #fff; border-bottom: 1px solid var(--line); }
.hero .container { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 64px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.05; margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 520px; }
.hero .stats { display: flex; gap: 32px; margin-top: 30px; }
.hero .stats strong { display: block; font-family: var(--display); font-size: 30px; color: var(--text); }
.hero .stats span { color: var(--muted); font-size: 13px; }
.hero-art { position: relative; height: 420px; }
.hero-art .bubble { position: absolute; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 14px 16px; display: flex; gap: 12px; align-items: center; font-size: 14px; animation: float 6s ease-in-out infinite; max-width: 300px; }
.hero-art .bubble:nth-child(2) { animation-delay: -2s; }
.hero-art .bubble:nth-child(3) { animation-delay: -4s; }
.hero-art .circle { position: absolute; inset: 30px 40px; border-radius: 50%; background: conic-gradient(from 200deg, var(--brand), var(--accent), var(--brand-100), var(--brand)); opacity: .18; filter: blur(2px); }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
.feature { padding: 22px; }
.feature .ic-wrap { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); margin-bottom: 12px; }
.feature h3 { font-family: var(--font); font-weight: 700; font-size: 16px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }
.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; }
@media (max-width: 860px) { .hero .container { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 36px; } .hero-art { display: none; } }

/* ---------- 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: #fffcf9; }
.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"] .hero, 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; }
.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; }
/* 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 */
.post-video { position: relative; background: #000; cursor: pointer; }
.post-video video { display: block; width: 100%; max-height: 640px; object-fit: contain; 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; }
  .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 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; }
