@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── Design tokens ──────────────────────────────────────────── */
:root {
  --bg:        #0d0e14;
  --surface:   #13151f;
  --surface-2: #1a1d2b;
  --surface-3: #222638;
  --border:    rgba(255,255,255,0.07);
  --border-2:  rgba(255,255,255,0.12);
  --text:      #e8eaf4;
  --text-2:    #9499b8;
  --text-3:    #5e6280;

  --kai-blue:   #0ea5e9;
  --kai-cyan:   #22d3ee;
  --cat-blue:   #60a5fa;
  --cat-pink:   #f472b6;
  --cat-teal:   #34d399;

  --accent:     var(--kai-blue);
  --accent-2:   var(--kai-cyan);

  --success-bg: rgba(52, 211, 153, 0.12);
  --danger-bg:  rgba(244, 63, 94, 0.12);
  --warn-bg:    rgba(251, 191, 36, 0.12);
  --info-bg:    rgba(96, 165, 250, 0.12);

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;

  --font-display: 'Outfit', sans-serif;
  --font-body:    'Outfit', sans-serif;

  --sidebar-w: 268px;
  --topbar-h:  64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(167,139,250,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(14,165,233,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
a { color: inherit; text-decoration: none; }
p { margin: 0.4em 0; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; margin: 0; line-height: 1.25; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }

/* ─── Topbar ─────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  background: rgba(13,14,20,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.brand a { text-decoration: none; }

/* KittenAI brand logo + wordmark */
.brand-link {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
}
.brand-logo {
  width: 36px; height: 36px; flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(14,165,233,0.3));
  transition: filter 0.2s;
}
.brand-link:hover .brand-logo {
  filter: drop-shadow(0 0 10px rgba(34,211,238,0.5));
}
.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em;
  line-height: 1;
}
.brand-kitten {
  color: #d1d5db;  /* logodaki koyu gri ton */
}
.brand-ai {
  color: var(--kai-cyan);
  font-weight: 800;
}
.topbar nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.topbar nav a {
  padding: 6px 12px; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 500; font-size: 0.9rem;
  transition: color .15s, background .15s;
}
.topbar nav a:hover { color: var(--text); background: var(--surface-3); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
}
.hamburger span { display: block; width: 20px; height: 2px; background: var(--text-2); border-radius: 2px; transition: all .2s; }

/* ─── App shell ──────────────────────────────────────────────── */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0,1fr);
  min-height: calc(100vh - var(--topbar-h));
  position: relative; z-index: 1;
}
.sidebar {
  border-right: 1px solid var(--border);
  padding: 16px;
  background: var(--surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex; flex-direction: column; gap: 10px;
  position: sticky; top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 4px; }
.content-area { padding: 24px; max-width: 1080px; width: 100%; margin: 0 auto; }
.landing-area { padding: 24px; max-width: 1100px; margin: 0 auto; }

/* ─── Cards ──────────────────────────────────────────────────── */
.card, .panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.02) 0%, transparent 50%);
  pointer-events: none; border-radius: inherit;
}
.panel { margin-bottom: 12px; }
.narrow-card { max-width: 460px; margin: 40px auto; }

/* ─── Sidebar widgets ────────────────────────────────────────── */
.sidebar-profile {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.sidebar-profile strong { font-weight: 600; font-size: 0.9rem; display: block; }
.sidebar-profile p { font-size: 0.78rem; color: var(--text-3); margin: 2px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 145px; }
.sidebar-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px; }
.sidebar-section-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-3); padding: 0 4px 8px; display: block;
}
.side-link {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 0.875rem; font-weight: 500;
  transition: background .15s, color .15s;
}
.side-link:hover { background: var(--surface-3); color: var(--text); }
.side-link.active { background: rgba(14,165,233,0.12); color: var(--kai-blue); }
.side-link .s-icon { font-size: 0.75rem; color: var(--text-3); }

/* ─── Buttons ────────────────────────────────────────────────── */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--radius-md);
  border: 1px solid var(--border-2); background: var(--surface-2);
  color: var(--text); cursor: pointer;
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 500;
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
  white-space: nowrap;
}
.button:hover { background: var(--surface-3); transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button.primary {
  background: linear-gradient(135deg, var(--kai-blue), #0284c7);
  color: #fff; border: none; font-weight: 600;
  box-shadow: 0 4px 20px rgba(14,165,233,0.25);
}
.button.primary:hover { box-shadow: 0 6px 28px rgba(14,165,233,0.4); }
.button.ghost { background: transparent; border-color: var(--border); color: var(--text-2); }
.button.ghost:hover { color: var(--text); background: var(--surface-2); }
.button.tiny { padding: 6px 12px; font-size: 0.8rem; border-radius: var(--radius-sm); }
.actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* ─── Forms ──────────────────────────────────────────────────── */
.form-stack { display: grid; gap: 14px; }
label { display: grid; gap: 6px; color: var(--text-2); font-size: 0.85rem; font-weight: 500; }
input[type="text"], input[type="email"], input[type="password"], textarea, select {
  width: 100%; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border-2); border-radius: var(--radius-md);
  padding: 11px 14px; font-family: var(--font-body); font-size: 0.9rem;
  transition: border-color .15s, box-shadow .15s; outline: none; -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--kai-blue);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}
textarea { resize: vertical; min-height: 90px; }
select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239499b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}

/* ─── Flash ──────────────────────────────────────────────────── */
.flash-stack { display: grid; gap: 8px; margin-bottom: 18px; }
.flash {
  padding: 12px 16px; border-radius: var(--radius-md);
  font-size: 0.875rem; font-weight: 500; border: 1px solid transparent;
  animation: slideDown .3s ease;
}
@keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.flash.success { background: var(--success-bg); border-color: rgba(52,211,153,.2); color: #6ee7b7; }
.flash.danger  { background: var(--danger-bg);  border-color: rgba(244,63,94,.2);  color: #fca5a5; }
.flash.warning { background: var(--warn-bg);    border-color: rgba(251,191,36,.2); color: #fcd34d; }
.flash.info    { background: var(--info-bg);    border-color: rgba(96,165,250,.2); color: #93c5fd; }

/* ─── Avatar ─────────────────────────────────────────────────── */
.avatar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--border-2); flex-shrink: 0; object-fit: cover; }
.avatar.large { width: 88px; height: 88px; border-width: 3px; }
.mini-profile { display: flex; gap: 12px; align-items: center; }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px;
  padding: 40px; margin-top: 32px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(14,165,233,.1); color: var(--kai-blue);
  border: 1px solid rgba(14,165,233,.25);
  font-size: 0.78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 2.8rem; line-height: 1.15; margin: 0 0 14px;
  background: linear-gradient(140deg, var(--text) 40%, var(--text-2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero > div > p { color: var(--text-2); font-size: 1rem; line-height: 1.65; }
.hero-grid { display: grid; gap: 12px; }
.hero-feature {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px;
  transition: border-color .2s, background .2s;
}
.hero-feature:hover { border-color: var(--border-2); background: var(--surface-3); }
.hero-feature .fi-icon { font-size: 1.3rem; margin-bottom: 6px; display: block; }
.hero-feature strong { font-family: var(--font-display); font-size: 0.9rem; }
.hero-feature p { font-size: 0.8rem; color: var(--text-3); margin-top: 4px; }

/* ─── Feed ───────────────────────────────────────────────────── */
.grid-two {
  display: grid; grid-template-columns: minmax(0,1.6fr) 290px; gap: 20px; align-items: start;
}
.post-card { margin-top: 12px; transition: border-color .15s; animation: fadeUp .3s ease; }
.post-card:hover { border-color: var(--border-2); }
@keyframes fadeUp { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
.post-author { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.post-author strong { font-weight: 600; font-size: 0.9rem; }
.post-time { font-size: 0.78rem; color: var(--text-3); margin-left: auto; }
.people-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--border); gap: 8px;
}
.people-row:last-child { border-bottom: none; }
.people-row a { font-weight: 500; font-size: 0.875rem; }
.people-row a:hover { color: var(--kai-blue); }

/* ─── Profile ────────────────────────────────────────────────── */
.profile-stats { display: flex; gap: 28px; margin-top: 12px; }
.stat-item { text-align: center; }
.stat-val { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; display: block; }
.stat-lbl { font-size: 0.72rem; color: var(--text-3); }

/* ─── DM chat ────────────────────────────────────────────────── */
.chat-layout { display: grid; gap: 20px; }
@media (min-width: 981px) { .chat-layout { grid-template-columns: minmax(0,1fr) 280px; } }
.chat-header {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 16px;
}
.chat-header h1 { font-size: 1.05rem; }
.chat-box {
  display: flex; flex-direction: column; gap: 8px;
  min-height: 260px; max-height: 58vh; overflow-y: auto; padding: 4px 0;
  scroll-behavior: smooth;
}
.chat-box::-webkit-scrollbar { width: 4px; }
.chat-box::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 4px; }
.bubble {
  max-width: 72%; padding: 10px 14px; border-radius: var(--radius-lg);
  font-size: 0.875rem; line-height: 1.5; animation: fadeUp .2s ease;
}
.bubble.mine {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(14,165,233,.2), rgba(167,139,250,.15));
  border: 1px solid rgba(14,165,233,.2); border-bottom-right-radius: var(--radius-sm);
}
.bubble.theirs {
  align-self: flex-start;
  background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: var(--radius-sm);
}
.bubble p { margin: 0; }
.bubble-meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 0.72rem; color: var(--text-3); }
.chat-input-row {
  display: flex; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
}
.chat-input-row input { flex: 1; }

/* KittenAI panel */
.ai-panel { align-self: start; }
.ai-panel-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.ai-paw {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(14,165,233,0.2), rgba(34,211,238,0.1));
  border: 1.5px solid rgba(34,211,238,0.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ai-panel-title { font-size: 0.95rem; font-family: var(--font-display); font-weight: 700; }
.ai-panel-sub { font-size: 0.72rem; color: var(--text-3); margin-top: 1px; }
.ai-actions { display: grid; gap: 8px; }
.ai-action-btn {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-2); cursor: pointer; font-family: var(--font-body);
  font-size: 0.85rem; font-weight: 500; transition: all .15s;
  text-align: left; width: 100%;
}
.ai-action-btn:hover { border-color: var(--kai-blue); color: var(--text); background: rgba(14,165,233,.07); transform: translateX(2px); }
.ai-action-btn .btn-icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }
.ai-result-box {
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(14,165,233,.06), rgba(167,139,250,.06));
  border-color: rgba(14,165,233,.18) !important;
  animation: fadeUp .3s ease;
}
.ai-result-label { font-size: 0.7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--kai-blue); margin-bottom: 8px; }
.ai-result-box p { font-size: 0.875rem; color: var(--text-2); white-space: pre-wrap; margin: 0; }

/* ─── Server / Channel ───────────────────────────────────────── */
.server-shell { display: grid; grid-template-columns: 255px minmax(0,1fr); gap: 20px; align-items: start; }
.ch-section-lbl { font-size: 0.68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); padding: 12px 4px 4px; display: block; }
.channel-main { min-height: 70vh; display: flex; flex-direction: column; }
.channel-header { padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.channel-header h2 { font-size: 1rem; }
.channel-header p { font-size: 0.78rem; color: var(--text-3); margin-top: 3px; }
.message-list {
  flex: 1; display: flex; flex-direction: column; gap: 0;
  min-height: 200px; max-height: 52vh; overflow-y: auto; scroll-behavior: smooth;
}
.message-list::-webkit-scrollbar { width: 4px; }
.message-list::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 4px; }
.message-line {
  display: flex; gap: 12px; padding: 8px 6px; border-radius: var(--radius-sm);
  transition: background .1s;
}
.message-line:hover { background: var(--surface-2); }
.msg-body { flex: 1; }
.msg-author { font-weight: 600; font-size: 0.875rem; }
.msg-time { font-size: 0.72rem; color: var(--text-3); margin-left: 8px; }
.msg-text { font-size: 0.875rem; color: var(--text-2); margin-top: 2px; }
.channel-ai-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.server-card {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.server-card:last-child { border-bottom: none; }
.server-card-name { font-weight: 600; font-size: 0.9rem; }
.server-card-desc { font-size: 0.78rem; color: var(--text-3); margin-top: 2px; }

/* ─── Misc utility ───────────────────────────────────────────── */
.row { display: flex; align-items: center; }
.row.between { justify-content: space-between; }
.gap-sm { gap: 6px; }
.gap-md { gap: 10px; }
.gap-lg { gap: 16px; }
.muted { color: var(--text-2); }
.text-muted { color: var(--text-3); }
.push-right { margin-left: auto; display: flex; gap: 10px; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 14px; }
.mt-lg { margin-top: 20px; }
.inset { background: var(--surface-2); border-radius: var(--radius-md); padding: 14px; min-height: 90px; }
.wrap-row { flex-wrap: wrap; }
.form-inline input { flex: 1; }
.compact-form { margin-top: 14px; }
.top-gap { margin-top: 14px; }
.inline-lang-form { margin: 0; }
.inline-lang-form select { width: auto; min-width: 110px; font-size: 0.82rem; padding: 6px 32px 6px 10px; border-radius: var(--radius-sm); }
.badge-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; }
.badge-owner { background: rgba(14,165,233,.12); color: var(--kai-blue); }

/* ─── RTL ────────────────────────────────────────────────────── */
body[dir="rtl"] { text-align: right; }
body[dir="rtl"] .push-right { margin-left: 0; margin-right: auto; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; top: var(--topbar-h); left: -100%;
    width: 80vw; max-width: 300px; height: calc(100vh - var(--topbar-h));
    z-index: 200; background: var(--surface);
    border-right: 1px solid var(--border-2);
    transition: left .3s ease; box-shadow: 4px 0 40px rgba(0,0,0,.4);
  }
  .sidebar.open { left: 0; }
  .sidebar-overlay {
    display: none; position: fixed; inset: 0; top: var(--topbar-h);
    background: rgba(0,0,0,.5); z-index: 199; backdrop-filter: blur(4px);
  }
  .sidebar-overlay.open { display: block; }
  .hamburger { display: flex; }
  .hero { grid-template-columns: 1fr; padding: 24px; }
  .hero h1 { font-size: 2.1rem; }
  .grid-two { grid-template-columns: 1fr; }
  .server-shell { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .topbar { padding: 0 16px; }
  .topbar nav a { display: none; }
  .topbar nav .inline-lang-form { display: block; }
  .content-area { padding: 16px; }
  .card { padding: 14px; }
  .bubble { max-width: 90%; }
}

/* ─── Patches ────────────────────────────────────────────────── */
.composer { /* feed post composer card */ }
.channel-links { display: grid; gap: 4px; margin-top: 8px; }
.compact-row { margin-top: 8px; }
.server-link { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text-2); font-size: 0.875rem; font-weight: 500; transition: background .15s, color .15s; }
.server-link:hover { background: var(--surface-3); color: var(--text); }
.server-link.active { background: rgba(14,165,233,.12); color: var(--kai-blue); }

/* ── Notification badge (topbar) ────────────────────────────────────────────── */
.notif-link { position: relative; }
.notif-badge {
  position: absolute; top: -4px; right: -8px;
  background: var(--kai-blue); color: #fff;
  font-size: .65rem; font-weight: 700; line-height: 1;
  padding: 2px 5px; border-radius: 99px; min-width: 16px; text-align: center;
}

/* ── DM unread badge (sidebar) ────────────────────────────────────────────── */
.dm-link { position: relative; }
.dm-badge {
  margin-left: auto; background: var(--kai-blue); color: #fff;
  font-size: .65rem; font-weight: 700; padding: 1px 6px; border-radius: 99px;
}

/* ── Message actions (edit/delete) ───────────────────────────────────────── */
.msg-actions {
  display: none; gap: 6px; margin-top: 4px;
}
.bubble:hover .msg-actions,
.message-line:hover .msg-actions {
  display: flex;
}
.msg-action-btn {
  background: none; border: 1px solid var(--border); border-radius: 4px;
  color: var(--text-2); font-size: .72rem; padding: 2px 8px; cursor: pointer;
  font-family: var(--font-body); transition: all .15s;
}
.msg-action-btn:hover { border-color: var(--kai-blue); color: var(--kai-blue); }
.msg-action-btn.danger { border-color: transparent; }
.msg-action-btn.danger:hover { border-color: #ef4444; color: #ef4444; }

/* ── Inline edit form ────────────────────────────────────────────────────── */
.inline-edit-form { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.edit-input {
  width: 100%; background: var(--surface-3); border: 1px solid var(--kai-blue);
  border-radius: 6px; color: var(--text); padding: 6px 10px;
  font-family: var(--font-body); font-size: .9rem; resize: vertical;
}
.edit-btns { display: flex; gap: 6px; }

/* ── Read / sent tick ────────────────────────────────────────────────────── */
.read-tick  { color: var(--kai-cyan); font-size: .72rem; margin-left: 4px; }
.sent-tick  { color: var(--text-2);   font-size: .72rem; margin-left: 4px; }
.edited-label { font-size: .68rem; color: var(--text-2); font-style: italic; margin-left: 4px; }

/* ── Deleted message ─────────────────────────────────────────────────────── */
.deleted-msg, .msg-deleted-line {
  font-size: .82rem; color: var(--text-2); font-style: italic;
  padding: 2px 0;
}

/* ── Notifications page ──────────────────────────────────────────────────── */
.notif-list { display: flex; flex-direction: column; gap: 0; }
.notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.notif-item:last-child { border-bottom: none; }
.notif-unread { background: rgba(14,165,233,.04); border-radius: 6px; padding: 12px 8px; margin: 0 -8px; }
.notif-icon { font-size: 1.2rem; flex-shrink: 0; width: 28px; text-align: center; }
.notif-body { flex: 1; font-size: .88rem; line-height: 1.5; }
.notif-time { display: block; font-size: .72rem; color: var(--text-2); margin-top: 3px; }

/* ── Settings page ───────────────────────────────────────────────────────── */
.settings-page { max-width: 540px; margin: 24px auto; display: flex; flex-direction: column; gap: 16px; }
.settings-page h1 { font-size: 1.4rem; }
.settings-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; font-size: .75rem; }

/* ── Server members page ─────────────────────────────────────────────────── */
.member-list { display: flex; flex-direction: column; gap: 2px; }
.member-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 4px; border-bottom: 1px solid var(--border);
}
.member-row:last-child { border-bottom: none; }
.member-info { display: flex; align-items: center; gap: 8px; flex: 1; }
.member-actions { display: flex; gap: 6px; }
.badge-member { background: rgba(14,165,233,.1); color: var(--kai-blue); }

/* ── Danger ghost button ─────────────────────────────────────────────────── */
.danger-ghost {
  background: none; border: 1px solid rgba(239,68,68,.4); color: #ef4444;
  border-radius: var(--radius); padding: 5px 12px; cursor: pointer;
  font-family: var(--font-body); font-size: .8rem; transition: all .15s;
}
.danger-ghost:hover { background: rgba(239,68,68,.08); border-color: #ef4444; }
