@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..700;1,9..144,400..700&family=Inter:wght@300..700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ==========================================================================
   MyBB Portal — tasarım sistemi
   ========================================================================== */

:root {
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --container: 1240px;
    --container-wide: 1400px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --accent-soft: rgba(255, 95, 61, .12);
    --accent-soft: color-mix(in srgb, var(--accent) 13%, transparent);
    --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-theme="ink"],
[data-theme="auto"],
:root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0a0b0d;
    --bg-soft: #0e1013;
    --surface: #121418;
    --surface-2: #171a1f;
    --surface-3: #1d2026;
    --line: rgba(255, 255, 255, .075);
    --line-strong: rgba(255, 255, 255, .16);
    --text: #f4f1ea;
    --muted: #a7abb2;
    --faint: #70757d;
    --accent: #ff5f3d;
    --accent-ink: #1a0b06;
    --ok: #6fe3ad;
    --warn: #ffc46b;
    --danger: #ff8a78;
    --header-bg: rgba(10, 11, 13, .72);
    --shadow: 0 24px 60px rgba(0, 0, 0, .55);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, .3);
    --glow: radial-gradient(65% 55% at 78% -10%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%);
    --grain-opacity: .05;
}

[data-theme="paper"] {
    color-scheme: light;
    --bg: #f4f0e7;
    --bg-soft: #efe9dd;
    --surface: #fffdf8;
    --surface-2: #f8f3e8;
    --surface-3: #f2ebda;
    --line: rgba(24, 24, 22, .1);
    --line-strong: rgba(24, 24, 22, .2);
    --text: #181816;
    --muted: #5d5f59;
    --faint: #8c8a80;
    --accent: #d9532b;
    --accent-ink: #fff8f4;
    --ok: #1c7a51;
    --warn: #946000;
    --danger: #b3261e;
    --header-bg: rgba(244, 240, 231, .82);
    --shadow: 0 24px 60px rgba(60, 45, 25, .14);
    --shadow-soft: 0 10px 28px rgba(60, 45, 25, .08);
    --glow: radial-gradient(65% 55% at 78% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
    --grain-opacity: .035;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
    opacity: var(--grain-opacity);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

img,
svg {
    display: block;
    max-width: 100%;
}

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

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
ol,
ul,
figure {
    margin: 0;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 560;
    letter-spacing: -.02em;
    line-height: 1.08;
}

h1 em,
h2 em,
h3 em {
    font-style: italic;
    color: var(--accent);
}

::selection {
    background: var(--accent);
    color: var(--accent-ink);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-thumb {
    background: var(--line-strong);
    border-radius: 999px;
    border: 3px solid var(--bg);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 3000;
    padding: 10px 16px;
    background: var(--accent);
    color: var(--accent-ink);
    border-radius: 0 0 10px 10px;
    font-weight: 600;
    transition: top .2s var(--ease);
}

.skip-link:focus {
    top: 0;
}

.page-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: var(--glow);
    z-index: 0;
}

.page-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(to right, var(--line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--line) 1px, transparent 1px);
    background-size: 88px 88px;
    mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 80%);
    opacity: .5;
}

.container,
.container-wide {
    position: relative;
    z-index: 1;
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

.container-wide {
    width: min(var(--container-wide), calc(100% - 48px));
}

.icon {
    width: 18px;
    height: 18px;
    flex: none;
}

.mono {
    font-family: var(--font-mono);
    font-size: .82em;
    letter-spacing: -.01em;
}

/* ==========================================================================
   Butonlar
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 19px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
}

.btn .icon {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 24%, transparent);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 34%, transparent);
}

.btn-ghost {
    background: color-mix(in srgb, var(--surface) 70%, transparent);
    border-color: var(--line-strong);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line-strong));
    background: var(--surface-2);
}

.btn-sm {
    padding: 8px 13px;
    font-size: 12.5px;
    border-radius: 9px;
}

.btn-sm .icon {
    width: 14px;
    height: 14px;
}

.btn-block {
    width: 100%;
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

/* ==========================================================================
   Üst çubuk
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 26px;
    height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 28%, transparent);
}

.brand-mark svg {
    width: 24px;
    height: 24px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -.02em;
}

.brand-text small {
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--faint);
    margin-top: 3px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.main-nav a {
    position: relative;
    padding: 9px 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
    border-radius: 8px;
    transition: color .18s var(--ease), background .18s var(--ease);
}

.main-nav a:hover {
    color: var(--text);
    background: color-mix(in srgb, var(--surface-2) 65%, transparent);
}

.main-nav a.is-active {
    color: var(--text);
}

.main-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 1px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

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

.quick-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 236px;
    height: 38px;
    padding: 0 10px 0 12px;
    background: color-mix(in srgb, var(--surface-2) 82%, transparent);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--faint);
    transition: border-color .18s var(--ease), background .18s var(--ease), width .25s var(--ease);
}

.quick-search:focus-within {
    width: 280px;
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
    background: var(--surface-2);
}

.quick-search-icon {
    width: 15px;
    height: 15px;
}

.quick-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 13px;
    outline: 0;
}

.quick-search input::placeholder {
    color: var(--faint);
}

.quick-search kbd {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--faint);
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    padding: 1px 5px;
    opacity: .8;
}

.theme-toggle {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: color-mix(in srgb, var(--surface) 75%, transparent);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}

.theme-toggle:hover {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.theme-icon {
    display: none;
}

.theme-icon .icon {
    width: 17px;
    height: 17px;
}

[data-theme="ink"] .theme-icon-moon,
[data-theme="auto"] .theme-icon-moon,
[data-theme="paper"] .theme-icon-sun {
    display: flex;
}

.mobile-toggle {
    display: none;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    background: var(--bg);
    padding: 12px 24px 20px;
}

.mobile-nav nav {
    display: flex;
    flex-direction: column;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    font-weight: 500;
}

.mobile-nav .icon {
    color: var(--faint);
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    padding: 78px 0 72px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) minmax(340px, .68fr);
    gap: clamp(36px, 5vw, 72px);
    align-items: start;
}

.hero-copy {
    animation: rise .65s var(--ease) both;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: var(--faint);
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
    animation: pulse 2.8s ease-in-out infinite;
}

.eyebrow-line {
    width: 34px;
    height: 1px;
    background: var(--line-strong);
}

.hero h1 {
    margin: 24px 0 22px;
    font-size: clamp(46px, 6.1vw, 84px);
    line-height: .98;
    letter-spacing: -.035em;
    font-weight: 520;
}

.hero h1 em {
    position: relative;
    white-space: nowrap;
}

.hero h1 em::after {
    content: "";
    position: absolute;
    left: 2%;
    right: 2%;
    bottom: 6%;
    height: 9%;
    background: var(--accent);
    opacity: .22;
    border-radius: 3px;
    z-index: -1;
}

.hero-lede {
    max-width: 56ch;
    font-size: 17.5px;
    line-height: 1.65;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 30px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 46px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.hero-stats > div {
    padding-left: 22px;
    border-left: 1px solid var(--line);
}

.hero-stats > div:first-child {
    padding-left: 0;
    border-left: 0;
}

.hero-stats dt {
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--faint);
}

.hero-stats dd {
    margin-top: 5px;
    font-family: var(--font-display);
    font-size: clamp(26px, 2.4vw, 34px);
    font-weight: 520;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}

.hero-today {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    font-size: 12.5px;
    color: var(--faint);
}

.hero-today .icon {
    width: 15px;
    height: 15px;
    color: var(--accent);
}

.hero-today strong {
    color: var(--muted);
    font-weight: 600;
}

/* Spotlight */

.spotlight {
    position: relative;
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 26px;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: rise .7s .08s var(--ease) both;
}

.spotlight::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: .7;
}

.spotlight::after {
    content: "";
    position: absolute;
    top: -120px;
    right: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    filter: blur(50px);
    pointer-events: none;
}

.spotlight-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 60%, transparent);
}

.live-pill i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent);
}

.spotlight-feature {
    position: relative;
    display: block;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--bg) 38%, transparent);
    transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}

.spotlight-feature:hover {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
    background: color-mix(in srgb, var(--bg) 55%, transparent);
    transform: translateY(-2px);
}

.spotlight-kicker {
    display: block;
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--accent);
}

.spotlight-feature h2 {
    margin: 9px 0 15px;
    font-size: clamp(23px, 2vw, 29px);
    line-height: 1.14;
    font-weight: 520;
}

.spotlight-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 11.5px;
    color: var(--faint);
}

.spotlight-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.spotlight-meta .icon {
    width: 13px;
    height: 13px;
}

.spotlight-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.spotlight-cta .icon {
    width: 14px;
    height: 14px;
    color: var(--accent);
    transition: transform .18s var(--ease);
}

.spotlight-feature:hover .spotlight-cta .icon {
    transform: translate(2px, -2px);
}

.spotlight-list {
    list-style: none;
    margin-top: 18px;
    border-top: 1px solid var(--line);
}

.spotlight-list li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.spotlight-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.spotlight-index {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--faint);
}

.spotlight-list a {
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--muted);
    transition: color .18s var(--ease);
}

.spotlight-list a:hover {
    color: var(--accent);
}

.spotlight-count {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--faint);
}

.spotlight-empty {
    position: relative;
    padding: 14px 4px 4px;
}

.spotlight-empty h2 {
    margin: 8px 0 12px;
    font-size: 28px;
}

.spotlight-empty p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 18px;
}

/* ==========================================================================
   Bölümler
   ========================================================================== */

.section {
    padding: 76px 0 90px;
    position: relative;
}

.section-tight {
    padding: 20px 0 84px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(32px, 4vw, 56px);
    align-items: start;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-head h2 {
    margin-top: 7px;
    font-size: clamp(27px, 2.6vw, 35px);
    font-weight: 520;
}

.section-head-spaced {
    margin-top: 64px;
}

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 3px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    border-bottom: 1px solid transparent;
    transition: color .18s var(--ease), border-color .18s var(--ease);
}

.link-more .icon {
    width: 14px;
    height: 14px;
    transition: transform .18s var(--ease);
}

.link-more:hover {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}

.link-more:hover .icon {
    transform: translateX(3px);
}

.sort-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--faint);
}

.sort-note .icon {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   Konu satırları
   ========================================================================== */

.thread-list {
    border-top: 1px solid var(--line);
}

.thread-row {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto 132px;
    gap: 18px;
    align-items: center;
    padding: 17px 12px 17px 6px;
    border-bottom: 1px solid var(--line);
    border-radius: 10px;
    transition: background .18s var(--ease), padding .18s var(--ease);
}

.thread-row:hover {
    background: color-mix(in srgb, var(--surface-2) 55%, transparent);
}

.thread-avatar {
    align-self: start;
    padding-top: 2px;
}

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

.thread-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.flag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.flag .icon {
    width: 10px;
    height: 10px;
}

.flag-pin {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
    background: var(--accent-soft);
}

.flag-op {
    color: var(--accent);
    background: var(--accent-soft);
    border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}

.thread-title {
    font-family: var(--font-body);
    font-size: 16.5px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.01em;
}

.thread-title a {
    transition: color .18s var(--ease);
}

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

.thread-sub {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 5px;
    font-size: 11.5px;
    color: var(--faint);
}

.forum-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 5px;
    transition: background .18s var(--ease);
}

.forum-chip .icon {
    width: 11px;
    height: 11px;
}

a.forum-chip:hover {
    background: color-mix(in srgb, var(--accent) 22%, transparent);
}

.dot-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--faint);
    opacity: .6;
}

.thread-metrics {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--faint);
    white-space: nowrap;
}

.thread-metrics span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.thread-metrics .icon {
    width: 13px;
    height: 13px;
}

.thread-last {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    text-align: right;
    min-width: 0;
}

.thread-last-label {
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--faint);
    opacity: .75;
}

.thread-last strong {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--muted);
}

.thread-last time {
    font-size: 10.5px;
    color: var(--faint);
}

/* ==========================================================================
   Kategori kartları
   ========================================================================== */

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

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
    overflow: hidden;
}

.category-card::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -50px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--accent-soft);
    filter: blur(26px);
    opacity: 0;
    transition: opacity .25s var(--ease);
}

.category-card:hover {
    border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
    transform: translateY(-2px);
}

.category-card:hover::after {
    opacity: 1;
}

.category-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.category-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--accent-soft);
    color: var(--accent);
}

.category-icon .icon {
    width: 16px;
    height: 16px;
}

.category-count {
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--faint);
}

.category-card strong {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 540;
    letter-spacing: -.015em;
}

.category-desc {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--muted);
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--faint);
}

.category-link .icon {
    width: 12px;
    height: 12px;
}

.category-card:hover .category-link {
    color: var(--accent);
}

/* ==========================================================================
   Kenar çubuğu
   ========================================================================== */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: start;
}

.side-card {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.side-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.side-card-head h2 {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
}

.side-card-head > .icon {
    width: 16px;
    height: 16px;
    color: var(--faint);
}

.side-card-accent {
    background:
        linear-gradient(155deg, color-mix(in srgb, var(--accent) 13%, var(--surface)), var(--surface) 60%);
    border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
}

.side-card-accent h2 {
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 520;
    margin: 8px 0 10px;
}

.side-card-accent p {
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--muted);
    margin-bottom: 16px;
}

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

.stat-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}

.stat-list > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.stat-list dt {
    font-size: 12px;
    color: var(--muted);
}

.stat-list dd {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.stat-list dd.stat-text {
    font-family: var(--font-body);
    font-size: 11.5px;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.online-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 15%, transparent);
}

.newest-member {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.newest-label {
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--faint);
}

.newest-member a {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}

.member-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.member-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.member-name {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.member-name a {
    font-size: 12.5px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-name a:hover {
    color: var(--accent);
}

.member-name small {
    font-size: 10px;
    color: var(--faint);
}

.author-list {
    list-style: none;
    counter-reset: author;
}

.author-list li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.author-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.author-rank {
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--faint);
}

.author-name {
    font-size: 12.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.author-total {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
}

.side-footnote {
    margin-top: 14px;
    font-size: 10px;
    color: var(--faint);
}

.side-empty {
    font-size: 12px;
    color: var(--faint);
    line-height: 1.55;
}

.tip-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tip-list li {
    position: relative;
    padding-left: 16px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.tip-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.related-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.related-list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.related-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.related-list a {
    font-size: 12.5px;
    line-height: 1.4;
    font-weight: 500;
}

.related-list a:hover {
    color: var(--accent);
}

.related-list span {
    font-size: 10px;
    color: var(--faint);
}

/* ==========================================================================
   Sayfa başlıkları
   ========================================================================== */

.page-hero {
    position: relative;
    padding: 58px 0 46px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(70% 120% at 20% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%);
}

.page-hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
}

.page-hero h1 {
    margin: 16px 0 16px;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 520;
    line-height: 1;
}

.page-lede {
    max-width: 62ch;
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--muted);
}

.page-stats {
    display: flex;
    gap: 0;
    flex: none;
    padding-bottom: 4px;
}

.page-stats > div {
    padding: 0 24px;
    border-left: 1px solid var(--line);
}

.page-stats > div:first-child {
    border-left: 0;
}

.page-stats dt {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--faint);
}

.page-stats dd {
    margin-top: 4px;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 520;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

.page-hero-search .search-form {
    margin-top: 28px;
}

/* ==========================================================================
   Forum dizini
   ========================================================================== */

.category-stack {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.category-block {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.category-head {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-2) 55%, transparent);
}

.category-number {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    padding-top: 4px;
}

.category-head-copy {
    flex: 1;
    min-width: 0;
}

.category-head-copy h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 540;
    letter-spacing: -.02em;
}

.category-head-copy p {
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--muted);
    max-width: 70ch;
}

.category-meta {
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--faint);
    padding-top: 6px;
    white-space: nowrap;
}

.forum-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 140px 190px 30px;
    gap: 18px;
    align-items: center;
    padding: 17px 22px;
    border-bottom: 1px solid var(--line);
    transition: background .18s var(--ease);
}

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

.forum-row:hover {
    background: color-mix(in srgb, var(--surface-2) 55%, transparent);
}

.forum-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
    color: var(--accent);
}

.forum-icon .icon {
    width: 20px;
    height: 20px;
}

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

.forum-main h3 {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.35;
}

.forum-main h3 a:hover {
    color: var(--accent);
}

.forum-main p {
    margin-top: 3px;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--faint);
}

.forum-counts {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 10.5px;
    color: var(--faint);
}

.forum-counts strong {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
    color: var(--muted);
}

.forum-last {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.forum-last-label {
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--faint);
    opacity: .8;
}

.forum-last a {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.forum-last a:hover {
    color: var(--accent);
}

.forum-last-meta {
    font-size: 10px;
    color: var(--faint);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.forum-go {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: var(--faint);
    border: 1px solid transparent;
    transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}

.forum-go .icon {
    width: 15px;
    height: 15px;
}

.forum-row:hover .forum-go {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
    background: var(--accent-soft);
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 56px;
    padding: 32px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface) 55%);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
    border-radius: var(--radius-xl);
}

.cta-band h2 {
    margin: 8px 0 8px;
    font-size: clamp(24px, 2.3vw, 32px);
    font-weight: 520;
    max-width: 28ch;
}

.cta-band p {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 66ch;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    padding: 18px 0 0;
    font-size: 11.5px;
    color: var(--faint);
}

.breadcrumbs a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color .18s var(--ease);
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs .icon {
    width: 13px;
    height: 13px;
}

.crumb-sep {
    width: 11px;
    height: 11px;
    opacity: .5;
}

.breadcrumbs span[aria-current] {
    color: var(--muted);
    max-width: 48ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================================
   Konu sayfası
   ========================================================================== */

.thread-hero {
    padding: 28px 0 34px;
    border-bottom: 1px solid var(--line);
}

.thread-hero-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
}

.thread-hero-main {
    min-width: 0;
}

.thread-hero-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.thread-hero h1 {
    margin: 14px 0 13px;
    font-size: clamp(30px, 3.7vw, 48px);
    font-weight: 520;
    line-height: 1.08;
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
}

.thread-hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11.5px;
    color: var(--faint);
}

.thread-hero-meta strong {
    color: var(--muted);
    font-weight: 600;
}

.thread-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: none;
}

.thread-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
}

.thread-toolbar-count {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--faint);
}

.thread-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.thread-toolbar-actions a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: var(--muted);
    transition: color .18s var(--ease);
}

.thread-toolbar-actions a:hover {
    color: var(--accent);
}

.thread-toolbar-actions .icon {
    width: 13px;
    height: 13px;
}

/* Gönderiler */

.post-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post {
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.post.is-op {
    border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--accent) 4%, var(--surface)), var(--surface) 40%);
}

.post-author {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding-right: 22px;
    border-right: 1px solid var(--line);
    min-width: 0;
}

.post-username {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    margin-top: 3px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.post-usertitle {
    font-size: 10.5px;
    color: var(--faint);
    line-height: 1.4;
}

.post-author-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.post-author-stats > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.post-author-stats dt {
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--faint);
}

.post-author-stats dd {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--muted);
}

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

.post-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
    font-size: 10.5px;
    color: var(--faint);
}

.post-number {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
}

.post-head time {
    font-size: 10.5px;
}

.post-time-ago {
    color: var(--faint);
    opacity: .8;
}

.post-anchor {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    color: var(--faint);
    transition: color .18s var(--ease);
}

.post-anchor:hover {
    color: var(--accent);
}

.post-anchor .icon {
    width: 14px;
    height: 14px;
}

.post-edit {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
    font-size: 10.5px;
    color: var(--faint);
}

.post-edit .icon {
    width: 12px;
    height: 12px;
}

.reply-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 28px;
    padding: 28px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 11%, var(--surface)), var(--surface) 58%);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
    border-radius: var(--radius-xl);
}

.reply-band h2 {
    margin: 8px 0 8px;
    font-size: 27px;
    font-weight: 520;
}

.reply-band p {
    max-width: 58ch;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--muted);
}

.reply-actions {
    display: flex;
    gap: 9px;
    flex: none;
}

/* ==========================================================================
   Arama
   ========================================================================== */

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 760px;
    padding: 8px 8px 8px 16px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.search-form:focus-within {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.search-form-icon {
    width: 18px;
    height: 18px;
    color: var(--faint);
}

.search-form input {
    flex: 1;
    min-width: 0;
    height: 40px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 15px;
    outline: 0;
}

.search-form input::placeholder {
    color: var(--faint);
}

/* ==========================================================================
   Avatar
   ========================================================================== */

.avatar {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 50%;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(140deg, #6b7280, #374151);
    border: 1px solid var(--line-strong);
    user-select: none;
}

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

.avatar-xs {
    width: 26px;
    height: 26px;
    font-size: 9px;
}

.avatar-sm {
    width: 38px;
    height: 38px;
}

.avatar-lg {
    width: 68px;
    height: 68px;
    font-size: 17px;
    border-radius: 18px;
}

.avatar-tone-0 { background: linear-gradient(140deg, #f97316, #9a3412); }
.avatar-tone-1 { background: linear-gradient(140deg, #14b8a6, #0f766e); }
.avatar-tone-2 { background: linear-gradient(140deg, #6366f1, #3730a3); }
.avatar-tone-3 { background: linear-gradient(140deg, #ec4899, #9d174d); }
.avatar-tone-4 { background: linear-gradient(140deg, #84cc16, #3f6212); }
.avatar-tone-5 { background: linear-gradient(140deg, #06b6d4, #155e75); }

/* ==========================================================================
   Zengin içerik (BBCode)
   ========================================================================== */

.bb-content {
    font-size: 15px;
    line-height: 1.78;
    color: color-mix(in srgb, var(--text) 92%, var(--muted));
    overflow-wrap: anywhere;
}

.bb-content > :first-child {
    margin-top: 0;
}

.bb-content > :last-child {
    margin-bottom: 0;
}

.bb-content p {
    margin: 0 0 .9em;
}

.bb-content a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.bb-content a:hover {
    text-decoration-thickness: 2px;
}

.bb-content strong {
    color: var(--text);
    font-weight: 600;
}

.bb-content em {
    color: var(--text);
}

.bb-content blockquote.bb-quote {
    margin: 1.2em 0;
    padding: 14px 18px;
    background: var(--surface-2);
    border-left: 3px solid var(--accent);
    border-radius: 0 10px 10px 0;
    color: var(--muted);
    font-size: .94em;
}

.bb-content blockquote cite {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-style: normal;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
}

.bb-content blockquote div {
    margin: 0;
}

.bb-content .bb-code {
    margin: 1.1em 0;
    padding: 15px 17px;
    background: #0a0b0d;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.65;
    color: #e8e5de;
    white-space: pre;
}

[data-theme="paper"] .bb-content .bb-code {
    background: #1b1b19;
}

.bb-content .bb-code code {
    font: inherit;
}

.bb-content .bb-list {
    margin: 1em 0;
    padding-left: 1.4em;
}

.bb-content .bb-list li {
    margin: .3em 0;
}

.bb-content .bb-image {
    margin: 1.2em 0;
}

.bb-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.bb-content .bb-hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 1.6em 0;
}

.bb-underline {
    text-decoration: underline;
}

.bb-strike {
    text-decoration: line-through;
    opacity: .8;
}

.rules-content {
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--muted);
}

.rules-content .bb-content,
.rules-content {
    max-height: 320px;
    overflow-y: auto;
}

/* ==========================================================================
   Sayfalama
   ========================================================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.page-btn {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}

a.page-btn:hover {
    color: var(--text);
    border-color: var(--line-strong);
    background: var(--surface-2);
}

.page-btn.is-current {
    color: var(--accent-ink);
    background: var(--accent);
    border-color: var(--accent);
    font-weight: 500;
}

.page-btn.is-disabled {
    opacity: .35;
    pointer-events: none;
}

.page-arrow {
    padding: 0;
    width: 34px;
}

.page-arrow .icon {
    width: 14px;
    height: 14px;
}

.page-gap {
    color: var(--faint);
    padding: 0 4px;
    font-size: 11px;
}

/* ==========================================================================
   Boş durum, uyarılar
   ========================================================================== */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 56px 24px;
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
}

.empty-icon {
    width: 34px;
    height: 34px;
    color: var(--accent);
    opacity: .8;
}

.empty-state h2,
.empty-state h3 {
    font-size: 23px;
    font-weight: 520;
}

.empty-state p {
    max-width: 48ch;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

.empty-state .btn {
    margin-top: 10px;
}

.empty-state-inline {
    padding: 24px;
    grid-column: 1 / -1;
}

.flash-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 20px 0;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 12.5px;
    line-height: 1.5;
    background: var(--surface);
}

.alert .icon {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    flex: none;
}

.alert-error {
    color: var(--danger);
    border-color: color-mix(in srgb, var(--danger) 30%, var(--line));
    background: color-mix(in srgb, var(--danger) 7%, var(--surface));
}

.alert-success {
    color: var(--ok);
    border-color: color-mix(in srgb, var(--ok) 28%, var(--line));
    background: color-mix(in srgb, var(--ok) 7%, var(--surface));
}

/* ==========================================================================
   Alt bilgi
   ========================================================================== */

.site-footer {
    margin-top: 40px;
    padding: 52px 0 22px;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg-soft) 80%, transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, .8fr));
    gap: 40px;
}

.brand-footer .brand-mark {
    width: 34px;
    height: 34px;
}

.footer-brand p {
    margin-top: 16px;
    max-width: 38ch;
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--faint);
}

.footer-brand .footer-note {
    margin-top: 8px;
    font-size: 11px;
    opacity: .8;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 12.5px;
}

.footer-title {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 3px;
}

.footer-col a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    transition: color .18s var(--ease);
    width: fit-content;
}

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

.footer-col a .icon {
    width: 12px;
    height: 12px;
}

.footer-col p {
    color: var(--faint);
    line-height: 1.6;
    font-size: 12px;
}

.footer-meta .mono {
    font-size: 10px;
    color: var(--faint);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 44px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 10.5px;
    color: var(--faint);
}

.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.footer-status i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 14%, transparent);
}

/* ==========================================================================
   Yönetim — giriş
   ========================================================================== */

.admin-guest-body {
    background:
        radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%),
        var(--bg);
}

.admin-guest-shell,
.error-shell {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

.admin-guest-head,
.error-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
}

.admin-guest-main,
.error-main {
    display: grid;
    place-items: center;
    padding: 30px 0 60px;
}

.admin-guest-foot,
.error-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    font-size: 11px;
    color: var(--faint);
}

.admin-guest-foot a,
.error-foot a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
}

.admin-guest-foot a:hover,
.error-foot a:hover {
    color: var(--accent);
}

.admin-guest-foot .icon,
.error-foot .icon {
    width: 13px;
    height: 13px;
}

.login-card {
    width: min(440px, 100%);
    padding: 36px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.login-card-head {
    margin-bottom: 24px;
}

.login-badge {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
    color: var(--accent);
    margin-bottom: 18px;
}

.login-badge .icon {
    width: 20px;
    height: 20px;
}

.login-card h1 {
    margin: 8px 0 10px;
    font-size: 32px;
    font-weight: 520;
    letter-spacing: -.03em;
}

.login-card-head p:last-child {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--muted);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field > span {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--faint);
}

.field input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    outline: 0;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.login-form .btn {
    margin-top: 4px;
    height: 46px;
}

.login-foot {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 10.5px;
    color: var(--faint);
}

.login-foot span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.login-foot .icon {
    width: 12px;
    height: 12px;
}

.login-foot a {
    color: var(--muted);
    width: fit-content;
}

.login-foot a:hover {
    color: var(--accent);
}

/* ==========================================================================
   Yönetim — panel
   ========================================================================== */

.admin-body {
    background:
        radial-gradient(60% 40% at 85% -5%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%),
        var(--bg-soft);
}

.admin-top {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.admin-top-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 66px;
}

.admin-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.admin-nav a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 11px;
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--muted);
    transition: color .18s var(--ease), background .18s var(--ease);
}

.admin-nav a:hover,
.admin-nav a.is-active {
    color: var(--text);
    background: var(--surface-2);
}

.admin-nav .icon {
    width: 12px;
    height: 12px;
    color: var(--faint);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-left: auto;
}

.admin-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    font-size: 11.5px;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-user-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ok);
}

.admin-main {
    padding: 40px 0 80px;
}

.admin-foot {
    border-top: 1px solid var(--line);
    padding: 20px 0;
}

.admin-foot .container-wide {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 10.5px;
    color: var(--faint);
}

.admin-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 18px;
}

.admin-page-head h1 {
    margin: 10px 0 8px;
    font-size: clamp(34px, 3.4vw, 46px);
    font-weight: 520;
    letter-spacing: -.03em;
    line-height: 1;
}

.admin-head-actions {
    display: flex;
    gap: 8px;
    flex: none;
}

.admin-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 28px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: .04em;
    color: var(--faint);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.badge .icon {
    width: 11px;
    height: 11px;
}

.badge-ok {
    color: var(--ok);
    border-color: color-mix(in srgb, var(--ok) 24%, var(--line));
    background: color-mix(in srgb, var(--ok) 6%, var(--surface));
}

.badge-warn {
    color: var(--warn);
    border-color: color-mix(in srgb, var(--warn) 26%, var(--line));
    background: color-mix(in srgb, var(--warn) 7%, var(--surface));
}

.admin-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    margin-bottom: 18px;
    background: color-mix(in srgb, var(--accent) 6%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
    border-radius: var(--radius-lg);
}

.admin-alert-warn {
    background: color-mix(in srgb, var(--warn) 6%, var(--surface));
    border-color: color-mix(in srgb, var(--warn) 24%, var(--line));
}

.admin-alert-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 9px;
    background: var(--accent-soft);
    color: var(--accent);
}

.admin-alert-warn .admin-alert-icon {
    background: color-mix(in srgb, var(--warn) 12%, transparent);
    color: var(--warn);
}

.admin-alert-icon .icon {
    width: 17px;
    height: 17px;
}

.admin-alert strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.admin-alert p {
    font-size: 12px;
    line-height: 1.6;
    color: var(--muted);
}

.admin-alert code {
    font-family: var(--font-mono);
    font-size: .9em;
    padding: 1px 5px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 4px;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.admin-stat {
    display: flex;
    flex-direction: column;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.admin-stat::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--accent-soft);
    filter: blur(24px);
    opacity: .7;
}

.admin-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.admin-stat-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--accent);
}

.admin-stat-icon .icon {
    width: 15px;
    height: 15px;
}

.admin-stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--faint);
}

.admin-stat-label {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--faint);
}

.admin-stat > strong {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 520;
    letter-spacing: -.04em;
    line-height: 1.1;
    margin: 2px 0 3px;
    font-variant-numeric: tabular-nums;
}

.admin-stat-foot {
    font-size: 10.5px;
    color: var(--faint);
}

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

.admin-panel {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    min-width: 0;
}

.admin-panel-wide {
    grid-column: 1 / -1;
}

.admin-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.admin-panel-head h2 {
    margin-top: 6px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 530;
    letter-spacing: -.02em;
}

.admin-panel-head > .icon {
    width: 17px;
    height: 17px;
    color: var(--faint);
}

.admin-panel-foot {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--faint);
}

.chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 190px;
    padding-top: 18px;
}

.chart-col {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 5px;
    min-width: 0;
}

.chart-bar {
    width: 100%;
    max-width: 38px;
    min-height: 3px;
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 28%, transparent));
    opacity: .85;
    transition: opacity .18s var(--ease), filter .18s var(--ease);
}

.chart-col:hover .chart-bar {
    opacity: 1;
    filter: brightness(1.15);
}

.chart-value {
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--faint);
    height: 10px;
    line-height: 10px;
}

.chart-label {
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--faint);
    white-space: nowrap;
    margin-top: 5px;
}

.chart-col:nth-child(even) .chart-label {
    visibility: hidden;
}

.bar-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bar-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px auto;
    align-items: center;
    gap: 9px;
}

.bar-list-label {
    font-size: 11.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bar-list-track {
    height: 5px;
    border-radius: 999px;
    background: var(--surface-2);
    overflow: hidden;
}

.bar-list-track > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    opacity: .8;
}

.bar-list-value {
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--faint);
    text-align: right;
}

.health-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.health-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.health-icon {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    flex: none;
    border-radius: 6px;
    background: var(--surface-2);
}

.health-icon .icon {
    width: 11px;
    height: 11px;
}

.health-list .is-ok .health-icon {
    color: var(--ok);
    background: color-mix(in srgb, var(--ok) 10%, transparent);
}

.health-list .is-fail .health-icon {
    color: var(--danger);
    background: color-mix(in srgb, var(--danger) 10%, transparent);
}

.health-list strong {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
}

.health-list small {
    display: block;
    margin-top: 1px;
    font-size: 9.5px;
    line-height: 1.45;
    color: var(--faint);
    overflow-wrap: anywhere;
}

.admin-thread-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.admin-thread-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.admin-thread-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.admin-thread-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.admin-thread-main a {
    font-size: 12.5px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-thread-main a:hover {
    color: var(--accent);
}

.admin-thread-main small {
    font-size: 9.5px;
    color: var(--faint);
}

.admin-thread-meta {
    display: flex;
    align-items: center;
    gap: 13px;
    flex: none;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--faint);
}

.admin-thread-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.admin-thread-meta .icon {
    width: 11px;
    height: 11px;
}

.admin-member-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.admin-member-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-member-name {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.admin-member-name strong {
    font-size: 12px;
    font-weight: 500;
}

.admin-member-name small {
    font-size: 9.5px;
    color: var(--faint);
}

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

.settings-list > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.settings-list > div:last-child {
    border-bottom: 0;
}

.settings-list dt {
    font-size: 11px;
    color: var(--faint);
    flex: none;
}

.settings-list dd {
    font-size: 11px;
    color: var(--muted);
    text-align: right;
    overflow-wrap: anywhere;
}

.settings-list dd.is-mono {
    font-family: var(--font-mono);
    font-size: 9.5px;
}

.admin-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.admin-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    font-size: 11px;
    line-height: 1.55;
    color: var(--faint);
}

.admin-note .icon {
    width: 15px;
    height: 15px;
    color: var(--muted);
    flex: none;
    margin-top: 1px;
}

.admin-note strong {
    color: var(--muted);
    font-weight: 600;
}

/* ==========================================================================
   Hata sayfaları
   ========================================================================== */

.error-body {
    background:
        radial-gradient(55% 45% at 50% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%),
        var(--bg);
}

.error-card {
    width: min(760px, 100%);
    padding: 44px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.error-card-small {
    width: min(560px, 100%);
}

.error-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.error-code {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(64px, 9vw, 100px);
    line-height: .9;
    letter-spacing: -.05em;
    color: var(--accent);
    opacity: .18;
    margin-bottom: 8px;
}

.error-card h1 {
    margin: 10px 0 12px;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 520;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.debug-box {
    margin-top: 26px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    font-size: 11px;
    color: var(--muted);
}

.debug-box summary {
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--faint);
}

.debug-box pre {
    margin-top: 12px;
    overflow-x: auto;
    white-space: pre-wrap;
    font-size: 9.5px;
    line-height: 1.6;
    color: var(--faint);
}

.error-note {
    margin-top: 22px;
    font-size: 11px;
    color: var(--faint);
}

.error-note code {
    font-family: var(--font-mono);
    color: var(--muted);
}

/* ==========================================================================
   Kurulum
   ========================================================================== */

.setup-card {
    width: min(1040px, 100%);
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.setup-head {
    max-width: 72ch;
    margin-bottom: 26px;
}

.setup-head h1 {
    margin: 10px 0 12px;
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 520;
}

.setup-head code,
.setup-note code,
.setup-help code {
    font-family: var(--font-mono);
    font-size: .88em;
    padding: 1px 5px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 4px;
}

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

.setup-panel {
    padding: 22px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.setup-panel h2 {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 530;
    margin-bottom: 16px;
}

.setup-checks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.setup-checks li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.setup-check-icon {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    flex: none;
    border-radius: 6px;
    background: var(--surface);
}

.setup-check-icon .icon {
    width: 11px;
    height: 11px;
}

.setup-checks .is-ok .setup-check-icon {
    color: var(--ok);
}

.setup-checks .is-fail .setup-check-icon {
    color: var(--danger);
}

.setup-checks strong {
    display: block;
    font-size: 12px;
    font-weight: 500;
}

.setup-checks small {
    display: block;
    margin-top: 1px;
    font-size: 10px;
    line-height: 1.45;
    color: var(--faint);
    overflow-wrap: anywhere;
}

.setup-values {
    display: flex;
    flex-direction: column;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.setup-values > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 5px 0;
    font-size: 10.5px;
}

.setup-values span {
    color: var(--faint);
}

.setup-values code {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
    overflow-wrap: anywhere;
    text-align: right;
}

.setup-code {
    padding: 16px;
    background: #0a0b0d;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: #e9e6df;
    font-family: var(--font-mono);
    font-size: 10.5px;
    line-height: 1.7;
    overflow-x: auto;
    white-space: pre;
}

.setup-note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 14px;
    font-size: 10.5px;
    line-height: 1.55;
    color: var(--faint);
}

.setup-note .icon {
    width: 13px;
    height: 13px;
    margin-top: 1px;
    flex: none;
}

.setup-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.setup-status {
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--danger);
}

.setup-status.is-ok {
    color: var(--ok);
}

.setup-help {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    color: var(--muted);
}

.setup-help summary {
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--faint);
}

.setup-help ol {
    margin: 14px 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    line-height: 1.55;
}

.setup-help p {
    color: var(--faint);
}

/* ==========================================================================
   Animasyonlar
   ========================================================================== */

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

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
    }
    50% {
        box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 6%, transparent);
    }
}

/* ==========================================================================
   Duyarlılık
   ========================================================================== */

@media (max-width: 1180px) {
    .quick-search {
        width: 190px;
    }

    .quick-search:focus-within {
        width: 230px;
    }

    .header-cta {
        display: none;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    }
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .sidebar .side-card-accent {
        grid-column: 1 / -1;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .spotlight {
        max-width: 720px;
    }

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

    .page-stats {
        padding-top: 20px;
        border-top: 1px solid var(--line);
        width: 100%;
    }

    .page-stats > div:first-child {
        padding-left: 0;
    }

    .cta-band {
        flex-direction: column;
        align-items: flex-start;
    }

    .reply-band {
        flex-direction: column;
        align-items: flex-start;
    }

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

@media (max-width: 900px) {
    .main-nav {
        display: none;
    }

    .mobile-toggle {
        display: grid;
    }

    .quick-search {
        width: 160px;
    }

    .quick-search:focus-within {
        width: 200px;
    }

    .mobile-nav:not([hidden]) {
        display: block;
    }

    .forum-row {
        grid-template-columns: 42px minmax(0, 1fr) 150px 30px;
    }

    .forum-counts {
        display: none;
    }

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

    .admin-nav {
        display: none;
    }

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

    .admin-panel-wide {
        grid-column: auto;
    }

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

    .thread-row {
        grid-template-columns: 40px minmax(0, 1fr) auto;
    }

    .thread-last {
        display: none;
    }
}

@media (max-width: 760px) {
    .container,
    .container-wide {
        width: calc(100% - 36px);
    }

    .header-inner {
        height: 64px;
        gap: 14px;
    }

    .quick-search {
        display: none;
    }

    .brand-text strong {
        font-size: 16px;
    }

    .brand-text small {
        font-size: 8px;
    }

    .hero {
        padding: 48px 0 44px;
    }

    .hero h1 {
        font-size: clamp(40px, 10.5vw, 56px);
    }

    .hero-lede {
        font-size: 15px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 0;
    }

    .hero-stats > div:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .section {
        padding: 52px 0 60px;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .thread-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        padding: 15px 6px;
    }

    .thread-avatar {
        display: none;
    }

    .thread-metrics {
        align-self: start;
        margin-top: 2px;
        flex-direction: column;
        gap: 3px;
    }

    .thread-metrics .icon {
        width: 12px;
        height: 12px;
    }

    .category-cards {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .forum-row {
        grid-template-columns: 40px minmax(0, 1fr) 26px;
        gap: 12px;
        padding: 15px 16px;
    }

    .forum-last {
        display: none;
    }

    .category-head {
        padding: 18px;
        flex-wrap: wrap;
    }

    .category-meta {
        width: 100%;
        padding-top: 0;
    }

    .post {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 18px;
    }

    .post-author {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        padding-right: 0;
        padding-bottom: 14px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .post-usertitle {
        display: none;
    }

    .post-author-stats {
        flex-direction: row;
        gap: 14px;
        width: auto;
        margin: 0 0 0 auto;
        padding: 0;
        border: 0;
    }

    .post-author-stats > div {
        gap: 5px;
    }

    .post-head {
        margin-bottom: 12px;
    }

    .post-time-ago {
        display: none;
    }

    .thread-hero-inner {
        flex-direction: column;
        gap: 18px;
    }

    .thread-hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .thread-hero h1 {
        font-size: 30px;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .footer-status {
        font-size: 9.5px;
    }

    .admin-user-chip {
        display: none;
    }

    .admin-top-inner {
        gap: 12px;
    }

    .admin-main {
        padding: 28px 0 56px;
    }

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

    .admin-stat > strong {
        font-size: 31px;
    }

    .chart {
        height: 160px;
    }

    .chart-label {
        display: none;
    }

    .login-card,
    .setup-card,
    .error-card {
        padding: 24px;
    }

    .setup-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-alert {
        flex-direction: column;
    }

    .search-form {
        flex-wrap: wrap;
        padding: 10px;
    }

    .search-form input {
        flex-basis: calc(100% - 40px);
    }

    .search-form .btn {
        width: 100%;
        margin-top: 4px;
    }

    .page-hero {
        padding: 40px 0 34px;
    }

    .reply-actions {
        flex-wrap: wrap;
    }

    .site-footer {
        padding-top: 38px;
    }
}

@media (max-width: 480px) {
    .header-actions {
        gap: 6px;
    }

    .hero-stats dd {
        font-size: 26px;
    }

    .hero-actions .btn {
        width: 100%;
    }

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

    .page-stats {
        flex-wrap: wrap;
        gap: 14px 0;
    }

    .page-stats > div {
        padding: 0 16px;
    }

    .thread-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .thread-toolbar-actions {
        flex-wrap: wrap;
        gap: 12px;
    }

    .admin-head-actions {
        flex-wrap: wrap;
    }

    .login-card h1 {
        font-size: 27px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}
