/* ==========================================================================
   4um — Modern Minimalist Koyu Siber Topluluk Teması
   Tasarım: Temiz, Tipografi Odaklı, Mobil Native & Pixel-Perfect
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS DEĞİŞKENLERİ & TEMEL AYARLAR
   -------------------------------------------------------------------------- */
:root {
  /* Arka Planlar */
  --bg-main: #080a10;
  --bg-card: #0f121d;
  --bg-card-hover: #141826;
  --bg-card-subtle: #121624;
  --bg-elevated: #181d2f;
  --bg-input: #0a0c14;
  --bg-glass: rgba(12, 15, 25, 0.85);
  --bg-glass-strong: rgba(10, 12, 20, 0.95);

  /* Çerçeveler */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-card: rgba(255, 255, 255, 0.09);
  --border-focus: rgba(168, 85, 247, 0.45);

  /* Vurgu Renkleri */
  --purple-primary: #7c3aed;
  --purple-primary-hover: #6d28d9;
  --purple-light: #9333ea;
  --purple-neon: #c084fc;
  --green-accent: #10b981;
  --orange-accent: #f97316;
  --red-accent: #f43f5e;
  --cyan-accent: #06b6d4;

  /* Tipografi Renkleri */
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  --text-subtle: #64748b;

  /* Yazı Tipleri */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Yuvarlama */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  /* Gölgeler */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-elevated: 0 10px 30px rgba(0, 0, 0, 0.6);
  --shadow-modal: 0 20px 40px rgba(0, 0, 0, 0.8);

  /* Geçişler */
  --transition: all 0.18s ease-out;
}

/* --------------------------------------------------------------------------
   2. GENEL SIFIRLAMA & TEMEL DÜZEN
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg-main);
  overflow-x: hidden;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
  user-select: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   3. ANİMASYON SİSTEMİ
   -------------------------------------------------------------------------- */
@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sheetSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes modalSpring {
  0% { opacity: 0; transform: scale(0.96) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes spinnerRotate {
  to { transform: rotate(360deg); }
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   4. YARDIMCI DÜZEN SINIFLARI & KONTEYNER
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-purple { color: var(--purple-neon); }
.text-orange { color: var(--orange-accent); }
.text-cyan { color: var(--cyan-accent); }
.text-green { color: var(--green-accent); }
.text-red { color: var(--red-accent); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }

/* --------------------------------------------------------------------------
   5. BUTONLAR
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--purple-primary);
  color: #fff;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--purple-primary-hover);
}

.btn-outline {
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.btn-outline:hover {
  border-color: var(--purple-light);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: var(--border-card);
  color: #fff;
}

.btn-sm {
  padding: 5px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 11px 20px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   6. ÜST GEZİNTİ ÇUBUĞU (TOPBAR)
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  height: 58px;
  display: flex;
  align-items: center;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.logo-name {
  color: #fff;
}

.logo-accent {
  color: var(--purple-neon);
}

/* Masaüstü Navigasyon Linkleri */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
  color: #fff;
  background: rgba(168, 85, 247, 0.12);
  color: var(--purple-neon);
}

/* Sağ Kontroller */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search-wrap .search-icon {
  position: absolute;
  left: 10px;
  color: var(--text-dim);
  pointer-events: none;
}

.nav-search-wrap input {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 30px 6px 30px;
  font-size: 12.5px;
  width: 180px;
  color: var(--text-main);
  transition: var(--transition);
}

.nav-search-wrap input:focus {
  width: 240px;
  border-color: var(--border-focus);
}

.search-kbd {
  position: absolute;
  right: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
  pointer-events: none;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  z-index: 1000;
  overflow: hidden;
  animation: viewFadeIn 0.15s ease-out;
}

.search-result-item {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-item:focus,
.search-result-item.is-selected {
  background: rgba(124, 58, 237, 0.18);
  outline: none;
  border-color: rgba(124, 58, 237, 0.35);
}

.search-result-item .item-title {
  font-weight: 600;
  font-size: 13.5px;
  color: #fff;
  margin-bottom: 2px;
}

.search-result-item .item-sub {
  font-size: 12.5px;
  color: var(--text-dim);
  display: flex;
  gap: 6px;
}

.search-status-item {
  padding: 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.mobile-search-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.mobile-search-btn:hover,
.mobile-search-btn:active,
.mobile-search-btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: var(--border-focus);
}

.mobile-search-bar {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-card);
  padding: 10px 16px;
  box-shadow: var(--shadow-elevated);
}

.mobile-search-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

.mobile-search-inner .search-icon {
  color: var(--text-dim);
  flex-shrink: 0;
}

.mobile-search-inner input {
  flex: 1;
  font-size: 13.5px;
  color: #fff;
}

.mobile-search-close {
  color: var(--text-dim);
  font-size: 14px;
  padding: 2px;
}

.nav-user-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-nav-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px 3px 3px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.user-nav-badge:hover {
  border-color: var(--purple-light);
}

.user-nav-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.user-nav-name {
  font-weight: 700;
  font-size: 12.5px;
  color: #fff;
}

.user-nav-trade {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--green-accent);
  background: rgba(16, 185, 129, 0.12);
  padding: 1px 4px;
  border-radius: 3px;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 11px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.hamburger-btn:focus-visible {
  outline: 2px solid var(--purple-neon);
  outline-offset: 2px;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   7. MOBİL ÇEKMECE (DRAWER)
   -------------------------------------------------------------------------- */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease-out, visibility 0.18s ease-out;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: var(--bg-card);
  border-left: 1px solid var(--border-card);
  box-shadow: var(--shadow-elevated);
  z-index: 1200;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.25s ease-out;
  display: flex;
  flex-direction: column;
  padding: 18px;
  overflow-y: auto;
}

.mobile-drawer.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-close-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.18s ease-out, color 0.18s ease-out, border-color 0.18s ease-out;
}

.drawer-close-btn:hover,
.drawer-close-btn:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  outline: 2px solid var(--purple-neon);
  outline-offset: 2px;
}

.drawer-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 14px 0;
}

.drawer-nav-links a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-muted);
}

.drawer-nav-links a:hover,
.drawer-nav-links a:active {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.drawer-auth {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   8. MOBİL ALT DOCK (BOTTOM NAV)
   -------------------------------------------------------------------------- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(56px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-card);
  z-index: 950;
  justify-content: space-around;
  align-items: center;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-dim);
  transition: var(--transition);
  gap: 3px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  user-select: none;
}

.bottom-nav-icon {
  width: 19px;
  height: 19px;
  stroke: var(--text-dim);
  transition: transform 0.15s ease, stroke 0.15s ease;
}

.bottom-nav-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}

.bottom-nav-item:active .bottom-nav-icon {
  transform: scale(0.9);
}

.bottom-nav-item.active {
  color: var(--purple-neon);
}

.bottom-nav-item.active .bottom-nav-icon {
  stroke: var(--purple-neon);
}

.bottom-nav-fab {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  background: var(--purple-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.55);
  margin-top: -18px;
  border: 2px solid var(--bg-card);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.bottom-nav-fab svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
}

.bottom-nav-fab:active {
  transform: scale(0.92);
}

/* --------------------------------------------------------------------------
   9. HERO ALANI
   -------------------------------------------------------------------------- */
.hero-subnav {
  padding: 24px 0 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero-left {
  max-width: 600px;
}

.hero-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #fff;
  margin-bottom: 4px;
}

.hero-desc {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   10. GEZİNTİ YOLU (BREADCRUMB)
   -------------------------------------------------------------------------- */
.breadcrumb-bar {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
}

.breadcrumb-nav a {
  color: var(--text-muted);
}

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

.breadcrumb-sep {
  color: var(--text-subtle);
}

.breadcrumb-nav span:last-child {
  color: var(--purple-neon);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   11. ANA DÜZEN & KENAR ÇUBUĞU
   -------------------------------------------------------------------------- */
.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 36px;
  align-items: start;
}

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

.forum-view {
  animation: viewFadeIn 0.18s ease-out;
}

/* --------------------------------------------------------------------------
   12. ANA SAYFA GÖRÜNÜM ÇUBUĞU & SHADCN SEGMENTED KONTROL
   -------------------------------------------------------------------------- */
.home-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.shadcn-segmented-control {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
}

.shadcn-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 16px;
  min-height: 40px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  background: transparent;
  border: none;
  border-radius: calc(var(--radius-sm) - 2px);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.shadcn-tab-btn svg {
  color: var(--text-muted);
  transition: color 0.15s ease;
}

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

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

.shadcn-tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.shadcn-tab-btn.active svg {
  color: var(--purple-neon);
}

.home-feed-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.home-feed-filter-bar .filter-pill {
  padding: 7px 14px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  cursor: pointer;
  transition: var(--transition);
}

.home-feed-filter-bar .filter-pill:hover {
  color: var(--text-main);
  border-color: var(--border-card);
}

.home-feed-filter-bar .filter-pill.active {
  background: rgba(124, 58, 237, 0.2);
  border-color: var(--border-focus);
  color: var(--purple-neon);
}

/* --------------------------------------------------------------------------
   12.1 KATEGORİ & BÖLÜM LİSTESİ (VIEW: HOME - TAB 1)
   -------------------------------------------------------------------------- */
.categories-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 520px;
}

.category-block {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease;
}

.category-header,
.category-header-btn {
  width: 100%;
  padding: 12px 18px;
  background: var(--bg-card-subtle);
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-family: inherit;
  color: inherit;
  text-align: left;
  transition: background 0.15s ease;
}

.category-header:hover,
.category-header-btn:hover {
  background: var(--bg-card-hover);
}

.category-header:focus-visible,
.category-header-btn:focus-visible {
  outline: 2px solid var(--purple-neon);
  outline-offset: -2px;
}

.category-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

.category-count-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
}

.category-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-desc {
  font-size: 12px;
  color: var(--text-dim);
}

.category-chevron-btn,
.category-chevron-wrap {
  background: transparent;
  border: none;
  padding: 2px;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.category-chevron {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  stroke: var(--text-dim);
}

.category-block.is-collapsed .category-header,
.category-block.is-collapsed .category-header-btn {
  border-bottom: none;
}

.category-block.is-collapsed .category-chevron {
  transform: rotate(-90deg);
}

.category-block.is-collapsed .forums-list {
  display: none;
}

.category-block.skeleton-block {
  min-height: 130px;
  pointer-events: none;
}

.skeleton-header {
  height: 44px;
}

.skeleton-row {
  height: 48px;
  padding: 12px 18px;
}

/* --------------------------------------------------------------------------
   12.2 CANLI KONU AKIŞI (VIEW: HOME - TAB 2)
   -------------------------------------------------------------------------- */
.home-feed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-feed-stream {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feed-topic-card {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  gap: 14px;
  transition: var(--transition);
  position: relative;
}

.feed-topic-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
}

.feed-topic-card.pinned {
  border-left: 3px solid var(--purple-neon);
}

.feed-author-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.feed-author-avatar:hover {
  transform: scale(1.05);
}

.feed-topic-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feed-topic-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  text-decoration: none;
  line-height: 1.4;
}

.feed-topic-title:hover {
  color: var(--purple-neon);
}

.feed-topic-meta {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.feed-author-name {
  font-weight: 600;
  cursor: pointer;
}

.feed-author-name:hover {
  text-decoration: underline;
}

.feed-bullet {
  color: var(--text-muted);
  font-size: 10px;
}

.feed-forum-badge {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 11px;
  text-decoration: none;
  transition: var(--transition);
}

.feed-forum-badge:hover {
  color: #fff;
  border-color: var(--purple-neon);
}

.feed-time {
  font-size: 11.5px;
  color: var(--text-muted);
}

.feed-tags {
  font-size: 11.5px;
  color: var(--purple-neon);
}

.feed-topic-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.feed-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
}

.feed-stat-pill.replies {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.empty-feed-card {
  padding: 48px 24px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.forums-list {
  display: flex;
  flex-direction: column;
}

.forum-row {
  display: grid;
  grid-template-columns: 1fr 130px 220px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
  gap: 16px;
}

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

.forum-row:hover {
  background: var(--bg-card-hover);
}

.forum-row-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.forum-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
}

.forum-row:hover .forum-title {
  color: var(--purple-neon);
}

.forum-description {
  font-size: 12.5px;
  color: var(--text-muted);
}

.forum-stats-col {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.forum-stats-col strong {
  color: var(--text-main);
  font-weight: 600;
}

.forum-lastpost-col {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lastpost-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.lastpost-info {
  min-width: 0;
  flex: 1;
}

.lastpost-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lastpost-title:hover {
  color: var(--purple-neon);
}

.lastpost-meta {
  font-size: 12.5px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 5px;
}

.empty-forum-hint {
  font-size: 12.5px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.empty-forum-dash {
  color: var(--text-dim);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   13. BÖLÜM KONULARI LİSTESİ (VIEW: FORUM)
   -------------------------------------------------------------------------- */
.forum-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.forum-detail-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 3px;
}

.forum-detail-desc {
  font-size: 12.5px;
  color: var(--text-muted);
}

.topics-filter-bar {
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.topics-filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
  white-space: nowrap;
}

.filter-btn:hover {
  color: #fff;
  border-color: var(--border-card);
}

.filter-btn.active {
  background: rgba(168, 85, 247, 0.14);
  border-color: var(--purple-light);
  color: #fff;
}

.topics-list-table {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.topic-row {
  display: grid;
  grid-template-columns: 40px 1fr 110px 150px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 14px;
  transition: var(--transition);
}

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

.topic-row:hover {
  background: var(--bg-card-hover);
}

.topic-row.pinned {
  border-left: 3px solid var(--purple-primary);
}

.topic-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.topic-main-info {
  min-width: 0;
}

.topic-title-link {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 3px;
}

.topic-title-link:hover {
  color: var(--purple-neon);
}

.badge-pinned {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  background: rgba(168, 85, 247, 0.2);
  color: var(--purple-neon);
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 1px 5px;
  border-radius: 3px;
}

.prefix-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}

.prefix-deals {
  background: rgba(249, 115, 22, 0.15);
  color: var(--orange-accent);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.prefix-guide {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan-accent);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.prefix-service {
  background: rgba(168, 85, 247, 0.15);
  color: var(--purple-neon);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.prefix-announcement {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.prefix-default {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green-accent);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.topic-meta-line {
  font-size: 11.5px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.topic-stats-col {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  text-align: center;
}

.topic-stats-col strong {
  display: block;
  font-size: 13.5px;
  color: var(--text-main);
}

.topic-last-activity {
  font-size: 11.5px;
  color: var(--text-dim);
  text-align: right;
  line-height: 1.35;
}

.topic-last-activity strong {
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   14. KONU DETAYI (VIEW: TOPIC)
   -------------------------------------------------------------------------- */
.thread-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.thread-meta-bar {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.thread-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
}

.thread-info-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.dot-sep {
  color: var(--text-subtle);
}

.thread-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.tag-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-muted);
}

/* Mesajlar */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--transition-fast);
}

.post-card:hover {
  border-color: rgba(168, 85, 247, 0.25);
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.post-header-author {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.post-avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.post-avatar-sm:hover {
  transform: scale(1.06);
  border-color: var(--purple-light);
}

.post-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.post-author-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.post-author-name:hover {
  opacity: 0.85;
}

.post-role-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.post-header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.post-date {
  font-size: 11.5px;
  color: var(--text-dim);
}

.post-number {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--purple-neon);
  font-size: 12px;
}

.post-body-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-main);
  word-break: break-word;
}

.post-body-text p {
  margin-bottom: 10px;
}

.post-body-text h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 16px 0 8px;
}

.post-body-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 12px 0 6px;
}

.post-body-text ul {
  padding-left: 18px;
  margin-bottom: 10px;
}

.post-body-text li {
  margin-bottom: 4px;
}

.post-body-text strong {
  color: #fff;
  font-weight: 700;
}

.post-body-text blockquote {
  border-left: 2px solid var(--purple-primary);
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 12px;
  margin: 10px 0;
  color: var(--text-muted);
}

.post-body-text pre {
  background: #090b14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin: 12px 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #38bdf8;
  line-height: 1.5;
}

.post-body-text code.inline-code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12px;
  color: var(--purple-neon);
}

.post-signature {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
  font-size: 11.5px;
  color: var(--text-dim);
}

.post-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.action-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.action-btn.liked {
  border-color: rgba(244, 63, 94, 0.4);
  color: #fb7185;
}

/* --------------------------------------------------------------------------
   15. HIZLI CEVAP
   -------------------------------------------------------------------------- */
.quick-reply-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.quick-reply-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.quick-reply-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.quick-reply-tip {
  font-size: 11px;
  color: var(--text-dim);
}

.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: 6px 10px;
  flex-wrap: wrap;
}

.tool-btn {
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.tool-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 12px;
  font-size: 13.5px;
  color: var(--text-main);
  line-height: 1.6;
  resize: vertical;
}

.form-textarea:focus {
  border-color: var(--border-focus);
}

.quick-reply-footer {
  margin-top: 12px;
}

.reply-user-info {
  font-size: 12px;
  color: var(--text-muted);
}

.reply-user-info a {
  color: var(--purple-neon);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   16. TİCARET & ÜYELER
   -------------------------------------------------------------------------- */
.market-header-card, .view-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.market-header-card h2, .view-header-card h2 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.market-header-card p, .view-header-card p {
  font-size: 12.5px;
  color: var(--text-muted);
}

.trades-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trade-feed-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 90px 1fr 100px;
  align-items: center;
  gap: 16px;
}

.trade-badge-pill {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  text-align: center;
}

.trade-badge-pill.positive {
  background: rgba(16, 185, 129, 0.12);
  color: var(--green-accent);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.trade-badge-pill.negative {
  background: rgba(244, 63, 94, 0.12);
  color: var(--red-accent);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.member-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}

.member-card:hover {
  border-color: var(--border-focus);
}

.member-card-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
}

.member-card-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

/* --------------------------------------------------------------------------
   17. KENAR ÇUBUĞU (SIDEBAR)
   -------------------------------------------------------------------------- */
.forum-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.widget-header h2,
.widget-header h3,
.widget-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

#widgetHotDeals {
  min-height: 140px;
}

#widgetRecentTopics {
  min-height: 230px;
}

#widgetForumStats {
  min-height: 85px;
}

#sidebarUserWidget {
  min-height: 100px;
}

.user-widget-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.user-widget-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 6px;
}

.user-widget-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.user-widget-role {
  font-size: 11px;
  color: var(--purple-neon);
  font-weight: 600;
  margin-bottom: 10px;
}

.user-widget-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 100%;
  margin-bottom: 12px;
}

.user-stat-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 6px;
  display: flex;
  flex-direction: column;
}

.user-stat-box span {
  font-size: 10.5px;
  color: var(--text-dim);
}

.user-stat-box strong {
  font-size: 13px;
  font-family: var(--font-mono);
}

.widget-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.widget-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.widget-item-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.widget-item-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.widget-item-title:hover {
  color: var(--purple-neon);
}

.widget-item-meta {
  font-size: 10.5px;
  color: var(--text-dim);
  margin-top: 2px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stat-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 8px;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 11px;
  color: var(--text-dim);
}

.trade-trust-banner h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.trade-trust-banner p {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   18. MODALLAR (DESKTOP & MOBİL BOTTOM SHEET)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: viewFadeIn 0.18s ease-out;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  position: relative;
  animation: modalSpring 0.22s ease-out;
}

.modal-drag-handle {
  display: none;
}

.modal-box.modal-lg {
  max-width: 620px;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  font-size: 14px;
}

.modal-header {
  margin-bottom: 18px;
}

.modal-header h2 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.modal-header p {
  font-size: 12px;
  color: var(--text-dim);
}

.modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 16px;
}

.modal-tab-btn {
  padding: 7px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  text-align: center;
}

.modal-tab-btn.active {
  background: var(--purple-primary);
  color: #fff;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.form-input, .form-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13.5px;
  color: var(--text-main);
  transition: var(--transition);
}

.form-input:focus, .form-select:focus {
  border-color: var(--border-focus);
}

.form-row {
  display: flex;
  gap: 12px;
}

.flex-1 { flex: 1; }
.w-30 { width: 35%; }

.trade-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.trade-radio-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  gap: 8px;
}

.trade-radio-content {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   19. BİLDİRİMLER (TOAST)
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
  pointer-events: none;
}

.toast {
  background: rgba(14, 18, 30, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  box-shadow: var(--shadow-elevated);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  animation: toastSlideIn 0.2s ease-out forwards;
}

.toast.toast-hiding {
  opacity: 0;
  transform: translateY(8px);
}

.toast-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
}

.toast-badge.info {
  background: rgba(168, 85, 247, 0.15);
  color: var(--purple-neon);
}

.toast-badge.success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green-accent);
}

.toast-badge.error {
  background: rgba(244, 63, 94, 0.15);
  color: var(--red-accent);
}

.toast-text {
  font-size: 12.5px;
  color: #fff;
  flex: 1;
}

.toast-close {
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   20. ALT BİLGİ (FOOTER)
   -------------------------------------------------------------------------- */
.forum-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(8, 10, 16, 0.95);
  padding: 36px 0 20px;
  margin-top: 48px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-desc {
  color: var(--text-dim);
  font-size: 12.5px;
  margin-top: 8px;
  max-width: 320px;
}

.footer-col h3,
.footer-col h4,
.footer-title,
.trade-trust-banner h3,
.trade-trust-banner h4 {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 12.5px;
  color: var(--text-dim);
}

.footer-col a:hover {
  color: var(--purple-neon);
}

.footer-bottom {
  padding-top: 18px;
  font-size: 11.5px;
  color: var(--text-dim);
}

.footer-bottom-links {
  display: flex;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   21. YÜKLEME DURUMU
   -------------------------------------------------------------------------- */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px;
  color: var(--text-dim);
  font-size: 13px;
}

.spinner-ring {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(168, 85, 247, 0.15);
  border-top-color: var(--purple-neon);
  border-radius: 50%;
  animation: spinnerRotate 0.8s linear infinite;
}

/* --------------------------------------------------------------------------
   21. SKELETON LOADERS & SYSTEM BANNERS
   -------------------------------------------------------------------------- */
@keyframes skeletonShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-pulse {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.8s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-line {
  height: 12px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 6px;
}

.skeleton-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skeleton-cat-title {
  height: 16px;
  width: 220px;
  border-radius: 4px;
}

.skeleton-forum-row {
  display: grid;
  grid-template-columns: 1fr 120px 200px;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--border-subtle);
}

.skeleton-forum-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skeleton-topic-row {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.skeleton-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.skeleton-topic-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skeleton-post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.skeleton-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.skeleton-post-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Read-Only Banner for Announcements */
.read-only-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: var(--radius-md);
  color: var(--text-dim);
  margin-top: 20px;
}

.read-only-banner svg {
  color: var(--purple-neon);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.read-only-text strong {
  display: block;
  color: #fff;
  font-size: 14px;
  margin-bottom: 2px;
}

.read-only-text p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}

/* Reply Auth Call-To-Action Card */
.reply-auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  margin-top: 20px;
}

.reply-auth-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.reply-auth-card p {
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 18px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.reply-auth-card .auth-prompt-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* Official System Announcer Styling */
.official-author-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--purple-neon);
  font-weight: 700;
  font-size: 13.5px;
}

.badge-official {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--purple-neon);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-system-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--purple-primary);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.5px;
}

/* --------------------------------------------------------------------------
   21.5 DEDICATED PROFILE VIEW & ACCOUNT SETTINGS
   -------------------------------------------------------------------------- */
.profile-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}

.profile-banner-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  background: var(--bg-card-subtle);
  overflow: hidden;
}

.profile-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.profile-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 10, 15, 0.1) 0%, rgba(9, 10, 15, 0.8) 100%);
}

.profile-banner-edit-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(9, 10, 15, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.profile-banner-edit-btn:hover {
  background: var(--purple-primary);
  border-color: var(--purple-neon);
}

.profile-identity-bar {
  padding: 0 24px 22px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  flex-wrap: wrap;
}

.profile-identity-left {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-top: -46px;
  min-width: 0;
}

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

.profile-avatar-lg {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  background: var(--bg-card-subtle);
}

.profile-online-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green-accent);
  border: 2px solid var(--bg-card);
}

.profile-identity-meta {
  padding-bottom: 4px;
  min-width: 0;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-username {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.profile-rank-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2.5px 8px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border-subtle);
  background: rgba(168, 85, 247, 0.12);
}

.profile-custom-title {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-top: 4px;
  font-weight: 500;
}

.profile-sub-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.profile-identity-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  flex-wrap: wrap;
}

/* Profile Tabs */
.profile-tabs-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border-card);
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.profile-tabs-bar::-webkit-scrollbar {
  display: none;
}

.profile-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-xs) var(--radius-xs) 0 0;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.profile-tab-btn:hover {
  color: #fff;
}

.profile-tab-btn.active {
  color: #fff;
  border-bottom-color: var(--purple-neon);
  background: rgba(168, 85, 247, 0.08);
}

.profile-tab-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Rank System Card */
.profile-rank-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.profile-rank-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-light), var(--purple-neon), var(--purple-hover));
}

.rank-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.rank-badge-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rank-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-neon);
}

.rank-title-group h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.rank-title-group span {
  font-size: 12px;
  color: var(--text-dim);
}

.rank-xp-metric {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-main);
  background: var(--bg-card-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
}

.rank-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: var(--bg-input);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.rank-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple-primary), var(--purple-neon));
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.rank-next-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.rank-perks-box {
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

.rank-perks-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rank-perks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rank-perk-item {
  font-size: 12px;
  color: var(--text-main);
  background: var(--bg-card-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Stats Grid */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.profile-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.profile-stat-box .stat-label {
  font-size: 11.5px;
  color: var(--text-dim);
  display: block;
  margin-bottom: 4px;
}

.profile-stat-box .stat-val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

/* Recent Visitors Section */
.profile-visitors-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-title-row h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.visitors-flex-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.visitor-card-chip {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.visitor-card-chip:hover {
  border-color: var(--purple-light);
  transform: translateY(-2px);
}

.visitor-chip-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.visitor-chip-info {
  display: flex;
  flex-direction: column;
}

.visitor-chip-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
}

.visitor-chip-time {
  font-size: 10.5px;
  color: var(--text-dim);
}

/* Profile Topics Card */
.profile-topics-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.profile-topic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--border-subtle);
  gap: 14px;
}

.profile-topic-row:first-child {
  border-top: none;
}

.profile-topic-left {
  min-width: 0;
  flex: 1;
}

.profile-topic-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-topic-title:hover {
  color: var(--purple-neon);
}

.profile-topic-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
  flex-wrap: wrap;
}

.profile-topic-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

/* Settings Form Card */
.profile-settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px;
}

.settings-section {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.settings-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.settings-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.settings-section-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.banner-preset-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 14px;
}

.banner-preset-item {
  height: 64px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 2px solid var(--border-subtle);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.banner-preset-item:hover, .banner-preset-item.selected {
  border-color: var(--purple-neon);
  transform: scale(1.02);
}

.banner-preset-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-preset-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(9, 10, 15, 0.75);
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  padding: 2px 4px;
}

/* --------------------------------------------------------------------------
   22. MOBİL NATIVE & DUYARLI TASARIM
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .forum-sidebar {
    order: 2;
  }

  .forum-row {
    grid-template-columns: minmax(0, 1fr) 90px minmax(180px, 240px);
    gap: 12px;
    padding: 12px 14px;
  }

  .lastpost-meta {
    flex-wrap: wrap;
    font-size: 11.5px;
    gap: 4px;
    min-width: 0;
  }

  .lastpost-meta span,
  .lastpost-meta strong,
  .lastpost-meta a {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 860px) {
  .forum-row {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 210px);
    gap: 10px;
  }

  .forum-stats-col {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 14px;
  }

  .topbar {
    height: 52px;
  }

  .nav-links {
    display: none;
  }

  .nav-search-wrap {
    display: none;
  }

  .mobile-search-btn {
    display: flex;
  }

  .hamburger-btn {
    display: flex;
  }

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

  .hero-subnav {
    padding: 18px 0;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-title {
    font-size: 19px;
  }

  .hero-desc {
    font-size: 13px;
  }

  .home-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .shadcn-segmented-control {
    width: 100%;
    display: flex;
  }

  .shadcn-tab-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 10px;
  }

  .home-feed-filter-bar {
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .home-feed-filter-bar .filter-pill {
    flex-shrink: 0;
  }

  .category-desc {
    display: none;
  }

  .feed-topic-card {
    padding: 10px 12px;
    gap: 10px;
  }

  .feed-author-avatar {
    width: 32px;
    height: 32px;
  }

  .feed-topic-stats {
    display: none;
  }

  .forum-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 14px;
  }

  .forum-stats-col, .forum-lastpost-col {
    display: none;
  }

  .topic-row {
    grid-template-columns: 32px 1fr;
    padding: 10px 12px;
    gap: 10px;
  }

  .topic-stats-col, .topic-last-activity {
    display: none;
  }

  .post-card {
    padding: 12px 14px;
    gap: 10px;
  }

  .post-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .post-header-meta {
    margin-left: auto;
  }

  .profile-banner-wrap {
    height: 140px;
  }

  .profile-identity-bar {
    padding: 0 16px 18px 16px;
    align-items: flex-start;
  }

  .profile-identity-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: -38px;
    width: 100%;
  }

  .profile-avatar-lg {
    width: 76px;
    height: 76px;
  }

  .profile-identity-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .profile-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-settings-card {
    padding: 16px;
  }

  /* Modallar Mobilde "Bottom Sheet" */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-box {
    border-radius: 20px 20px 0 0;
    max-height: 88vh;
    animation: sheetSlideUp 0.24s ease-out forwards;
    padding: 18px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .modal-drag-handle {
    display: block;
    width: 32px;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto 14px;
  }

  .form-row {
    flex-direction: column;
    gap: 8px;
  }

  .w-30 {
    width: 100%;
  }

  .trade-radio-group {
    grid-template-columns: 1fr;
  }

  .trade-feed-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .toast-container {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    left: 14px;
    right: 14px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .btn, .form-input, .form-select, .modal-tab-btn {
    min-height: 44px;
  }
}

/* --------------------------------------------------------------------------
   EK ACCESSIBILITY, POLİTİKA SAYFALARI & ETİKET GELİŞTİRMELERİ
   -------------------------------------------------------------------------- */

/* Global Erişilebilirlik Odak Çerçevesi */
:focus-visible {
  outline: 2px solid var(--purple-neon);
  outline-offset: 2px;
}

/* Pinned (Sabitlenmiş) Konu Rozeti */
.badge-pinned {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(192, 132, 252, 0.4);
  color: #c084fc;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.3px;
  vertical-align: middle;
}

.prefix-pinned {
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
  border-color: rgba(192, 132, 252, 0.4);
  font-weight: 700;
}

/* Markdown Bağlantı Stili (Link Toolbar Desteği) */
.content-link {
  color: #a855f7;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
  transition: color 0.15s ease;
}

.content-link:hover {
  color: #c084fc;
  text-decoration-color: #c084fc;
}

/* Form Alanı Doğrulama Hataları */
.form-input[aria-invalid="true"],
.form-textarea[aria-invalid="true"],
.form-select[aria-invalid="true"] {
  border-color: var(--red-accent) !important;
  box-shadow: 0 0 0 1px var(--red-accent) !important;
}

.field-error-msg {
  color: #f43f5e;
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
  display: block;
}

/* Gizlilik, Koşullar ve İletişim Belgeleri Stili */
.policy-document-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.policy-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.policy-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.policy-header p {
  color: var(--text-muted);
  font-size: 13.5px;
}

.policy-section {
  margin-bottom: 28px;
}

.policy-section:last-child {
  margin-bottom: 0;
}

.policy-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.policy-section p,
.policy-section li {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.policy-section ul {
  padding-left: 20px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.policy-contact-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 16px;
}

/* Ticaret / İlanlar Köprüsü Bannerı */
.market-nav-banner {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.market-nav-banner-text {
  font-size: 13px;
  color: var(--text-muted);
}

.market-nav-banner-text strong {
  color: #fff;
}

/* --------------------------------------------------------------------------
   23. EDİTÖR SEKMELERİ & TASLAK KAYIT (DRAFTS & PREVIEW)
   -------------------------------------------------------------------------- */
.editor-header-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.editor-tab {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.editor-tab:hover {
  color: #fff;
  border-color: var(--border-card-hover);
}

.editor-tab.active {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--purple-neon);
  color: #fff;
}

.draft-indicator {
  font-size: 11.5px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-left: auto;
}

.discard-draft-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 11.5px;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 4px;
  transition: color var(--transition-fast);
}

.discard-draft-btn:hover {
  color: #ef4444;
}

.markdown-preview-box {
  background: var(--bg-dark);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  min-height: 140px;
  max-height: 320px;
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-main);
  word-break: break-word;
}

.markdown-preview-box p {
  margin-bottom: 10px;
}

.markdown-preview-box p:last-child {
  margin-bottom: 0;
}

.markdown-preview-box pre {
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 10px 0;
}

/* --------------------------------------------------------------------------
   24. MODERASYON & BİLDİRİM ARAYÜZÜ (MODERATION & REPORTS)
   -------------------------------------------------------------------------- */
.report-action-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-size: 12px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-fast);
}

.report-action-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}

.moderation-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid var(--purple-neon);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #fff;
  font-weight: 600;
}

.moderation-reports-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.moderation-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
}

.moderation-card:hover {
  border-color: var(--border-card-hover);
}

.moderation-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.moderation-card-reason {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.moderation-card-meta {
  font-size: 12px;
  color: var(--text-dim);
}

.moderation-card-content {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.moderation-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   25. ERİŞİLEBİLİRLİK: PREFERS-REDUCED-MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

