@import url('https://fonts.googleapis.com/css2?family=Shrikhand&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #18171B;
  --card: #232228;
  --off-white: #F6F4F1;
  --mist: #D9D4CF;
  --silver: #B8B8BE;
  --accent: #7CFFB2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--off-white);
  font-family: 'Inter', sans-serif;
  padding: 40px 20px;
}

.wrap { max-width: 720px; margin: 0 auto; }

.logo { height: 64px; margin-bottom: 12px; }

h1 {
  font-family: 'Shrikhand', cursive;
  font-weight: 400;
  font-size: 28px;
  margin: 0 0 24px;
}

h2 { font-size: 16px; margin: 0 0 12px; color: var(--off-white); }

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

label { display: block; font-size: 13px; color: var(--silver); margin-bottom: 6px; }

input[type="text"], input[type="password"], input[type="url"], input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: var(--off-white);
  font-size: 14px;
  margin-bottom: 14px;
  font-family: inherit;
}

button {
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

button.primary { background: var(--accent); color: #18171B; }
button.secondary { background: rgba(255,255,255,0.08); color: var(--off-white); }
button.danger { background: rgba(255,90,90,0.15); color: #ff8a8a; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.client-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  gap: 12px;
}
.client-row:last-child { border-bottom: none; }

.client-info { flex: 1; min-width: 0; }
.client-name { font-weight: 600; font-size: 14px; }
.client-link {
  font-size: 12px;
  color: var(--silver);
  word-break: break-all;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge.connected { background: rgba(124,255,178,0.15); color: var(--accent); }
.badge.disconnected { background: rgba(255,255,255,0.08); color: var(--silver); }
.badge.loading { background: rgba(255,255,255,0.05); color: var(--silver); }
.badge.pending { background: rgba(255,200,80,0.15); color: #ffc850; }

.hint {
  font-size: 12px;
  color: var(--silver);
  margin: 0 0 14px;
}

.pending-row {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pending-row:last-child { border-bottom: none; }
.pending-details {
  font-size: 12px;
  color: var(--silver);
  margin: 4px 0 10px;
  word-break: break-all;
}

.actions { display: flex; gap: 8px; flex-wrap: wrap; }

.error-msg {
  background: rgba(255,90,90,0.12);
  color: #ff8a8a;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}

.success-msg {
  background: rgba(124,255,178,0.12);
  color: var(--accent);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}

.hidden { display: none !important; }

.new-client-link {
  font-size: 13px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 12px;
  word-break: break-all;
  margin-bottom: 12px;
}
