/* ============ DEĞİŞKENLER / TEMA ============ */
:root {
  --bg: #0d0f14;
  --bg-2: #141821;
  --bg-3: #1b2030;
  --card: #161b26;
  --card-2: #1d2433;
  --border: #262d3d;
  --text: #e7ebf3;
  --text-dim: #9aa6bd;
  --text-mute: #6b768c;
  --accent: #e11d48;
  --accent-2: #f43f5e;
  --accent-glow: rgba(225, 29, 72, 0.35);
  --green: #22c55e;
  --gold: #f59e0b;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  --maxw: 1240px;
}

[data-theme="light"] {
  --bg: #eef1f6;
  --bg-2: #ffffff;
  --bg-3: #f1f4f9;
  --card: #ffffff;
  --card-2: #f5f7fb;
  --border: #e2e7ef;
  --text: #1a2030;
  --text-dim: #4a5468;
  --text-mute: #8a93a6;
  --shadow: 0 8px 30px rgba(20, 30, 60, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(225, 29, 72, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 0%, rgba(56, 89, 230, 0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* ============ BUTONLAR ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: 9px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: 0.18s ease;
  white-space: nowrap; font-family: inherit;
}
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; box-shadow: 0 6px 18px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px var(--accent-glow); }
.btn-ghost { color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); background: var(--bg-3); }
.btn-outline { border-color: var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-2); }

/* ============ ÜST BAR ============ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 15, 20, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .topbar { background: rgba(255, 255, 255, 0.9); }
.topbar-inner { display: flex; align-items: center; gap: 18px; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px;
}
img.brand-logo {
  object-fit: contain; background: transparent; box-shadow: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
}
.brand-accent { color: var(--accent-2); }

.topbar-search { flex: 1; max-width: 420px; display: flex; position: relative; }
.topbar-search input {
  width: 100%; background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 10px; padding: 9px 42px 9px 14px; color: var(--text); font-size: 14px;
  font-family: inherit;
}
.topbar-search input:focus { outline: none; border-color: var(--accent); }
.topbar-search button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 15px; padding: 4px;
}
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.theme-toggle {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: 9px;
  width: 38px; height: 38px; cursor: pointer; font-size: 16px; color: var(--text);
}
.mobile-menu-btn { display: none; background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 9px; width: 40px; height: 40px; font-size: 20px; cursor: pointer; color: var(--text); }

/* ============ NAVBAR ============ */
.navbar { background: var(--bg-2); border-bottom: 1px solid var(--border); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  display: block; padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--text-dim);
  border-radius: 8px; transition: 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-3); }
.nav-links a.active { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.nav-premium { color: var(--gold) !important; }
.nav-right { font-size: 13px; color: var(--text-dim); display: flex; align-items: center; gap: 7px; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

/* ============ SAYFA YERLEŞİMİ ============ */
.page { padding: 22px 18px 50px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.content { min-width: 0; }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; margin-bottom: 22px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.card-head h2 { font-size: 16px; }
.card-head-link { font-size: 13px; color: var(--accent-2); font-weight: 600; }
.section-title { font-size: 20px; margin: 8px 0 16px; padding-left: 4px; }

/* ============ HOŞ GELDİN BANNER ============ */
.welcome-banner {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  background:
    linear-gradient(135deg, rgba(225, 29, 72, 0.16), rgba(56, 89, 230, 0.10)),
    var(--card);
  border: 1px solid var(--border); border-radius: 16px; padding: 28px;
  margin-bottom: 18px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.welcome-banner::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%); border-radius: 50%;
}
.welcome-text { flex: 1; min-width: 280px; position: relative; z-index: 1; }
.welcome-text h1 { font-size: 28px; line-height: 1.2; margin-bottom: 10px; }
.welcome-text p { color: var(--text-dim); max-width: 560px; margin-bottom: 18px; }
.welcome-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.welcome-stats { display: flex; gap: 14px; position: relative; z-index: 1; }
.wstat {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 18px; text-align: center; min-width: 92px;
}
.wstat-num { display: block; font-size: 20px; font-weight: 800; color: var(--accent-2); }
.wstat-label { font-size: 12px; color: var(--text-mute); }

/* ============ TICKER ============ */
.ticker {
  display: flex; align-items: center; gap: 14px; background: var(--card);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px;
  margin-bottom: 22px; overflow: hidden;
}
.ticker-label { font-size: 13px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.ticker-track { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--text-dim); overflow: hidden; white-space: nowrap; }
.ticker-track a:hover { color: var(--text); }
.ticker .dot { color: var(--text-mute); }

/* ============ YATAY KAYDIRMA (YENİ MESAJLAR) ============ */
.hscroll { display: flex; gap: 12px; padding: 16px 18px; overflow-x: auto; scrollbar-width: thin; }
.hscroll::-webkit-scrollbar { height: 7px; }
.hscroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
.hcard {
  flex: 0 0 230px; background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px; transition: 0.16s;
}
.hcard:hover { border-color: var(--accent); transform: translateY(-2px); }
.hcard .badge { font-size: 10px; }
.hcard h4 { font-size: 13px; margin: 8px 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hcard .hmeta { display: flex; gap: 10px; font-size: 11px; color: var(--text-mute); }

/* ============ SEKMELER ============ */
.tabs { display: flex; gap: 4px; padding: 12px 14px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab {
  background: transparent; border: none; color: var(--text-dim); font-weight: 600;
  font-size: 13px; padding: 8px 14px; border-radius: 8px; cursor: pointer; white-space: nowrap;
  font-family: inherit; transition: 0.15s;
}
.tab:hover { color: var(--text); background: var(--bg-3); }
.tab.active { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

/* ============ KONU TABLOSU ============ */
.thread-table-head {
  display: grid; grid-template-columns: 1fr 70px 90px 170px; gap: 10px;
  padding: 10px 18px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-mute); border-bottom: 1px solid var(--border); background: var(--bg-2);
}
.th-meta, .th-last { text-align: center; }
.thread-list { display: flex; flex-direction: column; }
.thread-row {
  display: grid; grid-template-columns: 1fr 70px 90px 170px; gap: 10px; align-items: center;
  padding: 12px 18px; border-bottom: 1px solid var(--border); transition: 0.12s;
}
.thread-row:hover { background: var(--card-2); }
.thread-main { display: flex; gap: 12px; align-items: center; min-width: 0; }
.avatar {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center;
  font-weight: 700; font-size: 15px; color: #fff;
}
.thread-info { min-width: 0; }
.thread-title { font-size: 14px; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-title:hover { color: var(--accent-2); }
.thread-sub { font-size: 12px; color: var(--text-mute); display: flex; gap: 8px; align-items: center; margin-top: 2px; }
.thread-sub a { color: var(--text-dim); }
.thread-sub a:hover { color: var(--accent-2); }
.thread-stat { text-align: center; font-size: 13px; }
.thread-stat b { display: block; font-size: 14px; }
.thread-stat span { font-size: 11px; color: var(--text-mute); }
.thread-last { font-size: 12px; color: var(--text-dim); display: flex; flex-direction: column; gap: 1px; text-align: left; }
.thread-last .tl-user { font-weight: 600; color: var(--text); }
.thread-last .tl-time { color: var(--text-mute); }

.badge {
  display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 5px;
  text-transform: uppercase; letter-spacing: 0.3px; vertical-align: middle;
}
.badge-red { background: rgba(225, 29, 72, 0.16); color: var(--accent-2); }
.badge-blue { background: rgba(59, 130, 246, 0.16); color: #60a5fa; }
.badge-green { background: rgba(34, 197, 94, 0.16); color: #4ade80; }
.badge-gold { background: rgba(245, 158, 11, 0.16); color: var(--gold); }
.badge-purple { background: rgba(168, 85, 247, 0.16); color: #c084fc; }
.badge-pin { background: var(--accent); color: #fff; }

/* ============ FORUM KATEGORİLERİ ============ */
.fgroup { margin-bottom: 22px; }
.fgroup-head {
  background: linear-gradient(135deg, var(--card-2), var(--card));
  border: 1px solid var(--border); border-bottom: none; border-radius: 12px 12px 0 0;
  padding: 12px 18px; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 10px;
}
.fgroup-head .fg-icon { font-size: 18px; }
.fgroup-head small { font-weight: 400; color: var(--text-mute); font-size: 12px; }
.fnodes { border: 1px solid var(--border); border-radius: 0 0 12px 12px; overflow: hidden; }
.fnode {
  display: grid; grid-template-columns: 44px minmax(0, 1.4fr) 110px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--card); transition: 0.12s;
}
.fnode-info { min-width: 0; }
.fnode:last-child { border-bottom: none; }
.fnode:hover { background: var(--card-2); }
.fnode-icon {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; font-size: 20px;
  background: var(--bg-3); border: 1px solid var(--border);
}
.fnode-info h3 { font-size: 15px; margin-bottom: 3px; }
.fnode-info h3 a:hover { color: var(--accent-2); }
.fnode-info p { font-size: 12.5px; color: var(--text-mute); line-height: 1.4; }
.fnode-sub { margin-top: 6px; font-size: 11px; color: var(--text-dim); }
.fnode-sub a { color: var(--accent-2); }
.fnode-counts { text-align: center; font-size: 12px; color: var(--text-mute); }
.fnode-counts b { color: var(--text); display: block; font-size: 14px; }
.fnode-last { font-size: 12px; color: var(--text-dim); display: flex; gap: 10px; align-items: center; min-width: 0; }
.fnode-last > div { min-width: 0; }
.fnode-last .avatar { width: 34px; height: 34px; font-size: 13px; border-radius: 9px; }
.fnode-last .fl-title { color: var(--text); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.fnode-last .fl-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fnode-last .fl-meta { color: var(--text-mute); }

/* ============ SIDEBAR ============ */
.sidebar { position: sticky; top: 80px; }
.side-card { padding: 0; }
.side-head { padding: 13px 16px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 14px; }
.side-text { padding: 14px 16px; font-size: 13px; color: var(--text-dim); }
.side-card .btn { margin: 0 16px 16px; width: calc(100% - 32px); }
.side-link { display: block; padding: 11px 16px; font-size: 13px; color: var(--text-dim); border-bottom: 1px solid var(--border); }
.side-link:last-child { border-bottom: none; }
.side-link:hover { color: var(--accent-2); background: var(--card-2); }
.side-foot { padding: 11px 16px; font-size: 12px; color: var(--text-mute); border-top: 1px solid var(--border); }

.online-members { display: flex; flex-wrap: wrap; gap: 5px; padding: 14px 16px; }
.online-members .chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; padding: 3px 9px; background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 20px; color: var(--text-dim); transition: 0.12s;
}
.online-members .chip:hover { border-color: var(--green); color: var(--text); }
.online-members .chip .chip-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.online-members .chip-on .chip-dot { background: var(--green); box-shadow: 0 0 5px var(--green); }
.online-members .chip-on { color: var(--text); }
.online-members .chip-off { opacity: 0.7; }
.online-members .chip-off .chip-dot { background: var(--text-mute); }
.side-empty { padding: 16px; font-size: 12.5px; color: var(--text-mute); text-align: center; }

.stat-list li { display: flex; justify-content: space-between; padding: 10px 16px; font-size: 13px; border-bottom: 1px solid var(--border); }
.stat-list li:last-child { border-bottom: none; }
.stat-list span { color: var(--text-dim); }
.accent { color: var(--accent-2); }

.leader-list li { display: flex; align-items: center; gap: 11px; padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 13px; }
.leader-list li:last-child { border-bottom: none; }
.leader-rank { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--bg-3); color: var(--text-dim); }
.leader-list li:nth-child(1) .leader-rank { background: var(--gold); color: #1a1300; }
.leader-list li:nth-child(2) .leader-rank { background: #c0c7d4; color: #1a2030; }
.leader-list li:nth-child(3) .leader-rank { background: #cd7f32; color: #fff; }
.leader-name { flex: 1; font-weight: 600; }
.leader-pts { color: var(--accent-2); font-weight: 700; font-size: 12px; }

.recent-members { padding: 8px 0; }
.recent-members .rm {
  display: flex; align-items: center; gap: 11px; padding: 8px 16px; font-size: 13px;
}
.recent-members .rm .avatar { width: 32px; height: 32px; font-size: 12px; border-radius: 8px; }
.recent-members .rm-time { margin-left: auto; font-size: 11px; color: var(--text-mute); }

/* ============ FOOTER ============ */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); margin-top: 30px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; padding: 40px 18px 28px; }
.footer-col p { font-size: 13px; color: var(--text-mute); margin-top: 12px; max-width: 320px; }
.footer-col h4 { font-size: 14px; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: var(--text-dim); padding: 5px 0; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px; text-align: center; }
.footer-bottom p { font-size: 12px; color: var(--text-mute); margin: 4px 0; }

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  width: 100%; max-width: 400px; padding: 26px; position: relative; box-shadow: var(--shadow);
}
.modal-close { position: absolute; right: 16px; top: 16px; background: none; border: none; color: var(--text-mute); font-size: 17px; cursor: pointer; }
.modal-tabs { display: flex; gap: 6px; margin-bottom: 20px; background: var(--bg-3); padding: 5px; border-radius: 10px; }
.modal-tab { flex: 1; padding: 9px; border: none; background: none; color: var(--text-dim); font-weight: 600; font-size: 14px; border-radius: 7px; cursor: pointer; font-family: inherit; }
.modal-tab.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.modal-form.hidden { display: none; }
.modal-form label { font-size: 13px; color: var(--text-dim); display: flex; flex-direction: column; gap: 6px; }
.modal-form input,
.modal-form select,
.modal-form textarea {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px;
  color: var(--text); font-size: 14px; font-family: inherit; width: 100%;
}
.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.modal-form textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.modal-form select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aa6bd' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.modal-form select option { background: var(--bg-2); color: var(--text); }
.modal-note { font-size: 12px; color: var(--text-mute); text-align: center; }
.al-error { color: var(--accent-2); font-size: 13px; min-height: 0; }
.al-error.show { min-height: 18px; }

/* Giriş yapılmış kullanıcı menüsü */
.user-chip { display: flex; align-items: center; gap: 9px; }
.user-chip .uc-avatar {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff;
  font-weight: 700; font-size: 14px; background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.user-chip .uc-name { font-size: 14px; font-weight: 600; }

/* ============ TOAST ============ */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--card-2); border: 1px solid var(--accent); color: var(--text);
  padding: 12px 22px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: 0.25s; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ PROFİL SAYFASI ============ */
.profile-cover {
  height: 180px; border-radius: 16px; margin-bottom: -60px;
  background: linear-gradient(135deg, rgba(225,29,72,.5), rgba(56,89,230,.4)), var(--card-2);
  border: 1px solid var(--border); position: relative;
}
.profile-cover { background-size: cover; background-position: center; overflow: hidden; }
.profile-head { display: flex; align-items: flex-end; gap: 20px; padding: 0 24px; flex-wrap: wrap; position: relative; z-index: 1; }
.profile-avatar {
  width: 110px; height: 110px; border-radius: 22px; display: grid; place-items: center;
  font-size: 44px; font-weight: 800; color: #fff; border: 4px solid var(--bg); flex-shrink: 0;
  background-size: cover; background-position: center; position: relative;
}
.pf-cover-btn {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  background: rgba(0,0,0,.55); color: #fff; border: 1px solid rgba(255,255,255,.25);
  border-radius: 9px; padding: 7px 12px; font-size: 13px; cursor: pointer;
}
.pf-cover-btn:hover { background: rgba(0,0,0,.78); }
.pf-avatar-btn {
  position: absolute; right: -4px; bottom: -4px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff; border: 3px solid var(--bg); cursor: pointer;
  display: grid; place-items: center; font-size: 15px; padding: 0;
}
.pf-avatar-btn:hover { background: var(--accent-2); }
.profile-id { flex: 1; min-width: 200px; padding-bottom: 8px; }
.profile-id h1 { font-size: 26px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-id .p-title { font-size: 14px; color: var(--text-dim); margin-top: 2px; }
.profile-actions { padding-bottom: 12px; display: flex; gap: 10px; }
.profile-grid { display: grid; grid-template-columns: 300px 1fr; gap: 22px; margin-top: 26px; align-items: start; }
.profile-bio { font-size: 14px; color: var(--text-dim); line-height: 1.6; }
.pstat-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pstat { flex: 1; min-width: 90px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 11px; padding: 14px; text-align: center; }
.pstat b { display: block; font-size: 20px; color: var(--accent-2); }
.pstat span { font-size: 12px; color: var(--text-mute); }
.role-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 20px; }
.role-admin { background: rgba(225,29,72,.16); color: var(--accent-2); }
.role-mod { background: rgba(245,158,11,.16); color: var(--gold); }
.role-member { background: rgba(56,89,230,.16); color: #7c9cff; }
.profile-thread { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); transition: background .15s ease; }
.profile-thread:last-child { border-bottom: none; }
.profile-thread:hover { background: var(--card-2); }
.profile-thread .pt-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-thread:hover .pt-title { color: var(--accent-2); }
.profile-thread .pt-cat { font-size: 12px; color: var(--text-mute); margin-top: 2px; }
.profile-thread .pt-arrow { color: var(--text-mute); font-size: 22px; line-height: 1; flex-shrink: 0; }
.profile-empty { padding: 30px; text-align: center; color: var(--text-mute); }

/* ---- Profil düzenleme modalı (zengin) ---- */
.modal.modal-lg { max-width: 540px; }
.modal-form textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px; font-family: inherit; font-size: 14px;
  background: var(--bg-3); border: 1px solid var(--border); color: var(--text); outline: none; resize: vertical; box-sizing: border-box;
}
.modal-form textarea:focus { border-color: var(--accent); }
.btn.btn-sm { padding: 7px 13px; font-size: 13px; }
.pe-hint { display: block; font-size: 11.5px; color: var(--text-mute); margin-top: 5px; }
.pe-media { margin-bottom: 6px; }
.pe-banner {
  position: relative; height: 120px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-3) center/cover no-repeat;
  background-image: linear-gradient(135deg, rgba(225,29,72,.25), rgba(56,89,230,.25));
  display: flex; align-items: flex-end; justify-content: flex-end; padding: 10px;
}
.pe-media-btn {
  background: rgba(0,0,0,.55); color: #fff; border: 1px solid rgba(255,255,255,.2);
  border-radius: 9px; padding: 7px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; backdrop-filter: blur(3px);
}
.pe-media-btn:hover { background: rgba(0,0,0,.75); }
.pe-avatar-row { display: flex; align-items: center; gap: 14px; margin: -34px 0 6px 14px; position: relative; }
.pe-avatar {
  width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0;
  border: 3px solid var(--card); background-size: cover; background-position: center;
  display: grid; place-items: center; font-size: 30px; font-weight: 800; color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.pe-avatar-info { display: flex; flex-direction: column; gap: 2px; padding-top: 30px; }

/* ---- Profil: zengin görünüm ---- */
.profile-id .pf-meta { font-size: 12.5px; color: var(--text-mute); margin-top: 6px; }
.pf-statbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.pf-stat { background: var(--bg-3); border: 1px solid var(--border); border-radius: 12px; padding: 16px 10px; text-align: center; transition: transform .15s ease, border-color .15s ease; }
.pf-stat:hover { transform: translateY(-2px); border-color: var(--accent); }
.pf-stat b { display: block; font-size: 24px; font-weight: 800; color: var(--accent-2); line-height: 1.1; }
.pf-stat span { font-size: 12px; color: var(--text-mute); }
.pf-card-title { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.pf-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-3); }
.pf-badge svg { width: 14px; height: 14px; }
.pf-badge-role.role-admin { background: rgba(225,29,72,.15); color: #ff6b8a; border-color: rgba(225,29,72,.35); }
.pf-badge-role.role-mod { background: rgba(245,158,11,.15); color: var(--gold); border-color: rgba(245,158,11,.35); }
.pf-badge-role.role-member { background: rgba(56,89,230,.15); color: #7c9cff; border-color: rgba(56,89,230,.35); }
.pf-badge-blue { background: rgba(29,155,240,.14); color: #4cb5ff; border-color: rgba(29,155,240,.38); }
.pf-badge-ok { background: rgba(34,197,94,.13); color: #4ade80; border-color: rgba(34,197,94,.34); }
.pf-badge-gold { background: rgba(245,158,11,.14); color: var(--gold); border-color: rgba(245,158,11,.34); }
.pf-badge-purple { background: rgba(139,92,246,.15); color: #b794f6; border-color: rgba(139,92,246,.36); }
.pf-badge-ban { background: rgba(225,29,72,.16); color: #ff6b8a; border-color: rgba(225,29,72,.4); }
.pf-info { display: flex; flex-direction: column; }
.pf-info-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-dim); }
.pf-info-row:last-child { border-bottom: none; }
.pf-info-row b { color: var(--text); }
.pf-count { margin-left: auto; background: var(--bg-3); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; color: var(--text-dim); }

/* ============ ÜYELER SAYFASI ============ */
.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.member-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px;
  display: flex; align-items: center; gap: 14px; transition: 0.15s; box-shadow: var(--shadow);
}
.member-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.member-card .mc-av { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 20px; flex-shrink: 0; }
.member-card .mc-name { font-weight: 700; font-size: 15px; }
.member-card .mc-meta { font-size: 12px; color: var(--text-mute); margin-top: 3px; }
.members-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.members-search { background: var(--bg-3); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; color: var(--text); font-size: 14px; font-family: inherit; min-width: 240px; }
.members-search:focus { outline: none; border-color: var(--accent); }

/* ============ KONU DETAY / KATEGORİ ============ */
.breadcrumb { font-size: 13px; color: var(--text-mute); margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--accent-2); }
.breadcrumb .sep { color: var(--text-mute); }

.thread-head { padding: 20px 22px; border-bottom: 1px solid var(--border); }
.thread-head h1 { font-size: 22px; line-height: 1.3; margin-bottom: 10px; }
.thread-head .th-meta { font-size: 13px; color: var(--text-mute); display: flex; gap: 14px; flex-wrap: wrap; }

.post {
  display: grid; grid-template-columns: 160px 1fr; gap: 0; border-bottom: 1px solid var(--border);
}
.post:last-child { border-bottom: none; }
.post-author { padding: 20px; background: var(--bg-2); border-right: 1px solid var(--border); text-align: center; }
.post-author .pa-av { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 26px; }
.post-author .pa-name { font-weight: 700; font-size: 14px; }
.post-author .pa-name a { color: inherit; }
.post-author .pa-name a:hover { color: var(--accent-2); }
.post-author .pa-role { margin-top: 6px; }
.post-author .pa-posts { font-size: 12px; color: var(--text-mute); margin-top: 8px; }
.post-body { padding: 20px 22px; min-width: 0; }
.post-body .pb-time { font-size: 12px; color: var(--text-mute); margin-bottom: 12px; }
.post-body .pb-content { font-size: 14.5px; line-height: 1.7; color: var(--text); white-space: pre-wrap; word-wrap: break-word; }

.post-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.act-btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: var(--bg-3); border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 14px; color: var(--text-dim); font-size: 13px; font-weight: 600; font-family: inherit;
  transition: all .15s;
}
.act-btn:hover { border-color: var(--accent); color: var(--text); }
.act-btn .act-count { background: var(--bg-2); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.like-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.like-btn.active .act-count { background: var(--accent); color: #fff; }
.report-btn:hover { border-color: #f59e0b; color: #f59e0b; }

.reply-box { padding: 18px 22px; }
.reply-box h3 { font-size: 15px; margin-bottom: 12px; }
.reply-box textarea {
  width: 100%; background: var(--bg-3); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font-size: 14px; font-family: inherit; resize: vertical; min-height: 90px;
}
.reply-box textarea:focus { outline: none; border-color: var(--accent); }
.reply-box .rb-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.reply-login { padding: 22px; text-align: center; color: var(--text-dim); }
.reply-locked { padding: 18px 22px; text-align: center; color: var(--accent-2); font-weight: 600; }

.cat-thread { display: grid; grid-template-columns: 44px 1fr 80px 100px; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); transition: .12s; }
.cat-thread:last-child { border-bottom: none; }
.cat-thread:hover { background: var(--card-2); }
.cat-thread .ct-info { min-width: 0; }
.cat-thread .ct-title { font-weight: 600; font-size: 14px; display: block; }
.cat-thread .ct-title:hover { color: var(--accent-2); }
.cat-thread .ct-sub { font-size: 12px; color: var(--text-mute); }
.cat-thread .ct-stat { text-align: center; font-size: 13px; }
.cat-thread .ct-stat b { display: block; }
.cat-thread .ct-stat span { font-size: 11px; color: var(--text-mute); }

/* ============ BİLGİ SAYFASI ============ */
.info-page { max-width: 820px; margin: 0 auto; }
.info-page h1 { font-size: 26px; margin-bottom: 8px; }
.info-page .info-body { font-size: 15px; line-height: 1.8; color: var(--text-dim); }
.info-page .info-body h2 { font-size: 18px; color: var(--text); margin: 22px 0 8px; }
.info-page .info-body p { margin-bottom: 12px; }
.info-page .info-body ul { padding-left: 22px; margin-bottom: 12px; }
.info-page .info-body li { margin-bottom: 6px; list-style: disc; }

/* ============ RESPONSIVE ============ */
@media (max-width: 760px) { .profile-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .post { grid-template-columns: 1fr; }
  .post-author { display: flex; align-items: center; gap: 12px; text-align: left; border-right: none; border-bottom: 1px solid var(--border); padding: 14px 18px; }
  .post-author .pa-av { width: 44px; height: 44px; font-size: 18px; margin: 0; border-radius: 11px; }
  .post-author .pa-posts { margin-top: 0; }
  .cat-thread { grid-template-columns: 44px 1fr; }
  .cat-thread .ct-stat { display: none; }
}
@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 720px) {
  .topbar-search { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-links { display: none; }
  .navbar.open .nav-links {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 8px; gap: 2px; z-index: 40;
  }
  .navbar { position: relative; }
  .nav-right { display: none; }
  .btn-ghost { display: none; }
  .welcome-text h1 { font-size: 22px; }
  .thread-table-head { grid-template-columns: 1fr 90px; }
  .thread-table-head .th-meta:nth-child(2),
  .thread-table-head .th-meta:nth-child(3) { display: none; }
  .thread-row { grid-template-columns: 1fr auto; }
  .thread-row .thread-stat { display: none; }
  .fnode { grid-template-columns: 44px 1fr; }
  .fnode-counts, .fnode-last { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 460px) {
  .footer-inner { grid-template-columns: 1fr; }
  .welcome-stats { width: 100%; }
  .wstat { flex: 1; }
}

/* ============ BİLDİRİM & MESAJ İKONLARI ============ */
.top-ic {
  position: relative; background: var(--bg-3); border: 1px solid var(--border); border-radius: 9px;
  width: 38px; height: 38px; cursor: pointer; font-size: 16px; color: var(--text); display: inline-grid; place-items: center;
}
.top-ic:hover { border-color: var(--accent); }
.ic-badge {
  position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--accent); color: #fff; border-radius: 999px; font-size: 10px; font-weight: 800;
  display: grid; place-items: center; border: 2px solid var(--bg-2);
}

/* Açılır paneller (çan / zarf) */
.fd-panel {
  position: fixed; top: 60px; right: 16px; width: 340px; max-width: calc(100vw - 32px);
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow); z-index: 200; display: none; overflow: hidden;
}
.fd-panel.open { display: block; }
.fd-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 14px;
}
.fd-panel-link { font-size: 12px; color: var(--accent-2); background: none; border: none; cursor: pointer; font-family: inherit; }
.fd-panel-link:hover { text-decoration: underline; }
.fd-panel-body { max-height: 380px; overflow-y: auto; }
.fd-empty { padding: 28px 16px; text-align: center; color: var(--text-mute); font-size: 13px; }

.fd-notif {
  display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text); transition: background .12s;
}
.fd-notif:hover { background: var(--bg-3); }
.fd-notif.unread { background: var(--accent-glow); }
.fd-notif-ic { font-size: 17px; flex: 0 0 auto; }
.fd-notif-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fd-notif-text { font-size: 13.5px; line-height: 1.4; }
.fd-notif-time { font-size: 11px; color: var(--text-mute); }

.fd-conv {
  display: flex; align-items: center; gap: 11px; padding: 11px 16px; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text); transition: background .12s;
}
.fd-conv:hover { background: var(--bg-3); }
.fd-conv.unread { background: var(--accent-glow); }
.fd-conv-av { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; flex: 0 0 auto; }
.fd-conv-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fd-conv-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.fd-conv-time { color: var(--text-mute); font-size: 11px; font-weight: 400; flex: 0 0 auto; }
.fd-conv-last { font-size: 12.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-conv-badge { background: var(--accent); color: #fff; border-radius: 999px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; font-weight: 800; display: grid; place-items: center; }

/* ============ MESAJLAR SAYFASI ============ */
.msgr {
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; min-height: 540px;
}
.msgr-list { border-right: 1px solid var(--border); overflow-y: auto; max-height: 640px; background: var(--bg-2); }
.msgr-item {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 13px 15px; background: none; border: none; border-bottom: 1px solid var(--border);
  cursor: pointer; color: var(--text); font-family: inherit; transition: background .12s;
}
.msgr-item:hover { background: var(--bg-3); }
.msgr-item.active { background: var(--accent-glow); border-left: 3px solid var(--accent); }
.msgr-av { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 800; flex: 0 0 auto; }
.msgr-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.msgr-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.msgr-unread { background: var(--accent); color: #fff; border-radius: 999px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.msgr-item-last { font-size: 12.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.msgr-chat { display: flex; flex-direction: column; min-width: 0; max-height: 640px; }
.msgr-chat-head { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.msgr-chat-user { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.msgr-chat-user:hover b { color: var(--accent-2); }
.msgr-thread { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.msgr-bubble-row { display: flex; }
.msgr-bubble-row.me { justify-content: flex-end; }
.msgr-bubble {
  max-width: 72%; padding: 9px 13px 18px; border-radius: 14px; font-size: 14px; line-height: 1.5;
  position: relative; word-wrap: break-word; white-space: pre-wrap;
}
.msgr-bubble-row.them .msgr-bubble { background: var(--bg-3); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msgr-bubble-row.me .msgr-bubble { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-bottom-right-radius: 4px; }
.msgr-bubble-time { position: absolute; right: 11px; bottom: 5px; font-size: 10px; opacity: .7; }
.msgr-empty { margin: auto; text-align: center; color: var(--text-mute); font-size: 14px; padding: 30px; }
.msgr-compose { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--border); }
.msgr-compose input {
  flex: 1; background: var(--bg-3); border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 14px; color: var(--text); font-size: 14px; font-family: inherit;
}
.msgr-compose input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

@media (max-width: 760px) {
  .msgr { grid-template-columns: 1fr; }
  .msgr-list { max-height: 200px; }
  .fd-panel { top: 56px; right: 8px; }
}

/* ============ DESTEK / TICKET SAYFASI ============ */
.dest-head { margin-bottom: 18px; }
.dest-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.back-link { display: inline-block; margin-bottom: 12px; color: var(--text-dim); font-size: 13.5px; }
.back-link:hover { color: var(--accent-2); }

.ticket-list { display: flex; flex-direction: column; }
.ticket-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text); transition: background .12s;
}
.ticket-row:last-child { border-bottom: none; }
.ticket-row:hover { background: var(--bg-3); }
.tk-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tk-row-subject { font-weight: 600; font-size: 14px; }
.tk-row-meta { font-size: 12px; color: var(--text-mute); }

.tk-status { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tk-open { background: rgba(245,158,11,.16); color: #f59e0b; }
.tk-assigned { background: rgba(59,130,246,.16); color: #3b82f6; }
.tk-answered { background: rgba(34,197,94,.16); color: #22c55e; }
.tk-closed { background: var(--bg-3); color: var(--text-mute); }
.tk-prio { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.tk-prio-low { color: var(--text-mute); }
.tk-prio-normal { color: var(--text-dim); }
.tk-prio-high { color: var(--accent-2); }

.ticket-detail-head { padding: 18px 22px; border-bottom: 1px solid var(--border); }
.tk-meta { font-size: 13px; color: var(--text-dim); margin-top: 6px; }
.ticket-evidence { padding: 16px 22px; border-bottom: 1px solid var(--border); }
.te-label { font-size: 12px; color: var(--text-mute); margin-bottom: 10px; font-weight: 600; }
.te-url { margin-top: 8px; font-size: 12px; word-break: break-all; }
.te-url a { color: var(--accent-2); }

.ticket-msgs { padding: 16px 22px; display: flex; flex-direction: column; gap: 12px; }
.tk-msg { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.tk-msg.tk-staff { background: var(--accent-glow); border-color: transparent; }
.tk-msg-head { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.tk-msg-head span:last-child { margin-left: auto; color: var(--text-mute); font-size: 11px; font-weight: 400; }
.tk-msg-body { font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; }

.evidence-preview { margin-top: 6px; }

/* Yerleşik medya oynatıcı */
.media-frame { position: relative; width: 100%; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #000; }
.media-frame iframe, .media-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-image { max-width: 100%; border-radius: 12px; display: block; }
.media-link { color: var(--accent-2); word-break: break-all; }

@media (max-width: 860px) { .dest-grid { grid-template-columns: 1fr; } }

/* ============ REKLAM ALANI (6x6 GRID) ============ */
/* ---- Mavi tik (onaylı hesap) ---- */
.blue-tick {
  display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em;
  margin-left: 3px; flex-shrink: 0;
}

.ad-section { margin-bottom: 22px; }
.ad-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 16px;
}
.ad-tile {
  position: relative; aspect-ratio: 728 / 90; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-3); display: block;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ad-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.32); border-color: var(--accent); }
.ad-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Hareketli: dolu banner'ların üzerinden periyodik ışık süzülmesi */
.ad-tile:not(.ad-empty)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255,255,255,.18) 48%, transparent 64%);
  transform: translateX(-130%);
  animation: adSheen 5s ease-in-out infinite;
}
.ad-tile:nth-child(2n)::after { animation-delay: 1.2s; }
.ad-tile:nth-child(3n)::after { animation-delay: 2.4s; }
@keyframes adSheen { 0%, 100% { transform: translateX(-130%); } 55%, 72% { transform: translateX(130%); } }
.ad-tile.ad-empty {
  display: grid; place-items: center; text-align: center; color: var(--text-mute);
  font-size: 13px; font-weight: 700; line-height: 1.3; border-style: dashed;
  background: linear-gradient(135deg, rgba(255,255,255,.02), rgba(225,29,72,.06), rgba(255,255,255,.02));
  background-size: 220% 220%; animation: adShift 7s ease infinite;
}
.ad-tile.ad-empty:hover { color: var(--accent); border-color: var(--accent); transform: none; box-shadow: none; }
@keyframes adShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@media (max-width: 680px) { .ad-grid { grid-template-columns: 1fr; gap: 10px; padding: 12px; } }
@media (prefers-reduced-motion: reduce) {
  .ad-tile:not(.ad-empty)::after, .ad-tile.ad-empty { animation: none; }
}

/* ---- Konu altı reklamlar ---- */
.thread-ads { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border); }
.thread-ads-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 8px; }
.thread-ads-row { display: flex; flex-wrap: wrap; gap: 12px; }
.thread-ad {
  flex: 1 1 280px; max-width: 100%; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-3); transition: transform .15s ease, box-shadow .15s ease;
}
.thread-ad:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.thread-ad img { width: 100%; max-height: 120px; object-fit: cover; display: block; }

/* ============ PREMIUM & REKLAM SAYFASI ============ */
.premium-hero {
  background: linear-gradient(135deg, rgba(225,29,72,.22), rgba(56,89,230,.18)), var(--card);
  border: 1px solid var(--border); border-radius: 18px; padding: 34px 28px; margin-bottom: 26px; text-align: center;
}
.premium-hero h1 { font-size: 30px; margin-bottom: 10px; }
.premium-hero p { color: var(--text-dim); max-width: 720px; margin: 0 auto; line-height: 1.65; font-size: 15px; }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.pkg-card {
  position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px 22px; display: flex; flex-direction: column;
}
.pkg-card.pkg-highlight { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 14px 36px rgba(0,0,0,.32); }
.pkg-badge {
  position: absolute; top: -12px; right: 18px; background: var(--gold); color: #1a1300;
  font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 20px;
}
.pkg-name { font-size: 19px; margin-bottom: 6px; }
.pkg-price { font-size: 30px; font-weight: 800; color: var(--accent-2); margin-bottom: 16px; }
.pkg-price span { font-size: 14px; font-weight: 500; color: var(--text-mute); }
.pkg-features { list-style: none; margin: 0 0 20px; padding: 0; flex: 1; }
.pkg-features li { position: relative; padding: 7px 0 7px 26px; font-size: 14px; color: var(--text-dim); border-bottom: 1px solid var(--border); }
.pkg-features li::before { content: "✓"; position: absolute; left: 0; color: var(--green, #22c55e); font-weight: 800; }
.premium-cta {
  margin-top: 32px; text-align: center; background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 30px 24px;
}
.premium-cta h3 { font-size: 22px; margin-bottom: 8px; }
.premium-cta p { color: var(--text-dim); margin-bottom: 18px; }
.premium-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
