:root {
  /* HecekaSoft jetonları + Baglanio vurgu (mint tabanlı, kendi tonuyla) */
  --indigo: #1E2A5E;
  --indigo-deep: #141E47;
  --indigo-night: #0A1238;
  --accent: #06C4A8;
  --accent-soft: #1FE0C3;
  --cloud: #F4F7FB;
  --fog: #CBD5E1;
  --danger: #EF4444;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 18, 56, 0.28);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--cloud);
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(6,196,168,0.18), transparent),
    linear-gradient(160deg, var(--indigo-night), var(--indigo-deep) 60%, #05091d);
  min-height: 100vh;
}

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; font-weight: 800;
  background: linear-gradient(160deg, var(--accent-soft), var(--accent));
  color: var(--indigo-night); box-shadow: 0 6px 18px rgba(6,196,168,0.35);
}
.brand-name { letter-spacing: 0.2px; }
.tag { font-size: 12px; color: var(--fog); opacity: 0.8; }

.wrap { max-width: 900px; margin: 0 auto; padding: 26px 20px 60px; }

.status {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 12px 16px; border-radius: 12px; margin-bottom: 22px;
  font-size: 14px; color: #dbe4f3;
}
.status.err { border-color: rgba(239,68,68,0.5); color: #fecaca; }
.status.ok { border-color: rgba(6,196,168,0.5); color: #a7f3e6; }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 680px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.card h2 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0 0 16px; color: var(--fog); font-size: 14px; line-height: 1.5; }

.btn {
  display: inline-block; border: none; cursor: pointer;
  padding: 12px 18px; border-radius: 11px; font-weight: 600; font-size: 15px;
  font-family: inherit; transition: transform .05s ease, filter .15s ease;
  width: 100%;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(160deg, var(--accent-soft), var(--accent)); color: var(--indigo-night); }
.btn-secondary { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.16); }
.btn-ghost { background: transparent; color: var(--accent-soft); border: 1px solid rgba(6,196,168,0.4); }
.btn-danger { background: rgba(239,68,68,0.16); color: #fecaca; border: 1px solid rgba(239,68,68,0.5); }
.btn:hover { filter: brightness(1.05); }

.input {
  width: 100%; padding: 12px 14px; border-radius: 11px; margin-bottom: 12px;
  background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.14);
  color: #fff; font-size: 16px; font-family: inherit;
}
.input::placeholder { color: #7f8db0; }

.panel { margin-top: 8px; }
.hidden { display: none !important; }

.code-box {
  text-align: center; padding: 22px; margin-bottom: 18px;
  background: rgba(6,196,168,0.08); border: 1px solid rgba(6,196,168,0.3);
  border-radius: var(--radius);
}
.code-label { font-size: 13px; color: var(--fog); }
.code {
  font-size: 40px; font-weight: 800; letter-spacing: 4px; margin: 10px 0 14px;
  color: var(--accent-soft); font-variant-numeric: tabular-nums;
}
.code-box .btn { width: auto; padding: 8px 16px; }

.video {
  width: 100%; border-radius: var(--radius); background: #000;
  border: 1px solid rgba(255,255,255,0.1); box-shadow: var(--shadow); margin-bottom: 14px;
  aspect-ratio: 16 / 9; object-fit: contain;
}
.video.small { max-width: 340px; }

/* Uzak masaüstü — üstte KALICI kontrol çubuğu, altta ekran (çubuk ekranı işgal etmez) */
#viewPanel { display: flex; flex-direction: column; }
.rd-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 12px; background: rgba(10, 18, 56, 0.94);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 10px 10px 0 0;
}
.rd-brand { font-weight: 700; color: var(--accent-soft); font-size: 14px; }
.rd-status { font-size: 12px; color: #a7f3e6; white-space: nowrap; }
.rd-group { display: flex; align-items: center; gap: 8px; }
.grow { flex: 1; }
.rd-screen-wrap {
  background: #000; border: 1px solid rgba(255,255,255,0.08); border-top: none;
  border-radius: 0 0 10px 10px; overflow: hidden; line-height: 0; min-height: 0;
}
.screen {
  display: block; width: 100%; max-height: 78vh; object-fit: contain;
  background: #000; user-select: none; -webkit-user-drag: none;
}
.screen::-webkit-media-controls { display: none !important; }
.screen:focus { outline: none; }
.chip {
  border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.08);
  color: #fff; border-radius: 8px; padding: 6px 11px; font-size: 13px;
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.chip:hover { background: rgba(255,255,255,0.18); }
.chip.danger { border-color: rgba(239,68,68,0.5); color: #fecaca; }
.vol { width: 90px; accent-color: var(--accent); cursor: pointer; vertical-align: middle; }
.chip.active { background: rgba(6,196,168,0.25); border-color: rgba(6,196,168,0.6); color: #a7f3e6; }

/* Ses cihazı seçim çubuğu (uzak masaüstü araç çubuğunun altında) */
.rd-audio {
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
  padding: 8px 12px; background: rgba(10,18,56,0.85);
  border: 1px solid rgba(255,255,255,0.08); border-top: none;
  font-size: 13px; color: #cbd5e1;
}
.rd-audio label { display: flex; align-items: center; gap: 6px; }
.rd-audio select {
  background: rgba(0,0,0,0.3); color: #fff; border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px; padding: 4px 8px; font-family: inherit; font-size: 13px; max-width: 220px;
}

/* Karşıdan gelen pano bildirimi (tarayıcı otomatik yazamadığı için "Panoma Al" ile) */
.clip-toast {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; z-index: 50;
  background: rgba(10, 18, 56, 0.96); color: #fff; padding: 10px 14px;
  border: 1px solid rgba(6, 196, 168, 0.55); border-radius: 12px;
  box-shadow: var(--shadow); max-width: 92vw; font-size: 13px;
}
.clip-text {
  color: #a7f3e6; max-width: 320px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; font-family: monospace;
}

/* Tam ekran: panel dikey → üstte İNCE kalıcı kontrol çubuğu (ekranı işgal etmez), altta ekran doldurur */
#viewPanel:fullscreen { background: #000; height: 100vh; }
#viewPanel:fullscreen .rd-toolbar { border-radius: 0; border-left: none; border-right: none; }
#viewPanel:fullscreen .rd-screen-wrap { flex: 1; border: none; border-radius: 0; display: flex; }
#viewPanel:fullscreen .screen { max-height: none; height: 100%; width: 100%; }

.row { display: flex; gap: 12px; }
.row .btn { width: auto; flex: 1; }
.hint { display: block; margin-top: 10px; color: #8595b8; font-size: 12px; }

.settings { margin-top: 34px; color: var(--fog); font-size: 13px; }
.settings summary { cursor: pointer; user-select: none; }
.settings .input { margin-top: 12px; }
.settings small { color: #8595b8; }

/* Ana ekran altındaki ikincil "Teams gibi ekran göster" satırı */
.home-alt { margin: 18px 2px 0; color: var(--fog); font-size: 14px; text-align: center; }
.linklike {
  background: none; border: none; color: var(--accent-soft); cursor: pointer;
  font: inherit; text-decoration: underline; padding: 0;
}
.linklike:hover { filter: brightness(1.12); }

/* "Bu bilgisayarı paylaş" — yardımcı indirme yönergesi */
#becPanel {
  max-width: 580px; margin: 8px auto 0;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
#becPanel h2 { margin: 0 0 14px; font-size: 18px; }
#becPanel .btn { width: auto; }
.steps { margin: 0 0 10px; padding-left: 22px; color: #dbe4f3; font-size: 14px; line-height: 1.75; }
.steps li { margin-bottom: 8px; }
.steps b { color: var(--accent-soft); }
