:root {
  --bg: #0d1117;
  --surface: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-hover: #79b8ff;
  --success: #3fb950;
  --danger: #f85149;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.header h1 {
  margin: 0;
  font-size: 1.5rem;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.balance {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  border-radius: 6px;
  cursor: pointer;
}

.btn-sm:hover {
  background: var(--border);
}

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.tab {
  flex: 1;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
}

.tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

.form .field {
  margin-bottom: 16px;
}

.form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form input[type="text"],
.form input[type="email"],
.form select,
.form textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 1rem;
}

.form textarea {
  min-height: 100px;
  resize: vertical;
}

.radio-group {
  margin-bottom: 8px;
}

.radio-group label {
  display: inline-flex;
  align-items: center;
  margin-right: 16px;
  color: var(--text);
}

.radio-group input {
  margin-right: 6px;
}

.hidden {
  display: none !important;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  margin-top: 8px;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  padding: 10px 16px;
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 6px;
  cursor: pointer;
  margin-top: 8px;
  width: 100%;
}

.btn-secondary:hover {
  background: rgba(88, 166, 255, 0.1);
}

.sub-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
}

.status {
  margin-top: 16px;
  padding: 12px;
  border-radius: 6px;
}

.status.success {
  background: rgba(63, 185, 80, 0.2);
  color: var(--success);
}

.status.error {
  background: rgba(248, 81, 73, 0.2);
  color: var(--danger);
}

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.track-card {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.track-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.track-card .meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.track-card a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.track-card a:hover {
  text-decoration: underline;
}

.loading {
  color: var(--text-muted);
  text-align: center;
}

.empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 20px;
}
