:root {
  color-scheme: light;
  --color-primary: #1F2A44;
  --color-primary-hover: #172033;
  --color-secondary: #1F2A44;
  --color-background: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-text: #202124;
  --color-muted: #6B7280;
  --color-border: #E5E7EB;
  --color-success: #2FBF71;
  --color-warning: #F59E0B;
  --color-danger: #E5484D;
  --color-highlight: #FFC857;
  --color-highlight-soft: #FFF3D6;
  --bg: var(--color-background);
  --panel: var(--color-surface);
  --panel-2: #FFFFFF;
  --line: var(--color-border);
  --text: var(--color-text);
  --muted: var(--color-muted);
  --accent: var(--color-primary);
  --accent-dark: var(--color-primary-hover);
  --secondary: var(--color-secondary);
  --green: var(--color-success);
  --blue: var(--color-secondary);
  --red: var(--color-danger);
  --shadow: 0 10px 30px rgba(31, 42, 68, .08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 58px;
  display: grid;
  grid-template-columns: 230px minmax(180px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 21px;
  color: var(--secondary);
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
  justify-self: center;
  width: 100%;
  max-width: 720px;
}

.search-icon {
  position: absolute;
  left: 13px;
  color: var(--muted);
  pointer-events: none;
  line-height: 1;
}

.search-form input,
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  outline: none;
}

.search-form input {
  height: 38px;
  padding: 0 58px 0 40px;
}

.search-shortcut {
  position: absolute;
  right: 10px;
  min-width: 36px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.search-form input:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 42, 68, .14);
}

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

.account-menu {
  position: relative;
}

.notification-menu {
  position: relative;
}

.notification-trigger {
  position: relative;
  width: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
}

.notification-count {
  position: absolute;
  top: -7px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.notification-menu::after {
  content: "";
  position: absolute;
  right: 0;
  top: 100%;
  width: 260px;
  height: 10px;
}

.notification-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 45;
  width: min(360px, calc(100vw - 28px));
  display: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(31, 42, 68, .16);
}

.notification-menu:hover .notification-dropdown,
.notification-menu:focus-within .notification-dropdown {
  display: block;
}

.notification-head {
  min-height: 44px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  color: var(--secondary);
}

.notification-head form {
  margin: 0;
}

.notification-head button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.notification-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(229, 231, 235, .74);
  color: var(--text);
}

.notification-item.unread {
  background: var(--color-highlight-soft);
}

.notification-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(31, 42, 68, .1);
  color: var(--accent);
}

.notification-item span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.notification-item strong {
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.2;
}

.notification-item em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.35;
}

.notification-item small {
  color: var(--muted);
  font-size: 11px;
}

.notification-empty,
.notification-settings-link {
  display: block;
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.notification-settings-link {
  color: var(--accent);
}

.account-menu::after {
  content: "";
  position: absolute;
  right: 0;
  top: 100%;
  width: 100%;
  height: 10px;
}

.account-trigger .fa-chevron-down {
  font-size: 11px;
  color: var(--muted);
}

.account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 45;
  width: 174px;
  display: none;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(31, 42, 68, .16);
}

.account-menu:hover .account-dropdown,
.account-menu:focus-within .account-dropdown {
  display: grid;
}

.account-dropdown a {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 750;
}

.account-dropdown a:hover {
  background: var(--color-highlight-soft);
}

.account-dropdown a:last-child {
  color: var(--red);
}

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

.mobile-topbar {
  display: none;
}

.btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--secondary);
  font-weight: 700;
  cursor: pointer;
}

.btn .fa-sharp,
.tab .fa-sharp,
.community-link .fa-sharp,
.filter-link .fa-sharp,
.post-actions .fa-sharp,
.meta .fa-sharp,
.side-title .fa-sharp,
.rail-title .fa-sharp {
  font-size: .95em;
}

.btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.btn.primary:hover { background: var(--accent-dark); }
.btn:hover { border-color: var(--secondary); }

.btn.secondary {
  border-color: rgba(31, 42, 68, .22);
  background: #fff;
  color: var(--secondary);
}

.btn.secondary:hover {
  border-color: var(--accent);
  background: var(--color-highlight-soft);
}

.layout {
  width: min(1280px, calc(100% - 32px));
  margin: 18px auto 40px;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.rail,
.side-panel,
.auth-panel,
.composer,
.post-card,
.detail-post,
.comment,
.notice {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rail,
.side-panel {
  position: sticky;
  top: 76px;
  overflow: hidden;
}

.rail-title,
.side-title {
  padding: 14px 14px 10px;
  font-weight: 800;
}

.rail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.community-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.rail-toggle-icon {
  display: none;
  color: var(--muted);
  transition: transform .16s ease;
}

.community-link,
.filter-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  color: var(--secondary);
  border-top: 1px solid #F0ECE6;
}

.community-link:hover,
.filter-link:hover,
.community-link.active,
.filter-link.active {
  background: var(--color-highlight-soft);
  color: var(--accent-dark);
}

.count {
  color: var(--muted);
  font-size: 12px;
}

.side-panel .filter-link {
  align-items: flex-start;
  justify-content: flex-start;
  padding: 13px 14px;
  line-height: 1.35;
}

.side-panel .filter-link + .filter-link {
  margin-top: 4px;
}

.side-panel .filter-link span {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
}

.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.feed-title h1,
.feed-section-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  color: var(--secondary);
  font-weight: 800;
}

.feed-title p {
  margin: 5px 0 0;
  color: var(--muted);
}

.answers-section {
  margin-top: 28px;
}

.feed-actions {
  display: grid;
  gap: 8px;
  min-width: 190px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.tab {
  appearance: none;
  cursor: pointer;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--secondary);
  font: inherit;
  font-weight: 700;
  font-size: 13px;
}

.tab.active,
.tab:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--color-highlight-soft);
}

.post-card {
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.post-card:hover {
  border-color: rgba(31, 42, 68, .34);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.featured-questions {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid rgba(31, 42, 68, .12);
  border-radius: 8px;
  background: #fffaf0;
}

.featured-questions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--secondary);
}

.featured-questions-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
}

.featured-questions-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.featured-questions-list .post-card:last-child {
  margin-bottom: 0;
}

.featured-empty {
  padding: 12px 14px;
  border: 1px dashed rgba(31, 42, 68, .18);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 18px 0 4px;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 800;
}

.pagination-link:hover,
.pagination-link.active {
  border-color: var(--accent);
  background: var(--color-highlight-soft);
  color: var(--accent-dark);
}

.post-body {
  padding: 13px 15px 14px;
  min-width: 0;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.user-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--secondary);
  font-weight: 800;
}

.user-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.type-pill {
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 800;
  border: 1px solid var(--line);
  color: var(--secondary);
  background: #fff;
}

.type-pill.deneyimledim {
  border-color: #CFEBDD;
  color: #227B57;
  background: #EAF7F1;
}

.type-pill.soruyorum {
  border-color: #D8E2F5;
  color: #31517D;
  background: #EEF3FF;
}

.post-title {
  display: block;
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.28;
  font-weight: 800;
  color: var(--secondary);
}

.post-title a {
  color: inherit;
}

.post-title a:hover { color: var(--accent-dark); }

.excerpt {
  margin: 8px 0 0;
  color: var(--text);
  line-height: 1.55;
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.post-footer-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
}

.post-category-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.post-date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

.side-panel {
  padding-bottom: 12px;
}

.sidebar-promo {
  min-height: 250px;
  display: grid;
  align-content: end;
  gap: 10px;
  margin: 12px;
  padding: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(31, 42, 68, .16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 76% 16%, rgba(255, 200, 87, .88) 0 18%, transparent 19%),
    linear-gradient(145deg, #fff3d6 0%, #ffffff 48%, #e8eef7 100%);
  color: var(--secondary);
}

.sidebar-promo::before {
  content: "";
  position: absolute;
  right: -42px;
  top: -34px;
  width: 150px;
  height: 150px;
  border: 20px solid rgba(31, 42, 68, .08);
  border-radius: 50%;
}

.sidebar-promo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.sidebar-promo strong,
.sidebar-promo span,
.sidebar-promo em {
  position: relative;
  z-index: 1;
}

.sidebar-promo strong {
  max-width: 220px;
  font-size: 22px;
  line-height: 1.08;
  font-weight: 900;
}

.sidebar-promo span {
  max-width: 220px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.sidebar-promo .sidebar-promo-mark {
  color: #fff;
}

.sidebar-promo em {
  width: max-content;
  margin-top: 4px;
  padding: 8px 11px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-style: normal;
  font-size: 13px;
  font-weight: 850;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 10px 14px;
  border-top: 1px solid #F0ECE6;
  gap: 12px;
}

.stat-row strong { font-size: 18px; }
.stat-row span { color: var(--muted); font-size: 13px; }

.mini-copy {
  padding: 12px 14px;
  color: var(--muted);
  line-height: 1.5;
}

.admin-user-message {
  display: grid;
  gap: 4px;
  margin: 0 14px 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--color-highlight-soft);
}

.admin-user-message strong {
  color: var(--secondary);
  font-size: 13px;
}

.admin-user-message span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.side-divider {
  height: 1px;
  margin: 12px 14px 10px;
  background: var(--line);
}

.side-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 2px;
}

.side-footer-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.side-footer-links a:hover {
  color: var(--accent);
}

.site-footer-line {
  width: min(1280px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr);
  gap: 14px;
  align-items: center;
  margin: 8px auto 28px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-align: center;
}

.site-footer-line::before,
.site-footer-line::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.static-page {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.static-page-title {
  margin: 12px 0 14px;
  color: var(--secondary);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
}

.static-page p {
  max-width: 720px;
  margin: 0 0 14px;
  color: var(--text);
  line-height: 1.7;
}

.blog-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.blog-list-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.blog-list-item h2 {
  margin: 0 0 8px;
  color: var(--secondary);
  font-size: 20px;
  line-height: 1.25;
}

.blog-list-item p {
  margin-bottom: 10px;
}

.admin-shell {
  width: min(1440px, calc(100% - 28px));
  margin: 18px auto 48px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
}

.admin-sidebar,
.admin-content,
.admin-panel,
.admin-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
  padding: 14px;
}

.admin-brand {
  margin-bottom: 16px;
}

.admin-nav {
  display: grid;
  gap: 6px;
}

.admin-nav a,
.admin-logout {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--secondary);
  font-weight: 800;
}

.admin-nav a.active,
.admin-nav a:hover,
.admin-logout:hover {
  background: var(--color-highlight-soft);
  color: var(--accent);
}

.admin-logout {
  margin-top: 14px;
  color: var(--muted);
}

.admin-content {
  padding: 18px;
  min-width: 0;
}

.admin-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}

.admin-topline h1 {
  margin: 0;
  color: var(--secondary);
  font-size: 28px;
}

.admin-topline p {
  margin: 6px 0 0;
  color: var(--muted);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.admin-stat {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.admin-stat span {
  color: var(--accent);
}

.admin-stat strong {
  color: var(--secondary);
  font-size: 30px;
}

.admin-stat small {
  color: var(--muted);
  font-weight: 800;
}

.admin-panel {
  padding: 16px;
  margin-bottom: 14px;
}

.admin-form {
  display: grid;
  gap: 10px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.admin-table th,
.admin-table td {
  vertical-align: top;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.admin-table th {
  color: var(--secondary);
  font-size: 13px;
}

.admin-inline-form,
.admin-action-row,
.admin-actions-cell {
  display: grid;
  gap: 8px;
}

.admin-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 8px;
  padding: 5px 8px;
  border: 1px solid #E8D49A;
  border-radius: 8px;
  background: #FFF4C9;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 800;
}

.admin-featured-action {
  border-color: #E8D49A;
  background: #FFF8DF;
}

.admin-inline-form input,
.admin-inline-form textarea,
.admin-action-row input,
.admin-table select,
.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  font: inherit;
}

.admin-inline-form textarea,
.admin-form textarea {
  min-height: 86px;
}

.admin-list-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.admin-list-row:first-of-type {
  border-top: 0;
}

.admin-list-row strong,
.admin-list-row small {
  display: block;
}

.admin-list-row small {
  margin-top: 4px;
  color: var(--muted);
}

.btn.danger {
  color: var(--red);
}

.auth-wrap {
  width: min(460px, calc(100% - 32px));
  margin: 34px auto;
}

.not-found-wrap {
  width: min(880px, calc(100% - 32px));
  margin: 42px auto 56px;
}

.not-found-panel {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.not-found-code {
  position: absolute;
  right: 28px;
  top: 10px;
  z-index: 0;
  color: rgba(31, 42, 68, .05);
  font-size: clamp(120px, 20vw, 220px);
  font-weight: 900;
  line-height: .85;
  pointer-events: none;
}

.not-found-icon {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 24px;
}

.not-found-title,
.not-found-panel p,
.not-found-search,
.not-found-actions,
.not-found-links {
  position: relative;
  z-index: 1;
}

.not-found-title {
  max-width: 560px;
  margin: 0;
  color: var(--secondary);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  font-weight: 800;
}

.not-found-panel p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.not-found-search {
  display: grid;
  gap: 8px;
  max-width: 640px;
}

.not-found-search label {
  color: var(--secondary);
  font-size: 13px;
  font-weight: 800;
}

.not-found-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.not-found-actions,
.not-found-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.not-found-links {
  padding-top: 4px;
}

.not-found-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 750;
}

.not-found-links a:hover {
  border-color: var(--accent);
  background: var(--color-highlight-soft);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.auth-modal:target {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 42, 68, .46);
  backdrop-filter: blur(5px);
}

.modal-panel {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100svh - 36px);
  overflow: auto;
  box-shadow: 0 24px 70px rgba(31, 42, 68, .24);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--secondary);
  background: #fff;
}

.modal-close:hover {
  color: var(--accent-dark);
  border-color: var(--accent);
}

.modal-switch {
  color: var(--accent-dark);
  font-weight: 800;
}

.auth-panel,
.composer,
.detail-post,
.notice {
  padding: 18px;
}

.panel-title,
.detail-post h1,
.detail-title {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 800;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
}

.field label {
  color: var(--secondary);
  font-weight: 800;
  font-size: 13px;
}

.field-label {
  color: var(--secondary);
  font-weight: 800;
  font-size: 13px;
}

.field input,
.field select {
  min-height: 42px;
  padding: 0 12px;
}

.field textarea {
  min-height: 132px;
  padding: 12px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.55;
}

.composer .field textarea,
.composer .field textarea::placeholder {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.type-radio-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.type-radio {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--secondary);
  cursor: pointer;
}

.type-radio input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.type-radio span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 850;
}

.type-radio:has(input:checked) {
  border-color: var(--accent);
  background: var(--color-highlight-soft);
}

.type-radio.deneyimledim:has(input:checked) {
  border-color: var(--color-type-experience-border);
  background: var(--color-type-experience-bg);
  color: var(--color-type-experience-text);
}

.type-radio.soruyorum:has(input:checked) {
  border-color: var(--color-type-question-border);
  background: var(--color-type-question-bg);
  color: var(--color-type-question-text);
}

.help {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.error {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #FFF1F1;
  color: var(--red);
  font-weight: 700;
}

.success {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ECFDF3;
  color: var(--green);
  font-weight: 700;
}

.toast-notice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  min-width: 250px;
  max-width: min(360px, calc(100vw - 28px));
  display: block;
  padding: 16px 46px 16px 16px;
  border: 1px solid rgba(31, 42, 68, .16);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #fff;
  color: var(--secondary);
  box-shadow: 0 18px 42px rgba(31, 42, 68, .18);
  animation: toast-in .22s ease-out;
}

.toast-notice.error {
  border-left-color: var(--red);
}

.toast-notice strong {
  font-size: 14px;
  font-weight: 900;
}

.toast-notice button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.toast-notice button:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.settings-page {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 42px;
}

.settings-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px;
}

.settings-hero h1 {
  margin: 5px 0 6px;
  color: var(--secondary);
  font-size: 30px;
  line-height: 1.12;
}

.settings-hero p {
  margin: 0;
  color: var(--muted);
}

.settings-score {
  min-width: 132px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  background: var(--color-highlight-soft);
}

.settings-score strong {
  display: block;
  color: var(--secondary);
  font-size: 26px;
  line-height: 1;
}

.settings-score span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.settings-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.settings-sidebar {
  position: sticky;
  top: 88px;
  padding: 12px;
}

.settings-sidebar nav {
  display: grid;
  gap: 4px;
}

.settings-sidebar a {
  min-height: 38px;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 850;
}

.settings-sidebar a:hover {
  background: var(--color-highlight-soft);
}

.completion-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.completion-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--secondary);
  font-size: 13px;
}

.completion-top span,
.completion-box small {
  color: var(--muted);
}

.progress {
  height: 8px;
  overflow: hidden;
  margin: 9px 0 8px;
  border-radius: 999px;
  background: var(--line);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.settings-form {
  display: grid;
  gap: 14px;
}

.settings-section {
  padding: 18px;
  scroll-margin-top: 88px;
}

.settings-section-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.settings-section-head > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
}

.settings-section h2 {
  margin: 0;
  color: var(--secondary);
  font-size: 20px;
  line-height: 1.2;
}

.settings-section h3 {
  margin: 16px 0 10px;
  color: var(--secondary);
  font-size: 15px;
}

.settings-section p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.check-card {
  min-height: 44px;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--secondary);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.check-card.wide {
  margin-bottom: 12px;
}

.check-card input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.check-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--color-highlight-soft);
}

.avatar-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.avatar-palette label {
  cursor: pointer;
}

.avatar-palette input {
  position: absolute;
  opacity: 0;
}

.avatar-palette span {
  width: 34px;
  height: 34px;
  display: block;
  border: 3px solid #fff;
  border-radius: 50%;
  outline: 1px solid var(--line);
  background: var(--swatch);
}

.avatar-palette input:checked + span {
  outline: 3px solid var(--accent);
}

.score-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.score-row div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--color-highlight-soft);
}

.score-row strong {
  display: block;
  color: var(--secondary);
  font-size: 18px;
  line-height: 1.15;
}

.score-row span,
.settings-muted-actions span,
.settings-muted-actions a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.settings-muted-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.settings-muted-actions span,
.settings-muted-actions a {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.settings-muted-actions a.danger-link {
  color: var(--red);
}

.settings-muted-actions a.danger-link:hover {
  border-color: var(--red);
  background: #fff5f5;
}

.account-delete-modal {
  display: grid;
  gap: 14px;
}

.account-delete-modal form {
  display: grid;
  gap: 12px;
}

.settings-actions {
  position: sticky;
  bottom: 12px;
  z-index: 4;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px;
  box-shadow: 0 16px 40px rgba(31, 42, 68, .12);
}

.avatar {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.detail-post {
  margin-bottom: 14px;
}

.detail-post h1,
.detail-title {
  font-size: 28px;
  line-height: 1.2;
}

.detail-content {
  margin-top: 14px;
  line-height: 1.72;
  color: var(--text);
  white-space: pre-line;
}

.detail-actions {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.profile-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
  margin-bottom: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.profile-mobile-actions {
  display: none;
}

.profile-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.profile-name {
  margin: 0;
  color: var(--secondary);
  font-size: clamp(26px, 3.3vw, 34px);
  line-height: 1.05;
  font-weight: 900;
}

.profile-badge {
  width: max-content;
  margin-top: 8px;
  padding: 5px 10px;
  border: 1px solid rgba(31, 42, 68, .18);
  border-radius: 8px;
  background: var(--color-highlight-soft);
  color: var(--secondary);
  font-size: 13px;
  font-weight: 800;
}

.profile-main p {
  max-width: 680px;
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}

.profile-stats,
.profile-meta,
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}

.profile-stats {
  color: var(--muted);
  font-size: 14px;
}

.profile-stats strong {
  color: var(--secondary);
  font-size: 16px;
}

.profile-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.profile-actions {
  padding-top: 2px;
}

.follow-form {
  margin: 0;
}

.follow-form .btn {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.profile-avatar {
  width: clamp(86px, 10vw, 118px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 4px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: clamp(42px, 5.5vw, 62px);
}

.profile-feed {
  min-width: 0;
}

.profile-tabs {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.comment {
  padding: 14px;
  margin-bottom: 10px;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.agree-button {
  border: 1px solid rgba(31, 42, 68, .18);
  border-radius: 999px;
  background: #fff;
  color: var(--secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
  cursor: pointer;
}

.agree-button:hover,
.agree-button.active {
  border-color: var(--color-type-experience-border);
  background: var(--color-type-experience-bg);
  color: var(--color-type-experience-text);
}

.agree-button:disabled {
  cursor: default;
  opacity: .9;
}

.comment-footer-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.comment-agreement-count,
.comment-date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

.comment-agreement-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
}

.agree-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(31, 42, 68, .2);
  border-radius: 8px;
  background: #fff;
  color: var(--secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.agree-button:hover {
  border-color: var(--accent);
  background: var(--color-highlight-soft);
}

.agree-button.active,
.agree-button.active:hover {
  border-color: var(--color-type-experience-border);
  background: var(--color-type-experience-bg);
  color: var(--color-type-experience-text);
}

.agree-button.is-confirmed {
  animation: agree-confirm .48s ease-out;
}

.agree-button.is-confirmed i {
  animation: agree-check-pop .42s ease-out;
}

.comment-agreement-count span.count-bump {
  display: inline-block;
  animation: count-bump .42s ease-out;
}

@keyframes agree-confirm {
  0% {
    transform: scale(.98);
  }
  58% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes agree-check-pop {
  0% {
    opacity: 0;
    transform: scale(.45) rotate(-18deg);
  }
  70% {
    opacity: 1;
    transform: scale(1.18) rotate(0);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes count-bump {
  0% {
    color: var(--color-type-experience-text);
    transform: translateY(0) scale(1);
  }
  45% {
    color: var(--color-type-experience-text);
    transform: translateY(-2px) scale(1.14);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

@media (max-width: 980px) {
  .topbar {
    height: auto;
    grid-template-columns: 1fr;
    padding: 12px 16px;
  }

  .top-actions { justify-content: flex-start; flex-wrap: wrap; }

  .layout {
    width: min(760px, calc(100% - 24px));
    grid-template-columns: 1fr;
  }
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: static;
  }
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-shell {
    grid-template-columns: 1fr;
  }

  .settings-sidebar {
    position: static;
  }

  .settings-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rail,
  .side-panel { position: static; }
}

@media (max-width: 760px) {
  :root {
    --mobile-nav-height: 68px;
    --mobile-nav-reserve: 78px;
  }

  body {
    padding-bottom: var(--mobile-nav-reserve);
    overscroll-behavior-y: none;
  }

  .settings-page {
    width: min(100% - 22px, 760px);
    margin-top: 14px;
    padding-bottom: 94px;
  }

  .settings-actions {
    bottom: 92px;
  }

  .topbar {
    display: none;
  }

  .mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    gap: 12px;
    padding: 10px 12px 8px;
    border-top: 6px solid var(--accent);
    border-bottom: 1px solid rgba(31, 42, 68, .24);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 8px 24px rgba(31, 42, 68, .07);
    backdrop-filter: blur(16px);
  }

  .mobile-topbar-main {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
  }

  .mobile-brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-weight: 900;
    font-size: 22px;
    box-shadow: 0 8px 18px rgba(31, 42, 68, .16);
  }

  .mobile-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    min-width: 0;
    border: 2px solid var(--accent);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
  }

  .mobile-search-form input {
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border: 0;
    outline: 0;
    color: var(--text);
    font: inherit;
    font-size: 15px;
  }

  .mobile-search-form button {
    width: 48px;
    border: 0;
    border-left: 1px solid rgba(31, 42, 68, .16);
    background: var(--accent);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
  }

  .mobile-menu-links {
    display: flex;
    gap: 22px;
    align-items: center;
    overflow-x: auto;
    padding: 0 2px 2px;
    color: var(--secondary);
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .mobile-menu-links::-webkit-scrollbar {
    display: none;
  }

  .mobile-menu-links a {
    flex: 0 0 auto;
  }

  .mobile-menu-links a:hover,
  .mobile-menu-links a.active {
    color: var(--accent-dark);
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 50;
    width: min(100% - 32px, 440px);
    height: 68px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    justify-items: center;
    padding: 0 12px;
    border: 1px solid rgba(229, 231, 235, .82);
    border-radius: 28px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 14px 32px rgba(31, 42, 68, .14);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
  }

  .mobile-nav-item {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: #4A4F58;
    font-size: 20px;
    line-height: 1;
    transition: background .16s ease, color .16s ease, transform .16s ease;
  }

  .mobile-nav-item.active,
  .mobile-nav-item:hover {
    background: rgba(31, 42, 68, .13);
    color: var(--accent);
  }

  .mobile-nav-item:active {
    transform: scale(.96);
  }

  .layout {
    margin-top: 12px;
    margin-bottom: 0;
  }

  .feed-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .feed-actions {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feed-actions .btn {
    width: 100%;
    min-width: 0;
    padding: 0 10px;
    white-space: nowrap;
  }

  .post-date {
    margin-left: auto;
    text-align: right;
  }

  .rail-title {
    min-height: 52px;
    padding: 0 14px;
    cursor: pointer;
    user-select: none;
  }

  .rail-toggle-icon {
    display: inline-flex;
  }

  .rail .community-link {
    display: none;
  }

  .community-toggle:checked ~ .community-link {
    display: flex;
  }

  .community-toggle:checked + .rail-title .rail-toggle-icon {
    transform: rotate(180deg);
  }

  .profile-mobile-actions {
    position: absolute;
    top: 18px;
    right: 14px;
    z-index: 2;
    display: grid;
    gap: 8px;
    width: 156px;
  }

  .profile-mobile-actions .btn {
    min-height: 34px;
    width: 100%;
    justify-content: flex-start;
    padding: 0 10px;
    font-size: 13px;
    background: #fff;
  }
}

@media (max-width: 560px) {
  body { font-size: 14px; }
  .site-footer-line {
    margin-bottom: 0;
    grid-template-columns: minmax(18px, 1fr) auto minmax(18px, 1fr);
    gap: 10px;
    font-size: 11px;
  }
  .post-body { padding: 12px; }
  .post-title { font-size: 16px; }
  .type-radio-group {
    grid-template-columns: 1fr;
  }
  .type-radio {
    min-width: 0;
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
  }
  .type-radio span {
    min-width: 0;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
  }
  .composer .field label,
  .composer .field-label {
    font-size: 15px;
  }
  .composer .field input,
  .composer .field select {
    min-height: 54px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 16px;
  }
  .composer .field select {
    line-height: 54px;
    background-position: right 14px center;
  }
  .settings-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .settings-hero h1 {
    font-size: 26px;
  }
  .settings-score {
    width: 100%;
  }
  .settings-sidebar nav,
  .settings-grid,
  .choice-grid,
  .choice-grid.compact,
  .score-row {
    grid-template-columns: 1fr;
  }
  .settings-section {
    padding: 14px;
  }
  .settings-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .detail-post h1,
  .detail-title { font-size: 22px; }
  .profile-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 14px;
  }
  .profile-avatar {
    grid-row: 1;
    width: 78px;
    font-size: 38px;
  }
  .profile-name { font-size: 26px; }
  .profile-mobile-actions {
    top: 14px;
    right: 12px;
    width: 142px;
  }
  .profile-stats,
  .profile-meta {
    gap: 8px 12px;
  }
  .admin-topline,
  .admin-list-row {
    flex-direction: column;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .not-found-wrap { margin: 24px auto 42px; }
  .not-found-panel {
    min-height: auto;
    padding: 28px 18px;
  }
  .not-found-search-row { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .feed-actions .btn {
    width: 100%;
    font-size: 13px;
    gap: 6px;
    padding: 0 8px;
  }
}
