:root {
  --bg: #0f1220;
  --card: #171b2e;
  --card-2: #202643;
  --text: #f5f7ff;
  --muted: #aab3d1;
  --accent: #4d7cff;
  --accent-2: #6d8eff;
  --danger: #ff6b6b;
  --success: #37c978;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(77, 124, 255, 0.22), transparent 35%),
    radial-gradient(circle at top right, rgba(109, 142, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #0f1220 0%, #0b0e19 100%);
  color: var(--text);
  min-height: 100vh;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.app-card {
  width: 100%;
  max-width: 760px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  backdrop-filter: blur(14px);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.brand-badge {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 10px 26px rgba(77, 124, 255, 0.35);
}

.title {
  margin: 0;
  font-size: 28px;
}

.subtitle {
  margin: 6px 0 0;
  color: var(--muted);
}

.state-box {
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.5;
}

.state-box.loading {
  color: var(--muted);
}

.state-box.error {
  background: rgba(255, 107, 107, 0.08);
  border-color: rgba(255, 107, 107, 0.2);
  color: #ffd7d7;
}

.state-box.success {
  background: rgba(55, 201, 120, 0.08);
  border-color: rgba(55, 201, 120, 0.2);
  color: #dfffea;
}

.content.hidden {
  display: none;
}

.panel {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}

.panel-title {
  margin: 0 0 14px;
  font-size: 20px;
}

.kv {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px 14px;
}

.kv-key {
  color: var(--muted);
}

.kv-value {
  word-break: break-word;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(77, 124, 255, 0.15);
  color: #dce6ff;
  font-size: 13px;
}

.note {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .kv {
    grid-template-columns: 1fr;
  }
}