/* ═══════════════════════════════════════════════════
   pcremotedesktop — Corporate Design System
   ═══════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.cdnfonts.com/css/matroska');

:root {
  --bg:        #060a13;
  --surface:   #0c1220;
  --surface2:  #131c30;
  --surface3:  #1a2540;
  --border:    #1e2d4a;
  --border2:   #2a3f66;
  --accent:    #2563eb;
  --accent2:   #3b82f6;
  --accent3:   #60a5fa;
  --green:     #10b981;
  --red:       #ef4444;
  --yellow:    #f59e0b;
  --text:      #e2e8f0;
  --muted:     #64748b;
  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow:    0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.5);
  --glow:      0 0 40px rgba(37,99,235,.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html, body {
  height: 100%;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
  letter-spacing: -0.01em;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,99,235,.35);
}
.btn-primary:hover { box-shadow: 0 4px 30px rgba(37,99,235,.55); transform: translateY(-1px); }

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--surface3); border-color: var(--border2); }

.btn-danger {
  background: linear-gradient(135deg, #dc2626, var(--red));
  color: #fff;
}
.btn-danger:hover { box-shadow: 0 4px 20px rgba(239,68,68,.4); }

.btn-success {
  background: linear-gradient(135deg, #059669, var(--green));
  color: #fff;
}
.btn-success:hover { box-shadow: 0 4px 20px rgba(16,185,129,.4); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
}
.btn-ghost:hover { color: var(--text); background: var(--surface2); }

.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: var(--radius); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-icon { padding: 10px; border-radius: 8px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

/* ── Inputs ──────────────────────────────────────── */
.input {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  padding: 12px 16px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.input::placeholder { color: var(--muted); }

/* ── Badges / Chips ──────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-green  { background: rgba(16,185,129,.12); color: var(--green); }
.badge-red    { background: rgba(239,68,68,.12);  color: var(--red); }
.badge-blue   { background: rgba(37,99,235,.12);  color: var(--accent3); }
.badge-yellow { background: rgba(245,158,11,.12); color: var(--yellow); }

/* ── Dot indicator ───────────────────────────────── */
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot.green  { background: var(--green);  box-shadow: 0 0 8px var(--green); }
.dot.red    { background: var(--red);    box-shadow: 0 0 8px var(--red); }
.dot.yellow { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.dot.pulse  { animation: pulse 1.5s infinite; }

@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

/* ── Toast ───────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  color: var(--text);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-size: 14px;
  min-width: 260px;
  animation: slideIn 0.3s cubic-bezier(.16,1,.3,1);
  backdrop-filter: blur(12px);
}
.toast.error  { border-left-color: var(--red); }
.toast.success { border-left-color: var(--green); }
.toast.warning { border-left-color: var(--yellow); }

/* ── File Receive Banner ──────────────────────────── */
.file-receive-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 16px 20px;
  min-width: 280px;
  z-index: 9999;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s cubic-bezier(.16,1,.3,1);
}

@keyframes slideIn {
  from { transform: translateX(80px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ══════════════════════════════════════════════════
   INDEX PAGE
   ══════════════════════════════════════════════════ */
.index-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: rgba(6,10,19,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30,45,74,0.5);
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 16px rgba(37,99,235,.3);
}
.logo-text {
  font-family: 'Matroska', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #fff, var(--accent3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  position: relative;
  display: inline-flex;
  align-items: baseline;
}
.logo-desktop {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-left: 3px;
  align-self: flex-start;
  margin-top: 2px;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: rgba(96,165,250,0.75);
  color: rgba(96,165,250,0.75);
}
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  border-radius: var(--radius-sm);
}
.nav-link:hover { color: var(--text); }

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 20px 80px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(37,99,235,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  max-width: 800px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.2);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent3);
  margin-bottom: 28px;
}
.hero h1 {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -2.5px;
  line-height: 1.08;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 50%, var(--accent3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .subtitle {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Cards row */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 48px;
}

.card {
  background: rgba(12,18,32,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.card:hover {
  border-color: var(--accent);
  box-shadow: var(--glow), 0 8px 32px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent3));
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(96,165,250,.08));
  border: 1px solid rgba(37,99,235,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
.card p { color: var(--muted); font-size: 14px; margin-bottom: 20px; line-height: 1.6; }
.card-input-row { display: flex; gap: 10px; margin-bottom: 16px; }
.code-display {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 6px;
  text-align: center;
  color: var(--accent3);
  margin-bottom: 16px;
}

/* ── Section common ──────────────────────────────── */
.section {
  padding: 80px 20px;
  position: relative;
}
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent3);
  margin-bottom: 12px;
}
.section-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
}
.section-desc {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* ── Features Grid ───────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: rgba(12,18,32,0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
}
.feature-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}
.feature-icon.blue   { background: rgba(37,99,235,.12); color: var(--accent3); }
.feature-icon.green  { background: rgba(16,185,129,.12); color: var(--green); }
.feature-icon.purple { background: rgba(139,92,246,.12); color: #a78bfa; }
.feature-icon.orange { background: rgba(245,158,11,.12); color: var(--yellow); }
.feature-icon.cyan   { background: rgba(6,182,212,.12); color: #22d3ee; }
.feature-icon.red    { background: rgba(239,68,68,.12); color: #f87171; }
.feature-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── How It Works ────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent3), var(--accent));
  opacity: 0.3;
}
.step {
  text-align: center;
  position: relative;
}
.step-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 24px rgba(37,99,235,.3);
  position: relative;
  z-index: 1;
}
.step h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Security Section ────────────────────────────── */
.security-section {
  background: linear-gradient(180deg, transparent 0%, rgba(37,99,235,0.03) 50%, transparent 100%);
}
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.security-card {
  background: rgba(12,18,32,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all 0.3s ease;
}
.security-card:hover {
  border-color: rgba(37,99,235,0.3);
  box-shadow: 0 0 30px rgba(37,99,235,0.08);
}
.security-icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.security-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.security-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Stats Bar ───────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 48px 0;
}
.stat-item {
  text-align: center;
}
.stat-num {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff, var(--accent3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* ── CTA Section ─────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 80px 20px;
}
.cta-box {
  max-width: 640px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(96,165,250,0.04));
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(37,99,235,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.cta-box h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
  position: relative;
}
.cta-box p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 28px;
  position: relative;
}

/* ── Footer ──────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 20px 32px;
  background: var(--surface);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-text {
  font-size: 13px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ── Features strip (old, kept for compat) ───────── */
.features {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.feature { display: flex; align-items: center; gap: 6px; }
.feature svg { opacity: 0.7; }

/* ══════════════════════════════════════════════════════════════
   KAPSAMLI MOBİL UYUM — %100 Responsive
   ══════════════════════════════════════════════════════════════ */

/* Dokunmatik ekran: büyük hedefler, iOS zoom engeli */
@media (hover: none) and (pointer: coarse) {
  .btn       { min-height: 44px; }
  .btn-sm    { min-height: 38px; padding: 8px 14px; }
  .input     { font-size: 16px !important; } /* iOS auto-zoom önle */
  .quality-select { font-size: 16px; }
  .viewer-code-input { font-size: 20px !important; }
}

/* ── Tablo kaydırma kapsayıcısı ────────────────────────────── */
.table-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── 900px altı ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid, .security-grid { grid-template-columns: 1fr 1fr; }
  .steps   { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .steps::before { display: none; }
}

/* ── 768px altı (tablet/büyük telefon) ────────────────────── */
@media (max-width: 768px) {
  /* Navbar */
  .navbar { padding: 0 16px; height: 60px; }
  .nav-links .nav-link { display: none; }   /* Metin linkleri gizle */
  .nav-links { gap: 6px; }

  /* Host / Viewer topbar — sarma düzeni */
  .topbar {
    height: auto;
    min-height: 52px;
    flex-wrap: wrap;
    padding: 6px 10px;
    gap: 6px;
  }
  .topbar-left { flex: 1; min-width: 0; gap: 6px; }
  .topbar-left .logo-text { display: none; }
  .topbar-center {
    order: 10;
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: wrap;
    padding: 2px 0;
  }
  .topbar-right {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: calc(100vw - 64px);
    padding-bottom: 2px;
  }
  .topbar-right::-webkit-scrollbar { display: none; }
  .session-badge { font-size: 14px; letter-spacing: 3px; padding: 5px 10px; }
  .statusbar { font-size: 11px; gap: 10px; padding: 0 10px; }

  /* Viewer araç çubuğu — scrollable */
  .viewer-toolbar {
    left: 8px;
    right: 8px;
    transform: none;
    overflow-x: auto;
    scrollbar-width: none;
    border-radius: 8px;
    padding: 4px 8px;
    gap: 4px;
  }
  .viewer-toolbar::-webkit-scrollbar { display: none; }
}

/* ── 640px altı ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* İndex hero */
  .hero { padding: 90px 16px 48px; }
  .hero h1 { font-size: 30px; letter-spacing: -1.2px; line-height: 1.15; }
  .hero .subtitle { font-size: 15px; margin-bottom: 28px; }
  .hero-badge { font-size: 11px; padding: 5px 12px; }

  /* Grid tek kolon */
  .cards { grid-template-columns: 1fr; }
  .features-grid, .steps, .security-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }

  /* Sections */
  .section { padding: 56px 16px; }
  .section-title { font-size: 26px; letter-spacing: -1px; }
  .section-desc  { font-size: 14px; }
  .section-header { margin-bottom: 36px; }
  .cta-box { padding: 36px 20px; }
  .cta-box h2 { font-size: 22px; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 14px; text-align: center; }
  .footer-links { flex-wrap: wrap; gap: 12px; justify-content: center; }

  /* Toast / file banner tam genişlik */
  #toast-container {
    right: 12px; left: 12px; bottom: 16px;
  }
  .toast { min-width: unset; width: 100%; }
  .file-receive-banner { right: 12px; left: 12px; min-width: unset; }

  /* Modal */
  .modal-box { padding: 20px 16px; border-radius: var(--radius); }
  .modal-actions { flex-direction: column; }
  .modal-actions .btn { width: 100%; }
}

/* ── 480px altı (küçük telefon) ────────────────────────────── */
@media (max-width: 480px) {
  .hero h1 { font-size: 24px; letter-spacing: -0.8px; }
  .hero .subtitle { font-size: 13px; }
  .navbar { height: 56px; }
  /* logo yazısı çok küçük ekranda gizle */
  .logo-text { font-size: 14px; }

  /* Topbar: az yer kaplayan butonlar */
  .btn-sm { padding: 6px 10px; font-size: 12px; }
  .statusbar { display: none; }

  /* Ödeme tablosu — yatay kaydır */
  .pay-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pay-table { min-width: 540px; }
}

/* ══════════════════════════════════════════════════
   HOST PAGE
   ══════════════════════════════════════════════════ */
.host-page, .viewer-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* Top Bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 56px;
  background: rgba(12,18,32,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 12px;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-center { flex: 1; display: flex; justify-content: center; align-items: center; gap: 12px; }
.session-badge {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--accent3);
  cursor: pointer;
  user-select: all;
  transition: all 0.2s;
}
.session-badge:hover { border-color: var(--accent); box-shadow: 0 0 16px rgba(37,99,235,.15); }

/* Preview area */
.preview-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #030508;
}

.screen-preview {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

/* Idle state */
.idle-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--muted);
}
.idle-state .big-icon {
  font-size: 72px;
  opacity: 0.2;
}
.idle-state h2 { font-size: 22px; font-weight: 700; color: var(--text); }
.idle-state p { font-size: 14px; max-width: 360px; text-align: center; line-height: 1.6; }

/* Bottom statusbar */
.statusbar {
  height: 32px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}
.statusbar-item { display: flex; align-items: center; gap: 5px; }
.statusbar-item span { color: var(--text); font-weight: 500; }

/* ══════════════════════════════════════════════════
   VIEWER PAGE — Remote screen
   ══════════════════════════════════════════════════ */
.remote-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #020305;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
}
.remote-wrap.ctrl-active { cursor: none; }

#remoteVideo {
  max-width: 100%;
  max-height: 100%;
  display: block;
  pointer-events: none;
}

/* Remote cursor */
#remoteCursor {
  position: absolute;
  width: 20px; height: 20px;
  pointer-events: none;
  z-index: 100;
  transform: translate(-2px, -2px);
  display: none;
}
#remoteCursor svg { filter: drop-shadow(0 1px 3px rgba(0,0,0,.7)); }

/* Overlay (connecting) */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(3,5,8,0.9);
  backdrop-filter: blur(8px);
  gap: 20px;
  z-index: 50;
}
.overlay h2 { font-size: 22px; font-weight: 700; }
.overlay p  { color: var(--muted); font-size: 14px; }
.overlay.hidden { display: none; }

/* Spinner */
.spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toolbar */
.viewer-toolbar {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(12,18,32,0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 60;
  box-shadow: var(--shadow);
  transition: opacity 0.3s;
}
.viewer-toolbar.auto-hide { opacity: 0; }
.viewer-toolbar:hover { opacity: 1 !important; }
.remote-wrap:hover .viewer-toolbar { opacity: 1; }

/* ── Fullscreen: topbar stays visible ────────────────── */
:fullscreen .topbar,
:-webkit-full-screen .topbar,
:-moz-full-screen .topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
}
:fullscreen .viewer-page,
:-webkit-full-screen .viewer-page,
:-moz-full-screen .viewer-page {
  display: flex;
  flex-direction: column;
}
:fullscreen .remote-wrap,
:-webkit-full-screen .remote-wrap,
:-moz-full-screen .remote-wrap {
  margin-top: 56px;
  height: calc(100vh - 56px - 32px);
}
:fullscreen .statusbar,
:-webkit-full-screen .statusbar,
:-moz-full-screen .statusbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
}

.tb-divider {
  width: 1px; height: 24px;
  background: var(--border);
  margin: 0 4px;
}
.tb-label {
  font-size: 12px;
  color: var(--muted);
  padding: 0 6px;
}

/* Quality selector */
.quality-select {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}

/* Connection info panel */
.info-panel {
  position: absolute;
  bottom: 44px;
  left: 16px;
  background: rgba(12,18,32,0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  min-width: 180px;
  display: none;
}
.info-panel.show { display: block; }
.info-panel strong { color: var(--text); }

/* ── Settings Modal ───────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 420px;
  max-width: 95vw;
  box-shadow: var(--shadow-lg);
}
.modal-box h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.modal-row:last-of-type { border-bottom: none; }
.modal-row label { font-size: 14px; color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* Toggle switch */
.toggle {
  position: relative;
  width: 44px; height: 24px;
}
.toggle input { display: none; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--surface2);
  border-radius: 24px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-slider::after {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--muted);
  transition: 0.2s;
}
.toggle input:checked + .toggle-slider { background: var(--accent); border-color: var(--accent); }
.toggle input:checked + .toggle-slider::after { transform: translateX(20px); background: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ══════════════════════════════════════════════════
   DASHBOARD — UZAK DESTEK BÖLÜMÜ
   ══════════════════════════════════════════════════ */

.btn-green {
  background: linear-gradient(135deg, #059669, var(--green));
  color: #fff;
  box-shadow: 0 4px 20px rgba(16,185,129,.3);
}
.btn-green:hover { box-shadow: 0 4px 28px rgba(16,185,129,.5); transform: translateY(-1px); }

.support-section {
  background: linear-gradient(135deg, rgba(37,99,235,.04) 0%, rgba(16,185,129,.03) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  margin-bottom: 28px;
}
.support-section h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.support-section .sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.support-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.support-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.host-card:hover  { border-color: var(--accent2); }
.viewer-card:hover { border-color: var(--green); }

.sc-icon {
  font-size: 36px;
  line-height: 1;
}
.sc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
  width: fit-content;
}
.sc-badge.blue  { background: rgba(37,99,235,.12);  color: var(--accent3); }
.sc-badge.green { background: rgba(16,185,129,.12); color: var(--green); }

.sc-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.sc-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

.viewer-input-row {
  display: flex;
  gap: 0;
}
.viewer-code-input {
  flex: 1;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  letter-spacing: 8px;
  text-align: center;
  padding: 12px 16px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.viewer-code-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(16,185,129,.15);
}
.viewer-code-input::placeholder { color: var(--border2); letter-spacing: 6px; }

.viewer-status {
  font-size: 13px;
  min-height: 18px;
  margin: 0;
}

/* Responsive: support-grid tek kolon */
@media (max-width: 640px) {
  .support-section { padding: 20px 16px; }
  .support-grid { grid-template-columns: 1fr; }
  .viewer-code-input { font-size: 22px; letter-spacing: 5px; }
}
