/* Sözlük — bento ortak bileşenleri (tüm sayfalar) */
.bx{max-width:1360px;margin:0 auto;padding:1.25rem 1rem 2.5rem;display:flex;flex-direction:column;gap:1rem}
@media (min-width:640px){.bx{padding:1.5rem 1.5rem 3rem}}
.bx-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.bx-s2{grid-column:span 2}.bx-s4{grid-column:1/-1}
.bx-tile{background:rgb(var(--card));border:1px solid rgb(var(--line-soft));border-radius:22px;padding:1.375rem;min-width:0;display:flex;flex-direction:column;gap:.875rem;box-shadow:none}
.bx-soft{background:rgb(var(--n-100))}
.bx-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem}
.bx-title{margin:0;display:flex;align-items:center;gap:.5rem;font:700 1.25rem/1.2 var(--font-display);letter-spacing:-.02em;color:rgb(var(--ink))}
.bx-title i{font-size:1rem;color:rgb(var(--n-500))}
.bx-more{font-size:.8125rem;font-weight:600;color:rgb(var(--accent-strong));text-decoration:none}
.bx-more:hover{text-decoration:underline}
.bx-mono{font-family:var(--font-mono);font-size:.75rem;font-weight:500;color:rgb(var(--n-500))}

/* öne çıkan */

.bx-badge{background:rgb(var(--mark));color:#14120e;font-family:var(--font-mono);font-size:.75rem;padding:.3rem .65rem;border-radius:999px}

.bx-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;padding-top:1rem;border-top:1px solid rgb(var(--line-soft))}

.bx-ava {width:2.5rem;height:2.5rem;border-radius:12px;object-fit:cover;display:grid;place-items:center;color:#fff;font-weight:700;font-size:.875rem;flex:none}

/* istatistik + cta */
.bx-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}
.bx-num{display:block;font:800 1.625rem/1.1 var(--font-display);letter-spacing:-.03em;color:rgb(var(--ink))}
.bx-cta{background:rgb(var(--accent-strong));border-color:rgb(var(--accent-strong));color:rgb(var(--on-accent));justify-content:space-between}
.bx-cta p{margin:0;font:800 1.625rem/1.05 var(--font-display);letter-spacing:-.03em}
.bx-cta a{align-self:flex-start;min-height:44px;padding:0 1.1rem;border-radius:999px;background:rgb(var(--on-accent));color:rgb(var(--accent-strong));display:inline-flex;align-items:center;gap:.5rem;font-weight:600;font-size:.875rem;text-decoration:none}

/* kategoriler */

/* aktivite widget'ı kutunun içinde düz görünsün */

/* entry akışı */
.bx-feed{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.875rem}

.bx-card{background:rgb(var(--n-100));border-radius:16px;padding:1.125rem;display:flex;flex-direction:column;gap:.625rem;min-width:0}
.bx-card-title{font:700 1.125rem/1.25 var(--font-display);letter-spacing:-.02em;color:rgb(var(--ink));text-decoration:none;overflow-wrap:anywhere}
.bx-card-title:hover{color:rgb(var(--accent-strong))}
.bx-card .entry-text{font-size:.9375rem;line-height:1.6}
.bx-card .bx-foot{margin-top:auto;padding-top:.625rem}
.bx .action-btn{border-radius:999px;border:1px solid rgb(var(--line-soft));background:transparent;box-shadow:none;min-height:36px;padding:0 .75rem}
.bx .action-btn:active{transform:none}

@media (max-width:1040px){.bx-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:660px){.bx-grid{grid-template-columns:minmax(0,1fr)}.bx-s2 {grid-column:auto}.bx-feed{grid-template-columns:minmax(0,1fr)}.bx-tile{border-radius:18px;padding:1.125rem}}

/* ---------- sayfa iskeleti: ana sütun + yan sütun ---------- */
.bx-page{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;align-items:start}
.bx-main{grid-column:span 3;display:flex;flex-direction:column;gap:1rem;min-width:0}
.bx-aside{display:flex;flex-direction:column;gap:1rem;min-width:0}
@media (max-width:1040px){.bx-page{grid-template-columns:minmax(0,1fr)}.bx-main{grid-column:auto}}

.bx-h1{margin:0;font:800 clamp(1.875rem,4vw,2.875rem)/1.05 var(--font-display);letter-spacing:-.035em;color:rgb(var(--ink));overflow-wrap:anywhere}
.bx-crumb{display:flex;gap:.5rem;flex-wrap:wrap;font-family:var(--font-mono);font-size:.75rem;color:rgb(var(--n-500))}
.bx-crumb a{color:rgb(var(--n-600));text-decoration:none}
.bx-crumb a:hover{color:rgb(var(--accent-strong))}

.bx-chip{display:inline-flex;align-items:center;gap:.4rem;font-family:var(--font-mono);font-size:.75rem;color:rgb(var(--n-600));background:rgb(var(--n-100));padding:.35rem .7rem;border-radius:999px;text-decoration:none}
a.bx-chip:hover{color:rgb(var(--ink))}
.bx-chip.mark{background:rgb(var(--mark));color:#14120e}
.bx-bar{display:flex;flex-wrap:wrap;gap:.625rem;justify-content:space-between;align-items:center;padding-top:.875rem;border-top:1px solid rgb(var(--line-soft))}
.bx-btn{min-height:40px;padding:0 1rem;border-radius:999px;border:0;background:rgb(var(--accent-strong));color:rgb(var(--on-accent));font-weight:600;font-size:.875rem;display:inline-flex;align-items:center;gap:.5rem;cursor:pointer;text-decoration:none}
.bx-btn:hover{filter:brightness(1.08);color:rgb(var(--on-accent))}
.bx-btn.ghost{background:transparent;color:rgb(var(--ink));border:1px solid rgb(var(--line-soft))}
.bx-btn.ghost:hover{border-color:rgb(var(--accent-strong));color:rgb(var(--accent-strong));filter:none}
.bx-seg{display:flex;gap:4px;background:rgb(var(--n-100));padding:4px;border-radius:999px;flex-wrap:wrap}
.bx-seg a{min-height:34px;padding:0 .875rem;border-radius:999px;display:inline-flex;align-items:center;font-size:.8125rem;font-weight:600;color:rgb(var(--n-500));text-decoration:none}
.bx-seg a.on{background:rgb(var(--card));color:rgb(var(--ink))}
.bx-seg a:not(.on):hover{color:rgb(var(--ink))}

/* entry kartı (başlık ve entry sayfası) */
.bx-entry{gap:.75rem}
.bx-entry .entry-text{font-size:1rem;line-height:1.7;overflow-wrap:anywhere}
.bx-entry .bx-foot{padding-top:.75rem}
.bx-who{display:flex;align-items:center;gap:.625rem;text-decoration:none;color:rgb(var(--ink))}
.bx-who img,.bx-who .bx-ava{width:2.25rem;height:2.25rem;border-radius:11px;object-fit:cover;flex:none;display:grid;place-items:center;color:#fff;font-weight:700;font-size:.8125rem}
.bx-who strong{display:block;font-size:.875rem;font-weight:600}
.bx .action-btn.voted-up,.bx .action-btn.voted-down,.bx .action-btn.favorited{border-color:rgb(var(--accent-strong));color:rgb(var(--accent-strong))}

/* sayfalama */
.bx-pages{display:flex;gap:.375rem;justify-content:center;flex-wrap:wrap}
.bx-pages a,.bx-pages span{min-width:40px;min-height:40px;padding:0 .75rem;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:.875rem;font-weight:500;background:rgb(var(--card));border:1px solid rgb(var(--line-soft));color:rgb(var(--ink));text-decoration:none;box-sizing:border-box}
.bx-pages a:hover{border-color:rgb(var(--accent-strong));color:rgb(var(--accent-strong))}
.bx-pages .on{background:rgb(var(--ink));color:rgb(var(--card));border-color:rgb(var(--ink));font-weight:600}
.bx-pages .gap{border:0;background:transparent;min-width:auto}

/* profil */
.bx-hero{padding:1.75rem;flex-direction:row;flex-wrap:wrap;align-items:center;gap:1.5rem}
.bx-hero-ava{width:112px;height:112px;border-radius:30px;object-fit:cover;flex:none;display:grid;place-items:center;color:#fff;font:800 2.5rem var(--font-display)}

/* =====================================================================
   BENTO GÖRÜNÜM KATMANI — tüm eski bileşenler tema değişkenleri üzerinden
   yumuşak kenarlı, ince çizgili, sert gölgesiz bento diline geçer.
   (theme.css'ten sonra yüklenir; html.dark da ayrıca ezilir.)
   ===================================================================== */
:root, html.dark {
    --bw: 1px;
    --r: 14px;
    --line: var(--line-soft);
    --sh-1: 0 1px 2px rgb(var(--shadow-c) / .05);
    --sh-2: 0 2px 8px rgb(var(--shadow-c) / .06);
    --sh-3: 0 8px 24px rgb(var(--shadow-c) / .10);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 22px;
    --grain-opacity: 0;
}
.btn-ink:hover, .follow-topic-btn:hover, .follow-btn:hover { transform: none; }

/* Kart benzeri eski kutular → bento kutusu */
.ui-card, .entry-card, .page-header,.bx-compat .bg-white.rounded-2xl, .bx-compat .bg-white.rounded-xl, .bx-compat .bg-white.rounded-3xl {
    border-radius: 22px !important;
    border: 1px solid rgb(var(--line-soft)) !important;
    box-shadow: none !important;
    background: rgb(var(--card));
}
.bx-compat .page-header h1, .settings-container h1 {
    font-family: var(--font-display);
    font-weight: 800 !important;
    letter-spacing: -.03em;
    font-size: clamp(1.75rem, 3.6vw, 2.5rem) !important;
    line-height: 1.05;
}

/* Eski "avatar solda + baloncuk" entry düzeni → tam genişlik kart */
.bx-compat .entry-container { display: block; margin-bottom: 0; }
.bx-compat .entry-avatar-left, .bx-compat .topic-avatar-left, .bx-compat .entry-left-col { display: none; }
.bx-compat .entry-card::before, .bx-compat .entry-card::after { display: none !important; }
.bx-compat .entry-card { padding: 1.375rem; }

/* Eski sayfalama ve sekmeler */
.pagination-btn { border-radius: 999px !important; box-shadow: none !important; }
.tab { border-radius: 999px; }

/* Ana sütunda arka arkaya gelen eski kutuların kendi alt boşlukları yeterli */
.bx-main > * { margin-top: 0; }

/* Form sayfaları (giriş, kayıt, ayarlar, mesajlar…) */
.ui-card input:not([type=checkbox]):not([type=radio]), .ui-card textarea, .ui-card select,
.settings-container input:not([type=checkbox]):not([type=radio]), .settings-container textarea, .settings-container select {
    border-radius: 14px;
}

/* Sabit küçük köşeli eski öğeler */
input:not([type=checkbox]):not([type=radio]), textarea, select { border-radius: 12px; }
.action-btn, .btn-ink, .icon-sq, .user-chip, .follow-topic-btn, .follow-btn, .unfav-btn { border-radius: 999px !important; }
.avatar, .user-chip img, .user-chip .u-ph, .notif-item img, .notif-item .n-ph, .toast-icon { border-radius: 12px !important; }
.report-reason, .custom-modal-content, .toast, .toast-notification { border-radius: 18px !important; }

/* Yazı logo (panelden logo yüklenmediyse site adı) */
.brand-text{font:800 1.5rem/1 var(--font-display);letter-spacing:-.035em;color:rgb(var(--ink));white-space:nowrap;display:inline-flex;align-items:center;gap:.5rem}
.brand-text::before{content:"";width:1.6rem;height:1.6rem;border-radius:.5rem;background:rgb(var(--accent-strong));flex:none}
.site-footer .brand-text{font-size:1.375rem;color:inherit}
.foot-brand .brand img{height:46px;width:auto}
@media (max-width:640px){.brand-text{font-size:1.25rem}}

/* =====================================================================
   ANASAYFA v2 (hx-) — iki vurgu rengi: mavi + sarı, kategori renkleri panelden
   ===================================================================== */
:root { --hx-blue: 37 99 235; --hx-yellow: 255 210 63; --hx-green: 34 197 94; --hx-coral: 255 122 89; }
html.dark { --hx-blue: 59 118 255; --hx-yellow: 245 197 24; }

/* küçük eylem düğmeleri */
.bx .action-btn.hx-mini { min-height: 30px; height: 30px; padding: 0 .6rem; font-size: .75rem; gap: .3rem; }
.bx .action-btn.hx-mini i { font-size: .8125rem; }

/* öne çıkan entry: kompakt mavi kart */
.hx-feat { background: rgb(var(--hx-blue)) !important; border-color: rgb(var(--hx-blue)) !important; color: #fff; padding: 1.375rem 1.5rem; gap: .625rem; }
.hx-tag { background: rgb(var(--hx-yellow)); color: #14120e; font: 600 .6875rem var(--font-mono); padding: .25rem .6rem; border-radius: 999px; }
.hx-time { font: 500 .75rem var(--font-mono); color: rgba(255,255,255,.8); }
.hx-feat-title { color: #fff !important; text-decoration: none; font: 800 clamp(1.5rem, 2.4vw, 1.875rem)/1.08 var(--font-display); letter-spacing: -.03em; overflow-wrap: anywhere; }
.hx-feat-title:hover { text-decoration: underline; }
.hx-feat-text { color: rgba(255,255,255,.92) !important; text-decoration: none; font-size: .9375rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hx-feat-text:hover { color: #fff !important; }
.hx-feat-foot { display: flex; align-items: center; justify-content: space-between; gap: .625rem; flex-wrap: wrap; margin-top: auto; padding-top: .25rem; }
.hx-feat .action-btn.hx-mini { color: #fff; border-color: rgba(255,255,255,.55); background: transparent; }
.hx-feat .action-btn.hx-mini:hover, .hx-feat .action-btn.voted-up, .hx-feat .action-btn.voted-down, .hx-feat .action-btn.favorited { background: rgba(255,255,255,.16); border-color: #fff; color: #fff; }
.hx-feat-who { display: inline-flex; align-items: center; gap: .5rem; color: #fff !important; font-weight: 600; font-size: .875rem; text-decoration: none; }
.hx-feat-ava { width: 30px; height: 30px; border-radius: 10px; background: rgb(var(--hx-yellow)); color: #14120e; display: grid; place-items: center; font-weight: 800; font-size: .75rem; }

/* gündem sayaçları */

/* istatistik + başlık aç */

.hx-online { display: inline-flex; align-items: center; gap: .4rem; font: 500 .75rem var(--font-mono); color: #14120e; }
.hx-online i { width: 8px; height: 8px; border-radius: 9px; background: #1a7f37; }

.hx-cta { flex: 1; flex-direction: row !important; align-items: center; justify-content: space-between; gap: .75rem; padding: 1.125rem 1.25rem; background: rgb(var(--ink)) !important; border-color: rgb(var(--ink)) !important; color: rgb(var(--card)) !important; text-decoration: none; font: 800 1.25rem/1.1 var(--font-display); letter-spacing: -.02em; }
.hx-cta-btn { width: 52px; height: 52px; border-radius: 16px; background: rgb(var(--hx-yellow)); color: #14120e; display: grid; place-items: center; flex: none; font-size: 1.125rem; transition: transform .15s; }
.hx-cta:hover .hx-cta-btn { transform: rotate(90deg); }

/* sıralı listeler: debe, en çok oy, en çok okunan */
.hx-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.hx-rank li { display: flex; align-items: center; gap: .625rem; padding: .45rem .5rem; margin: 0 -.5rem; border-radius: 12px; transition: background .15s; }
.hx-rank li:hover { background: rgb(var(--n-100)); }
.hx-rank .no { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; font: 800 .8125rem var(--font-display); background: rgb(var(--n-100)); color: rgb(var(--ink)); }
.hx-rank li.first .no { background: rgb(var(--hx-yellow)); color: #14120e; }
.hx-rank .tt { flex: 1; min-width: 0; font-size: .875rem; font-weight: 600; line-height: 1.25; color: rgb(var(--ink)); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-rank .tt:hover { color: rgb(var(--accent-strong)); }
.hx-rank .tt-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.hx-rank .meter { height: 4px; border-radius: 4px; background: rgb(var(--n-100)); overflow: hidden; }
.hx-rank .meter i { display: block; height: 100%; border-radius: 4px; background: rgb(var(--accent-strong)); }
.hx-rank li.first .meter i { background: rgb(var(--hx-yellow)); }
.hx-pill { display: inline-flex; align-items: center; gap: .25rem; height: 24px; padding: 0 .55rem; border-radius: 999px; flex: none; font: 600 .75rem var(--font-mono); background: rgb(var(--n-100)); color: rgb(var(--ink)); }
.hx-pill.up { background: rgb(var(--hx-green) / .18); }

/* kategoriler: panelde seçilen renk */

/* son entry'ler: zemin üstünde beyaz kartlar, kategori rengi şerit */
.hx-feed-wrap { display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.hx-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: .75rem; }
.hx-ad { grid-column: 1 / -1; }
.hx-card { position: relative; overflow: hidden; background: rgb(var(--card)); border: 1px solid rgb(var(--line-soft)); border-radius: 18px; padding: 1rem 1rem .75rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; min-width: 0; transition: border-color .15s, transform .15s; }
.hx-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--cc); }
.hx-card:hover { border-color: var(--cc); }
.hx-cat { align-self: flex-start; font: 600 .6875rem var(--font-mono); padding: .2rem .55rem; border-radius: 999px; color: rgb(var(--ink)); background: color-mix(in srgb, var(--cc) 16%, rgb(var(--card))); }
.hx-flag { width: 28px; height: 28px; border: 0; background: transparent; color: rgb(var(--n-500)); border-radius: 999px; cursor: pointer; flex: none; }
.hx-flag:hover { background: rgb(var(--n-100)); color: rgb(var(--r-500)); }
.hx-card-title { font: 700 1rem/1.25 var(--font-display); letter-spacing: -.015em; color: rgb(var(--ink)); text-decoration: none; overflow-wrap: anywhere; }
.hx-card-title:hover { color: rgb(var(--accent-strong)); }
.hx-card-text { font-size: .84375rem; line-height: 1.5; color: rgb(var(--n-600)); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hx-card-text:hover { color: rgb(var(--ink)); }
.hx-card-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-top: auto; padding-top: .25rem; }
.hx-by { font: 500 .75rem var(--font-mono); color: rgb(var(--n-500)); }
.hx-by a { font-family: var(--font-body); font-weight: 600; color: rgb(var(--ink)); text-decoration: none; }
.hx-by a:hover { color: rgb(var(--accent-strong)); }

@media (max-width: 660px) { .hx-feat { padding: 1.125rem; } .hx-feat-title { font-size: 1.375rem; } }

/* gündem ve kategoriler — sıralı liste eklemeleri */
.hx-pill.hot { background: rgb(var(--hx-yellow)); color: #14120e; }
.hx-rank li.current { background: rgb(var(--accent-strong) / .08); }
.hx-rank li.current .tt { color: rgb(var(--accent-strong)); }
.hx-cic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; font-size: .75rem; color: rgb(var(--ink)); background: color-mix(in srgb, var(--cc) 22%, rgb(var(--card))); box-shadow: inset 0 0 0 2px var(--cc); }
.hx-cic i { color: var(--cc); }

/* Bileşen başlık ikonları: tek renk, sade Font Awesome (renkli ikon yok) */
.bx-title i { color: rgb(var(--n-500)) !important; }

/* =====================================================================
   SAYFALAR v2 — akış, gündem, tematik, kategori, genel (anasayfa diliyle)
   ===================================================================== */
/* Eski temanın başlık kutularındaki sarı dikey şerit kaldırıldı */
.page-header::before { display: none !important; }
.page-header > * { margin-left: 0 !important; }

.pg { max-width: 1360px; margin: 0 auto; padding: 1.25rem 1rem 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .pg { padding: 1.5rem 1.5rem 3rem; } }
.pg-top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.pg-head { grid-column: span 3; flex-direction: row !important; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .875rem; padding: 1.375rem 1.5rem; }
.pg-head.full { grid-column: 1 / -1; }
.pg-head h1 { margin: 0; font: 800 clamp(1.75rem, 3.2vw, 2.375rem)/1 var(--font-display); letter-spacing: -.035em; color: rgb(var(--ink)); }
.pg-head p { margin: .375rem 0 0; color: rgb(var(--n-600)); font-size: .9375rem; }
.pg-head .bx-crumb { margin-bottom: .375rem; }
.pg-top .hx-cta { min-height: 100%; }
@media (max-width: 1040px) { .pg-top { grid-template-columns: minmax(0, 1fr); } .pg-head { grid-column: auto; } }

/* sıra rozeti (debe) */
.hx-rkb { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; font: 800 .8125rem var(--font-display); background: rgb(var(--hx-yellow)); color: #14120e; }
.hx-card .bx-head { min-height: 24px; }
.hx-card .hx-time { color: rgb(var(--n-500)); }
.hx-card-text.long { -webkit-line-clamp: 4; }

/* gündem sayfası: iki sütunlu sıralı liste */
.hx-rank.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); column-gap: 1.75rem; }

/* tematik: kategori kartları */
.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: .75rem; }
.ct { background: rgb(var(--card)); border: 1px solid rgb(var(--line-soft)); border-radius: 20px; padding: 1.125rem; display: flex; flex-direction: column; gap: .75rem; min-width: 0; transition: border-color .15s; }
.ct:hover { border-color: var(--cc); }
.ct-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; font-size: 1.0625rem; color: var(--cc); background: color-mix(in srgb, var(--cc) 18%, rgb(var(--card))); box-shadow: inset 0 0 0 2px var(--cc); }
.ct-name { display: block; font: 700 1.125rem/1.2 var(--font-display); letter-spacing: -.015em; color: rgb(var(--ink)); text-decoration: none; }
.ct-name:hover { color: rgb(var(--accent-strong)); }
.ct-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ct-list li { display: flex; align-items: center; gap: .5rem; padding: .35rem 0; border-top: 1px solid rgb(var(--line-soft)); font-size: .84375rem; }
.ct-list li:first-child { border-top: 0; }
.ct-list a { flex: 1; min-width: 0; color: rgb(var(--ink)); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-list a:hover { color: rgb(var(--accent-strong)); }
.ct-more { margin-top: auto; font-size: .8125rem; font-weight: 600; color: rgb(var(--accent-strong)) !important; text-decoration: none; }
.pg-head .ct-icon { width: 56px; height: 56px; font-size: 1.375rem; border-radius: 16px; }

/* kategori / genel: başlık satırları */
.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: .5rem; }
.tr { display: flex; align-items: center; gap: .75rem; padding: .75rem .875rem; border-radius: 14px; background: rgb(var(--card)); border: 1px solid rgb(var(--line-soft)); text-decoration: none; color: rgb(var(--ink)); min-width: 0; transition: border-color .15s; }
.tr:hover { border-color: rgb(var(--accent-strong)); color: rgb(var(--ink)); }
.tr .no { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; font: 800 .8125rem var(--font-display); background: rgb(var(--n-100)); }
.tr .t { flex: 1; min-width: 0; font-weight: 600; font-size: .9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr .m { font: 500 .75rem var(--font-mono); color: rgb(var(--n-500)); flex: none; }
@media (max-width: 520px) { .tr .m { display: none; } }

/* genel: harf çubuğu */
.az { display: flex; flex-wrap: wrap; gap: .3rem; }
.az a { min-width: 34px; height: 34px; padding: 0 .5rem; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font: 600 .8125rem var(--font-mono); background: rgb(var(--n-100)); color: rgb(var(--ink)); text-decoration: none; }
.az a:hover { background: rgb(var(--n-200)); }
.az a.on { background: rgb(var(--ink)); color: rgb(var(--card)); }
.pg-search { display: flex; align-items: center; gap: .5rem; background: rgb(var(--n-100)); border-radius: 999px; padding: 0 .375rem 0 1rem; height: 42px; min-width: min(100%, 280px); }
.pg-search input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; outline: none; font-size: .9rem; color: rgb(var(--ink)); padding: 0 !important; }
.pg-search button { width: 32px; height: 32px; border-radius: 999px; border: 0; background: rgb(var(--ink)); color: rgb(var(--card)); cursor: pointer; }
.pg-empty { align-items: center; text-align: center; padding: 2.5rem; }

/* ---------- Filtre / sıralama çubukları (tüm sayfalarda aynı) ---------- */
/* Sekmeler alt satıra kırılmaz; dar ekranda yatay kaydırılır */
.bx-seg { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; max-width: 100%; -webkit-overflow-scrolling: touch; }
.bx-seg::-webkit-scrollbar { display: none; }
.bx-seg a, .bx-seg button { flex: none; white-space: nowrap; }
.bx-seg.sm a { min-height: 30px; padding: 0 .75rem; font-size: .78rem; }

/* Sayfa başlığı: üstte başlık, altında araç satırı */
.pg-head { flex-direction: column !important; align-items: stretch !important; justify-content: flex-start !important; gap: 1rem !important; }
.pg-title { min-width: 0; }
.pg-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .625rem 1rem; padding-top: .875rem; border-top: 1px solid rgb(var(--line-soft)); }
.pg-tools > :only-child.pg-filter { margin-left: auto; }
.pg-filter { display: flex; align-items: center; gap: .5rem; min-width: 0; max-width: 100%; }
.pg-flabel { font: 500 .72rem var(--font-mono); color: rgb(var(--n-500)); flex: none; }
@media (max-width: 640px) {
    .pg-tools { flex-direction: column; align-items: stretch; }
    .pg-tools > :only-child.pg-filter { margin-left: 0; }
    .pg-filter { justify-content: space-between; }
    .pg-search { min-width: 0; width: 100%; }
}

/* Başlık ve profil sayfalarındaki sıralama çubukları da kırılmasın */
.bx-bar .bx-seg, .bx-head .bx-seg { flex: 0 1 auto; }

/* =====================================================================
   Anasayfa sağ sütun: istatistik → son aktiviteler → başlık aç
   Aktiviteler: boğuk zemin yok; zaman çizelgesi + türüne göre renkli rozet
   ===================================================================== */

@keyframes hxPulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(var(--hx-green) / .55); } 50% { box-shadow: 0 0 0 5px rgb(var(--hx-green) / 0); } }

/* =====================================================================
   Kategori rengi YALNIZCA ikonda (panelde "ikon rengi")
   Kategori kutuları, etiketler ve kart şeritleri nötr; renk sadece ikona gider.
   ===================================================================== */
.hx-cic { background: rgb(var(--n-100)) !important; box-shadow: none !important; color: var(--cc, rgb(var(--n-500))) !important; }
.hx-cic i { color: var(--cc, rgb(var(--n-500))) !important; }
.ct-icon { background: rgb(var(--n-100)) !important; box-shadow: none !important; color: var(--cc, rgb(var(--n-500))) !important; }
.ct-icon i { color: var(--cc, rgb(var(--n-500))) !important; }
.ct:hover { border-color: rgb(var(--accent-strong)) !important; }
.hx-card::before { display: none !important; }
.hx-card { padding-left: 1rem !important; }
.hx-card:hover { border-color: rgb(var(--accent-strong)) !important; }
.hx-cat { background: rgb(var(--n-100)) !important; color: rgb(var(--n-600)) !important; }

.tp-cat { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 999px; background: rgb(var(--n-100)) !important; color: rgb(var(--ink)) !important; font: 600 .75rem var(--font-body); text-decoration: none; }
.tp-cat::before { display: none !important; content: none !important; }
.tp-cat i { color: var(--cc, rgb(var(--n-500))); }
.tp-cat:hover { background: rgb(var(--n-200)) !important; }
/* "en çok" listelerinde yatay çubuklar kaldırıldı */
.hx-rank .meter { display: none !important; }
.hx-rank .tt-wrap { gap: 0; }

/* =====================================================================
   Giriş / kayıt açılır penceresi (modal) + giriş/kayıt sayfası logosu
   ===================================================================== */
html.am-open { overflow: hidden; }
.am { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.am[hidden] { display: none; }
.am-backdrop { position: absolute; inset: 0; background: rgb(14 12 10 / .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .18s; }
.am-panel { position: relative; width: 100%; max-width: 420px; max-height: calc(100vh - 2rem); overflow-y: auto; background: rgb(var(--card)); color: rgb(var(--ink)); border: 1px solid rgb(var(--line-soft)); border-radius: 26px; padding: 1.75rem 1.5rem 1.5rem; box-shadow: 0 24px 60px rgb(0 0 0 / .25); transform: translateY(12px) scale(.98); opacity: 0; transition: transform .18s ease, opacity .18s ease; }
.am.show .am-backdrop { opacity: 1; }
.am.show .am-panel { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .am-panel, .am-backdrop { transition: none; } }
.am-x { position: absolute; top: .875rem; right: .875rem; width: 36px; height: 36px; border-radius: 12px; border: 0; background: rgb(var(--n-100)); color: rgb(var(--ink)); cursor: pointer; display: grid; place-items: center; }
.am-x:hover { background: rgb(var(--n-200)); }
.am-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .35rem; margin-bottom: 1.125rem; }
.am-logo img { height: 46px; width: auto; }
.am-logo .logo-dark { display: none; }
html.dark .am-logo .logo-light { display: none; }
html.dark .am-logo .logo-dark { display: inline; }
.am-title { margin: .5rem 0 0; font: 800 1.5rem/1.1 var(--font-display); letter-spacing: -.03em; }
.am-sub { margin: 0; font-size: .875rem; color: rgb(var(--n-600)); }
.am-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: rgb(var(--n-100)); margin-bottom: 1.125rem; }
.am-tabs button { min-height: 38px; border: 0; border-radius: 999px; background: transparent; color: rgb(var(--n-600)); font: 700 .875rem var(--font-body); cursor: pointer; }
.am-tabs button.on { background: rgb(var(--card)); color: rgb(var(--ink)); box-shadow: 0 1px 3px rgb(0 0 0 / .08); }
.am-form { display: flex; flex-direction: column; gap: .875rem; }
.am-form[hidden] { display: none; }
.am-f { display: flex; flex-direction: column; gap: .35rem; font: 600 .8125rem var(--font-body); }
.am-f small { font-weight: 500; color: rgb(var(--n-500)); margin-left: .25rem; }
.am-f input { width: 100%; box-sizing: border-box; padding: .8rem .95rem; border-radius: 14px !important; border: 1px solid rgb(var(--line-soft)); background: rgb(var(--n-100)); color: rgb(var(--ink)); font: 400 .9375rem var(--font-body); transition: border-color .15s, background .15s, box-shadow .15s; }
.am-f input:focus { outline: none; border-color: rgb(var(--accent-strong)); background: rgb(var(--card)); box-shadow: 0 0 0 3px rgb(var(--accent-strong) / .15); }
.am-pw { position: relative; display: block; }
.am-pw input { padding-right: 2.75rem; }
.am-eye { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: rgb(var(--n-500)); cursor: pointer; }
.am-eye:hover { color: rgb(var(--ink)); }
.am-two { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 420px) { .am-two { grid-template-columns: 1fr; } }
.am-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.am-check { display: flex; align-items: flex-start; gap: .5rem; font-size: .8125rem; color: rgb(var(--n-600)); line-height: 1.45; cursor: pointer; }
.am-check input { margin-top: .15rem; width: 16px; height: 16px; accent-color: rgb(var(--accent-strong)); flex: none; }
.am-link { color: rgb(var(--accent-strong)) !important; font-weight: 600; font-size: .8125rem; text-decoration: none; }
.am-link:hover { text-decoration: underline; }
.am-submit { margin-top: .25rem; min-height: 50px; border: 0; border-radius: 16px; background: rgb(var(--hx-yellow)); color: #14120e; font: 800 1rem var(--font-display); letter-spacing: -.01em; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; transition: filter .15s, transform .15s; }
.am-submit:hover { filter: brightness(.96); }
.am-submit:active { transform: translateY(1px); }
.am-submit.busy { opacity: .7; pointer-events: none; }
.am-submit.busy i { animation: amSpin .8s linear infinite; }
.am-submit.busy i::before { content: "\f110"; }
@keyframes amSpin { to { transform: rotate(360deg); } }
.am-err { margin: 0; padding: .7rem .875rem; border-radius: 12px; background: rgb(var(--r-500) / .12); color: rgb(var(--ink)); font-size: .84375rem; }
/* telefonda alttan açılan pencere */
@media (max-width: 560px) {
    .am { align-items: flex-end; padding: 0; }
    .am-panel { max-width: none; border-radius: 26px 26px 0 0; padding: 1.5rem 1.125rem calc(1.25rem + env(safe-area-inset-bottom, 0px)); max-height: 92vh; transform: translateY(40px); }
}
/* giriş / kayıt sayfası logosu (L harfi yerine) */
.auth-page-logo { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.auth-page-logo img { height: 56px; width: auto; }
.auth-page-logo .logo-dark { display: none; }
html.dark .auth-page-logo .logo-light { display: none; }
html.dark .auth-page-logo .logo-dark { display: inline; }

/* =====================================================================
   Anasayfa: günün entry'si (poster) + duyurular
   ===================================================================== */

@keyframes hxNewsIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   Anasayfa üst bölüm — KOLAJ: günün entry'si + duyurular (raptiyeli notlar)
   ===================================================================== */
.hk-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.5rem; align-items: start; padding: .875rem .375rem .5rem; }
.hk-top.solo { grid-template-columns: minmax(0, 1fr); }
.hk-hero, .hk-news { position: relative; border: 2px solid rgb(var(--ink)); border-radius: 24px; box-shadow: 6px 6px 0 rgb(var(--ink)); transition: transform .18s ease, box-shadow .18s ease; }
.hk-hero:hover, .hk-news:hover { transform: rotate(0) translate(-2px, -2px) !important; box-shadow: 8px 8px 0 rgb(var(--ink)); }
.hk-hero { background: rgb(var(--hx-yellow)); color: #14120e; padding: 2rem 1.75rem 1.375rem; display: flex; flex-direction: column; gap: .875rem; transform: rotate(-1.1deg); }
.hk-news { background: rgb(var(--card)); padding: 2rem 1.25rem 1.25rem; transform: rotate(.9deg); }
html.dark .hk-hero { border-color: #14120e; }
.hk-tag { position: absolute; top: -15px; left: 22px; background: rgb(var(--ink)); color: rgb(var(--card)); font: 700 .75rem var(--font-mono); padding: .35rem .8rem; border-radius: 999px; transform: rotate(-3deg); white-space: nowrap; z-index: 2; }
.hk-tag.red { background: #ef4444; color: #fff; transform: rotate(2deg); }
html.dark .hk-hero .hk-tag { background: #14120e; color: rgb(var(--hx-yellow)); }
.hk-title { color: #14120e !important; text-decoration: none; font: 800 clamp(2rem, 3.8vw, 3.5rem)/.95 var(--font-display); letter-spacing: -.045em; overflow-wrap: anywhere; }
.hk-title:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.hk-text { color: #14120e !important; text-decoration: none; font-size: 1.0625rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; opacity: .88; }
.hk-text:hover { opacity: 1; }
.hk-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-top: auto; padding-top: .25rem; }
.bx .hk-hero .action-btn.hx-mini { color: #14120e; border: 2px solid #14120e; background: transparent; }
.bx .hk-hero .action-btn.hx-mini:hover, .bx .hk-hero .action-btn.voted-up, .bx .hk-hero .action-btn.voted-down, .bx .hk-hero .action-btn.favorited { background: #14120e; color: rgb(var(--hx-yellow)); }
.hk-who { font: 700 .8125rem var(--font-mono); color: #14120e; }
.hk-who a { color: #14120e !important; text-decoration: none; }
.hk-who a:hover { text-decoration: underline; }

.hk-notes { display: flex; flex-direction: column; gap: 1.125rem; }
.hk-note { position: relative; padding: 1rem 1.125rem .875rem; border-radius: 6px; color: #14120e; box-shadow: 2px 3px 0 rgb(0 0 0 / .22); }

.hk-note::before { content: ""; position: absolute; top: -8px; left: 50%; width: 16px; height: 16px; border-radius: 50%; background: #ef4444; box-shadow: 0 2px 0 rgb(0 0 0 / .3), inset -3px -3px 0 rgb(0 0 0 / .15); transform: translateX(-50%); }
.hk-note h3 { margin: 0 0 .3rem; font: 800 1.0625rem/1.15 var(--font-display); letter-spacing: -.01em; color: #14120e; }
.hk-note p { margin: 0; font-size: .875rem; line-height: 1.5; color: #2b2720; }
.hk-note-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .5rem; font: 600 .7rem var(--font-mono); color: #4a4335; }
.hk-note-foot a { color: #14120e !important; font: 700 .78rem var(--font-body); text-decoration: none; }
.hk-note-foot a:hover { text-decoration: underline; }

/* kategoriler tam genişlik şerit */

@media (max-width: 1040px) {
    .hk-top { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
}
@media (max-width: 660px) {
    .hk-top { padding: .75rem .25rem .25rem; }
    .hk-hero { padding: 1.75rem 1.125rem 1.125rem; transform: rotate(-.5deg); }
    .hk-news { padding: 1.75rem 1rem 1rem; transform: rotate(.4deg); }
    .hk-title { font-size: 1.875rem; }
    .hk-hero, .hk-news { box-shadow: 4px 4px 0 rgb(var(--ink)); }
}
@media (prefers-reduced-motion: reduce) { .hk-hero, .hk-news { transition: none; } }

/* Bileşen başlıkları tek satırda kalsın (dar kutularda alta inmesin) */
.bx-head .bx-title { white-space: nowrap; min-width: 0; }
.bx-head .bx-more { flex: none; }

/* =====================================================================
   Header menü (B): solda büyük ana akışlar, sağda ikincil bağlantılar
   İçerikle aynı genişlikte ve ortalı (1360px)
   ===================================================================== */
.m-nav.nvB { border-top: 1px solid rgb(var(--line-soft)); background: rgb(var(--card)); }
.nvB-in { max-width: 1360px; margin: 0 auto; padding: .5rem 1.5rem; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.nvB-main { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: rgb(var(--n-100)); flex: none; }
.nvB-main a { height: 38px; padding: 0 .95rem; border-radius: 12px; display: inline-flex; align-items: center; gap: .5rem; font: 700 .875rem var(--font-display); letter-spacing: -.01em; color: rgb(var(--n-600)); text-decoration: none; transition: background .12s, color .12s; white-space: nowrap; }
.nvB-main a i { font-size: .8rem; color: rgb(var(--n-500)); }
.nvB-main a:hover { background: rgb(var(--card)); color: rgb(var(--ink)); }
.nvB-main a.is-active { background: rgb(var(--hx-yellow)); color: #14120e; }
.nvB-main a.is-active i { color: #14120e; }
.nvB-side { display: flex; gap: 6px; min-width: 0; }
.nvB-side a { height: 38px; padding: 0 .75rem; border-radius: 12px; border: 1px solid rgb(var(--line-soft)); display: inline-flex; align-items: center; gap: .45rem; font-size: .8125rem; font-weight: 600; color: rgb(var(--ink)); text-decoration: none; white-space: nowrap; transition: border-color .12s, background .12s; }
.nvB-side a i { font-size: .78rem; color: rgb(var(--n-500)); }
.nvB-side a:hover { border-color: rgb(var(--ink)); }
.nvB-side a.is-active { background: rgb(var(--ink)); border-color: rgb(var(--ink)); color: rgb(var(--card)); }
.nvB-side a.is-active i { color: rgb(var(--hx-yellow)); }
/* dar masaüstü: ikincil bağlantılar yalnızca ikon (üstüne gelince adı) */
@media (max-width: 1320px) { .nvB-side a span { display: none; } .nvB-side a { width: 38px; padding: 0; justify-content: center; } }
@media (max-width: 1120px) { .nvB-main a { padding: 0 .7rem; } }

/* =====================================================================
   Anasayfa kategorileri: kart ızgarası (renk yalnızca ikonda)
   ===================================================================== */
.kc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: .625rem; }
.kc { position: relative; display: flex; flex-direction: column; gap: .35rem; padding: .875rem .9rem .8rem; border-radius: 16px; background: rgb(var(--n-100)); border: 1px solid transparent; min-width: 0; transition: transform .15s ease, border-color .15s, background .15s; }
.kc:hover { transform: translateY(-2px); background: rgb(var(--card)); border-color: rgb(var(--line-soft)); box-shadow: 0 8px 20px rgb(var(--shadow-c) / .08); }
.kc-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.kc-top { display: flex; align-items: center; justify-content: space-between; }
.kc-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: rgb(var(--card)); box-shadow: 0 1px 2px rgb(var(--shadow-c) / .08); font-size: 1rem; }
.kc:hover .kc-ic { background: rgb(var(--n-100)); }
.kc-ic i { color: var(--cc); }
.kc-live { display: inline-flex; align-items: center; gap: .3rem; font: 600 .62rem var(--font-mono); color: rgb(var(--n-600)); }
.kc-live::before { content: ""; width: 7px; height: 7px; border-radius: 9px; background: rgb(var(--hx-green)); box-shadow: 0 0 0 3px rgb(var(--hx-green) / .2); }
.kc-name { margin: .35rem 0 0; font: 800 1rem/1.15 var(--font-display); letter-spacing: -.02em; color: rgb(var(--ink)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kc-nums { font: 500 .7rem var(--font-mono); color: rgb(var(--n-500)); }
.kc-nums b { color: rgb(var(--ink)); font-weight: 700; }
.kc-nums span { margin: 0 .15rem; }
.kc-hot { position: relative; z-index: 2; display: flex; align-items: center; gap: .35rem; margin-top: .25rem; padding-top: .45rem; border-top: 1px dashed rgb(var(--line-soft)); font-size: .75rem; font-weight: 600; color: rgb(var(--n-600)); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kc-hot i { font-size: .65rem; color: var(--cc); flex: none; }
.kc-hot:hover { color: rgb(var(--accent-strong)); }
.kc-hot.muted { font-weight: 500; color: rgb(var(--n-500)); }
@media (prefers-reduced-motion: reduce) { .kc { transition: none; } .kc:hover { transform: none; } }
@media (max-width: 520px) { .kc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kc { padding: .75rem; } .kc-ic { width: 34px; height: 34px; } }

/* Kategoriler: tek sıra, daha küçük kartlar (sığmazsa yana kayar) */
.kc-grid { grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: minmax(138px, 1fr); gap: .5rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: .25rem; scrollbar-width: thin; }
.kc { padding: .625rem .7rem .6rem; gap: .2rem; border-radius: 14px; scroll-snap-align: start; }
.kc:hover { transform: translateY(-1px); }
.kc-ic { width: 30px; height: 30px; border-radius: 10px; font-size: .8rem; }
.kc-live { font-size: .58rem; }
.kc-name { margin-top: .25rem; font-size: .875rem; }
.kc-nums { font-size: .64rem; }
.kc-hot { margin-top: .15rem; padding-top: .35rem; font-size: .7rem; }
.kc-hot i { font-size: .6rem; }
@media (max-width: 520px) { .kc-grid { grid-template-columns: none !important; grid-auto-columns: 140px; } .kc { padding: .6rem .65rem; } .kc-ic { width: 28px; height: 28px; } }

/* =====================================================================
   "Yaşayan liste" — anasayfa sıralı listeleri
   dev çerçeveli numara (1. sarı), bağlam satırı, sağda büyük sayı + hareket,
   üstüne gelince fosforlu kalem gibi sarı boyanır
   ===================================================================== */
.bx .yl { gap: .25rem; padding: 1.125rem 1rem .75rem; }
.yl-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; padding: 0 .25rem .5rem; }
.yl-hd .bx-title { font-size: 1.25rem; letter-spacing: -.03em; }
.yl-hd small { display: block; margin-top: .25rem; font: 500 .69rem var(--font-mono); color: rgb(var(--n-500)); }
.yl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.yl-r { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: .625rem; padding: .55rem .5rem; border-radius: 14px; isolation: isolate; }
.yl-r::before { content: ""; position: absolute; inset: 0; border-radius: 14px; background: rgb(var(--hx-yellow) / .5); transform: scaleX(0); transform-origin: left; transition: transform .28s cubic-bezier(.2, .8, .2, 1); z-index: -1; }
.yl-r:hover::before, .yl-r:focus-within::before { transform: scaleX(1); }
.yl-hit { position: absolute; inset: 0; z-index: 1; border-radius: 14px; }
.yl-hit:focus-visible { outline: 2px solid rgb(var(--accent-strong)); outline-offset: 2px; }
.yl-n { font: 800 2.125rem/.9 var(--font-display); letter-spacing: -.05em; text-align: center; color: transparent; -webkit-text-stroke: 1.5px rgb(var(--ink)); }
.yl-r.first .yl-n { font-size: 2.625rem; color: rgb(var(--hx-yellow)); -webkit-text-stroke: 2px rgb(var(--ink)); }
html.dark .yl-r.first .yl-n { -webkit-text-stroke-color: rgb(var(--hx-yellow)); }
.yl-tt { min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
.yl-tt b { font: 700 .9rem/1.25 var(--font-body); color: rgb(var(--ink)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yl-r.first .yl-tt b { font: 800 1.0625rem/1.2 var(--font-display); letter-spacing: -.015em; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.yl-meta { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; font: 500 .69rem var(--font-mono); color: rgb(var(--n-500)); min-width: 0; }
.yl-av { display: inline-flex; }
.yl-av i, .yl-av img { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgb(var(--card)); margin-left: -6px; display: inline-grid; place-items: center; font: 700 .52rem var(--font-body); font-style: normal; color: #fff; object-fit: cover; }
.yl-av > :first-child { margin-left: 0; }
.yl-hot { display: inline-flex; align-items: center; gap: .25rem; color: #ea580c; font-weight: 700; }
html.dark .yl-hot { color: #fb923c; }
.yl-hot i { font-size: .62rem; }
.yl-tag { display: inline-flex; align-items: center; height: 19px; padding: 0 .45rem; border-radius: 999px; background: rgb(var(--n-100)); color: rgb(var(--ink)); font-weight: 600; }
.yl-tag.up { color: #15803d; }
html.dark .yl-tag.up { color: #4ade80; }
.yl-quote { position: relative; margin: .2rem 0 .1rem; padding: .55rem .7rem .55rem 1.75rem; border-radius: 12px; background: rgb(var(--n-100)); font: italic 400 .8125rem/1.5 var(--font-body); color: rgb(var(--ink)); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.yl-quote::before { content: "\201C"; position: absolute; left: .45rem; top: -.15rem; font: 800 2rem/1 var(--font-display); color: rgb(var(--hx-yellow)); -webkit-text-stroke: 1px rgb(var(--ink)); }
.yl-rt { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; }
.yl-big { font: 800 1.25rem/1 var(--font-display); letter-spacing: -.03em; color: rgb(var(--ink)); }
.yl-big.g { color: #15803d; }
html.dark .yl-big.g { color: #4ade80; }
.yl-unit { font: 500 .62rem var(--font-mono); color: rgb(var(--n-500)); }
.yl-mv { font: 700 .66rem var(--font-mono); display: inline-flex; align-items: center; gap: 2px; }
.yl-mv.up { color: #15803d; } .yl-mv.down { color: #dc2626; } .yl-mv.same { color: rgb(var(--n-500)); }
html.dark .yl-mv.up { color: #4ade80; } html.dark .yl-mv.down { color: #f87171; }
.yl-mv.new { background: rgb(var(--hx-yellow)); color: #14120e; padding: 1px 6px; border-radius: 999px; }
.yl-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1rem; }
@media (max-width: 900px) { .yl-split { grid-template-columns: minmax(0, 1fr); row-gap: .75rem; } }
@media (max-width: 660px) { .yl-r { grid-template-columns: 36px minmax(0, 1fr) auto; } .yl-n { font-size: 1.75rem; } .yl-r.first .yl-n { font-size: 2.125rem; } }
@media (prefers-reduced-motion: reduce) { .yl-r::before { transition: none; } }

/* =====================================================================
   Anasayfa yerleşimi: yan sütun yok, 3 geniş sütun + ince bilgi şeridi
   ===================================================================== */
.bx-grid.hy3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1040px) { .bx-grid.hy3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bx-grid.hy3 .bx-s2 { grid-column: 1 / -1; } }
@media (max-width: 660px) { .bx-grid.hy3 { grid-template-columns: minmax(0, 1fr); } }
.hy-strip { display: flex; align-items: stretch; background: rgb(var(--card)); border: 1px solid rgb(var(--line-soft)); border-radius: 22px; overflow: hidden; }
.hy-cell { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: .2rem; padding: .875rem 1.125rem; border-right: 1px solid rgb(var(--line-soft)); text-decoration: none; color: rgb(var(--ink)); transition: background .12s; }
a.hy-cell:hover { background: rgb(var(--n-100)); color: rgb(var(--ink)); }
.hy-cell b { display: inline-flex; align-items: center; gap: .4rem; font: 800 1.75rem/1 var(--font-display); letter-spacing: -.03em; }
.hy-cell span { font: 500 .7rem var(--font-mono); color: rgb(var(--n-500)); }
.hy-cell.live b { color: #15803d; }
html.dark .hy-cell.live b { color: #4ade80; }
.hy-cell.live b i { width: 9px; height: 9px; border-radius: 9px; background: rgb(var(--hx-green)); box-shadow: 0 0 0 4px rgb(var(--hx-green) / .2); animation: hxPulse 1.8s ease-in-out infinite; }
.hy-cta { flex: 1.35 1 0; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .875rem 1.125rem; background: rgb(var(--ink)); color: rgb(var(--card)) !important; text-decoration: none; font: 800 1.125rem/1.05 var(--font-display); letter-spacing: -.02em; }
html.dark .hy-cta { background: rgb(var(--n-100)); color: rgb(var(--ink)) !important; }
.hy-cta i { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; background: rgb(var(--hx-yellow)); color: #14120e; font-size: 1rem; transition: transform .15s; }
.hy-cta:hover i { transform: rotate(90deg); }
@media (max-width: 1040px) {
    .hy-strip { flex-wrap: wrap; }
    .hy-cell { flex: 1 1 30%; border-bottom: 1px solid rgb(var(--line-soft)); }
    .hy-cta { flex: 1 1 100%; }
}
@media (max-width: 520px) {
    .hy-cell { flex: 1 1 45%; padding: .7rem .9rem; }
    .hy-cell b { font-size: 1.375rem; }
}
@media (prefers-reduced-motion: reduce) { .hy-cell.live b i { animation: none; } }

/* =====================================================================
   Anasayfa "canlı akış" (neler oluyor) — telgraf/tele-yazı tarzı
   saat | renkli tür ikonu | @kim ne yaptı → nereye; gün başlıkları;
   kutunun boyuna tam oturur, taşan kısım alttan yumuşakça kaybolur
   ===================================================================== */

@keyframes haPulse { 0% { box-shadow: 0 0 0 0 rgb(239 68 68 / .55); } 100% { box-shadow: 0 0 0 9px rgb(239 68 68 / 0); } }

@keyframes haIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   Son entry'ler — MANTAR PANO
   kâğıt türü içeriğe göre: uzun → çizgili defter, kısa → yapışkan not,
   diğerleri beyaz / kraft / yırtık, ara sıra polaroid.
   son 1 saat → "yeni!" çıkartması, 10+ beğeni → "HOT", net 5+ → mühür
   ===================================================================== */
.pn-cork { position: relative; margin-top: 1.25rem; border-radius: 26px; padding: 2.5rem 1.5rem 1rem; border: 10px solid #8a5a2b; box-shadow: inset 0 0 40px rgb(0 0 0 / .25), 0 6px 0 #6b4320;
    background: radial-gradient(circle at 20% 30%, rgb(0 0 0 / .07) 0 1.5px, transparent 2px) 0 0 / 14px 14px, radial-gradient(circle at 70% 60%, rgb(255 255 255 / .18) 0 1px, transparent 1.5px) 0 0 / 11px 11px, #c99a62; }
html.dark .pn-cork { background: radial-gradient(circle at 20% 30%, rgb(0 0 0 / .25) 0 1.5px, transparent 2px) 0 0 / 14px 14px, #5b4129; border-color: #3b2a19; box-shadow: inset 0 0 40px rgb(0 0 0 / .45), 0 6px 0 #2a1d10; }
.pn-sign { position: absolute; top: -26px; left: 26px; margin: 0; transform: rotate(-2deg); background: #14120e; color: #ffd23f; font: 800 1.375rem/1 var(--font-display); letter-spacing: -.02em; padding: .55rem 1.1rem; border-radius: 10px; box-shadow: 3px 3px 0 #ffd23f; }
.pn-board { columns: 4 240px; column-gap: 1.625rem; }
.pn-p { break-inside: avoid; position: relative; margin: 0 0 1.875rem; padding: 1.25rem 1rem .875rem; color: #14120e; display: flex; flex-direction: column; gap: .5rem; transform: rotate(var(--rot, 0deg)); box-shadow: 0 10px 18px rgb(0 0 0 / .28), 0 2px 3px rgb(0 0 0 / .2); transition: transform .2s ease, box-shadow .2s ease; }
.pn-p:hover, .pn-p:focus-within { transform: rotate(0) scale(1.03); z-index: 5; box-shadow: 0 18px 30px rgb(0 0 0 / .32); }
/* kâğıtlar */
.pn-p.white { background: #fffdf7; }
.pn-p.lined { background: #fffef8 repeating-linear-gradient(transparent 0 23px, #c7dcf5 23px 24px); padding-left: 1.875rem; }
.pn-p.lined::before { content: ""; position: absolute; left: 1.25rem; top: 0; bottom: 0; width: 1px; background: #f19999; }
.pn-p.sticky { background: #ffe867; }
.pn-p.sticky.pink { background: #ffc2d6; }
.pn-p.sticky.blue { background: #bde0fe; }
.pn-p.kraft { background: #d8b88c; }

.pn-p.torn { background: #fffdf7; padding-bottom: 1.4rem; clip-path: polygon(0 0,100% 0,100% calc(100% - 10px),95% 100%,90% calc(100% - 9px),85% 100%,80% calc(100% - 8px),75% 100%,70% calc(100% - 10px),65% 100%,60% calc(100% - 7px),55% 100%,50% calc(100% - 10px),45% 100%,40% calc(100% - 8px),35% 100%,30% calc(100% - 10px),25% 100%,20% calc(100% - 7px),15% 100%,10% calc(100% - 9px),5% 100%,0 calc(100% - 10px)); }
.pn-ph { height: 110px; border-radius: 2px; display: grid; place-items: center; color: #fff; font: 800 2.5rem var(--font-display); }
/* tutturucular */
.pn-pin { position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(circle at 35% 35%, #ff8a8a, #d81b1b 60%, #8b0000); box-shadow: 0 4px 4px rgb(0 0 0 / .35); z-index: 2; }
.pn-pin.pn-g { background: radial-gradient(circle at 35% 35%, #8ef0b0, #16a34a 60%, #0b5a2a); }
.pn-pin.pn-y { background: radial-gradient(circle at 35% 35%, #fff3a0, #eab308 60%, #7a5d00); }
.pn-tape { position: absolute; top: -12px; left: 50%; width: 96px; height: 24px; transform: translateX(-50%) rotate(-4deg); background: rgb(255 255 255 / .55); border-left: 2px dashed rgb(0 0 0 / .08); border-right: 2px dashed rgb(0 0 0 / .08); z-index: 2; }
.pn-tape.pn-y { background: rgb(255 210 63 / .7); }
.pn-clip { position: absolute; top: -16px; right: 18px; width: 16px; height: 46px; border: 3px solid #9aa3ad; border-radius: 10px; border-bottom-color: transparent; transform: rotate(8deg); z-index: 2; }
/* çıkartmalar, damga, leke */
.pn-stk { position: absolute; right: -12px; top: -14px; width: 56px; height: 56px; border-radius: 50%; background: #ef4444; color: #fff; display: grid; place-items: center; text-align: center; font: 800 .75rem/1 var(--font-display); transform: rotate(14deg); box-shadow: 0 3px 0 rgb(0 0 0 / .25); border: 3px dashed rgb(255 255 255 / .6); z-index: 3; }
.pn-stk.y { background: #ffd23f; color: #14120e; border-color: rgb(0 0 0 / .25); }
.pn-stamp { align-self: flex-end; border: 3px solid #dc2626; color: #dc2626; border-radius: 8px; padding: 1px 8px; font: 800 .8rem var(--font-mono); transform: rotate(-8deg); opacity: .85; }
.pn-coffee { position: absolute; right: 12px; bottom: 32px; width: 70px; height: 70px; border-radius: 50%; border: 5px solid rgb(120 70 20 / .18); pointer-events: none; }
/* içerik */
.pn-cat { font: 700 .66rem var(--font-mono); opacity: .7; text-transform: uppercase; letter-spacing: .06em; }
.pn-title { font: 800 1.125rem/1.12 var(--font-display); letter-spacing: -.02em; color: #14120e !important; text-decoration: none; overflow-wrap: anywhere; }
.pn-title:hover { text-decoration: underline; }
.pn-title mark { background: linear-gradient(transparent 55%, #ffd23f 55% 88%, transparent 88%); color: inherit; padding: 0 2px; }
.pn-text { font-size: .875rem; line-height: 1.55; color: #2b2720 !important; text-decoration: none; overflow-wrap: anywhere; }
.pn-text:hover { color: #14120e !important; }
.pn-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .15rem; }
.pn-who { display: inline-flex; align-items: center; gap: .4rem; font: 700 .72rem var(--font-mono); color: #14120e !important; text-decoration: none; min-width: 0; }
.pn-who i { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #14120e; display: grid; place-items: center; font: 800 .6rem var(--font-body); font-style: normal; background: #ffd23f; flex: none; }
.pn-acts { display: inline-flex; gap: .25rem; }
.bx .pn-acts .action-btn { min-height: 28px; height: 28px; padding: 0 .45rem; border: 1.5px solid rgb(20 18 14 / .45); background: transparent; color: #14120e; font-size: .7rem; border-radius: 999px; }
.bx .pn-acts .action-btn:hover, .bx .pn-acts .action-btn.voted-up, .bx .pn-acts .action-btn.favorited { background: #14120e; color: #ffd23f; border-color: #14120e; }
.pn-time { font: 600 .62rem var(--font-mono); color: #5a554a; }
@media (max-width: 660px) { .pn-cork { padding: 2.25rem .875rem .5rem; border-width: 7px; } .pn-board { columns: 1; } .pn-p { transform: rotate(calc(var(--rot, 0deg) / 2)); } }
@media (prefers-reduced-motion: reduce) { .pn-p { transition: none; } .pn-p:hover { transform: rotate(var(--rot, 0deg)); } }

/* Liste başlıkları: tüm satırlar aynı yazı tipi ve boyutta (ilk satırla eşit) */
.yl-tt b, .yl-r.first .yl-tt b { font: 800 1rem/1.25 var(--font-display) !important; letter-spacing: -.015em; display: block !important; white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: unset; }

/* Yan sütun gündemi: bulunulan başlık işaretli */
.yl-r.current { background: rgb(var(--accent-strong) / .08); }
.yl-r.current .yl-tt b { color: rgb(var(--accent-strong)); }
/* Gündem sayfası ve diğer sıralı listeler: anasayfa listeleriyle aynı başlık yazı tipi ve boyutu */
.hx-rank .tt { font: 800 1rem/1.25 var(--font-display) !important; letter-spacing: -.015em; }
.hx-rank .tt-wrap .hx-by { font-size: .69rem; }

/* Entry düzenleme penceresindeki editör */
.ee-modal { margin-bottom: 1rem; }
.ee-modal .ql-editor { max-height: 50vh; }

/* Entry yazma editörü: rahat yazma alanı (içerik uzadıkça büyür, belli bir boydan sonra kayar) */
.entry-editor-container .ql-editor { min-height: 220px; max-height: 60vh; overflow-y: auto; padding: .9rem 1rem; font-size: .9375rem; line-height: 1.7; }
.entry-editor-container .ql-container { height: auto; }
@media (max-width: 640px) { .entry-editor-container .ql-editor { min-height: 170px; } }

/* Gece modu: işlem düğmelerinin üstüne gelince yalnızca ikon renklenir (zemin/halka yok)
   beğen → yeşil, beğenme → kırmızı, diğerleri (favori, paylaş, düzenle, şikayet) → sarı */
html.dark .action-btn:hover, html.dark .bx .action-btn:hover, html.dark .tp-head .action-btn:hover, html.dark .hx-flag:hover {
    background: transparent !important; box-shadow: none !important; border-color: rgb(var(--line-soft)) !important; color: rgb(var(--hx-yellow)) !important;
}
html.dark .action-btn:hover i, html.dark .action-btn:hover span, html.dark .hx-flag:hover i { color: rgb(var(--hx-yellow)) !important; }
html.dark .action-btn[id^="up-"]:hover, html.dark .action-btn[id^="up-"]:hover i, html.dark .action-btn[id^="up-"]:hover span,
html.dark .action-btn[onclick*="voteUp"]:hover, html.dark .action-btn[onclick*="voteUp"]:hover i, html.dark .action-btn[onclick*="voteUp"]:hover span,
html.dark .action-btn[onclick*=", 1)"]:hover, html.dark .action-btn[onclick*=", 1)"]:hover i, html.dark .action-btn[onclick*=", 1)"]:hover span { color: #4ade80 !important; }
html.dark .action-btn[id^="down-"]:hover, html.dark .action-btn[id^="down-"]:hover i, html.dark .action-btn[id^="down-"]:hover span,
html.dark .action-btn[onclick*="voteDown"]:hover, html.dark .action-btn[onclick*="voteDown"]:hover i, html.dark .action-btn[onclick*="voteDown"]:hover span,
html.dark .action-btn[onclick*=", -1)"]:hover, html.dark .action-btn[onclick*=", -1)"]:hover i, html.dark .action-btn[onclick*=", -1)"]:hover span { color: #f87171 !important; }
/* sarı/açık zeminli özel kartlarda kendi renkleri kalsın */
html.dark .bx .hk-hero .action-btn:hover, html.dark .bx .hk-hero .action-btn:hover i, html.dark .bx .hk-hero .action-btn:hover span { background: #14120e !important; border-color: #14120e !important; color: rgb(var(--hx-yellow)) !important; }
html.dark .bx .pn-acts .action-btn:hover, html.dark .bx .pn-acts .action-btn:hover i, html.dark .bx .pn-acts .action-btn:hover span { background: #14120e !important; border-color: #14120e !important; color: #ffd23f !important; }

/* Oy düğmeleri: beğenildiyse yeşil, beğenilmediyse kırmızı (mavi değil) */
.bx .action-btn.voted-up, .tp-head .action-btn.voted-up { border-color: #16a34a !important; color: #16a34a !important; background: rgb(22 163 74 / .08) !important; }
.bx .action-btn.voted-down, .tp-head .action-btn.voted-down { border-color: #dc2626 !important; color: #dc2626 !important; background: rgb(220 38 38 / .08) !important; }
.bx .action-btn.voted-up i, .bx .action-btn.voted-up span, .tp-head .action-btn.voted-up i, .tp-head .action-btn.voted-up span { color: #16a34a !important; }
.bx .action-btn.voted-down i, .bx .action-btn.voted-down span, .tp-head .action-btn.voted-down i, .tp-head .action-btn.voted-down span { color: #dc2626 !important; }
html.dark .bx .action-btn.voted-up, html.dark .tp-head .action-btn.voted-up, html.dark .bx .action-btn.voted-up i, html.dark .bx .action-btn.voted-up span, html.dark .tp-head .action-btn.voted-up i, html.dark .tp-head .action-btn.voted-up span { color: #4ade80 !important; border-color: #4ade80 !important; background: rgb(74 222 128 / .1) !important; }
html.dark .bx .action-btn.voted-down, html.dark .tp-head .action-btn.voted-down, html.dark .bx .action-btn.voted-down i, html.dark .bx .action-btn.voted-down span, html.dark .tp-head .action-btn.voted-down i, html.dark .tp-head .action-btn.voted-down span { color: #f87171 !important; border-color: #f87171 !important; background: rgb(248 113 113 / .1) !important; }
html.dark .bx .action-btn.voted-up i, html.dark .bx .action-btn.voted-down i, html.dark .bx .action-btn.voted-up span, html.dark .bx .action-btn.voted-down span, html.dark .tp-head .action-btn.voted-up i, html.dark .tp-head .action-btn.voted-down i { background: transparent !important; border: 0 !important; }

/* =====================================================================
   Bildirim / mesaj açılırları — masaüstü: KONUŞMA BALONU (kolaj dili)
   ===================================================================== */
@media (min-width: 768px) {
    #notification-menu.pop, #message-menu.pop {
        width: 23rem; border: 2px solid rgb(var(--ink)) !important; border-radius: 22px !important;
        box-shadow: 7px 7px 0 rgb(var(--ink)) !important; background: rgb(var(--card)) !important;
        overflow: visible !important; padding: 1.1rem .5rem .5rem; top: calc(100% + 16px) !important;
        transform: translateX(calc(-50% + var(--pop-shift, 0px))) rotate(-1deg) !important; transform-origin: 50% 0;
    }
    #notification-menu.pop:not(.hidden), #message-menu.pop:not(.hidden) { animation: popBubble .18s ease-out; }
    @keyframes popBubble { from { opacity: 0; transform: translateX(calc(-50% + var(--pop-shift, 0px))) translateY(-6px) rotate(-1deg) scale(.97); } }
    /* kuyruk: simgeyi gösterir */
    #notification-menu.pop::before, #message-menu.pop::before {
        content: ""; position: absolute; top: -13px; left: calc(50% - 12px - var(--pop-shift, 0px)); width: 22px; height: 22px;
        background: rgb(var(--card)); border-left: 2px solid rgb(var(--ink)); border-top: 2px solid rgb(var(--ink)); transform: rotate(45deg);
    }
    /* başlık: yapıştırılmış sarı etiket */
    #notification-menu .pop-head, #message-menu .pop-head { background: transparent !important; color: rgb(var(--n-500)) !important; padding: .25rem .5rem .5rem; }
    #notification-menu .pop-head h3, #message-menu .pop-head h3 {
        position: absolute; top: -17px; left: 18px; z-index: 2; background: rgb(var(--hx-yellow)); color: #14120e !important;
        border: 2px solid rgb(var(--ink)); border-radius: 999px; padding: .25rem .75rem; font: 800 .8125rem var(--font-display); transform: rotate(-3deg);
    }
    #notification-menu .pop-head a, #message-menu .pop-head a { margin-left: auto; color: rgb(var(--accent-strong)) !important; font: 700 .72rem var(--font-mono); text-decoration: none !important; }
    #notification-menu .overflow-y-auto, #message-menu .overflow-y-auto { max-height: 380px !important; padding: 0 .1rem; }
    #notification-menu .pop-foot, #message-menu .pop-foot { border-top: 0 !important; display: flex; gap: .5rem; padding: .5rem .25rem .1rem !important; }
    #notification-menu .pop-foot a, #message-menu .pop-foot a { flex: 1; height: 36px; border-radius: 12px; display: grid; place-items: center; border: 2px solid rgb(var(--ink)); text-decoration: none !important; font: 700 .78rem var(--font-body) !important; color: rgb(var(--ink)) !important; }
    #notification-menu .pop-foot a:first-child, #message-menu .pop-foot a:first-child { background: rgb(var(--hx-yellow)); color: #14120e !important; }
    .is-open > button.icon-sq { background: rgb(var(--hx-yellow)) !important; color: #14120e !important; border-color: rgb(var(--ink)) !important; }
}
/* satırlar (masaüstü ve mobil) */
#notification-menu .notif-item, #message-menu .notif-item, .nsheet .notif-item { border-bottom: 0 !important; border-radius: 14px; padding: .6rem .6rem !important; align-items: center; }
#notification-menu .notif-item img, #notification-menu .notif-item .n-ph, #message-menu .notif-item img, #message-menu .notif-item .n-ph, .nsheet .notif-item img, .nsheet .notif-item .n-ph { width: 36px !important; height: 36px !important; border-radius: 11px !important; border: 0 !important; }
#notification-menu .notif-item.is-unread, #message-menu .notif-item.is-unread, .nsheet .notif-item.is-unread { background: rgb(var(--hx-yellow) / .2) !important; }
.notif-item .n-dot { animation: nDot 1.6s infinite; }
@keyframes nDot { 0% { box-shadow: 0 0 0 0 rgb(239 68 68 / .55); } 70%, 100% { box-shadow: 0 0 0 7px rgb(239 68 68 / 0); } }
@media (prefers-reduced-motion: reduce) { .notif-item .n-dot, #notification-menu.pop, #message-menu.pop { animation: none !important; } }

/* =====================================================================
   Mobil: alttan açılan sayfa (bildirimler + mesajlar sekmeli)
   ===================================================================== */
html.ns-open { overflow: hidden; }
.nsheet { position: fixed; inset: 0; z-index: 190; }
.nsheet[hidden] { display: none; }
.nsheet-dim { position: absolute; inset: 0; background: rgb(14 12 10 / .5); opacity: 0; transition: opacity .2s; }
.nsheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 82vh; display: flex; flex-direction: column; background: rgb(var(--card)); color: rgb(var(--ink)); border-top: 2px solid rgb(var(--ink)); border-radius: 26px 26px 0 0; padding: .4rem .75rem calc(.9rem + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 30px rgb(0 0 0 / .25); transform: translateY(100%); transition: transform .22s ease; }
.nsheet.show .nsheet-dim { opacity: 1; }
.nsheet.show .nsheet-panel { transform: translateY(0); }
.nsheet-grab { padding: .35rem 0 .6rem; display: grid; place-items: center; cursor: grab; }
.nsheet-grab span { width: 44px; height: 5px; border-radius: 9px; background: rgb(var(--line-soft)); }
.nsheet-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: rgb(var(--n-100)); margin-bottom: .5rem; }
.nsheet-tabs button { height: 38px; border: 0; border-radius: 999px; background: transparent; color: rgb(var(--n-600)); font: 700 .875rem var(--font-body); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.nsheet-tabs button.on { background: rgb(var(--card)); color: rgb(var(--ink)); box-shadow: 0 1px 3px rgb(0 0 0 / .1); }
.nsheet-tabs em { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #ef4444; color: #fff; font: 700 .68rem var(--font-mono); display: inline-grid; place-items: center; }
.nsheet-tabs em:empty { display: none; }
.nsheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.nsheet-body[hidden], .nsheet-foot[hidden] { display: none !important; }
.nsheet-foot { display: flex; gap: .5rem; padding-top: .6rem; }
.nsheet-foot a { flex: 1; height: 44px; border-radius: 14px; display: grid; place-items: center; border: 2px solid rgb(var(--ink)); font: 700 .875rem var(--font-body); color: rgb(var(--ink)); text-decoration: none; }
.nsheet-foot a.y { background: rgb(var(--hx-yellow)); color: #14120e; }
@media (min-width: 768px) and (hover: hover) and (pointer: fine) { .nsheet { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .nsheet-panel, .nsheet-dim { transition: none; } }

/* =====================================================================
   Profil açılırı: aynı konuşma balonu (masaüstü) + alttan sayfa (mobil)
   ===================================================================== */
.ud-tab { display: none; }
@media (min-width: 768px) {
    #user-dropdown.pop {
        width: 15.5rem; padding: 1.15rem .45rem .45rem !important; top: calc(100% + 16px) !important; right: 0;
        border: 2px solid rgb(var(--ink)) !important; border-radius: 22px !important; box-shadow: 7px 7px 0 rgb(var(--ink)) !important;
        background: rgb(var(--card)) !important; overflow: visible !important; transform: rotate(1deg); transform-origin: 90% 0;
    }
    #user-dropdown.pop:not(.hidden) { animation: popBubbleU .18s ease-out; }
    @keyframes popBubbleU { from { opacity: 0; transform: translateY(-6px) rotate(1deg) scale(.97); } }
    #user-dropdown.pop::before { content: ""; position: absolute; top: -13px; right: 26px; width: 22px; height: 22px; background: rgb(var(--card)); border-left: 2px solid rgb(var(--ink)); border-top: 2px solid rgb(var(--ink)); transform: rotate(45deg); }
    #user-dropdown .ud-tab { display: inline-block; position: absolute; top: -17px; left: 16px; z-index: 2; background: rgb(var(--hx-yellow)); color: #14120e; border: 2px solid rgb(var(--ink)); border-radius: 999px; padding: .2rem .7rem; font: 800 .8rem var(--font-display); transform: rotate(-3deg); max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    #user-dropdown a { display: flex; align-items: center; gap: .65rem; padding: .55rem .6rem !important; border-radius: 12px; font-weight: 600; font-size: .84375rem; }
    #user-dropdown a i { width: 28px !important; height: 28px; border-radius: 9px; display: grid !important; place-items: center; background: rgb(var(--n-100)); font-size: .8rem; flex: none; }
    #user-dropdown a:hover { background: rgb(var(--hx-yellow) / .25) !important; color: rgb(var(--ink)) !important; }
    #user-dropdown a:hover i { background: rgb(var(--hx-yellow)); color: #14120e !important; }
    #user-dropdown a.is-danger { color: #dc2626 !important; }
    #user-dropdown a.is-danger i { background: rgb(220 38 38 / .1); color: #dc2626 !important; }
    #user-dropdown a.is-danger:hover { background: rgb(220 38 38 / .1) !important; }
    #user-dropdown hr { margin: .3rem .5rem; border: 0; border-top: 1px dashed rgb(var(--line-soft)); }
    #user-menu.is-open .user-chip { background: rgb(var(--hx-yellow)) !important; color: #14120e !important; border-color: rgb(var(--ink)) !important; }
    html.dark #user-dropdown a.is-danger, html.dark #user-dropdown a.is-danger i { color: #f87171 !important; }
}
/* mobil sayfadaki profil bağlantıları */
.nsheet-user { display: flex; align-items: center; gap: .65rem; padding: .25rem .25rem .75rem; font: 800 1.0625rem var(--font-display); }
.nsheet-user[hidden], .nsheet-tabs[hidden] { display: none !important; }
.nsheet-user img, .nsheet-user .u-ph { width: 40px; height: 40px; border-radius: 13px; object-fit: cover; display: grid; place-items: center; color: #fff; font: 800 .9rem var(--font-display); }
.nsheet-links a { display: flex; align-items: center; gap: .75rem; padding: .8rem .6rem; border-radius: 14px; color: rgb(var(--ink)); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.nsheet-links a i { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgb(var(--n-100)); color: rgb(var(--n-600)); flex: none; }
.nsheet-links a:active { background: rgb(var(--hx-yellow) / .25); }
.nsheet-links a.is-danger { color: #dc2626; }
.nsheet-links a.is-danger i { background: rgb(220 38 38 / .1); color: #dc2626; }
.nsheet-links hr { margin: .35rem .5rem; border: 0; border-top: 1px dashed rgb(var(--line-soft)); }
