/* ==========================================================================
   PETFORO — Tasarım Sistemi v2
   Yoğun forum düzeni; koyu başlık, renkli vurgular, kart ve tablo bileşenleri.
   Tamamen özgün marka dili; emoji yerine SVG ikonlar (partials/icons.ejs).
   ========================================================================== */

:root {
  --pf-brand: #0d9488;
  --pf-brand-dark: #0f766e;
  --pf-brand-deep: #115e59;
  --pf-brand-light: #ccfbf1;
  --pf-brand-ink: #134e4a;

  --pf-accent: #f97316;
  --pf-accent-dark: #c2410c;
  --pf-accent-light: #ffedd5;

  --pf-dark: #0f172a;
  --pf-dark-2: #1e293b;
  --pf-dark-3: #334155;

  --pf-surface: #ffffff;
  --pf-bg: #f1f5f9;
  --pf-bg-alt: #e2e8f0;

  --pf-text: #0f172a;
  --pf-text-2: #334155;
  --pf-muted: #64748b;
  --pf-border: #e2e8f0;

  --pf-success: #10b981;  --pf-success-bg: #d1fae5;  --pf-success-ink: #065f46;
  --pf-warning: #f59e0b;  --pf-warning-bg: #fef3c7;  --pf-warning-ink: #92400e;
  --pf-danger:  #ef4444;  --pf-danger-bg:  #fee2e2;  --pf-danger-ink:  #991b1b;
  --pf-info:    #3b82f6;  --pf-info-bg:    #dbeafe;  --pf-info-ink:    #1e40af;

  --pf-radius-sm: 6px;
  --pf-radius: 10px;
  --pf-radius-lg: 14px;
  --pf-shadow-sm: 0 1px 2px rgb(15 23 42 / .06);
  --pf-shadow: 0 4px 12px rgb(15 23 42 / .08);
  --pf-shadow-lg: 0 12px 28px rgb(15 23 42 / .14);

  --pf-header-h: 62px;
  --pf-nav-h: 46px;
  --pf-container: 1280px;
  --pf-sidebar-w: 300px;
  --pf-t: .18s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--pf-text);
  background: var(--pf-bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pf-brand-dark); text-decoration: none; }
a:hover { color: var(--pf-brand-deep); }
h1,h2,h3,h4 { margin: 0; font-weight: 700; line-height: 1.3; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .9rem; }
img, svg { vertical-align: middle; }

.ic { width: 18px; height: 18px; flex: none; }
.ic-sm { width: 15px; height: 15px; }
.ic-lg { width: 22px; height: 22px; }
.sr-only { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

.container { max-width: var(--pf-container); margin: 0 auto; padding: 0 20px; }

/* ==========================================================================
   DUYURU / REKLAM ŞERİTLERİ
   ========================================================================== */
.strip {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 9px 16px; font-size: .85rem; font-weight: 600; text-align: center;
}
.strip a { color: inherit; text-decoration: underline; }
.strip .strip-close { margin-left: auto; background:none; border:0; color:inherit; cursor:pointer; opacity:.75; display:flex; }
.strip .strip-close:hover { opacity: 1; }
.strip--brand { background: linear-gradient(90deg, var(--pf-brand-deep), var(--pf-brand)); color:#fff; }
.strip--amber { background: linear-gradient(90deg, #b45309, var(--pf-accent)); color:#fff; }
.strip--sky   { background: linear-gradient(90deg, #0369a1, #0ea5e9); color:#fff; }

/* ==========================================================================
   HEADER (KOYU)
   ========================================================================== */
.hdr { background: var(--pf-dark); color: #e2e8f0; position: sticky; top: 0; z-index: 120; box-shadow: 0 2px 10px rgb(2 6 23 / .35); }
.hdr-in {
  max-width: var(--pf-container); margin: 0 auto; padding: 0 20px;
  height: var(--pf-header-h); display: flex; align-items: center; gap: 18px;
}
.brand { display:flex; align-items:center; gap:10px; color:#fff; text-decoration:none; flex:none; }
.brand:hover { text-decoration: none; color:#fff; }
.brand-badge {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--pf-brand), var(--pf-brand-deep));
  display:grid; place-items:center; color:#fff;
  box-shadow: 0 4px 10px rgb(13 148 136 / .45);
}
.brand-badge .ic { width: 22px; height: 22px; }
.brand-badge .brand-logo { width: 24px; height: 24px; border-radius: 6px; }
.brand-name { font-size: 1.25rem; font-weight: 800; letter-spacing: -.3px; line-height: 1.1; }
.brand-tag { font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; }

.hdr-search { flex: 1; max-width: 460px; position: relative; }
.hdr-search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #94a3b8; width: 16px; height: 16px; }
.hdr-search input {
  width: 100%; height: 40px; padding: 0 14px 0 38px;
  background: var(--pf-dark-2); border: 1px solid var(--pf-dark-3); border-radius: 10px;
  color: #f1f5f9; font-size: .9rem; outline: none; transition: var(--pf-t);
}
.hdr-search input::placeholder { color: #64748b; }
.hdr-search input:focus { border-color: var(--pf-brand); background: #0b1220; box-shadow: 0 0 0 3px rgb(13 148 136 / .25); }

.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
/* form öğesi de flex içinde düzgün oturmalı (çıkış butonu) */
.hdr-logout { display: inline-flex; align-items: center; }
.hdr-logout-btn { background: transparent; }
.hdr-logout-btn:hover { background: rgb(239 68 68 / .18); color: #fca5a5; }
.hdr-icon-btn {
  position: relative; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; color: #cbd5e1; background: transparent; border: 0; cursor: pointer;
}
.hdr-icon-btn:hover { background: var(--pf-dark-2); color: #fff; }
.hdr-icon-btn .dot {
  position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--pf-accent); color: #fff; font-size: .65rem; font-weight: 800;
  border-radius: 999px; display: grid; place-items: center; line-height: 1;
}
.hdr-user { display: flex; align-items: center; gap: 10px; padding: 5px 10px 5px 6px; border-radius: 12px; color: #e2e8f0; }
.hdr-user:hover { background: var(--pf-dark-2); color: #fff; text-decoration: none; }
.hdr-user .who { line-height: 1.15; }
.hdr-user .who small { display: block; font-size: .68rem; color: #94a3b8; }
.hdr-user .who b { font-size: .85rem; font-weight: 700; }

.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: .95rem;
  background: linear-gradient(135deg, var(--pf-brand), var(--pf-brand-deep)); color: #fff;
  text-transform: uppercase;
}
.avatar--lg { width: 84px; height: 84px; font-size: 2rem; border: 3px solid #fff; box-shadow: var(--pf-shadow); }
.avatar--md { width: 42px; height: 42px; font-size: 1.1rem; }

/* Menü düğmesi (mobil) */
.hdr-burger { display: none; }

/* ==========================================================================
   NAV ŞERİDİ (AÇIK)
   ========================================================================== */
.navrow { background: var(--pf-surface); border-bottom: 1px solid var(--pf-border); position: sticky; top: var(--pf-header-h); z-index: 110; }
.navrow-in {
  max-width: var(--pf-container); margin: 0 auto; padding: 0 12px;
  height: var(--pf-nav-h); display: flex; align-items: center; gap: 4px;
  overflow-x: auto; scrollbar-width: none;
}
.navrow-in::-webkit-scrollbar { display: none; }
.navrow a {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 8px 12px; border-radius: 9px; font-size: .88rem; font-weight: 600;
  color: var(--pf-text-2); white-space: nowrap;
}
.navrow a .ic { color: var(--pf-muted); }
.navrow a:hover { background: var(--pf-bg); color: var(--pf-brand-dark); text-decoration: none; }
.navrow a:hover .ic { color: var(--pf-brand); }
.navrow a.on { background: var(--pf-brand-light); color: var(--pf-brand-ink); }
.navrow a.on .ic { color: var(--pf-brand-dark); }
.navrow .sep { width: 1px; height: 22px; background: var(--pf-border); margin: 0 6px; flex: none; }
.navrow .push { margin-left: auto; }

/* ==========================================================================
   GENEL YERLEŞİM (ANA + YAN SÜTUN)
   ========================================================================== */
.page { max-width: var(--pf-container); margin: 0 auto; padding: 20px 20px 40px; }
.layout { display: grid; grid-template-columns: minmax(0,1fr) var(--pf-sidebar-w); gap: 20px; align-items: start; }
.main { min-width: 0; }
.side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--pf-header-h) + var(--pf-nav-h) + 12px); }

@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; }
}

/* ==========================================================================
   KART / PANEL
   ========================================================================== */
.card { background: var(--pf-surface); border: 1px solid var(--pf-border); border-radius: var(--pf-radius-lg); box-shadow: var(--pf-shadow-sm); overflow: hidden; }
.card-head {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px;
  border-bottom: 1px solid var(--pf-border); background: #fbfdfe;
}
.card-head .ic { color: var(--pf-brand); }
.card-head h2 { font-size: 1rem; }
.card-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-body { padding: 16px; }
.card-body--flush { padding: 0; }

.section-title { display:flex; align-items:center; gap:10px; margin: 22px 0 12px; }
.section-title .ic { color: var(--pf-brand); }
.section-title h2 { font-size: 1.1rem; }
.section-title .right { margin-left:auto; }

/* ==========================================================================
   BUTONLAR
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px;
  font-size: .9rem; font-weight: 700; border: 1px solid transparent;
  cursor: pointer; transition: var(--pf-t); white-space: nowrap; line-height: 1;
  text-decoration: none;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn .ic { width: 16px; height: 16px; }

.btn-primary { background: var(--pf-brand); color: #fff; box-shadow: 0 4px 10px rgb(13 148 136 / .3); }
.btn-primary:hover { background: var(--pf-brand-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }

.btn-dark { background: var(--pf-dark); color: #fff; }
.btn-dark:hover { background: var(--pf-dark-2); color:#fff; text-decoration:none; }

.btn-ghost { background: transparent; color: var(--pf-text-2); border-color: var(--pf-border); }
.btn-ghost:hover { background: var(--pf-bg); border-color: #cbd5e1; color: var(--pf-text); text-decoration: none; }

.btn-danger { background: var(--pf-danger-bg); color: var(--pf-danger-ink); border-color: #fecaca; }
.btn-danger:hover { background: var(--pf-danger); color:#fff; text-decoration:none; }

.btn-light { background:#fff; color: var(--pf-text-2); border-color: var(--pf-border); }
.btn-light:hover { border-color: var(--pf-brand); color: var(--pf-brand-dark); text-decoration:none; }

.btn-sm { height: 32px; padding: 0 11px; font-size: .8rem; border-radius: 8px; }
.btn-sm .ic { width: 14px; height: 14px; }
.btn-block { width: 100%; }

/* ==========================================================================
   ROZETLER / ETİKETLER
   ========================================================================== */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; line-height: 1.4;
}
.chip .ic { width: 12px; height: 12px; }
.chip--brand  { background: var(--pf-brand-light); color: var(--pf-brand-ink); }
.chip--amber  { background: var(--pf-warning-bg); color: var(--pf-warning-ink); }
.chip--red    { background: var(--pf-danger-bg); color: var(--pf-danger-ink); }
.chip--green  { background: var(--pf-success-bg); color: var(--pf-success-ink); }
.chip--blue   { background: var(--pf-info-bg); color: var(--pf-info-ink); }
.chip--slate  { background: var(--pf-bg-alt); color: var(--pf-text-2); }
.chip--cat    { background: #fdf2f8; color: #9d174d; }
.chip--dog    { background: var(--pf-accent-light); color: var(--pf-accent-dark); }
.chip--bird   { background: #e0f2fe; color: #075985; }
.chip--fish   { background: #e0e7ff; color: #3730a3; }
.chip--rodent { background: #f3e8ff; color: #6b21a8; }
.chip--other  { background: #ecfccb; color: #3f6212; }

/* ==========================================================================
   ANASAYFA HERO
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--pf-brand-deep) 0%, var(--pf-brand) 55%, #14b8a6 100%);
  color: #fff; border-radius: var(--pf-radius-lg);
  padding: 30px 28px; margin-bottom: 20px;
}
.hero::after {
  content:""; position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(600px 200px at 85% -20%, rgb(255 255 255 / .18), transparent 60%);
}
.hero-in { position: relative; display:flex; align-items:center; gap:24px; flex-wrap:wrap; }
.hero h1 { font-size: 1.7rem; letter-spacing: -.4px; }
.hero p { color: rgb(255 255 255 / .85); margin: 6px 0 0; font-size: .95rem; max-width: 520px; }
.hero-search { flex:1; min-width: 260px; max-width: 520px; margin-left: auto; position: relative; }
.hero-search .ic { position:absolute; left:14px; top:50%; transform:translateY(-50%); color:#0f766e; }
.hero-search input {
  width: 100%; height: 48px; border: 0; border-radius: 12px; padding: 0 16px 0 42px;
  font-size: .95rem; outline: none; box-shadow: var(--pf-shadow-lg);
}
.hero-stats { display:flex; gap:18px; margin-top:16px; position:relative; }
.hero-stat { background: rgb(255 255 255 / .12); border:1px solid rgb(255 255 255 / .18); border-radius: 10px; padding: 8px 14px; }
.hero-stat b { display:block; font-size: 1.05rem; }
.hero-stat span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: rgb(255 255 255 / .75); }

/* ==========================================================================
   KATEGORİ KARTLARI
   ========================================================================== */
.cats { display:grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.cat-card {
  display:flex; flex-direction:column; gap:8px; padding: 14px;
  background: var(--pf-surface); border:1px solid var(--pf-border); border-radius: var(--pf-radius);
  transition: var(--pf-t); text-decoration:none; color:inherit; position: relative; overflow: hidden;
}
.cat-card::before { content:""; position:absolute; inset:0 auto 0 0; width:4px; background: var(--cc, var(--pf-brand)); opacity:0; transition: var(--pf-t); }
.cat-card:hover { border-color: var(--cc, var(--pf-brand)); box-shadow: var(--pf-shadow); transform: translateY(-2px); text-decoration:none; color:inherit; }
.cat-card:hover::before { opacity: 1; }
.cat-ico {
  width: 42px; height: 42px; border-radius: 12px; display:grid; place-items:center;
  background: var(--cc-bg, var(--pf-brand-light)); color: var(--cc, var(--pf-brand-dark));
}
.cat-ico .ic { width: 22px; height: 22px; }
.cat-card h3 { font-size: .95rem; }
.cat-card p { margin:0; font-size:.78rem; color: var(--pf-muted); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.cat-card .sub { margin-top:auto; font-size:.72rem; font-weight:700; color: var(--pf-muted); display:flex; align-items:center; gap:5px; }

/* ==========================================================================
   KONU TABLOSU (YOĞUN FORUM LİSTESİ)
   ========================================================================== */
.tabs { display:flex; gap:2px; padding: 8px 10px 0; background:#fbfdfe; border-bottom:1px solid var(--pf-border); overflow-x:auto; scrollbar-width:none; }
.tabs::-webkit-scrollbar{ display:none; }
.tab {
  display:inline-flex; align-items:center; gap:7px; padding: 9px 14px;
  font-size:.86rem; font-weight:700; color: var(--pf-muted);
  border: 0; background:none; cursor:pointer; border-bottom: 2px solid transparent;
  white-space: nowrap; text-decoration:none; border-radius: 8px 8px 0 0;
}
.tab .ic { width:15px; height:15px; }
.tab:hover { color: var(--pf-text); background: var(--pf-bg); text-decoration:none; }
.tab.on { color: var(--pf-brand-dark); border-bottom-color: var(--pf-brand); background: transparent; }

.tlist { display:flex; flex-direction:column; }
.trow {
  display:grid; grid-template-columns: 44px minmax(0,1fr) 74px 74px 150px 130px;
  gap: 12px; align-items:center; padding: 12px 16px;
  border-bottom: 1px solid var(--pf-border); transition: var(--pf-t); position: relative;
}
.trow:last-child { border-bottom: 0; }
.trow:hover { background: #f8fafc; }
.trow.is-pinned { background: #fffbeb; }
.trow.is-pinned:hover { background: #fef3c7; }

.trow .t-title { display:flex; flex-direction:column; gap:3px; min-width:0; }
.trow .t-title a {
  font-weight: 700; color: var(--pf-text); font-size: .92rem; line-height: 1.35;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.trow .t-title a:hover { color: var(--pf-brand-dark); }
.trow .t-sub { display:flex; align-items:center; gap:8px; font-size:.72rem; color:var(--pf-muted); }
.trow .t-sub .by { color: var(--pf-text-2); font-weight: 600; }
.trow .t-excerpt { font-size:.78rem; color:var(--pf-muted); display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }

.tnum { text-align:center; font-size:.82rem; color: var(--pf-text-2); }
.tnum b { display:block; font-size:.95rem; color: var(--pf-text); }
.tnum span { font-size:.66rem; text-transform:uppercase; letter-spacing:.06em; color:var(--pf-muted); }
.tnum.hot b { color: var(--pf-accent-dark); }

.t-last { display:flex; align-items:center; gap:8px; min-width:0; }
.t-last .avatar { width:26px; height:26px; font-size:.7rem; }
.t-last .who { min-width:0; line-height:1.25; }
.t-last .who b { display:block; font-size:.76rem; color:var(--pf-text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.t-last .who time { font-size:.68rem; color:var(--pf-muted); }

.t-cat { justify-self:end; }

@media (max-width: 900px) {
  .trow { grid-template-columns: 38px minmax(0,1fr) 60px 110px; }
  .tnum--views, .t-cat { display:none; }
}
@media (max-width: 560px) {
  .trow { grid-template-columns: 34px minmax(0,1fr); gap:10px; padding: 11px 12px; }
  .tnum { display:none; }
  .t-last { display:none; }
}

/* ==========================================================================
   REKLAM ALANLARI
   ========================================================================== */
.adbox { border:1px solid var(--pf-border); border-radius: var(--pf-radius); overflow:hidden; background: var(--pf-surface); }
.adbox-label {
  display:flex; align-items:center; justify-content:space-between;
  padding: 6px 10px; background: var(--pf-bg); border-bottom:1px solid var(--pf-border);
  font-size:.66rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color: var(--pf-muted);
}
.adbox-inner { padding: 12px; text-align:center; font-size:.85rem; }
.adbox-inner a { display:block; color: inherit; }
.adbox--top { margin-bottom: 16px; }
.adbox .ph {
  min-height: 90px; border-radius: 8px; border: 1px dashed var(--pf-border);
  display:grid; place-items:center; color: var(--pf-muted); font-size:.8rem; background: #fafcff;
}

/* Yan panel widget */
.widget-list { display:flex; flex-direction:column; }
.widget-row {
  display:flex; align-items:center; gap:10px; padding: 10px 14px;
  border-bottom: 1px solid var(--pf-border); text-decoration:none; color:inherit;
}
.widget-row:last-child { border-bottom:0; }
.widget-row:hover { background:#f8fafc; text-decoration:none; }
.widget-row .cat-ico { width:34px; height:34px; border-radius:9px; }
.widget-row .cat-ico .ic { width:17px; height:17px; }
.widget-row b { font-size:.86rem; color:var(--pf-text); display:block; }
.widget-row span { font-size:.72rem; color:var(--pf-muted); }
.widget-row .n { margin-left:auto; font-size:.75rem; font-weight:800; color:var(--pf-brand-dark); background:var(--pf-brand-light); padding:2px 8px; border-radius:999px; }

.tagcloud { display:flex; flex-wrap:wrap; gap:6px; padding: 14px; }
.tagcloud a {
  font-size:.76rem; font-weight:700; padding: 4px 10px; border-radius:999px;
  background: var(--pf-bg); color: var(--pf-text-2); border:1px solid var(--pf-border);
}
.tagcloud a:hover { background: var(--pf-brand-light); color: var(--pf-brand-ink); border-color: var(--pf-brand); text-decoration:none; }

/* ==========================================================================
   SAYFA BAŞLIĞI / BREADCRUMB
   ========================================================================== */
.crumb { display:flex; align-items:center; flex-wrap:wrap; gap:6px; font-size:.8rem; color:var(--pf-muted); margin-bottom: 12px; }
.crumb a { color: var(--pf-muted); } .crumb a:hover { color: var(--pf-brand-dark); }
.crumb .ic { width: 13px; height: 13px; }
.crumb .sep { color:#cbd5e1; }
.crumb .here { color: var(--pf-text); font-weight: 600; }

.pagehead { display:flex; align-items:center; gap:14px; margin-bottom: 16px; flex-wrap:wrap; }
.pagehead .cat-ico { width:52px; height:52px; border-radius:14px; }
.pagehead .cat-ico .ic { width:28px; height:28px; }
.pagehead h1 { font-size: 1.35rem; }
.pagehead p { margin:2px 0 0; color:var(--pf-muted); font-size:.88rem; }
.pagehead .right { margin-left:auto; display:flex; gap:8px; }

/* ==========================================================================
   KONU DETAYI
   ========================================================================== */
.post {
  display:grid; grid-template-columns: 46px minmax(0,1fr); gap: 12px;
  padding: 16px; border-bottom: 1px solid var(--pf-border);
}
.post:last-child { border-bottom:0; }
.post.is-accepted { background: linear-gradient(90deg, rgb(16 185 129 / .07), transparent 40%); box-shadow: inset 3px 0 0 var(--pf-success); }
.post-side { display:flex; flex-direction:column; align-items:center; gap:6px; }
.post-side .uname { font-size:.68rem; font-weight:700; color:var(--pf-text-2); text-align:center; line-height:1.2; }
.post-main { min-width:0; }
.post-meta { display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:.76rem; color:var(--pf-muted); margin-bottom:8px; }
.post-meta b { color: var(--pf-text); font-size:.86rem; }
.post-meta .post-author { color: var(--pf-text); font-size:.86rem; font-weight:800; text-decoration:none; display:inline-block; transition: transform .18s ease, filter .18s ease, text-shadow .18s ease; }
.post-meta .post-author:hover { text-decoration:none; transform: translateY(-1px); filter: brightness(1.22); text-shadow: 0 0 10px rgb(13 148 136 / .4); animation: pf-name-pop .32s ease; }
@keyframes pf-name-pop { 0% { letter-spacing: 0; } 40% { letter-spacing: .5px; } 100% { letter-spacing: 0; } }
.pf-avatar-link { display:inline-flex; border-radius:999px; line-height:0; transition: transform .18s ease, box-shadow .18s ease; }
.pf-avatar-link:hover { transform: scale(1.05); box-shadow: 0 0 0 3px rgb(13 148 136 / .25); }
.post-meta time { display:inline-flex; align-items:center; gap:5px; }
.post-body { white-space:pre-wrap; word-wrap:break-word; color: var(--pf-text-2); font-size: .92rem; }
.post-foot { display:flex; align-items:center; gap:14px; margin-top:10px; font-size:.8rem; }
.post-foot button, .post-foot a {
  display:inline-flex; align-items:center; gap:6px; background:none; border:0; padding:0;
  color: var(--pf-muted); font: inherit; cursor: pointer;
}
.post-foot button:hover, .post-foot a:hover { color: var(--pf-brand-dark); }
.post-foot .liked { color: var(--pf-danger); }
.post-foot .spacer { flex:1; }
.accepted-chip { background: var(--pf-success); color:#fff; border-radius:999px; padding: 3px 10px; font-size:.68rem; font-weight:800; display:inline-flex; gap:5px; align-items:center; }

.reply-box { margin-top: 16px; }
.reply-box textarea { min-height: 120px; }

/* ==========================================================================
   FORM
   ========================================================================== */
.fg { display:flex; flex-direction:column; gap:14px; }
.fg-row { display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
.f { display:flex; flex-direction:column; gap:6px; }
.f label { font-size:.82rem; font-weight:700; color: var(--pf-text-2); }
.f input, .f select, .f textarea {
  width:100%; padding: 10px 12px; font-size:.92rem; color: var(--pf-text);
  background: var(--pf-surface); border:1px solid var(--pf-border); border-radius:10px;
  outline:none; transition: var(--pf-t); font-family: inherit;
}
.f textarea { min-height:150px; resize:vertical; }
.f input:focus, .f select:focus, .f textarea:focus {
  border-color: var(--pf-brand); box-shadow: 0 0 0 3px rgb(13 148 136 / .15);
}
.f .hint { font-size:.74rem; color:var(--pf-muted); }
.f .err { font-size:.78rem; font-weight:700; color: var(--pf-danger); }
.check { display:flex; align-items:center; gap:8px; font-size:.85rem; color:var(--pf-text-2); font-weight:600; }
.check input { width:16px; height:16px; accent-color: var(--pf-brand); }

@media (max-width:560px){ .fg-row { grid-template-columns:1fr; } }

/* ==========================================================================
   ALERT
   ========================================================================== */
.alert { display:flex; align-items:flex-start; gap:10px; padding: 12px 14px; border-radius: var(--pf-radius); margin-bottom:14px; font-size:.88rem; border:1px solid transparent; }
.alert .ic { width:17px; height:17px; margin-top:1px; }
.alert--success { background: var(--pf-success-bg); color: var(--pf-success-ink); border-color:#a7f3d0; }
.alert--error, .alert--danger { background: var(--pf-danger-bg); color: var(--pf-danger-ink); border-color:#fecaca; }
.alert--warning { background: var(--pf-warning-bg); color: var(--pf-warning-ink); border-color:#fde68a; }
.alert--info { background: var(--pf-info-bg); color: var(--pf-info-ink); border-color:#bfdbfe; }

/* ==========================================================================
   SAYFALAMA
   ========================================================================== */
.pager { display:flex; gap:6px; justify-content:center; flex-wrap:wrap; margin-top:16px; }
.pager a, .pager span {
  min-width:34px; height:34px; padding:0 10px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:9px; border:1px solid var(--pf-border); background:var(--pf-surface);
  font-size:.85rem; font-weight:700; color:var(--pf-text-2);
}
.pager a:hover { border-color: var(--pf-brand); color: var(--pf-brand-dark); text-decoration:none; }
.pager .on { background: var(--pf-brand); border-color: var(--pf-brand); color:#fff; }
.pager .dots { border:0; background:none; }

/* ==========================================================================
   BOŞ DURUM
   ========================================================================== */
.empty { text-align:center; padding: 48px 20px; color: var(--pf-muted); }
.empty .ic { width: 44px; height: 44px; color: #cbd5e1; margin-bottom: 10px; }
.empty h3 { color: var(--pf-text); margin-bottom: 4px; }
.empty p { max-width: 380px; margin: 0 auto 14px; }

/* ==========================================================================
   PROFİL
   ========================================================================== */
.profiles { background: linear-gradient(120deg, var(--pf-brand-deep), var(--pf-brand)); border-radius: var(--pf-radius-lg); padding: 24px; color:#fff; }
.profiles-in { display:flex; gap:18px; align-items:center; flex-wrap:wrap; }
.profiles .avatar--lg { background: #fff; color: var(--pf-brand-deep); }
.profiles h1 { font-size: 1.4rem; }
.profiles .meta { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.profiles .meta .chip { background: rgb(255 255 255 / .15); color:#fff; border:1px solid rgb(255 255 255 / .25); }
.profiles .bio { margin-top:10px; color: rgb(255 255 255 / .85); font-size:.9rem; max-width: 640px; }

.pf-head-txt { flex:1; min-width:0; }
.pf-head-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }

/* --- Mobil profil kapağı --- */
@media (max-width: 640px) {
  .profiles { padding: 16px 14px 18px; }
  .profiles-in {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
  }
  .profiles-in > .avatar-wrap { grid-row: 1; grid-column: 1; }
  .profiles .avatar--lg { width: 72px; height: 72px; font-size: 1.3rem; }
  .pf-head-txt { grid-row: 1; grid-column: 2; }
  .profiles h1 { font-size: 1.16rem; line-height: 1.25; }
  .pf-head-row { gap: 7px; align-items: flex-start; }
  .pf-head-row .vbadge, .pf-head-row .role-badge { margin-top: 3px; }
  .profiles .meta { gap: 6px; margin-top: 7px; }
  .profiles .meta .chip { font-size: .68rem; padding: 3px 9px; }
  .pf-edit-btn {
    grid-row: 2;
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2px;
  }
  .profiles .bio { margin-top: 0; font-size: .84rem; }
  .rank-hero { gap: 10px; margin-top: 12px; padding-top: 14px; }
  .rank-hero-main { width: 100%; }
  .rank-hero-chip { flex-wrap: wrap; row-gap: 4px; }
  .rank-progress { min-width: 0; }
  .rank-chip--lg { font-size: .85rem; padding: 6px 12px; gap: 5px; }
  .rank-ladder { width: 100%; }
}

.statgrid { display:grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); gap:10px; margin-top: 16px; }
.stat { background: var(--pf-surface); border:1px solid var(--pf-border); border-radius: var(--pf-radius); padding: 12px 14px; }
.stat b { display:block; font-size: 1.3rem; color: var(--pf-text); }
.stat span { font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; color:var(--pf-muted); font-weight:700; }

/* ==========================================================================
   GİRİŞ / KAYIT
   ========================================================================== */
.auth-wrap { max-width: 440px; margin: 30px auto; }
.auth-card { background: var(--pf-surface); border:1px solid var(--pf-border); border-radius: var(--pf-radius-lg); box-shadow: var(--pf-shadow); overflow:hidden; }
.auth-head { padding: 26px 26px 0; text-align:center; }
.auth-head .brand-badge { margin: 0 auto 12px; width:52px; height:52px; border-radius:14px; }
.auth-head .brand-badge .ic { width:28px; height:28px; }
.auth-body { padding: 20px 26px 26px; }
.auth-foot { text-align:center; padding: 14px; background:#fbfdfe; border-top:1px solid var(--pf-border); font-size:.85rem; color:var(--pf-muted); }

/* ==========================================================================
   ADMIN PANELİ
   ========================================================================== */
.admin-shell { display:grid; grid-template-columns: 232px minmax(0,1fr); gap: 20px; align-items:start; }
.admin-side { position: sticky; top: calc(var(--pf-header-h) + var(--pf-nav-h) + 14px); }
.admin-side .card { padding: 8px; }
.aside-link {
  display:flex; align-items:center; gap:10px; padding: 10px 12px; border-radius: 9px;
  font-size:.88rem; font-weight:600; color: var(--pf-text-2); text-decoration:none;
}
.aside-link .ic { color: var(--pf-muted); }
.aside-link:hover { background: var(--pf-bg); color: var(--pf-brand-dark); text-decoration:none; }
.aside-link:hover .ic { color: var(--pf-brand); }
.aside-link.on { background: var(--pf-brand); color:#fff; }
.aside-link.on .ic { color:#fff; }
.aside-link .n { margin-left:auto; background: var(--pf-accent); color:#fff; border-radius:999px; font-size:.66rem; font-weight:800; padding:2px 7px; }
.aside-sep { margin: 8px 10px; border-top: 1px solid var(--pf-border); }
.aside-label { padding: 10px 12px 4px; font-size:.66rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--pf-muted); }

.tbl { width:100%; border-collapse: collapse; font-size:.86rem; }
.tbl th {
  text-align:left; padding: 10px 14px; background:#f8fafc; border-bottom:1px solid var(--pf-border);
  font-size:.68rem; text-transform:uppercase; letter-spacing:.07em; color:var(--pf-muted); font-weight:800; white-space:nowrap;
}
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--pf-border); vertical-align: middle; }
.tbl tbody tr:hover { background: #f8fafc; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .actions { display:flex; gap:6px; justify-content:flex-end; }
.tbl-wrap { overflow-x:auto; }

.kpis { display:grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap:12px; margin-bottom:20px; }
.kpi { background:var(--pf-surface); border:1px solid var(--pf-border); border-radius: var(--pf-radius); padding:16px; display:flex; gap:12px; align-items:center; }
.kpi .ico { width:42px; height:42px; border-radius:12px; display:grid; place-items:center; }
.kpi .ico .ic { width:20px; height:20px; }
.kpi b { font-size:1.3rem; display:block; line-height:1.1; }
.kpi span { font-size:.74rem; color:var(--pf-muted); font-weight:700; text-transform:uppercase; letter-spacing:.05em; }

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; }
  .admin-side .card { display:flex; overflow-x:auto; padding:6px; gap:4px; }
  .aside-link { flex:none; }
  .aside-sep, .aside-label { display:none; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--pf-dark); color:#94a3b8; margin-top: 40px; }
.footer-in { max-width: var(--pf-container); margin:0 auto; padding: 36px 20px 24px; display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer h4 { color:#fff; font-size:.8rem; text-transform:uppercase; letter-spacing:.1em; margin-bottom: 12px; }
.footer ul { list-style:none; margin:0; padding:0; }
.footer li { margin-bottom: 8px; }
.footer a { color:#94a3b8; text-decoration:none; font-size:.86rem; }
.footer a:hover { color:#fff; text-decoration:underline; }
.footer .fbrand { display:flex; align-items:center; gap:10px; margin-bottom:10px; color:#fff; }
.footer .fbrand .brand-badge { width:36px; height:36px; border-radius:10px; }
.footer .fbrand .brand-badge .ic { width:19px; height:19px; }
.footer .fbrand b { font-size:1.05rem; }
.footer .desc { font-size:.84rem; max-width: 280px; }
.footer-bottom { border-top: 1px solid var(--pf-dark-3); padding: 16px 20px; text-align:center; font-size:.78rem; color:#64748b; }
@media (max-width: 800px){ .footer-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer-in { grid-template-columns: 1fr; } }

/* ==========================================================================
   RESPONSIVE — HEADER / NAV
   ========================================================================== */
.mobile-menu { display:none; background: var(--pf-surface); border-bottom:1px solid var(--pf-border); box-shadow: var(--pf-shadow); }
.mobile-menu.open { display:block; }
.mm-link { display:flex; align-items:center; gap:12px; padding: 13px 18px; color:var(--pf-text); font-weight:600; border-bottom:1px solid var(--pf-border); text-decoration:none; }
.mm-link .ic { color: var(--pf-muted); }
.mm-link:hover { background: var(--pf-bg); text-decoration:none; }
.mm-link.danger { color: var(--pf-danger); }
.mm-link.danger .ic { color: var(--pf-danger); }

@media (max-width: 1024px) {
  .hdr-search { max-width: none; }
}

@media (max-width: 860px) {
  .hdr-in { gap: 10px; }
  .hdr-user .who, .hdr-search { display: none; }
  /* Mobilde header'daki çıkış ikonu gizlenir; çıkış hamburger menüde */
  .hdr-logout { display: none; }
  .hdr-burger { display: grid; }
  .navrow { display: none; }
  .navrow--mobile { display:block; position:static; }
  .brand-tag { display: none; }
  .page { padding: 14px 14px 30px; }
  .hero { padding: 20px; }
  .hero h1 { font-size: 1.3rem; }
  .hero-search { margin-left: 0; }
}


/* ==========================================================================
   AVATAR + ÇEVRİMİÇİ + DOĞRULAMA TİKİ
   ========================================================================== */
.avatar-wrap { position: relative; display: inline-flex; flex: none; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }

.online-dot {
  position: absolute; bottom: -1px; right: -1px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #22c55e; border: 2px solid var(--pf-surface, #fff);
  box-shadow: 0 0 0 1px rgb(34 197 94 / .35);
  animation: pf-pulse 2.4s ease-out infinite;
}
@keyframes pf-pulse {
  0%   { box-shadow: 0 0 0 0 rgb(34 197 94 / .55); }
  70%  { box-shadow: 0 0 0 6px rgb(34 197 94 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(34 197 94 / 0); }
}

.vbadge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #2563eb); color: #fff;
  vertical-align: -2px;
}
.vbadge .ic { width: 9px; height: 9px; }

.rank-chip { vertical-align: -2px; }

/* Konu satırında rozet grubu */
.who-badges { display: inline-flex; align-items: center; gap: 4px; vertical-align: -2px; margin-left: 4px; }

/* ==========================================================================
   SON 10 KONU (forum üstü vitrin)
   ========================================================================== */
.top10 .trow { grid-template-columns: 34px 44px minmax(0,1fr) 70px 70px 140px 120px; padding: 10px 16px; }
.top10 .tno {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  font-size: .78rem; font-weight: 800; color: #fff;
  background: var(--pf-brand);
}
.top10 .trow:first-child .tno { background: var(--pf-accent); }
.top10 .trow:nth-child(2) .tno { background: #fb923c; }
.top10 .trow:nth-child(3) .tno { background: #f59e0b; }

.top10-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--pf-border);
  background: linear-gradient(90deg, var(--pf-brand-deep), var(--pf-brand));
  color: #fff;
}
.top10-head .ic { color: #fff; }
.top10-head h2 { font-size: 1rem; color: #fff; }
.top10-head .right { margin-left: auto; }
.top10-head .right a { color: rgb(255 255 255 / .9); font-size: .8rem; font-weight: 700; }
.top10-head .right a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 900px) {
  .top10 .trow { grid-template-columns: 28px 38px minmax(0,1fr) 60px 110px; }
  .top10 .tnum--views, .top10 .t-cat { display: none; }
}
@media (max-width: 560px) {
  .top10 .trow { grid-template-columns: 24px 34px minmax(0,1fr); }
  .top10 .tnum, .top10 .t-last { display: none; }
}

/* ==========================================================================
   PROFİL FOTOĞRAFI YÜKLEME
   ========================================================================== */
.avatar-upload { display: flex; align-items: center; gap: 16px; }
.avatar-upload .actions { display: flex; flex-direction: column; gap: 8px; }
.avatar-upload .actions small { color: var(--pf-muted); font-size: .76rem; }
.avatar-upload input[type="file"] { display: none; }
.file-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 14px; border-radius: 10px; border: 1px dashed var(--pf-border);
  font-size: .85rem; font-weight: 600; color: var(--pf-text-2); background: var(--pf-bg);
}
.file-btn:hover { border-color: var(--pf-brand); color: var(--pf-brand-dark); }
.file-name { font-size: .8rem; color: var(--pf-muted); }


/* ==========================================================================
   E-POSTA DOĞRULAMA BANNER'I
   ========================================================================== */
.vbanner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(90deg, #fef3c7, #fde68a);
  border: 1px solid #f59e0b;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgb(245 158 11 / .18);
}
.vbanner-ico {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: #fff; color: #b45309;
}
.vbanner-ico .ic { width: 22px; height: 22px; }
.vbanner-txt { flex: 1; min-width: 0; color: #78350f; line-height: 1.45; }
.vbanner-txt b { display: block; font-size: .95rem; color: #92400e; margin-bottom: 2px; }
.vbanner-txt span { font-size: .82rem; }
.vbanner .btn-light {
  background: #92400e; color: #fff; border: none; flex: none;
}
.vbanner .btn-light:hover { background: #78350f; color: #fff; }
.vbanner .btn-light .ic { color: #fff; }

.vbanner--big { align-items: stretch; flex-direction: column; gap: 8px; padding: 16px; margin-bottom: 0; }

@media (max-width: 640px) {
  .vbanner { flex-wrap: wrap; }
  .vbanner .btn-light { width: 100%; justify-content: center; }
}


/* Ayar sayfası bölüm başlıkları */
.form-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--pf-brand-dark);
  margin-bottom: 12px;
}
.form-title .ic { color: var(--pf-brand); }


/* ==========================================================================
   BİLDİRİM SAYFASI
   ========================================================================== */
.notif-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--pf-border);
  color: var(--pf-text);
  text-decoration: none;
  transition: background .15s ease;
}
.notif-row:last-child { border-bottom: none; }
.notif-row:hover { background: var(--pf-bg); }
.notif-row.unread {
  background: rgb(245 158 11 / .06);
  box-shadow: inset 3px 0 0 var(--pf-accent);
}
.notif-ico {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--pf-bg); color: var(--pf-brand-dark);
  border: 1px solid var(--pf-border);
}
.notif-ico .ic { width: 18px; height: 18px; }
.notif-body { flex: 1; min-width: 0; }
.notif-text { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: .9rem; }
.notif-text b { font-weight: 700; }
.notif-text span { color: var(--pf-text-2); }
.notif-topic {
  font-size: .82rem; color: var(--pf-brand-dark); font-weight: 600;
  margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.notif-body time { display: block; font-size: .74rem; color: var(--pf-muted); margin-top: 3px; }
.notif-new { flex: none; margin-top: 2px; }

@media (max-width: 560px) {
  .notif-row { padding: 12px; gap: 10px; }
}


/* ==========================================================================
   PATİLİ İFADE SEÇİCİ (sticker picker)
   ========================================================================== */
.f-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.f-label-row label, .f-plain-label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--pf-text-2);
  margin: 0;
}
.f-label-row .sticker-btn { margin-left: auto; }

.sticker-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px dashed var(--pf-brand);
  background: rgb(13 148 136 / .08);
  color: var(--pf-brand-dark);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.sticker-btn:hover { background: rgb(13 148 136 / .16); transform: translateY(-1px); }
.sticker-btn .ic { width: 15px; height: 15px; }

.sticker-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 8px;
  background: var(--pf-bg);
  border: 1px solid var(--pf-border);
  border-radius: 10px;
  font-size: .74rem;
  color: var(--pf-muted);
  overflow-x: auto;
}
.sticker-strip::-webkit-scrollbar { height: 6px; }

.sticker-pop {
  position: absolute;
  z-index: 300;
  width: 292px;
  max-width: calc(100vw - 24px);
  background: var(--pf-surface, #fff);
  border: 1px solid var(--pf-border);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgb(15 40 35 / .18);
  display: none;
  overflow: hidden;
}
.sticker-pop.open { display: block; animation: pop-in .16s ease; }
@keyframes pop-in {
  from { opacity: 0; transform: translateY(6px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.sticker-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 8px;
  font-size: .82rem; font-weight: 800; color: var(--pf-brand-dark);
}
.sticker-head span { display: inline-flex; align-items: center; gap: 6px; }
.sticker-x {
  border: none; background: none; cursor: pointer; padding: 4px;
  border-radius: 8px; color: var(--pf-muted);
}
.sticker-x:hover { background: var(--pf-bg); color: var(--pf-text); }
.sticker-tabs {
  display: flex; gap: 6px; padding: 0 12px 8px;
}
.sticker-tab {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--pf-border);
  background: var(--pf-surface, #fff); color: var(--pf-text-2);
  font-size: .76rem; font-weight: 700; cursor: pointer;
}
.sticker-tab.on { background: var(--pf-brand); border-color: var(--pf-brand); color: #fff; }
.sticker-pane {
  display: none;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  padding: 10px 12px;
  max-height: 218px;
  overflow-y: auto;
  border-top: 1px solid var(--pf-border);
}
.sticker-pane.on { display: grid; }
.sticker-item {
  border: none; background: none; cursor: pointer;
  padding: 5px; border-radius: 10px;
  display: grid; place-items: center;
  font-size: 1.15rem; line-height: 1;
  transition: transform .12s ease, background .12s ease;
}
.sticker-item:hover { background: var(--pf-bg); transform: scale(1.18) rotate(-4deg); }
.sticker-item img { width: 30px; height: 30px; display: block; }
.sticker-item:active { transform: scale(.94); }

.sticker-foot {
  padding: 8px 12px;
  font-size: .7rem; color: var(--pf-muted);
  background: var(--pf-bg); border-top: 1px solid var(--pf-border);
}
.sticker-foot b { color: var(--pf-border); }

/* hızlı çıpalar (form altındaki mini şerit) */
.st-mini { padding: 2px; }
.st-mini img { width: 26px; height: 26px; }

/* İçerikte inline sticker */
.pf-sticker {
  display: inline-block;
  vertical-align: -0.45em;
  width: 1.9em;
  height: 1.9em;
  margin: 0 .1em;
  animation: pf-wiggle 3.4s ease-in-out infinite;
  transform-origin: 50% 80%;
}
.pf-sticker:hover { animation: pf-bounce .5s ease; }
@keyframes pf-wiggle {
  0%, 92%, 100% { transform: rotate(0deg); }
  94% { transform: rotate(-5deg); }
  96% { transform: rotate(4deg); }
  98% { transform: rotate(-2deg); }
}
@keyframes pf-bounce {
  0% { transform: translateY(0); }
  40% { transform: translateY(-7px) rotate(-6deg); }
  70% { transform: translateY(0) rotate(3deg); }
  100% { transform: translateY(0); }
}

/* ==========================================================================
   ADMIN: TASARIM & RANK SAYFALARI
   ========================================================================== */
.logo-pick {
  display: inline-grid; place-items: center; width: 54px; height: 54px;
  border: 2px solid var(--pf-border); border-radius: 12px; background: var(--pf-bg);
  cursor: pointer; transition: var(--pf-t);
}
.logo-pick img { width: 30px; height: 30px; }
.logo-pick:hover { border-color: var(--pf-brand); transform: translateY(-2px); }
.logo-pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.logo-pick--on { border-color: var(--pf-brand); background: var(--pf-brand-light); box-shadow: 0 0 0 3px rgb(13 148 136 / .18); }
.rankrow select, .navrow2-row select { width: 100%; padding: 8px 10px; border: 1px solid var(--pf-border); border-radius: 8px; background: var(--pf-surface); color: var(--pf-text); font-family: inherit; }
.rankrow input[type=number], .navrow2-row input { width: 100%; padding: 8px 10px; border: 1px solid var(--pf-border); border-radius: 8px; background: var(--pf-surface); color: var(--pf-text); font-family: inherit; }

/* --- Admin rank merkezi --- */
.rank-ico { --cc: var(--pf-accent); --cc-bg: rgb(245 158 11 / .15); }
.rank-statrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat-mini { display: flex; align-items: center; gap: 12px; background: var(--pf-surface); border: 1px solid var(--pf-border); border-radius: 14px; padding: 12px 16px; }
.stat-mini .ic { width: 26px; height: 26px; color: var(--pf-brand); flex: none; }
.stat-mini b { display: block; font-size: 1.25rem; line-height: 1.1; }
.stat-mini span { font-size: .72rem; color: var(--pf-muted); font-weight: 700; }
.rank-ladder-admin { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.ladv { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.ladv .ladv-n { font-size: .68rem; color: var(--pf-muted); font-weight: 800; }
.rank-edg { display: grid; grid-template-columns: 1.35fr 1.2fr .7fr .8fr .6fr 44px; gap: 10px; align-items: center; padding: 9px 8px; border-bottom: 1px dashed var(--pf-border); }
.rank-edg--head { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--pf-muted); border-bottom: 2px solid var(--pf-border); padding: 4px 8px 8px; }
.rank-edg input { width: 100%; }
.rank-edg .mini-hint { font-size: .64rem; color: var(--pf-muted); margin-top: 2px; }
.ed-prev .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-del { color: var(--pf-danger); }
.ed-color input[type=color] { width: 100%; height: 34px; padding: 2px; cursor: pointer; border: 1px solid var(--pf-border); border-radius: 8px; background: var(--pf-surface); }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.role-card { border: 1px solid var(--pf-border); border-radius: 14px; padding: 14px; background: var(--pf-bg); }
.rc-preview { display: flex; align-items: center; gap: 10px; }
.rc-badges { margin-top: 4px; }
.perm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.perm-card { border: 1px solid var(--pf-border); border-radius: 12px; padding: 12px; cursor: pointer; background: var(--pf-surface); transition: var(--pf-t); display: block; }
.perm-card:hover { border-color: var(--pf-brand); }
.perm-card .pc-head { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.perm-card .pc-ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--pf-brand-light); color: var(--pf-brand); flex: none; }
.perm-card .pc-desc { display: block; font-size: .74rem; color: var(--pf-muted); margin-top: 6px; line-height: 1.45; }
.sw { margin-left: auto; width: 38px; height: 21px; border-radius: 999px; background: var(--pf-bg-alt); border: 1px solid var(--pf-border); position: relative; transition: var(--pf-t); flex: none; }
.sw-dot { position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 999px; background: #94a3b8; transition: var(--pf-t); }
.sw-input { position: absolute; opacity: 0; width: 0; height: 0; }
.sw-input:checked ~ .pc-head .sw { background: var(--pf-brand); border-color: var(--pf-brand-dark); }
.sw-input:checked ~ .pc-head .sw .sw-dot { left: 20px; background: #fff; }

/* --- Kullanıcı tarafı: güçlü rank görünümü --- */
.rank-chip { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; position: relative; overflow: hidden; border-radius: 999px; }
.rank-chip::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgb(255 255 255 / .5) 0%, rgb(255 255 255 / .08) 38%, rgb(255 255 255 / 0) 60%);
  pointer-events: none;
}
.rank-chip .ic-sm { position: relative; }
.rank-chip--sm { font-size: .66rem; padding: 2px 8px; }
.chip--sm { font-size: .68rem; }
.rank-chip--lg { font-size: .95rem; padding: 7px 14px; font-weight: 800; gap: 6px; }
.rank-chip--lg .ic-sm { width: 16px; height: 16px; }

.chip.role-badge { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; position: relative; }

/* profil rank kartı */
.rank-hero { display: flex; align-items: center; gap: 20px; border-top: 1px solid var(--pf-border); margin-top: 14px; padding: 16px 4px 2px; flex-wrap: wrap; }
.rank-hero-chip { display: flex; align-items: center; gap: 10px; }
.rank-hero-sub { font-size: .74rem; font-weight: 700; color: var(--pf-muted); display: block; margin-top: 3px; }
.rank-progress { flex: 1; min-width: 230px; }
.rank-progress-bar { height: 10px; border-radius: 999px; background: var(--pf-bg-alt); border: 1px solid var(--pf-border); overflow: hidden; }
.rank-progress-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--pf-brand), var(--pf-accent)); box-shadow: 0 0 8px rgb(13 148 136 / .5); transition: width .6s ease; }
.rank-progress-text { display: flex; justify-content: space-between; gap: 10px; font-size: .8rem; color: var(--pf-text-2); font-weight: 700; margin-top: 8px; flex-wrap: wrap; row-gap: 6px; }
.next-rname { color: var(--pf-brand); display: inline-flex; align-items: center; gap: 5px; font-weight: 800; background: linear-gradient(135deg, rgb(13 148 136 / .14), rgb(13 148 136 / .05)); border: 1px solid rgb(13 148 136 / .35); padding: 3px 10px; border-radius: 999px; font-size: .8rem; }
.rank-ladder { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.lad-icn { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--pf-bg-alt); color: var(--pf-muted); border: 1px solid transparent; }
.lad-icn.on { background: var(--pf-brand-light); color: var(--pf-brand); border-color: var(--pf-brand); box-shadow: 0 0 0 3px rgb(13 148 136 / .15); transform: scale(1.12); }

/* ana sayfa rank liderleri */
.leader-row { display: flex; align-items: center; gap: 8px; }
.leader-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: .84rem; }
.leader-rank { font-size: .68rem; }
.rank-hero-foot { border-top: 1px dashed var(--pf-border); padding: 8px 0 2px; margin-top: 2px; }

@media (max-width: 900px) {
  .rank-statrow { grid-template-columns: 1fr 1fr; }
  .role-grid { grid-template-columns: 1fr; }
  .perm-grid { grid-template-columns: 1fr; }
  .rank-edg { grid-template-columns: 1fr 1fr; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-sticker { animation: none; }
}

/* ==========================================================================
   ZENGİN STICKER EDİTÖRÜ (contenteditable)
   ========================================================================== */
.pf-editor {
  min-height: 150px;
  max-height: 420px;
  overflow-y: auto;
  width: 100%;
  padding: 10px 12px;
  font-size: .92rem;
  font-family: inherit;
  color: var(--pf-text);
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
  border-radius: 10px;
  outline: none;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  cursor: text;
  transition: var(--pf-t);
}
.pf-editor:focus {
  border-color: var(--pf-brand);
  box-shadow: 0 0 0 3px rgb(13 148 136 / .15);
}
.pf-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--pf-muted);
  pointer-events: none;
  display: block;
}
.pf-editor img.pf-sticker {
  width: 1.75em;
  height: 1.75em;
  vertical-align: -0.45em;
  margin: 0 1px;
  cursor: inherit;
}
.pf-editor:empty::after {
  content: '\200B'; /* boş editörde imleç görünürlüğü */
}
.pf-editor--single {
  min-height: 46px;
  max-height: 96px;
  padding: 11px 12px;
  overflow-x: hidden;
}
.pf-editor--single img.pf-sticker {
  width: 1.35em;
  height: 1.35em;
  vertical-align: -0.34em;
}
.pf-sticker--t {
  width: 1.05em !important;
  height: 1.05em !important;
  vertical-align: -0.18em !important;
  margin: 0 2px;
}

/* ==========================================================================
   İMZA (SIGNATURE) — konu ve yanıtların altında
   ========================================================================== */
.post-sign {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--pf-border);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--pf-muted);
}
.post-sign > .ic {
  margin-top: 3px;
  opacity: .75;
}
.post-sign-in {
  min-width: 0;
  max-width: 100%;
}
.post-sign-txt {
  font-size: .78rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--pf-muted);
  overflow-wrap: break-word;
}
.post-sign-txt img.pf-sticker {
  width: 1.3em;
  height: 1.3em;
  vertical-align: -0.3em;
  margin: 0 1px;
}
.post-sign-img {
  display: block;
  max-width: min(100%, 600px);
  max-height: 90px;
  height: auto;
  margin-top: 6px;
  border-radius: 6px;
}
.post-sign + .post-foot {
  margin-top: 10px !important;
}

/* İmza ayar sayfasındaki sticker şeridi (settings-profile) */
.sign-strip .logo-pick {
  cursor: pointer;
}
.sign-strip .logo-pick img {
  width: 26px;
  height: 26px;
  display: block;
}

/* Profil: Konular + Yanıtlar yan yana */
.pf-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items: start;
}
.pf-cols > div { min-width: 0; }
.reply-snippet {
  margin-top: 6px;
  font-size: .78rem;
  color: var(--pf-muted);
  line-height: 1.45;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reply-snippet img.pf-sticker {
  width: 1.2em;
  height: 1.2em;
  vertical-align: -0.28em;
  margin: 0 1px;
}
@media (max-width: 980px) {
  .pf-cols { grid-template-columns: 1fr; }
}

/* Profil liste öğeleri (başlık + içerik + ince meta) */
.pf-list { display: flex; flex-direction: column; }
.pf-item {
  display: block;
  padding: 13px 16px;
  border-bottom: 1px solid var(--pf-border);
  transition: background .15s ease;
  min-width: 0;
}
.pf-item:last-child { border-bottom: 0; }
.pf-item:hover { background: #f8fafc; }
.pf-item-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pf-item-icn {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
  margin-top: 1px;
}
.pf-item-icn .ic { width: 16px; height: 16px; }
.pf-item-body { min-width: 0; flex: 1; }
.pf-item-title {
  display: inline;
  font-weight: 700;
  font-size: .93rem;
  color: var(--pf-text);
  line-height: 1.4;
}
.pf-item:hover .pf-item-title { color: var(--pf-brand-dark); }
.pf-item-title img.pf-sticker { width: 1.1em; height: 1.1em; vertical-align: -0.2em; }
.pf-item-snippet {
  margin-top: 5px;
  font-size: .8rem;
  color: var(--pf-muted);
  line-height: 1.5;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pf-item-snippet img.pf-sticker { width: 1.25em; height: 1.25em; vertical-align: -0.3em; margin: 0 1px; }
.pf-item-meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: .72rem;
  color: var(--pf-muted);
}
.pf-item-meta .pf-cat { color: var(--pf-brand); font-weight: 600; }
.pf-item-meta .sep { opacity: .55; }
.pf-item-locked { color: var(--pf-muted); display: inline-flex; align-items: center; gap: 2px; }
@media (max-width: 640px) {
  .pf-item { padding: 11px 13px; }
}

/* Gelişmiş renk token satırları (admin tasarım) */
#tk-row-help .hint code { font-size: .72rem; }

@media (max-width: 640px) {
  .post-sign-img { max-width: 100%; max-height: 76px; }
}

/* ==========================================================================
   24) DARK MODE — html[data-theme="dark"] (tema düğmesiyle açılıp kapanır)
   ========================================================================== */
html[data-theme="dark"] {
  --pf-surface: #0b1220;
  --pf-bg: #070d18;
  --pf-bg-alt: #111a2c;
  --pf-text: #e2e8f0;
  --pf-text-2: #94a3b8;
  --pf-muted: #64748b;
  --pf-border: #1c2a40;
  --pf-brand-light: #0b3b38;
  --pf-brand-ink: #99f6e4;
  --pf-accent-light: #3a2410;
  --pf-success: #34d399;  --pf-success-bg: #06281e;  --pf-success-ink: #a7f3d0;
  --pf-warning: #fbbf24;  --pf-warning-bg: #2a1f06;  --pf-warning-ink: #fde68a;
  --pf-danger:  #f87171;  --pf-danger-bg:  #2b0d0d;  --pf-danger-ink:  #fecaca;
  --pf-info:    #60a5fa;  --pf-info-bg:    #0d1b33;  --pf-info-ink:    #bfdbfe;
  --pf-shadow: 0 6px 24px rgb(0 0 0 / .45);
}

/* Sabit açık yüzeyler koyu sürüme çevrilir */
html[data-theme="dark"] .card-head,
html[data-theme="dark"] .tabs,
html[data-theme="dark"] .auth-foot,
html[data-theme="dark"] .tbl th { background: #0d1626; }
html[data-theme="dark"] .trow:hover,
html[data-theme="dark"] .widget-row:hover,
html[data-theme="dark"] .tbl tbody tr:hover,
html[data-theme="dark"] .pf-item:hover { background: #0d1626; }
html[data-theme="dark"] .trow.is-pinned { background: #241a06; }
html[data-theme="dark"] .trow.is-pinned:hover { background: #2c2109; }
html[data-theme="dark"] .avatar--lg { border-color: #0b1220; }

/* Pastel chip'ler koyu varyant */
html[data-theme="dark"] .chip--cat  { background: #3b0d24; color: #fbcfe8; }
html[data-theme="dark"] .chip--dog  { background: var(--pf-accent-light); color: #fdba74; }
html[data-theme="dark"] .chip--bird { background: #082f49; color: #7dd3fc; }
html[data-theme="dark"] .chip--fish { background: #1e1b4b; color: #a5b4fc; }

/* Tema düğmesi: aydınlıkta ay ikonu, karanlıkta güneş ikonu */
.hdr-theme-toggle .ico-theme-dark { display: none; }
html[data-theme="dark"] .hdr-theme-toggle .ico-theme-dark { display: block; }
html[data-theme="dark"] .hdr-theme-toggle .ico-theme-light { display: none; }

/* ==========================================================================
   25) YENİ BİLEŞENLER — ekler, alıntı, mention, anket, başarım, DM, istatistik
   ========================================================================== */

/* --- Yanıt ekleri --- */
.pf-attach {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pf-attach-img {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--pf-border);
  line-height: 0;
}
.pf-attach-img img { max-width: 170px; max-height: 170px; display: block; }
.pf-attach-video { max-width: 100%; }
.pf-attach-name {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 5px; font-size: .72rem; color: var(--pf-muted);
}

/* --- @mention linki --- */
.pf-mention {
  color: var(--pf-brand-dark);
  font-weight: 700;
  background: var(--pf-brand-light);
  border-radius: 6px;
  padding: 1px 5px 2px;
  text-decoration: none;
}
.pf-mention:hover { text-decoration: none; filter: brightness(.96); }
html[data-theme="dark"] .pf-mention { color: #5eead4; }

/* --- Alıntı bloğu --- */
.pf-quote {
  margin: 8px 0 10px;
  border-left: 3px solid var(--pf-brand);
  background: var(--pf-bg);
  border-radius: 0 10px 10px 0;
  padding: 8px 12px 9px;
}
.pf-quote-by {
  display: flex; align-items: center; gap: 5px;
  font-size: .74rem; font-weight: 800; color: var(--pf-brand-dark);
  margin-bottom: 3px;
}
.pf-quote-body { font-size: .88rem; color: var(--pf-text-2); }
.pf-quote-body img.pf-sticker { width: 1.3em; height: 1.3em; vertical-align: -0.3em; }
html[data-theme="dark"] .pf-quote { background: #0d1626; }
html[data-theme="dark"] .pf-quote-by { color: #5eead4; }

/* Editör içindeki alıntı bloğu (ham [quote] metni görünür ama şık) */
.pf-editor blockquote.pf-quote-in-editor,
.pf-editor-src-less blockquote.pf-quote-in-editor {
  margin: 6px 0;
  border-left: 3px solid var(--pf-brand);
  background: var(--pf-bg);
  border-radius: 0 8px 8px 0;
  padding: 6px 10px;
  font-size: .84rem;
  color: var(--pf-text-2);
  white-space: pre-wrap;
}

/* --- Anket --- */
.pf-poll-q { font-weight: 800; font-size: .95rem; margin-bottom: 12px; }
.pf-poll-form { display: flex; flex-direction: column; gap: 8px; }
.pf-poll-opt {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--pf-border); border-radius: 10px;
  padding: 9px 12px; cursor: pointer; font-size: .9rem;
  transition: var(--pf-t);
}
.pf-poll-opt:hover { border-color: var(--pf-brand); background: var(--pf-bg); }
.pf-poll-opt input { accent-color: var(--pf-brand); }
.pf-poll-results { display: flex; flex-direction: column; gap: 10px; }
.pf-poll-row {
  display: grid; grid-template-columns: 1fr 74px 40px; gap: 10px; align-items: center;
}
.pf-poll-label {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: .86rem;
}
.pf-poll-label b { font-size:.8rem; color: var(--pf-text-2); }
.pf-poll-row.mine .pf-poll-label > span:first-child { font-weight: 700; color: var(--pf-brand-dark); }
html[data-theme="dark"] .pf-poll-row.mine .pf-poll-label > span:first-child { color: #5eead4; }
.pf-poll-bar {
  height: 12px; border-radius: 999px; background: var(--pf-bg-alt); overflow: hidden;
}
.pf-poll-bar > span {
  display: block; height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pf-brand-dark), var(--pf-brand));
  transition: width .35s ease;
}
.pf-poll-row.mine .pf-poll-bar > span { background: linear-gradient(90deg, var(--pf-accent-dark), var(--pf-accent)); }
.pf-poll-row small { text-align: right; font-size: .74rem; color: var(--pf-muted); }
.pf-poll-total { margin-top: 4px; font-size: .78rem; color: var(--pf-muted); }
.chip-min { font-size:.62rem; padding: 2px 6px; margin-left: 4px; }

/* --- Başarımlar --- */
.pf-achv {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}
.pf-achv-item {
  border: 1px solid var(--pf-border);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  opacity: .55;
  filter: grayscale(.55);
  transition: var(--pf-t);
}
.pf-achv-item b { font-size: .82rem; }
.pf-achv-item small { font-size: .7rem; color: var(--pf-muted); line-height: 1.35; }
.pf-achv-item .pf-achv-ico {
  width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--pf-bg-alt); color: var(--pf-muted);
}
.pf-achv-item .pf-achv-ico .ic { width: 20px; height: 20px; }
.pf-achv-item.earned {
  opacity: 1; filter: none;
  border-color: var(--pf-brand);
  background: linear-gradient(180deg, rgb(13 148 136 / .07), transparent);
}
.pf-achv-item.earned .pf-achv-ico {
  background: var(--pf-brand); color: #fff;
  box-shadow: 0 4px 10px rgb(13 148 136 / .35);
}

/* --- Profil moderasyon kartı --- */
.pf-modtool .card-body { border-left: 3px solid var(--pf-danger); border-radius: var(--pf-radius-lg); }
.pf-modtool-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  color: var(--pf-danger-ink);
}
.pf-modtool-head .ic { color: var(--pf-danger); }

/* --- DM (özel mesaj) --- */
.pf-dm-list { display: flex; flex-direction: column; }
.pf-dm-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--pf-border);
  text-decoration: none; color: inherit;
  transition: var(--pf-t);
}
.pf-dm-row:last-child { border-bottom: 0; }
.pf-dm-row:hover { background: var(--pf-bg); text-decoration: none; }
.pf-dm-row.unread { background: var(--pf-brand-light); }
html[data-theme="dark"] .pf-dm-row.unread { background: #0b2b28; }
.pf-dm-mid { min-width: 0; flex: 1; }
.pf-dm-who {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.pf-dm-who small { color: var(--pf-muted); }
.pf-dm-who time { margin-left: auto; font-size: .7rem; color: var(--pf-muted); }
.pf-dm-last {
  font-size: .84rem; color: var(--pf-text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pf-dm-you { font-weight: 800; color: var(--pf-brand-dark); }
html[data-theme="dark"] .pf-dm-you { color: #5eead4; }
.pf-dm-right { display: flex; align-items: center; gap: 8px; color: var(--pf-muted); }
.pf-dm-dot {
  width: auto; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px;
  background: var(--pf-accent); color: #fff;
  display: grid; place-items: center;
  font-size: .68rem; font-weight: 800;
}

.pf-dm-thread {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px;
  max-height: 52vh; overflow-y: auto;
}
.pf-dm-msg { display: flex; }
.pf-dm-msg.mine { justify-content: flex-end; }
.pf-dm-bubble {
  max-width: 78%;
  border: 1px solid var(--pf-border);
  border-radius: 14px 14px 14px 4px;
  background: var(--pf-surface);
  padding: 8px 12px 9px;
}
.pf-dm-msg.mine .pf-dm-bubble {
  border-radius: 14px 14px 4px 14px;
  border-color: transparent;
  background: var(--pf-brand);
  color: #fff;
}
.pf-dm-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: .68rem;
  margin-bottom: 3px;
  opacity: .85;
}
.pf-dm-body { font-size: .9rem; line-height: 1.5; word-wrap: break-word; overflow-wrap: break-word; }
.pf-dm-body img.pf-sticker { width: 1.4em; height: 1.4em; vertical-align: -0.35em; }
.pf-dm-msg.mine .pf-dm-body a { color: #ccfbf1; }

/* --- Mesaj kutusu yönetimi: araç çubuğu + satır silme --- */
.pf-dm-row { padding: 0; }
.pf-dm-rowlink {
  display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1;
  padding: 12px 0 12px 16px; color: inherit; text-decoration: none;
}
.pf-dm-rowlink:hover { background: transparent; }
.pf-dm-del { display: flex; align-items: center; padding-right: 6px; }
.pf-dm-xbtn {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 999px;
  border: 1px solid transparent; background: transparent; color: var(--pf-muted);
  cursor: pointer; line-height: 0; transition: var(--pf-t);
}
.pf-dm-xbtn:hover {
  color: #b91c1c; border-color: #fca5a5; background: rgba(185, 28, 28, .08);
  transform: translateY(-1px);
}
html[data-theme="dark"] .pf-dm-xbtn:hover { color: #f87171; border-color: #7f1d1d; background: rgba(248, 113, 113, .1); }
.pf-dm-xbtn .ic { width: 13px; height: 13px; }
.pf-dm-tools {
  display: flex; gap: 8px; justify-content: flex-end; margin: 0 0 10px; flex-wrap: wrap;
}
.pf-dm-tools form { display: contents; }
.pf-dmtool {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--pf-border); background: var(--pf-surface); color: var(--pf-text-2);
  font-size: .76rem; font-weight: 800; cursor: pointer;
  transition: var(--pf-t);
}
.pf-dmtool .ic { width: 14px; height: 14px; color: var(--pf-brand); }
.pf-dmtool:hover {
  border-color: var(--pf-brand); color: var(--pf-brand-dark);
  background: var(--pf-brand-light); transform: translateY(-1px);
}
html[data-theme="dark"] .pf-dmtool:hover { color: #5eead4; }
.pf-dmtool--danger { border-style: dashed; }
.pf-dmtool--danger .ic { color: var(--pf-muted); }
.pf-dmtool--danger:hover {
  color: #b91c1c; border-color: #fca5a5; background: rgba(185, 28, 28, .07);
}
html[data-theme="dark"] .pf-dmtool--danger:hover { color: #f87171; border-color: #7f1d1d; background: rgba(248, 113, 113, .09); }
.pf-dm-delbtn:hover { color: #b91c1c; border-color: #fca5a5; }
html[data-theme="dark"] .pf-dm-delbtn:hover { color: #f87171; border-color: #7f1d1d; }
.pf-dm-mdel { margin-left: auto; display: inline-flex; }
.pf-dm-mdelbtn {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 999px;
  border: 1px solid transparent; background: transparent; color: inherit; cursor: pointer;
  opacity: .45; line-height: 0; transition: var(--pf-t);
}
.pf-dm-mdelbtn .ic { width: 11px; height: 11px; }
.pf-dm-msg:hover .pf-dm-mdelbtn { opacity: .85; }
.pf-dm-mdelbtn:hover {
  opacity: 1; color: #fecaca; background: rgba(0, 0, 0, .18);
}
.pf-dm-msg:not(.mine) .pf-dm-mdelbtn:hover { color: var(--pf-muted); background: var(--pf-bg); }

/* --- DM üye önerisi (autofill) --- */
.pf-ac { position: relative; }
.pf-ac-pop {
  position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 4px);
  background: var(--pf-surface); border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius-lg, 12px);
  box-shadow: 0 12px 32px rgba(2, 8, 20, .18);
  max-height: 320px; overflow: auto; padding: 4px;
}
.pf-ac-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border: 0; background: transparent; color: var(--pf-text);
  text-align: left; cursor: pointer; border-radius: 10px; transition: var(--pf-t);
  font: inherit;
}
.pf-ac-item:hover, .pf-ac-item.on { background: var(--pf-brand-light); }
.pf-ac-item.pf-ac-empty {
  color: var(--pf-muted); cursor: default; font-size: .84rem; justify-content: center;
  padding: 12px 10px;
}
.pf-ac-item.pf-ac-empty:hover { background: transparent; }
.pf-ac-av { width: 30px; height: 30px; border-radius: 999px; object-fit: cover; flex: none; }
.pf-ac-avtxt {
  display: inline-grid; place-items: center; background: var(--pf-brand-light);
  color: var(--pf-brand-dark); font-weight: 800; font-size: .82rem;
}
html[data-theme="dark"] .pf-ac-avtxt { color: #5eead4; }
.pf-ac-txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pf-ac-txt b { font-size: .86rem; }
.pf-ac-txt small { font-size: .72rem; color: var(--pf-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-ac-go { margin-left: auto; color: var(--pf-muted); opacity: 0; transition: var(--pf-t); }
.pf-ac-item:hover .pf-ac-go, .pf-ac-item.on .pf-ac-go { opacity: 1; }

/* Başlıktaki mesaj rozeti */
.dot--dm {
  left: auto; right: -4px; top: -5px;
  min-width: 18px; height: 18px; padding: 0 5px;
  font-size: .62rem;
  background: var(--pf-accent);
}
.mm-dot {
  display: inline-grid; place-items: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--pf-accent); color: #fff;
  font-size: .66rem; font-weight: 800;
}

/* --- İstatistik sayfası --- */
.pf-stats-activity {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px;
}
.statbox {
  display: flex; align-items: center; gap: 10px;
  background: var(--pf-surface); border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius-lg); padding: 12px 14px;
}
.statbox .ic { color: var(--pf-brand); flex: none; }
.statbox b { font-size: 1.1rem; display: block; }
.statbox span { font-size: .74rem; color: var(--pf-muted); }

.pf-catbars { display: flex; flex-direction: column; gap: 12px; padding: 4px 0; }
.pf-catbar-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: .84rem; margin-bottom: 4px;
}
.pf-catbar-head a { font-weight: 700; color: var(--pf-text); text-decoration: none; }
.pf-catbar-head a:hover { color: var(--pf-brand-dark); }
.pf-catbar-head b { font-size: .72rem; color: var(--pf-muted); font-weight: 600; }
.pf-catbar-track {
  height: 14px; border-radius: 999px; background: var(--pf-bg-alt); overflow: hidden;
}
.pf-catbar-track > span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--pf-brand-deep), var(--pf-brand), #14b8a6);
}

/* --- Mobil daraltmalar --- */
@media (max-width: 640px) {
  .pf-attach-img img { max-width: 128px; max-height: 128px; }
  .pf-poll-row { grid-template-columns: 1fr 64px 36px; }
  .pf-dm-bubble { max-width: 90%; }
  .pf-achv { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
  .pf-stats-activity { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   MOBİL UYUM (tüm ekran boyutları) — menüler, paneller, tuşlar, tablolar
   ========================================================================== */
@media (max-width: 900px) {
  .hdr-in { gap: 10px; padding: 0 12px; }
  .brand-tag { display: none; }
  .brand-name { font-size: 1.05rem; }
  .hdr-search { min-width: 0; }
  .hdr-search input { height: 36px; font-size: .86rem; }
  .hdr-user .who { display: none; }
  .pagehead h1 { font-size: 1.2rem; }
  .post-foot { flex-wrap: wrap; row-gap: 8px; }
}

@media (max-width: 640px) {
  .page { padding: 14px 12px 30px; }
  .layout { gap: 14px; }
  /* Üst bant */
  .strip { font-size: .74rem; padding: 8px 12px; }
  /* Kart ve panel başlıkları sarılır */
  .card-head { flex-wrap: wrap; row-gap: 8px; padding: 12px 13px; }
  .card-head .right { margin-left: 0; flex-basis: 100%; }
  .card-body { padding: 13px; }
  .pagehead { gap: 10px; flex-wrap: wrap; }
  .pagehead .cat-ico { width: 44px; height: 44px; border-radius: 12px; }
  .pagehead h1 { font-size: 1.08rem; }
  .pagehead .right { margin-left: 0; flex-basis: 100%; flex-wrap: wrap; }
  .pagehead .right .btn { flex: 1 1 auto; }
  /* Konu kartı */
  .post { grid-template-columns: 40px minmax(0,1fr); gap: 10px; padding: 13px 12px; }
  .post-meta { gap: 6px; font-size: .7rem; row-gap: 4px; }
  .post-meta b { font-size: .8rem; }
  .post-meta .post-author { font-size: .8rem; }
  .post-meta .chip { font-size: .6rem; }
  .post-meta time { flex-basis: 100%; }
  .post-foot { flex-wrap: wrap; gap: 12px; }
  .post-foot .spacer { flex-basis: 100%; height: 0; }
  .post-foot button, .post-foot a { font-size: .74rem; }
  /* Formlar: iOS odak zoom yok — 16px metin */
  .fg input, .fg textarea, .fg select, .f input, .f textarea, .f select { font-size: 16px; }
  .f-label-row { flex-wrap: wrap; row-gap: 6px; }
  /* DM aynı hizada kalsın */
  .pf-dm-tools { justify-content: stretch; }
  .pf-dm-tools form { display: block; }
  .pf-dm-tools .pf-dmtool { width: 100%; justify-content: center; }
  .pf-dm-rowlink { padding: 11px 0 11px 12px; gap: 10px; }
  .pf-ac-pop { max-height: 260px; }
  /* Butonlar küçük ekranda taşmasın */
  .btn { height: 40px; padding: 0 13px; font-size: .86rem; }
  .btn-sm { height: 33px; padding: 0 10px; font-size: .76rem; }
  /* Profil/ayarlar */
  .avatar-upload { flex-wrap: wrap; }
  /* Admin filtre satırı sarılır */
  .card-body form.fg { display: flex; flex-wrap: wrap; gap: 8px; }
  .card-body form.fg > * { flex: 1 1 auto; min-width: 0; }
  .card-body form.fg .btn { flex: 0 0 auto; }
  /* Tablolar hizada */
  .tbl td { padding: 9px 10px; }
  .tbl .actions { flex-wrap: wrap; }
  .mobile-menu .mm-link { padding: 12px 14px; }
}

@media (max-width: 420px) {
  .btn { height: 38px; padding: 0 11px; font-size: .84rem; }
  .chip { font-size: .58rem; }
  .brand-badge { width: 34px; height: 34px; border-radius: 10px; }
  .brand-badge .brand-logo { width: 21px; height: 21px; }
  .hdr-icon-btn { width: 34px; height: 34px; }
}

/* ==========================================================================
   ÖZEL MARKA LOGOSU (admın yüklü — header + footer birlikte, her ekranda otomatik ölçek)
   ========================================================================== */
.brand-badge--img {
  width: auto; height: 40px; padding: 0; border-radius: 0;
  background: transparent;
  box-shadow: none;
  border: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-badge--img .brand-logo-img {
  height: 32px; width: auto; max-width: 160px; object-fit: contain; display: block; border-radius: 0;
}
.fbrand .brand-badge--img { height: 34px; }
.fbrand .brand-badge--img .brand-logo-img { height: 28px; max-width: 140px; }

@media (max-width: 640px) {
  .brand-badge--img { height: 32px; }
  .brand-badge--img .brand-logo-img { height: 26px; max-width: 110px; }
  .fbrand .brand-badge--img { height: 28px; }
  .fbrand .brand-badge--img .brand-logo-img { height: 23px; max-width: 100px; }
}

/* Yönetim panelindeki logo önizleme satırı */
.pf-brandlogo-prev {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px; border: 1px solid var(--pf-border); border-radius: 12px;
  background: var(--pf-bg); margin-bottom: 12px;
}
.pf-brandlogo-prev img {
  height: 46px; width: auto; max-width: 220px; object-fit: contain;
  background: #fff; padding: 5px 10px; border-radius: 10px; border: 1px solid var(--pf-border);
}

/* ==========================================================================
   ANA SAYFA — KLASİK FORUM DÜZENİ (admın "Anasayfa düzeni: forum")
   ========================================================================== */
.pf-forum-rows { display: flex; flex-direction: column; }
.pf-forum-row {
  display: grid; grid-template-columns: 46px minmax(0,1fr) 150px minmax(180px, 240px);
  gap: 12px; align-items: center;
  padding: 11px 14px; border-bottom: 1px solid var(--pf-border);
  text-decoration: none; color: inherit; transition: background .14s ease;
}
.pf-forum-row:last-child { border-bottom: 0; }
.pf-forum-row:hover { background: var(--pf-bg); text-decoration: none; }
.pf-fr-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-fr-main > b { color: var(--pf-text); font-size: .9rem; }
.pf-fr-desc {
  font-size: .74rem; color: var(--pf-muted);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: break-word;
}
.pf-fr-nums { display: flex; gap: 10px; justify-content: flex-end; }
.pf-fr-num {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  min-width: 44px; padding: 4px 8px; border-radius: 10px;
  background: var(--pf-bg); border: 1px solid var(--pf-border);
}
.pf-fr-num b { font-size: .84rem; color: var(--pf-text); }
.pf-fr-num span { font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; color: var(--pf-muted); }
.pf-fr-last { min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: right; }
.pf-fr-lasttitle { font-size: .78rem; color: var(--pf-text-2); }
.pf-fr-lasttitle a { color: var(--pf-brand); text-decoration: none; }
.pf-fr-lasttitle a:hover { text-decoration: underline; }
.pf-fr-last .hint { font-size: .68rem; }
@media (max-width: 800px) {
  .pf-forum-row { grid-template-columns: 40px minmax(0,1fr) 140px; }
  .pf-fr-nums { display: none; }
}
@media (max-width: 560px) {
  .pf-forum-row { grid-template-columns: 40px minmax(0,1fr); gap: 8px; padding: 10px 12px; }
  .pf-fr-last { grid-column: 1 / -1; text-align: left; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; }
  .pf-fr-lasttitle { max-width: 100%; }
}

/* ==========================================================================
   MOD MERKEZİ (moderatör + admin özel çalışma ekranı)
   ========================================================================== */
.pf-mod-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px;
  margin-bottom: 16px;
}
.pf-mod-stat { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.pf-mod-stat b { font-size: 1.5rem; line-height: 1.1; color: var(--pf-text); }
.pf-mod-stat span { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--pf-muted); }
.pf-mod-stat--hot b { color: var(--pf-danger); }
.pf-mod-report {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 2px; border-bottom: 1px dashed var(--pf-border);
}
.pf-mod-report:last-child { border-bottom: 0; }
.pf-mod-report-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pf-mod-report-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pf-mod-report-title { font-weight: 700; font-size: .9rem; color: var(--pf-text); text-decoration: none; }
.pf-mod-report-title:hover { color: var(--pf-brand); text-decoration: underline; }
.pf-mod-report-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.pf-mod-close form { display: flex; gap: 6px; align-items: center; }
.pf-mod-close select {
  height: 33px; border-radius: 9px; border: 1px solid var(--pf-border);
  background: var(--pf-surface); font-size: .78rem; padding: 0 8px; color: var(--pf-text);
}
.pf-mod-topic-row {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  padding: 11px 2px; border-bottom: 1px dashed var(--pf-border);
}
.pf-mod-topic-row:last-child { border-bottom: 0; }
.pf-mod-topic-main { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 3px; }
.pf-mod-topic-title { font-weight: 700; font-size: .9rem; color: var(--pf-text); text-decoration: none; }
.pf-mod-topic-title:hover { color: var(--pf-brand); text-decoration: underline; }
.pf-mod-topic-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pf-mod-topic-acts form button { cursor: pointer; }
@media (max-width: 640px) {
  .pf-mod-stats { grid-template-columns: 1fr 1fr; }
  .pf-mod-report { flex-direction: column; }
  .pf-mod-report-acts { justify-content: flex-start; width: 100%; }
}

/* ==========================================================================
   T12 — Rank Liderleri (renkli satırlar) + Etiket Yönetimi
   ========================================================================== */
.leader-row .leader-name { min-width: 0; }
.leader-row .leader-fullname { font-weight: 800; font-size: .88rem; color: var(--pf-text); }
.leader-row .leader-rank { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.leader-row .leader-rank .role-badge { font-size: .6rem; padding: 2px 8px; }

.pf-tagtable { display: flex; flex-direction: column; gap: 10px; }
.pf-tagrow {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border: 1px solid var(--pf-border); border-radius: 12px;
  padding: 10px 12px; background: var(--pf-surface); transition: var(--pf-t);
}
.pf-tagrow.is-off { opacity: .62; background: var(--pf-bg-alt); }
.pf-tagname { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 180px; }
.pf-tagname code { font-size: .7rem; }
.pf-tagacts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pf-tagform { display: flex; align-items: center; gap: 6px; }
.pf-tagform input { width: 150px; padding: 5px 9px; font-size: .8rem; border: 1px solid var(--pf-border); border-radius: 8px; background: var(--pf-surface); color: var(--pf-text); }
@media (max-width: 640px) {
  .pf-tagrow { align-items: flex-start; }
  .pf-tagform input { width: 120px; }
}
