/* ── Theme B: Void — ultra-minimal, flat, near-monochrome ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d0d;
  --surface: #141414;
  --surface2: #1a1a1a;
  --surface3: #202020;
  --border: #262626;
  --border-hi: #333333;
  --accent: #6366f1;
  --accent-2: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.14);
  --text: #e8e8e8;
  --text-muted: #5a5a5a;
  --success: #34d399;
  --error: #f87171;
  --radius: 8px;
  --radius-sm: 6px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.hero { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.hero-inner { width: 100%; max-width: 400px; text-align: center; }

.logo { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 10px; color: #fff; }

.tagline { color: var(--text-muted); margin-bottom: 32px; font-size: 14px; }

.card {
  background: var(--surface); border: 1px solid var(--border-hi);
  border-radius: var(--radius); padding: 32px; text-align: left;
}
.card h2 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.card .sub { color: var(--text-muted); font-size: 13px; margin-bottom: 24px; }
.sent-icon { font-size: 36px; margin-bottom: 14px; }
.beta-note { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 16px; }

input[type="email"], input[type="text"], select, textarea {
  width: 100%; background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 14px; padding: 10px 13px;
  outline: none; transition: border-color 0.12s, box-shadow 0.12s; font-family: inherit;
}
input[type="email"]:focus, input[type="text"]:focus, select:focus, textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow);
}
select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%235a5a5a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; cursor: pointer;
}
textarea { resize: vertical; }

.btn-primary {
  display: block; width: 100%; background: var(--accent);
  color: #fff; border: none; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  padding: 12px; cursor: pointer; transition: background 0.12s, opacity 0.12s;
  margin-top: 14px; font-family: inherit;
}
.btn-primary:hover { background: #5254cc; }
.btn-primary:active { background: #4345b5; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-generate { margin-top: 24px; font-size: 14px; padding: 13px; }

.btn-copy {
  background: none; border: 1px solid var(--border-hi); border-radius: 5px;
  color: var(--text-muted); font-size: 11px; font-weight: 500; padding: 3px 10px;
  cursor: pointer; transition: color 0.12s, border-color 0.12s; font-family: inherit;
}
.btn-copy:hover { color: var(--text); border-color: #555; }

.btn-copy-sm {
  background: none; border: none; color: var(--accent-2); font-size: 11px; font-weight: 500;
  cursor: pointer; padding: 2px 5px; border-radius: 3px; opacity: 0;
  transition: opacity 0.12s; font-family: inherit;
}
.btn-copy-sm:hover { background: rgba(99,102,241,0.1); }

.btn-logout {
  background: none; border: 1px solid var(--border-hi); border-radius: 5px;
  color: var(--text-muted); font-size: 12px; font-weight: 500; padding: 4px 12px;
  cursor: pointer; transition: border-color 0.12s, color 0.12s; font-family: inherit;
}
.btn-logout:hover { border-color: var(--error); color: var(--error); }

.app-header {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 24px;
  border-bottom: 1px solid var(--border); position: sticky; top: 0;
  background: var(--bg); z-index: 10;
}
.logo-small { font-size: 15px; font-weight: 700; letter-spacing: -0.3px; color: #fff; }
.header-right { display: flex; align-items: center; gap: 10px; }
.user-info { font-size: 12px; color: var(--text-muted); }
.usage-badge {
  background: var(--surface2); border: 1px solid var(--border-hi); border-radius: 20px;
  font-size: 11px; font-weight: 600; padding: 3px 10px; color: var(--text-muted);
}

.app-main { max-width: 680px; margin: 0 auto; padding: 36px 24px 72px; }

.form-card {
  background: var(--surface); border: 1px solid var(--border-hi);
  border-radius: var(--radius); padding: 28px; margin-bottom: 32px;
}
.form-card h2 { font-size: 16px; font-weight: 600; margin-bottom: 24px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 11px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.field .hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }

.results h2 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }

.result-block {
  background: var(--surface); border: 1px solid var(--border-hi);
  border-radius: var(--radius); padding: 20px; margin-bottom: 10px;
}
.result-block:hover { border-color: #404040; }

.result-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.result-header h3 { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.tag-count { font-weight: 500; opacity: 0.6; }
.result-content { font-size: 13px; }

.title-list { list-style: none; padding: 0; }
.title-list li { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; gap: 8px; }
.title-list li:last-child { border-bottom: none; }
.title-list li:hover .btn-copy-sm { opacity: 1; }

.result-textarea { font-size: 12px; line-height: 1.7; background: var(--surface2); border-color: var(--border); color: var(--text); font-family: inherit; }

.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  background: var(--surface2); border: 1px solid var(--border-hi); border-radius: 4px;
  font-size: 12px; font-weight: 500; padding: 3px 10px; color: var(--accent-2);
}

.error-msg {
  background: rgba(248,113,113,0.07); border: 1px solid rgba(248,113,113,0.2);
  border-radius: var(--radius-sm); color: var(--error); font-size: 13px; padding: 10px 14px; margin-bottom: 16px;
}

/* ── Theme switcher ── */
.theme-switcher {
  position: fixed; bottom: 20px; right: 20px; display: flex; align-items: center; gap: 4px;
  background: rgba(0,0,0,0.8); border: 1px solid #333;
  border-radius: 7px; padding: 5px 7px; z-index: 999;
}
.ts-label { font-size: 10px; color: #444; text-transform: uppercase; letter-spacing: 0.08em; margin-right: 4px; font-weight: 600; }
.ts-btn { width: 24px; height: 24px; border: 1px solid transparent; border-radius: 4px; background: none; color: #444; font-size: 11px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all 0.12s; }
.ts-btn:hover { color: #fff; background: #2a2a2a; }
.ts-btn.active { background: #2a2a2a; color: #fff; border-color: #444; }

@media (max-width: 500px) {
  .field-row { grid-template-columns: 1fr; }
  .app-header { flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
  .form-card, .result-block { padding: 16px; }
  .app-main { padding: 20px 14px 56px; }
  .card { padding: 20px; }
}
