:root {
  --bg: #0b0d11;
  --card: #11141a;
  --muted: #9ca3af;
  --text: #e5e7eb;
  --accent: #7c3aed;
  --accent-2: #3b82f6;
  --border: #1f2937;
  --pill: #1f2430;
  --danger: #ef4444;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 10% 20%, rgba(124,58,237,0.08), transparent 30%), radial-gradient(circle at 80% 20%, rgba(59,130,246,0.08), transparent 25%), var(--bg);
  color: var(--text);
}

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

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  background: rgba(11,13,17,0.75);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.content {
  width: min(1100px, 92vw);
  margin: 24px auto 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.auth-card h1 { margin: 0 0 10px; }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tab {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--pill);
  color: var(--text);
  cursor: pointer;
}
.tab.active { border-color: var(--accent); color: white; background: rgba(124,58,237,0.15); }

.form { display: none; flex-direction: column; gap: 10px; }
.form.active { display: flex; }
label { font-size: 14px; color: var(--muted); }
input {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0e1219;
  color: var(--text);
}

button {
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
  color: white;
}
.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.ghost-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.ghost { color: white; border: 1px solid var(--accent); background: transparent; }

.muted { color: var(--muted); }
.small { font-size: 12px; }
.hidden { display: none !important; }
.status { margin-top: 8px; color: var(--muted); font-size: 13px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filters { display: flex; gap: 8px; }

.list { display: flex; flex-direction: column; gap: 12px; }
.item {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #0f131a;
  cursor: pointer;
  transition: transform 0.15s ease, border 0.15s ease;
}
.item:hover { transform: translateY(-2px); border-color: var(--accent); }
.item h3 { margin: 0 0 4px; }
.item .meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--pill);
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--text);
  margin: 8px 0;
}

.summary-text { white-space: pre-wrap; line-height: 1.6; color: var(--text); }
.audio-block {
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}
.audio-block audio { width: 100%; }
.audio-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.link { color: var(--accent-2); text-decoration: none; }
.link:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .content { width: 94vw; }
  .topbar { padding: 14px 16px; }
  .user-info { gap: 8px; }
  button { width: 100%; }
  .filters, .audio-actions { width: 100%; }
  .section-head { align-items: flex-start; }
}
