* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f1115;
  color: #e8e8ea;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

h1 {
  text-align: center;
  letter-spacing: 2px;
  font-size: 1.4rem;
  margin-bottom: 4px;
  color: #ffffff;
}

.subtitle {
  text-align: center;
  color: #8a8f98;
  margin-top: 0;
  margin-bottom: 24px;
}

/* ---------- Login ---------- */
.login-card {
  background: #1a1d24;
  border: 1px solid #2a2e37;
  border-radius: 16px;
  padding: 32px;
  width: 320px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.login-card label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: #a7acb5;
}

.login-card input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #333842;
  background: #12141a;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 8px;
}

.login-card input:focus {
  outline: none;
  border-color: #4c7cf0;
}

.error-text {
  color: #ff6b6b;
  font-size: 0.8rem;
  min-height: 18px;
  margin-bottom: 8px;
}

.btn-primary {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #4c7cf0;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-primary:hover { background: #3d68d8; }

/* ---------- Radio ---------- */
.radio-card {
  background: #1a1d24;
  border: 1px solid #2a2e37;
  border-radius: 20px;
  padding: 32px;
  width: 360px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.user-row {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  text-align: left;
  gap: 12px;
}

.user-box {
  flex: 1;
  background: #12141a;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid #262a33;
}

.label {
  display: block;
  font-size: 0.72rem;
  color: #8a8f98;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.username-me, .username-other {
  font-weight: 700;
  font-size: 1rem;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: 6px;
}

.status-dot.online { background: #34d17a; }
.status-dot.offline { background: #555b66; }

.status-row {
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.status-text {
  font-weight: 600;
  color: #f0c14b;
}

.ptt-button {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 30% 30%, #3d68d8, #24408f);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 0 0 8px rgba(76,124,240,0.08);
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.ptt-button:disabled {
  background: #333842;
  cursor: not-allowed;
  box-shadow: none;
}

.ptt-button.active {
  background: radial-gradient(circle at 30% 30%, #ff6b6b, #c23b3b);
  transform: scale(0.96);
  box-shadow: 0 0 0 14px rgba(255,107,107,0.15);
}

.speaking-indicator {
  margin-top: 18px;
  min-height: 20px;
  color: #a7acb5;
  font-style: italic;
  font-size: 0.9rem;
}

.btn-secondary {
  margin-top: 24px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid #3a3f4a;
  background: transparent;
  color: #a7acb5;
  cursor: pointer;
  font-size: 0.85rem;
}

.btn-secondary:hover {
  border-color: #ff6b6b;
  color: #ff6b6b;
}
