:root {
  --bg: #080c14;
  --panel: #0e131d;
  --panel-2: #141b28;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(56, 189, 248, 0.55);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-hover: #7dd3fc;
  --accent-fg: #041019;
  --input: #090d15;
}

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

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background-image:
    radial-gradient(680px 380px at 50% -8%, rgba(56, 189, 248, 0.12), transparent 68%),
    radial-gradient(520px 320px at 85% 95%, rgba(96, 165, 250, 0.08), transparent 65%);
}

.hf-gate-wrap {
  width: 100%;
  max-width: 450px;
}

.hf-gate-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
}

.hf-gate-banner {
  position: relative;
  height: 128px;
  background: #0e131d url("/portal/static/hf-hero-dark.jpg") right center / cover no-repeat;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  padding: 16px 24px;
}

.hf-gate-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 19, 29, 0.96) 0%, rgba(14, 19, 29, 0.72) 54%, rgba(14, 19, 29, 0.15) 100%);
}

.hf-gate-top {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hf-gate-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
}

.hf-gate-gem {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.hf-gate-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #34d399;
  font-size: 11px;
  font-weight: 700;
}

.hf-gate-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.hf-gate-body {
  padding: 24px 26px 22px;
}

.hf-gate-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hf-gate-desc {
  margin: 0 0 20px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

.hf-gate-lbl {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hf-gate-input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--input);
  color: var(--text);
  font-family: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hf-gate-input:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.hf-gate-btn {
  margin-top: 14px;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-radius: 11px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.hf-gate-btn:hover { background: var(--accent-hover); }
.hf-gate-btn:active { transform: translateY(1px); }

.hf-gate-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.hf-gate-links {
  display: inline-flex;
  gap: 6px;
}

.hf-gate-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
}

.hf-gate-links a.active,
.hf-gate-links a:hover {
  color: var(--text);
  border-color: var(--border);
  background: var(--panel-2);
}
