/* Axbil — xfreets3.com tarzı koyu webapp panel teması */

:root {
  --bg: #1b1b2b;
  --bg-deep: #161525;
  --surface: #25243c;
  --surface-2: #2e2d48;
  --surface-3: #373555;
  --line: rgba(255, 255, 255, .075);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #eceefa;
  --muted: #a3a5ba;
  --faint: #7d8099;
  --accent: #e42474;
  --accent-hover: #f52f85;
  --accent-soft: rgba(228, 36, 116, .14);
  --green: #2ac37d;
  --green-bg: rgba(42, 195, 125, .13);
  --red: #ff5d73;
  --red-bg: rgba(255, 93, 115, .13);
  --amber: #ffb547;
  --amber-bg: rgba(255, 181, 71, .13);
  --blue: #5a8dee;
  --radius: 14px;
  --shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

body.light-mode {
  --bg: #f4f5f9;
  --bg-deep: #eef0f6;
  --surface: #ffffff;
  --surface-2: #f5f6fa;
  --surface-3: #e9ebf3;
  --line: rgba(16, 24, 40, .09);
  --line-strong: rgba(16, 24, 40, .16);
  --text: #20223a;
  --muted: #676b82;
  --faint: #9296a9;
  --accent-soft: rgba(228, 36, 116, .09);
}

* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border: 2px solid transparent; border-radius: 999px; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--line-strong); background-clip: content-box; }
body {
  margin: 0; min-height: 100vh; color: var(--text); background: var(--bg);
  font: 14px/1.6 Roboto, Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: Montserrat, Inter, "Segoe UI", sans-serif; font-weight: 700; margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
.container { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.icon { width: 19px; height: 19px; display: block; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ===== WEBAPP NAVBAR ===== */
.webapp-navbar {
  position: sticky; top: 0; z-index: 50; height: 72px;
  background: var(--surface); border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .12);
}
.webapp-navbar-inner { width: min(1440px, calc(100% - 40px)); height: 100%; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.webapp-navbar .left, .webapp-navbar .right { display: flex; align-items: center; gap: 14px; min-width: 210px; }
.webapp-navbar .right { justify-content: flex-end; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: Montserrat, sans-serif; font-weight: 800; font-size: 1.1rem; letter-spacing: -.03em; }
.brand img { width: 31px; height: 31px; }
.brand .accent { color: var(--accent); }
.separator { width: 1px; height: 26px; background: var(--line-strong); }
.webapp-title { font-size: .86rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.centered-links { display: flex; align-items: center; justify-content: center; gap: 4px; }
.centered-link {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-width: 78px; padding: 8px 10px 6px; border-radius: 10px; color: var(--muted);
  transition: background .15s, color .15s;
}
.centered-link .icon { width: 20px; height: 20px; }
.centered-link span { font-size: .7rem; font-weight: 600; white-space: nowrap; }
.centered-link:hover { color: var(--text); background: var(--surface-2); }
.centered-link.active { color: var(--accent); background: var(--accent-soft); }
.centered-link .chev { width: 12px; height: 12px; display: inline; }
.toolbar-link, .profile, .mode-toggle {
  display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px;
  background: var(--surface-2); color: var(--muted); cursor: pointer; position: relative;
}
.toolbar-link:hover, .mode-toggle:hover { color: var(--text); background: var(--surface-3); }
.toolbar-link .new-indicator { position: absolute; top: 6px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(228, 36, 116, .2); }
.profile { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(145deg, #e42474, #8b3ce0); color: #fff; font-weight: 800; font-family: Montserrat, sans-serif; }
.profile .status-indicator { position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--green); border: 2px solid var(--surface); }

/* Açılır “Diğer” menüsü */
.webapp-subnavbar {
  position: absolute; left: 0; right: 0; top: 72px; z-index: 49;
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 22px; display: none;
}
.webapp-subnavbar.open { display: block; }
.subnavbar-grid { width: min(1240px, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.subnavbar-grid h4 { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.subnavbar-grid a { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: .85rem; color: var(--muted); }
.subnavbar-grid a:hover { color: var(--accent); }
.subnavbar-grid button.link-btn { display: block; padding: 7px 0; color: var(--muted); font-size: .85rem; }
.subnavbar-grid button.link-btn:hover { color: var(--accent); }
.subnavbar-grid a .icon { width: 16px; height: 16px; color: var(--accent); }

/* ===== SAYFA YAPISI ===== */
.view-wrapper { min-height: calc(100vh - 72px); }
.page-content { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 26px 0 24px; }
.page-content-inner + .page-content-inner { margin-top: 22px; }

.illustration-header-2 {
  position: relative; overflow: hidden; min-height: 158px; border-radius: 16px;
  padding: 28px 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: linear-gradient(110deg, #29285a 0%, #2b2549 48%, #3c2246 100%);
  border: 1px solid rgba(255, 255, 255, .07);
}
.illustration-header-2::before { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%; right: -60px; top: -190px; background: radial-gradient(circle, rgba(228, 36, 116, .28), transparent 68%); }
.illustration-header-2::after { content: ''; position: absolute; width: 240px; height: 240px; border-radius: 50%; right: 190px; bottom: -190px; background: radial-gradient(circle, rgba(90, 141, 238, .22), transparent 70%); }
.header-meta { position: relative; z-index: 1; }
.header-meta h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); letter-spacing: -.03em; }
.header-meta h2 span { color: var(--accent); }
.header-meta p { margin: 8px 0 0; color: #c4c5d8; font-size: .92rem; max-width: 620px; }
.header-art { position: relative; z-index: 1; width: 210px; flex: none; opacity: .95; }
.header-art svg { width: 100%; display: block; }

.company-header {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.company-header .header-item, .company-header .metric { padding: 19px 22px; border-right: 1px solid var(--line); min-width: 0; }
.company-header > :last-child { border-right: 0; }
.header-item .item-inner { display: grid; grid-template-columns: 26px 1fr; gap: 4px 10px; align-items: center; }
.header-item .icon { grid-row: span 2; color: var(--accent); width: 22px; height: 22px; }
.header-item .value, .company-header .metric strong { display: block; font-family: Montserrat, sans-serif; font-size: 1.15rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-item .label, .company-header .metric span { display: block; font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.company-header .metric { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.company-header .metric strong { color: var(--text); }

/* ===== ORTAK BİLEŞENLER ===== */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.card + .card { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.mono { font-family: "SFMono-Regular", Consolas, monospace; }
.eyebrow { color: var(--accent); font-size: .67rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section { padding: 26px 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.section-head h2 { margin: 7px 0 0; font-size: clamp(1.25rem, 3vw, 1.6rem); letter-spacing: -.03em; }
.section-head p { color: var(--muted); margin: 7px 0 0; max-width: 640px; }
.stack { display: grid; gap: 14px; }
.hint { color: var(--faint); font-size: .78rem; margin: 12px 0 0; }
.empty { color: var(--muted); padding: 26px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--bg-deep); margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 18px; border: 1px solid transparent; border-radius: 9px; font-size: .84rem; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(228, 36, 116, .22); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface-2); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-danger { background: var(--red-bg); border-color: rgba(255, 93, 115, .3); color: var(--red); }
.btn-danger:hover { background: rgba(255, 93, 115, .2); }
.btn-small { padding: 7px 12px; font-size: .76rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.online { background: var(--green-bg); color: var(--green); }
.badge.offline { background: var(--red-bg); color: var(--red); }
.badge.unknown { background: var(--amber-bg); color: var(--amber); }

.metric { padding: 11px 13px; background: var(--surface-2); border-radius: 10px; }
.metric span { display: block; color: var(--muted); font-size: .72rem; }
.metric strong { display: block; margin-top: 2px; font-size: .96rem; font-weight: 700; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: auto; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 20px; }

.list { display: grid; }
.list-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item h4 { font-size: .9rem; font-weight: 700; }
.list-item p { margin: 3px 0 0; color: var(--muted); font-size: .8rem; }
.list-item time { color: var(--faint); font-size: .74rem; white-space: nowrap; }

.data-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.data-table th, .data-table td { padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table th { color: var(--faint); font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 800; background: var(--surface-2); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td .small { color: var(--muted); }
.table-wrap { overflow-x: auto; }

.notice { padding: 13px 15px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-deep); font-size: .84rem; }
.footer { border-top: 1px solid var(--line); padding: 20px 0; color: var(--faint); font-size: .8rem; background: var(--surface); }

/* ===== ANA SAYFA ===== */
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.hero-note { margin-top: 16px; color: var(--faint); font-size: .78rem; }
.server-strip { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.server-strip .address { font-family: Consolas, monospace; color: var(--accent); font-size: .9rem; }
.feature h3 { margin: 11px 0 6px; font-size: .98rem; }
.feature p { margin: 0; color: var(--muted); font-size: .84rem; }
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.server-card { display: flex; flex-direction: column; gap: 11px; }
.server-card .top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.server-card h3 { font-size: 1rem; overflow-wrap: anywhere; }
.server-card .address { color: var(--muted); font-size: .84rem; }
.server-card .btn { align-self: flex-start; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 32px; border-radius: var(--radius); background: linear-gradient(110deg, rgba(228, 36, 116, .16), rgba(90, 141, 238, .1)), var(--surface); border: 1px solid var(--line); }
.cta-band h2 { font-size: 1.3rem; }
.cta-band p { margin: 5px 0 0; color: var(--muted); }

/* ===== GİRİŞ / KAYIT ===== */
.auth-wrap { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 48px 20px; }
.auth-card { width: min(440px, 100%); padding: 32px; }
.auth-card h1 { margin: 9px 0 5px; font-size: 1.65rem; letter-spacing: -.04em; }
.tabs { display: flex; gap: 3px; padding: 4px; margin: 22px 0 18px; background: var(--surface-2); border-radius: 10px; }
.tabs button { flex: 1; padding: 9px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: .84rem; font-weight: 700; cursor: pointer; }
.tabs button.active { background: var(--accent); color: #fff; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .79rem; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 13px; color: var(--text); background: var(--bg-deep); border: 1px solid var(--line-strong); border-radius: 9px; outline: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 88px; resize: vertical; }
.check { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .82rem; margin: 2px 0 18px; }
.form-error { margin: 12px 0 0; color: var(--red); font-size: .82rem; min-height: 20px; }
.form-ok { color: var(--green); }

/* ===== ÜST SEKMELİ UYGULAMA ===== */
.app { padding-top: 4px; }
.app-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.app-head h1 { margin: 6px 0 0; font-size: clamp(1.35rem, 3vw, 1.7rem); letter-spacing: -.03em; }
.app-user { display: flex; align-items: center; gap: 10px; }
.app-user .name { font-size: .84rem; font-weight: 700; color: var(--muted); }
.app-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.app-tabs button { padding: 11px 18px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: .86rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
.app-tabs button:hover { color: var(--text); }
.app-tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }
.app-panel { display: none; }
.app-panel.active { display: block; }
.app-title { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 0 0 14px; }
.app-title h2 { font-size: .98rem; }
.app-title .small { color: var(--muted); }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.btn-accent { background: var(--accent-soft); border-color: rgba(228, 36, 116, .3); color: var(--accent); }
.btn-accent:hover { background: rgba(228, 36, 116, .22); }

.appearance-card { grid-column: 1 / -1; }
.appearance-grid { display: grid; grid-template-columns: minmax(220px, .9fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.banner-editor { display: flex; flex-direction: column; gap: 10px; }
.banner-preview {
  display: grid; place-items: center; height: 150px; border: 1px dashed var(--line-strong);
  border-radius: 12px; background: var(--bg-deep) center / cover no-repeat;
  color: var(--faint); font-size: .8rem; text-align: center; overflow: hidden;
}
.banner-preview.is-empty::before {
  content: ''; width: 34px; height: 34px; margin-bottom: 6px; border-radius: 9px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
}
.banner-preview.is-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.banner-preview.is-empty span { display: block; }
.banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.banner-upload { position: relative; overflow: hidden; cursor: pointer; }
.input-with-action { display: flex; gap: 8px; }
.input-with-action input { flex: 1; min-width: 0; }
.summary > div:first-child { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.summary h2 { font-size: 1.25rem; }
.summary p.muted { margin: 0; }

/* ===== SAYFA BAŞLIĞI / PANEL ===== */
.page-hero {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  padding: 6px 2px 4px;
}
.page-hero h2 { margin: 8px 0 0; font-size: clamp(1.5rem, 3.4vw, 2rem); letter-spacing: -.04em; }
.page-hero p { margin: 9px 0 0; color: var(--muted); max-width: 620px; }
.page-hero__actions { display: flex; gap: 8px; align-items: center; }
.page-hero--compact { padding-bottom: 18px; }

.quick-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.quick-stats > div { padding: 15px 20px; border-right: 1px solid var(--line); }
.quick-stats > div:last-child { border-right: 0; }
.quick-stats span { display: block; color: var(--faint); font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 800; }
.quick-stats strong { display: block; margin-top: 4px; font-family: Montserrat, sans-serif; font-size: 1.08rem; }
.quick-stats > div:last-child strong { font-family: Roboto, sans-serif; font-size: .82rem; font-weight: 600; line-height: 1.35; }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.panel__head {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 19px 22px; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.panel__head h3 { font-size: 1rem; }
.panel__head p { margin: 4px 0 0; color: var(--muted); font-size: .8rem; }
.panel__hint { color: var(--muted); font-size: .74rem; display: inline-flex; align-items: center; gap: 7px; }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(42, 195, 125, .13); display: inline-block; flex: none; animation: livePulse 2s infinite; }
@keyframes livePulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(42, 195, 125, .13); } 50% { box-shadow: 0 0 0 7px rgba(42, 195, 125, 0); } }

/* ===== SUNUCU KARTLARI ===== */
.server-list { padding: 14px 22px 18px; display: grid; gap: 10px; }
.server-list__head { display: none; }
.server-row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px; align-items: center; padding: 15px 16px 15px 19px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-deep);
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.server-row::before {
  content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--amber);
}
.server-row[data-status="online"]::before { background: var(--green); box-shadow: 0 0 12px rgba(42, 195, 125, .45); }
.server-row[data-status="offline"]::before { background: var(--red); }
.server-row:hover { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, .14); }
.server-row__identity { min-width: 0; }
.server-row__name-line { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.server-row__name { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 1rem; letter-spacing: -.02em; overflow-wrap: anywhere; }
.server-row__tag { font-size: .6rem; font-weight: 800; letter-spacing: .09em; color: var(--accent); background: var(--accent-soft); padding: 3px 7px; border-radius: 999px; }
.server-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .68rem; font-weight: 700; white-space: nowrap; }
.server-status--online { color: var(--green); background: var(--green-bg); }
.server-status--offline { color: var(--red); background: var(--red-bg); }
.server-status--unknown { color: var(--amber); background: var(--amber-bg); }
.server-load { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.server-load strong { color: var(--text); font-weight: 800; }
.server-load__bar { width: 54px; height: 4px; margin-left: 3px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.server-row__meta { margin-top: 7px; color: var(--muted); font-size: .76rem; }
.server-row__address { display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); color: var(--muted); font-size: .78rem; }
.server-row__address .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 190px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; display: inline-block; }
.status-dot.online { background: var(--green); box-shadow: 0 0 0 3px var(--green-bg); }
.status-dot.offline { background: var(--red); box-shadow: 0 0 0 3px var(--red-bg); }
.status-dot.unknown { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-bg); }
.status-word { font-weight: 600; }
.meta-sep { color: var(--faint); }
.copy-btn { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--faint); cursor: pointer; }
.copy-btn:hover { color: var(--accent); background: var(--accent-soft); }
.copy-btn.copied { color: var(--green); background: var(--green-bg); }
.copy-btn .icon { width: 14px; height: 14px; }
.capacity-track { height: 4px; margin-top: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; max-width: 340px; }
.capacity-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #ff82bb); transition: width .4s ease; }
.server-row__actions { display: flex; justify-content: flex-end; }
.connect-mini { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border: 0; border-radius: 9px; background: linear-gradient(135deg, var(--accent), #ff5b9c); color: #fff; font-size: .78rem; font-weight: 800; white-space: nowrap; box-shadow: 0 6px 16px rgba(228, 36, 116, .22); transition: transform .15s, box-shadow .15s, filter .15s; }
.connect-mini .icon { width: 15px; height: 15px; }
.connect-mini:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(228, 36, 116, .32); filter: brightness(1.06); }

.featured-server { padding: 20px; }
.featured-server__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.featured-server__name { margin: 10px 0 6px; font-size: 1.1rem; }
.featured-server .server-row { margin-top: 14px; padding-top: 15px; }
.featured-server .server-list__head { display: none; }

/* ===== CANLI MONİTÖR ===== */
.panel--monitor { padding: 0; }
.monitor-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 26px 28px; border-bottom: 1px solid var(--line); background: linear-gradient(115deg, rgba(228, 36, 116, .09), transparent 60%); }
.monitor-hero__info { min-width: 0; }
.monitor-hero__title { display: flex; align-items: center; gap: 11px; margin-top: 7px; }
.monitor-hero__title h2 { font-size: 1.45rem; letter-spacing: -.03em; }
.monitor-hero.is-offline .live-dot { background: var(--red); box-shadow: 0 0 0 4px var(--red-bg); animation: none; }
.monitor-hero p { margin: 8px 0 0; color: var(--muted); max-width: 540px; }
.monitor-address { display: inline-block; margin-top: 13px; padding: 6px 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg-deep); color: var(--accent); font-size: .82rem; }
.monitor-hero__state { text-align: right; flex: none; }
.monitor-hero__state strong { display: block; font-family: Montserrat, sans-serif; font-size: 1rem; letter-spacing: .1em; color: var(--green); }
.monitor-hero.is-offline .monitor-hero__state strong { color: var(--red); }
.monitor-hero__state span { display: block; margin-top: 5px; color: var(--faint); font-size: .74rem; }
.monitor-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.monitor-stat { padding: 20px 24px; border-right: 1px solid var(--line); }
.monitor-stat:last-child { border-right: 0; }
.monitor-stat__label { display: block; color: var(--faint); font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.monitor-stat__value { display: block; margin-top: 6px; font-family: Montserrat, sans-serif; font-size: 1.35rem; }
.monitor-stat__sub { display: block; margin-top: 2px; color: var(--muted); font-size: .75rem; }
.monitor-stat.tone-ok .monitor-stat__value { color: var(--green); }
.monitor-stat.tone-bad .monitor-stat__value { color: var(--red); }
.monitor-capacity { padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.monitor-capacity__top { display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: .82rem; color: var(--muted); }
.monitor-capacity__top strong { color: var(--text); font-family: Montserrat, sans-serif; }
.capacity-track--lg { height: 8px; max-width: none; margin-top: 11px; }
.btn.is-loading { opacity: .55; pointer-events: none; }

/* ===== TS3 YÖNETİM PANELİ ===== */
.app .card { padding: 20px; }
.app .card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.app .card-head h3 { font-size: .94rem; }
.link-btn { border: 0; background: transparent; color: var(--accent); font-size: .78rem; font-weight: 700; cursor: pointer; padding: 4px; }
.link-btn:hover { text-decoration: underline; }

.panel-server .app-title { align-items: flex-start; }
.panel-server .app-title h2 { font-size: 1.15rem; }
.panel-server .app-title p { margin: 4px 0 0; }
.panel-server .capacity-track { max-width: none; margin-top: 18px; }
.panel-server__footer { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.check-field { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; color: var(--muted); font-size: .82rem; }
.check-field input { accent-color: var(--accent); width: 16px; height: 16px; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 4px; }

.channel-workspace { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 16px; align-items: start; }
.channel-list { max-height: 620px; overflow-y: auto; padding-right: 4px; }
.client-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.client-row:last-child { border-bottom: 0; }
.channel-row__info, .client-row__info { min-width: 0; }
.channel-row__name-line { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.channel-row__name { font-weight: 700; font-size: .9rem; overflow-wrap: anywhere; }
.channel-row__meta { margin: 5px 0 0; color: var(--muted); font-size: .77rem; overflow-wrap: anywhere; }
.channel-row__desc { margin: 3px 0 0; color: var(--faint); font-size: .76rem; overflow-wrap: anywhere; }
.channel-row__actions, .client-row__actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: none; }
.client-row .btn { padding: 5px 9px; font-size: .72rem; }

.tag { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .64rem; font-weight: 800; letter-spacing: .03em; white-space: nowrap; }
.tag.tone-amber { background: var(--amber-bg); color: var(--amber); }
.tag.tone-blue { background: rgba(90, 141, 238, .14); color: var(--blue); }
.tag.tone-green { background: var(--green-bg); color: var(--green); }
.tag.tone-faint { color: var(--faint); }

.group-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.group-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .7rem; font-weight: 700; }
.group-chip button { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: .9rem; line-height: 1; padding: 0 2px; opacity: .75; }
.group-chip button:hover { opacity: 1; }
.group-picker { max-width: 150px; padding: 6px 8px; color: var(--text); background: var(--bg-deep); border: 1px solid var(--line-strong); border-radius: 8px; font-size: .74rem; }

.power-box { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.power-box strong { font-size: .86rem; }
.power-box p { margin: 3px 0 0; }

@media (max-width: 980px) {
  .webapp-navbar .left, .webapp-navbar .right { min-width: 0; }
  .webapp-title, .separator { display: none; }
  .centered-link { min-width: 64px; padding: 8px 6px 6px; }
  .subnavbar-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .container, .page-content, .webapp-navbar-inner { width: min(100% - 28px, 1240px); }
  .spotlight, .app-grid { grid-template-columns: 1fr; }
  .company-header { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-header .metric:nth-child(2) { border-right: 0; }
  .company-header .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .illustration-header-2 { padding: 24px; }
  .header-art { display: none; }
  .cta-band { flex-direction: column; align-items: start; }
  .server-list__head { display: none; }
  .server-row { grid-template-columns: 1fr; gap: 10px; }
  .server-row__address { justify-self: start; }
  .server-row__actions { justify-content: flex-start; }
  .channel-workspace .channel-form-card { position: static; }
  .channel-workspace .channel-row { grid-template-columns: auto minmax(0, 1fr); }
  .channel-workspace .channel-row__actions { grid-column: 1 / -1; justify-content: flex-start; }
  .quick-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-stats > div:nth-child(2) { border-right: 0; }
  .quick-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .monitor-hero { flex-direction: column; }
  .monitor-hero__state { text-align: left; }
  .monitor-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .monitor-stat:nth-child(2) { border-right: 0; }
  .monitor-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .channel-workspace { grid-template-columns: 1fr; }
  .appearance-grid { grid-template-columns: 1fr; }
  .channel-list { max-height: none; }
}
@media (max-width: 560px) {
  .centered-links .centered-link span { display: none; }
  .centered-link { min-width: 40px; }
  .webapp-navbar .left .brand span { display: none; }
  .company-header { grid-template-columns: 1fr; }
  .company-header .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .subnavbar-grid { grid-template-columns: 1fr; gap: 12px; }
  .quick-stats { grid-template-columns: 1fr; }
  .quick-stats > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-stats > div:last-child { border-bottom: 0; }
  .monitor-stats { grid-template-columns: 1fr; }
  .monitor-stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .monitor-stat:last-child { border-bottom: 0; }
  .server-list { padding: 4px 16px 12px; }
  .panel__head { padding: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .channel-row, .client-row { flex-direction: column; }
  .channel-row__actions, .client-row__actions { justify-content: flex-start; }
  .group-picker { max-width: none; width: 100%; }
  .site-chat { right: 12px; bottom: 12px; }
  .site-chat__panel { width: min(350px, calc(100vw - 24px)); height: min(460px, calc(100vh - 90px)); }
  .profile-layout { grid-template-columns: 1fr; }
}

/* ===== KANAL AĞACI / YETKİ DİZİNİ ===== */
.list-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.list-tools input[type="search"] {
  flex: 1; min-width: 180px; padding: 9px 12px; color: var(--text);
  background: var(--bg-deep); border: 1px solid var(--line-strong); border-radius: 9px; font-size: .8rem;
}
.list-tools input[type="search"]::placeholder { color: var(--faint); }
.list-tools .btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.channel-list { display: grid; gap: 9px; max-height: 620px; overflow-y: auto; padding: 3px 5px 5px 3px; }
.count-chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .7rem; font-weight: 800; white-space: nowrap; }
.list-tools__hint { color: var(--faint); font-size: .72rem; white-space: nowrap; }
.channel-row {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px; align-items: center; margin-left: calc(var(--depth, 0) * 18px);
  padding: 12px 12px 12px 14px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--bg-deep); transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}
.channel-row:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0, 0, 0, .12); }
.channel-row::before {
  content: ''; position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 3px; border-radius: 3px; background: var(--accent); opacity: .55;
}
.channel-row--child::after {
  content: ''; position: absolute; left: -12px; top: 50%; width: 12px; height: 1px;
  background: var(--line-strong);
}
.channel-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--accent-soft), rgba(255, 130, 187, .08));
  color: var(--accent); font-size: .8rem; font-weight: 800;
}
.channel-row__name { font-family: Montserrat, sans-serif; font-weight: 800; font-size: .92rem; letter-spacing: -.01em; }
.channel-load { display: inline-flex; align-items: center; gap: 7px; margin-top: 9px; }
.channel-load strong { color: var(--text); font-size: .72rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.channel-load__bar { width: 120px; max-width: 100%; height: 4px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.channel-load__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), #6ee7a8); transition: width .35s ease; }
.channel-row__actions .btn { padding: 5px 9px; font-size: .7rem; border-radius: 7px; }
.channel-row__actions .channel-action--add { min-width: 28px; padding: 5px 0; font-weight: 900; color: var(--accent); }
.channel-row__actions .channel-action--delete:hover { color: var(--red); border-color: rgba(255, 93, 115, .4); background: var(--red-bg); }
.channel-form-card { position: sticky; top: 92px; }
.group-add { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.group-add .btn { padding: 5px 9px; font-size: .72rem; }
.directory-card { margin-top: 16px; }
.directory-list, .client-list { max-height: 520px; overflow-y: auto; padding-right: 4px; }

/* ===== KULLANICI YÖNETİMİ ===== */
.bulk-card { margin-bottom: 16px; }
.bulk-card .app-title { margin-bottom: 14px; }
.bulk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bulk-grid .field { margin-bottom: 0; }
.bulk-grid select, .bulk-grid input {
  width: 100%; padding: 10px 12px; color: var(--text); background: var(--bg-deep);
  border: 1px solid var(--line-strong); border-radius: 9px; outline: none; font-size: .8rem;
}
.bulk-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.bulk-card .form-error { margin-bottom: 0; }

.user-list { display: grid; gap: 10px; max-height: 520px; overflow-y: auto; padding: 2px 5px 5px 2px; }
.user-card {
  padding: 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-deep); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.user-card:hover { border-color: var(--line-strong); box-shadow: 0 8px 18px rgba(0, 0, 0, .12); transform: translateY(-1px); }
.user-card__head { display: flex; align-items: center; gap: 10px; }
.user-avatar {
  display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--accent-soft);
  color: var(--accent); font-size: .9rem; font-weight: 800;
}
.user-card__title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.user-card__title strong { font-family: Montserrat, sans-serif; font-size: .88rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-card__channel { color: var(--muted); font-size: .72rem; }
.user-card__head > .tag { margin-left: auto; }
.user-card__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.user-card__meta > .mono { color: var(--faint); font-size: .68rem; }
.user-card__tools {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
}
.user-tool { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.user-tool > .small { flex: none; }
.user-channel-picker, .user-poke-input {
  flex: 1 1 110px; min-width: 0; padding: 7px 9px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line-strong);
  border-radius: 8px; outline: none; font-size: .74rem;
}
.user-channel-picker { flex-basis: 130px; }
.user-poke-input::placeholder { color: var(--faint); }
.user-card__actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 12px; }
.user-card__actions .btn { padding: 5px 10px; font-size: .72rem; }

.directory-list .client-row {
  margin-bottom: 8px; padding: 13px; border: 1px solid var(--line);
  border-radius: 11px; background: var(--bg-deep);
}
.directory-list .client-row:hover { border-color: var(--line-strong); }
.directory-list .client-row:last-child { margin-bottom: 0; border-bottom: 1px solid var(--line); }

/* ===== YETKİ YÖNETİMİ ===== */
.permission-workspace { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.permission-groups-card, .permission-people-card { min-width: 0; }
.permission-groups, .permission-people { display: grid; gap: 8px; max-height: 460px; overflow-y: auto; padding: 2px 5px 4px 2px; }
.permission-group-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg-deep); color: var(--text); text-align: left; cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.permission-group-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.permission-group-card.is-active { border-color: var(--accent); background: var(--accent-soft); }
.permission-group-card strong { font-size: .82rem; font-weight: 800; overflow-wrap: anywhere; }
.permission-group-card .permission-group-count { color: var(--muted); font-size: .7rem; white-space: nowrap; }
.permission-bulk-select { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 4px; }
.permission-bulk-select .small { margin-left: auto; }
.permission-person {
  display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-deep); cursor: pointer;
}
.permission-person:hover { border-color: var(--line-strong); }
.permission-person.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.permission-person input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.permission-person__body { min-width: 0; flex: 1; }
.permission-person__top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.permission-person__top strong { font-size: .82rem; font-weight: 800; }
.permission-person__meta { margin-top: 4px; color: var(--muted); font-size: .71rem; overflow-wrap: anywhere; }
.permission-labels { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.permission-label { padding: 2px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .64rem; font-weight: 700; }
.permission-label.is-current { background: var(--accent-soft); color: var(--accent); }
.permission-apply { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.permission-apply strong { display: block; font-size: .85rem; }
.permission-apply .bulk-actions { margin-top: 0; }
.permission-apply-card { margin-top: 16px; }
.permission-apply-card .form-error { margin-bottom: 0; }

@media (max-width: 860px) {
  .bulk-grid, .user-card__tools { grid-template-columns: 1fr; }
  .permission-workspace { grid-template-columns: 1fr; }
  .permission-apply { align-items: flex-start; flex-direction: column; }
}

/* ===== PROFİL ===== */
.profile-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 16px; align-items: start; }
.profile-main { display: grid; gap: 16px; }
.profile-avatar-card { text-align: center; }
.profile-avatar-card .app-title { justify-content: center; text-align: left; }
.avatar {
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff;
  font-size: .85rem; font-weight: 800; flex: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--xl { width: 118px; height: 118px; margin: 6px auto 14px; font-size: 2.6rem; border: 3px solid var(--accent-soft); }
.avatar-upload { cursor: pointer; }
.profile-avatar-card .link-btn { display: block; margin: 10px auto 0; }

/* ===== SİTE İÇİ CANLI SOHBET ===== */
.site-chat { position: fixed; right: 22px; bottom: 22px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.site-chat__fab {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--accent); color: #fff; box-shadow: 0 10px 26px rgba(228, 36, 116, .38);
}
.site-chat__fab:hover { background: var(--accent-hover); }
.site-chat__fab .icon { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.site-chat__unread {
  position: absolute; top: 2px; right: 2px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--green); border: 2px solid var(--surface);
}
.site-chat__panel[hidden], .site-chat__unread[hidden] { display: none; }
.site-chat__panel {
  display: flex; flex-direction: column; width: 350px; height: 460px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 16px; box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
}
.site-chat__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.site-chat__head strong { display: block; font-size: .9rem; }
.site-chat__head small { color: var(--muted); font-size: .72rem; }
.site-chat__head button { border: 0; background: transparent; color: var(--muted); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.site-chat__messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.chat-message { display: flex; align-items: flex-start; gap: 9px; max-width: 92%; }
.chat-message--own { align-self: flex-end; flex-direction: row-reverse; }
.chat-avatar { width: 28px; height: 28px; font-size: .72rem; }
.chat-message__body { min-width: 0; padding: 9px 11px; border-radius: 12px; background: var(--bg-deep); border: 1px solid var(--line); }
.chat-message--own .chat-message__body { background: var(--accent-soft); border-color: rgba(228, 36, 116, .22); }
.chat-message__meta { display: flex; align-items: baseline; gap: 8px; }
.chat-message__meta strong { font-size: .76rem; color: var(--accent); }
.chat-message--own .chat-message__meta strong { color: var(--text); }
.chat-message__meta time { font-size: .64rem; color: var(--faint); }
.chat-message__body p { margin: 3px 0 0; font-size: .8rem; line-height: 1.45; overflow-wrap: anywhere; }
.site-chat__status { min-height: 16px; margin: 0 14px; color: var(--red); font-size: .7rem; }
.site-chat__form { display: flex; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.site-chat__form input { flex: 1; min-width: 0; padding: 10px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--bg-deep); color: var(--text); font-size: .8rem; }
.site-chat__form button { padding: 0 14px; border: 0; border-radius: 9px; background: var(--accent); color: #fff; font-size: .78rem; font-weight: 700; cursor: pointer; }
.site-chat__form button:disabled { opacity: .55; cursor: default; }

/* ===== SPONSORLAR ===== */
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.sponsor-grid > .empty { grid-column: 1 / -1; }

/* ===== YÖNETİM: SOHBET / YEDEKLEME ===== */
.admin-chat-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.admin-chat-row:last-child { border-bottom: 0; }
.admin-chat-row__info { min-width: 0; }
.admin-chat-row__info p { margin: 4px 0 0; font-size: .82rem; line-height: 1.45; overflow-wrap: anywhere; }
.admin-chat-row__info .channel-row__name-line { flex-wrap: wrap; gap: 8px; }
.admin-chat-row > .btn { flex: none; }
.sponsor-card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--text);
  transition: border-color .15s, transform .15s;
}
.sponsor-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.sponsor-card__media {
  width: 100%; height: 180px; padding: 20px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-deep); border-bottom: 1px solid var(--line);
}
.sponsor-card__media img {
  display: block; max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .28));
}
.sponsor-card__fallback {
  font-size: 3rem; font-weight: 800; color: var(--faint);
}
.sponsor-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; }
.sponsor-card__name {
  position: relative; display: inline-block; padding: 5px 11px; border-radius: 7px;
  background: linear-gradient(90deg, #ffffff 0 50%, #09090e 50% 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  font-size: 1rem; font-weight: 800; line-height: 1.2; letter-spacing: .01em; overflow: hidden;
}
.sponsor-card__name-half { display: block; white-space: nowrap; }
.sponsor-card__name-half--dark { color: #09090e; clip-path: inset(0 50% 0 0); }
.sponsor-card__name-half--light { position: absolute; inset: 5px 11px; color: #ffffff; clip-path: inset(0 0 0 50%); }
.sponsor-card__body small { color: var(--muted); font-size: .76rem; line-height: 1.4; }
@media (max-width: 560px) {
  .sponsor-card__media { height: 150px; padding: 16px; }
  .sponsor-card__body { padding: 14px; }
  .sponsor-card__name-half--light { inset: 5px 11px; }
}

/* Mobil düzen: geç eklenen bileşenler için son söz. */
@media (max-width: 760px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-avatar-card { text-align: left; }
  .profile-avatar-card .app-title { justify-content: flex-start; }
  .profile-avatar-card .avatar--xl { margin-left: 0; }
  .channel-row, .client-row { flex-wrap: wrap; }
  .channel-row__actions, .client-row__actions { width: 100%; justify-content: flex-start; }
  .admin-chat-row { flex-wrap: wrap; }
  .admin-chat-row > .btn { margin-top: 8px; }
}
@media (max-width: 560px) {
  .site-chat { right: 12px; bottom: 12px; }
  .site-chat__panel { width: min(350px, calc(100vw - 24px)); height: min(460px, calc(100vh - 90px)); }
  .profile-layout { grid-template-columns: 1fr; }
  .sponsor-grid { grid-template-columns: 1fr; }
}

