/* =====================================================================
   ŞABO TV — Tasarım sistemi (çekirdek)
   Yayın stüdyosu estetiği: koyu zemin, bordo-mavi şerit, skorbord tipografisi.
   ===================================================================== */

:root, [data-theme-preview="gece"] {
  /* zemin */
  --ink: #090b10;
  --ink-rgb: 9, 11, 16;
  --ink-2: #0e1117;
  --panel: #12161e;
  --panel-2: #171c26;
  --panel-3: #1d2330;
  --line: #242b39;
  --line-2: #2f3748;

  /* marka */
  --bordo: #7d1d3f;
  --bordo-2: #9b2450;
  --bordo-3: #c33566;
  --bordo-ink: #3a0f20;
  --mavi: #5fb6e8;
  --mavi-2: #8dcdf1;
  --mavi-ink: #0f3248;
  --gold: #e8b64c;
  --gold-2: #f6d58a;

  /* metin */
  --text: #eef1f6;
  --text-2: #c5ccd8;
  --muted: #8a94a7;
  --faint: #5c6578;

  /* sinyaller */
  --ok: #34c47c;
  --ok-ink: #0d3322;
  --bad: #ec4b55;
  --bad-ink: #3d1216;
  --warn: #f2a93b;
  --live: #ff3b3b;

  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .25);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);

  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --header-h: 64px;
  --stripe: repeating-linear-gradient(-55deg, var(--bordo) 0 10px, transparent 10px 14px, var(--mavi) 14px 18px, transparent 18px 22px);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ temalar
   Yönetim > Site ayarları > Görünüm'den seçilir; sunucu sayfayı <html data-theme> ile gönderir,
   değişiklik açık sayfalara socket ile anında iner. Varsayılan 'gece' = yukarıdaki :root. */
:root[data-theme="tribun"], [data-theme-preview="tribun"] {
  --ink: #12070b; --ink-rgb: 18, 7, 11;
  --ink-2: #1a0a10; --panel: #220e16; --panel-2: #2b121c; --panel-3: #351725;
  --line: #4a1f30; --line-2: #5c2840;
  --bordo: #8e2148; --bordo-2: #ad2a58; --bordo-3: #d43d70; --bordo-ink: #43101f;
  --gold: #f0bf55; --gold-2: #f8dc98;
  --text-2: #dccbd2; --muted: #a48d97; --faint: #6e5560;
  --page-glow: radial-gradient(1100px 520px at 50% -220px, rgba(173, 42, 88, .38), transparent 72%);
  --stripe: repeating-linear-gradient(-55deg, var(--bordo-2) 0 12px, transparent 12px 16px, var(--gold) 16px 18px, transparent 18px 24px);
}
:root[data-theme="karadeniz"], [data-theme-preview="karadeniz"] {
  --ink: #050c15; --ink-rgb: 5, 12, 21;
  --ink-2: #09131f; --panel: #0d1928; --panel-2: #122132; --panel-3: #17293e;
  --line: #1d3147; --line-2: #28415b;
  --mavi: #6ac5f4; --mavi-2: #9fdaf8; --mavi-ink: #0d3552;
  --text-2: #c6d5e4; --muted: #8299b1; --faint: #546a82;
  --page-glow: radial-gradient(1200px 560px at 50% -240px, rgba(106, 197, 244, .20), transparent 72%);
  --stripe: repeating-linear-gradient(-55deg, var(--mavi) 0 10px, transparent 10px 14px, var(--bordo-2) 14px 18px, transparent 18px 22px);
}
:root[data-theme] body { background: var(--page-glow, none) no-repeat, var(--ink); }
:root.theme-shift, :root.theme-shift *, :root.theme-shift *::before, :root.theme-shift *::after {
  transition: background-color .6s ease, border-color .6s ease, color .6s ease, box-shadow .6s ease !important;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font: 400 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: var(--mavi); text-decoration: none; }
a:hover { color: var(--mavi-2); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--mavi); outline-offset: 2px; }
::selection { background: var(--bordo-2); color: #fff; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: .01em; line-height: 1.05; }
h1 { font-size: clamp(34px, 5vw, 64px); text-transform: uppercase; }
h2 { font-size: clamp(26px, 3vw, 38px); text-transform: uppercase; }
h3 { font-size: 22px; }
h4 { font-size: 17px; }
p { margin: 0 0 1em; color: var(--text-2); }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
small { font-size: 12px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 2px solid var(--ink-2); }
::-webkit-scrollbar-track { background: transparent; }

/* ------------------------------------------------------------------ yerleşim */
.wrap { width: 100%; max-width: 1380px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 980px; }
.section { padding: 56px 0; }
.section-tight { padding: 28px 0; }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap-row { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.between { justify-content: space-between; }
.end { justify-content: flex-end; }
.center { justify-content: center; align-items: center; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mb-16 { margin-bottom: 16px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.num { font-variant-numeric: tabular-nums; }
.upper { text-transform: uppercase; letter-spacing: .06em; }
.display { font-family: var(--display); }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ok-text { color: var(--ok); } .bad-text { color: var(--bad); } .warn-text { color: var(--warn); } .gold-text { color: var(--gold); } .mavi-text { color: var(--mavi); }

@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .g3, .g2 { grid-template-columns: 1fr; } .wrap { padding: 0 16px; } .hide-sm { display: none !important; } }
@media (max-width: 560px) { .g4 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ marka öğeleri */
.stripe { height: 6px; background: var(--stripe); opacity: .9; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 12px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--mavi);
}
.kicker::before { content: ''; width: 18px; height: 3px; background: var(--bordo-3); transform: skewX(-30deg); }

.logo { display: inline-flex; align-items: stretch; height: 34px; font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; user-select: none; }
.logo .l1, .logo .l2 { display: flex; align-items: center; padding: 0 12px 0 10px; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); font-size: 25px; letter-spacing: .02em; line-height: 1; }
.logo .l1 { background: var(--bordo); color: #fff; padding-left: 16px; padding-right: 16px; }
.logo .l2 { background: var(--mavi); color: var(--ink); margin-left: -4px; padding: 0 14px; }
.logo.lg { height: 54px; }
.logo.lg .l1, .logo.lg .l2 { font-size: 40px; clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
.logo.lg .l1 { padding: 0 24px; }
.logo.lg .l2 { padding: 0 20px; margin-left: -6px; }

.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px;
  font: 700 11px/1 var(--display); letter-spacing: .12em; text-transform: uppercase;
  background: var(--panel-3); color: var(--text-2);
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
  white-space: nowrap;
}
.tag.bordo { background: var(--bordo); color: #fff; }
.tag.mavi { background: var(--mavi); color: var(--ink); }
.tag.gold { background: var(--gold); color: #1b1305; }
.tag.ok { background: var(--ok); color: #04140b; }
.tag.bad { background: var(--bad); color: #fff; }
.tag.live { background: var(--live); color: #fff; }
.tag.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); clip-path: none; border-radius: 3px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: livePulse 1.6s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 70% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }

/* ------------------------------------------------------------------ başlık / menü */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(var(--ink-rgb), .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--bordo) 0 50%, var(--mavi) 50% 100%); opacity: .85; }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.nav { display: flex; align-items: stretch; height: 100%; gap: 4px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 0 14px;
  font: 600 15px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); white-space: nowrap;
}
.nav a:hover { color: #fff; }
.nav a.active { color: #fff; }
.nav a.active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 10px; height: 3px; background: var(--mavi); transform: skewX(-30deg); }
.nav a .tag { height: 18px; font-size: 10px; padding: 0 7px; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.online-pill { display: flex; align-items: center; gap: 7px; font: 600 13px/1 var(--display); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.online-pill .live-dot { color: var(--ok); width: 7px; height: 7px; }
.nav-toggle { display: none; }
@media (max-width: 1180px) { .nav a { padding: 0 9px; } .nav a .tag { display: none; } .site-header .wrap { gap: 16px; } }
@media (max-width: 980px) {
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; height: auto; flex-direction: column; background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 8px 0; transform: translateY(-120%); transition: transform .25s; z-index: -1; }
  .nav.open { transform: none; }
  .nav a { height: 48px; }
  .nav a.active::after { left: 14px; right: auto; width: 24px; bottom: 8px; }
  .nav-toggle { display: inline-flex; }
  .online-pill { display: none; }
}

/* ------------------------------------------------------------------ butonlar */
.btn {
  --bg: var(--panel-3); --fg: var(--text); --bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: var(--radius);
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font: 700 14px/1 var(--display); letter-spacing: .1em; text-transform: uppercase;
  transition: background .15s, border-color .15s, transform .08s, box-shadow .15s;
  white-space: nowrap; user-select: none;
}
.btn:hover { --bg: #252c3b; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled { opacity: .45; pointer-events: none; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { --bg: var(--bordo); --bd: var(--bordo-2); --fg: #fff; }
.btn-primary:hover { --bg: var(--bordo-2); }
.btn-blue { --bg: var(--mavi); --bd: var(--mavi); --fg: #06131c; }
.btn-blue:hover { --bg: var(--mavi-2); color: #06131c; }
.btn-gold { --bg: var(--gold); --bd: var(--gold); --fg: #1d1404; }
.btn-gold:hover { --bg: var(--gold-2); color: #1d1404; }
.btn-ok { --bg: var(--ok); --bd: var(--ok); --fg: #03140a; }
.btn-ok:hover { --bg: #4fd894; color: #03140a; }
.btn-bad { --bg: var(--bad); --bd: var(--bad); --fg: #fff; }
.btn-bad:hover { --bg: #f2666f; }
.btn-ghost { --bg: transparent; --bd: transparent; --fg: var(--text-2); }
.btn-ghost:hover { --bg: var(--panel-2); }
.btn-line { --bg: transparent; --bd: var(--line-2); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn-xs { height: 26px; padding: 0 9px; font-size: 11.5px; border-radius: 4px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 17px; }
.btn-xl { height: 64px; padding: 0 40px; font-size: 21px; }
.btn-icon { width: 40px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }
.btn-cut { border: 0; border-radius: 0; clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); padding: 0 30px; }
.btn-block { width: 100%; }
.btn.yt { --bg: #d9232d; --bd: #d9232d; --fg: #fff; }
.btn.yt:hover { --bg: #ef3340; }

/* ------------------------------------------------------------------ form */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font: 600 12px/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field .hint { font-size: 12px; color: var(--faint); }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 12px; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--line-2); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--mavi); box-shadow: 0 0 0 3px rgba(95, 182, 232, .15); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input-sm { height: 34px; font-size: 14px; }
.input-lg { height: 54px; font-size: 18px; padding: 0 16px; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-2); user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--bordo-3); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; color: var(--text-2); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .knob { width: 38px; height: 22px; border-radius: 22px; background: var(--line-2); position: relative; transition: background .15s; flex: none; }
.switch .knob::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + .knob { background: var(--ok); }
.switch input:checked + .knob::after { transform: translateX(16px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-error { color: var(--bad); font-size: 13px; min-height: 18px; }

/* ------------------------------------------------------------------ paneller */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.panel-pad { padding: 20px; }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-head h3, .panel-head h4 { font-size: 16px; text-transform: uppercase; letter-spacing: .08em; display: flex; align-items: center; gap: 10px; }
.panel-head h3::before, .panel-head h4::before { content: ''; width: 4px; height: 16px; background: var(--bordo-3); transform: skewX(-18deg); }
.panel-body { padding: 18px; }
.panel.raised { background: var(--panel-2); }
.divider-label { display: flex; align-items: center; gap: 12px; color: var(--faint); font: 600 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.divider-label::before, .divider-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat b { font: 700 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.stat span { font: 600 11px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------------------------------------------ sekmeler */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  position: relative; background: none; border: 0; padding: 12px 16px; color: var(--muted);
  font: 600 14px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.tabs button:hover { color: var(--text); }
.tabs button.active { color: #fff; }
.tabs button.active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; background: var(--bordo-3); }
.seg { display: inline-flex; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 3px; gap: 3px; }
.seg button { border: 0; background: none; height: 30px; padding: 0 12px; border-radius: 4px; color: var(--muted); font: 600 13px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.seg button.active { background: var(--panel-3); color: #fff; }

/* ------------------------------------------------------------------ tablolar */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 9px 12px; font: 600 11.5px/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: var(--panel); z-index: 1; }
.table td { padding: 9px 12px; border-bottom: 1px solid rgba(255, 255, 255, .04); vertical-align: middle; }
.table tbody tr:hover td { background: rgba(255, 255, 255, .025); }
.table .r, .table th.r { text-align: right; }
.table .c, .table th.c { text-align: center; }
.table.dense td { padding: 6px 10px; }
.table tr.sel td { background: rgba(95, 182, 232, .07); }
.table th.sortable { cursor: pointer; }
.table th.sortable:hover { color: var(--text); }

/* ------------------------------------------------------------------ avatar */
.avatar {
  --c: var(--bordo-2);
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c); color: #fff; font: 700 14px/1 var(--display); letter-spacing: .02em; text-transform: uppercase;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2);
}
.avatar.sm { width: 26px; height: 26px; font-size: 11px; }
.avatar.lg { width: 56px; height: 56px; font-size: 22px; }
.avatar.xl { width: 84px; height: 84px; font-size: 32px; }

/* ------------------------------------------------------------------ modal & bildirim */
.modal-back { position: fixed; inset: 0; z-index: 200; background: rgba(4, 5, 8, .72); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .15s; }
.modal { width: 100%; max-width: 460px; max-height: calc(100vh - 40px); overflow: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: popIn .18s cubic-bezier(.2, .9, .3, 1.2); }
.modal.wide { max-width: 760px; }
.modal.xwide { max-width: 1040px; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 2; }
.modal-head h3 { font-size: 20px; text-transform: uppercase; letter-spacing: .04em; }
.modal-head .x { margin-left: auto; }
.modal-body { padding: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--ink-2); position: sticky; bottom: 0; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }

.toasts { position: fixed; z-index: 300; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; min-width: 260px; max-width: 380px; padding: 12px 16px; background: var(--panel-2); border: 1px solid var(--line-2); border-left: 4px solid var(--mavi); border-radius: var(--radius); box-shadow: var(--shadow); font-size: 14px; animation: toastIn .25s cubic-bezier(.2, .9, .3, 1.2); }
.toast.ok { border-left-color: var(--ok); }
.toast.bad { border-left-color: var(--bad); }
.toast.warn { border-left-color: var(--warn); }
.toast.out { opacity: 0; transform: translateX(20px); transition: all .25s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* ------------------------------------------------------------------ sohbet */
.chat { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.chat-list { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; scroll-behavior: auto; }
.chat-msg { font-size: 14px; line-height: 1.4; word-wrap: break-word; color: var(--text-2); }
.chat-msg b { font-weight: 700; margin-right: 6px; }
.chat-msg .role { display: inline-block; font: 700 9.5px/1 var(--display); letter-spacing: .1em; padding: 3px 5px 2px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; text-transform: uppercase; }
.chat-msg .role.admin { background: var(--bordo-2); color: #fff; }
.chat-msg .role.host { background: var(--gold); color: #1d1404; }
.chat-msg.system { color: var(--muted); font-size: 12.5px; font-style: italic; }
.chat-msg .del { opacity: 0; margin-left: 6px; color: var(--faint); background: none; border: 0; padding: 0; font-size: 12px; }
.chat-msg:hover .del { opacity: 1; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form .input { height: 38px; }

/* ------------------------------------------------------------------ çeşitli */
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; font: 700 18px/1.2 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin-bottom: 6px; }
.skeleton { background: linear-gradient(90deg, var(--panel-2) 0%, var(--panel-3) 50%, var(--panel-2) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.kbd { display: inline-block; font: 600 11px/1 var(--mono); padding: 3px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; color: var(--text-2); }
.progress { height: 6px; background: var(--ink-2); border-radius: 6px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--mavi); border-radius: 6px; transition: width .3s; }
.dropdown { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; z-index: 60; display: none; }
.menu.open { display: block; animation: popIn .12s; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 4px; background: none; border: 0; color: var(--text-2); font-size: 14px; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--panel-3); color: #fff; }
.menu svg { width: 16px; height: 16px; }
.menu hr { margin: 6px 0; }

/* ------------------------------------------------------------------ alt bilgi */
.site-footer { margin-top: 60px; background: var(--ink-2); border-top: 1px solid var(--line); }
.site-footer .stripe { height: 4px; }
.site-footer .wrap { padding-top: 36px; padding-bottom: 36px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h5 { margin: 0 0 12px; font: 700 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.site-footer a { display: block; color: var(--text-2); padding: 4px 0; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { border-top: 1px solid var(--line); padding: 14px 0; font-size: 12.5px; color: var(--faint); }
.site-footer .legal .wrap { display: flex; padding-top: 0; padding-bottom: 0; grid-template-columns: none; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------------ sayfa başlığı */
.page-hero { position: relative; padding: 46px 0 30px; border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::before { content: ''; position: absolute; right: -80px; top: -40px; width: 520px; height: 260px; background: var(--stripe); opacity: .08; transform: skewX(-20deg); pointer-events: none; }
.page-hero h1 { margin-top: 10px; }
.page-hero p { max-width: 640px; margin-top: 12px; font-size: 17px; }

.announce-bar { background: var(--gold); color: #1d1404; font: 600 14px/1.3 var(--font); text-align: center; padding: 8px 16px; }
.announce-bar a { color: #1d1404; text-decoration: underline; }

/* ------------------------------------------------------------------ marka bloğu (başlık) */
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--bordo-2); background: var(--panel-2); }
.brand:hover .logo .l1 { background: var(--bordo-2); }
.user-btn { padding: 0 8px; gap: 8px; text-transform: none; letter-spacing: 0; font-family: var(--font); font-weight: 600; }
.menu-who { padding: 8px 10px 4px; display: flex; flex-direction: column; gap: 2px; }
.menu-who b { font-size: 15px; }
.menu-who span { font-size: 12.5px; color: var(--muted); }
.auth-seg { width: 100%; }
.auth-seg button { flex: 1; height: 36px; }
svg.i { width: 18px; height: 18px; flex: none; }
