/* ── Base ─────────────────────────────────────────────────────────── */
html {
  font-size: 15px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  background: #f4f6f9;
  color: #172033;
  margin-bottom: 60px;
  -webkit-font-smoothing: antialiased;
}

/* ── Focus rings ─────────────────────────────────────────────────── */
.btn:focus,
.btn:active:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.15rem rgba(0, 128, 96, 0.25);
}

/* ── Navbar ──────────────────────────────────────────────────────── */
.navbar {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.navbar-brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #172033 !important;
  gap: 0.55rem;
}

.brand-dot {
  background: #008060;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  height: 10px;
  width: 10px;
}

.footer {
  font-size: 0.8rem;
  padding: 1rem 0;
}

/* ── Card shells ─────────────────────────────────────────────────── */
.hero-panel,
.token-card,
.result-card {
  background: #ffffff;
  border: 1px solid #e2e6ef;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(23, 32, 51, 0.06);
}

/* ── Hero panel ──────────────────────────────────────────────────── */
.hero-panel {
  background:
    radial-gradient(circle at top right, rgba(0, 128, 96, 0.12), transparent 30rem),
    #ffffff;
  margin-bottom: 1.25rem;
  padding: 2rem 2.25rem;
}

.hero-panel h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero-copy {
  color: #5c667a;
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 660px;
  margin-bottom: 0;
}

/* ── Eyebrow label ───────────────────────────────────────────────── */
.eyebrow {
  color: #008060;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

/* ── Token / result card ─────────────────────────────────────────── */
.token-card {
  padding: 1.75rem 2rem;
}

.result-card {
  padding: 2rem 2.25rem;
}

.result-card h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}

.result-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

/* ── Form labels ─────────────────────────────────────────────────── */
.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.35rem;
}

.form-control {
  font-size: 0.9rem;
}

.form-text {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 0.35rem;
}

/* ── Install note ────────────────────────────────────────────────── */
.install-note {
  background: #f8fafc;
  border: 1px solid #e2e6ef;
  border-radius: 14px;
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
}

.install-note h2 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #374151;
}

.install-note ol {
  color: #5c667a;
  font-size: 0.88rem;
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.install-note ol li + li {
  margin-top: 0.3rem;
}

/* ── Form footer ─────────────────────────────────────────────────── */
.form-footer {
  align-items: center;
  border-top: 1px solid #e2e6ef;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ── Copy row (token display) ────────────────────────────────────── */
.copy-row {
  display: flex;
  gap: 0.6rem;
}

.token-output {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.85rem;
}

/* ── Raw response block ──────────────────────────────────────────── */
.raw-response {
  background: #0f172a;
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 0.82rem;
  margin-top: 0.75rem;
  overflow: auto;
  padding: 1rem 1.25rem;
}

/* ── Popup-blocked helper ────────────────────────────────────────── */
.popup-blocked-message {
  display: none;
  font-weight: 700;
}

.install-popup-blocked .popup-blocked-message {
  color: #8a5a00;
  display: block;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero-panel {
    padding: 1.5rem;
  }

  .token-card {
    padding: 1.25rem;
  }

  .form-footer,
  .copy-row {
    align-items: stretch;
    flex-direction: column;
  }
}
