:root {
  --ic-gold: #f0a500;
  --ic-gold-dark: #c98700;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

/* ── Brand colours ─────────────────────────────────── */
.navbar-brand .bi { color: var(--ic-gold); }
.text-warning     { color: var(--ic-gold) !important; }

.btn-warning {
  background-color: var(--ic-gold);
  border-color: var(--ic-gold-dark);
  color: #000;
  font-weight: 600;
}
.btn-warning:hover {
  background-color: var(--ic-gold-dark);
  border-color: var(--ic-gold-dark);
  color: #000;
}

/* ── Stat cards ────────────────────────────────────── */
.stat-card {
  border-left: 4px solid var(--ic-gold);
  transition: transform 0.15s ease;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-card .stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ic-gold);
}

/* ── Tables ────────────────────────────────────────── */
.table > :not(caption) > * > * { vertical-align: middle; }
.device-badge { font-size: 1.1rem; }

.client-row:hover td {
  background: rgba(240, 165, 0, 0.05);
}

/* ── Session / link boxes ──────────────────────────── */
.session-link-box {
  background: #1a1a2e;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 1rem;
  font-family: monospace;
  word-break: break-all;
}

.peer-id-display {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ic-gold);
  font-family: monospace;
}

/* ── Download / config cards ───────────────────────── */
.download-card {
  max-width: 560px;
  margin: 0 auto;
}

.download-steps { counter-reset: step; }
.download-steps li {
  counter-increment: step;
  list-style: none;
  padding: 0.5rem 0 0.5rem 2.5rem;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.download-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0.5rem;
  width: 1.6rem; height: 1.6rem;
  background: var(--ic-gold);
  color: #000;
  border-radius: 50%;
  font-size: 0.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ── Pin login ─────────────────────────────────────── */
.pin-login {
  max-width: 380px;
  margin: 80px auto;
}
.pin-input {
  letter-spacing: 0.4em;
  text-align: center;
  font-size: 1.4rem;
}

/* ── Landing hero ──────────────────────────────────── */
.hero { padding: 72px 0 52px; }
.hero-icon {
  font-size: 5rem;
  color: var(--ic-gold);
  filter: drop-shadow(0 0 28px rgba(240,165,0,0.4));
}
.action-card {
  border: 1px solid #3a3a3a;
  border-radius: 14px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.action-card:hover {
  transform: translateY(-4px);
  border-color: var(--ic-gold);
  box-shadow: 0 8px 32px rgba(240,165,0,0.15);
}
.action-card .card-icon { font-size: 2.8rem; margin-bottom: 0.9rem; }
.divider-or {
  display: flex; align-items: center; gap: 12px;
  color: #555; font-size: 0.82rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.divider-or::before, .divider-or::after {
  content: ''; flex: 1; height: 1px; background: #2e2e2e;
}

/* ── RustDesk status page ──────────────────────────── */
.rd-status-icon { font-size: 4rem; }
.rd-connect-btn {
  font-size: 1.1rem;
  padding: 0.75rem 2.5rem;
}
