:root {
  --bg: #eef3f1;
  --bg-elev: #f7faf8;
  --ink: #10231c;
  --muted: #5a6f66;
  --line: rgba(16, 35, 28, 0.1);
  --brand: #0b6e4f;
  --brand-2: #148f6a;
  --accent: #c45c26;
  --danger: #b42318;
  --ok: #0f7a4a;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(16, 35, 28, 0.08);
  --font: "Manrope", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
}
.container {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(20, 143, 106, 0.18), transparent 60%),
    radial-gradient(700px 380px at 100% 0%, rgba(196, 92, 38, 0.12), transparent 55%),
    linear-gradient(180deg, #f4f8f6 0%, #e8efeb 45%, #eef3f1 100%);
  background-attachment: fixed;
}
.bg-mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(16, 35, 28, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 35, 28, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(247, 250, 248, 0.86);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 55%, #1aa87a 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.25);
}
.brand-text {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-text span { color: var(--brand); }

.nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.nav a { color: var(--ink); font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--brand); }
.nav-cta { color: var(--brand) !important; }
.nav-user { display: inline-flex; align-items: center; gap: 0.4rem; }
.nav-name { font-weight: 600; font-size: 0.9rem; color: inherit; text-decoration: none; }
.nav-name:hover { color: var(--brand); text-decoration: none; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.site-main { padding: 1.75rem 0 3.5rem; }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.5rem;
  background: rgba(255,255,255,0.45);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-note { margin: 0; align-self: end; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(11, 110, 79, 0.25);
}
.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink) !important;
}
.btn-danger {
  background: #fff;
  border-color: rgba(180, 35, 24, 0.3);
  color: var(--danger) !important;
}
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.85rem; }
.btn-block { width: 100%; }
.inline-form { display: inline; margin: 0; }

.alert {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-weight: 600;
}
.alert-success { background: rgba(15, 122, 74, 0.12); color: var(--ok); }
.alert-error { background: rgba(180, 35, 24, 0.1); color: var(--danger); }

.hero {
  margin-bottom: 1.25rem;
  animation: rise 0.55s ease both;
}
.eyebrow {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}
.hero-brand {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero-lead {
  margin: 0.65rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.calculator {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.25rem 1.35rem 1.4rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  animation: rise 0.65s ease 0.08s both;
}
.calc-head h2 { margin: 0 0 0.25rem; font-size: 1.25rem; }
.calc-head p { margin: 0 0 1rem; color: var(--muted); }
.calc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 0.85rem;
  align-items: end;
}
.calc-grid label, .stack-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.calc-grid input, .stack-form input, .stack-form select, .stack-form textarea,
.inline-admin-form input, .admin-table select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  background: #fff;
}
.calc-grid input:focus, .stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus {
  outline: 2px solid rgba(11, 110, 79, 0.25);
  border-color: var(--brand);
}
.calc-result {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}
.calc-result .label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.calc-result strong {
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.section-head h2 { margin: 0; font-size: 1.35rem; }
.section-head p { margin: 0.25rem 0 0; color: var(--muted); }

.category-list, .discussion-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  animation: rise 0.7s ease 0.12s both;
}
.category-row, .discussion-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.95rem 1.05rem;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.category-row:hover, .discussion-row:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 110, 79, 0.28);
  box-shadow: 0 10px 28px rgba(16, 35, 28, 0.07);
}
.cat-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cat, var(--brand));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cat, var(--brand)) 18%, transparent);
}
.cat-body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.cat-body strong { font-size: 1.02rem; }
.cat-body span, .disc-sub, .muted { color: var(--muted); font-size: 0.9rem; }
.cat-meta { text-align: right; color: var(--muted); font-size: 0.85rem; }
.cat-meta em { display: block; font-style: normal; font-weight: 800; color: var(--ink); font-size: 1.15rem; }

.discussion-row { grid-template-columns: auto 1fr auto; }
.discussion-row.is-pinned { background: linear-gradient(90deg, rgba(196, 92, 38, 0.06), rgba(255,255,255,0.78)); }
.avatar {
  --av: var(--brand);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--av);
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
}
.avatar.sm { width: 28px; height: 28px; font-size: 0.75rem; }
.avatar.lg { width: 48px; height: 48px; font-size: 1.1rem; }
.disc-main { min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.disc-title { font-weight: 700; display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.disc-stats { text-align: right; font-size: 0.85rem; display: flex; flex-direction: column; gap: 0.15rem; }
.cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cat, var(--brand));
}
.cat-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cat, var(--brand));
}
.chip, .rate-pill, .role-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(16, 35, 28, 0.06);
}
.chip-pin { background: rgba(196, 92, 38, 0.15); color: var(--accent); }
.chip-lock { background: rgba(16, 35, 28, 0.1); }
.rate-pill { background: rgba(11, 110, 79, 0.12); color: var(--brand); }
.badge-admin { background: rgba(180, 35, 24, 0.12); color: var(--danger); }
.badge-mod { background: rgba(196, 92, 38, 0.15); color: var(--accent); }
.badge-member { background: rgba(11, 110, 79, 0.12); color: var(--brand); }
.badge-visitor { background: rgba(16, 35, 28, 0.08); color: var(--muted); }

.forum-section { margin-bottom: 2.25rem; }
.recent-section { animation: rise 0.75s ease 0.16s both; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--muted); font-weight: 600; }
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  padding-left: 0.85rem;
  border-left: 4px solid var(--cat, var(--brand));
}
.page-head h1 { margin: 0.15rem 0; font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.1rem); }
.page-head p { margin: 0.25rem 0 0; color: var(--muted); max-width: 40rem; }

.empty-state, .auth-card, .form-card, .reply-box, .admin-section {
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}
.empty-state { text-align: center; }
.auth-card, .form-card { max-width: 480px; margin: 0.5rem auto 0; }
.auth-card h1, .form-card h1 { margin-top: 0; font-family: var(--display); }
.stack-form { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 1rem; }
.auth-switch { margin: 1rem 0 0; color: var(--muted); font-size: 0.92rem; }

.thread-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.thread-head h1 {
  margin: 0.45rem 0 0.35rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}
.thread-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.mod-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.post-list { display: flex; flex-direction: column; gap: 0.75rem; }
.post {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.post.is-hidden { opacity: 0.55; }
.post-author {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
.post-author strong { font-size: 0.95rem; }
.post-body time { display: block; margin-bottom: 0.55rem; font-size: 0.82rem; }
.prose {
  word-break: break-word;
  line-height: 1.65;
}
.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }
.prose p { margin: 0 0 0.75rem; }
.prose ul, .prose ol { margin: 0 0 0.75rem; padding-left: 1.35rem; }
.prose li { margin: 0.2rem 0; }
.prose a { color: var(--brand); font-weight: 600; }
.prose blockquote {
  margin: 0.75rem 0;
  padding: 0.55rem 0.85rem;
  border-left: 3px solid var(--brand);
  background: rgba(11, 110, 79, 0.06);
  color: var(--muted);
}
.prose pre, .prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}
.prose pre {
  overflow-x: auto;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: rgba(16, 35, 28, 0.06);
}
.prose h2, .prose h3 {
  margin: 1rem 0 0.5rem;
  line-height: 1.3;
  font-family: var(--display);
}
.prose h2 { font-size: 1.25rem; }
.prose h3 { font-size: 1.1rem; }

.rich-editor {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.rich-editor .ql-toolbar.ql-snow {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #f7faf8;
  font-family: var(--font);
}
.rich-editor .ql-container.ql-snow {
  border: 0;
  font-family: var(--font);
  font-size: 0.98rem;
}
.rich-editor .ql-editor {
  min-height: 160px;
  line-height: 1.6;
}
.rich-editor .ql-editor.ql-blank::before {
  color: var(--muted);
  font-style: normal;
}
.rich-editor .ql-snow .ql-stroke {
  stroke: #3d5248;
}
.rich-editor .ql-snow .ql-fill {
  fill: #3d5248;
}
.rich-editor .ql-snow.ql-toolbar button:hover,
.rich-editor .ql-snow .ql-toolbar button.ql-active {
  color: var(--brand);
}
.reply-box { margin-top: 1.25rem; }
.reply-box h2 { margin: 0 0 0.75rem; font-size: 1.1rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.stat {
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.stat em {
  display: block;
  font-style: normal;
  font-size: 1.6rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.stat span { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.admin-section { margin-bottom: 1.25rem; }
.admin-section h2 { margin-top: 0; font-size: 1.15rem; }
.inline-admin-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.inline-admin-form input[type="text"] { flex: 1; min-width: 140px; }
.admin-cats { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.admin-cats li { display: flex; align-items: center; gap: 0.5rem; }
.table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.admin-table th, .admin-table td {
  text-align: left;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.page-404 h1 {
  font-family: var(--display);
  font-size: 3rem;
  margin: 0 0 0.5rem;
}
.profile-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.profile-head h1 { margin: 0; }
.profile-bio {
  margin: 0.65rem 0 0;
  max-width: 36rem;
  color: var(--ink);
  font-size: 0.95rem;
}
.form-card-wide { max-width: 560px; }
.form-sep {
  border: 0;
  border-top: 1px dashed var(--line);
  margin: 0.25rem 0;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.post.is-deleted {
  opacity: 0.85;
  background: rgba(16, 35, 28, 0.04);
}
.deleted-log {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(16, 35, 28, 0.06);
  border: 1px dashed var(--line);
  color: var(--muted);
  font-style: italic;
  font-weight: 600;
}
.post-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.post-meta { margin-bottom: 0.45rem; }

/* Ana sayfa: banka kartı + içindeki alt kategoriler */
.category-card {
  --card-pad: 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.category-card:hover {
  border-color: color-mix(in srgb, var(--cat, var(--brand)) 30%, var(--line));
  box-shadow: 0 10px 28px rgba(16, 35, 28, 0.07);
}
.category-card__parent,
.category-card__child {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  text-decoration: none !important;
  color: inherit;
  transition: background 0.15s ease;
}
.category-card__parent {
  position: relative;
  padding: 1rem var(--card-pad) 1rem calc(var(--card-pad) + 0.15rem);
}
.category-card__parent::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--cat, var(--brand));
}
.category-card__parent:hover,
.category-card__child:hover {
  background: color-mix(in srgb, var(--cat, var(--brand)) 6%, transparent);
}
.category-card.has-subs .category-card__parent {
  border-bottom: 1px solid var(--line);
}
.category-card__children {
  background: color-mix(in srgb, var(--cat, var(--brand)) 5%, #f3f6f4);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--cat, var(--brand)) 12%, transparent);
}
.category-card__child {
  position: relative;
  padding: 0.82rem var(--card-pad) 0.82rem calc(var(--card-pad) + 1.85rem);
  border-top: 1px solid color-mix(in srgb, var(--cat, var(--brand)) 10%, var(--line));
}
.category-card__child:first-child {
  border-top-color: transparent;
}
.category-card__child::before {
  content: "";
  position: absolute;
  left: calc(var(--card-pad) + 0.55rem);
  top: 0;
  bottom: 0;
  width: 2px;
  background: color-mix(in srgb, var(--cat, var(--brand)) 26%, transparent);
}
.category-card__child:first-child::before {
  top: 22%;
}
.category-card__child:last-child::before {
  height: 50%;
  bottom: auto;
}
.category-card__child::after {
  content: "";
  position: absolute;
  left: calc(var(--card-pad) + 0.55rem);
  top: 50%;
  width: 0.7rem;
  height: 2px;
  background: color-mix(in srgb, var(--cat, var(--brand)) 26%, transparent);
  transform: translateY(-50%);
}
.cat-dot--sm {
  width: 8px;
  height: 8px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat, var(--brand)) 15%, transparent);
}
.category-card__child .cat-body strong {
  font-size: 0.95rem;
}
.category-card__child .cat-body span {
  font-size: 0.82rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.category-card__child .cat-meta {
  font-size: 0.78rem;
}
.category-card__child .cat-meta em {
  font-size: 1rem;
}

.subcat-section { margin-bottom: 0.5rem; }
.subcat-indent { padding-left: 1.25rem; }
.subcat-row td { background: rgba(255,255,255,0.5); }
.cat-add-row select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  background: #fff;
  max-width: 220px;
}

.cat-add-row input[type="text"] {
  flex: 1;
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  background: #fff;
}
.cat-name-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 560px) {
  .form-row-2 { grid-template-columns: 1fr; }
}
.ad-slot {
  width: min(1080px, calc(100% - 2rem));
  margin: 1rem auto;
  text-align: center;
  overflow: hidden;
}
.ad-slot:empty { display: none; }
.ad-slot img { max-width: 100%; height: auto; }
.ads-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 900px) {
  .ads-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.ads-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ads-box__label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.92rem;
}
.ads-box__label strong { font-size: 0.98rem; }
.ads-box__code {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  resize: vertical;
  background: #f7faf8;
}
.ads-box__key {
  font-size: 0.72rem;
  color: var(--muted);
  align-self: flex-start;
}
.sticky-save {
  position: sticky;
  bottom: 0.75rem;
  background: rgba(247, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin: 1rem 0 2rem;
  justify-content: flex-end;
}
.ads-group h2 {
  margin-top: 0;
}


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

@media (max-width: 860px) {
  .calc-grid { grid-template-columns: 1fr 1fr; }
  .calc-actions { grid-column: 1 / -1; }
  .calc-result { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .post { grid-template-columns: 1fr; }
  .disc-stats { display: none; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 1rem;
    right: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.85rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .calc-grid { grid-template-columns: 1fr; }
  .category-row { grid-template-columns: auto 1fr; }
  .category-card__parent,
  .category-card__child { grid-template-columns: auto 1fr; }
  .category-card__child { padding-left: calc(var(--card-pad) + 1.5rem); }
  .cat-meta { display: none; }
  .discussion-row { grid-template-columns: auto 1fr; }
}
