@charset "UTF-8";

:root {
  /* GERÇEK HATA (kullanıcı geri bildirimiyle bulundu, geniş kapsamlı):
     main.css'in 478 kuralı var(--color-surface) gibi bu değişkenlere
     bağımlıydı, ama bunlar açık (light) renklerle tanımlıydı - oysa
     genel site artık modern-forum.css'in --mf-* sabit KOYU tonlarını
     kullanıyor (arama sayfası gibi ayrık, uyumsuz "açık ada" kalan
     alanlar buradan kaynaklanıyordu). Varsayılan değerler artık
     sitenin genel Aurora koyu temasıyla hizalı - "açık mod" artık
     ayrı bir seçim değil, [data-theme="light"] altında tutuluyor. */
  --color-primary: #0b1020;
  --color-primary-light: #121b2e;
  --color-accent: #7c6cff;
  --color-accent-dark: #23d5c5;
  --color-bg: #070b14;
  --color-surface: #0f1626;
  --color-text: #f4f7fb;
  --color-muted: #91a0b7;
  --color-border: rgba(148, 163, 184, 0.14);
  --color-panel: #121b2e;
  --radius: 8px;
  /* KALDIRILDI: "--spacing: 1rem".
     GERÇEK HATA (ölçümle bulundu, site geneli): bu değişken main.css
     içinde HİÇ kullanılmıyordu (0 referans) ama Tailwind'in kendi
     --spacing token'ını (0.25rem) eziyordu. Tailwind v4 temasını
     "@layer theme" içine koyar; katmansız CSS cascade'de katmanlıyı
     yendiği için buradaki tanım kazanıyordu.
     Sonuç: sitedeki TÜM Tailwind boşluk yardımcıları (p-*, m-*, gap-*,
     space-y-*, px-*, py-*) 4 KAT büyük hesaplanıyordu.
     Somut örnek: avatar yükleme kutusundaki "p-6" 24px yerine 96px
     dolgu üretiyor, kutuyu 268px yapıp ekran dışına taşırıyordu. */
  --max-width: 1200px;
  --font-size-base: 16px;
  --line-height-base: 1.6;
  --heading-weight: 700;
  --button-radius: 999px;
  --badge-radius: 12px;
  --header-height: 64px;
  --content-width: 1200px;
}

:root[data-theme="dark"] {
  /* Artık varsayılanla aynı - koyu Aurora teması varsayılan hale
     geldiği için bu blok "zararsız/tutarlı" olarak korunuyor. */
  --color-primary: #0b1020;
  --color-primary-light: #121b2e;
  --color-accent: #7c6cff;
  --color-accent-dark: #23d5c5;
  --color-bg: #070b14;
  --color-surface: #0f1626;
  --color-text: #f4f7fb;
  --color-muted: #91a0b7;
  --color-border: rgba(148, 163, 184, 0.14);
  --color-panel: #121b2e;
}

/* GERÇEK GERİ BİLDİRİM: theme-toggle butonu (🌙/☀️) gerçekten
   dark<->light arası geçiş yapıyor (app.js). modern-forum.css'in
   html[data-theme="light"] kuralları (input/text renkleri) zaten
   açık moda geçişi kısmen yönetiyordu - main.css'in KENDİ değişken
   sistemi de tutarlı şekilde açık moda geçsin diye eklendi. */
:root[data-theme="light"] {
  --color-primary: #082746;
  --color-primary-light: #0f3a63;
  --color-accent: #2874a6;
  --color-accent-dark: #2874a6;
  --color-bg: #eef1f5;
  --color-surface: #ffffff;
  --color-text: #1c2530;
  --color-muted: #7a8794;
  --color-border: #e3e7ec;
  --color-panel: #eef2f5;
}

/* Modern Koyu Tema (Tailwind CSS v4 ile @theme üzerinden yönetiliyor) */
body {
  background-color: rgb(2 6 23); /* bg-slate-950 */
  color: rgb(241 245 249); /* text-slate-100 */
  font-family: -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
}

/* Ana container yapısı */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Site Header */
.site-header {
  background: linear-gradient(135deg, rgb(15 23 42), rgb(30 41 59));
  padding: 0.9rem 0;
  min-height: 64px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.site-header .logo {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-header .logo::before {
  content: "💬 ";
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.auth-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: #fff;
}

.auth-nav a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.auth-nav a:hover {
  color: #fff;
}

/* Header butonları */
.header-hamburger-btn {
  font-size: 1.15rem;
  margin-right: 0.3rem;
  text-decoration: none !important;
}

#header-search-btn, #theme-toggle {
  font-size: 1.05rem;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.header-profile-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header-profile-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #22c55e;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid rgb(15 23 42);
}

.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0 0;
  background: rgb(15 23 42);
  color: rgba(255,255,255,.75);
  font-size: 0.85rem;
  border-top: none;
}

.site-footer h3, .site-footer h4 { color: #fff; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: rgba(255,255,255,.55); }

.footer-pulse {
  text-align: center;
}

/* Page Layout */
.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-block: 1.5rem;
}

@media (min-width: 900px) {
  .page-layout {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }
}

.main-content {
  min-width: 0;
}

.sidebar {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}

/* Widget */
.widget {
  background: rgb(15 23 42);
  border-radius: 0.75rem;
  padding: 1.1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid rgb(30 41 59);
}

.widget h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: rgb(79 70 229);
}

/* Stat List */
.stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.stat-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: rgb(148 163 184);
}

.stat-list li strong {
  color: rgb(241 245 249);
}

/* Widget List */
.widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.widget-list li {
  display: grid;
  gap: 0.1rem;
}

.widget-list a {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgb(241 245 249);
}

.widget-list a:hover {
  color: rgb(79 70 229);
}

/* Member Grid */
.member-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  text-align: center;
}

.member-grid li {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: rgb(148 163 184);
  overflow: hidden;
}

.member-grid span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Avatar Circle */
.avatar-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--avatar-radius, 50%);
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

/* Alert */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.alert-success {
  background: rgb(220 252 231);
  color: rgb(22 101 52);
}

.alert-error {
  background: rgb(254 226 226);
  color: rgb(153 27 27);
}

/* Auth Form Wrapper */
.auth-form-wrapper {
  max-width: 420px;
  margin: 1rem auto;
  background: rgb(15 23 42);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid rgb(30 41 59);
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: rgb(148 163 184);
}

.auth-form.checkbox-label,
.auth-form .checkbox-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.auth-form input[type=text],
.auth-form input[type=email],
.auth-form input[type=password] {
  padding: 0.6rem 0.75rem;
  border: 1px solid rgb(30 41 59);
  border-radius: 0.75rem;
  font-size: 1rem;
  background: rgb(15 23 42);
  color: rgb(241 245 249);
}

.auth-form .field-error {
  color: rgb(239 68 68);
  font-size: 0.8rem;
}

/* Buttons */
.btn-primary {
  background: rgb(79 70 229);
  color: #fff;
  border: none;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  background: rgb(67 56 202);
  text-decoration: none;
}

.btn-secondary {
  background: rgb(30 41 59);
  color: rgb(241 245 249);
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 0.75rem;
  cursor: pointer;
  font-weight: 600;
  display: inline-block;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgb(51 65 85);
  text-decoration: none;
}

/* Category */
.category {
  margin-block: 1.5rem;
}

.category h2 {
  font-size: 1.1rem;
  color: rgb(79 70 229);
  border-bottom: 2px solid rgb(79 70 229);
  padding-bottom: 0.5rem;
}

/* Forum List */
.forum-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.forum-item {
  background: rgb(15 23 42);
  border-radius: 0.75rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgb(30 41 59);
  border-left: 4px solid rgb(79 70 229);
  transition: box-shadow 0.15s;
}

.forum-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.forum-item a {
  font-size: 1.05rem;
  font-weight: 700;
  color: rgb(241 245 249);
}

.forum-item a:hover {
  color: rgb(99 102 241);
}

.forum-item .stats {
  color: rgb(148 163 184);
  font-size: 0.8rem;
}

@media (min-width: 700px) {
  .forum-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Forum Page Header */
.forum-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block: 0.5rem 1rem;
}

/* Topic List */
.topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgb(15 23 42);
  border-radius: 0.75rem;
  border: 1px solid rgb(30 41 59);
  overflow: hidden;
}

.topic-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgb(30 41 59);
}

.topic-row:last-child {
  border-bottom: none;
}

.topic-row:hover {
  background: rgb(15 23 42);
}

.topic-row.is-pinned {
  background: rgb(254 253 212);
}

.topic-row-avatar {
  flex-shrink: 0;
}

.topic-row-main {
  flex: 1;
  min-width: 0;
}

.topic-row-title a {
  font-weight: 700;
  color: rgb(241 245 249);
  font-size: 1rem;
}

.topic-row-title a:hover {
  color: rgb(99 102 241);
}

.topic-row-meta {
  margin-top: 0.15rem;
}

.topic-row-stats {
  display: flex;
  gap: 1.2rem;
  flex-shrink: 0;
  text-align: center;
}

.topic-row-stats div {
  display: grid;
}

.topic-row-stats strong {
  font-size: 0.95rem;
}

.topic-row-stats span {
  font-size: 0.7rem;
  color: rgb(148 163 184);
}

@media (max-width: 560px) {
  .topic-row-stats {
    display: none;
  }
}

/* Badge */
.badge {
  display: inline-block;
  background: rgb(15 23 42);
  color: rgb(79 70 229);
  border-radius: 0.75rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.72rem;
  margin-right: 0.3rem;
  font-weight: 600;
}

/* Pagination */
.pagination {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-block: 1.5rem;
}

/* Breadcrumb */
.breadcrumb {
  margin-block: 0 1rem;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  background: rgb(15 23 42);
  padding: 0.5rem 0.8rem;
  border-radius: 0.75rem;
  color: rgb(148 163 184);
}

.breadcrumb a {
  color: rgb(99 102 241);
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: rgb(241 245 249);
  font-weight: 600;
}

/* Topic Form & Reply Form */
.topic-form, .reply-form {
  display: grid;
  gap: 1rem;
  background: rgb(15 23 42);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgb(30 41 59);
  margin-block: 1rem;
}

.topic-form label, .reply-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: rgb(148 163 184);
}

.topic-form input[type=text], .topic-form textarea, .reply-form input[type=text], .reply-form textarea {
  padding: 0.6rem 0.75rem;
  border: 1px solid rgb(30 41 59);
  border-radius: 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  background: rgb(15 23 42);
  color: rgb(241 245 249);
}

.topic-form .field-error, .reply-form .field-error {
  color: rgb(239 68 68);
  font-size: 0.8rem;
}

/* Post List */
.post-list {
  display: grid;
  gap: 1rem;
  margin-block: 1.5rem;
}

.post-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  background: rgb(15 23 42);
  border-radius: 0.75rem;
  border: 1px solid rgb(30 41 59);
  overflow: hidden;
  position: relative;
}

.first-post-bg {
  background: linear-gradient(135deg, rgb(15 23 42) 60%, rgb(79 70 229 0.08) 100%);
  border-left: 3px solid rgb(79 70 229);
}

.post-author {
  background: rgb(15 23 42);
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  text-align: center;
  font-size: 0.85rem;
}

.post-author .post-author-avatar-wrap { margin-bottom: .3rem; }
.post-author a { text-decoration: none; }
.post-author strong { font-size: .95rem; }
.post-author .rank {
  font-size: 0.72rem;
  font-weight: 700;
}

.post-author-extras {
  width: 100%; margin-top: .5rem; padding-top: .5rem;
  border-top: 1px solid rgb(30 41 59);
  display: flex; flex-direction: column; gap: .25rem;
  font-size: .78rem;
}

.post-author-extras > * { display: flex; justify-content: space-between; width: 100%; }
.post-author-extras .muted { color: rgb(148 163 184); }

.post-body {
  padding: 1rem 1.2rem;
}

.post-meta {
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}

.post-content {
  line-height: 1.65;
  white-space: pre-line;
}

.post-signature {
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgb(30 41 59);
  font-size: 0.8rem;
  color: rgb(148 163 184);
}

@media (max-width: 600px) {
  .post-card {
    grid-template-columns: 1fr;
  }
  .post-author {
    flex-direction: row;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
  }
}

.badge-pending {
  background: rgb(254 253 212);
  color: rgb(133 77 14);
}

/* Mod Toolbar */
.mod-toolbar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  background: rgb(30 41 59);
  padding: 0.6rem 0.8rem;
  border-radius: 0.75rem 0.75rem 0 0;
}

.mod-toolbar button {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  font-size: 0.82rem;
  cursor: pointer;
}

.mod-toolbar button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.topic-checkbox {
  margin-right: 0.3rem;
  flex-shrink: 0;
}

/* Mod Queue List */
.mod-queue-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.mod-queue-item {
  background: rgb(15 23 42);
  border: 1px solid rgb(30 41 59);
  border-radius: 0.75rem;
  padding: 0.9rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.mod-preview {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: rgb(148 163 184);
  background: rgb(15 23 42);
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
}

.mod-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-approve, .btn-reject {
  border: none;
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  color: #fff;
}

.btn-approve {
  background: rgb(34 197 94);
}

.btn-approve:hover {
  background: rgb(22 163 74);
}

.btn-reject {
  background: rgb(239 68 68);
}

.btn-reject:hover {
  background: rgb(220 38 38);
}

/* Profile Header */
.profile-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: rgb(15 23 42);
  border: 1px solid rgb(30 41 59);
  border-radius: 0.75rem;
  padding: 1.3rem;
  margin-block: 1rem;
  flex-wrap: wrap;
}

.profile-header h1 {
  margin: 0;
}

.profile-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

/* Trophy List */
.trophy-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.trophy {
  background: rgb(254 247 231);
  border: 1px solid rgb(253 224 71);
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Wall List */
.wall-list {
  display: grid;
  gap: 0.9rem;
  margin-block: 1rem;
}

.wall-post {
  display: flex;
  gap: 0.8rem;
  background: rgb(15 23 42);
  border: 1px solid rgb(30 41 59);
  border-radius: 0.75rem;
  padding: 1rem;
}

.wall-post-body {
  flex: 1;
}

.wall-comment-count {
  margin-top: 0.4rem;
}

.wall-comment-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.wall-comment-form input {
  flex: 1;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgb(30 41 59);
  border-radius: 6px;
  background: rgb(15 23 42);
  color: rgb(241 245 249);
}

.wall-comment-form button {
  background: rgb(79 70 229);
  color: #fff;
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
}

/* Post Ignored */
.post-ignored {
  padding: 1rem;
  color: rgb(148 163 184);
  font-size: 0.85rem;
}

.post-ignored summary {
  cursor: pointer;
  font-weight: 600;
}

.post-ignored .post-body {
  margin-top: 0.6rem;
}

/* Embed */
.embed {
  margin-block: 0.8rem;
  border-radius: 0.75rem;
  overflow: hidden;
}

.embed-video {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16/9;
}

.embed-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.embed-spotify iframe {
  width: 100%;
  max-width: 460px;
  height: 152px;
  border: 0;
}

.embed-link-card {
  display: inline-block;
  padding: 0.6rem 1rem;
  background: rgb(239 246 255);
  border: 1px solid rgb(191 219 254);
  border-radius: 0.75rem;
  font-weight: 600;
  color: rgb(29 78 216) !important;
}

/* TM Banner */
.tm-banner {
  background: linear-gradient(90deg, rgb(126 34 206), rgb(59 130 246));
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.88rem;
  margin-block: 1rem;
}

/* Admin Body */
.admin-body {
  background: rgb(2 6 23);
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

@media (max-width: 800px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
}

/* Link Button */
.link-button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.link-button:hover {
  color: #fff;
}

/* Inline Form */
.inline-form {
  display: inline;
}

/* Muted */
.muted {
  color: rgb(148 163 184);
  font-size: 0.88rem;
}

/* ==========================================================
   KURTARILAN CSS - "Devin'in yarıda bıraktığını tamamlıyoruz"
   (kullanıcı talebi). Bu main.css dosyası önceden 9178 satırdı,
   958 satıra düşürülürken 646 class (gerçek testle doğrulandı:
   template'lerde hâlâ kullanılıyorlardı) kayboldu - Postbit
   Mağazası, Forum Aktiviteleri widget'ı, hesap ayarları sekmeleri,
   admin panel bileşenleri vb. Aşağıdaki kurallar, orijinal
   main.css'ten gerçek bir CSS parser (tinycss2) ile YALNIZCA
   kayıp olan seçiciler için geri kazanıldı - Devin'in üstteki
   yeni temel stilleri (header/footer/forum-list/topic-list/
   post-card/admin-shell) DEĞİŞTİRİLMEDİ.
   ========================================================== */

:root[data-site-theme=glass] .widget, :root[data-site-theme=glass] .tool-card, :root[data-site-theme=glass] .stream-card, :root[data-site-theme=glass] .stat-card, :root[data-site-theme=glass] .admin-card,
:root[data-site-theme=glass] .site-footer, :root[data-site-theme=glass] .quick-nav, :root[data-site-theme=glass] .header, :root[data-site-theme=glass] header,
:root[data-site-theme=glass] .topic-row, :root[data-site-theme=glass] .forum-item, :root[data-site-theme=glass] .category, :root[data-site-theme=glass] .gallery-album-card,
:root[data-site-theme=glass] .blog-post-card, :root[data-site-theme=glass] .diff-version-card {
  background: var(--color-surface) !important;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--color-border) !important;
}

.post-author .post-author-avatar-wrap { margin-bottom: .3rem; }

.admin-sidebar {
  background: var(--admin-sidebar-bg, #1c2733);
  color: #cfd8e3;
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-logo {
  padding: 0 1.2rem 1rem;
  font-weight: 800;
  font-size: 1.1rem;
}

.admin-logo a {
  color: #fff;
}

.admin-nav {
  display: grid;
}

.admin-nav a {
  color: #cfd8e3;
  padding: 0.65rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: #fff;
}

.admin-nav hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 0.6rem 1.2rem;
}

.admin-main {
  padding: 1.8rem 2.2rem;
  max-width: 1100px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.8rem;
  margin-block: 1rem 1.5rem;
}

.stat-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--color-border);
}

.stat-card strong {
  display: block;
  font-size: 1.6rem;
  color: var(--color-primary);
}

.stat-card span {
  font-size: 0.78rem;
  color: var(--color-muted);
}

.stat-card.warn strong {
  color: #b7791f;
}

.stat-card.danger strong {
  color: #c0392b;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  margin-block: 1rem;
  font-size: 0.88rem;
}

.admin-table th, .admin-table td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--color-border);
}

.admin-table th {
  background: var(--color-panel);
  font-size: 0.75rem;
  color: var(--color-muted);
  text-transform: uppercase;
}

.admin-form {
  display: grid;
  gap: 1rem;
  background: var(--color-surface);
  padding: 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  max-width: 480px;
}

.admin-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.88rem;
  color: var(--color-muted);
}

.admin-form input[type=text], .admin-form input[type=number], .admin-form input[type=password], .admin-form textarea, .admin-form select {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.95rem;
}

.admin-form.checkbox-label, .admin-form .checkbox-label {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.admin-form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: none;
  align-items: center;
}

.admin-form-inline input, .admin-form-inline select {
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.admin-search {
  display: flex;
  gap: 0.5rem;
  margin-block: 1rem;
}

.admin-search input {
  flex: 1;
  max-width: 320px;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.admin-search button {
  padding: 0.5rem 1rem;
  border: none;
  background: var(--color-accent);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}

.role-badge {
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.role-user {
  background: var(--color-panel);
  color: #555;
}

.role-moderator {
  background: #d6eaf8;
  color: #1a5276;
}

.role-admin {
  background: #fdebd0;
  color: #9c640c;
}

.badge-danger {
  background: #f8d7da;
  color: #721c24;
}

.badge-ok {
  background: #d4edda;
  color: #155724;
}

.tool-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-block: 1rem;
  max-width: 560px;
}

.tool-card h3 {
  margin: 0 0 0.3rem;
}

.tool-card pre {
  background: #1c2733;
  color: #cfd8e3;
  padding: 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  overflow-x: auto;
}

.alert-warning {
  background: #fff3cd;
  color: #856404;
}

@media  (max-width: 800px)  {
.admin-sidebar {
    position: static;
  }
.admin-nav {
    display: flex;
    overflow-x: auto;
  }
}

.header-search {
  flex: 1;
  max-width: 320px;
  margin-inline: 1rem;
}

.header-search input {
  width: 100%;
  padding: 0.45rem 0.8rem;
  border: none;
  border-radius: 20px;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.header-search input:focus {
  background: var(--color-surface);
  color: var(--color-text);
  outline: none;
}

.header-search input:focus::placeholder {
  color: var(--color-muted);
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1c2733;
  color: #fff;
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  z-index: 1000;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
}

.cookie-banner button {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  flex-shrink: 0;
}

.cookie-banner button:hover {
  background: var(--color-accent-dark);
}

:root[data-theme=dark] .topic-table th, :root[data-theme=dark] .admin-table th {
  background: #202834;
}

:root[data-theme=dark] .header-search input {
  background: rgba(255, 255, 255, 0.08);
}

:root[data-theme=dark] .header-search input:focus {
  background: #202834;
  color: #fff;
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.22);
}

.announcement-bar {
  background: #8e44ad;
  color: #fff;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.welcome-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  margin-block: 1rem;
}

.welcome-block h1 {
  margin: 0 0 0.3rem;
  font-size: 1.4rem;
  color: #fff;
}

.welcome-block p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.welcome-cta {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.quick-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-block: 1rem 1.5rem;
}

.quick-stats-strip div {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.8rem;
  text-align: center;
}

.quick-stats-strip strong {
  display: block;
  font-size: 1.3rem;
}

.quick-stats-strip span {
  font-size: 0.72rem;
  color: var(--color-muted);
}

.quick-stats-strip .online strong {
  color: #27ae60;
}

@media  (max-width: 560px)  {
.quick-stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.category-icon {
  font-size: 1.1em;
  margin-right: 0.2rem;
}

.forum-item-main {
  flex: 1;
  min-width: 180px;
}

.forum-item-lastpost {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  max-width: 220px;
  color: inherit;
}

.forum-item-lastpost:hover {
  text-decoration: none;
}

.forum-item-lastpost .lastpost-info {
  display: grid;
  font-size: 0.78rem;
  overflow: hidden;
}

.forum-item-lastpost .lastpost-info strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
  font-size: 0.82rem;
}

.sidebar-login-form {
  display: grid;
  gap: 0.5rem;
}

.sidebar-login-form input {
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.88rem;
}

.online-count {
  color: #27ae60;
}

.online-member-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.online-member {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  background: var(--color-panel);
  color: var(--color-text);
}

.online-member.role-admin {
  background: #fdebd0;
  color: #9c640c;
  font-weight: 700;
}

.online-member.role-moderator {
  background: #d6eaf8;
  color: #1a5276;
  font-weight: 700;
}

.sidebar-ad {
  font-size: 0.82rem;
}

.topic-hover-preview {
  position: absolute;
  z-index: 2000;
  max-width: 300px;
  background: #1c2733;
  color: #e4e8ee;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.4;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.real-avatar {
  border-radius: var(--avatar-radius, 50%);
  object-fit: cover;
  flex-shrink: 0;
}

.account-avatar-section {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-block: 1rem;
}

.account-avatar-section .current-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-upload-form {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  max-width: 100%;
}

.avatar-upload-form input[type=text] {
  flex: 1 1 160px;
  min-width: 0;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.avatar-upload-form input[type=file] {
  max-width: 100%;
  flex: 1 1 auto;
  min-width: 0;
}

.status-message {
  font-style: italic;
  color: var(--color-muted);
}

.post-image {
  max-width: min(100%, var(--image-max-width, 700px));
  border-radius: 8px;
  margin-block: 0.5rem;
  display: block;
}

.like-btn {
  margin-top: 0.8rem;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--color-text);
}

.like-btn:hover {
  background: #e2e8ee;
}

.like-btn.is-liked {
  background: #d6eaf8;
  border-color: #3498db;
  color: #1a5276;
  font-weight: 600;
}

.like-count-static {
  display: inline-block;
  margin-top: 0.8rem;
}

.mini-profile-card {
  position: absolute;
  z-index: 2000;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  font-size: 0.85rem;
  min-width: 180px;
}

.mini-profile-card strong {
  display: block;
  margin-bottom: 0.3rem;
}

.activity-ticker {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-block: 1rem;
  white-space: nowrap;
}

.activity-ticker-track {
  display: inline-flex;
  gap: 2rem;
  padding: 0.55rem 1rem;
  animation: ticker-scroll 40s linear infinite;
}

.activity-ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  font-size: 0.82rem;
  color: var(--color-text);
  white-space: nowrap;
}

.featured-slider {
  position: relative;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-block: 1rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-decoration: none;
}

.slide.active {
  display: block;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.1));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
}

.slide-overlay h2 {
  margin: 0 0 0.2rem;
  font-size: 1.3rem;
  color: #fff;
}

.slide-overlay p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
}

.slider-dots {
  position: absolute;
  bottom: 0.6rem;
  right: 1rem;
  display: flex;
  gap: 0.4rem;
  z-index: 5;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
}

.slider-dot.active {
  background: #fff;
}

.birthday-box {
  background: #fff7e0;
  border: 1px solid #f4d989;
  border-radius: var(--radius);
  padding: 0.8rem 1.1rem;
  font-size: 0.88rem;
  margin-block: 1rem;
}

.category-collapse-toggle {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--color-muted);
}

.badge-today {
  background: #d4edda;
  color: #155724;
}

.locked-category-msg {
  padding: 0.8rem;
  background: var(--color-surface);
  border-radius: var(--radius);
}

.quick-nav {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0.6rem 1rem 0;
}

.header-search--in-nav {
  max-width: 420px;
  margin: 0 auto 0.6rem;
}

.quick-nav-track {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.quick-nav-track::-webkit-scrollbar {
  height: 4px;
}

.quick-nav-track::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

.header-search--in-nav {
  flex: 0 1 260px;
  margin-left: auto;
}

.header-search--in-nav input {
  background: var(--color-panel, #f4f5f7);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.header-search--in-nav input::placeholder {
  color: var(--color-muted);
}

.header-search--in-nav input:focus {
  background: var(--color-surface);
  border-color: var(--color-accent);
}

.pill {
  flex-shrink: 0;
  background: var(--color-panel);
  color: var(--color-text);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s;
}

.pill:hover {
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
}

:root[data-theme=dark] .pill {
  background: #202834;
}

.topic-row-forum {
  font-size: 0.75rem;
}

.footer-pulse-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.avatar-stack {
  display: flex;
}

.avatar-stack-item {
  margin-left: -10px;
  border: 2px solid var(--color-surface);
  border-radius: 50%;
  display: block;
}

.avatar-stack-item:first-child {
  margin-left: 0;
}

.footer-stat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: baseline;
}

.footer-stat-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-stat-grid .counter {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary);
}

.footer-stat-grid label {
  font-size: 0.72rem;
  color: var(--color-muted);
}

.newest-member {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-left: auto;
}

@media  (max-width: 600px)  {
.footer-stat-grid {
    justify-content: space-between;
  }
.newest-member {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}

.nav-badge {
  background: #e74c3c;
  color: #fff;
  border-radius: 10px;
  padding: 0 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  margin-left: -0.3rem;
  vertical-align: top;
}

.custom-title {
  font-size: 0.72rem;
  font-style: italic;
  color: var(--color-accent-dark);
}

.reputation-badge {
  font-size: 0.72rem;
  color: var(--color-muted);
}

.reputation-badge.positive {
  color: #27ae60;
  font-weight: 700;
}

.reputation-badge.negative {
  color: #c0392b;
  font-weight: 700;
}

.post-actions {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.rep-btn, .quote-btn {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--color-text);
}

.rep-btn:hover, .quote-btn:hover {
  background: #e2e8ee;
}

.rep-btn.active.rep-up {
  background: #d4edda;
  border-color: #27ae60;
}

.rep-btn.active.rep-down {
  background: #f8d7da;
  border-color: #c0392b;
}

.thread-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-block: 1rem;
}

.thread-search input {
  flex: 1;
  max-width: 320px;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 0.85rem;
}

.poll-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-block: 1rem;
}

.poll-box h3 {
  margin-top: 0;
}

.poll-box label {
  display: block;
  margin-bottom: 0.4rem;
}

.poll-result-row {
  margin-bottom: 0.8rem;
}

.poll-result-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}

.poll-bar {
  background: var(--color-panel);
  border-radius: 6px;
  overflow: hidden;
  height: 10px;
}

.poll-bar-fill {
  background: var(--color-accent);
  height: 100%;
  transition: width 0.4s;
}

.poll-voters {
  font-size: 0.72rem;
  margin-top: 0.2rem;
}

.poll-creator {
  margin-top: 1rem;
  background: var(--color-panel);
  border-radius: var(--radius);
  padding: 1rem;
}

.poll-creator summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.poll-creator label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.poll-creator input[type=text] {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  margin-top: 0.2rem;
}

.bb-quote {
  border-left: 3px solid var(--color-accent);
  background: var(--color-panel);
  padding: 0.6rem 0.9rem;
  margin: 0.6rem 0;
  border-radius: 0 6px 6px 0;
  font-size: 0.88rem;
}

.bb-quote cite {
  display: block;
  font-size: 0.75rem;
  color: var(--color-muted);
  font-style: normal;
  margin-bottom: 0.3rem;
}

.bb-spoiler {
  background: var(--color-panel);
  border-radius: 6px;
  padding: 0.5rem 0.8rem;
  margin: 0.5rem 0;
}

.bb-spoiler summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}

.bb-hide {
  position: relative;
  margin: 0.5rem 0;
  border-radius: 6px;
  overflow: hidden;
}

.bb-hide-content {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
}

.bb-hide-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
}

.bb-glow {
  text-shadow: 0 0 6px var(--color-accent), 0 0 12px var(--color-accent);
  color: var(--color-accent-dark);
  font-weight: 600;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.admin-nav-top {
  display: block;
  padding: 0.55rem 1.2rem;
  border-radius: 0 20px 20px 0;
  margin-right: 0.6rem;
  font-weight: 600;
}

.admin-nav-group {
  margin: 0.3rem 0;
}

.admin-nav-group summary {
  padding: 0.55rem 1.2rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-nav-group summary::-webkit-details-marker {
  display: none;
}

.admin-nav-group summary::after {
  content: "▸";
  font-size: 0.7rem;
  transition: transform 0.15s;
}

.admin-nav-group summary:hover {
  color: #fff;
}

.admin-nav-group[open] summary::after {
  transform: rotate(90deg);
}

.admin-nav-group a {
  display: block;
  padding: 0.5rem 1.2rem 0.5rem 1.6rem;
  font-size: 0.87rem;
}

.admin-nav a {
  position: relative;
  border-radius: 0 20px 20px 0;
  margin-right: 0.6rem;
}

.admin-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 700;
  border-left: 3px solid var(--admin-sidebar-accent, var(--color-accent));
}

.admin-sidebar-footer {
  padding: 1rem 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar-footer a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.admin-sidebar-footer a:hover {
  color: #fff;
}

.admin-content-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0.9rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-topbar-title {
  margin: 0;
  font-size: 1.2rem;
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.admin-topbar-user {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.admin-topbar .theme-toggle {
  background: var(--color-panel);
  color: var(--color-text);
}

:root[data-theme=dark] .admin-topbar .theme-toggle {
  background: #202834;
}

.admin-main {
  padding: 1.6rem;
  max-width: 1200px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-align: left;
}

.stat-card .stat-icon {
  font-size: 1.5rem;
  background: var(--color-panel);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card strong {
  font-size: 1.4rem;
  display: block;
}

.stat-card span {
  font-size: 0.72rem;
  color: var(--color-muted);
}

:root[data-theme=dark] .stat-card .stat-icon {
  background: #202834;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.dashboard-grid .span-2 {
  grid-column: span 2;
}

@media  (max-width: 800px)  {
.dashboard-grid {
    grid-template-columns: 1fr;
  }
.dashboard-grid .span-2 {
    grid-column: span 1;
  }
}

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

.admin-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.3rem;
}

.admin-card h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.admin-table-plain {
  margin: 0;
  box-shadow: none;
  border: none;
}

.admin-table-plain td {
  border-bottom: 1px solid var(--color-border);
  padding: 0.5rem 0.3rem;
}

.admin-table-plain tr:last-child td {
  border-bottom: none;
}

.activity-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.7rem;
  height: 140px;
  padding-top: 0.5rem;
}

.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 0.4rem;
}

.chart-bars {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 110px;
  width: 100%;
  justify-content: center;
}

.chart-bar {
  width: 10px;
  border-radius: 3px 3px 0 0;
  transition: height 0.3s;
}

.chart-bar-topics {
  background: var(--color-accent);
}

.chart-bar-posts {
  background: #f39c12;
}

.chart-label {
  font-size: 0.68rem;
  color: var(--color-muted);
}

.chart-legend {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.3rem;
}

.legend-topics {
  background: var(--color-accent);
}

.legend-posts {
  background: #f39c12;
}

@media  (max-width: 800px)  {
.admin-sidebar {
    position: static;
    flex-direction: row;
    overflow-x: auto;
  }
.admin-nav {
    display: flex;
    flex-direction: row;
  }
.admin-sidebar-footer {
    display: none;
  }
}

.topic-prefix {
  display: inline-block;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  margin-right: 0.3rem;
}

.similar-titles-box {
  background: #fff3cd;
  border: 1px solid #f4d989;
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  font-size: 0.8rem;
  margin-top: 0.4rem;
}

.similar-titles-box a {
  margin-right: 0.5rem;
}

.mention-dropdown, .live-search-dropdown {
  position: absolute;
  z-index: 2000;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  overflow: hidden;
}

.mention-dropdown div, .mention-dropdown a, .live-search-dropdown div, .live-search-dropdown a {
  display: block;
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--color-text);
}

.mention-dropdown div:hover, .mention-dropdown a:hover, .live-search-dropdown div:hover, .live-search-dropdown a:hover {
  background: var(--color-panel);
  text-decoration: none;
}

.live-search-dropdown {
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  margin-top: 0.3rem;
}

.bb-code {
  position: relative;
  background: #1c2733;
  border-radius: 8px;
  margin: 0.6rem 0;
  overflow-x: auto;
}

.bb-code pre {
  margin: 0;
  padding: 1rem;
  padding-top: 2.2rem;
}

.bb-code code {
  color: #e4e8ee;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 0.85rem;
}

.code-copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
  font-size: 0.72rem;
  cursor: pointer;
}

.code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-block: 1rem;
}

.share-buttons a, .share-buttons button {
  background: var(--color-panel);
  color: var(--color-text);
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: none;
}

.share-buttons a:hover, .share-buttons button:hover {
  background: #e2e8ee;
  text-decoration: none;
}

.related-topics {
  margin-block: 1.5rem;
}

.report-popover {
  display: inline-block;
}

.report-popover summary {
  list-style: none;
}

.report-popover summary::-webkit-details-marker {
  display: none;
}

.report-form {
  position: absolute;
  z-index: 100;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.8rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  display: grid;
  gap: 0.5rem;
  width: 240px;
}

.report-form textarea {
  padding: 0.4rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.8rem;
}

.profile-cover {
  height: 160px;
  border-radius: var(--radius) var(--radius) 0 0;
  background-size: cover;
  background-position: center;
  margin-top: 1rem;
}

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.social-links a {
  color: var(--profile-accent, var(--color-accent-dark));
}

.widget-picker {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.3rem 0.8rem;
}

.widget-picker legend {
  font-size: 0.82rem;
  color: var(--color-muted);
  padding: 0 0.4rem;
  grid-column: 1/-1;
}

.widget-picker label {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}

.reaction-picker-wrapper {
  position: relative;
  display: inline-block;
}

.reaction-picker {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 0.4rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 0.3rem 0.5rem;
  display: none;
  gap: 0.2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 50;
}

.reaction-picker.open {
  display: flex;
}

.reaction-picker button {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.2rem 0.3rem;
  border-radius: 50%;
  transition: transform 0.15s;
}

.reaction-picker button:hover {
  transform: scale(1.3);
  background: var(--color-panel);
}

.reactions-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.reactions-modal-inner {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 360px;
  width: 90%;
}

.reactions-modal-inner h3 {
  margin-top: 0;
}

.reactions-modal-inner p {
  margin: 0.4rem 0;
  font-size: 0.88rem;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  cursor: zoom-out;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.presence-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #95a5a6;
  border: 2px solid var(--color-surface);
}

.presence-dot.online {
  background: #27ae60;
  box-shadow: 0 0 0 rgba(39, 174, 96, 0.6);
  animation: presence-pulse-online 2s infinite;
}

.avatar-presence-frame {
  position: relative;
  display: inline-block;
  border-radius: 50%;
}

.avatar-presence-frame.frame-online {
  box-shadow: 0 0 0 3px #27ae60;
  animation: presence-pulse-online 2s infinite;
}

.avatar-presence-frame.frame-offline img, .avatar-presence-frame.frame-offline .avatar-circle {
  animation: presence-pulse-offline 3s infinite;
}

.presence-line {
  font-size: 0.85rem;
  margin-block: 0.3rem;
}

.profile-bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-block: 1.5rem;
}

video.profile-cover {
  width: 100%;
  object-fit: cover;
}

.chat-window {
  display: flex;
  flex-direction: column;
  height: 60vh;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.chat-bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  max-width: 70%;
}

.chat-bubble-row.mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-bubble {
  background: var(--color-panel);
  border-radius: 14px;
  padding: 0.6rem 0.9rem;
  position: relative;
}

.mine .chat-bubble {
  background: var(--color-accent);
  color: #fff;
}

.chat-bubble-text {
  font-size: 0.9rem;
  white-space: pre-wrap;
}

.chat-bubble-image {
  max-width: 200px;
  border-radius: 10px;
  margin-top: 0.3rem;
  display: block;
}

.chat-bubble-meta {
  font-size: 0.68rem;
  opacity: 0.7;
  margin-top: 0.3rem;
}

.chat-reactions {
  display: inline-flex;
  gap: 0.2rem;
  margin-top: 0.2rem;
}

.chat-reaction {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  padding: 0 0.3rem;
}

.chat-react-btn {
  position: absolute;
  bottom: -8px;
  right: -8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 0.7rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}

.chat-bubble:hover .chat-react-btn {
  opacity: 1;
}

.chat-typing-indicator {
  padding: 0.3rem 1rem;
  font-size: 0.78rem;
  color: var(--color-muted);
  font-style: italic;
}

.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem;
  border-top: 1px solid var(--color-border);
}

.chat-input-bar textarea {
  flex: 1;
  resize: none;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-family: inherit;
  max-height: 100px;
}

.chat-input-bar button[type=button] {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
}

.chat-input-bar .btn-primary {
  border-radius: 20px;
  padding: 0.5rem 1.1rem;
}

.music-player {
  margin-top: 0.6rem;
  border-radius: 8px;
  overflow: hidden;
  max-width: 400px;
}

.music-player-mp3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-panel);
  padding: 0.6rem;
}

.music-player-mp3 .vinyl-icon {
  font-size: 1.5rem;
  animation: spin 3s linear infinite;
}

.music-player-mp3 audio {
  flex: 1;
  height: 32px;
}

.status-bubble {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  overflow: hidden;
}

.status-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slash-menu, .gif-picker {
  position: absolute;
  z-index: 2000;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.slash-menu {
  min-width: 220px;
  overflow: hidden;
}

.slash-menu div {
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.slash-menu div:hover {
  background: var(--color-panel);
}

.gif-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  padding: 0.6rem;
  max-width: 320px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.gif-picker img {
  width: 100%;
  border-radius: 6px;
  cursor: pointer;
}

.selection-quote-popup {
  position: absolute;
  z-index: 2000;
  background: #1c2733;
  color: #fff;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bb-sandbox {
  margin: 0.6rem 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.bb-sandbox-label {
  background: var(--color-panel);
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-muted);
}

.bb-sandbox iframe {
  width: 100%;
  height: 200px;
  border: none;
  background: #fff;
}

.reading-time {
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
}

.cb-sponsor {
  background: linear-gradient(135deg, #8e44ad, #3498db);
  color: #fff;
  border-radius: 10px;
  padding: 1.2rem;
  margin: 0.8rem 0;
}

.cb-sponsor-title {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.cb-sponsor-btn {
  display: inline-block;
  margin-top: 0.6rem;
  background: #fff;
  color: #8e44ad !important;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none !important;
}

.cb-tip {
  border: 1px solid #f4d989;
  background: #fffbea;
  border-radius: 8px;
  overflow: hidden;
  margin: 0.8rem 0;
}

.cb-tip-header {
  background: #fff3cd;
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  font-size: 0.85rem;
}

.cb-tip-lang {
  float: right;
  background: #856404;
  color: #fff;
  font-size: 0.68rem;
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
}

.cb-tip pre {
  margin: 0;
  padding: 0.8rem 1rem;
  overflow-x: auto;
}

.cb-countdown {
  background: #1c2733;
  color: #fff;
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
  margin: 0.8rem 0;
}

.cb-countdown-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.4rem;
}

.cb-countdown-timer {
  font-size: 1.4rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.profile-stat-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  margin-block: 0.4rem 0.6rem;
  font-size: 0.85rem;
}

.profile-stat-line span {
  color: var(--color-muted);
}

.profile-stat-line strong {
  color: var(--color-text);
}

.profile-cover {
  height: 240px;
  margin-top: 0;
}

@media  (max-width: 600px)  {
.profile-cover {
    height: 150px;
  }
}

.profile-bento {
  margin-top: 1rem;
}

.admin-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--color-text);
  margin-right: 0.5rem;
}

.admin-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
}

.admin-sidebar-overlay.visible {
  display: block;
}

@media  (max-width: 800px)  {
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 999;
    overflow-y: auto;
  }
.admin-sidebar.open {
    transform: translateX(0);
  }
.admin-nav {
    display: grid;
    flex-direction: column;
  }
.admin-menu-toggle {
    display: inline-block;
  }
}

.stat-card {
  align-items: center;
}

.stat-card .stat-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.stat-card > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.messages-compose-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.post-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  background: var(--color-panel);
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
  margin-top: 0.8rem;
}

.post-actions .like-btn, .post-actions .rep-btn, .post-actions .quote-btn, .post-actions .downvote-btn, .post-actions .thank-btn, .post-actions .report-popover summary {
  margin-top: 0;
  border: none;
  background: var(--color-surface);
  border-radius: 20px;
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}

.post-actions .like-btn:hover, .post-actions .rep-btn:hover, .post-actions .quote-btn:hover, .post-actions .downvote-btn:hover, .post-actions .thank-btn:hover, .post-actions .report-popover summary:hover {
  background: #e2e8ee;
  transform: translateY(-1px);
}

.post-actions .like-btn.is-liked {
  background: #d6eaf8;
}

:root[data-theme=dark] .post-actions {
  background: #202834;
}

:root[data-theme=dark] .post-actions .like-btn,
:root[data-theme=dark] .post-actions .rep-btn,
:root[data-theme=dark] .post-actions .quote-btn,
:root[data-theme=dark] .post-actions .downvote-btn,
:root[data-theme=dark] .post-actions .thank-btn {
  background: var(--color-surface);
}

:root[data-theme=dark] .post-actions .like-btn:hover,
:root[data-theme=dark] .post-actions .rep-btn:hover,
:root[data-theme=dark] .post-actions .quote-btn:hover {
  background: #2a323e;
}

.mobile-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 3000;
  display: flex;
  align-items: flex-end;
  transition: background 0.2s;
}

.mobile-sheet-backdrop.visible {
  background: rgba(0, 0, 0, 0.4);
}

.mobile-sheet {
  width: 100%;
  background: var(--color-surface);
  border-radius: 16px 16px 0 0;
  padding: 0.6rem 1.2rem 1.4rem;
  transform: translateY(100%);
  transition: transform 0.25s ease;
  touch-action: none;
}

.mobile-sheet.open {
  transform: translateY(0);
}

.mobile-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  margin: 0 auto 0.8rem;
}

.mobile-sheet-title {
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.mobile-sheet-options {
  display: flex;
  justify-content: space-around;
  gap: 0.5rem;
}

.mobile-sheet-option {
  background: var(--color-panel);
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  font-size: 1.5rem;
  cursor: pointer;
}

.quest-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.quest-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
  opacity: 0.75;
}

.quest-card.completed {
  opacity: 1;
  border-color: #27ae60;
  background: #f4fbf6;
}

.quest-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.quest-body {
  flex: 1;
}

.avatar-gallery-grid, .avatar-gallery-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-block: 0.8rem;
}

.gallery-avatar-btn {
  border: 2px solid transparent;
  border-radius: 50%;
  padding: 0;
  background: none;
  cursor: pointer;
  width: 56px;
  height: 56px;
  overflow: hidden;
}

.gallery-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-avatar-btn:hover {
  border-color: var(--color-accent);
}

.followed-forum-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: 1rem;
}

.followed-forum-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--color-panel);
  border-radius: 16px;
  padding: 0.3rem 0.5rem 0.3rem 0.9rem;
  font-size: 0.82rem;
}

.remove-follow-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--color-muted);
  padding: 0 0.3rem;
}

.remove-follow-btn:hover {
  color: #c0392b;
}

.admin-form {
  gap: 0.8rem;
}

.admin-form label {
  gap: 0.25rem;
}

.admin-main {
  padding: 1.3rem 1.6rem;
  max-width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
}

.admin-table {
  font-size: 0.85rem;
}

.tool-card {
  padding: 1rem;
}

.badge-live {
  background: #e74c3c;
  color: #fff;
  animation: pulse-live 1.5s infinite;
}

.live-session-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.live-session-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
  color: inherit;
}

.live-session-card:hover {
  text-decoration: none;
  border-color: var(--color-accent);
}

.live-room-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-block: 1rem;
}

.live-video-embed {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16/9;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.live-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.live-columns {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
  align-items: start;
}

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

.live-questions-col, .live-chat-col {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
}

.live-questions {
  max-height: 60vh;
  overflow-y: auto;
  display: grid;
  gap: 0.7rem;
}

.live-question-card {
  background: var(--color-panel);
  border-radius: 8px;
  padding: 0.8rem;
}

.live-question-text {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.live-answers {
  display: grid;
  gap: 0.3rem;
  margin-left: 1rem;
}

.live-answer {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.live-answer-form {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.live-answer-form input {
  flex: 1;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.82rem;
}

.live-chat-messages {
  max-height: 45vh;
  overflow-y: auto;
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.live-chat-msg {
  font-size: 0.85rem;
  background: var(--color-panel);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.convert-question-btn {
  margin-left: auto;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.1rem 0.5rem;
  font-size: 0.68rem;
  cursor: pointer;
}

.convert-question-btn:hover {
  background: var(--color-panel);
}

.live-chat-form {
  display: flex;
  gap: 0.4rem;
}

.live-chat-form input {
  flex: 1;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 0.85rem;
}

.widget-wrapper {
  margin-block: 1rem;
}

.widget-wrapper.layout-grid {
  display: grid;
  grid-template-columns: repeat(var(--widget-columns, 3), 1fr);
  gap: var(--widget-gap, 16px);
}

@media  (max-width: 700px)  {
.widget-wrapper.layout-grid {
    grid-template-columns: 1fr;
  }
}

.widget-wrapper.layout-wallpaper {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--widget-gap, 16px);
}

.widget-wrapper.layout-wallpaper .widget-item {
  position: relative;
  min-height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}

.widget-wrapper.layout-wallpaper .widget-item > * {
  position: relative;
  z-index: 1;
  padding: 1rem;
}

.widget-wrapper.layout-wallpaper .widget-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 60%);
}

.widget-wrapper.layout-rows {
  display: flex;
  flex-direction: column;
  gap: var(--widget-gap, 10px);
}

.widget-wrapper.layout-rows .widget-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
}

.widget-wrapper.layout-minimal {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.widget-wrapper.layout-minimal .widget-item {
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem;
}

.widget-wrapper.layout-minimal .widget-item img, .widget-wrapper.layout-minimal .widget-item .item-meta, .widget-wrapper.layout-minimal .widget-item .cb-sponsor-btn {
  display: none;
}

.widget-zone-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-block: 1rem;
}

.layout-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.8rem;
  background: var(--color-panel);
  padding: 0.8rem;
  border-radius: 8px;
  margin-block: 0.8rem;
}

.layout-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.layout-toolbar input, .layout-toolbar select {
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  width: 100px;
}

.widget-instance-sortable {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.widget-instance-sortable li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  cursor: grab;
}

.widget-instance-sortable li.dragging {
  opacity: 0.4;
}

.drag-handle {
  color: var(--color-muted);
  font-size: 1.1rem;
  cursor: grab;
}

.subforum-list {
  display: grid;
  gap: 0.5rem;
  margin-block: 1rem;
}

.subforum-item {
  display: flex;
  justify-content: space-between;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  color: inherit;
}

.subforum-item:hover {
  border-color: var(--color-accent);
  text-decoration: none;
}

.forum-toolbar {
  margin-block: 1rem;
}

.sort-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.sort-tabs a {
  background: var(--color-panel);
  padding: 0.35rem 0.8rem;
  border-radius: 16px;
  font-size: 0.8rem;
  color: var(--color-text);
}

.sort-tabs a.active {
  background: var(--color-accent);
  color: #fff;
}

.sort-tabs a:hover {
  text-decoration: none;
}

.unread-badge {
  display: inline-block;
  min-width: 8px;
  flex-shrink: 0;
}

.unread-badge.is-unread {
  background: var(--color-accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  animation: unread-badge-pop 0.3s ease;
}

.pagination-numbered {
  display: flex;
  gap: 0.3rem;
  justify-content: center;
  margin-block: 1.5rem;
}

.pagination-numbered a {
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text);
}

.pagination-numbered a.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.pagination-numbered a:hover {
  text-decoration: none;
  border-color: var(--color-accent);
}

.pagination-ellipsis {
  padding: 0.4rem 0.2rem;
  color: var(--color-muted);
}

.edited-indicator {
  font-size: 0.72rem;
  cursor: help;
}

.post-author-avatar-wrap {
  position: relative;
  display: inline-block;
}

.post-author-avatar-wrap .presence-dot {
  bottom: 0;
  right: 0;
}

.postbit-badges {
  font-size: 1rem;
  letter-spacing: 2px;
}

.postbit-social {
  display: flex;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.postbit-social a {
  color: inherit;
}

.postbit-quick-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.postbit-quick-actions a {
  background: var(--color-panel);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  font-size: 0.85rem;
}

.read-receipt {
  font-size: 0.7rem;
  opacity: 0.7;
}

.read-receipt.seen {
  color: #4fc3f7;
  opacity: 1;
}

.follow-list-trigger {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--color-muted);
  cursor: pointer;
}

.follow-list-trigger:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.notif-dropdown-wrap {
  position: relative;
}

.notif-bell-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  color: inherit;
}

.notif-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  width: 300px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 2000;
}

.notif-dropdown::before {
  content: "🔔 Bildirimler";
  display: block;
  padding: 0.7rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  background: var(--color-panel);
  border-radius: 10px 10px 0 0;
}

.notif-dropdown-item {
  display: block;
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.notif-dropdown-item.unread {
  background: #e8f3fc;
  font-weight: 600;
}

.notif-dropdown-item:hover {
  background: var(--color-panel);
  text-decoration: none;
}

.notif-dropdown-empty, .notif-dropdown-loading {
  padding: 1.2rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.notif-dropdown-viewall {
  display: block;
  text-align: center;
  padding: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.advanced-search-link {
  font-size: 0.9rem;
  opacity: 0.6;
  flex-shrink: 0;
}

.advanced-search-link:hover {
  opacity: 1;
}

.advanced-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: flex-end;
  /* GERÇEK HATA (kullanıcı geri bildirimiyle bulundu): var(--color-surface)
     benim eski değişken sistemimden geliyordu (light modda beyaz) - ama
     artık genel site --mf-* sabit koyu tonlarını kullanıyor, bu yüzden
     arama sayfası tek başına açık/uyumsuz kalıyordu. */
  background: var(--mf-surface-solid, var(--color-surface));
  border: 1px solid var(--mf-border, var(--color-border));
  border-radius: var(--radius);
  padding: 1rem;
  margin-block: 1rem;
  color: var(--mf-text, var(--color-text));
}

.advanced-search-form input, .advanced-search-form select {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--mf-border, var(--color-border));
  border-radius: 6px;
  background: var(--mf-bg-2, transparent);
  color: var(--mf-text, var(--color-text));
}

.advanced-search-form label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.75rem;
  color: var(--mf-muted, var(--color-muted));
}

.oauth-buttons {
  display: grid;
  gap: 0.6rem;
  margin-block: 1rem;
}

.oauth-btn {
  display: block;
  text-align: center;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  color: var(--color-text) !important;
  font-weight: 600;
  font-size: 0.88rem;
}

.oauth-btn:hover {
  background: var(--color-panel);
  text-decoration: none;
}

.private-profile-box {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  margin-block: 2rem;
}

.topic-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-block: 0.6rem;
}

.topic-tag-chip {
  background: #eef2f5;
  border-radius: 14px;
  padding: 0.2rem 0.7rem;
  font-size: 0.78rem;
  color: var(--color-accent-dark);
}

.site-logo-img {
  max-height: 32px;
}

.site-logo-mobile {
  display: none;
}

@media  (max-width: 700px)  {
.site-logo-mobile {
    display: inline-block;
  }
}

.daily-quote {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-muted);
}

.status-feed {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.8rem 0;
  margin-block: 0.5rem;
}

.status-feed-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  width: 64px;
  color: var(--color-text);
}

.status-feed-item img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-accent);
}

.status-feed-item span {
  font-size: 0.68rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 64px;
}

.status-feed-item:hover {
  text-decoration: none;
}

.site-poll-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-block: 1rem;
}

.site-poll-option-form {
  margin-bottom: 0.5rem;
}

.site-poll-option-btn {
  width: 100%;
  text-align: left;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  font-size: 0.88rem;
}

.site-poll-option-btn:hover {
  background: var(--color-accent);
  color: #fff;
}

.static-page-content {
  line-height: 1.7;
  white-space: pre-wrap;
}

.gallery-album-card {
  display: block;
  color: inherit;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-album-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.gallery-album-card:hover {
  text-decoration: none;
  border-color: var(--color-accent);
}

.gallery-album-empty {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: var(--color-panel);
}

.gallery-album-info {
  padding: 0.7rem;
}

.gallery-album-info strong {
  display: block;
  font-size: 0.88rem;
}

.gallery-image-card {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-image-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.gallery-rating-badge {
  position: absolute;
  bottom: 0.4rem;
  right: 0.4rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
}

.gallery-detail {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.2rem;
  margin-block: 1rem;
}

.gallery-detail-img {
  width: 100%;
  border-radius: var(--radius);
}

@media  (max-width: 700px)  {
.gallery-detail {
    grid-template-columns: 1fr;
  }
}

.gallery-comment {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--color-border);
}

.gallery-comment p {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
}

.rating-stars {
  display: inline-flex;
  gap: 0.1rem;
  margin-block: 0.5rem;
}

.rating-star-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #ccc;
  cursor: pointer;
  padding: 0;
}

.rating-star-btn.active, .rating-star-btn:hover {
  color: #f1c40f;
}

.topic-summary-box {
  background: #fffbea;
  border: 1px solid #f4d989;
  border-radius: var(--radius);
  padding: 1rem;
  margin-block: 1rem;
  font-size: 0.88rem;
}

.topic-summary-box p {
  margin: 0.5rem 0 0;
}

.blog-post-card {
  display: flex;
  gap: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.blog-post-card img {
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.blog-post-card h2 {
  margin: 0.3rem 0;
  font-size: 1.1rem;
}

@media  (max-width: 600px)  {
.blog-post-card {
    flex-direction: column;
  }
.blog-post-card img {
    width: 100%;
    height: 160px;
  }
}

.rsvp-buttons {
  display: flex;
  gap: 0.6rem;
  margin-block: 1rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-block: 1rem;
}

.calendar-grid-header {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-muted);
  padding: 0.4rem 0;
}

.calendar-grid-cell {
  min-height: 90px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.4rem;
  font-size: 0.78rem;
}

.calendar-grid-cell.empty {
  background: transparent;
  border: none;
}

.calendar-day-number {
  font-weight: 700;
  display: block;
  margin-bottom: 0.3rem;
}

.calendar-grid-event {
  display: block;
  background: var(--color-accent);
  color: #fff !important;
  border-radius: 4px;
  padding: 0.1rem 0.3rem;
  font-size: 0.68rem;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-grid-event:hover {
  text-decoration: none;
  opacity: 0.85;
}

.chat-participants-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: var(--color-panel);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  margin-bottom: 0.6rem;
  font-size: 0.82rem;
}

.chat-participants-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.chat-bubble-sender {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: 0.15rem;
}

.new-reply-banner, .draft-restore-banner {
  background: #fff3cd;
  border: 1px solid #f4d989;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  margin-block: 0.8rem;
  text-align: center;
}

.mod-cp-panel {
  margin-block: 1rem;
}

.mod-cp-body {
  background: var(--color-panel);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 0.5rem;
  display: grid;
  gap: 0.7rem;
}

.split-checkbox-label {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  color: #8a6500;
  background: #fff3cd;
  border-radius: 12px;
  padding: 0.15rem 0.5rem;
  margin-bottom: 0.4rem;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 0.4rem 0.6rem;
}

.editor-toolbar-group {
  display: flex;
  gap: 0.2rem;
  align-items: center;
  padding: 0.25rem 0.6rem;
  margin-right: 0.3rem;
  background: var(--color-surface);
  border-radius: 6px;
  border: 1px solid var(--color-border);
}

.editor-toolbar-group:last-child {
  margin-right: 0;
}

.editor-toolbar-btn {
  background: none;
  border: none;
  border-radius: 5px;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-text);
  white-space: nowrap;
}

.editor-toolbar-btn:hover {
  background: var(--color-surface);
}

.editor-toolbar-color {
  width: 28px;
  height: 26px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: none;
}

.editor-toolbar-select {
  font-size: 0.78rem;
  padding: 0.2rem 0.3rem;
  border-radius: 5px;
  border: 1px solid var(--color-border);
  max-width: 90px;
}

.editor-preview-pane {
  border: 1px solid var(--color-border);
  border-radius: 0 0 8px 8px;
  padding: 1rem;
  background: var(--color-surface);
  min-height: 120px;
}

.emoji-picker, .canned-picker {
  position: absolute;
  z-index: 2500;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  padding: 0.5rem;
}

.emoji-picker {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.2rem;
  width: 280px;
  max-height: 240px;
  overflow-y: auto;
}

.emoji-picker span {
  font-size: 1.3rem;
  text-align: center;
  cursor: pointer;
  border-radius: 6px;
  padding: 0.2rem;
}

.emoji-picker span:hover {
  background: var(--color-panel);
}

.canned-picker {
  min-width: 200px;
  max-width: 280px;
}

.canned-picker div {
  padding: 0.5rem 0.7rem;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 6px;
}

.canned-picker div:hover {
  background: var(--color-panel);
}

.bb-list {
  margin: 0.5rem 0;
  padding-left: 1.4rem;
}

.bb-references {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--color-border);
  font-size: 0.82rem;
}

.bb-references ol {
  padding-left: 1.2rem;
  margin: 0.4rem 0 0;
}

.inline-code {
  background: #eef2f5;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 0.85em;
}

.diff-add {
  background: #d4f8d4;
  color: #14532d;
  text-decoration: none;
}

.diff-del {
  background: #fde2e2;
  color: #7f1d1d;
}

.diff-version-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.8rem;
}

.diff-content {
  line-height: 1.7;
  margin-top: 0.5rem;
}

.widget, .widget-zone-card, .tool-card, .gallery-album-card, .blog-post-card,
.diff-version-card, .site-poll-box {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.15s ease;
}

.widget:hover, .widget-zone-card:hover, .tool-card:hover, .gallery-album-card:hover, .blog-post-card:hover,
.diff-version-card:hover, .site-poll-box:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wall-post-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.wall-post-actions button {
  background: none;
  border: none;
  font-size: 0.74rem;
  color: var(--color-muted);
  cursor: pointer;
}

.wall-post-actions .wall-delete-btn:hover {
  color: #c0392b;
}

.wall-edit-form {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.wall-edit-form textarea {
  flex: 1;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
}

.mobile-bottom-nav {
  display: none;
}

@media  (max-width: 700px)  {
.mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  }
.mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    padding: 0.5rem 0 0.6rem;
    font-size: 0.65rem;
    color: var(--color-muted);
  }
.mobile-bottom-nav a span {
    font-size: 1.15rem;
  }
.mobile-bottom-nav a.active, .mobile-bottom-nav a:hover {
    color: var(--color-accent);
    text-decoration: none;
  }
}

.lightning-quick-btn {
  font-size: 1.1rem;
  filter: drop-shadow(0 0 3px rgba(255, 210, 60, 0.5));
}

.lightning-quick-btn:hover {
  transform: scale(1.15);
}

.stream-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
}

.stream-layout.stream-sidebar-left {
  grid-template-columns: 280px 1fr;
}

.stream-layout.stream-sidebar-left .stream-sidebar {
  order: -1;
}

.stream-layout.stream-sidebar-none {
  grid-template-columns: 1fr;
}

@media  (max-width: 800px)  {
.stream-layout {
    grid-template-columns: 1fr;
  }
}

.stream-card {
  display: flex;
  gap: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
}

@media  (max-width: 600px)  {
.stream-card {
    flex-direction: column;
  }
}

.stream-card-image {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

@media  (max-width: 600px)  {
.stream-card-image {
    width: 100%;
    height: 180px;
  }
}

.stream-card-badges {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}

.stream-card-excerpt {
  color: var(--color-muted);
  font-size: 0.88rem;
  margin: 0.3rem 0;
}

.stream-card-meta {
  font-size: 0.78rem;
  color: var(--color-muted);
}

.stream-card-participants {
  display: flex;
  margin-top: 0.5rem;
}

.stream-participant-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--color-surface);
  margin-left: -8px;
  object-fit: cover;
}

.stream-participant-avatar:first-child {
  margin-left: 0;
}

.apps-dropdown {
  position: relative;
  display: inline-block;
}

.apps-dropdown-toggle {
  cursor: pointer;
  border: none;
}

.apps-dropdown-menu, .apps-dropdown-menu-detached {
  display: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  z-index: 2200;
  overflow: hidden;
}

.apps-dropdown-menu a, .apps-dropdown-menu-detached a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--color-text);
}

.apps-dropdown-menu a:hover, .apps-dropdown-menu-detached a:hover {
  background: var(--color-panel);
  text-decoration: none;
}

.apps-dropdown-menu-detached {
  display: block !important;
}

/* NOT: detached menünün konumlandırma kuralları modern-forum-v6.css'e
   taşındı. Sebep: main.css, modern-forum.css'ten ÖNCE yükleniyor;
   .apps-dropdown-menu ile .apps-dropdown-menu-detached aynı
   specificity'de (0,1,0) ve ikisi de !important kullandığı için
   belge sırasında SONRA gelen kazanıyor. Kural burada kaldığında
   etkisizdi (gerçek ölçümle doğrulandı: position hâlâ absolute). */

.footer-social-icons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.footer-social-icons a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-panel);
  font-size: 1.15rem;
  padding: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}

.footer-social-icons a:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
}

.footer-col-stats {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.footer-stat-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  background: var(--color-panel);
  border-radius: 8px;
  border-left: 3px solid var(--color-accent);
  flex: 1 1 auto;
  min-width: 90px;
}

.footer-stat-card .footer-stat-icon {
  font-size: 1.2rem;
}

.footer-stat-card label {
  display: block;
  font-size: 0.68rem;
  color: var(--color-muted);
  white-space: nowrap;
}

.footer-stat-card .counter {
  font-weight: 700;
  font-size: 1rem;
  display: block;
}

.footer-newest-member {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding: 0.6rem;
  background: var(--color-panel);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--color-text);
}

.footer-newest-member:hover {
  text-decoration: none;
  opacity: 0.85;
}

.footer-bottom-bar {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 0.8rem;
  color: rgba(255,255,255,.5);
}

.nested-comments {
  margin: 0.6rem 0 0.6rem 2.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--color-border);
}

.nested-comment {
  display: flex;
  gap: 0.6rem;
  padding: 0.5rem 0;
  font-size: 0.85rem;
}

.nested-reply-form {
  margin: 0.5rem 0 0.5rem 2.5rem;
  display: flex;
  gap: 0.5rem;
}

.nested-reply-form textarea {
  flex: 1;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
}

.topic-author-activity-box {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-block: 0.7rem;
}

.topic-author-activity-box.activity-online {
  background: #e8f8ee;
  color: #1e7e42;
}

.topic-author-activity-box.activity-recent {
  background: #fff8e1;
  color: #8a6500;
}

.topic-author-activity-box.activity-inactive {
  background: var(--color-panel);
  color: var(--color-muted);
}

.treat-picker-wrap {
  position: relative;
  display: inline-block;
}

.treat-picker-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.4rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  padding: 0.5rem;
  gap: 0.3rem;
  z-index: 1200;
}

.treat-picker-menu button {
  background: none;
  border: none;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font-size: 0.9rem;
  border-radius: 6px;
  white-space: nowrap;
}

.treat-picker-menu button:hover {
  background: var(--color-panel);
}

.image-resize-badge {
  display: inline-block;
  margin-top: -1.8rem;
  margin-left: 0.4rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  text-align: center;
  line-height: 22px;
  font-size: 0.8rem;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.image-resize-note {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin: 0.2rem 0;
}

.register-glow-btn {
  position: relative;
  animation: register-glow-pulse 1.8s ease-in-out infinite;
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
}

.mini-announcements {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-block: 1rem;
}

@media  (max-width: 700px)  {
.mini-announcements {
    grid-template-columns: 1fr;
  }
}

.mini-announce-block {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  color: var(--color-text);
}

.mini-announce-block:hover {
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.guest-hidden-link {
  background: var(--color-panel);
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--color-muted);
}

.guest-hidden-link em {
  font-style: normal;
  font-size: 0.82em;
  opacity: 0.8;
}

.admin-settings-tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 0.8rem;
}

.admin-settings-tab-btn {
  background: var(--color-panel);
  border: none;
  padding: 0.55rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text);
  white-space: nowrap;
}

.admin-settings-tab-btn:hover {
  background: var(--color-border);
}

.admin-settings-tab-btn.active {
  background: var(--color-accent);
  color: #fff;
}

.admin-settings-panel {
  display: none;
}

.admin-settings-panel.active {
  display: block;
  animation: admin-tab-fade 0.15s ease;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  min-width: 0;
  max-width: 100%;
}

.admin-settings-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 0;
}

.admin-settings-grid input, .admin-settings-grid select, .admin-settings-grid textarea {
  font-weight: 400;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.admin-settings-grid .span-2 {
  grid-column: span 2;
  min-width: 0;
}

@media  (max-width: 700px)  {
.admin-settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }
.admin-settings-grid .span-2 {
    grid-column: span 1;
  }
}

.admin-settings-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media  (max-width: 900px)  {
.admin-settings-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.admin-settings-save-bar {
  position: sticky;
  bottom: 0;
  background: var(--color-surface);
  padding: 1rem 0;
  margin-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.widget-tabs {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.1rem;
}

.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.4rem 0.5rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.12s ease, border-color 0.12s ease;
}

.tab-btn:hover {
  color: var(--color-text);
}

.tab-btn.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: admin-tab-fade 0.15s ease;
}

.header-stats-menu {
  min-width: 260px;
  padding-bottom: 0.4rem;
}

.header-stats-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  padding: 0.5rem 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.header-stats-tab {
  background: none;
  border: none;
  padding: 0.35rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  color: var(--color-muted);
  white-space: nowrap;
}

.header-stats-tab:hover {
  background: var(--color-panel);
}

.header-stats-tab.active {
  color: var(--color-accent);
  background: var(--color-panel);
}

.header-stats-panel {
  display: none;
}

.header-stats-panel.active {
  display: block;
}

.header-stats-item {
  display: block;
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.header-stats-item:last-child {
  border-bottom: none;
}

.header-stats-item:hover {
  background: var(--color-panel);
  text-decoration: none;
}

.account-settings-tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 0.8rem;
}

.account-tab-btn {
  background: var(--color-panel);
  border: none;
  padding: 0.55rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text);
  white-space: nowrap;
}

.account-tab-btn:hover {
  background: var(--color-border);
}

.account-tab-btn.active {
  background: var(--color-accent);
  color: #fff;
}

.account-tab-panel {
  display: none;
}

.account-tab-panel.active {
  display: block;
  animation: admin-tab-fade 0.15s ease;
}

.account-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.account-card-grid .span-2 {
  grid-column: span 2;
}

@media  (max-width: 700px)  {
.account-card-grid {
    grid-template-columns: 1fr;
  }
.account-card-grid .span-2 {
    grid-column: span 1;
  }
}

.theme-preset-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.theme-preset-swatch {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.theme-preset-swatch:hover {
  transform: scale(1.12);
  border-color: var(--color-accent);
}

.theme-preset-label {
  font-size: 0.8rem;
  margin-left: 0.4rem;
}

.layout-toolbar {
  display: block;
}

.layout-style-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.layout-style-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.7rem;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  font-size: 0.78rem;
}

.layout-style-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.layout-style-option.selected, .layout-style-option:hover {
  border-color: var(--color-accent);
  background: var(--color-panel);
}

.layout-style-option span.muted {
  font-size: 0.68rem;
}

.layout-style-demo {
  width: 80px;
  height: 50px;
  border-radius: 6px;
  background: var(--color-border);
  position: relative;
  overflow: hidden;
}

.layout-demo-wallpaper {
  background: linear-gradient(to top, var(--color-accent) 40%, var(--color-border) 40%);
}

.layout-toolbar-numbers {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.tools-grid {
  align-items: start;
}

.theme-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.theme-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
}

.theme-card.active {
  border-color: var(--color-accent);
}

.theme-card-preview {
  width: 100%;
  height: 70px;
  border-radius: 8px;
}

.dashboard-quicklinks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.6rem;
}

.dashboard-quicklink {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-panel);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
}

.dashboard-quicklink:hover {
  background: var(--color-border);
  text-decoration: none;
}

.user-menu-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 20px;
}

.user-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.user-menu-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0.3rem 0;
}

.user-menu-group-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  padding: 0.2rem 0.9rem 0.3rem;
  font-weight: 700;
}

.user-menu-logout-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: #e74c3c;
  cursor: pointer;
}

.user-menu-logout-btn:hover {
  background: var(--color-panel);
}

.current-status-preview {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-panel);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  font-style: italic;
}

.current-status-preview img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
}

.status-image-label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.status-image-label input[type=file] {
  max-width: 140px;
  font-size: 0.75rem;
}

.header-stats-numbers {
  display: flex;
  justify-content: space-around;
  padding: 1rem;
  text-align: center;
}

.header-stats-numbers div {
  display: flex;
  flex-direction: column;
}

.header-stats-numbers strong {
  font-size: 1.2rem;
  color: var(--color-accent);
}

.header-stats-numbers span {
  font-size: 0.68rem;
  color: var(--color-muted);
}

.voice-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  opacity: 0.7;
  flex-shrink: 0;
}

.voice-search-btn:hover {
  opacity: 1;
}

.forum-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media  (max-width: 900px)  {
.forum-grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media  (max-width: 600px)  {
.forum-grid-3col {
    grid-template-columns: 1fr;
  }
}

.forum-grid-3col .forum-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
  transition: transform 0.18s ease, border-color 0.18s ease;
  position: relative;
  overflow: hidden;
}

.forum-grid-3col .forum-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 2px;
  background: conic-gradient(from var(--angle, 0deg), var(--color-accent), var(--glass-purple, var(--color-accent)), var(--color-accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.forum-grid-3col .forum-card:hover {
  transform: translateY(-4px);
}

.forum-grid-3col .forum-card:hover::before {
  opacity: 1;
}

.vertical-user-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.8rem;
}

.vertical-user-sidebar .vu-avatar-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--role-color, var(--color-border));
}

.vertical-user-sidebar .vu-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vertical-user-sidebar .vu-online-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #27ae60;
  border: 2px solid var(--color-surface);
  animation: presence-pulse-online 2s infinite;
}

.theme-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.theme-picker-grid form {
  display: contents;
}

.theme-picker-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: var(--color-text);
  font-family: inherit;
}

.theme-picker-card strong {
  font-size: 0.95rem;
}

.theme-picker-card .muted {
  font-size: 0.76rem;
}

.theme-picker-card:hover {
  border-color: var(--color-accent);
}

.theme-picker-card.active {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(59, 110, 165, 0.25);
}

.theme-picker-swatch {
  width: 100%;
  height: 36px;
  border-radius: 6px;
}

.category-has-cover {
  color: #fff;
  border-radius: var(--radius);
  padding: 1.2rem;
}

.category-has-cover h2, .category-has-cover h2 a, .category-has-cover .muted {
  color: #fff !important;
  opacity: 0.95;
}

.member-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.member-filter-bar input[type=text] {
  padding: 0.6rem 0.9rem;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  max-width: 320px;
  background: var(--color-surface);
  color: var(--color-text);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-chip {
  padding: 0.4rem 0.9rem;
  border-radius: 16px;
  background: var(--color-panel);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
}

.filter-chip:hover {
  background: var(--color-border);
  text-decoration: none;
}

.filter-chip.active {
  background: var(--color-accent);
  color: #fff;
}

.member-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  position: relative;
  transition: transform 0.15s ease;
}

.member-card:hover {
  transform: translateY(-3px);
}

.member-card a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.member-card-title {
  font-size: 0.72rem;
}

.member-card-online {
  font-size: 0.68rem;
  color: #27ae60;
  font-weight: 600;
}

.member-card-follow-btn {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  padding: 0.35rem 0.8rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  align-items: baseline;
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.tag-cloud a {
  color: var(--color-accent-dark);
  font-weight: 600;
}

.tag-cloud a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.totp-setup-box {
  background: var(--color-panel);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1rem 0;
}

.totp-secret-display {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.totp-secret-display code {
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.totp-secret-display button {
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
}

.recovery-code-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
  margin-top: 0.6rem;
  list-style: none;
  padding: 0;
}

.recovery-code-list code {
  display: block;
  padding: 0.4rem 0.6rem;
  background: var(--color-surface);
  border-radius: 6px;
}

.downvote-btn, .thank-btn {
  background: none;
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  color: var(--color-muted);
}

.downvote-btn:hover, .thank-btn:hover {
  background: var(--color-panel);
}

.faq-accordion {
  margin-bottom: 1.5rem;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  padding: 0.3rem 0;
}

.faq-item summary {
  padding: 0.7rem 1rem;
  cursor: pointer;
  font-weight: 600;
}

.faq-item .faq-answer {
  padding: 0 1rem 1rem;
  color: var(--color-muted);
}

.wiki-content {
  line-height: 1.7;
  margin-top: 1rem;
}

.code-copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
  cursor: pointer;
}

.code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

body.focus-mode header, body.focus-mode .quick-nav, body.focus-mode .sidebar, body.focus-mode .site-footer, body.focus-mode .mobile-bottom-nav,
body.focus-mode .breadcrumb a, body.focus-mode .breadcrumb span, body.focus-mode .post-actions, body.focus-mode .reply-form, body.focus-mode .post-author {
  display: none !important;
}

.sponsored-badge {
  background: #f39c12;
  color: #fff;
}

.onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  pointer-events: none;
}

.onboarding-tip {
  position: absolute;
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  border-radius: 10px;
  padding: 1rem;
  max-width: 280px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
}

.onboarding-tip p {
  margin: 0 0 0.7rem;
  font-size: 0.85rem;
}

.auto-toc {
  background: var(--color-panel);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.auto-toc ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.auto-toc .toc-indent-1 {
  margin-left: 1rem;
}

.auto-toc .toc-indent-2 {
  margin-left: 2rem;
}

.dashboard-widget-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  background: var(--color-panel);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.dashboard-widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.vip-badge {
  background: linear-gradient(135deg, #8e44ad, #3498db);
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 700;
}

.er-diagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.8rem;
}

.er-table-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.8rem;
  font-size: 0.82rem;
}

.addon-manager-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.addon-upload-panel {
  display: none;
  background: var(--color-panel);
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}

.addon-upload-panel.open {
  display: block;
}

.addon-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.addon-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: 10px;
  padding: 1rem 1.2rem;
}

.addon-card.is-disabled {
  border-left-color: var(--color-muted);
  opacity: 0.7;
}

@media  (max-width: 700px)  {
.addon-card {
    grid-template-columns: 1fr;
  }
}

.addon-card-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.addon-version {
  font-size: 0.7rem;
  background: var(--color-panel);
  color: var(--color-muted);
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
  font-family: monospace;
}

.addon-description {
  font-size: 0.85rem;
  margin: 0.3rem 0;
}

.addon-meta {
  font-size: 0.72rem;
}

.addon-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.addon-card-actions form {
  width: 100%;
}

.addon-card-actions button {
  width: 100%;
  font-size: 0.78rem;
  white-space: nowrap;
}

.addon-header-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.addon-card.has-error {
  border-left-color: #e74c3c;
}

.addon-error-banner {
  grid-column: 1/-1;
  background: #fdecea;
  border: 1px solid #e74c3c;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  margin-bottom: 0.3rem;
}

.addon-error-banner strong {
  color: #c0392b;
}

.addon-error-banner p {
  margin: 0.3rem 0 0;
  font-size: 0.82rem;
  color: #7a2e27;
  font-family: monospace;
}

.addon-hook-tag {
  background: var(--color-panel);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  font-size: 0.68rem;
  margin-right: 0.2rem;
}

.gamehub-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media  (max-width: 900px)  {
.gamehub-layout {
    grid-template-columns: 1fr;
  }
}

.gamehub-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gamehub-nav-list {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}

.gamehub-nav-list a {
  padding: 0.7rem 1rem;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.88rem;
  transition: background 0.15s;
}

.gamehub-nav-list a:last-child {
  border-bottom: none;
}

.gamehub-nav-list a:hover {
  background: var(--color-panel);
  text-decoration: none;
}

.gamehub-filter-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.8rem 1rem;
}

.gamehub-filter-box h4 {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin: 0 0 0.5rem;
}

.gamehub-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.85rem;
  border-radius: 6px;
}

.gamehub-filter-row:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.gamehub-filter-row.active {
  color: var(--color-accent);
  font-weight: 700;
}

.gamehub-filter-count {
  background: var(--color-panel);
  color: var(--color-muted);
  font-size: 0.7rem;
  padding: 0.05rem 0.45rem;
  border-radius: 10px;
}

.gamehub-browse-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.gamehub-browse-header h1 {
  margin: 0;
  font-size: 1.4rem;
}

.gamehub-browse-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.gamehub-search-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.gamehub-search-bar input[type=text] {
  flex: 1;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}

.gamehub-search-bar select {
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}

.gamehub-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.gamehub-game-card {
  display: block;
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}

.gamehub-game-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.gamehub-cover-wrap {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--color-panel);
}

.gamehub-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gamehub-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  opacity: 0.3;
}

.gamehub-rating-badge {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  background: rgba(0, 0, 0, 0.75);
  color: #ffd54f;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
}

.gamehub-year-badge {
  position: absolute;
  bottom: 0.4rem;
  left: 0.4rem;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
}

.gamehub-card-body {
  padding: 0.7rem 0.8rem;
}

.gamehub-card-body strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.25;
  margin-bottom: 0.3rem;
}

.gamehub-card-platforms {
  font-size: 0.68rem;
  color: var(--color-muted);
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gamehub-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gamehub-stars {
  color: #f39c12;
  font-size: 0.82rem;
  letter-spacing: 1px;
}

.gamehub-tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gamehub-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: normal;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
}

.gamehub-tag-chip input[type=checkbox] {
  accent-color: var(--color-accent);
  margin: 0;
}

.gamehub-tag-chip:has(input:checked) {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.gh-featured {
  position: relative;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  background-color: #1a2634;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  min-height: 220px;
}

.gh-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 15, 25, 0.92) 0%, rgba(10, 15, 25, 0.75) 45%, rgba(30, 60, 100, 0.55) 100%);
}

.gh-featured-addbtn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 2;
}

.gh-featured-cover {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 130px;
}

.gh-featured-cover img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.gh-featured-info {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 640px;
}

.gh-featured-info h1 {
  margin: 0.3rem 0;
  font-size: 1.7rem;
  color: #fff;
}

.gh-featured-tag {
  display: inline-block;
  color: #f39c12;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.gh-featured-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #dfe6ee;
  font-size: 0.85rem;
  margin: 0.2rem 0 0.6rem;
}

.gh-featured-desc {
  color: #cfd8e3;
  font-size: 0.88rem;
  margin: 0.6rem 0 1rem;
  max-width: 560px;
}

.gh-stats-card {
  background: linear-gradient(135deg, #1a4d7a, #123a5e);
  border-radius: 10px;
  padding: 1rem;
  color: #fff;
  margin-bottom: 1rem;
}

.gh-stats-head {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.gh-stats-head strong {
  display: block;
  font-size: 1rem;
}

.gh-stats-head p {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: #cfe0f0;
}

.gh-stats-icon {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.gh-stats-row {
  display: flex;
  gap: 0.5rem;
}

.gh-stat-box {
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  text-align: center;
  padding: 0.5rem 0.2rem;
}

.gh-stat-box strong {
  display: block;
  font-size: 1.1rem;
}

.gh-stat-box span {
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: #cfe0f0;
}

.gamehub-nav-list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.gh-nav-icon {
  background: var(--color-panel);
  border-radius: 6px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.gh-section-title {
  font-size: 1.05rem;
  margin: 0 0 0.7rem;
}

.gh-trending-row {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.gh-trending-card {
  position: relative;
  flex: 0 0 130px;
  text-decoration: none;
  color: var(--color-text);
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.gh-trending-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.gh-trending-card:hover {
  text-decoration: none;
}

.gh-trending-rank {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  z-index: 1;
}

.gh-trending-info {
  padding: 0.4rem 0.5rem;
  font-size: 0.75rem;
}

.gh-trending-info strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.15rem;
}

.gamehub-card-platform-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.3rem;
}

.gh-platform-tag {
  background: var(--color-panel);
  color: var(--color-muted);
  font-size: 0.62rem;
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
}

.gh-soon-badge {
  background: rgba(52, 152, 219, 0.85) !important;
  font-weight: 700;
}

.gh-detail-banner {
  position: relative;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: 12px 12px 0 0;
  background-color: #1a2634;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border-bottom: 4px solid #7ed321;
}

.gh-detail-cover {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 110px;
}

.gh-detail-cover img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.gh-detail-info {
  position: relative;
  z-index: 1;
  color: #fff;
  flex: 1;
}

.gh-detail-info h1 {
  margin: 0;
  font-size: 1.5rem;
  color: #fff;
}

.gh-detail-year {
  font-weight: 400;
  color: #cfd8e3;
  font-size: 1.1rem;
}

.gh-detail-metarow {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: #cfd8e3;
  font-size: 0.82rem;
  margin: 0.4rem 0;
}

.gh-detail-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
}

.gh-detail-actions a, .gh-detail-actions button {
  color: #dfe6ee;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
}

.gh-detail-actions a:hover, .gh-detail-actions button:hover {
  color: #fff;
}

.gh-edit-link {
  margin-left: auto;
}

.gh-coming-soon {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #eaf3fb;
  border: 1px solid #b8d9f0;
  border-radius: 0 0 10px 10px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.gh-coming-soon-icon {
  background: #3498db;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.gh-coming-soon-text {
  flex: 1;
}

.gh-coming-soon-text strong {
  color: #2980b9;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.gh-coming-soon-text p {
  margin: 0.1rem 0 0;
  font-size: 0.88rem;
  color: #1c2e3e;
}

.gh-days-pill {
  background: #3498db;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

.gh-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}

.gh-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.gh-card h4 {
  margin: 0;
}

.gh-screenshots-card {
  border-left: 4px solid #7ed321;
}

.gh-card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gh-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.gh-status-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--color-text);
  transition: background 0.15s, border-color 0.15s;
}

.gh-status-chip.active {
  background: #fdf6e3;
  border-color: #e6a817;
  font-weight: 600;
}

.gh-status-chip:hover {
  border-color: var(--color-accent);
}

.gh-status-icon {
  font-size: 1rem;
}

.gh-divider {
  border-top: 1px solid var(--color-border);
  margin: 1rem 0 0.6rem;
}

.gh-my-copy-label {
  font-weight: 600;
  font-size: 0.88rem;
  margin: 0 0 0.4rem;
}

.gh-dashed-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px dashed var(--color-border);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  margin-top: 0.6rem;
  cursor: pointer;
}

.gh-star-input {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 1.6rem;
  margin-top: 0.6rem;
}

.gh-star {
  color: #d9d9d9;
  cursor: pointer;
  position: relative;
}

.gh-star.full {
  color: #f39c12;
}

.gh-star.half {
  background: linear-gradient(90deg, #f39c12 50%, #d9d9d9 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gh-star-clear {
  color: var(--color-muted);
  cursor: pointer;
  font-size: 1.2rem;
  margin-left: 0.4rem;
}

.gh-review-row {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem;
}

.gh-review-row:last-child {
  border-bottom: none;
}

.gh-review-row p {
  margin: 0.3rem 0;
}

.gh-rankings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0 0.3rem;
}

.gh-rankings-header h1 {
  margin: 0;
  font-size: 1.4rem;
}

.gh-rankings-filters {
  display: flex;
  gap: 0.5rem;
}

.gh-rankings-filters select {
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}

.gh-rankings-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

.gh-ranking-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  color: var(--color-text);
}

.gh-ranking-row:hover {
  text-decoration: none;
  border-color: var(--color-accent);
}

.gh-ranking-row img {
  width: 50px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.gh-rank-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-muted);
  width: 30px;
  text-align: center;
  flex-shrink: 0;
}

.gh-ranking-info {
  flex: 1;
  min-width: 0;
}

.gh-ranking-score {
  text-align: right;
  flex-shrink: 0;
}

.gh-ranking-score strong {
  display: block;
  color: #f39c12;
  font-size: 1.2rem;
}

.gh-ranking-score .muted {
  font-size: 0.72rem;
}

.gh-empty-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.gh-empty-hero h1 {
  margin: 0 0 0.3rem;
  font-size: 1.3rem;
}

.gh-recent-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.82rem;
}

.gh-recent-item:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.gh-recent-item img, .gh-recent-item .gh-recent-placeholder {
  width: 30px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--color-panel);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gh-recent-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gh-rating-summary-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.gh-big-score {
  font-size: 2.2rem;
}

.gh-rating-bars {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.gh-rating-bar-row {
  display: grid;
  grid-template-columns: 40px 1fr 24px;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
}

.gh-rating-bar-track {
  height: 8px;
  background: var(--color-panel);
  border-radius: 4px;
  overflow: hidden;
}

.gh-rating-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6a5acd, #9370db);
  border-radius: 4px;
}

.gh-detail-rating-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.gh-detail-rating-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.gh-detail-rating-item strong {
  margin-left: auto;
}

.gh-detail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6a5acd;
  display: inline-block;
}

.gh-detail-rating-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.gh-detail-rating-inputs select {
  width: 100%;
}

.gh-discussions-card {
  border-left: 4px solid #3498db;
}

.gh-form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  margin-bottom: 1.2rem;
  overflow: hidden;
}

.gh-form-card-header {
  background: linear-gradient(180deg, #eaf3fb, var(--color-surface));
  color: #2980b9;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--color-border);
}

.gh-form-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--color-border);
}

.gh-form-row:last-child {
  border-bottom: none;
}

.gh-form-row label {
  text-align: right;
  padding-top: 0.5rem;
  color: var(--color-muted);
}

.gh-form-row input[type=text], .gh-form-row input[type=number], .gh-form-row input[type=date], .gh-form-row textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  box-sizing: border-box;
}

@media  (max-width: 600px)  {
.gh-form-row {
    grid-template-columns: 1fr;
  }
.gh-form-row label {
    text-align: left;
    padding-top: 0;
  }
}

.gh-required {
  color: #e74c3c;
}

.gh-field-help {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin: 0.4rem 0 0;
}

.gh-stepper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 220px;
}

.gh-stepper input {
  text-align: center;
}

.gh-stepper-btn {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  width: 34px;
  height: 34px;
  font-size: 1rem;
  color: var(--color-accent);
  cursor: pointer;
  flex-shrink: 0;
}

.gh-stepper-btn:hover {
  background: var(--color-accent);
  color: #fff;
}

.gh-empty-state {
  text-align: center;
  padding: 1.2rem 0.5rem;
  color: var(--color-muted);
}

.gh-empty-state p {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
}

.gh-empty-icon {
  font-size: 1.6rem;
  opacity: 0.5;
}

.gh-activity-feed {
  display: flex;
  flex-direction: column;
}

.gh-activity-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--color-border);
}

.gh-activity-row:last-child {
  border-bottom: none;
}

.gh-activity-text {
  font-size: 0.85rem;
  line-height: 1.5;
}

.gh-activity-rating {
  background: #fdf6e3;
  color: #e6a817;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
  margin-left: 0.3rem;
}

.gh-library-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.gh-library-label {
  color: #e6a817;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.gh-library-summary h1 {
  margin: 0.2rem 0 0.8rem;
  font-size: 1.6rem;
}

.gh-library-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.gh-library-stats-row strong {
  color: var(--color-text);
}

.gh-progress-ring {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.gh-progress-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gh-progress-ring-text strong {
  font-size: 1.3rem;
}

.gh-progress-ring-text span {
  font-size: 0.6rem;
  color: var(--color-muted);
  letter-spacing: 0.04em;
}

.gh-lists-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.5rem 0 1rem;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.gh-lists-header h1 {
  margin: 0;
  font-size: 1.4rem;
}

.gh-lists-actions {
  display: flex;
  gap: 0.6rem;
}

.gh-lists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}

.gh-list-card {
  display: block;
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}

.gh-list-card:hover {
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.gh-list-mosaic {
  display: grid;
  aspect-ratio: 16/9;
  gap: 2px;
  background: var(--color-panel);
}

.gh-list-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gh-mosaic-0, .gh-mosaic-1 {
  grid-template-columns: 1fr;
}

.gh-mosaic-2 {
  grid-template-columns: 1fr 1fr;
}

.gh-mosaic-3 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.gh-mosaic-3 img:first-child {
  grid-row: span 2;
}

.gh-mosaic-4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.gh-list-card-body {
  padding: 0.8rem 1rem;
}

.gh-list-card-body strong {
  display: block;
  margin-bottom: 0.2rem;
}

.gh-activity-tabs {
  display: flex;
  background: var(--color-panel);
  border-radius: 20px;
  padding: 0.2rem;
  gap: 0.2rem;
}

.gh-activity-tab {
  background: none;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 16px;
  font-size: 0.78rem;
  color: var(--color-muted);
  cursor: pointer;
}

.gh-activity-tab.active {
  background: var(--color-surface);
  color: var(--color-accent);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.gh-activity-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.gh-avatar-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #f39c12;
  color: #fff;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  border: 2px solid var(--color-surface);
}

.gh-activity-row {
  align-items: center;
}

.gh-activity-thumb-link {
  margin-left: auto;
  flex-shrink: 0;
}

.gh-activity-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gh-activity-thumb-placeholder {
  background: var(--color-panel);
  font-size: 1.2rem;
}

.gh-activity-achievement-thumb {
  background: #f39c12;
  color: #fff;
  font-size: 1.3rem;
  margin-left: auto;
}

.recipe-ingredient-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.recipe-ingredient-row input {
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
}

.recipe-step-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  align-items: flex-start;
}

.recipe-step-row textarea {
  flex: 1;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
}

.recipe-step-number {
  background: var(--color-accent);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.3rem;
}

.im-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-panel);
  flex-shrink: 0;
}

.im-panel-header a, .im-panel-header button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  text-decoration: none;
  font-size: 1rem;
}

.im-conv-row {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 0.6rem 1rem;
  cursor: pointer;
  color: var(--color-text);
}

.im-conv-row:hover {
  background: var(--color-panel);
}

.im-conv-row strong {
  font-size: 0.85rem;
}

.im-conv-preview {
  font-size: 0.75rem;
  color: var(--color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.im-conv-time {
  font-size: 0.68rem;
  color: var(--color-muted);
}

.im-msg {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}

.im-msg-mine {
  align-self: flex-end;
  align-items: flex-end;
}

.im-msg-theirs {
  align-self: flex-start;
  align-items: flex-start;
}

.im-msg-sender {
  font-size: 0.68rem;
  color: var(--color-muted);
  margin-bottom: 0.1rem;
}

.im-msg-bubble {
  padding: 0.5rem 0.8rem;
  border-radius: 14px;
  font-size: 0.85rem;
  background: var(--color-panel);
}

.im-msg-mine .im-msg-bubble {
  background: var(--color-accent);
  color: #fff;
}

.layout-toggle {
  display: flex;
  gap: 0.3rem;
  background: var(--color-panel);
  border-radius: 20px;
  padding: 0.2rem;
}

.layout-toggle button {
  background: none;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 16px;
  font-size: 0.8rem;
  color: var(--color-muted);
  cursor: pointer;
}

.layout-toggle button.active {
  background: var(--color-surface);
  color: var(--color-accent);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.topic-list.topic-grid-view .unread-badge.is-unread {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
}

.helpful-feedback {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.1rem 0.8rem;
  font-size: 0.8rem;
}

.helpful-btn {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--color-text);
}

.helpful-btn:hover {
  border-color: var(--color-accent);
}

.helpful-btn.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.badge-shape-preview {
  width: 56px;
  height: 56px;
  background: var(--badge-color, #3498db);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.badge-shape-preview.circle {
  border-radius: 50%;
}

.badge-shape-preview.shield {
  clip-path: polygon(50% 0%, 100% 20%, 100% 60%, 50% 100%, 0% 60%, 0% 20%);
}

.badge-shape-preview.star {
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.badge-shape-preview.hexagon {
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.badge-shape-preview.badge-sm {
  width: 34px;
  height: 34px;
  font-size: 0.95rem;
}

.badge-theme-counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.badge-theme-card {
  border-radius: 12px;
  padding: 1.2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--theme-color-a), var(--theme-color-b));
}

.badge-theme-card h4 {
  margin: 0 0 0.3rem;
  font-size: 0.85rem;
  opacity: 0.9;
}

.badge-theme-card strong {
  font-size: 1.8rem;
  display: block;
}

.badge-theme-card span {
  font-size: 0.75rem;
  opacity: 0.85;
}

.badge-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}

.badge-gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1rem 0.6rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.badge-gallery-item.badge-locked {
  opacity: 0.4;
  filter: grayscale(1);
}

.badge-gallery-item strong {
  font-size: 0.8rem;
}

.badge-gallery-item span {
  font-size: 0.68rem;
  color: var(--color-muted);
}

.field-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 0.2rem;
}

.ace-create-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.ace-create-btn span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
  margin-top: -22px;
  border: 3px solid var(--color-surface);
}

.ace-create-sheet {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.ace-create-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.ace-create-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-surface);
  border-radius: 16px 16px 0 0;
  padding: 0.6rem 1.2rem 1.5rem;
  max-height: 70vh;
  overflow-y: auto;
}

.ace-create-sheet-panel h3 {
  text-align: center;
  margin: 0.5rem 0 1rem;
  font-size: 1rem;
}

.ace-create-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  margin: 0 auto;
}

.ace-create-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.ace-create-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--color-text);
  font-size: 1.6rem;
}

.ace-create-grid a span {
  font-size: 0.68rem;
  color: var(--color-muted);
  line-height: 1.2;
}

.ace-create-grid a:hover {
  text-decoration: none;
}

.ab-test-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.ab-test-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--color-border);
}

.ab-test-key {
  background: var(--color-panel);
  color: var(--color-muted);
  font-size: 0.72rem;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
}

.ab-test-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ab-test-variants {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ab-variant-row {
  display: grid;
  grid-template-columns: 100px 1fr 140px;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  background: var(--color-panel);
}

.ab-variant-row.ab-variant-winning {
  background: #fdf6e3;
}

.ab-variant-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ab-variant-bar-track {
  height: 10px;
  background: var(--color-border);
  border-radius: 5px;
  overflow: hidden;
}

.ab-variant-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark));
  border-radius: 5px;
  transition: width 0.3s;
}

.ab-variant-winning .ab-variant-bar-fill {
  background: linear-gradient(90deg, #f39c12, #e67e22);
}

.ab-variant-stats {
  font-size: 0.8rem;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.featured-topics-section {
  margin: 1.5rem 0;
}

.featured-topics-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

@media  (max-width: 800px)  {
.featured-topics-grid {
    grid-template-columns: 1fr;
  }
}

.featured-topic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 140px;
  padding: 1.2rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e3a5f, #2c5282);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
}

.featured-topic-card:hover {
  text-decoration: none;
  opacity: 0.94;
}

.featured-topic-card strong {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.featured-topic-card p {
  font-size: 0.8rem;
  color: #dfe6ee;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.featured-topic-large {
  grid-row: span 2;
  min-height: 300px;
  background: linear-gradient(135deg, #8e44ad, #3498db);
}

.featured-topic-large strong {
  font-size: 1.3rem;
}

.featured-topic-large p {
  font-size: 0.9rem;
}

.featured-topic-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 700;
}

.featured-topic-meta {
  font-size: 0.72rem;
  color: #cfd8e3;
}

.badge-featured {
  background: #fdf6e3;
  color: #e6a817;
  border: 1px solid #f0d888;
}

.spotify-listening-btn {
  display: block;
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.4rem 0.7rem;
  background: #1db954;
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.spotify-listening-btn:hover {
  background: #1aa34a;
}

.spotify-now-playing-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  max-width: 90vw;
  background: var(--color-surface);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  z-index: 3000;
  overflow: hidden;
}

.spotify-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: #1e3a5f;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}

.spotify-modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.3rem;
}

.spotify-modal-body {
  padding: 1.2rem;
  text-align: center;
  color: var(--color-muted);
}

.spotify-track-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-align: left;
  margin-bottom: 1rem;
}

.spotify-track-row strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-text);
}

.spotify-track-row a {
  color: var(--color-accent);
  font-size: 0.82rem;
  text-decoration: none;
}

.spotify-album-art {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.spotify-progress-track {
  width: 100%;
  height: 6px;
  background: var(--color-panel);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.spotify-progress-fill {
  height: 100%;
  background: #1db954;
  border-radius: 3px;
}

.spotify-time-label {
  font-size: 0.72rem;
  text-align: right;
}

.news-feed-section {
  margin: 1.5rem 0;
}

.news-feed-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.news-feed-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-text);
}

.news-feed-item:hover {
  border-color: var(--color-accent);
  text-decoration: none;
}

.news-feed-item strong {
  display: block;
  font-size: 0.88rem;
}

.news-feed-item p {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.news-feed-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}

.news-feed-time {
  margin-left: auto;
  font-size: 0.72rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.news-feed-announcement {
  background: linear-gradient(90deg, #fff9e6, var(--color-surface));
  border-color: #f0d888;
}

.news-feed-effects .news-feed-item {
  opacity: 0;
  animation: news-feed-item-in 0.4s ease forwards;
}

.addon-category-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin: 1rem 0;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--color-border);
}

.addon-tab-btn {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--color-text);
}

.addon-tab-btn:hover {
  border-color: var(--color-accent);
}

.addon-tab-btn.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.bb-table { border-collapse: collapse; width: 100%; margin: .6rem 0; }

.bb-table td, .bb-table th { border: 1px solid var(--color-border, #d8dde3); padding: .4rem .6rem; }

.bb-video-embed { position: relative; padding-bottom: 56.25%; height: 0; margin: .6rem 0; }

.bb-video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.bb-video { max-width: 100%; margin: .6rem 0; }

.activity-widget {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  margin-bottom: 1.2rem;
  overflow: hidden;
}

.activity-widget-title {
  margin: 0;
  padding: 0.9rem 1.1rem;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.activity-widget-collapse {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.activity-widget-tabs {
  display: flex;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--color-border);
}

.activity-tab {
  flex-shrink: 0;
  background: var(--color-panel);
  color: var(--color-text);
  border: none;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.activity-tab.active {
  background: #22c55e;
  color: #fff;
}

.activity-widget-colhead {
  padding: 0.5rem 1.1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-muted);
  background: var(--color-panel);
}

.activity-group-header {
  padding: 0.4rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.activity-group-pinned { background: #bbf7d0; color: #14532d; }

.activity-group-normal { background: #dcfce7; color: #14532d; }

.activity-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.1rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text) !important;
  text-decoration: none !important;
}

.activity-row:hover { background: var(--color-panel); }

.activity-row:last-child { border-bottom: none; }

.activity-prefix {
  flex-shrink: 0;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.activity-row-title {
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-stat-card-v2 {
  /* GERÇEK HATA (kullanıcı geri bildirimiyle bulundu): sabit #fff
     (beyaz) arka plan, koyu Aurora footer içinde uyumsuz duruyordu.
     Artık footer'ın kendi koyu/glass diliyle tutarlı. */
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.8rem;
}

.footer-stat-card-v2-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-stat-card-v2-row:last-child { border-bottom: none; }

.footer-stat-v2-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}

.footer-stat-v2-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
  text-align: right;
}

.footer-stat-v2-text strong {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.footer-stat-v2-text span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-newest-avatars {
  display: flex;
  align-items: center;
  gap: -0.4rem;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-newest-avatars a {
  margin-left: -0.5rem;
  border: 2px solid #fff;
  border-radius: 50%;
  display: block;
  line-height: 0;
}

.footer-newest-avatars a:first-child { margin-left: 0; }

.footer-newest-avatars-label {
  width: 100%;
  text-align: right;
  font-size: 0.78rem;
  color: #7a8794;
  margin-top: 0.3rem;
}

.postbit-style-dark-ranks {
  background: linear-gradient(160deg, #0f3a63 0%, #0a2647 100%);
  border-radius: 10px;
  padding: 1rem 0.8rem;
  color: #fff;
}

.postbit-style-dark-ranks .post-author-avatar-wrap img,
.postbit-style-dark-ranks .post-author-avatar-wrap .avatar-circle {
  border: 3px solid rgba(255, 255, 255, 0.85);
}

.postbit-style-dark-ranks a strong {
  color: #ff6b6b;
  font-weight: 800;
}

.postbit-style-dark-ranks .rank {
  display: block;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.78rem;
  margin: 0.2rem 0 0.5rem;
}

.postbit-style-dark-ranks .custom-title,
.postbit-style-dark-ranks .expert-badge,
.postbit-style-dark-ranks .vip-badge {
  display: block;
  background: linear-gradient(90deg, #dc2626, #991b1b);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  text-align: center;
  padding: 0.35rem 0.5rem;
  border-radius: 5px;
  margin: 0.3rem 0;
}

.postbit-style-dark-ranks .post-author-extras {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  margin-top: 0.5rem;
}

.postbit-style-dark-ranks .post-author-extras .muted {
  color: rgba(255, 255, 255, 0.6) !important;
}

.postbit-style-dark-ranks .post-author-extras strong {
  color: #fff !important;
}

.postbit-style-dark-ranks .postbit-badges {
  display: block;
  text-align: center;
  margin-top: 0.4rem;
}

.reactions-more-wrapper { position: relative; display: inline-block; }

.reactions-more-toggle { font-weight: 900; }

.reactions-more-menu {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 0.4rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.4rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 50;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 160px;
}

.reactions-more-menu.open { display: flex; }

.reactions-more-menu button { text-align: left; }

.postbit-style-badge-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.9rem;
  text-align: center;
}

.postbit-style-badge-card::before {
  content: "💬 Forumum";
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-primary, #082746);
  background: var(--color-panel);
  border-radius: 6px;
  padding: 0.3rem;
  margin-bottom: 0.6rem;
}

.postbit-style-badge-card .rank {
  display: inline-block;
  background: #e8f3fc;
  color: var(--color-primary, #082746) !important;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  margin: 0.3rem 0 0.5rem;
}

.postbit-style-badge-card .post-author-extras {
  text-align: left;
  border-top: 1px solid var(--color-border);
  padding-top: 0.5rem;
  margin-top: 0.4rem;
}

.postbit-style-badge-card .post-author-extras > * {
  padding: 0.2rem 0;
  font-size: 0.8rem;
}

.postbit-style-glossy-bars {
  background: #1c2530;
  border-radius: 10px;
  padding: 1rem 0.8rem;
  color: #fff;
}

.postbit-style-glossy-bars a strong {
  color: #e74c3c;
  font-weight: 800;
}

.postbit-style-glossy-bars .expert-badge,
.postbit-style-glossy-bars .vip-badge,
.postbit-style-glossy-bars .custom-title,
.postbit-style-glossy-bars .rank {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  margin: 0.3rem 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.postbit-style-glossy-bars .expert-badge { background: linear-gradient(90deg, #16a085, #0d7e69); }

.postbit-style-glossy-bars .vip-badge { background: linear-gradient(90deg, #8e44ad, #6c3483); }

.postbit-style-glossy-bars .custom-title { background: linear-gradient(90deg, #2980b9, #1f5f8b); }

.postbit-style-glossy-bars .rank { background: linear-gradient(90deg, #c0392b, #922b21); }

.postbit-style-glossy-bars .postbit-badges {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.postbit-style-glossy-bars .postbit-badges span,
.postbit-style-glossy-bars .postbit-badges { }

.postbit-style-glossy-bars .post-author-extras {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  margin-top: 0.4rem;
}

.postbit-style-glossy-bars .post-author-extras .muted { color: rgba(255, 255, 255, 0.55) !important; }

.postbit-style-glossy-bars .post-author-extras strong { color: #fff !important; }

.postbit-store-page {
  background: linear-gradient(160deg, #0f0c29, #302b63, #24243e);
  min-height: 70vh;
  margin: -1.5rem 0 0;
}

.pb-store-tabs {
  display: flex;
  gap: 0.6rem;
  padding: 1rem 0;
  overflow-x: auto;
}

.pb-store-tab {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.pb-store-tab.active {
  background: linear-gradient(90deg, #ff6b6b, #feca57);
  color: #1c2530;
  border-color: transparent;
}

.pb-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

.pb-store-card {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  border: 1px solid transparent;
  background-image: linear-gradient(rgba(255,255,255,0.06), rgba(255,255,255,0.06)), linear-gradient(135deg, rgba(255,255,255,.4), rgba(255,255,255,.05));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  padding: 1rem;
  overflow: hidden;
}

.pb-store-featured-tag {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  z-index: 2;
}

.pb-store-preview-box {
  background: #f4f5f7;
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.pb-store-preview-box .post-author {
  max-width: 170px;
  transform: scale(0.92);
}

.pb-store-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pb-store-hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.6rem;
  margin: 1rem 0 1.5rem;
  flex-wrap: wrap;
}

.pb-store-hero-info { flex: 1 1 260px; }

.pb-store-hero-tag {
  display: inline-block;
  background: linear-gradient(90deg, #ff6b6b, #feca57);
  color: #1c2530;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.pb-store-hero-preview {
  flex: 0 0 auto;
  background: #f4f5f7;
  border-radius: 14px;
  padding: 1.2rem;
}

.pb-store-tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.6rem 0 0.2rem;
}

.pb-store-tag-pill {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  text-decoration: none !important;
}

.pb-store-tag-pill.active {
  background: linear-gradient(90deg, #ff6b6b, #feca57);
  color: #1c2530 !important;
  border-color: transparent;
}

.pb-detail-header {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.4rem;
  margin: 1rem 0;
}

.pb-detail-preview-toggle { display: flex; gap: 0.5rem; margin-bottom: 0.6rem; }

.pb-preview-mode-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.pb-preview-mode-btn.active { background: linear-gradient(90deg, #ff6b6b, #feca57); color: #1c2530; border-color: transparent; }

.pb-detail-preview-box {
  background: #f4f5f7;
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  justify-content: center;
  transition: max-width 0.25s;
}

.pb-detail-preview-box[data-preview-container="desktop"] { max-width: 100%; }

.pb-detail-preview-box[data-preview-container="mobile"] { max-width: 280px; margin: 0 auto; }

.pb-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.pb-comment-card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.8rem;
  margin-bottom: 0.6rem;
}

.pb-author-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1rem;
}

@media  (max-width: 700px)  {
.pb-detail-grid { grid-template-columns: 1fr; }
}

.pb-playground-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.pb-playground-controls {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1rem;
}

.pb-playground-controls label {
  display: block;
  margin: 0.6rem 0;
  font-size: 0.82rem;
}

.pb-playground-controls input[type="color"] {
  width: 100%;
  height: 32px;
  border: none;
  border-radius: 6px;
  margin-top: 0.2rem;
}

.pb-playground-controls input[type="range"] { width: 100%; }

.pb-playground-preview-panel {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1rem;
}

.pb-playground-preview-box {
  background: #f4f5f7;
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  justify-content: center;
}

@media  (max-width: 700px)  {
.pb-playground-layout { grid-template-columns: 1fr; }
}

.topic-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  margin: 0.8rem 0;
}

.topic-toolbar .inline-form,
.topic-toolbar .assignment-bar,
.topic-toolbar .mod-cp-panel,
.topic-toolbar .apps-dropdown {
  margin: 0 !important;
}

.topic-toolbar form.assignment-bar label {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.forum-item--grid {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.8rem;
  background: var(--color-surface);
}

/* GERÇEK HATA (ölçümle bulundu): şerit ekranda 3×4 piksellik bir NOKTA
   olarak çiziliyordu, dikey vurgu çubuğu olarak değil.
   Sebep: Aurora katmanı (modern-forum.css, sonra yükleniyor) şeridi
   position:absolute + top:18px/bottom:18px + width:3px ile dikey çubuk
   yapıyor ama HEIGHT tanımlamıyor. Buradaki eski "height:4px" hiçbir
   rakibi olmadığı için hayatta kalıyor ve top/bottom'dan türeyecek
   yüksekliği eziyordu. Yükseklik kararını Aurora'ya bırakıyoruz. */
.forum-item-stripe { width: 100%; }

.forum-item-grid-body { padding: 1rem; }

.forum-item-main { display: flex; gap: 0.9rem; align-items: flex-start; }

.forum-item-icon-box {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--color-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.forum-item-textblock { flex: 1; min-width: 0; }

.forum-item-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 0.4rem;
}

.forum-item-lastpost-col {
  border-top: 1px solid var(--color-border);
  padding: 0.4rem 0.6rem;
  background: var(--color-panel);
}

@media  (min-width: 900px)  {
.forum-item--grid { flex-direction: row; align-items: stretch; }
.forum-item-stripe { width: 4px; height: auto; flex-shrink: 0; }
.forum-item-grid-body { flex: 0 0 320px; border-right: 1px solid var(--color-border); }
.forum-item-lastpost-col { flex: 1; border-top: none; max-height: 260px; overflow-y: auto; }
}

.forum-item-topiclist { list-style: none; margin: 0; padding: 0; }

.forum-item-topiclist-row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid var(--color-border);
}

.forum-item-topiclist-row:last-child { border-bottom: none; }

.forum-item-topiclist-info { flex: 1; min-width: 0; }

.forum-item-topiclist-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-item-topiclist-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-top: 0.15rem;
}

.offcanvas-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  display: none;
}

.offcanvas-menu-backdrop.open { display: block; }

.offcanvas-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: var(--color-surface);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
}

.offcanvas-menu.open { transform: translateX(0); }

.offcanvas-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-primary);
  color: #fff;
}

.offcanvas-menu-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.offcanvas-menu-body {
  padding: 0.6rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.offcanvas-menu-body a {
  padding: 0.7rem 0.6rem;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.92rem;
}

.offcanvas-menu-body a:hover { background: var(--color-panel); }

.offcanvas-menu-body hr { border: none; border-top: 1px solid var(--color-border); margin: 0.5rem 0; }
/* GERÇEK HATA (kullanıcı geri bildirimiyle bulundu): #im-panel'in
   HİÇ boyut/konumlandırma CSS'i yoktu (sadece modern-forum.css'de
   display:none vardı) - bu yüzden boş durumu ("Henüz mesajın yok")
   tutarsız/orantısız görünüyordu. .notif-dropdown ile aynı kalıp. */
#im-panel {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  width: 300px;
  max-height: 420px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 2000;
}
.im-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}
#im-conversation-list, #im-messages {
  overflow-y: auto;
  max-height: 340px;
}

/* Off-canvas menüye taşınan tema değiştirici - menüdeki <a>
   linkleriyle aynı görsel dilde olmalı ki "yabancı" durmasın. */
.offcanvas-theme-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.6rem;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 0.92rem;
  font-family: inherit;
  border-radius: 8px;
  cursor: pointer;
}
.offcanvas-theme-btn:hover { background: var(--color-panel); }
