/* ==========================================================================
   NEW TALK — glassmorphism arayüz
   ========================================================================== */

:root {
  --bg: #050a18;
  --bg-deep: #03060f;
  --text: #f1f6ff;
  --text-soft: #dbe6f8;
  --muted: #9aadc9;
  --muted-2: #7488a5;
  --line: rgba(255, 255, 255, .085);
  --line-soft: rgba(255, 255, 255, .055);
  --glass: rgba(255, 255, 255, .052);
  --glass-bright: rgba(255, 255, 255, .085);
  --violet: #2563eb;
  --violet-light: #93c5fd;
  --cyan: #38bdf8;
  --pink: #60a5fa;
  --danger: #fb7185;
  --green: #34d399;
  --gradient: linear-gradient(120deg, #60a5fa 0%, #2563eb 42%, #38bdf8 120%);
  --gradient-soft: linear-gradient(135deg, rgba(37, 99, 235, .26), rgba(56, 189, 248, .10));
  --radius: 26px;
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --shadow-panel: 0 32px 90px -30px rgba(0, 0, 0, .78), inset 0 1px 0 rgba(255, 255, 255, .07);
  --ease: cubic-bezier(.22, .8, .28, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 42% at 12% 8%, rgba(29, 78, 216, .20), transparent 60%),
    radial-gradient(ellipse 45% 40% at 92% 12%, rgba(56, 189, 248, .12), transparent 62%),
    radial-gradient(ellipse 60% 55% at 66% 100%, rgba(37, 99, 235, .12), transparent 70%),
    linear-gradient(180deg, #050e20 0%, #050a18 45%, #030914 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

::selection { background: rgba(37, 99, 235, .45); color: #fff; }

a { color: inherit; text-decoration: none; }

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; border: 0; background: none; }

img { max-width: 100%; }

h1, h2, h3, h4, p { margin: 0; }

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ico {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.hidden { display: none !important; }

.mobile-only { display: none !important; }

.loader {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .1);
  border-top-color: #60a5fa;
  animation: spin .8s linear infinite;
}

.messages-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  min-height: 240px;
  padding: 30px;
  color: var(--muted-2);
  font-size: 11px;
  text-align: center;
}
.messages-loading strong { color: var(--text-soft); font-size: 12px; }
.messages-loading .load-older { margin-top: 2px; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .10);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .18); background-clip: padding-box; }

:focus-visible { outline: 2px solid var(--violet-light); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   Aurora arka plan
   -------------------------------------------------------------------------- */

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .5;
  will-change: transform;
}

.orb-violet {
  width: 46vw;
  height: 46vw;
  min-width: 380px;
  min-height: 380px;
  left: -12vw;
  top: -14vw;
  background: radial-gradient(circle, rgba(29, 78, 216, .8), transparent 68%);
  animation: drift-a 24s var(--ease) infinite alternate;
}

.orb-cyan {
  width: 36vw;
  height: 36vw;
  min-width: 300px;
  min-height: 300px;
  right: -10vw;
  top: 4vh;
  background: radial-gradient(circle, rgba(14, 165, 233, .55), transparent 68%);
  animation: drift-b 30s var(--ease) infinite alternate;
}

.orb-pink {
  width: 30vw;
  height: 30vw;
  min-width: 260px;
  min-height: 260px;
  right: 12vw;
  bottom: -16vw;
  background: radial-gradient(circle, rgba(29, 78, 216, .42), transparent 68%);
  animation: drift-c 27s var(--ease) infinite alternate;
}

.orb-blue {
  width: 26vw;
  height: 26vw;
  min-width: 220px;
  min-height: 220px;
  left: 28vw;
  bottom: -12vw;
  background: radial-gradient(circle, rgba(59, 130, 246, .34), transparent 70%);
  animation: drift-b 34s var(--ease) infinite alternate-reverse;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: .3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(8vw, 6vh, 0) scale(1.12); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-6vw, 10vh, 0) scale(1.08); }
}
@keyframes drift-c {
  from { transform: translate3d(0, 0, 0) scale(.95); }
  to { transform: translate3d(-10vw, -5vh, 0) scale(1.1); }
}

/* --------------------------------------------------------------------------
   Ortak cam yüzeyler
   -------------------------------------------------------------------------- */

.glass-panel {
  position: relative;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .026) 55%, rgba(255, 255, 255, .04));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(34px) saturate(135%);
  -webkit-backdrop-filter: blur(34px) saturate(135%);
  box-shadow: var(--shadow-panel);
}

.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 22%);
  opacity: .8;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  filter: drop-shadow(0 8px 20px rgba(29, 78, 216, .38));
  transition: transform .35s var(--ease);
}

.brand:hover .brand-mark { transform: rotate(-5deg) scale(1.04); }

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 15px;
}

.brand-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.brand-copy small {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.grad-text {
  background: linear-gradient(100deg, #dbeafe 0%, #60a5fa 36%, #7dd3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, .24);
  background: rgba(37, 99, 235, .09);
  color: #bfdbfe;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, .13), 0 0 12px #60a5fa;
}

.online-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .12), 0 0 10px rgba(52, 211, 153, .65);
}

.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* --------------------------------------------------------------------------
   Butonlar
   -------------------------------------------------------------------------- */

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 54px;
  padding: 0 24px;
  border-radius: 15px;
  overflow: hidden;
  background: linear-gradient(115deg, #2563eb 0%, #2563eb 48%, #0284c7 100%);
  border: 1px solid rgba(255, 255, 255, .17);
  color: #fff;
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: .01em;
  box-shadow: 0 14px 36px -14px rgba(29, 78, 216, .85), inset 0 1px 0 rgba(255, 255, 255, .24);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), filter .22s;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .22) 48%, transparent 70%);
  transform: translateX(-130%);
  transition: transform .7s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px -16px rgba(29, 78, 216, .95), inset 0 1px 0 rgba(255, 255, 255, .28);
  filter: saturate(1.08);
}

.btn-primary:hover::before { transform: translateX(130%); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; filter: grayscale(.2); }
.btn-primary .ico { width: 18px; height: 18px; stroke-width: 2; }

.btn-primary.is-loading span { opacity: .3; }
.btn-primary.is-loading .ico { animation: spin .8s linear infinite; }
.btn-primary.is-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-soft);
  transition: background .2s, border-color .2s, color .2s;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .17); color: #fff; }
.btn-ghost .ico { width: 16px; height: 16px; }

.btn-danger {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  background: linear-gradient(120deg, #e11d48, #f43f5e);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 26px -12px rgba(244, 63, 94, .8);
  transition: transform .2s, filter .2s;
}
.btn-danger:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-danger:disabled { opacity: .58; cursor: not-allowed; transform: none; }

.link-btn {
  padding: 0;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.link-btn:hover { color: #dbeafe; border-color: rgba(219, 234, 254, .4); }
.link-btn.subtle { color: var(--muted-2); font-weight: 600; }
.link-btn.subtle:hover { color: var(--danger); border-color: rgba(251, 113, 133, .35); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .08);
  color: #fff;
}
.icon-btn:active { transform: scale(.95); }
.icon-btn .ico { width: 19px; height: 19px; }
.icon-btn.danger-hover:hover { color: #fda4af; background: rgba(244, 63, 94, .1); border-color: rgba(244, 63, 94, .18); }

.reveal-btn {
  position: absolute;
  right: 8px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--muted-2);
  transition: color .2s, background .2s;
}
.reveal-btn:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.reveal-btn .ico { width: 18px; height: 18px; }

.progress {
  position: relative;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  box-shadow: 0 0 12px rgba(56, 189, 248, .45);
  transition: width .6s var(--ease), background .3s;
}
.progress.large { height: 8px; }
.progress.is-full > span { background: linear-gradient(90deg, #f43f5e, #38bdf8); box-shadow: 0 0 12px rgba(244, 63, 94, .5); }

/* --------------------------------------------------------------------------
   Giriş ekranı
   -------------------------------------------------------------------------- */

.auth-view {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(410px, .92fr);
  align-items: center;
  gap: clamp(30px, 5vw, 90px);
  width: 100%;
  max-width: 1440px;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(28px, 4.5vw, 60px) clamp(22px, 5vw, 68px);
}

.auth-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 620px;
  animation: fade-up .8s var(--ease) both;
}

.brand-hero { margin-bottom: clamp(34px, 5vh, 62px); }
.brand-hero .brand-mark { width: 50px; height: 50px; flex-basis: 50px; }
.brand-hero .brand-copy strong { font-size: 20px; }

.hero-copy { max-width: 580px; }
.hero-copy h1 {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(46px, 5.4vw, 74px);
  font-weight: 700;
  line-height: .99;
  letter-spacing: -.055em;
}

.hero-lead {
  max-width: 500px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.feature-chips span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .075);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}
.feature-chips .ico { width: 14px; height: 14px; color: #60a5fa; }

/* Vitrin kartı */
.showcase-wrap {
  position: relative;
  width: 100%;
  max-width: 510px;
  margin-top: clamp(34px, 5vh, 58px);
  animation: fade-up .9s .12s var(--ease) both;
}

.showcase-card {
  position: relative;
  padding: 16px 16px 12px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: linear-gradient(160deg, rgba(12, 24, 48, .72), rgba(5, 14, 29, .68));
  backdrop-filter: blur(30px) saturate(140%);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .1);
  transform: rotate(-1.1deg);
  transition: transform .5s var(--ease), box-shadow .5s;
}
.showcase-wrap:hover .showcase-card {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .85), 0 0 60px -20px rgba(29, 78, 216, .3);
}

.showcase-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 4px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.showcase-dots { display: flex; gap: 5px; }
.showcase-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
}
.showcase-dots i:first-child { background: rgba(251, 113, 133, .7); }
.showcase-dots i:nth-child(2) { background: rgba(251, 191, 36, .6); }
.showcase-dots i:nth-child(3) { background: rgba(52, 211, 153, .6); }
.showcase-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
}
.showcase-title .ico { width: 13px; height: 13px; color: var(--muted-2); }
.showcase-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(52, 211, 153, .08);
  border: 1px solid rgba(52, 211, 153, .16);
  color: #86efac;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .06em;
}

.showcase-chat { display: flex; flex-direction: column; gap: 12px; padding: 16px 4px 6px; }

.mini-msg { display: flex; align-items: flex-start; gap: 10px; }
.mini-msg > div { min-width: 0; }
.mini-msg.mini-own { padding-left: 44px; }

.mini-meta { display: flex; align-items: baseline; gap: 7px; margin-bottom: 4px; }
.mini-meta strong { font-size: 10.5px; color: #dbe6f6; }
.mini-meta time { font-size: 8.5px; color: var(--muted-2); }

.mini-bubble {
  display: inline-block;
  max-width: 340px;
  padding: 8px 12px;
  border-radius: 4px 13px 13px 13px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .06);
  color: #c5d4e8;
  font-size: 11.5px;
  line-height: 1.55;
}
.mini-own .mini-bubble {
  background: linear-gradient(135deg, rgba(37, 99, 235, .27), rgba(56, 189, 248, .10));
  border-color: rgba(96, 165, 250, .2);
  color: #e8f1ff;
}

.avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 13px;
  color: #06101f;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  background: linear-gradient(135deg, #93c5fd, #38bdf8);
  overflow: hidden;
  user-select: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.avatar.sm { width: 32px; height: 32px; flex-basis: 32px; border-radius: 10px; font-size: 11px; }
.avatar.xs { width: 25px; height: 25px; flex-basis: 25px; border-radius: 8px; font-size: 9px; }
.avatar.lg { width: 52px; height: 52px; flex-basis: 52px; border-radius: 16px; font-size: 18px; }
.avatar.rose { background: linear-gradient(135deg, #fecdd3, #fb7185); }
.avatar.cyan { background: linear-gradient(135deg, #bae6fd, #38bdf8); }
.avatar.violet { background: linear-gradient(135deg, #dbeafe, #2563eb); }
.av-rose { background: linear-gradient(135deg, #fecdd3, #fb7185); }
.av-cyan { background: linear-gradient(135deg, #bae6fd, #38bdf8); }
.av-violet { background: linear-gradient(135deg, #dbeafe, #2563eb); }
.mini-msg .avatar { width: 34px; height: 34px; flex-basis: 34px; border-radius: 11px; font-size: 12px; }

.showcase-photo {
  position: relative;
  height: 92px;
  margin-left: 48px;
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(180deg, #0a1730 0%, #163b6e 38%, #2563eb 72%, #60a5fa 100%);
  border: 1px solid rgba(255, 255, 255, .09);
}
.photo-sun {
  position: absolute;
  right: 26%;
  top: 34%;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #dbeafe, #93c5fd);
  box-shadow: 0 0 28px 8px rgba(255, 183, 107, .35);
}
.photo-hill {
  position: absolute;
  bottom: -30%;
  width: 80%;
  height: 95%;
  border-radius: 50% 50% 0 0;
  transform: rotate(-7deg);
}
.hill-one { left: -19%; background: linear-gradient(180deg, #132a52, #0a1730); }
.hill-two { right: -24%; bottom: -42%; background: linear-gradient(180deg, #1e3a8a, #0a1a35); transform: rotate(9deg); }
.photo-caption {
  position: absolute;
  left: 10px;
  bottom: 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(4, 9, 20, .45);
  border: 1px solid rgba(255, 255, 255, .13);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, .85);
  font-size: 8.5px;
  font-weight: 600;
}
.photo-caption .ico { width: 11px; height: 11px; }

.showcase-typing {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px 2px;
  color: var(--muted-2);
  font-size: 9.5px;
}

.typing-dots { display: inline-flex; align-items: center; gap: 3px; }
.typing-dots i {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: #60a5fa;
  animation: bounce-dot 1.25s infinite ease-in-out;
}
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }

@keyframes bounce-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.floating-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 13px;
  background: linear-gradient(140deg, rgba(14, 30, 62, .92), rgba(7, 16, 34, .88));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .1);
  backdrop-filter: blur(20px);
  color: #dbeafe;
  font-size: 10px;
  font-weight: 700;
  animation: float 5s ease-in-out infinite;
}
.floating-chip .ico { width: 14px; height: 14px; color: #7dd3fc; }
.chip-top { top: -18px; right: -10px; }
.chip-bottom {
  bottom: -17px;
  left: 16px;
  animation-delay: -2.4s;
  color: var(--text-soft);
  font-weight: 600;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-foot {
  margin-top: clamp(30px, 4vh, 46px);
  color: var(--muted-2);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Giriş kartı */
.auth-side {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  animation: fade-up .8s .06s var(--ease) both;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 462px;
  padding: 34px 32px 24px;
  border-radius: 30px;
  background:
    linear-gradient(160deg, rgba(14, 28, 56, .68), rgba(6, 14, 30, .78) 60%, rgba(4, 11, 24, .82));
  border-color: rgba(255, 255, 255, .105);
  box-shadow: 0 40px 110px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .11);
  overflow: hidden;
}

.auth-card-glow {
  position: absolute;
  top: -90px;
  left: 50%;
  width: 300px;
  height: 180px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(37, 99, 235, .3), transparent 70%);
  pointer-events: none;
  filter: blur(22px);
}

.brand-mobile { display: none; }

.auth-head { position: relative; }
.auth-head h2 {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.035em;
}
.auth-head p { margin-top: 8px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }

.segmented {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin: 22px 0 20px;
  border-radius: 15px;
  background: rgba(3, 8, 18, .42);
  border: 1px solid rgba(255, 255, 255, .065);
  box-shadow: inset 0 1px 6px rgba(0, 0, 0, .25);
}

.segmented button {
  position: relative;
  height: 42px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  transition: color .25s, background .25s, box-shadow .25s, transform .2s;
}
.segmented button:hover { color: var(--text-soft); }
.segmented button.active {
  color: #fff;
  background: linear-gradient(120deg, rgba(37, 99, 235, .9), rgba(37, 99, 235, .78) 55%, rgba(56, 189, 248, .65));
  box-shadow: 0 8px 22px -10px rgba(29, 78, 216, .85), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.auth-form { position: relative; animation: fade-in .35s var(--ease); }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 13px; }

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.field-label small { font-size: 9.5px; letter-spacing: .04em; color: var(--muted-2); text-transform: none; }

.input-wrap { position: relative; display: flex; align-items: center; }

.input-wrap input,
.modal-form > .field textarea,
.modal-form .field > textarea {
  width: 100%;
  height: 52px;
  padding: 0 46px 0 44px;
  border-radius: 14px;
  background: rgba(3, 8, 18, .4);
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--text);
  font-size: 13.5px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.input-wrap input::placeholder { color: #5b7091; }
.input-wrap input:focus {
  border-color: rgba(37, 99, 235, .6);
  background: rgba(4, 12, 26, .62);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .11), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.input-wrap input:focus + .reveal-btn,
.input-wrap:focus-within .reveal-btn { color: var(--muted); }

.input-icon {
  position: absolute;
  left: 15px;
  width: 17px;
  height: 17px;
  color: var(--muted-2);
  pointer-events: none;
  transition: color .2s;
}
.input-wrap:focus-within .input-icon { color: #93c5fd; }

.form-hint-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 0 16px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.form-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 1px 0 16px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(56, 189, 248, .055);
  border: 1px solid rgba(56, 189, 248, .11);
  color: #bae6fd;
  font-size: 10.5px;
  line-height: 1.55;
}
.form-note .ico { width: 14px; height: 14px; margin-top: 1px; color: #7dd3fc; }

.auth-alert {
  padding: 11px 13px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(244, 63, 94, .09);
  border: 1px solid rgba(244, 63, 94, .2);
  color: #fecdd3;
  font-size: 11.5px;
  line-height: 1.5;
  animation: shake .35s var(--ease);
}
.auth-alert.success {
  background: rgba(52, 211, 153, .08);
  border-color: rgba(52, 211, 153, .2);
  color: #a7f3d0;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  55% { transform: translateX(4px); }
  80% { transform: translateX(-2px); }
}

.capacity-banner {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 13px 14px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(244, 63, 94, .12), rgba(251, 146, 60, .05));
  border: 1px solid rgba(251, 113, 133, .23);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  animation: fade-in .35s var(--ease);
}
.capacity-emoji { font-size: 24px; line-height: 1.1; filter: saturate(.85); }
.capacity-banner strong { display: block; color: #ffe4e6; font-size: 12.5px; }
.capacity-banner p { margin-top: 3px; color: #d8a5ad; font-size: 10.5px; line-height: 1.55; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  padding: 0;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 600;
  transition: color .2s;
}
.back-btn:hover { color: var(--text); }
.back-btn .ico { width: 14px; height: 14px; }

.code-head { text-align: center; padding: 2px 0 20px; }
.code-orb {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .28), rgba(56, 189, 248, .10));
  border: 1px solid rgba(96, 165, 250, .28);
  color: #bfdbfe;
  box-shadow: 0 0 40px -10px rgba(37, 99, 235, .55), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.code-orb .ico { width: 24px; height: 24px; }
.code-head h3 { font-family: var(--font-display); font-size: 19px; letter-spacing: -.02em; }
.code-head p { margin-top: 7px; color: var(--muted); font-size: 11.5px; line-height: 1.6; }
.code-head strong { color: #bfdbfe; word-break: break-all; }

.otp {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  margin-bottom: 16px;
}
.otp input {
  width: 100%;
  height: 56px;
  border-radius: 13px;
  background: rgba(3, 8, 18, .45);
  border: 1px solid rgba(255, 255, 255, .09);
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  outline: none;
  caret-color: #60a5fa;
  transition: border-color .2s, box-shadow .2s, background .2s, transform .15s;
}
.otp input:focus {
  border-color: rgba(56, 189, 248, .65);
  background: rgba(10, 12, 26, .75);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .1), 0 0 20px -6px rgba(56, 189, 248, .45);
  transform: translateY(-1px);
}
.otp input.filled {
  border-color: rgba(96, 165, 250, .45);
  background: rgba(37, 99, 235, .09);
}

.dev-code {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 9px 11px;
  margin-bottom: 14px;
  border-radius: 11px;
  background: rgba(56, 189, 248, .06);
  border: 1px dashed rgba(56, 189, 248, .25);
  color: #bae6fd;
  font-size: 10.5px;
}
.dev-code .ico { width: 14px; height: 14px; color: #7dd3fc; }
.dev-code strong { font-family: var(--font-display); letter-spacing: .14em; color: #fff; font-size: 12px; }
.dev-code button {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(56, 189, 248, .14);
  color: #e0f2fe;
  font-size: 9.5px;
  font-weight: 700;
}
.dev-code button:hover { background: rgba(56, 189, 248, .24); }

.resend-row {
  margin-top: 15px;
  text-align: center;
  color: var(--muted-2);
  font-size: 11px;
}
.resend-row button {
  color: #93c5fd;
  font-size: 11px;
  font-weight: 700;
}
.resend-row button:hover { color: #dbeafe; }
.resend-row button:disabled { color: var(--muted-2); cursor: default; }

.auth-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .055);
  color: var(--muted-2);
  font-size: 9.5px;
  text-align: center;
}
.auth-foot .ico { width: 12px; height: 12px; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Uygulama iskeleti
   -------------------------------------------------------------------------- */

.app-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr) 306px;
  gap: 14px;
  width: 100%;
  max-width: 1720px;
  height: 100svh;
  margin: 0 auto;
  padding: 16px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 18px 13px 13px;
  border-radius: 27px;
  background: linear-gradient(160deg, rgba(14, 27, 54, .66), rgba(5, 13, 28, .72));
  animation: fade-up .55s var(--ease) both;
}

.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 5px; }
.sidebar-head .brand-mark { width: 42px; height: 42px; flex-basis: 42px; }

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin: 19px 3px 16px;
}
.search-wrap .ico {
  position: absolute;
  left: 13px;
  width: 15px;
  height: 15px;
  color: var(--muted-2);
  pointer-events: none;
}
.search-wrap input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 37px;
  border-radius: 12px;
  background: rgba(3, 8, 18, .32);
  border: 1px solid rgba(255, 255, 255, .06);
  color: var(--text);
  font-size: 11.5px;
  outline: none;
  transition: border-color .2s, background .2s;
}
.search-wrap input::placeholder { color: #5b7091; }
.search-wrap input:focus { border-color: rgba(37, 99, 235, .45); background: rgba(8, 6, 19, .55); }

.sidebar-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
  margin-bottom: 7px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.mini-add {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: var(--muted-2);
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .06);
  transition: background .2s, color .2s, transform .2s;
}
.mini-add:hover { color: #fff; background: rgba(37, 99, 235, .22); transform: rotate(90deg); }
.mini-add .ico { width: 13px; height: 13px; }

.room-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 2px 6px;
}

.room-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 9px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted);
  text-align: left;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.room-item:hover { background: rgba(255, 255, 255, .045); color: var(--text-soft); transform: translateX(1px); }
.room-item.active {
  background: linear-gradient(100deg, rgba(37, 99, 235, .19), rgba(56, 189, 248, .04));
  border-color: rgba(96, 165, 250, .18);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055);
}
.room-item.active::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 50%;
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #93c5fd, #38bdf8);
  transform: translateY(-50%);
  box-shadow: 0 0 10px rgba(96, 165, 250, .7);
}

.room-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .04);
  font-size: 14px;
  transition: background .2s;
}
.room-item.active .room-icon {
  background: linear-gradient(135deg, rgba(37, 99, 235, .32), rgba(56, 189, 248, .13));
  border-color: rgba(96, 165, 250, .2);
}
.room-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -.005em;
}
.room-unread {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #7dd3fc;
  box-shadow: 0 0 9px rgba(56, 189, 248, .8);
}
.room-empty { padding: 16px 10px; color: var(--muted-2); font-size: 11px; text-align: center; }

.server-mini {
  margin: 8px 3px 10px;
  padding: 11px 12px;
  border-radius: 13px;
  background: rgba(3, 8, 18, .24);
  border: 1px solid rgba(255, 255, 255, .055);
}
.server-mini-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
}
.server-mini-label { display: inline-flex; align-items: center; gap: 6px; }
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(52, 211, 153, .7);
}
.status-dot.full { background: var(--danger); box-shadow: 0 0 8px rgba(244, 63, 94, .7); }
#server-mini-percent { color: var(--text-soft); font-size: 9.5px; }
.server-mini p { margin-top: 8px; color: #647a99; font-size: 9px; line-height: 1.45; }

.sidebar-spacer { display: none; }

.user-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 5px 1px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.user-avatar-btn {
  padding: 0;
  border-radius: 13px;
  transition: transform .2s, box-shadow .2s;
}
.user-avatar-btn:hover { transform: scale(1.04); box-shadow: 0 0 0 2px rgba(96, 165, 250, .35); }
.user-avatar-btn .avatar { width: 40px; height: 40px; }
.user-meta { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 2px; }
.user-meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
}
.user-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted-2);
  font-size: 9px;
}
.user-status .online-dot { width: 5px; height: 5px; box-shadow: none; }
.user-card .icon-btn { width: 31px; height: 31px; flex-basis: 31px; border-radius: 9px; }
.user-card .icon-btn .ico { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   Sohbet paneli
   -------------------------------------------------------------------------- */

.chat-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(9, 19, 39, .58), rgba(4, 10, 22, .72));
  overflow: hidden;
  animation: fade-up .55s .04s var(--ease) both;
}

.chat-panel.dragging::after {
  content: "Fotoğrafları buraya bırak";
  position: absolute;
  inset: 10px;
  z-index: 25;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(96, 165, 250, .55);
  border-radius: 22px;
  background: rgba(5, 13, 28, .78);
  backdrop-filter: blur(12px);
  color: #dbeafe;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  pointer-events: none;
  animation: fade-in .16s var(--ease);
}

.chat-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px clamp(16px, 2.4vw, 26px);
  border-bottom: 1px solid rgba(255, 255, 255, .055);
  background: linear-gradient(180deg, rgba(255, 255, 255, .027), transparent);
}

.channel-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.channel-emoji {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(37, 99, 235, .20), rgba(56, 189, 248, .07));
  border: 1px solid rgba(96, 165, 250, .16);
  font-size: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.channel-copy { min-width: 0; }
.channel-copy h2 {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.channel-copy .hash { color: var(--muted-2); font-weight: 500; }
.channel-copy p {
  max-width: 48vw;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted-2);
  font-size: 10.5px;
}

.header-actions { display: flex; align-items: center; gap: 11px; margin-left: auto; }
.online-stack { display: flex; align-items: center; padding-left: 7px; }
.online-stack .avatar {
  width: 25px;
  height: 25px;
  flex-basis: 25px;
  border-radius: 8px;
  font-size: 9px;
  margin-left: -7px;
  border: 2px solid #061024;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .4);
}
.online-stack .stack-more {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin-left: -7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  border: 2px solid #061024;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
}
.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(52, 211, 153, .055);
  border: 1px solid rgba(52, 211, 153, .13);
  color: #a7f3d0;
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
}
.online-pill .online-dot { width: 5px; height: 5px; box-shadow: 0 0 8px rgba(52, 211, 153, .8); }

.app-capacity-banner {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px clamp(14px, 2.4vw, 24px) 0;
  padding: 11px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(244, 63, 94, .11), rgba(251, 146, 60, .04));
  border: 1px solid rgba(251, 113, 133, .2);
  animation: fade-in .3s var(--ease);
}
.app-capacity-banner .capacity-emoji { font-size: 20px; }
.app-capacity-banner strong { font-size: 11.5px; color: #ffe4e6; }
.app-capacity-banner p { margin-top: 2px; color: #d8a5ad; font-size: 10px; line-height: 1.5; }

.messages {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px clamp(15px, 2.6vw, 30px) 8px;
  overscroll-behavior: contain;
}

.channel-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 480px;
  margin: clamp(30px, 8vh, 90px) auto 40px;
  padding: 0 20px;
  text-align: center;
  animation: fade-up .5s var(--ease);
}
.channel-intro-orb {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
  border-radius: 24px;
  background: linear-gradient(140deg, rgba(37, 99, 235, .24), rgba(56, 189, 248, .08));
  border: 1px solid rgba(96, 165, 250, .2);
  font-size: 34px;
  box-shadow: 0 20px 50px -20px rgba(29, 78, 216, .6), inset 0 1px 0 rgba(255, 255, 255, .09);
}
.channel-intro h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.03em;
}
.channel-intro p { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.channel-intro .intro-rule {
  width: 42px;
  height: 1px;
  margin: 20px 0 12px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, .5), transparent);
}
.channel-intro small { color: var(--muted-2); font-size: 10px; }

.date-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 6px 14px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.date-separator::before,
.date-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent);
}
.date-separator span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .045);
  white-space: nowrap;
}

.load-older-wrap { display: flex; justify-content: center; padding: 2px 0 6px; }
.load-older {
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .07);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.load-older:hover { color: #fff; background: rgba(37, 99, 235, .15); }
.load-older:disabled { opacity: .5; cursor: default; }

.message {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 3px 6px;
  border-radius: 16px;
  transition: background .18s;
}
.message:hover { background: rgba(255, 255, 255, .022); }
.message.group-start { margin-top: 14px; }
.message:first-child { margin-top: 0; }
.message.fresh { animation: msg-in .3s var(--ease) both; }
.message:not(.group-start) .msg-bubble { border-top-left-radius: 15px; }
.message:not(.group-start) .msg-body { margin-top: 1px; }

@keyframes msg-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg-avatar { width: 40px; flex: 0 0 40px; padding-top: 1px; }
.avatar-spacer { width: 40px; height: 1px; }

.msg-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  max-width: min(740px, calc(100% - 56px));
}

.msg-meta {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 0 2px 4px;
}
.msg-name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.005em;
  color: #dbeafe;
}
.msg-badge {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .17);
  border: 1px solid rgba(96, 165, 250, .18);
  color: #93c5fd;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.msg-time { color: #647a99; font-size: 9px; font-weight: 500; }

.msg-bubble {
  position: relative;
  max-width: 100%;
  padding: 8px 13px;
  border-radius: 4px 15px 15px 15px;
  background: rgba(255, 255, 255, .042);
  border: 1px solid rgba(255, 255, 255, .055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}
.message.own .msg-bubble {
  background: linear-gradient(135deg, rgba(37, 99, 235, .22), rgba(56, 189, 248, .055));
  border-color: rgba(96, 165, 250, .20);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 26px -20px rgba(29, 78, 216, .5);
}
.msg-bubble.has-images { padding: 6px; }
.msg-bubble.has-images .msg-text { padding: 3px 7px 5px; }
.msg-text + .msg-gallery { margin-top: 7px; }

.msg-text {
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.msg-text a { color: #7dd3fc; text-decoration: underline; text-decoration-color: rgba(125, 211, 252, .35); text-underline-offset: 2px; }
.msg-text a:hover { color: #bae6fd; }
.message.own .msg-text { color: #eef6ff; }

.message.is-system .msg-bubble {
  background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(56, 189, 248, .04));
  border-color: rgba(96, 165, 250, .18);
  box-shadow: 0 12px 32px -24px rgba(29, 78, 216, .7);
}
.message.is-system .msg-name { color: #93c5fd; }

.msg-gallery {
  display: grid;
  gap: 5px;
  margin-top: 0;
  max-width: 480px;
}
.msg-gallery.one { display: block; max-width: 420px; }
.msg-gallery.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.msg-gallery.many { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.msg-gallery + .msg-text { margin-top: 6px; }

.msg-gallery button {
  position: relative;
  display: block;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, .05);
  line-height: 0;
}
.msg-gallery img {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform .35s var(--ease), filter .3s;
  cursor: zoom-in;
}
.msg-gallery.one img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 360px;
  min-width: 140px;
  object-fit: contain;
  background: rgba(3, 8, 18, .4);
}
.msg-gallery.two img { height: 190px; }
.msg-gallery button:hover img { transform: scale(1.025); filter: brightness(1.06); }

.msg-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}
.reaction {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .07);
  font-size: 10px;
  line-height: 1;
  transition: background .18s, border-color .18s, transform .18s;
}
.reaction:hover { background: rgba(255, 255, 255, .09); transform: translateY(-1px); }
.reaction.active {
  background: rgba(37, 99, 235, .19);
  border-color: rgba(96, 165, 250, .32);
  color: #dbeafe;
}
.reaction .reaction-count { font-size: 9px; font-weight: 700; color: var(--muted); }
.reaction.active .reaction-count { color: #dbeafe; }

.msg-tools {
  position: absolute;
  top: -13px;
  right: 2px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 2px;
  border-radius: 10px;
  background: rgba(7, 16, 33, .96);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .8);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(3px) scale(.97);
  pointer-events: none;
  transition: opacity .16s, transform .16s;
}
.message:hover .msg-tools,
.message:focus-within .msg-tools {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.msg-tools button {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  font-size: 12px;
  color: var(--muted);
  transition: background .15s, transform .15s;
}
.msg-tools button:hover { background: rgba(255, 255, 255, .08); transform: scale(1.08); }
.msg-tools button .ico { width: 14px; height: 14px; }
.msg-tools button.delete:hover { background: rgba(244, 63, 94, .12); color: #fda4af; }

.jump-latest {
  position: absolute;
  right: clamp(20px, 3vw, 34px);
  bottom: 126px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .92), rgba(56, 189, 248, .7));
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 12px 30px -10px rgba(29, 78, 216, .8);
  animation: fade-up .25s var(--ease);
}
.jump-latest .ico { width: 14px; height: 14px; }
.jump-latest:hover { filter: brightness(1.08); }

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 20px;
  padding: 0 8px 4px;
  color: var(--muted-2);
  font-size: 10px;
  opacity: .9;
}
.typing-indicator .typing-dots i { background: #7dd3fc; }

/* Mesaj yazma alanı */
.composer-wrap {
  position: relative;
  z-index: 8;
  padding: 0 clamp(12px, 2.4vw, 24px) 13px;
  background: linear-gradient(180deg, transparent, rgba(4, 10, 22, .22));
}

.attachment-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 4px 8px;
}
.attachment-item {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .7);
  animation: fade-up .22s var(--ease);
}
.attachment-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.attachment-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(3, 8, 18, .8);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  backdrop-filter: blur(8px);
}
.attachment-remove .ico { width: 10px; height: 10px; }
.attachment-remove:hover { background: rgba(244, 63, 94, .8); }

.composer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 6px 7px;
  border-radius: 19px;
  background: linear-gradient(160deg, rgba(11, 23, 46, .72), rgba(4, 12, 25, .78));
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .055);
  backdrop-filter: blur(26px);
  transition: border-color .2s, box-shadow .2s;
}
.composer:focus-within {
  border-color: rgba(37, 99, 235, .38);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .9), 0 0 0 3px rgba(37, 99, 235, .08), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.composer textarea {
  flex: 1;
  min-height: 42px;
  max-height: 140px;
  padding: 10px 5px 9px;
  background: transparent;
  border: 0;
  resize: none;
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
  outline: none;
}
.composer textarea::placeholder { color: #647a99; }
.composer .icon-btn { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; margin-bottom: 1px; }
.composer .icon-btn .ico { width: 18px; height: 18px; }
.composer-tools { display: flex; align-items: center; gap: 2px; }

.send-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  margin: 1px 1px 1px 3px;
  border-radius: 13px;
  background: linear-gradient(130deg, #2563eb, #2563eb 50%, #0ea5e9);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  box-shadow: 0 8px 22px -8px rgba(29, 78, 216, .8), inset 0 1px 0 rgba(255, 255, 255, .24);
  transition: transform .2s var(--ease), filter .2s, opacity .2s;
}
.send-btn .ico { width: 18px; height: 18px; stroke-width: 1.9; transform: translateX(-1px); }
.send-btn:hover { transform: translateY(-1px) scale(1.03); filter: brightness(1.08); }
.send-btn:active { transform: scale(.96); }
.send-btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.3); }
.send-btn.is-loading .ico { animation: spin .8s linear infinite; }

.composer-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 7px 0;
  color: #5b7091;
  font-size: 9px;
}
.composer-hint kbd {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .07);
  font-family: inherit;
  font-size: 8px;
}
#char-count { font-weight: 700; }
#char-count.warn { color: #60a5fa; }

.emoji-picker {
  position: absolute;
  right: clamp(16px, 2.8vw, 32px);
  bottom: 106px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1px;
  width: 292px;
  max-height: 224px;
  padding: 9px;
  overflow-y: auto;
  border-radius: 16px;
  background: rgba(8, 18, 37, .97);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 22px 55px -18px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(30px);
  animation: fade-up .18s var(--ease);
}
.emoji-picker button {
  display: grid;
  place-items: center;
  height: 31px;
  border-radius: 8px;
  font-size: 17px;
  transition: background .15s, transform .15s;
}
.emoji-picker button:hover { background: rgba(255, 255, 255, .08); transform: scale(1.15); }

/* --------------------------------------------------------------------------
   Sağ bilgi paneli
   -------------------------------------------------------------------------- */

.info-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 18px 17px 14px;
  overflow-y: auto;
  border-radius: 27px;
  background: linear-gradient(165deg, rgba(13, 26, 52, .60), rgba(5, 13, 28, .70));
  animation: fade-up .55s .08s var(--ease) both;
}

.info-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px; }
.info-head h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text-soft);
}
.info-head .icon-btn { width: 30px; height: 30px; flex-basis: 30px; border-radius: 9px; }
.info-head .icon-btn .ico { width: 15px; height: 15px; }

.server-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 8px 20px;
  text-align: center;
}
.server-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin-bottom: 13px;
  border-radius: 23px;
  background: rgba(37, 99, 235, .09);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 20px 45px -18px rgba(29, 78, 216, .7), inset 0 1px 0 rgba(255, 255, 255, .09);
}
.server-orb::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 27px;
  border: 1px solid rgba(96, 165, 250, .1);
  animation: orbit-pulse 4s ease-in-out infinite;
}
@keyframes orbit-pulse {
  0%, 100% { transform: scale(1); opacity: .6; }
  50% { transform: scale(1.05); opacity: 1; }
}
.server-orb img { width: 52px; height: 52px; border-radius: 17px; }
.server-orbit-dot {
  position: absolute;
  right: -3px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid #071224;
  box-shadow: 0 0 10px rgba(52, 211, 153, .8);
}
.server-hero h4 {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.server-hero p {
  max-width: 220px;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.6;
}
.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(52, 211, 153, .06);
  border: 1px solid rgba(52, 211, 153, .13);
  color: #a7f3d0;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .05em;
}
.live-chip .online-dot { width: 4px; height: 4px; }

.info-section { padding: 15px 3px; border-top: 1px solid rgba(255, 255, 255, .055); }
.section-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.section-title {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.section-row strong { font-size: 11px; font-weight: 700; color: #d7e2f2; }
.section-row.muted { margin: 7px 0 0; color: var(--muted-2); }
.small { font-size: 9px; }
.info-note { margin-top: 9px; color: var(--muted-2); font-size: 9px; line-height: 1.5; }
.full-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(244, 63, 94, .08);
  border: 1px solid rgba(244, 63, 94, .15);
  color: #fecdd3;
  font-size: 9px;
  font-weight: 600;
}
.full-note .ico { width: 12px; height: 12px; }

.count-pill {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 19px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .15);
  border: 1px solid rgba(96, 165, 250, .16);
  color: #dbeafe;
  font-size: 9px;
  font-weight: 700;
}

.online-list { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.online-person {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 6px;
  margin: 0 -6px;
  border-radius: 9px;
  transition: background .18s;
}
.online-person:hover { background: rgba(255, 255, 255, .04); }
.person-info { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.person-info strong {
  overflow: hidden;
  max-width: 165px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-soft);
}
.person-info span { display: inline-flex; align-items: center; gap: 4px; color: var(--muted-2); font-size: 8px; }
.person-info .online-dot { width: 4px; height: 4px; box-shadow: none; }
.online-empty {
  padding: 10px 4px;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.5;
  text-align: center;
}
.online-more { margin-top: 4px; padding: 3px 6px; color: var(--muted-2); font-size: 9px; text-align: center; }

.server-facts { display: flex; flex-direction: column; gap: 8px; }
.fact-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted-2); font-size: 9px; }
.fact-row span { display: inline-flex; align-items: center; gap: 6px; }
.fact-row .ico { width: 12px; height: 12px; opacity: .7; }
.fact-row strong {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #c5d2e5;
  font-size: 9px;
  font-weight: 700;
}

.stored-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  padding: 9px;
  border-radius: 11px;
  background: rgba(56, 189, 248, .045);
  border: 1px solid rgba(56, 189, 248, .09);
  color: #7dd3fc;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .02em;
  text-align: center;
}
.stored-chip .ico { width: 12px; height: 12px; }

/* --------------------------------------------------------------------------
   Modallar
   -------------------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s var(--ease);
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 18, .68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.glass-modal {
  position: relative;
  z-index: 1;
  width: min(472px, 100%);
  max-height: calc(100svh - 40px);
  padding: 28px;
  overflow-y: auto;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(14, 28, 60, .97), rgba(5, 13, 28, .98));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .1);
  transform: translateY(12px) scale(.98);
  transition: transform .25s var(--ease);
}
.modal.open .glass-modal { transform: translateY(0) scale(1); }

.modal-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
.modal-close .ico { width: 16px; height: 16px; }

.modal-head { margin-bottom: 22px; padding-right: 26px; }
.modal-eyebrow {
  color: #60a5fa;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.modal-head h3 {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 23px;
  letter-spacing: -.03em;
}
.modal-head p { margin-top: 6px; color: var(--muted); font-size: 11.5px; }

.avatar-editor {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding: 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
}
.avatar-xl {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  flex: 0 0 86px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 18px 38px -18px rgba(0, 0, 0, .8);
  background: linear-gradient(135deg, rgba(37, 99, 235, .35), rgba(56, 189, 248, .2));
  color: #06101f;
  font-family: var(--font-display);
  font-weight: 700;
}
.avatar-xl.avatar { border-radius: 26px; font-size: 30px; }
.avatar-xl img { width: 100%; height: 100%; object-fit: cover; }
.avatar-editor-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.avatar-editor-copy .btn-ghost { height: 34px; min-height: 34px; font-size: 10.5px; padding: 0 11px; }
.avatar-editor-copy p { color: var(--muted-2); font-size: 8.5px; }

.modal-form .field { margin-bottom: 13px; }
.modal-form .field > textarea,
.modal-form > .field textarea {
  height: auto;
  min-height: 78px;
  padding: 12px 13px;
  resize: vertical;
  line-height: 1.55;
  font-size: 12.5px;
}
.modal-form .field textarea::placeholder { color: #5b7091; }

.profile-email-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 3px 0 17px;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(255, 255, 255, .05);
  color: var(--muted-2);
  font-size: 10px;
}
.profile-email-row span { display: inline-flex; align-items: center; gap: 6px; }
.profile-email-row .ico { width: 13px; height: 13px; }
.profile-email-row strong { color: var(--text-soft); font-size: 10.5px; font-weight: 600; word-break: break-all; text-align: right; }

.emoji-choice {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
  margin-bottom: 15px;
}
.emoji-choice button {
  display: grid;
  place-items: center;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .055);
  font-size: 18px;
  transition: background .18s, border-color .18s, transform .18s;
}
.emoji-choice button:hover { background: rgba(255, 255, 255, .07); transform: translateY(-1px); }
.emoji-choice button.active {
  background: rgba(37, 99, 235, .2);
  border-color: rgba(96, 165, 250, .38);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .08);
}

.confirm-card { width: min(390px, 100%); text-align: center; padding: 30px 26px 24px; }
.confirm-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 15px;
  border-radius: 17px;
  background: rgba(244, 63, 94, .1);
  border: 1px solid rgba(244, 63, 94, .18);
  color: #fda4af;
}
.confirm-icon .ico { width: 23px; height: 23px; }
.confirm-card h3 { font-family: var(--font-display); font-size: 19px; letter-spacing: -.02em; }
.confirm-card p { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.confirm-actions { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.confirm-actions .btn-ghost, .confirm-actions .btn-danger { flex: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(3, 2, 9, .9);
  backdrop-filter: blur(20px);
  animation: fade-in .2s var(--ease);
}
.lightbox img {
  max-width: min(1180px, 100%);
  max-height: calc(100svh - 60px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .95);
  animation: lightbox-in .25s var(--ease);
}
@keyframes lightbox-in {
  from { transform: scale(.97); opacity: .4; }
  to { transform: scale(1); opacity: 1; }
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .12);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Bildirimler
   -------------------------------------------------------------------------- */

.toasts {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: fit-content;
  max-width: 100%;
  padding: 11px 14px;
  border-radius: 13px;
  background: rgba(10, 22, 42, .94);
  border: 1px solid rgba(255, 255, 255, .11);
  box-shadow: 0 18px 45px -18px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .07);
  backdrop-filter: blur(24px);
  color: var(--text-soft);
  font-size: 11.5px;
  line-height: 1.5;
  animation: toast-in .3s var(--ease);
  pointer-events: auto;
}
.toast.out { animation: toast-out .25s var(--ease) forwards; }
.toast-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 7px;
  background: rgba(52, 211, 153, .11);
  color: #6ee7b7;
  font-size: 12px;
}
.toast.error .toast-icon { background: rgba(244, 63, 94, .12); color: #fda4af; }
.toast.info .toast-icon { background: rgba(56, 189, 248, .1); color: #7dd3fc; }
.toast .toast-body { padding-top: 1px; }
.toast strong { display: block; color: #fff; font-size: 11.5px; }
.toast span { color: var(--muted); font-size: 10.5px; }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(18px) scale(.97); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateX(16px) scale(.97); }
}

/* --------------------------------------------------------------------------
   Özel sohbetler ve mobil gezinme
   -------------------------------------------------------------------------- */

.sidebar-scroll {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 1px 8px;
  scrollbar-width: thin;
}

.sidebar-scroll .room-list,
.dm-list {
  flex: none;
  min-height: 0;
  overflow: visible;
}

.dm-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 2px 2px 12px;
}

.dm-item { align-items: center; }
.dm-avatar-wrap { position: relative; display: inline-flex; flex: 0 0 auto; }
.dm-avatar-wrap .online-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 9px;
  height: 9px;
  border: 2px solid #0a1324;
  box-shadow: none;
}
.dm-avatar-wrap .online-dot.is-off { background: #647a99; opacity: .6; }

.dm-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 1px;
}
.dm-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: -.005em;
}
.dm-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 500;
}
.room-item.active .dm-preview { color: #bcd4f5; }

.group-icon {
  font-size: 15px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .22), rgba(56, 189, 248, .08));
  border-color: rgba(96, 165, 250, .14);
}
.room-item.active .group-icon {
  background: linear-gradient(135deg, rgba(37, 99, 235, .38), rgba(56, 189, 248, .16));
  border-color: rgba(96, 165, 250, .28);
}
.group-item .dm-name { font-weight: 700; }

.intro-invite {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
}
.intro-invite .ico { width: 14px; height: 14px; }

.share-card { max-width: 440px; }
.share-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .28), rgba(56, 189, 248, .1));
  border: 1px solid rgba(96, 165, 250, .25);
  color: #bfdbfe;
}
.share-icon .ico { width: 22px; height: 22px; }
.share-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.share-card > p { margin-top: 6px; color: var(--muted-2); font-size: 11.5px; line-height: 1.55; }
.share-card .field { margin-top: 18px; }
.share-actions { display: flex; gap: 9px; margin-top: 14px; }
.share-actions .btn-primary { flex: 1; justify-content: center; }
.share-actions .btn-ghost { flex: 0 0 auto; }
.chat-header.group-mode {
  background:
    linear-gradient(180deg, rgba(37, 99, 235, .12), transparent 88%),
    linear-gradient(180deg, rgba(255, 255, 255, .027), transparent);
}

.dm-unread {
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  box-shadow: 0 4px 12px -4px rgba(37, 99, 235, .8);
}

.channel-dm-avatar {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
}
.channel-dm-avatar .avatar {
  width: 43px;
  height: 43px;
  flex-basis: 43px;
  border-radius: 14px;
  font-size: 15px;
  box-shadow: 0 10px 24px -14px rgba(37, 99, 235, .8);
}
.chat-header.dm-mode {
  background:
    linear-gradient(180deg, rgba(37, 99, 235, .09), transparent 86%),
    linear-gradient(180deg, rgba(255, 255, 255, .027), transparent);
}
.dm-intro .channel-intro-orb {
  background: linear-gradient(140deg, rgba(37, 99, 235, .34), rgba(56, 189, 248, .12));
  border-color: rgba(96, 165, 250, .26);
}

.dm-modal-card { max-width: 460px; }
.dm-search { margin: 2px 0 14px; }
.dm-user-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: min(54vh, 430px);
  overflow-y: auto;
  padding: 2px;
}
.dm-user-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 11px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .055);
  text-align: left;
  transition: background .18s, border-color .18s, transform .18s;
}
.dm-user-row:hover {
  background: rgba(37, 99, 235, .14);
  border-color: rgba(96, 165, 250, .24);
  transform: translateY(-1px);
}
.dm-user-row.self {
  background: linear-gradient(120deg, rgba(37, 99, 235, .18), rgba(56, 189, 248, .06));
  border-color: rgba(96, 165, 250, .2);
}
.dm-user-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 2px;
}
.dm-user-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 650;
}
.dm-user-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted-2);
  font-size: 10px;
}
.dm-user-badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, .12);
  border: 1px solid rgba(56, 189, 248, .18);
  color: #bfdbfe;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dm-user-action {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .2);
  border: 1px solid rgba(96, 165, 250, .18);
  color: #dbeafe;
  font-size: 9.5px;
  font-weight: 700;
}

.online-person { width: 100%; text-align: left; border: 0; background: transparent; }
.online-person.self { opacity: .72; }

.mobile-nav { display: none; }
.mobile-dm-badge {
  position: absolute;
  top: -5px;
  right: -9px;
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  border: 2px solid #071226;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
}
.mobile-nav-icon { position: relative; display: inline-grid; place-items: center; }

@media (max-width: 980px) {
  .app-shell { padding-bottom: calc(83px + env(safe-area-inset-bottom)); }
  .mobile-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 38;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    padding: 7px 8px;
    border-radius: 23px;
    background:
      linear-gradient(160deg, rgba(24, 42, 74, .9), rgba(7, 16, 33, .94));
    border: 1px solid rgba(147, 197, 253, .16);
    backdrop-filter: blur(26px) saturate(140%);
    -webkit-backdrop-filter: blur(26px) saturate(140%);
    box-shadow: 0 22px 55px -20px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .08);
  }
  .mobile-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    min-height: 48px;
    padding: 5px 2px 4px;
    border-radius: 15px;
    color: var(--muted-2);
    font-size: 8.5px;
    font-weight: 750;
    letter-spacing: .02em;
    transition: background .18s, color .18s;
  }
  .mobile-nav button:active { background: rgba(37, 99, 235, .17); color: #fff; }
  .mobile-nav button .ico { width: 19px; height: 19px; }
  .mobile-nav-fab {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-top: -20px;
    border-radius: 15px;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    border: 1px solid rgba(255, 255, 255, .24);
    box-shadow: 0 12px 26px -8px rgba(37, 99, 235, .95), inset 0 1px 0 rgba(255, 255, 255, .28);
  }
  .mobile-nav-fab .ico { width: 21px; height: 21px; color: #fff; }
  .mobile-nav button[data-mobile-action="new-dm"] { justify-content: flex-end; }
}

/* --------------------------------------------------------------------------
   Duyarlı tasarım
   -------------------------------------------------------------------------- */

.side-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  background: rgba(3, 8, 18, .6);
  backdrop-filter: blur(6px);
}

@media (min-width: 1181px) {
  .app-shell.info-hidden { grid-template-columns: 288px minmax(0, 1fr); }
  .app-shell.info-hidden .info-panel { display: none; }
}

@media (max-width: 1320px) {
  .app-shell { grid-template-columns: 276px minmax(0, 1fr) 288px; }
  .app-shell.info-hidden { grid-template-columns: 276px minmax(0, 1fr); }
}

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 276px minmax(0, 1fr); }
  .info-panel {
    position: fixed;
    top: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 50;
    width: 306px;
    /* fade-up animasyonu transform'u ezdiği için mobil/tablet panelde kapatılır. */
    animation: none;
    transform: translateX(calc(100% + 24px));
    transition: transform .3s var(--ease);
  }
  .info-panel.open { transform: translateX(0); }
  #close-info { display: grid; }
  .auth-view { grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr); gap: 34px; }
  .hero-copy h1 { font-size: clamp(42px, 5.6vw, 64px); }
  .showcase-wrap { max-width: 470px; }
}

@media (min-width: 1181px) {
  #close-info { display: none; }
}

@media (max-width: 980px) {
  .auth-view {
    grid-template-columns: 1fr;
    max-width: 560px;
    padding: 28px 20px 36px;
  }
  .auth-hero { display: none; }
  .auth-side { justify-content: center; }
  .auth-card { max-width: 462px; }
  .brand-mobile { display: inline-flex; margin-bottom: 26px; }

  .app-shell {
    grid-template-columns: minmax(0, 1fr);
    padding: 10px 10px calc(83px + env(safe-area-inset-bottom));
    gap: 10px;
  }
  .sidebar {
    position: fixed;
    top: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 45;
    width: min(300px, calc(100vw - 40px));
    /* fade-up animasyonu transform'u ezdiği için mobil panelde kapatılır. */
    animation: none;
    transform: translateX(calc(-100% - 24px));
    transition: transform .3s var(--ease);
  }
  .sidebar.open { transform: translateX(0); }
  .mobile-only { display: inline-grid !important; }
  .side-backdrop.show { display: block; }
  .chat-panel { border-radius: 24px; }
  .info-panel { top: 10px; right: 10px; bottom: 10px; width: min(320px, calc(100vw - 30px)); }
  .online-pill { display: none; }
  .server-mini { display: none; }
}

@media (max-width: 680px) {
  .app-shell { padding: 7px 7px calc(78px + env(safe-area-inset-bottom)); gap: 7px; }
  .chat-panel { border-radius: 21px; }
  .chat-header { min-height: 66px; padding: 10px 12px; gap: 9px; }
  .channel-emoji { width: 38px; height: 38px; flex-basis: 38px; border-radius: 12px; font-size: 18px; }
  .channel-dm-avatar,
  .channel-dm-avatar .avatar { width: 38px; height: 38px; flex-basis: 38px; border-radius: 12px; font-size: 13px; }
  .channel-copy h2 { font-size: 14px; }
  .channel-copy p { max-width: 38vw; font-size: 9px; }
  .online-stack { display: none; }
  .header-actions { gap: 4px; }
  .channel-title { gap: 9px; }
  .messages { padding: 12px 10px 6px; }
  .message { gap: 8px; padding: 3px 4px; }
  .msg-avatar { width: 34px; flex-basis: 34px; }
  .msg-avatar .avatar { width: 34px; height: 34px; flex-basis: 34px; border-radius: 11px; font-size: 12px; }
  .avatar-spacer { width: 34px; }
  .msg-body { max-width: calc(100% - 42px); }
  .msg-text { font-size: 13px; }
  .msg-gallery img { height: 132px; }
  .msg-gallery.two img { height: 150px; }
  .msg-tools { top: -11px; right: -2px; }
  .channel-intro { margin-top: 40px; }
  .composer-wrap { padding: 0 8px 8px; }
  .composer { border-radius: 17px; padding: 5px; }
  .composer .icon-btn { width: 36px; height: 36px; flex-basis: 36px; }
  .composer textarea { font-size: 12.5px; padding: 10px 4px 8px; }
  .send-btn { width: 38px; height: 38px; flex-basis: 38px; border-radius: 12px; }
  .composer-hint { display: none; }
  .jump-latest { bottom: 100px; right: 14px; }
  .emoji-picker { right: 10px; bottom: 94px; width: min(292px, calc(100vw - 30px)); }
  .app-capacity-banner { margin: 8px 10px 0; }
  .auth-card { padding: 26px 20px 20px; border-radius: 26px; }
  .auth-head h2 { font-size: 23px; }
  .otp { gap: 5px; }
  .otp input { height: 50px; border-radius: 11px; font-size: 19px; }
  .glass-modal { padding: 22px 18px; border-radius: 23px; }
  .avatar-editor { gap: 13px; padding: 12px; }
  .avatar-xl { width: 70px; height: 70px; flex-basis: 70px; border-radius: 21px; }
  .profile-email-row { flex-direction: column; align-items: flex-start; gap: 3px; }
  .profile-email-row strong { text-align: left; }
  .emoji-choice { grid-template-columns: repeat(8, 1fr); gap: 3px; }
  .emoji-choice button { height: 35px; font-size: 16px; }
  .toasts { top: 12px; right: 12px; }
  .modal { padding: 12px; }
  .lightbox { padding: 14px; }
  .lightbox img { max-height: calc(100svh - 100px); border-radius: 12px; }
}

@media (max-width: 380px) {
  .otp input { height: 46px; font-size: 18px; }
  .segmented button { font-size: 11.5px; }
  .field-label { font-size: 9.5px; }
}

@media (max-height: 820px) and (min-width: 981px) {
  .brand-hero { margin-bottom: 28px; }
  .hero-copy h1 { font-size: clamp(42px, 5vw, 62px); }
  .hero-lead { margin-top: 18px; }
  .showcase-wrap { margin-top: 26px; }
  .hero-foot { display: none; }
  .auth-card { padding-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
