/* Satır tasarım sistemi — sakin, okunabilir, erişilebilir.
   Renkler değişkenlerle tanımlıdır; koyu tema aynı değişkenleri ezer.

   Yazı tipleri sitenin kendisinden sunulur (OFL lisanslı, public/fonts):
   - Literata: uzun metin okuma için tasarlanmış serif; başlıklar ve okuma alanı.
   - Instrument Sans: sade arayüz yazı tipi; menüler, düğmeler, etiketler.
   Yalnızca Türkçe için gereken Latin ve Latin Genişletilmiş alt kümeleri yüklenir. */

@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/literata-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/literata-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/literata-latin-wght-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/literata-latin-ext-wght-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/instrument-sans-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/instrument-sans-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --bg: #f4efe6;
  --surface: #fffcf6;
  --surface-2: #ece5d8;
  --border: #e0d6c4;
  --border-strong: #c6b8a1;
  --text: #1d1a16;
  --text-muted: #5d554a;
  --rule: color-mix(in srgb, var(--accent) 16%, transparent); /* çizgili kâğıt motifi */
  --support: #b3402a;
  --support-hover: #983321;
  --support-soft: #fbe6df;
  --support-contrast: #ffffff;
  --accent: #1d5c58;
  --accent-hover: #164a47;
  --accent-contrast: #ffffff;
  --accent-soft: #e2eeec;
  --danger: #a8231b;
  --danger-soft: #fbe9e7;
  --warn: #7a4f00;
  --warn-soft: #fcf1d8;
  --success: #276030;
  --success-soft: #e4f1e5;
  --demo: #533f97;
  --demo-soft: #ece8f8;
  --copper: #8c4f22;
  --copper-soft: #f5e6da;
  --silver: #515b66;
  --silver-soft: #e9ecef;
  --gold: #7a5c00;
  --gold-soft: #f8edcc;
  --gold-btn: #c49a2c;
  --gold-btn-text: #241a00;
  --focus: #f0b429;
  --shadow: 0 1px 2px rgba(31, 28, 24, 0.05), 0 4px 14px rgba(31, 28, 24, 0.05);
  --shadow-lg: 0 10px 32px rgba(31, 28, 24, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --font-ui: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-read: 'Literata', 'Iowan Old Style', Charter, 'Sitka Text', Cambria, Georgia, serif;
  --measure: 68ch;
  --header-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme='system'] {
    --bg: #151412;
    --surface: #1d1b19;
    --surface-2: #262320;
    --border: #36322d;
    --border-strong: #4d473f;
    --text: #ece7df;
    --text-muted: #b3aa9c;
    --accent: #7cc3bb;
    --accent-hover: #9ad3cc;
    --accent-contrast: #0d1d1c;
    --accent-soft: #1f3331;
    --danger: #ff8a80;
    --danger-soft: #3a1f1c;
    --warn: #f3c969;
    --warn-soft: #362b15;
    --success: #8fd19a;
    --success-soft: #1b2e1e;
    --demo: #c2b4f5;
    --demo-soft: #2a2442;
    --copper: #e5a16e;
    --copper-soft: #3a2719;
    --silver: #c4ccd5;
    --silver-soft: #2a2f35;
    --gold: #f0cf6b;
    --gold-soft: #393013;
    --support: #ff9a7d;
    --support-hover: #ffb59f;
    --support-soft: #3b231c;
    --support-contrast: #2a0d05;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --bg: #141311;
  --surface: #1c1a17;
  --surface-2: #262320;
  --border: #36322d;
  --border-strong: #4d473f;
  --text: #ece7df;
  --text-muted: #b3aa9c;
  --accent: #7cc3bb;
  --accent-hover: #9ad3cc;
  --accent-contrast: #0d1d1c;
  --accent-soft: #1f3331;
  --danger: #ff8a80;
  --danger-soft: #3a1f1c;
  --warn: #f3c969;
  --warn-soft: #362b15;
  --success: #8fd19a;
  --success-soft: #1b2e1e;
  --demo: #c2b4f5;
  --demo-soft: #2a2442;
  --copper: #e5a16e;
  --copper-soft: #3a2719;
  --silver: #c4ccd5;
  --silver-soft: #2a2f35;
  --gold: #f0cf6b;
  --gold-soft: #393013;
  --support: #ff9a7d;
  --support-hover: #ffb59f;
  --support-soft: #3b231c;
  --support-contrast: #2a0d05;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

/* --- Temel --------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
  outline: none;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--accent-hover);
}
h1,
h2,
h3,
h4,
h5 {
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 650;
}
p {
  margin: 0 0 0.75em;
}
ul,
ol {
  padding-left: 1.25rem;
}
code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
[hidden] {
  display: none !important;
}
.js [data-hide-with-js] {
  display: none;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
  color: var(--accent-contrast);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.icon {
  flex-shrink: 0;
  vertical-align: -0.2em;
}
.muted {
  color: var(--text-muted);
}
.small {
  font-size: 0.875rem;
}
.center {
  text-align: center;
  justify-content: center;
}
.right {
  text-align: right;
}
.left {
  text-align: left;
}
.h3 {
  font-size: 1.3rem;
}
.h4 {
  font-size: 1.1rem;
}
.h5 {
  font-size: 1rem;
  font-weight: 650;
  margin: 0 0 0.25em;
  display: block;
}
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.eyebrow a {
  color: inherit;
}

.container,
.container-wide {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
.container-wide {
  max-width: 1280px;
}
.narrow {
  max-width: 720px;
  margin: 0 auto;
}
.center-block {
  text-align: center;
  padding-top: 32px;
}
.section {
  margin-top: 32px;
}
.stack > * + * {
  margin-top: 16px;
}
.stack-sm > * + * {
  margin-top: 10px;
}
.stack-lg > * + * {
  margin-top: 28px;
}
.two-col {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  margin: 16px 0;
}
.two-col-wide {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

/* --- Header ---------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
  padding-top: 0;
  padding-bottom: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
}
.brand:hover {
  color: var(--text);
}
.brand-mark {
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-read);
  letter-spacing: 0.01em;
}
.primary-nav {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 550;
}
.nav-link:hover {
  background: var(--surface-2);
  color: var(--text);
}
.nav-link.is-current {
  color: var(--text);
  background: none;
  box-shadow: inset 0 -2px 0 var(--accent);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text);
}
.icon-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}
.dot {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--danger);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.dot-sm {
  min-width: 9px;
  width: 9px;
  height: 9px;
  padding: 0;
  top: -1px;
  right: -3px;
}
.nav-icon-wrap {
  position: relative;
  display: inline-flex;
}

/* Menü (details tabanlı, JS olmadan çalışır) */
.menu {
  position: relative;
}
.menu > summary {
  list-style: none;
  cursor: pointer;
}
.menu > summary::-webkit-details-marker {
  display: none;
}
.menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
}
.menu-trigger:hover {
  background: var(--surface-2);
}
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  padding: 8px;
  z-index: 50;
}
.menu-up .menu-panel {
  left: 0;
  right: auto;
}
.menu-head {
  padding: 8px 10px;
  margin: 0;
  border-bottom: 1px solid var(--border);
}
.menu-list {
  list-style: none;
  margin: 6px 0;
  padding: 0;
}
.menu-list a,
.menu-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  background: none;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.menu-list a:hover,
.menu-button:hover {
  background: var(--surface-2);
  color: var(--text);
}
.menu-foot {
  border-top: 1px solid var(--border);
  padding-top: 6px;
}
.menu-note {
  padding: 4px 10px;
  margin: 0;
}
.share-panel,
.collection-panel {
  width: min(340px, calc(100vw - 32px));
}

/* Bantlar */
.banner {
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}
.banner-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.banner-inner p {
  margin: 0;
  flex: 1 1 240px;
}
.banner-warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.banner-error {
  background: var(--danger-soft);
  color: var(--danger);
}
.flash-wrap {
  padding-top: 16px;
  padding-bottom: 0;
}

/* --- Alt gezinme (mobil) ------------------------------------------------------- */
.bottom-nav {
  display: none;
}
@media (max-width: 767px) {
  .primary-nav,
  .header-write {
    display: none;
  }
  .bottom-nav {
    display: flex;
    position: sticky;
    bottom: 0;
    z-index: 40;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .bottom-nav .nav-link {
    flex-direction: column;
    gap: 2px;
    font-size: 0.6875rem;
    padding: 6px 8px;
    min-width: 56px;
  }
  .container,
  .container-wide {
    padding-top: 16px;
  }
}

/* --- Footer ------------------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 28px;
  padding-bottom: 28px;
}
.footer-brand {
  max-width: 380px;
}
.footer-brand .brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-links a {
  color: var(--text-muted);
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Butonlar ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  background: var(--surface-2);
  color: var(--text);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover {
  color: var(--text);
}
.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-sm {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.9rem;
}
.btn-lg {
  min-height: 52px;
  padding: 12px 24px;
  font-size: 1.05rem;
}
.btn-block {
  width: 100%;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-contrast);
}
.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--surface-2);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--surface-2);
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  color: #fff;
  filter: brightness(0.92);
}
.btn-ghost-danger {
  background: transparent;
  color: var(--danger);
}
.btn-ghost-danger:hover {
  background: var(--danger-soft);
  color: var(--danger);
}
.btn-gold {
  background: var(--gold-btn);
  color: var(--gold-btn-text);
}
.btn-gold:hover {
  filter: brightness(1.06);
  color: var(--gold-btn-text);
}
.btn-toggle {
  background: var(--surface);
  border-color: var(--border);
  font-weight: 550;
  min-height: 40px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
}
.btn-toggle:hover {
  background: var(--surface-2);
}
.btn-toggle.is-pressed {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.btn-toggle.is-pressed .icon {
  fill: currentColor;
}
.toggle-count {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}
.is-pressed .toggle-count {
  color: inherit;
}
.inline-form {
  display: inline;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.form-actions.center {
  justify-content: center;
}

/* --- Formlar ----------------------------------------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.label {
  font-weight: 600;
  font-size: 0.9375rem;
}
.req {
  color: var(--danger);
}
.input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.input:focus {
  border-color: var(--accent);
}
.input[aria-invalid='true'] {
  border-color: var(--danger);
}
.input[readonly] {
  background: var(--surface-2);
}
.input-lg {
  min-height: 52px;
  font-size: 1.05rem;
}
.input-title {
  font-family: var(--font-read);
  font-size: 1.6rem;
  font-weight: 600;
  min-height: 60px;
}
.textarea {
  min-height: 0;
  resize: vertical;
  line-height: 1.6;
}
.select {
  appearance: auto;
}
.select-sm {
  min-height: 36px;
  padding: 4px 8px;
  width: auto;
}
.input-group {
  display: flex;
  gap: 8px;
}
.input-group .input {
  flex: 1;
}
.field-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}
.field-error {
  font-size: 0.875rem;
  color: var(--danger);
  font-weight: 600;
  margin: 0;
}
.fieldset {
  border: 0;
  padding: 0;
  margin-inline: 0;
  margin-bottom: 0;
  min-width: 0;
}
.fieldset > legend {
  padding: 0;
  margin-bottom: 8px;
}
.choice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.choice,
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.choice input,
.check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.choice label,
.check label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
}
.choice-label {
  font-weight: 550;
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
  gap: 8px;
  margin-top: 8px;
}
.segmented-radio .choice-list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0;
}
.segmented-radio .choice {
  position: relative;
}
.segmented-radio .choice input {
  position: absolute;
  opacity: 0;
}
.segmented-radio .choice label {
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 0.9rem;
}
.segmented-radio .choice:first-child label {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.segmented-radio .choice:last-child label {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-left: -1px;
}
.segmented-radio .choice input:checked + label {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  position: relative;
}
.segmented-radio .choice input:focus-visible + label {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.error-summary {
  border: 2px solid var(--danger);
  border-radius: var(--radius);
  background: var(--danger-soft);
  padding: 14px 18px;
  margin: 16px 0;
}
.error-summary-title {
  font-size: 1rem;
  color: var(--danger);
}
.error-summary ul {
  margin: 0;
}
.error-summary a {
  color: var(--danger);
  font-weight: 600;
}
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 18px 0;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--border);
}
.upload-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  margin-top: 12px;
}
.upload-box .btn {
  align-self: flex-start;
}

/* --- Kartlar ve ızgaralar -------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card-muted {
  color: var(--text-muted);
  background: var(--surface-2);
  box-shadow: none;
}
.form-card {
  margin-top: 16px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  margin-top: 16px;
}
.card-grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.post-card,
.work-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.post-card:hover,
.work-card:hover {
  border-color: var(--border-strong);
}
.post-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  overflow: hidden;
}
.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.post-card-body,
.work-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  flex: 1;
}
.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}
.post-card-title {
  font-family: var(--font-read);
  font-size: 1.25rem;
  margin: 0;
}
.post-card-title a {
  color: var(--text);
  text-decoration: none;
}
.post-card-title a:hover {
  text-decoration: underline;
}
.post-card-work {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}
.post-card-excerpt {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-excerpt.is-warning {
  font-style: italic;
}
.post-card-footer {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.post-card-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.post-card-stats {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.work-card {
  flex-direction: row;
}
.work-card-cover {
  flex: 0 0 110px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
}
.work-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-fallback {
  font-family: var(--font-read);
  font-size: 2.4rem;
  color: var(--text-muted);
}
.cover-fallback-lg {
  font-size: 5rem;
}
.work-card-author,
.work-card-info {
  font-size: 0.875rem;
  margin: 0;
  color: var(--text-muted);
}
.feed-ad {
  grid-column: 1 / -1;
}

/* --- Rozetler ve çipler ----------------------------------------------------------------- */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.badges:empty {
  display: none;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.5;
  background: var(--surface-2);
  color: var(--text-muted);
  white-space: nowrap;
}
.badge-adult {
  background: var(--danger-soft);
  color: var(--danger);
}
.badge-warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.badge-muted {
  background: var(--surface-2);
  color: var(--text-muted);
}
.badge-success {
  background: var(--success-soft);
  color: var(--success);
}
.badge-demo {
  background: var(--demo-soft);
  color: var(--demo);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.6875rem;
}
.tier-copper {
  background: var(--copper-soft);
  color: var(--copper);
}
.tier-silver {
  background: var(--silver-soft);
  color: var(--silver);
}
.tier-gold {
  background: var(--gold-soft);
  color: var(--gold);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  min-height: 36px;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.chip.is-current {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}
.chip-sm {
  min-height: 30px;
  padding: 3px 10px;
  font-size: 0.8125rem;
}
.chip-row,
.tag-row,
.tag-cloud {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-check {
  position: relative;
  display: inline-flex;
}
.chip-check input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.chip-check span {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.chip-check input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}
.chip-check input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.tab-count {
  display: inline-block;
  min-width: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
  font-weight: 650;
}

/* --- Bildirim kutuları ------------------------------------------------------------------- */
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  margin: 16px 0;
}
.notice p:last-child {
  margin-bottom: 0;
}
.notice-body {
  flex: 1;
  min-width: 0;
}
.notice-title {
  font-weight: 700;
  margin-bottom: 4px;
}
.notice-icon {
  margin-top: 2px;
}
.notice-info {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 25%, transparent);
}
.notice-success {
  background: var(--success-soft);
  color: var(--success);
}
.notice-success a {
  color: inherit;
}
.notice-warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.notice-warn a {
  color: inherit;
}
.notice-error {
  background: var(--danger-soft);
  color: var(--danger);
}
.notice-error a {
  color: inherit;
}
.notice-demo {
  background: var(--demo-soft);
  color: var(--demo);
  border-style: dashed;
  border-color: color-mix(in srgb, var(--demo) 45%, transparent);
}
.notice-demo a {
  color: inherit;
}

/* --- Reklam (içerikten açıkça ayrışır) ------------------------------------------------------ */
.ad-slot {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, var(--surface-2), var(--surface-2) 12px, var(--bg) 12px, var(--bg) 24px);
  padding: 14px 16px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.ad-head {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}
.ad-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 1px 8px;
  border-radius: 4px;
}
.ad-title {
  font-weight: 700;
  color: var(--text);
  margin: 0 0 2px;
}
.ad-text,
.ad-note {
  margin: 0;
}
.ad-note {
  font-size: 0.75rem;
  margin-top: 6px;
}
.inline-ad {
  margin: 2.2em 0;
}

/* --- Sayfa başlığı, sekmeler, sayfalama -------------------------------------------------------- */
.page-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}
.page-title {
  font-family: var(--font-read);
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
  font-weight: 650;
  margin: 0 0 6px;
}
.page-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
  max-width: 60ch;
}
.page-head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tabs {
  border-bottom: 1px solid var(--border);
  margin: 8px 0 20px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.tabs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  min-height: 44px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  font: inherit;
  cursor: pointer;
}
.tab:hover {
  color: var(--text);
}
.tab.is-current {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.feed-toolbar .tabs {
  margin-bottom: 8px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 12px;
}
.pagination-current {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* --- Keşfet --------------------------------------------------------------------------------- */
/* Ana sayfa karşılama düzeni components.css içinde (.hero, .line-of-day, .value-row). */
.filters {
  margin: 0 0 4px;
}
.filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: 40px;
}
.filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
  align-items: end;
  padding: 16px;
  margin-top: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.filter-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip-removable .icon {
  opacity: 0.7;
}
.feed-explainer {
  margin: 8px 0 0;
}
.search-form {
  display: flex;
  gap: 8px;
  margin: 12px 0 8px;
}
.search-form .input {
  flex: 1;
}
.sort-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.inline-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
}
.inline-filter .input {
  width: auto;
}

/* Kişi listeleri */
.person-list,
.simple-list,
.manage-list,
.notification-list,
.history-list,
.decision-list,
.sub-list,
.supporter-list,
.collection-grid,
.mail-list,
.chapter-list,
.page-list,
.impact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.person-body {
  flex: 1;
  min-width: 0;
}
.person-body p {
  margin: 2px 0 0;
}
.person-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.simple-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.author-name {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.author-name:hover .author-handle,
.author-name:hover .author-real {
  text-decoration: underline;
}
.author-handle {
  color: var(--text-muted);
  font-weight: 500;
}
.author-name.is-closed,
.handle.is-closed {
  color: var(--text-muted);
  font-style: italic;
}
.handle {
  font-weight: 600;
  text-decoration: none;
}

/* Avatarlar */
.avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.avatar-xs {
  width: 22px;
  height: 22px;
  font-size: 0.7rem;
}
.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
}
.avatar-md {
  width: 44px;
  height: 44px;
  font-size: 1.05rem;
}
.avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 1.3rem;
}
.avatar-xl {
  width: 96px;
  height: 96px;
  font-size: 2.2rem;
}

/* --- Okuma sayfası ------------------------------------------------------------------------- */
.reader {
  max-width: 760px;
  margin: 0 auto;
}
.reader-head {
  margin: 16px 0 28px;
}
.reader-title {
  font-family: var(--font-read);
  font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 18px;
}
.reader-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.byline-author {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.byline-author p {
  margin: 0;
}
.prose {
  font-family: var(--font-read);
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: var(--measure);
  overflow-wrap: break-word;
  hyphens: auto;
}
.prose p {
  margin: 0 0 1.15em;
}
.prose h2 {
  font-size: 1.6rem;
  margin: 1.8em 0 0.6em;
}
.prose h3 {
  font-size: 1.3rem;
  margin: 1.6em 0 0.5em;
}
.prose blockquote {
  margin: 1.4em 0;
  padding: 0.2em 0 0.2em 1.2em;
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
  font-style: italic;
}
.prose hr.separator {
  border: 0;
  text-align: center;
  margin: 2.2em 0;
}
.prose hr.separator::after {
  content: '⁂';
  font-size: 1.3rem;
  color: var(--text-muted);
  letter-spacing: 0.4em;
}
.prose .post-figure {
  margin: 1.6em 0;
}
.prose .post-figure img {
  border-radius: var(--radius-sm);
  display: block;
  margin: 0 auto;
}
.prose ul,
.prose ol {
  margin: 0 0 1.15em;
}
.prose-sm {
  font-size: 1.05rem;
  line-height: 1.7;
}
.resume {
  margin: -12px 0 20px;
}
.reader-foot {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.copyright {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 6px;
}
.chapter-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
}
.chapter-nav > :last-child {
  justify-self: end;
}
@media (max-width: 560px) {
  .chapter-nav {
    grid-template-columns: 1fr 1fr;
  }
  .chapter-nav > :nth-child(2) {
    grid-column: 1 / -1;
    order: -1;
  }
}
.gate {
  text-align: center;
  padding: 36px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin: 12px 0 24px;
}
.gate .chip-row {
  justify-content: center;
}
.gate .form-actions {
  justify-content: center;
  margin-top: 12px;
}
.gate-icon {
  color: var(--warn);
  margin-bottom: 8px;
}
.author-box {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.author-box-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.author-box-head .eyebrow,
.author-box-head h2 {
  margin: 0;
}

/* Manga / çizgi roman */
.comic {
  margin: 0 auto;
}
.comic-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 5;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  margin-bottom: 12px;
}
.segmented {
  display: inline-flex;
}
.segmented .btn {
  border: 1px solid var(--border-strong);
  border-radius: 0;
  background: var(--surface);
}
.segmented .btn:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.segmented .btn:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-left: -1px;
}
.segmented .btn[aria-pressed='true'] {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}
.comic-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.comic-counter {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  min-width: 70px;
  text-align: center;
}
.comic-pages {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.comic-page figure {
  margin: 0;
}
.comic-page img {
  display: block;
  width: 100%;
  border-radius: 4px;
  background: var(--surface-2);
}
.comic-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}
.comic.is-paged .comic-page {
  display: none;
}
.comic.is-paged .comic-page.is-active {
  display: block;
}

/* Yorumlar */
.comments {
  max-width: 760px;
  margin: 40px auto 0;
}
.comment-form {
  margin-bottom: 24px;
}
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.comment {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.comment:target {
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.comment-body {
  margin: 0 0 6px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: flex-start;
}
.confirm {
  position: relative;
}
.confirm > summary {
  list-style: none;
}
.confirm > summary::-webkit-details-marker {
  display: none;
}
.confirm-panel {
  margin-top: 8px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  min-width: min(320px, 80vw);
}
.confirm-panel p {
  font-size: 0.9rem;
}

/* --- Eser ------------------------------------------------------------------------------------- */
.work {
  max-width: 900px;
  margin: 0 auto;
}
.work-head {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 640px) {
  .work-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .work-cover {
    max-width: 220px;
  }
}
.work-cover {
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-info .byline-author {
  margin-bottom: 10px;
}
.stat-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 14px 0;
}
.stat-inline div {
  display: flex;
  flex-direction: column-reverse;
}
.stat-inline dt {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.stat-inline dd {
  margin: 0;
  font-weight: 700;
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}
.chapter-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.chapter-item.is-current {
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.chapter-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  font-weight: 700;
  flex-shrink: 0;
}
.chapter-body {
  flex: 1;
  min-width: 0;
}
.chapter-body p {
  margin: 2px 0 4px;
}
.chapter-title {
  font-family: var(--font-read);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}
.cover-preview {
  max-width: 180px;
  border-radius: var(--radius-sm);
  display: block;
  margin-bottom: 8px;
}

/* --- Profil -------------------------------------------------------------------------------- */
.profile-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  padding: 12px 0 20px;
}
@media (max-width: 720px) {
  .profile-head {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .profile-actions {
    grid-column: 1 / -1;
  }
}
.profile-name {
  font-family: var(--font-read);
  font-size: 1.9rem;
  margin: 0;
}
.profile-handle {
  color: var(--text-muted);
  margin: 0 0 8px;
}
.profile-bio {
  max-width: 60ch;
  margin: 10px 0;
  white-space: pre-line;
}
.profile-links,
.profile-counts {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.profile-counts a {
  color: var(--text);
  text-decoration: none;
}
.profile-counts a:hover {
  text-decoration: underline;
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.tab-panel {
  min-height: 120px;
}
.tier-grid {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 12px;
}
.tier-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.tier-card-copper {
  border-top: 4px solid var(--copper);
}
.tier-card-silver {
  border-top: 4px solid var(--silver);
}
.tier-card-gold {
  border-top: 4px solid var(--gold);
}
.tier-card-name,
.tier-card-price {
  margin: 0;
}
.tier-card-price {
  font-size: 1.4rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tier-card .btn {
  margin-top: auto;
}
.custom-amount {
  max-width: 420px;
}
.thanks-note {
  font-family: var(--font-read);
  font-size: 1.1rem;
  font-style: italic;
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 16px;
  margin: 16px 0;
  color: var(--text-muted);
}
.thanks-note footer {
  font-style: normal;
  font-size: 0.875rem;
  margin-top: 4px;
}
.supporter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.supporter-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}
.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.45em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.lead-sm {
  font-size: 1.05rem;
}
.rules {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

/* --- Ödeme özeti -------------------------------------------------------------------------- */
.checkout-card {
  margin: 16px 0;
}
.checkout-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.checkout-author p {
  margin: 0;
}
.breakdown {
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.breakdown dt {
  color: var(--text-muted);
}
.breakdown dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.breakdown-total {
  border-bottom: 0 !important;
  font-size: 1.1rem;
}
.breakdown-total dt {
  color: var(--text);
  font-weight: 700;
}

/* --- Tablolar ve istatistik ------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin: 12px 0;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.table caption {
  text-align: left;
  font-weight: 700;
  padding: 12px 14px 4px;
}
.table th,
.table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.table thead th {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 650;
  background: var(--surface-2);
  white-space: nowrap;
}
.table tbody tr:last-child th,
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.table-compact th,
.table-compact td {
  padding: 6px 10px;
}
.row-total th,
.row-total td {
  font-weight: 700;
  background: var(--surface-2);
}
.row-muted td {
  color: var(--text-muted);
  font-style: italic;
}
.row-highlight {
  background: var(--warn-soft);
}
.cell-clip {
  max-width: 280px;
  overflow-wrap: anywhere;
}
.is-locked th {
  color: var(--text-muted);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 12px;
  margin: 16px 0;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 4px;
}
.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.stat-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 4px 0 0;
}
.dl {
  margin: 0;
}
.dl div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.dl dt {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.dl dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.target-excerpt {
  margin: 8px 0;
  padding: 10px 14px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
}

/* --- Listeler ---------------------------------------------------------------------------------- */
.manage-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.manage-item > div:first-child {
  flex: 1 1 320px;
  min-width: 0;
}
.manage-item p {
  margin: 2px 0 0;
}
.notification {
  display: flex;
  gap: 12px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.notification.is-unread {
  background: var(--accent-soft);
}
.notification-icon {
  flex-shrink: 0;
  width: 32px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
}
.notification-body {
  flex: 1;
  min-width: 0;
}
.notification-body a {
  color: var(--text);
  text-decoration: none;
  font-weight: 550;
}
.notification-body a:hover {
  text-decoration: underline;
}
.notification-body p {
  margin: 2px 0 0;
}
.unread-label {
  color: var(--accent);
  font-weight: 700;
}
.history-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.history-item p {
  margin: 2px 0 0;
}
.history-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}
progress {
  width: 140px;
  height: 8px;
  accent-color: var(--accent);
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  margin-top: 16px;
}
.collection-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.collection-card p {
  margin: 4px 0 0;
}
.collection-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.library-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.library-remove {
  align-self: flex-start;
}
.decision-card {
  margin-bottom: 12px;
}
.decision-card p {
  margin: 0 0 6px;
}
.sub-card {
  margin-bottom: 12px;
}
.sub-head p {
  margin: 0 0 4px;
}
.tier-change {
  margin: 12px 0;
}
.tier-change .btn {
  margin-top: 10px;
}
.tier-preview {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tier-preview li {
  display: flex;
  justify-content: space-between;
  font-variant-numeric: tabular-nums;
}
.impact-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.danger-zone {
  margin-top: 40px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
  border-radius: var(--radius);
}
.empty-state {
  text-align: center;
  padding: 48px 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  margin: 16px 0;
}
.empty-icon {
  color: var(--text-muted);
  margin-bottom: 8px;
}
.empty-title {
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.empty-text {
  color: var(--text-muted);
  max-width: 48ch;
  margin: 0 auto 14px;
}

/* --- Ayarlar ---------------------------------------------------------------------------------- */
.settings-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
@media (max-width: 860px) {
  .settings-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .settings-nav ul {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding-bottom: 6px;
  }
  .settings-link {
    white-space: nowrap;
  }
}
.settings-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.settings-nav-title {
  margin-bottom: 10px;
}
.settings-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 550;
  min-height: 44px;
}
.settings-link:hover {
  background: var(--surface-2);
  color: var(--text);
}
.settings-link.is-current {
  background: var(--accent-soft);
  color: var(--accent);
}
.settings-content {
  min-width: 0;
  max-width: 760px;
}
.avatar-edit {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}
.avatar-edit .upload-box {
  margin: 0;
  flex: 1 1 280px;
}
.link-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.link-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 8px;
}

/* --- Editör ------------------------------------------------------------------------------------ */
.editor-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}
.autosave-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}
.editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 960px) {
  .editor {
    grid-template-columns: minmax(0, 1fr);
  }
}
.editor-main > * + * {
  margin-top: 16px;
}
.editor-side {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: calc(var(--header-h) + 12px);
}
@media (max-width: 960px) {
  .editor-side {
    position: static;
  }
}
.editor-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.editor-body {
  font-family: var(--font-read);
  font-size: 1.15rem;
  line-height: 1.75;
  min-height: 420px;
}
.editor-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 20px;
  min-height: 420px;
}
.editor-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--border-strong);
  border-bottom: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--surface-2);
  position: sticky;
  top: var(--header-h);
  z-index: 3;
}
.toolbar + .field .editor-body {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.tool {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.tool:hover {
  background: var(--surface);
}
.tool-text {
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
}
.tool-sep {
  width: 1px;
  background: var(--border-strong);
  margin: 6px 4px;
}
.is-hidden-format {
  display: none;
}
.help > summary {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.page-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.page-thumb {
  width: 96px;
  height: 128px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  flex-shrink: 0;
}
.page-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.page-actions {
  display: flex;
  gap: 4px;
}

/* --- Kimlik doğrulama ------------------------------------------------------------------------- */
.auth-wrap {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 340px);
  gap: 32px;
  justify-content: center;
  align-items: start;
  padding-top: 16px;
}
@media (max-width: 860px) {
  .auth-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.auth-card .page-lead {
  margin-bottom: 18px;
}
.auth-aside {
  padding: 20px 4px;
}

/* --- Hata sayfası, posta kutusu ------------------------------------------------------------------ */
.error-code {
  font-family: var(--font-read);
  font-size: 4rem;
  color: var(--border-strong);
  margin: 0;
}
.mailbox {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 860px) {
  .mailbox {
    grid-template-columns: minmax(0, 1fr);
  }
}
.mail-list a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.mail-list a:hover,
.mail-list a.is-current {
  background: var(--accent-soft);
}
.mail-body p {
  margin: 0 0 4px;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.875rem;
}
.legal-list li {
  margin-bottom: 0.8em;
}

@media print {
  .site-header,
  .site-footer,
  .bottom-nav,
  .action-bar,
  .ad-slot,
  .comments,
  .author-box {
    display: none !important;
  }
}
