* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro', system-ui, sans-serif;
  background: #0a0a0a;
  color: #e5e5e5;
  min-height: 100dvh;
  padding: 20px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 600px; margin: 0 auto; }

h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.5px; }
h2 { font-size: 17px; font-weight: 600; margin-bottom: 16px; color: #999; }

a { color: #0a84ff; text-decoration: none; }
a:active { opacity: 0.7; }

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 24px;
  gap: 12px;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-status {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-refresh {
  background: #1c2a3a;
  color: #0a84ff;
  border: 1px solid rgba(10, 132, 255, 0.15);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.header-refresh:active { opacity: 0.7; }
.header-refresh:disabled { opacity: 0.3; cursor: not-allowed; }
.refresh-icon { display: inline-flex; align-items: center; justify-content: center; }
.refresh-icon.spinning {
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.header-user {
  font-size: 12px;
  color: #666;
}
.header-logout {
  background: none;
  border: none;
  color: #555;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.header-logout:active { opacity: 0.7; }
.header-settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #555;
  padding: 2px;
  -webkit-tap-highlight-color: transparent;
}
.header-settings:hover { color: #999; }
.header-divider {
  width: 1px;
  height: 14px;
  background: #333;
}

.nav {
  margin-bottom: 20px;
  font-size: 14px;
}

.card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}

.btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { opacity: 0.7; }
.btn:disabled { opacity: 0.3; cursor: not-allowed; }
.btn-primary { background: #0a84ff; color: #fff; }
.btn-secondary { background: transparent; color: #999; border: 1px solid #333; }

.status {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: #666;
  min-height: 20px;
}
.status.success { color: #30d158; }
.status.error { color: #ff453a; }

.timestamp { color: #666; font-size: 13px; margin-bottom: 24px; }

.empty {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}
.empty h1 { margin-bottom: 10px; font-weight: 600; }
.empty p { font-size: 14px; }

.json-block {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 16px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 12px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: #888;
}
.json-key { color: #0a84ff; }
.json-str { color: #30d158; }
.json-num { color: #ff9f0a; }
.json-bool { color: #bf5af2; }
.json-null { color: #555; font-style: italic; }

.section-title {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin: 28px 0 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.fade-in { animation: fadeIn 0.2s ease-out; }
