*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Dark theme (default) */
.theme-dark,
:root {
  --bg: #06060a;
  --bg-elevated: #0c0c12;
  --surface: #12121a;
  --surface-hover: #1a1a26;
  --border: #2a2a38;
  --border-focus: #3d3d50;
  --text: #f0f0f5;
  --text-muted: #9898a8;
  --text-faded: #6a6a78;
  --accent: #8b7cf8;
  --accent-hover: #a394ff;
  --accent-subtle: rgba(139, 124, 248, 0.15);
  --success: #22c997;
  --error: #f87171;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --bar-bg: rgba(12, 12, 18, 0.85);
  --hero-glow: rgba(139, 124, 248, 0.12);
  --drainer-bg: rgba(18, 18, 26, 0.95);
  --drainer-border: 1px solid rgba(255, 255, 255, 0.08);
  --drainer-text: #f0f0f5;
}

.theme-light {
  --bg: #f8f8fc;
  --bg-elevated: #fff;
  --surface: #fff;
  --surface-hover: #f0f0f8;
  --border: #e4e4ec;
  --border-focus: #c8c8d8;
  --text: #18181f;
  --text-muted: #58586a;
  --text-faded: #9090a0;
  --accent: #6d5cf5;
  --accent-hover: #5b4ae0;
  --accent-subtle: rgba(109, 92, 245, 0.12);
  --success: #0d9b6b;
  --error: #dc2626;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --bar-bg: rgba(255, 255, 255, 0.9);
  --hero-glow: rgba(109, 92, 245, 0.08);
  --drainer-bg: rgba(255, 255, 255, 0.95);
  --drainer-border: 1px solid rgba(0, 0, 0, 0.08);
  --drainer-text: #18181f;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

body > main {
  flex: 1;
}

/* Stats bar */
.stats-bar {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0.6rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stats-text {
  font-weight: 500;
}

/* Noise overlay */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Bar */
.bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
}

.bar-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bar-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}

.bar-logo:hover {
  color: var(--accent);
}

.bar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.bar-link {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--drainer-text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: var(--drainer-border);
  background: var(--drainer-bg);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.bar-link:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

.bar-link-cta {
  color: var(--accent);
}

.bar-link-cta:hover {
  color: var(--accent-hover);
  background: var(--accent-subtle);
  border-color: var(--accent);
}

.bar-theme {
  width: 36px;
  height: 36px;
  border: var(--drainer-border);
  border-radius: var(--radius-sm);
  background: var(--drainer-bg);
  cursor: pointer;
  margin-left: 0.25rem;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}

.bar-theme:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

.bar-theme::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-muted);
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

.theme-light .bar-theme::before {
  background: var(--accent);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.bar-mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: var(--drainer-border);
  border-radius: var(--radius-sm);
  background: var(--drainer-bg);
  cursor: pointer;
  position: relative;
}

.bar-mobile-toggle::before,
.bar-mobile-toggle::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s;
}

.bar-mobile-toggle::before { top: 14px; }
.bar-mobile-toggle::after { bottom: 14px; }

.bar-dropdown {
  display: none;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bar-bg);
}

.bar-dropdown a {
  display: block;
  padding: 0.6rem 0;
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: none;
}

.bar-dropdown a:hover {
  color: var(--accent);
}

.bar-dropdown button {
  display: block;
  width: 100%;
  padding: 0.6rem 0;
  font-size: 1rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.bar-dropdown button:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .bar-nav { display: none; }
  .bar-theme { display: none; }
  .bar-mobile-toggle { display: block; }
  .bar-dropdown { display: block; }
  .bar-dropdown[hidden] { display: none; }
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 5rem 1.5rem 5.5rem;
  max-width: 44rem;
  margin: 0 auto;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse 80% 60% at 50% -30%, var(--hero-glow), transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 50%, rgba(139, 124, 248, 0.06), transparent 45%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(34, 201, 151, 0.04), transparent 45%);
  pointer-events: none;
  animation: hero-bg-pulse 8s ease-in-out infinite;
}

@keyframes hero-bg-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.02); }
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 80%;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, var(--hero-glow), transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
  padding: 0.4rem 1rem;
  background: var(--accent-subtle);
  border-radius: 999px;
  border: 1px solid rgba(139, 124, 248, 0.25);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  color: var(--text);
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

.hero-desc a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.hero-desc a:hover {
  text-decoration: underline;
}

.hero-hint {
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  color: var(--text-faded);
}

.hero-hint kbd {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: var(--text);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.theme-dark .card {
  background: rgba(18, 18, 26, 0.7);
  backdrop-filter: blur(12px);
}

.card:hover {
  border-color: var(--border-focus);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.theme-light .card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

/* Check form */
.check-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.lookup-btn {
  flex-shrink: 0;
  min-width: 7rem;
  padding: 0.9rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  background: var(--drainer-bg);
  border: var(--drainer-border);
  color: var(--drainer-text);
}

.lookup-btn:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.lookup-btn:active {
  transform: translateY(0);
}

.check-input {
  flex: 1;
  min-width: 200px;
  padding: 0.9rem 1.1rem;
  font: inherit;
  font-size: 0.95rem;
  font-family: var(--font-mono);
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.check-input:hover {
  border-color: var(--border-focus);
}

.check-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.check-input::placeholder {
  color: var(--text-faded);
}

.check-input.check-input-error {
  border-color: var(--error);
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.2);
}

.input-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.input-actions .btn {
  background: var(--drainer-bg);
  border: var(--drainer-border);
  color: var(--drainer-text);
}

.input-actions .btn:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

.batch-actions .btn {
  background: var(--drainer-bg);
  border: var(--drainer-border);
  color: var(--drainer-text);
}

.batch-actions .btn:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Drainer style – all buttons */
.interact-button {
  font: inherit;
  cursor: pointer;
  background: var(--drainer-bg);
  color: var(--drainer-text);
  border: var(--drainer-border);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
}

.interact-button:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

.interact-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-subtle);
}

.btn {
  padding: 0.5rem 1rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: var(--drainer-border);
  background: var(--drainer-bg);
  color: var(--drainer-text);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-subtle);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.9rem 1.5rem;
  border-color: transparent;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  border-color: transparent;
}

.btn-secondary {
  background: var(--drainer-bg);
  color: var(--text);
  border: var(--drainer-border);
}

.btn-secondary:hover {
  background: var(--border-focus);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-ghost {
  background: var(--drainer-bg);
  color: var(--text-muted);
  border: var(--drainer-border);
}

.btn-ghost:hover {
  color: var(--accent);
  background: var(--accent-subtle);
  border-color: var(--accent);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

.check-message {
  margin: 0;
  font-size: 0.9rem;
  min-height: 1.3em;
}

.check-message-error {
  color: var(--error);
}

.check-message-success {
  color: var(--success);
}

.quick-links {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.quick-links-label {
  font-size: 0.85rem;
  color: var(--text-faded);
}

.quick-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.quick-link:hover {
  text-decoration: underline;
}

/* Result (on-page lookup) */
.result-wrap {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.result-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.result-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: result-spin 0.7s linear infinite;
}

@keyframes result-spin {
  to { transform: rotate(360deg); }
}

.result-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-top: 0.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.theme-light .result-card {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.result-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.result-header-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.result-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.result-risk-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.result-risk-badge.risk-low {
  background: rgba(34, 201, 151, 0.2);
  color: var(--success);
}

.result-risk-badge.risk-medium {
  background: rgba(234, 179, 8, 0.2);
  color: #eab308;
}

.theme-light .result-risk-badge.risk-medium {
  color: #ca8a04;
}

.result-risk-badge.risk-high {
  background: rgba(248, 113, 113, 0.2);
  color: var(--error);
}

.result-mint {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.result-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.95rem;
}

.result-label {
  color: var(--text-muted);
  flex-shrink: 0;
}

.result-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text);
  text-align: right;
  word-break: break-all;
}

.result-value.result-good {
  color: var(--success);
  font-weight: 500;
}

.result-value.result-bad {
  color: var(--error);
  font-weight: 500;
}

.result-value.result-warn {
  color: #eab308;
  font-weight: 500;
}

.theme-light .result-value.result-warn {
  color: #ca8a04;
}

.result-risks {
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: var(--radius-sm);
}

.theme-light .result-risks {
  background: rgba(220, 38, 38, 0.06);
  border-color: rgba(220, 38, 38, 0.2);
}

.result-risks-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--error);
  margin: 0 0 0.5rem;
}

.result-risks-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.result-risk-bad {
  color: var(--error);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.result-actions .btn {
  text-decoration: none;
}

.result-error {
  margin-top: 0.5rem;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--error);
  background: rgba(248, 113, 113, 0.1);
  border-radius: var(--radius-sm);
}

.theme-light .result-error {
  background: rgba(220, 38, 38, 0.08);
}

.bar-settings {
  background: var(--drainer-bg);
  border: var(--drainer-border);
  cursor: pointer;
  font: inherit;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 28rem;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.modal-close {
  width: 36px;
  height: 36px;
  border: var(--drainer-border);
  background: var(--drainer-bg);
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.modal-close:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

.modal-body {
  padding: 1.5rem;
}

.modal-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.modal-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.modal-hint a {
  color: var(--accent);
  text-decoration: none;
}

.modal-hint a:hover {
  text-decoration: underline;
}

.modal-body .check-input {
  width: 100%;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}

/* Batch */
.batch-input {
  width: 100%;
  padding: 1rem;
  font: inherit;
  font-size: 0.9rem;
  font-family: var(--font-mono);
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  resize: vertical;
  min-height: 100px;
  margin-bottom: 1rem;
}

.batch-input:focus {
  outline: none;
  border-color: var(--accent);
}

.batch-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.batch-count {
  font-size: 0.85rem;
  color: var(--text-faded);
}

/* Recent */
.recent-section {
  margin-top: 2rem;
}

.recent-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.recent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.recent-chip {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--drainer-bg);
  border: var(--drainer-border);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.recent-chip:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-subtle);
}

/* History */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  color: var(--text);
  background: var(--drainer-bg);
  border: var(--drainer-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.history-item:hover {
  border-color: var(--accent);
  background: var(--accent-subtle);
}

.history-mint {
  font-family: var(--font-mono);
}

.history-time {
  font-size: 0.8rem;
  color: var(--text-faded);
}

.history-empty {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-faded);
}

/* Watchlist */
.watchlist-actions {
  margin-bottom: 1rem;
}

.watchlist-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.watchlist-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.watchlist-lookup {
  flex: 1;
  padding: 0.6rem 1rem;
  font: inherit;
  font-size: 0.9rem;
  font-family: var(--font-mono);
  text-align: left;
  color: var(--accent);
  background: var(--drainer-bg);
  border: var(--drainer-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.watchlist-lookup:hover {
  border-color: var(--accent);
  background: var(--accent-subtle);
}

.watchlist-remove {
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-muted);
  background: var(--drainer-bg);
  border: var(--drainer-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.watchlist-remove:hover {
  color: var(--error);
  background: rgba(248, 113, 113, 0.1);
}

.watchlist-empty {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-faded);
}

/* Features */
.features-section {
  padding-bottom: 3rem;
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, background 0.2s;
}

.feature-item:hover {
  border-color: var(--border-focus);
  background: var(--surface-hover);
}

.feature-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Link cards */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.link-card {
  display: block;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.link-card:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.link-card-title {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.link-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.link-card:hover .link-card-title {
  color: var(--accent);
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.footer-logo:hover {
  color: var(--accent);
}

.footer-tagline {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-tagline a {
  color: var(--accent);
  text-decoration: none;
}

.footer-tagline a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin: 1rem 0 0;
  padding-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-faded);
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 3rem 1.25rem 3.5rem;
  }
  .section {
    padding: 0 1.25rem 2.5rem;
  }
  .card {
    padding: 1.5rem;
  }
  .input-row {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-primary {
    width: 100%;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .link-grid {
    grid-template-columns: 1fr;
  }
}
