/*
 * Türk Cyber Team - site teması
 * style.css'in ardından yüklenir. Renk değişkenlerini yeniden tanımlar,
 * üst menü / alt bilgi / ana sayfa / forum / konu sayfalarının yeni düzenini içerir.
 * Sınıf ön eki: tx-
 */

/* ------------------------------------------------------------------ */
/* Renkler                                                             */
/* ------------------------------------------------------------------ */
:root,
html[data-theme="dark"] {
    --tx-ink: #0D1420;
    --tx-ink-2: #0A1019;
    --tx-panel: #141D2B;
    --tx-raised: #1A2536;
    --tx-hover: #18222F;
    --tx-rule: #26334A;
    --tx-rule-soft: #1E2A3D;
    --tx-text: #DCE3EC;
    --tx-strong: #F4F6F9;
    --tx-sub: #B9C4D2;
    --tx-muted: #8D9AAE;
    --tx-brass: #E2B659;
    --tx-brass-hover: #EDC676;
    --tx-brass-ink: #1A1306;
    --tx-accent-text: #E2B659;
    --tx-link: #7CC4EE;
    --tx-link-hover: #B4DDF6;
    --tx-blue: #59B6EA;
    --tx-red: #E5484D;
    --tx-green: #6FCF97;
    --tx-map-dot: #34445C;
    --tx-input: #0D1420;
    --tx-input-rule: #33425A;
    --tx-code: #0A0F18;
    --tx-shadow: 0 12px 32px rgba(0, 0, 0, .45);
    --tx-accent-rgb: 226, 182, 89;
    color-scheme: dark;
}

html[data-theme="light"] {
    --tx-ink: #F3F5F8;
    --tx-ink-2: #E8ECF1;
    --tx-panel: #FFFFFF;
    --tx-raised: #F0F3F7;
    --tx-hover: #F5F7FA;
    --tx-rule: #D5DCE5;
    --tx-rule-soft: #E4E9EF;
    --tx-text: #233042;
    --tx-strong: #0F1724;
    --tx-sub: #3F4B5C;
    --tx-muted: #5E6A7B;
    --tx-brass: #E2B659;
    --tx-brass-hover: #D6A841;
    --tx-brass-ink: #1A1306;
    --tx-accent-text: #8A5F0E;
    --tx-link: #1665A8;
    --tx-link-hover: #0E4A7E;
    --tx-blue: #1F7FC4;
    --tx-red: #C93439;
    --tx-green: #1F8A4C;
    --tx-map-dot: #C3CCD8;
    --tx-input: #FFFFFF;
    --tx-input-rule: #C2CCD8;
    --tx-code: #F0F3F7;
    --tx-shadow: 0 12px 32px rgba(15, 23, 36, .12);
    --tx-accent-rgb: 138, 95, 14;
    color-scheme: light;
}

html[data-theme="hacker"] {
    --tx-ink: #050805;
    --tx-ink-2: #030503;
    --tx-panel: #0A100A;
    --tx-raised: #0F180F;
    --tx-hover: #0D150D;
    --tx-rule: #1C3A1F;
    --tx-rule-soft: #132A15;
    --tx-text: #A8F0B0;
    --tx-strong: #D6FFDA;
    --tx-sub: #86D18F;
    --tx-muted: #5FA868;
    --tx-brass: #39FF6A;
    --tx-brass-hover: #7DFF9B;
    --tx-brass-ink: #021004;
    --tx-accent-text: #39FF6A;
    --tx-link: #7DFF9B;
    --tx-link-hover: #C2FFD0;
    --tx-blue: #39FF6A;
    --tx-red: #FF5555;
    --tx-green: #39FF6A;
    --tx-map-dot: #1E3B22;
    --tx-input: #050805;
    --tx-input-rule: #24502A;
    --tx-code: #020402;
    --tx-shadow: 0 12px 32px rgba(0, 0, 0, .6);
    --tx-accent-rgb: 57, 255, 106;
    color-scheme: dark;
}

/* Eski değişkenleri yeni renklere bağla: diğer sayfalar da aynı paleti kullanır */
:root,
html[data-theme="dark"],
html[data-theme="light"],
html[data-theme="hacker"] {
    --primary: var(--tx-accent-text);
    --primary-rgb: var(--tx-accent-rgb);
    --primary-dark: var(--tx-brass-hover);
    --secondary: var(--tx-blue);
    --accent: var(--tx-blue);
    --neon-cyan: var(--tx-blue);
    --neon-blue: var(--tx-blue);
    --neon-purple: #A98BD9;
    --neon-green: var(--tx-green);
    --success: var(--tx-green);
    --danger: var(--tx-red);
    --warning: var(--tx-brass);
    --info: var(--tx-blue);

    --bg-void: var(--tx-ink-2);
    --bg-deep: var(--tx-ink);
    --bg-primary: var(--tx-ink);
    --bg-secondary: var(--tx-panel);
    --bg-tertiary: var(--tx-raised);
    --bg-elevated: var(--tx-rule);
    --bg-hover: var(--tx-hover);
    --card-bg: var(--tx-panel);

    --glass-bg: var(--tx-panel);
    --glass-border: var(--tx-rule);
    --glass-shine: transparent;

    --border-subtle: var(--tx-rule-soft);
    --border-default: var(--tx-rule);
    --border-color: var(--tx-rule);
    --border-bright: var(--tx-input-rule);
    --border-glow: var(--tx-brass);
    --border-hover: var(--tx-input-rule);

    --text-primary: var(--tx-text);
    --text-secondary: var(--tx-sub);
    --text-muted: var(--tx-muted);
    --text-inverse: var(--tx-brass-ink);

    --glow-sm: none;
    --glow-md: none;
    --glow-lg: none;
    --glow-intense: none;

    --gradient-primary: linear-gradient(var(--tx-brass), var(--tx-brass));
    --gradient-secondary: linear-gradient(var(--tx-blue), var(--tx-blue));
    --gradient-accent: linear-gradient(var(--tx-blue), var(--tx-blue));
    --gradient-mesh: none;
    --gradient-rainbow: linear-gradient(var(--tx-brass), var(--tx-brass));

    --font-sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Archivo', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
}

/* ------------------------------------------------------------------ */
/* Temel                                                               */
/* ------------------------------------------------------------------ */
html { scroll-padding-top: 84px; }

body,
html[data-theme] body {
    background: var(--tx-ink) !important;
    color: var(--tx-text);
    font-family: var(--font-sans) !important;
    font-size: 15px;
    line-height: 1.6;
    padding-top: 0 !important;
    -webkit-font-smoothing: antialiased;
}
html[data-theme="hacker"] body { font-family: var(--font-mono) !important; font-size: 14px; }
html[data-theme="hacker"] * { text-shadow: none !important; }

body::before,
body::after { display: none !important; content: none !important; }

#particleContainer, #particleCanvas { display: none !important; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--tx-strong);
    letter-spacing: -0.01em;
    text-shadow: none !important;
}

a { color: var(--tx-link); }
a:hover { color: var(--tx-link-hover); }

::selection { background: rgba(var(--tx-accent-rgb), .35); color: var(--tx-strong); }

:focus-visible {
    outline: 2px solid var(--tx-brass) !important;
    outline-offset: 2px;
}

code, kbd, pre, samp { font-family: var(--font-mono); }

.container { max-width: 1240px; padding-left: 24px; padding-right: 24px; }

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

.tx-skip {
    position: absolute; left: 16px; top: -60px; z-index: 2000;
    background: var(--tx-brass); color: var(--tx-brass-ink); padding: 10px 16px; border-radius: 8px; font-weight: 650;
}
.tx-skip:focus { top: 12px; color: var(--tx-brass-ink); }

/* Avatar */
.tx-av {
    display: inline-grid; place-items: center; flex: none;
    border-radius: 9px; object-fit: cover; background: var(--tx-raised);
}
.tx-av-letter { color: #0D1420; font-weight: 700; line-height: 1; font-family: var(--font-sans); }
html[data-theme="hacker"] .tx-av-letter { background: var(--tx-raised) !important; color: var(--tx-brass); border: 1px solid var(--tx-rule); }

/* ------------------------------------------------------------------ */
/* Ortak bileşenler (eski sayfalar dahil)                              */
/* ------------------------------------------------------------------ */
.btn {
    font-family: var(--font-sans);
    border-radius: 8px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn::before, .btn::after { display: none !important; }
.btn:hover { transform: none !important; }

.btn-primary, .btn-glow, .tx-btn,
html[data-theme] .btn-primary, html[data-theme] .btn-glow, html[data-theme] .tx-btn,
html[data-theme] a.tx-btn, html[data-theme] button.tx-btn {
    background: var(--tx-brass) !important;
    color: var(--tx-brass-ink) !important;
    border: 1px solid var(--tx-brass) !important;
    font-weight: 650;
}
.btn-primary:hover, .btn-glow:hover, .tx-btn:hover,
html[data-theme] .btn-primary:hover, html[data-theme] .tx-btn:hover, html[data-theme] a.tx-btn:hover {
    background: var(--tx-brass-hover) !important;
    border-color: var(--tx-brass-hover) !important;
    color: var(--tx-brass-ink) !important;
}
.btn-outline, .btn-ghost, .btn-secondary, .tx-btn-line,
html[data-theme] .btn-outline, html[data-theme] .btn-ghost, html[data-theme] .btn-secondary, html[data-theme] a.tx-btn-line {
    background: transparent !important;
    color: var(--tx-strong) !important;
    border: 1px solid var(--tx-input-rule) !important;
}
.btn-outline:hover, .btn-ghost:hover, .btn-secondary:hover, .tx-btn-line:hover {
    background: var(--tx-raised) !important;
    border-color: var(--tx-muted) !important;
}
.btn-danger { background: var(--tx-red) !important; border-color: var(--tx-red) !important; color: #fff !important; }

.tx-btn, .tx-btn-line {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 18px; border-radius: 8px; font: inherit; font-size: 15px; font-weight: 650;
    text-decoration: none !important; cursor: pointer; white-space: nowrap;
}
.tx-btn-line { font-weight: 550; }
.tx-btn.sm, .tx-btn-line.sm { min-height: 36px; padding: 0 12px; font-size: 14px; }

.form-control, input[type="text"], input[type="email"], input[type="password"], input[type="search"],
input[type="url"], input[type="number"], select, textarea {
    font-family: inherit;
}
.form-control {
    background: var(--tx-input) !important;
    border: 1px solid var(--tx-input-rule) !important;
    color: var(--tx-strong) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}
.form-control:focus { border-color: var(--tx-brass) !important; box-shadow: 0 0 0 3px rgba(var(--tx-accent-rgb), .18) !important; }

.card, .widget, .auth-card, .profile-card, .settings-card {
    background: var(--tx-panel) !important;
    border: 1px solid var(--tx-rule) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}
.card::before, .widget::before, .auth-card::before { display: none !important; }

.alert {
    border-radius: 8px !important;
    border: 1px solid var(--tx-rule) !important;
    background: var(--tx-panel) !important;
    color: var(--tx-text) !important;
    box-shadow: none !important;
}
.alert-success { border-left: 3px solid var(--tx-green) !important; }
.alert-error, .alert-danger { border-left: 3px solid var(--tx-red) !important; }
.alert-warning { border-left: 3px solid var(--tx-brass) !important; }
.alert-info { border-left: 3px solid var(--tx-blue) !important; }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 28px 0 8px; }
.pagination .page-link {
    min-width: 40px; height: 40px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px; border: 1px solid var(--tx-rule); background: var(--tx-panel);
    color: var(--tx-text); font-variant-numeric: tabular-nums; text-decoration: none; box-shadow: none;
}
.pagination .page-link:hover { border-color: var(--tx-input-rule); background: var(--tx-raised); color: var(--tx-strong); }
.pagination .page-link.active { background: var(--tx-brass); border-color: var(--tx-brass); color: var(--tx-brass-ink); font-weight: 650; }
.pagination .page-dots { align-self: center; color: var(--tx-muted); padding: 0 4px; }

.flash-messages { margin-top: 20px; }

/* ------------------------------------------------------------------ */
/* Üst menü                                                            */
/* ------------------------------------------------------------------ */
.tx-header {
    position: sticky; top: 0; z-index: 900;
    background: var(--tx-ink);
    border-bottom: 1px solid var(--tx-rule);
}
.tx-header-in {
    max-width: 1240px; margin: 0 auto; padding: 0 24px;
    height: 68px; display: flex; align-items: center; gap: 24px;
}
.tx-brand {
    display: flex; align-items: center; gap: 10px; flex: none;
    color: var(--tx-strong) !important; text-decoration: none !important;
}
.tx-brand img { width: 40px; height: 40px; object-fit: contain; }
.tx-brand span {
    font-weight: 750; font-stretch: 112%; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap;
}
.tx-nav { display: flex; align-items: center; gap: 2px; }
.tx-nav a {
    white-space: nowrap;
    position: relative; display: inline-flex; align-items: center; height: 44px;
    padding: 0 12px; color: var(--tx-text); font-size: 15px; font-weight: 500; text-decoration: none; border-radius: 6px;
}
.tx-nav a:hover { color: var(--tx-strong); background: var(--tx-panel); }
.tx-nav a[aria-current="page"] { color: var(--tx-strong); font-weight: 600; }
.tx-nav a[aria-current="page"]::after {
    content: ''; position: absolute; left: 12px; right: 12px; bottom: -12px; height: 2px; background: var(--tx-brass);
}
.tx-spacer { flex: 1; }

.tx-search {
    display: flex; align-items: center; gap: 8px; height: 40px; width: 220px; padding: 0 12px;
    background: var(--tx-panel); border: 1px solid var(--tx-rule); border-radius: 8px; color: var(--tx-muted);
}
.tx-search:focus-within { border-color: var(--tx-input-rule); }
.tx-search input {
    flex: 1; min-width: 0; background: transparent !important; border: 0 !important; outline: none !important;
    color: var(--tx-strong); font: inherit; font-size: 14px; padding: 0; box-shadow: none !important;
}
.tx-search input::placeholder { color: var(--tx-muted); }

.tx-icon-btn {
    position: relative; width: 44px; height: 44px; flex: none;
    display: inline-grid; place-items: center; border-radius: 8px;
    color: var(--tx-sub); background: transparent; border: 0; cursor: pointer; font-size: 17px; text-decoration: none !important;
}
.tx-icon-btn:hover { background: var(--tx-panel); color: var(--tx-strong); }
.tx-count {
    position: absolute; top: 6px; right: 5px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; background: var(--tx-red); color: #fff; font-size: 11px; font-weight: 700;
    display: grid; place-items: center; line-height: 1; font-family: var(--font-sans);
}

.tx-actions { display: flex; align-items: center; gap: 4px; }
.tx-guest { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
html[data-theme="hacker"] .tx-nav a { font-size: 14px; padding: 0 9px; }
.tx-guest .tx-signin { color: var(--tx-text); font-weight: 500; padding: 0 10px; height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.tx-guest .tx-signin:hover { color: var(--tx-strong); }

/* Açılır menüler: <details> ile, JS gerekmez */
.tx-menu { position: relative; }
.tx-menu > summary { list-style: none; cursor: pointer; }
.tx-menu > summary::-webkit-details-marker { display: none; }
.tx-menu-panel {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; z-index: 950;
    background: var(--tx-panel); border: 1px solid var(--tx-rule); border-radius: 10px;
    box-shadow: var(--tx-shadow); padding: 6px; display: flex; flex-direction: column;
    animation: txMenuIn .14s ease-out;
}
@keyframes txMenuIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.tx-menu-panel a, .tx-menu-panel button {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 12px;
    border-radius: 7px; border: 0; background: transparent; color: var(--tx-text);
    font: inherit; font-size: 14.5px; text-align: left; cursor: pointer; text-decoration: none;
}
.tx-menu-panel a:hover, .tx-menu-panel button:hover { background: var(--tx-raised); color: var(--tx-strong); }
.tx-menu-panel i { width: 18px; text-align: center; color: var(--tx-muted); }
.tx-menu-panel hr { border: 0; border-top: 1px solid var(--tx-rule); margin: 6px 4px; }
.tx-menu-panel .is-danger { color: var(--tx-red); }
.tx-menu-panel .is-danger i { color: var(--tx-red); }
.tx-menu-panel .tx-menu-head { padding: 8px 12px 10px; font-size: 13px; color: var(--tx-muted); }
.tx-menu-panel .tx-menu-head strong { display: block; color: var(--tx-strong); font-size: 15px; }

.tx-user-sum {
    display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 4px; border-radius: 8px; color: var(--tx-text);
}
.tx-user-sum:hover { background: var(--tx-panel); }
.tx-user-sum .tx-av { width: 34px; height: 34px; border-radius: 8px; }
.tx-user-sum .tx-name { font-size: 15px; font-weight: 550; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.theme-option .check-icon { margin-left: auto; opacity: 0; color: var(--tx-accent-text) !important; }
.theme-option.active .check-icon { opacity: 1; }
.theme-option.active { color: var(--tx-strong); }

.tx-burger { display: none; }

/* Mobil çekmece */
.tx-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); z-index: 1001;
    background: var(--tx-panel); border-left: 1px solid var(--tx-rule);
    transform: translateX(100%); transition: transform .22s ease; display: flex; flex-direction: column;
    visibility: hidden;
}
.tx-drawer.active { transform: none; visibility: visible; }
.tx-drawer-head {
    height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 20px;
    border-bottom: 1px solid var(--tx-rule); font-weight: 700; color: var(--tx-strong);
}
.tx-drawer-links { padding: 10px; overflow-y: auto; display: flex; flex-direction: column; }
.tx-drawer-links a {
    display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 8px;
    color: var(--tx-text); text-decoration: none; font-size: 16px;
}
.tx-drawer-links a:hover { background: var(--tx-raised); }
.tx-drawer-links a i { width: 20px; text-align: center; color: var(--tx-muted); }
.tx-drawer-links hr { border: 0; border-top: 1px solid var(--tx-rule); margin: 8px 6px; }
.tx-drawer-search { padding: 14px 20px 4px; }
.tx-drawer-search .tx-search { width: 100%; }
.tx-overlay {
    position: fixed; inset: 0; z-index: 1000; background: rgba(5, 8, 14, .6);
    opacity: 0; visibility: hidden; transition: opacity .2s ease;
}
.tx-overlay.active { opacity: 1; visibility: visible; }

/* Eski mobil menü kalıntılarını gizle */
.mobile-menu, .mobile-menu-overlay, .mobile-menu-toggle { display: none !important; }

@media (max-width: 1080px) {
    .tx-search.in-bar { display: none; }
}
@media (max-width: 900px) {
    .tx-nav { display: none; }
    .tx-burger { display: inline-grid; }
    .tx-user-sum .tx-name, .tx-user-sum .fa-chevron-down { display: none; }
}
@media (max-width: 520px) {
    .tx-header-in { gap: 8px; padding: 0 12px; }
    .tx-brand span { font-size: 15px; }
    .tx-guest .tx-btn { padding: 0 12px; }
    .tx-hide-xs { display: none !important; }
}

/* ------------------------------------------------------------------ */
/* Alt bilgi                                                           */
/* ------------------------------------------------------------------ */
.tx-footer {
    margin-top: 64px; border-top: 1px solid var(--tx-rule); background: var(--tx-ink-2);
    color: var(--tx-muted); font-size: 14px;
}
.tx-footer-in {
    max-width: 1240px; margin: 0 auto; padding: 40px 24px 28px;
    display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px;
}
.tx-footer h2 { font-size: 15px; font-weight: 700; margin: 0 0 12px; color: var(--tx-strong); }
.tx-footer p { margin: 0; line-height: 1.6; max-width: 34em; }
.tx-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tx-footer a { color: var(--tx-sub); text-decoration: none; }
.tx-footer a:hover { color: var(--tx-strong); text-decoration: underline; }
.tx-social { display: flex; gap: 6px; margin-top: 16px; }
.tx-social a {
    width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px;
    border: 1px solid var(--tx-rule); color: var(--tx-sub); font-size: 16px;
}
.tx-social a:hover { border-color: var(--tx-input-rule); color: var(--tx-strong); text-decoration: none; }
.tx-footer-base {
    max-width: 1240px; margin: 0 auto; padding: 16px 24px 28px; border-top: 1px solid var(--tx-rule-soft);
    display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}
@media (max-width: 820px) {
    .tx-footer-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .tx-footer-in > :first-child { grid-column: 1 / -1; }
}

/* Çerez bildirimi */
.cookie-consent {
    background: var(--tx-panel) !important; border: 1px solid var(--tx-rule) !important;
    box-shadow: var(--tx-shadow) !important; backdrop-filter: none !important; border-radius: 10px !important;
}

/* ------------------------------------------------------------------ */
/* Sayfa iskeleti                                                      */
/* ------------------------------------------------------------------ */
.main-content { min-height: 50vh; }
.tx-wrap { max-width: 1240px; margin: 0 auto; padding: 40px 24px 0; }
.tx-cols { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; align-items: start; }
.tx-stack { display: flex; flex-direction: column; gap: 52px; min-width: 0; }
.tx-side { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
@media (max-width: 1060px) { .tx-cols { grid-template-columns: minmax(0, 1fr); } }

.tx-pagehead { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px 20px; margin-bottom: 28px; }
.tx-pagehead h1 {
    margin: 0; font-size: clamp(30px, 4vw, 40px); line-height: 1.08; font-weight: 760; font-stretch: 116%; letter-spacing: -0.02em;
}
.tx-pagehead p { margin: 8px 0 0; color: var(--tx-sub); font-size: 16px; max-width: 46em; }

.tx-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--tx-muted); margin-bottom: 14px; }
.tx-crumbs a { color: var(--tx-sub); text-decoration: none; }
.tx-crumbs a:hover { color: var(--tx-strong); text-decoration: underline; }
.tx-crumbs .sep { color: var(--tx-rule); }

.tx-sechead { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 14px; }
.tx-sechead h2 { margin: 0; font-size: 24px; font-weight: 720; font-stretch: 110%; letter-spacing: -0.015em; }
.tx-sechead .note { font-size: 14px; color: var(--tx-muted); }
.tx-sechead .more { font-size: 15px; margin-left: auto; }

.tx-panel { background: var(--tx-panel); border: 1px solid var(--tx-rule); border-radius: 10px; overflow: hidden; }

.tx-side h2 { font-size: 17px; font-weight: 700; margin: 0 0 10px; }
.tx-side .tx-box { background: var(--tx-panel); border: 1px solid var(--tx-rule); border-radius: 10px; padding: 20px; }

.tx-empty { padding: 36px 20px; text-align: center; color: var(--tx-muted); }
.tx-empty strong { display: block; color: var(--tx-strong); font-size: 17px; margin-bottom: 6px; }
.tx-empty .tx-btn { margin-top: 14px; }

/* ------------------------------------------------------------------ */
/* Konu satırları (ana sayfa, forum, arama)                            */
/* ------------------------------------------------------------------ */
.tx-trow {
    display: grid; grid-template-columns: 40px minmax(0, 1fr) 72px 92px 132px; gap: 16px; align-items: center;
    padding: 14px 18px; border-top: 1px solid var(--tx-rule-soft); color: var(--tx-text);
}
.tx-trow.head { border-top: 0; padding-top: 10px; padding-bottom: 10px; font-size: 12.5px; color: var(--tx-muted); border-bottom: 1px solid var(--tx-rule); }
.tx-trow.head + .tx-trow { border-top: 0; }
.tx-trow:not(.head):hover { background: var(--tx-hover); }
.tx-trow .num { text-align: right; font-variant-numeric: tabular-nums; }
.tx-trow .num.dim { color: var(--tx-muted); }
.tx-trow .when { text-align: right; font-size: 13.5px; color: var(--tx-muted); line-height: 1.35; }
.tx-trow .when a { color: var(--tx-sub); }
.tx-trow.is-pinned { background: rgba(var(--tx-accent-rgb), .045); }
.tx-tmain { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tx-ttitle {
    font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--tx-strong) !important; text-decoration: none !important;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.tx-ttitle:hover { color: var(--tx-link-hover) !important; }
.tx-ttitle:visited { color: var(--tx-sub) !important; }
.tx-tmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--tx-muted); }
.tx-tmeta a { color: var(--tx-sub); text-decoration: none; }
.tx-tmeta a:hover { color: var(--tx-strong); text-decoration: underline; }
.tx-flag { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.tx-flag.pin { color: var(--tx-accent-text); }
.tx-flag.lock { color: var(--tx-muted); }
.tx-flag.ok { color: var(--tx-green); }
.tx-flag.vip { color: var(--tx-accent-text); }
.tx-catdot { display: inline-flex; align-items: center; gap: 6px; color: var(--tx-sub) !important; }
.tx-catdot::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--dot, var(--tx-muted)); }

@media (max-width: 900px) {
    .tx-trow { grid-template-columns: 40px minmax(0, 1fr) 56px; }
    .tx-trow .hide-md { display: none; }
}

/* ------------------------------------------------------------------ */
/* Ana sayfa                                                           */
/* ------------------------------------------------------------------ */
.tx-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--tx-rule); background: var(--tx-ink); }
.tx-hero-in {
    max-width: 1240px; margin: 0 auto; padding: 60px 24px 48px;
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: center;
}
.tx-hero-copy { display: flex; flex-direction: column; gap: 22px; position: relative; z-index: 1; }
.tx-live { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--tx-sub); min-height: 22px; }
.tx-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tx-red); flex: none; animation: txBlink 1.6s steps(2, start) infinite; }
@keyframes txBlink { to { opacity: .25; } }
.tx-live strong { color: var(--tx-strong); font-variant-numeric: tabular-nums; font-weight: 650; }
.tx-hero h1 {
    margin: 0; font-size: clamp(38px, 5.2vw, 62px); line-height: 1.02; font-weight: 760; font-stretch: 118%;
    letter-spacing: -0.025em; color: var(--tx-strong); max-width: 11em;
}
.tx-hero-lead { margin: 0; font-size: 18px; line-height: 1.55; color: var(--tx-sub); max-width: 31em; }
.tx-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.tx-hero-cta .tx-btn, .tx-hero-cta .tx-btn-line { min-height: 48px; padding: 0 22px; font-size: 16px; }

.tx-feed { list-style: none; margin: 8px 0 0; padding: 14px 0 0; border-top: 1px solid var(--tx-rule); display: flex; flex-direction: column; }
.tx-feed li {
    display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 12px; padding: 6px 0;
    font-size: 13.5px; color: var(--tx-sub);
}
.tx-feed li.is-new { animation: txFeedIn .5s ease-out; }
@keyframes txFeedIn { from { background: rgba(var(--tx-accent-rgb), .12); } to { background: transparent; } }
.tx-feed time { font-family: var(--font-mono); color: var(--tx-muted); font-size: 12.5px; }
.tx-feed .src { color: var(--tx-muted); }

.tx-map { margin: 0; position: relative; }
.tx-map svg { width: 100%; height: auto; display: block; }
.tx-map .land { fill: url(#txDots); }
.tx-map .dot-fill { fill: var(--tx-map-dot); }
.tx-map .arc-base { fill: none; stroke-width: 1.4; opacity: .16; }
.tx-map .arc {
    fill: none; stroke-width: 1.8; stroke-linecap: round;
    stroke-dasharray: .18 1.2; stroke-dashoffset: .18; opacity: 0;
    animation: txTrace 3.6s cubic-bezier(.55, .1, .35, 1) infinite;
}
@keyframes txTrace {
    0% { stroke-dashoffset: .18; opacity: 0; }
    8% { opacity: 1; }
    85% { opacity: 1; }
    100% { stroke-dashoffset: -1; opacity: 0; }
}
.tx-map .src-dot { fill: var(--tx-muted); }
.tx-map .target { fill: var(--tx-red); }
.tx-map .ping {
    fill: none; stroke: var(--tx-red); stroke-width: 1;
    transform-box: fill-box; transform-origin: center; animation: txPing 2.4s ease-out infinite;
}
.tx-map .ping.p2 { animation-delay: 1.2s; }
@keyframes txPing { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(6); opacity: 0; } }
.tx-map .k-brute { stroke: var(--tx-brass); }
.tx-map .k-mal { stroke: var(--tx-red); }
.tx-map .k-scan { stroke: var(--tx-blue); }
.tx-map figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 13px; color: var(--tx-muted); margin-top: 6px; padding-left: 8px; }
.tx-map figcaption .key { display: inline-flex; align-items: center; gap: 8px; }
.tx-map figcaption .key::before { content: ''; width: 18px; height: 2px; background: var(--k); }
.tx-map figcaption a { margin-left: auto; }
.tx-map-paused .arc, .tx-map-paused .ping { animation-play-state: paused; }

@media (max-width: 1000px) {
    .tx-hero-in { grid-template-columns: minmax(0, 1fr); padding-top: 40px; }
    .tx-map { order: -1; margin: 0 -8px; }
}

.tx-tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--tx-panel); border: 1px solid var(--tx-rule); border-radius: 8px; }
.tx-tabs button {
    min-height: 34px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent;
    color: var(--tx-muted); font: inherit; font-size: 14px; cursor: pointer;
}
.tx-tabs button:hover { color: var(--tx-strong); }
.tx-tabs button[aria-selected="true"] { background: var(--tx-rule); color: var(--tx-strong); font-weight: 600; }

.tx-blog { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; }
.tx-blog-lead { display: flex; flex-direction: column; gap: 10px; color: var(--tx-text) !important; text-decoration: none !important; }
.tx-blog-lead .img {
    aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--tx-panel); border: 1px solid var(--tx-rule);
    margin-bottom: 4px;
}
.tx-blog-lead .img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.tx-blog-lead:hover .img img { transform: scale(1.02); }
.tx-blog-cat { font-size: 13px; font-weight: 600; color: var(--c, var(--tx-accent-text)); }
html[data-theme="light"] .tx-blog-cat { color: var(--tx-accent-text); }
.tx-blog-lead h3 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 700; font-stretch: 106%; }
.tx-blog-lead:hover h3 { color: var(--tx-link-hover); }
.tx-blog-lead p { margin: 0; color: var(--tx-sub); line-height: 1.55; }
.tx-blog-by { font-size: 13px; color: var(--tx-muted); }
.tx-blog-list { display: flex; flex-direction: column; }
.tx-blog-item { display: flex; flex-direction: column; gap: 5px; padding: 16px 0; border-bottom: 1px solid var(--tx-rule); text-decoration: none !important; }
.tx-blog-item:first-child { padding-top: 0; }
.tx-blog-item strong { font-size: 17px; line-height: 1.3; font-weight: 650; color: var(--tx-strong); }
.tx-blog-item:hover strong { color: var(--tx-link-hover); }
@media (max-width: 760px) { .tx-blog { grid-template-columns: minmax(0, 1fr); } }

.tx-login { display: flex; flex-direction: column; gap: 14px; }
.tx-field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--tx-sub); }
.tx-field input, .tx-input {
    height: 44px; background: var(--tx-input); border: 1px solid var(--tx-input-rule); border-radius: 8px;
    color: var(--tx-strong); font: inherit; font-size: 15px; padding: 0 12px; outline: none;
}
.tx-field input:focus, .tx-input:focus { border-color: var(--tx-brass); box-shadow: 0 0 0 3px rgba(var(--tx-accent-rgb), .18); }
.tx-login-links { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }

.tx-online { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14.5px; }
.tx-online a { text-decoration: none; }
.tx-online a:hover { text-decoration: underline; }
.tx-online .more { color: var(--tx-muted); }

.tx-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tx-list a {
    display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin: 0 -10px; border-radius: 7px;
    color: var(--tx-text); text-decoration: none; font-size: 15px;
}
.tx-list a:hover { background: var(--tx-hover); color: var(--tx-strong); }
.tx-list .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-list .n { color: var(--tx-muted); font-variant-numeric: tabular-nums; font-size: 14px; }
.tx-list .sw { width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--tx-muted)); flex: none; }

.tx-stats { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; font-size: 14.5px; }
.tx-stats dt { color: var(--tx-muted); }
.tx-stats dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; color: var(--tx-strong); }

/* ------------------------------------------------------------------ */
/* Forum ana sayfası                                                   */
/* ------------------------------------------------------------------ */
.tx-group { display: flex; flex-direction: column; gap: 12px; }
.tx-group + .tx-group { margin-top: 36px; }
.tx-group-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.tx-group-head h2 { margin: 0; font-size: 20px; font-weight: 720; font-stretch: 110%; }
.tx-group-head p { margin: 0; font-size: 14px; color: var(--tx-muted); }

.tx-frow {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) 76px 76px 240px; gap: 18px; align-items: center;
    padding: 16px 20px; border-top: 1px solid var(--tx-rule-soft);
}
.tx-frow.head { border-top: 0; padding-top: 10px; padding-bottom: 10px; font-size: 12.5px; color: var(--tx-muted); border-bottom: 1px solid var(--tx-rule); }
.tx-frow.head + .tx-frow { border-top: 0; }
.tx-frow:not(.head):hover { background: var(--tx-hover); }
.tx-ficon {
    width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 18px;
    color: var(--c, var(--tx-accent-text));
    background: color-mix(in srgb, var(--c, var(--tx-brass)) 14%, var(--tx-panel));
}
html[data-theme="hacker"] .tx-ficon { color: var(--tx-brass); background: var(--tx-raised); }
.tx-fmain { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tx-fname { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 650; color: var(--tx-strong) !important; text-decoration: none !important; }
.tx-fname:hover { color: var(--tx-link-hover) !important; }
.tx-fname::after { content: ''; position: absolute; inset: 0; }
.tx-frow { position: relative; }
.tx-frow .tx-flast, .tx-frow .tx-flag { position: relative; z-index: 1; }
.tx-fdesc { font-size: 14px; line-height: 1.45; color: var(--tx-sub); }
.tx-frow .num { text-align: right; font-variant-numeric: tabular-nums; font-size: 16px; }
.tx-frow .num.dim { color: var(--tx-muted); }
.tx-flast { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: center; min-width: 0; text-decoration: none !important; }
.tx-flast .tx-av { width: 32px; height: 32px; border-radius: 7px; }
.tx-flast .t { font-size: 14px; font-weight: 550; color: var(--tx-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.tx-flast:hover .t { color: var(--tx-link-hover); }
.tx-flast .m { font-size: 12.5px; color: var(--tx-muted); display: block; }
.tx-flast-none { font-size: 13.5px; color: var(--tx-muted); }

@media (max-width: 960px) {
    .tx-frow { grid-template-columns: 44px minmax(0, 1fr) 64px; }
    .tx-frow .hide-md { display: none; }
}
@media (max-width: 560px) {
    .tx-frow { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 14px 16px; }
    .tx-frow .hide-sm { display: none; }
    .tx-ficon { width: 40px; height: 40px; }
}

/* Forum (alt kategori) başlığı */
.tx-forumhead { display: flex; align-items: flex-start; gap: 16px; }
.tx-forumhead .tx-ficon { width: 52px; height: 52px; font-size: 22px; border-radius: 12px; }
.tx-forumhead .facts { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--tx-muted); margin-top: 8px; }

/* ------------------------------------------------------------------ */
/* Konu sayfası                                                        */
/* ------------------------------------------------------------------ */
.tx-thread-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 24px; margin-bottom: 24px; }
.tx-thread-head .title { flex: 1 1 520px; min-width: 0; }
.tx-thread-head h1 {
    margin: 6px 0 10px; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; font-weight: 740; font-stretch: 110%;
    letter-spacing: -0.02em; overflow-wrap: anywhere;
}
.tx-thread-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 14px; color: var(--tx-muted); }
.tx-thread-facts a { color: var(--tx-sub); }
.tx-thread-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.tx-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
    border-radius: 8px; border: 1px solid var(--tx-rule); background: var(--tx-panel);
    color: var(--tx-sub); font: inherit; font-size: 14px; cursor: pointer;
    font-variant-numeric: tabular-nums; transition: border-color .15s, color .15s, background-color .15s;
}
.tx-toggle:hover { border-color: var(--tx-input-rule); color: var(--tx-strong); }
.tx-toggle.active { border-color: var(--tx-brass); color: var(--tx-accent-text); background: rgba(var(--tx-accent-rgb), .08); }
.tx-toggle.active.is-like { border-color: var(--tx-red); color: var(--tx-red); background: rgba(229, 72, 77, .08); }
.tx-toggle.pop i { animation: txPop .35s ease-out; }
@keyframes txPop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

.tx-post {
    display: grid; grid-template-columns: 200px minmax(0, 1fr);
    background: var(--tx-panel); border: 1px solid var(--tx-rule); border-radius: 10px; overflow: hidden;
    scroll-margin-top: 90px;
}
.tx-post + .tx-post { margin-top: 16px; }
.tx-post.is-op { border-color: var(--tx-input-rule); }
.tx-post.is-solution { border-color: var(--tx-green); }
.tx-post:target { animation: txTarget 1.6s ease-out; }
@keyframes txTarget { from { box-shadow: 0 0 0 3px rgba(var(--tx-accent-rgb), .55); } to { box-shadow: 0 0 0 3px transparent; } }

.tx-author {
    padding: 22px 18px; border-right: 1px solid var(--tx-rule-soft); background: var(--tx-raised);
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0;
}
.tx-author .tx-av { width: 64px; height: 64px; border-radius: 12px; margin-bottom: 6px; }
.tx-author .tx-av-letter { font-size: 26px !important; }
.tx-author .who { font-size: 16px; font-weight: 650; color: var(--tx-strong); text-decoration: none; overflow-wrap: anywhere; }
.tx-author .who:hover { text-decoration: underline; }
.tx-author .role { font-size: 13px; font-weight: 600; color: var(--rc, var(--tx-sub)); display: inline-flex; align-items: center; gap: 6px; }
.tx-author .facts { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; color: var(--tx-muted); display: flex; flex-direction: column; gap: 3px; }
.tx-author .facts strong { color: var(--tx-sub); font-weight: 600; font-variant-numeric: tabular-nums; }

.tx-pbody { display: flex; flex-direction: column; min-width: 0; }
.tx-pbar {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding: 12px 22px;
    border-bottom: 1px solid var(--tx-rule-soft); font-size: 13.5px; color: var(--tx-muted);
}
.tx-pbar .permalink { margin-left: auto; color: var(--tx-muted); text-decoration: none; font-variant-numeric: tabular-nums; }
.tx-pbar .permalink:hover { color: var(--tx-strong); }
.tx-solution-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--tx-green); font-weight: 650; }

.tx-content {
    padding: 22px 22px 8px; font-size: 16px; line-height: 1.72; color: var(--tx-text); overflow-wrap: anywhere; min-height: 80px;
}
.tx-content > :first-child { margin-top: 0; }
.tx-content p { margin: 0 0 1em; }
.tx-content h1, .tx-content h2, .tx-content h3 { margin: 1.4em 0 .5em; line-height: 1.25; }
.tx-content h1 { font-size: 24px; } .tx-content h2 { font-size: 21px; } .tx-content h3 { font-size: 18px; }
.tx-content img { max-width: 100%; height: auto; border-radius: 8px; }
.tx-content a { color: var(--tx-link); text-decoration: underline; text-underline-offset: 2px; }
.tx-content ul, .tx-content ol { padding-left: 1.4em; margin: 0 0 1em; }
.tx-content blockquote {
    margin: 0 0 1em; padding: 12px 16px; border-left: 3px solid var(--tx-input-rule);
    background: var(--tx-raised); border-radius: 0 8px 8px 0; color: var(--tx-sub);
}
.tx-content code { font-size: .9em; background: var(--tx-code); border: 1px solid var(--tx-rule-soft); padding: 1px 6px; border-radius: 5px; }
.tx-content pre {
    background: var(--tx-code); border: 1px solid var(--tx-rule); border-radius: 8px; padding: 14px 16px;
    overflow-x: auto; font-size: 13.5px; line-height: 1.6; margin: 0 0 1em; position: relative;
}
.tx-content pre code { background: none; border: 0; padding: 0; }
.tx-content table { border-collapse: collapse; width: 100%; margin: 0 0 1em; display: block; overflow-x: auto; }
.tx-content th, .tx-content td { border: 1px solid var(--tx-rule); padding: 8px 10px; text-align: left; }
.tx-content iframe { max-width: 100%; border: 0; border-radius: 8px; }

.tx-copy {
    position: absolute; top: 8px; right: 8px; min-height: 30px; padding: 0 10px; border-radius: 6px;
    border: 1px solid var(--tx-rule); background: var(--tx-panel); color: var(--tx-sub);
    font: inherit; font-size: 12.5px; cursor: pointer; opacity: 0; transition: opacity .15s;
}
.tx-content pre:hover .tx-copy, .tx-copy:focus-visible { opacity: 1; }
.tx-copy.done { color: var(--tx-green); border-color: var(--tx-green); opacity: 1; }

.tx-sig { margin: 4px 22px 0; padding: 12px 0 4px; border-top: 1px dashed var(--tx-rule); font-size: 13.5px; color: var(--tx-muted); }
.tx-sig img { max-height: 120px; }

.tx-pfoot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 10px 16px 14px 22px; margin-top: auto; }
.tx-pfoot .gap { flex: 1; }
.tx-act {
    display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 10px; border-radius: 7px;
    border: 0; background: transparent; color: var(--tx-muted); font: inherit; font-size: 13.5px; cursor: pointer;
    text-decoration: none !important; font-variant-numeric: tabular-nums;
}
.tx-act:hover { background: var(--tx-raised); color: var(--tx-strong); }
.tx-act.active { color: var(--tx-accent-text); }
.tx-act.active.is-like { color: var(--tx-red); }
.tx-act.is-danger:hover { color: var(--tx-red); }
.tx-act.is-ok:hover { color: var(--tx-green); }
.tx-act.pop i { animation: txPop .35s ease-out; }

.tx-replies-head { display: flex; align-items: baseline; gap: 12px; margin: 36px 0 14px; }
.tx-replies-head h2 { margin: 0; font-size: 20px; font-weight: 700; }
.tx-replies-head span { color: var(--tx-muted); font-size: 14px; }

@media (max-width: 760px) {
    .tx-post { grid-template-columns: minmax(0, 1fr); }
    .tx-author {
        flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding: 14px 16px;
        border-right: 0; border-bottom: 1px solid var(--tx-rule-soft);
    }
    .tx-author .tx-av { width: 40px; height: 40px; border-radius: 9px; margin: 0; }
    .tx-author .tx-av-letter { font-size: 17px !important; }
    .tx-author .facts { display: none; }
    .tx-content { padding: 18px 16px 6px; }
    .tx-pbar { padding: 10px 16px; }
    .tx-sig { margin: 4px 16px 0; }
    .tx-pfoot { padding: 8px 10px 12px 12px; }
}

/* Anket */
.tx-poll { margin-top: 16px; padding: 20px 22px; }
.tx-poll-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.tx-poll-head h2 { margin: 0; font-size: 18px; }
.tx-poll-head span { font-size: 13.5px; color: var(--tx-muted); }
.tx-poll-opts { display: flex; flex-direction: column; gap: 10px; }
.tx-poll-opt {
    position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; width: 100%;
    min-height: 48px; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--tx-rule);
    background: var(--tx-raised); color: var(--tx-text); font: inherit; font-size: 15px; text-align: left;
}
button.tx-poll-opt { cursor: pointer; }
button.tx-poll-opt:hover { border-color: var(--tx-brass); }
.tx-poll-opt.selected { border-color: var(--tx-brass); }
.tx-poll-opt .bar { position: absolute; inset: 0 auto 0 0; background: rgba(var(--tx-accent-rgb), .14); width: 0; transition: width .6s ease; }
.tx-poll-opt .lbl { position: relative; flex: 1; }
.tx-poll-opt .pct { position: relative; font-variant-numeric: tabular-nums; color: var(--tx-sub); font-size: 14px; }
.tx-poll-note { margin: 12px 0 0; font-size: 13.5px; color: var(--tx-muted); }

/* Cevap kutusu */
.tx-reply { margin-top: 32px; }
.tx-reply h2 { margin: 0 0 12px; font-size: 20px; font-weight: 700; }
.tx-editor { border: 1px solid var(--tx-input-rule); border-radius: 10px; overflow: hidden; background: var(--tx-input); }
.tx-editor:focus-within { border-color: var(--tx-brass); box-shadow: 0 0 0 3px rgba(var(--tx-accent-rgb), .15); }
.tx-editor-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px; background: var(--tx-raised);
    border-bottom: 1px solid var(--tx-rule);
}
.tx-editor-bar button {
    width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 6px;
    background: transparent; color: var(--tx-sub); cursor: pointer; font-size: 14px;
}
.tx-editor-bar button:hover { background: var(--tx-panel); color: var(--tx-strong); }
.tx-editor-bar .div { width: 1px; height: 22px; background: var(--tx-rule); margin: 0 6px; }
.tx-editor-area {
    min-height: 200px; padding: 16px; color: var(--tx-text); font-size: 15.5px; line-height: 1.7; outline: none; overflow-wrap: anywhere;
}
.tx-editor-area:empty::before { content: attr(data-placeholder); color: var(--tx-muted); }
.tx-editor-area blockquote { border-left: 3px solid var(--tx-input-rule); padding: 8px 14px; margin: 8px 0; background: var(--tx-raised); }
.tx-editor-area pre { background: var(--tx-code); padding: 12px; border-radius: 8px; font-family: var(--font-mono); font-size: 13.5px; }
.tx-editor-area img { max-width: 100%; }
.tx-reply-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: 13.5px; color: var(--tx-muted); }
.tx-notice {
    margin-top: 32px; padding: 20px 22px; border: 1px dashed var(--tx-input-rule); border-radius: 10px;
    color: var(--tx-sub); display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}

.tx-toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 3000; transform: translate(-50%, 20px); opacity: 0;
    background: var(--tx-panel); color: var(--tx-strong); border: 1px solid var(--tx-input-rule); border-radius: 10px;
    padding: 12px 18px; box-shadow: var(--tx-shadow); font-size: 14.5px; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px);
}
.tx-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------ */
/* Hareket azaltma                                                     */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .tx-map .arc { opacity: .9; stroke-dasharray: none; }
    .tx-live-dot { animation: none; }
}

/* Yazdırma */
@media print {
    .tx-header, .tx-footer, .tx-reply, .tx-pfoot, .tx-thread-tools, .cookie-consent { display: none !important; }
    body { background: #fff !important; color: #000; }
    .tx-post { border-color: #ccc; }
}

.tx-frow.head .num, .tx-trow.head .num { font-size: 12.5px; }

/* Üyelere özel menü öğeleri (giriş yapmamış ziyaretçiye kilit işareti) */
.tx-lock { font-size: 10px; margin-left: 6px; color: var(--tx-muted); }

/* Ana sayfa haritası: kara listedeki IP yoğunluğu (ülke noktaları) */
.tx-map .spot { fill: var(--tx-brass); fill-opacity: .5; stroke: var(--tx-brass); stroke-opacity: .9; stroke-width: .8;
    transform-box: fill-box; transform-origin: center; animation: txSpotIn .6s cubic-bezier(.2,.8,.3,1.2) both; }
.tx-map .spot.is-tr { fill: var(--tx-red); stroke: var(--tx-red); }
.tx-map .spots .spot:nth-child(2) { animation-delay: .08s } .tx-map .spots .spot:nth-child(3) { animation-delay: .16s }
.tx-map .spots .spot:nth-child(4) { animation-delay: .24s } .tx-map .spots .spot:nth-child(5) { animation-delay: .32s }
.tx-map .spots .spot:nth-child(n+6) { animation-delay: .4s }
@keyframes txSpotIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
