:root {
  --bg: #16171a;
  --panel: #1e2024;
  --panel-raised: #26282d;
  --border: #34363c;
  --text: #e8e6df;
  --text-dim: #8b8d93;
  --amber: #ffb020;
  --amber-dim: #a3701c;
  --cyan: #3ddad7;
  --danger: #ff6b5e;
  --radius: 3px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2 { font-family: var(--font-display); font-weight: 600; margin: 0; }

/* Header */
.panel-header {
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  position: sticky; top: 0; z-index: 10;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.jack-icon {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff2, transparent 60%), var(--amber);
  box-shadow: 0 0 8px 1px rgba(255,176,32,0.55);
  display: inline-block;
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.01em; }
.brand-name .accent { color: var(--amber); }
.brand-tag {
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-dim);
  border-left: 1px solid var(--border); padding-left: 10px; text-transform: uppercase; letter-spacing: 0.06em;
}
.auth-nav { display: flex; align-items: center; gap: 10px; }
.user-label { font-family: var(--font-mono); font-size: 0.8rem; color: var(--cyan); margin-right: 4px; }

/* Buttons */
.btn {
  font-family: var(--font-body); font-weight: 500; font-size: 0.85rem;
  border-radius: var(--radius); border: 1px solid var(--border);
  padding: 9px 16px; cursor: pointer; transition: all 0.15s ease;
  background: transparent; color: var(--text);
}
.btn-ghost:hover { border-color: var(--text-dim); }
.btn-primary { background: var(--amber); border-color: var(--amber); color: #1a1305; font-weight: 600; }
.btn-primary:hover { background: #ffc04d; }
.btn-block { width: 100%; margin-top: 6px; }
.btn-danger-outline {
  border-color: var(--danger); color: var(--danger); background: transparent;
  font-size: 0.72rem; padding: 5px 10px;
}
.btn-danger-outline:hover { background: rgba(255,107,94,0.1); }
.hidden { display: none !important; }

/* Hero */
.hero { padding: 64px 0 40px; border-bottom: 1px solid var(--border); }
.led-row { display: flex; gap: 8px; margin-bottom: 18px; }
.led { width: 8px; height: 8px; border-radius: 50%; opacity: 0.85; }
.led-amber { background: var(--amber); box-shadow: 0 0 6px 1px rgba(255,176,32,0.6); }
.led-cyan { background: var(--cyan); box-shadow: 0 0 6px 1px rgba(61,218,215,0.5); }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.15; max-width: 14ch; }
.hero-sub { color: var(--text-dim); max-width: 52ch; margin-top: 16px; font-size: 0.98rem; }

/* LCD search bar */
.lcd-bar {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin: 32px 0 28px;
  background: #101114;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}
.lcd-input, .lcd-select {
  font-family: var(--font-mono); font-size: 0.85rem;
  background: var(--panel); color: var(--cyan);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 9px 12px;
}
.lcd-input { flex: 1; min-width: 200px; }
.lcd-input::placeholder { color: #4d6e6d; }
.lcd-input:focus, .lcd-select:focus { outline: 2px solid var(--amber-dim); outline-offset: 1px; }

/* Bank grid */
.banks-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px; padding-bottom: 60px;
}
.bank-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; position: relative; display: flex; flex-direction: column; gap: 10px;
}
.bank-card::before {
  content: ""; position: absolute; top: 16px; right: 16px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--border);
}
.bank-card:hover::before { background: var(--cyan); box-shadow: 0 0 5px 1px rgba(61,218,215,0.5); }
.bank-title { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; padding-right: 16px; }
.bank-desc { color: var(--text-dim); font-size: 0.85rem; flex: 1; }
.bank-meta {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.tag-pill {
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--amber);
  border: 1px solid var(--amber-dim); border-radius: 20px; padding: 2px 8px;
}
.bank-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.download-link {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--cyan);
  text-decoration: none; border: 1px solid var(--cyan); border-radius: var(--radius);
  padding: 7px 12px; transition: background 0.15s ease;
}
.download-link:hover { background: rgba(61,218,215,0.1); }

.empty-state { color: var(--text-dim); padding: 60px 0; text-align: center; font-family: var(--font-mono); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; color: var(--text-dim); font-size: 0.8rem; font-family: var(--font-mono); }

/* Modals */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(8,9,10,0.72);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal {
  background: var(--panel-raised); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; width: 100%; max-width: 420px; position: relative;
}
.modal-close {
  position: absolute; top: 14px; right: 14px; background: none; border: none;
  color: var(--text-dim); font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.modal h2 { margin-bottom: 18px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.82rem; color: var(--text-dim); font-family: var(--font-mono); }
.form input, .form textarea {
  font-family: var(--font-body); font-size: 0.9rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 12px; resize: vertical;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--amber-dim); outline-offset: 1px; }
.form-hint { font-size: 0.72rem; color: var(--text-dim); margin: -6px 0 0; }
.form-error { color: var(--danger); font-size: 0.82rem; margin: 0; }

@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 10px; }
  .brand-tag { display: none; }
}
