:root {
  --brand: #5865f2;
  --brand-hover: #4752c4;
  --ok: #23a55a;
  --danger: #f23f43;
  --bg: #0d0e14;
  --bg-2: #15161f;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #e6e8ee;
  --muted: #a3a8b8;
  --head: #ffffff;
  --radius: 16px;
  --font: 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', 'Noto Sans', Arial,
    sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #8ea1ff;
}

code {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

.page {
  min-height: 100vh;
  background:
    radial-gradient(1100px 600px at 12% -10%, rgba(88, 101, 242, 0.45), transparent 60%),
    radial-gradient(900px 520px at 100% 10%, rgba(235, 69, 158, 0.18), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(88, 101, 242, 0.18), transparent 60%),
    var(--bg);
}

/* ---------- Üst menü ---------- */

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--head);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.brand.small {
  font-size: 1rem;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  opacity: 0.85;
}

.nav-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ---------- Butonlar ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.35);
}

.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-light {
  background: #fff;
  color: #23272a;
}

.btn-light:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  color: var(--brand);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--head);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn[aria-disabled='true'] {
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  box-shadow: none;
  pointer-events: none;
}

.btn-xl {
  padding: 18px 32px;
  font-size: 1.15rem;
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
}

.btn:not(.btn-xl) .icon {
  width: 18px;
  height: 18px;
}

/* ---------- Giriş bölümü ---------- */

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  color: var(--head);
  font-weight: 800;
}

.lead {
  font-size: 1.18rem;
  color: #cfd3e0;
  margin: 0 0 32px;
  max-width: 34em;
}

.meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.alt {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.notice {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(240, 178, 50, 0.12);
  color: #f5c96b;
  font-size: 0.95rem;
  max-width: 30em;
}

/* Uygulama önizlemesi (yalnızca HTML/CSS) */
.hero-visual {
  perspective: 1400px;
}

.mock {
  display: grid;
  grid-template-columns: 44px 178px 1fr;
  height: 380px;
  border-radius: 14px;
  overflow: hidden;
  background: #111214;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: rotateY(-8deg) rotateX(4deg);
  font-size: 12px;
}

.mock-rail {
  background: #1e1f22;
  padding-top: 10px;
  display: flex;
  justify-content: center;
}

.mock-guild {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.mock-side {
  background: #2b2d31;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  color: #949ba4;
}

.mock-title {
  color: #f2f3f5;
  font-weight: 700;
  padding: 2px 6px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  margin-bottom: 8px;
}

.mock-cat {
  font-size: 10px;
  font-weight: 700;
  padding: 0 6px 4px;
  letter-spacing: 0.02em;
}

.mock-channel {
  padding: 5px 6px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mock-channel svg {
  width: 14px;
  height: 14px;
}

.mock-channel.active {
  background: #404249;
  color: #f2f3f5;
}

.mock-member {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px 3px 24px;
}

.mock-member i,
.mock-tile i {
  font-style: normal;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  font-weight: 700;
}

.mock-member i {
  width: 18px;
  height: 18px;
  font-size: 9px;
}

.mock-member.speaking i {
  box-shadow:
    0 0 0 2px #2b2d31,
    0 0 0 4px var(--ok);
  animation: speak 1.6s ease-in-out infinite;
}

.mock-member.speaking {
  color: #f2f3f5;
}

.live {
  background: var(--danger);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 999px;
  margin-left: auto;
}

.mock-connected {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: #232428;
  color: var(--ok);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}

.mock-connected small {
  color: #949ba4;
  font-weight: 400;
}

.mock-stage {
  background: #0d0e10;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-stream {
  flex: 1;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  background: #000;
}

.mock-game {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 35%, #ffcf6b 0 7%, transparent 7.5%),
    linear-gradient(180deg, #2a3a8f 0%, #5c6fe0 55%, #2c7a3e 55%, #1f5a2d 100%);
}

.mock-game::after {
  content: '';
  position: absolute;
  left: 18%;
  bottom: 26%;
  width: 14%;
  height: 22%;
  background: #1b1b2a;
  border-radius: 6px 6px 0 0;
  box-shadow:
    120px 10px 0 -6px #1b1b2a,
    60px -20px 0 -2px #232338;
}

.mock-stream .live {
  position: absolute;
  top: 8px;
  left: 8px;
}

.mock-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  height: 84px;
}

.mock-tile {
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--c) 35%, #1e1f22);
}

.mock-tile i {
  width: 38px;
  height: 38px;
  font-size: 15px;
}

.mock-tile.speaking {
  box-shadow: inset 0 0 0 2px var(--ok);
  animation: speak-tile 1.6s ease-in-out infinite;
}

@keyframes speak {
  0%,
  100% {
    box-shadow:
      0 0 0 2px #2b2d31,
      0 0 0 4px var(--ok);
  }
  50% {
    box-shadow:
      0 0 0 2px #2b2d31,
      0 0 0 4px transparent;
  }
}

@keyframes speak-tile {
  0%,
  100% {
    box-shadow: inset 0 0 0 2px var(--ok);
  }
  50% {
    box-shadow: inset 0 0 0 2px transparent;
  }
}

/* ---------- Bölümler ---------- */

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--head);
  text-align: center;
}

.section-lead {
  text-align: center;
  color: var(--muted);
  margin: 0 0 40px;
  font-size: 1.05rem;
}

h3 {
  margin: 0 0 6px;
  color: var(--head);
  font-size: 1.15rem;
}

.platforms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.platform-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 8px;
}

@media (max-width: 1100px) {
  .platforms {
    grid-template-columns: repeat(2, 1fr);
  }
}

.platform {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 24px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.platform.current {
  border-color: rgba(88, 101, 242, 0.7);
  box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.5);
}

.platform-icon {
  width: 52px;
  height: 52px;
  color: var(--head);
  margin-bottom: 14px;
}

.platform-req {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 0.95rem;
}

.platform-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: auto;
}

.platform-meta {
  margin: 12px 0 0;
  min-height: 1.4em;
  font-size: 0.85rem;
  color: var(--muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.feature-icon {
  width: 30px;
  height: 30px;
  color: #8ea1ff;
  margin-bottom: 14px;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.steps li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.steps strong {
  color: var(--text);
}

.notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.note {
  border: 1px dashed var(--card-border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.note h3 {
  font-size: 1rem;
}

.note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.fineprint {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 28px auto 0;
  max-width: 52em;
}

.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
}

/* ---------- Mobil ---------- */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 24px;
    text-align: center;
  }
  .lead,
  .notice {
    margin-left: auto;
    margin-right: auto;
  }
  .mock {
    transform: none;
  }
  .platforms,
  .features,
  .steps,
  .notes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    padding: 16px;
    gap: 12px;
  }
  .nav-links {
    display: none;
  }
  .nav-cta {
    margin-left: auto;
  }
  .hero,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }
  .btn-xl {
    width: 100%;
  }
  .mock {
    grid-template-columns: 0 150px 1fr;
    height: 320px;
  }
  .footer {
    flex-direction: column;
    gap: 10px;
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .mock-member.speaking i,
  .mock-tile.speaking {
    animation: none;
  }
}

/* Yardımcılar (CSP satır içi stile izin vermez) */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
}
.c1 {
  --c: #1abc9c;
}
.c2 {
  --c: #ed4245;
}
.c3 {
  --c: #faa61a;
}

/* ---------- Gizlilik sayfası ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  line-height: 1.65;
}
.legal h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  margin-bottom: 4px;
}
.legal h2 {
  margin: 36px 0 10px;
  font-size: 1.25rem;
}
.legal p,
.legal li {
  color: var(--muted);
}
.legal ul {
  padding-left: 1.2em;
}
.legal li + li {
  margin-top: 8px;
}
.legal a {
  color: #8ea1ff;
}
.legal-updated {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Davet bağlantısı kartı (/davet/<kod>) */
.invite-card {
  margin-bottom: 28px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.invite-card.invalid .invite-code,
.invite-card.invalid .invite-fallback {
  display: none;
}
.invite-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.invite-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 18px;
  background: #5865f2;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
}
.invite-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.invite-label,
.invite-meta {
  margin: 0;
  font-size: 13px;
  opacity: 0.75;
}
.invite-name {
  margin: 2px 0;
  font-size: 22px;
  font-weight: 800;
}
.invite-steps {
  margin: 14px 0 12px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.9;
}
.invite-code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.invite-code code {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 18px;
  letter-spacing: 2px;
}
.invite-fallback {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.85;
}
.invite-fallback a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

/* ---------- iPhone kaydı (/udid) ---------- */
.udid h1 {
  margin-top: 8px;
}
.udid-card {
  margin: 16px 0 24px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
}
.udid-card h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 5vw, 2.1rem);
}
.udid-ok {
  border-color: rgba(35, 165, 90, 0.5);
}
.udid-bad {
  border-color: rgba(242, 63, 67, 0.5);
}
.udid-warn {
  border-color: rgba(250, 166, 26, 0.5);
  color: var(--text);
}
.udid-label {
  margin: 18px 0 6px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.udid-value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.udid-value code {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.95rem;
  word-break: break-all;
  color: var(--head);
}
.udid-copy {
  padding: 8px 16px;
}
.udid-model,
.udid-note {
  font-size: 0.9rem;
}
.udid-input {
  width: 100%;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  font-size: 16px; /* iOS 16 px altında odaklanınca sayfayı büyütür */
}
.udid-input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

/* ---------- Yönetim paneli (/admin) ---------- */
.adm {
  --warn: #f0b232;
  --pink: #eb459e;
  --line: rgba(255, 255, 255, 0.08);
}
.adm [hidden] {
  display: none !important;
}
.adm-nav {
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 16px 24px;
}
.adm-title {
  color: var(--muted);
  font-weight: 700;
}
.adm-session {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.adm-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.adm-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}
.adm-live[data-state='ok'] i {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(35, 165, 90, 0.25);
}
.adm-live[data-state='bad'] i {
  background: var(--danger);
}
.adm-logout {
  padding: 7px 14px;
  font-size: 0.9rem;
}
.adm-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px 64px;
}

/* Giriş ve bilgi kutuları */
.adm-box {
  max-width: 420px;
  margin: 8vh auto 0;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
}
.adm-box h1 {
  font-size: 1.8rem;
  margin: 0 0 8px;
}
.adm-box p {
  color: var(--muted);
  margin: 0 0 18px;
}
.adm-muted,
.adm-box.adm-muted p {
  color: var(--muted);
}
.adm-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.adm-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}
.adm-form input[type='text'],
.adm-form input[type='password'] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  font-size: 16px; /* iOS 16 px altında odaklanınca sayfayı büyütür */
}
.adm-form input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
.adm-form .adm-check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--muted);
}
.adm-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}
.adm-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(242, 63, 67, 0.12);
  color: #ff9a9c;
  font-size: 0.92rem;
}
.adm-form .btn {
  margin-top: 4px;
}
.adm-form .btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Sekmeler (telefonda alt alta sarılır; sayfa yana kaymaz) */
.adm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 8px;
  scroll-margin-top: 8px;
}
.adm-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.adm-tabs button:hover {
  border-color: rgba(255, 255, 255, 0.2);
}
.adm-tabs button[aria-selected='true'] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.adm-tabs button:focus-visible,
.adm-chip:focus-visible,
.adm-clickable:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.adm-tab-count {
  min-width: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.72rem;
  line-height: 18px;
  text-align: center;
}
.adm-section {
  scroll-margin-top: 16px;
}
.adm h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 12px;
  font-size: 1.2rem;
  text-align: left;
  letter-spacing: -0.01em;
}
.adm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  grid-auto-flow: row dense; /* geniş kutudan önce kalan boşluğu sonraki küçük kutular doldurur */
  gap: 12px;
}
.adm-card {
  position: relative;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
}
.adm-wide {
  grid-column: 1 / -1;
}
.adm-tone-ok {
  border-color: rgba(35, 165, 90, 0.45);
}
.adm-tone-warn {
  border-color: rgba(240, 178, 50, 0.55);
}
.adm-tone-bad {
  border-color: rgba(242, 63, 67, 0.6);
}
.adm-tone-accent {
  border-color: rgba(88, 101, 242, 0.7);
}
.adm-label {
  margin-bottom: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.adm-value {
  color: var(--head);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.adm-value-sm {
  font-size: 1.2rem;
}
.adm-unit {
  margin-left: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.adm-sub {
  margin-top: 2px;
  font-size: 0.86rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.adm-empty,
.adm-note {
  color: var(--muted);
  font-size: 0.92rem;
}
.adm-note b {
  color: var(--text);
}
.adm-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}
.adm-badge-live {
  background: rgba(242, 63, 67, 0.16);
  color: #ff8d8f;
}
.adm-badge-ok {
  background: rgba(35, 165, 90, 0.16);
  color: #6fdc9b;
}
.adm-badge-warn {
  background: rgba(240, 178, 50, 0.16);
  color: #f5c867;
}
.adm-badge-muted {
  color: var(--muted);
}
.adm h2 .adm-badge {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Doluluk çubuğu: dolu kısım durumu taşır, boş kısım aynı rengin soluğu */
.adm-meter {
  height: 8px;
  margin: 10px 0 4px;
  border-radius: 999px;
  background: rgba(35, 165, 90, 0.18);
  overflow: hidden;
}
.adm-meter span {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: var(--ok);
}
.adm-meter-warn {
  background: rgba(240, 178, 50, 0.18);
}
.adm-meter-warn span {
  background: var(--warn);
}
.adm-meter-danger {
  background: rgba(242, 63, 67, 0.18);
}
.adm-meter-danger span {
  background: var(--danger);
}

/* Küçük çizgi grafikler */
.adm-spark {
  --c: var(--brand);
  position: relative;
  height: 52px;
  margin-top: 10px;
  touch-action: pan-y;
}
.adm-c-ok {
  --c: var(--ok);
}
.adm-c-pink {
  --c: var(--pink);
}
.adm-spark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.adm-spark-line {
  fill: none;
  stroke: var(--c);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.adm-spark-area {
  fill: var(--c);
  opacity: 0.16;
}
/* En yüksek değerler (uzun geçmiş): soluk kesikli çizgi */
.adm-spark-peak {
  fill: none;
  stroke: var(--c);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  opacity: 0.55;
}
.adm-spark-empty {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.8rem;
}
.adm-spark-cursor {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}
.adm-spark-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 2px var(--bg);
  pointer-events: none;
}
.adm-spark-tip {
  position: absolute;
  top: -26px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #000;
  color: var(--head);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(6px);
  font-variant-numeric: tabular-nums;
}
.adm-spark-tip[data-side='left'] {
  transform: translateX(calc(-100% - 6px));
}
.adm-net + .adm-net {
  margin-top: 8px;
}
.adm-net-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.9rem;
}
.adm-net-head b {
  color: var(--head);
  font-variant-numeric: tabular-nums;
}
.adm-net .adm-spark {
  height: 40px;
  margin-top: 4px;
}

/* Geri bildirim durumları */
.adm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
  margin: 8px 0 10px;
}
.adm-stat {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}
.adm-stat b {
  color: var(--head);
  font-size: 1.4rem;
  line-height: 1.2;
}
.adm-stat span {
  color: var(--muted);
  font-size: 0.82rem;
}
.adm-stat span + span {
  font-size: 0.75rem;
}
.adm-stat-new {
  background: rgba(88, 101, 242, 0.18);
}

/* Günlük mesaj çubukları */
.adm-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 84px;
  margin-top: 14px;
}
.adm-bar {
  flex: 1;
  min-width: 0;
  border-radius: 4px 4px 0 0;
  background: rgba(88, 101, 242, 0.55);
  transition: background 0.15s;
}
.adm-bar:hover,
.adm-bar-today {
  background: var(--brand);
}
.adm-bar-zero {
  background: rgba(255, 255, 255, 0.1);
}
.adm-bars-caption {
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

/* Anahtar-değer satırları (depolama) */
.adm-kvs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  font-size: 0.86rem;
}
.adm-kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}
.adm-kv b {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Satır listeleri (ses kanalları, hesaplar, hatalar) */
.adm-channel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-bottom: 8px;
}
.adm-channel-name {
  color: var(--head);
  font-weight: 700;
}
.adm-rows {
  display: flex;
  flex-direction: column;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.adm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.adm-row:first-child {
  border-top: 0;
}
.adm-rows-compact .adm-row {
  padding: 6px 0;
  flex-wrap: wrap;
}
.adm-row-top {
  align-items: flex-start;
}
.adm-row-main {
  flex: 1;
  min-width: 0;
}
.adm-row-title {
  color: var(--head);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.adm-row-title .adm-badge {
  margin-left: 6px;
}
.adm-push {
  margin-left: auto;
}
.adm-nowrap {
  white-space: nowrap;
  font-size: 0.86rem;
}
.adm-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}
.adm-avatar {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}
.adm-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.adm-status {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.adm-status-on {
  background: var(--ok);
}
.adm-error-msg {
  margin-top: 6px;
  color: var(--text);
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.84rem;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.adm-details {
  margin-top: 6px;
  font-size: 0.84rem;
}
.adm-details summary {
  color: var(--muted);
  cursor: pointer;
}
.adm-details pre {
  max-height: 260px;
  margin: 6px 0 0;
  padding: 10px;
  overflow: auto;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.78rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.adm-more {
  margin-top: 10px;
  padding: 6px 12px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}
.adm-more:hover {
  background: rgba(255, 255, 255, 0.06);
}
.adm-foot {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Rozet: kötü */
.adm-badge-bad {
  background: rgba(242, 63, 67, 0.16);
  color: #ff8d8f;
}

/* Tıklanabilir satırlar (ayrıntı açar) */
.adm-clickable {
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}
.adm-clickable:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Ölçüm hücreleri (ses kalitesi, sunucular) */
.adm-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  gap: 6px;
  margin-top: 8px;
}
.adm-metric {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
}
.adm-metric span {
  color: var(--muted);
}
.adm-metric b {
  color: var(--head);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.adm-metric-warn {
  background: rgba(240, 178, 50, 0.12);
}
.adm-metric-warn b {
  color: #f5c867;
}
.adm-metric-bad {
  background: rgba(242, 63, 67, 0.14);
}
.adm-metric-bad b {
  color: #ff8d8f;
}
.adm-kv-warn b {
  color: #f5c867;
}
.adm-kv-bad b {
  color: #ff8d8f;
}
.adm-mono {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.84rem;
}
.adm-person {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--head);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* Seçim düğmeleri (dönem, tür) */
.adm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 8px;
}
.adm-chip {
  padding: 4px 11px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.adm-chip[aria-pressed='true'] {
  background: rgba(88, 101, 242, 0.25);
  border-color: rgba(88, 101, 242, 0.8);
}
.adm-stat-btn {
  border: 1px solid transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.adm-stat-btn[aria-pressed='true'] {
  border-color: rgba(88, 101, 242, 0.8);
}

/* Grafik ekseni ve ayrıntı grafikleri */
.adm-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}
.adm-chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 10px;
  margin: 10px 0;
}
.adm-chart {
  padding: 10px 12px;
}
.adm-chart .adm-spark {
  height: 56px;
}

.adm-netdata {
  margin: 0 0 12px;
}

/* Ses kalitesi: canlı liste satırı ve zaman çizelgesi */
.adm-qrow {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 6px;
  border-top: 1px solid var(--line);
}
.adm-qrow:first-child {
  border-top: 0;
}
.adm-qhead {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.adm-qhead .adm-row-title {
  min-width: 0;
}
.adm-stat-ok b {
  color: #6fdc9b;
}
.adm-stat-warn b {
  color: #f5c867;
}
.adm-stat-poor b {
  color: #ff8d8f;
}
.adm-timeline {
  position: relative;
  height: 18px;
  margin-top: 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.adm-tl {
  position: absolute;
  top: 0;
  bottom: 0;
}
.adm-tl-ok {
  background: rgba(35, 165, 90, 0.75);
}
.adm-tl-warn {
  background: var(--warn);
}
.adm-tl-poor {
  background: var(--danger);
}

/* Yatay çubuk (kişi başına ses süresi) */
.adm-hbar {
  height: 6px;
  margin: 5px 0 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.adm-hbar span {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  background: var(--brand);
}

/* Isı haritası: haftanın günleri × saatler */
.adm-heat {
  display: grid;
  grid-template-columns: 30px repeat(24, minmax(0, 1fr));
  gap: 2px;
  margin-top: 10px;
  font-size: 0.68rem;
  color: var(--muted);
}
.adm-heat-hour {
  height: 14px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.adm-heat-day {
  display: flex;
  align-items: center;
}
.adm-heat-cell {
  aspect-ratio: 1;
  min-height: 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
}

/* Ayrıntı sayfası (kaplama) */
body.adm-sheet-open {
  overflow: hidden;
}
.adm-sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.55);
}
.adm-sheet-panel {
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  height: 100%;
  background: var(--bg-2);
  border-left: 1px solid var(--card-border);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.4);
}
.adm-sheet-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.adm-sheet-head h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.adm-sheet-close {
  margin-top: 0;
}
.adm-sheet-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 18px 32px;
}
.adm-sheet-body > .adm-card,
.adm-sheet-body > .adm-chips,
.adm-sheet-body > .adm-sub {
  margin-bottom: 10px;
}

/* Geri bildirim ayrıntısı */
.adm-fb-author {
  margin: 12px 0 6px;
}
.adm-fb-title {
  margin: 10px 0 4px;
  color: var(--head);
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}
.adm-fb-body {
  margin: 8px 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.adm-shots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 14px;
}
.adm-shot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  max-width: 100%;
  min-height: 90px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.adm-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.adm-shot-big {
  width: 100%;
}
.adm-fb-edit {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.adm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
}
.adm-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px; /* iOS 16 px altında odaklanınca sayfayı büyütür */
}
textarea.adm-input {
  resize: vertical;
}
.adm-input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
.adm-fb-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.adm-fb-actions .adm-sub {
  margin: 0;
}
.adm-save:disabled {
  opacity: 0.6;
  cursor: default;
}

@media (max-width: 640px) {
  /* Telefonda kutular tam genişlik; yalnızca kısa sayı kutuları ikişer yan yana */
  .adm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .adm-grid > * {
    grid-column: 1 / -1;
  }
  .adm-grid > .adm-compact {
    grid-column: auto;
  }
  .adm-card {
    padding: 12px 14px;
  }
  .adm-nav {
    padding: 12px 16px;
  }
  .adm-title {
    display: none;
  }
  .adm-main {
    padding: 4px 16px 48px;
  }
  .adm-box {
    margin-top: 4vh;
    padding: 22px 18px;
  }
  .adm-value {
    font-size: 1.4rem;
  }
  .adm-compact .adm-unit {
    display: block;
    margin-left: 0;
    font-size: 0.82rem;
  }
  .adm-tabs {
    gap: 6px;
  }
  .adm-tabs button {
    padding: 5px 10px;
    font-size: 0.84rem;
  }
  .adm-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .adm-sheet-panel {
    width: 100%;
    border-left: 0;
  }
  .adm-sheet-head {
    padding: 12px 14px;
  }
  .adm-sheet-head h2 {
    font-size: 1.05rem;
  }
  .adm-sheet-body {
    padding: 12px 14px 28px;
  }
  .adm-heat {
    grid-template-columns: 26px repeat(24, minmax(0, 1fr));
    gap: 1px;
  }
  .adm-heat-hour {
    font-size: 0.6rem;
  }
  .adm-shot {
    width: calc(50% - 4px);
  }
  .adm-shot-big {
    width: 100%;
  }
  /* Uzun satırlar (yol adları, IP) telefonda alt satıra geçer */
  .adm-rows-compact .adm-push {
    margin-left: 0;
  }
}

/* ---------- Yönetim: iPhone cihazları ---------- */

.adm-ios-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.adm-ios-actions .adm-more {
  margin-top: 0;
}
.adm-ios-actions .adm-more:disabled {
  opacity: 0.6;
  cursor: default;
}
.adm-pre {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: all;
}
@media (max-width: 640px) {
  .adm-ios-row {
    flex-wrap: wrap;
  }
  .adm-ios-actions {
    justify-content: flex-start;
    width: 100%;
  }
}

/* Hat testleri: saniye saniye kayıp çubukları, ortak test sütunları */
.adm-lossbars {
  margin: 4px 0 8px;
}
.adm-lossbars svg {
  display: block;
  width: 100%;
  height: 56px;
}
.adm-bar-ok {
  fill: var(--ok);
  opacity: 0.55;
}
.adm-bar-warn {
  fill: var(--warn);
}
.adm-bar-bad {
  fill: var(--danger);
}
.adm-bars-sep {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.adm-line-cols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 12px;
  margin-top: 10px;
}
.adm-line-col {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
}
.adm-pre {
  margin: 6px 0 0;
  padding: 8px 10px;
  max-height: 260px;
  overflow: auto;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  font: 0.78rem/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.adm-pre-inline {
  display: block;
}
.adm-line-col .adm-badge,
#adm-diag .adm-badges .adm-badge,
.adm-sheet-body .adm-badges .adm-badge {
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Bağlantı teşhisi: görünüm seçimi, kesinti bantları, kullanıcı şeritleri, kopyalanabilir komutlar */
#adm-diag-nav .adm-chips {
  margin: 0 0 12px;
}
.adm-subhead {
  margin: 8px 0 0;
  color: var(--head);
  font-size: 1rem;
}
.adm-spark-mark,
.adm-lane-mark {
  fill: var(--danger);
  opacity: 0.3;
}
.adm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.adm-command {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.adm-command .adm-pre {
  flex: 1 1 240px;
  min-width: 0;
}
.adm-command .adm-more {
  margin-top: 6px;
}
.adm-lane {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.adm-lane-name {
  flex: 0 0 32%;
  min-width: 0;
  overflow: hidden;
  font-size: 0.85rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adm-lane-bar {
  flex: 1 1 auto;
  min-width: 0;
  height: 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.adm-lane-bar svg {
  display: block;
  width: 100%;
  height: 100%;
}
/* İstemci olay kayıtları: kullanıcı başına ince ısı şeritleri */
.adm-trace-user {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.adm-trace-user:first-of-type {
  border-top: 0;
}
.adm-lane-thin {
  margin-top: 3px;
}
.adm-lane-thin .adm-lane-name {
  font-size: 0.75rem;
}
.adm-lane-thin .adm-lane-bar {
  height: 10px;
}
.adm-lane-val {
  flex: 0 0 4.6rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.adm-heat-bad {
  fill: var(--danger);
}
.adm-heat-warn {
  fill: var(--warn);
}
.adm-heat-ok {
  fill: var(--ok);
}
.adm-heat-brand {
  fill: var(--brand);
}
.adm-trace-request {
  margin-top: 0;
}
