/* ForgeGuard Client Portal — industrial dark design system
   Shares tokens with forgeguard.com.br/styles.css */

:root {
  --bg: oklch(0.16 0.008 50);
  --bg-elev: oklch(0.19 0.01 50);
  --bg-card: oklch(0.21 0.012 50);
  --bg-card-hover: oklch(0.23 0.014 50);
  --line: oklch(0.28 0.012 50);
  --line-strong: oklch(0.38 0.014 50);
  --fg: oklch(0.96 0.006 80);
  --fg-dim: oklch(0.72 0.012 60);
  --fg-muted: oklch(0.55 0.014 60);
  --ember: oklch(0.72 0.18 45);
  --ember-deep: oklch(0.58 0.19 38);
  --ember-soft: oklch(0.72 0.18 45 / 0.12);
  --steel: oklch(0.62 0.02 230);
  --good: oklch(0.78 0.14 150);
  --good-soft: oklch(0.78 0.14 150 / 0.1);
  --warn: oklch(0.78 0.15 75);
  --warn-soft: oklch(0.78 0.15 75 / 0.1);
  --danger: oklch(0.65 0.2 25);
  --danger-soft: oklch(0.65 0.2 25 / 0.1);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  --r: 4px;
  --r-lg: 8px;
  --r-xl: 12px;

  --shadow-card: 0 1px 0 0 oklch(1 0 0 / 0.03) inset, 0 0 0 1px var(--line);
  --shadow-card-hover: 0 1px 0 0 oklch(1 0 0 / 0.04) inset, 0 0 0 1px var(--line-strong), 0 8px 32px oklch(0 0 0 / 0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input { font: inherit; color: inherit; }

/* ---------- utilities ---------- */

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.mono { font-family: var(--mono); font-feature-settings: "ss01","zero"; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--ember);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
  box-shadow: 0 0 12px var(--ember);
}

/* ---------- logo ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.logo-large { font-size: 28px; }
.logo .amp { color: var(--fg-muted); font-style: italic; font-family: var(--sans); font-size: 14px; }
.logo-text { white-space: nowrap; }
.nav-portal-tag { color: var(--fg-muted); font-size: 12px; letter-spacing: 0.1em; }

.logo-mark {
  width: 22px; height: 22px;
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.logo-mark::before {
  content: "";
  position: absolute; inset: 0;
  border: 1.5px solid var(--fg);
  transform: rotate(45deg);
}
.logo-mark::after {
  content: "";
  width: 8px; height: 8px;
  background: var(--ember);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--ember);
  position: relative; z-index: 1;
}
.logo-large .logo-mark { width: 28px; height: 28px; }
.logo-large .logo-mark::after { width: 10px; height: 10px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--ember);
  color: oklch(0.14 0.01 50);
  font-weight: 600;
}
.btn-primary:hover {
  background: oklch(0.78 0.18 45);
  box-shadow: 0 0 0 3px var(--ember-soft);
}
.btn-ghost {
  color: var(--fg);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--fg-dim);
  background: var(--bg-elev);
}

.btn-arrow::after {
  content: "→";
  transition: transform 0.2s;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ---------- alerts ---------- */

.alert {
  margin: 24px 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elev);
}
.alert::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.alert-error { color: var(--danger); border-color: oklch(0.5 0.2 25); background: var(--danger-soft); }
.alert-error::before { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
.alert-success { color: var(--good); border-color: oklch(0.4 0.1 150); background: var(--good-soft); }
.alert-success::before { background: var(--good); box-shadow: 0 0 10px var(--good); }
.alert-info { color: var(--steel); border-color: var(--line-strong); }
.alert-info::before { background: var(--steel); }

/* ==========================================================================
   LOGIN PAGE
   ========================================================================== */

.login-shell {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 40px 0;
  overflow: hidden;
}
.login-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
  opacity: 0.3;
  pointer-events: none;
}
.login-ember {
  position: absolute;
  top: -15%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--ember) 0%, transparent 60%);
  opacity: 0.12;
  pointer-events: none;
}
.login-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 100px;
  align-items: center;
  width: 100%;
  max-width: 1160px;
}

.login-brand {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.login-brand .logo { margin-bottom: 8px; }
.login-headline {
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.login-headline em {
  font-style: italic;
  color: var(--ember);
}
.login-sub {
  font-size: 17px;
  color: var(--fg-dim);
  max-width: 48ch;
  line-height: 1.55;
}
.login-hooks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
}
.login-hooks li { display: flex; align-items: center; gap: 10px; text-transform: uppercase; }
.hook-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ember); flex-shrink: 0; }

.login-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.login-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 40px;
  box-shadow: 0 20px 60px oklch(0 0 0 / 0.4);
  position: relative;
}
.login-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--r-xl);
  padding: 1px;
  background: linear-gradient(180deg, var(--line-strong), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.login-card-head {
  margin-bottom: 28px;
}
.login-card-head h2 {
  font-size: 36px;
  margin-top: 10px;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login-help {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.login-help a { color: var(--fg); border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; }
.login-help a:hover { border-color: var(--ember); color: var(--ember); }
.login-legal {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

/* ---------- form fields ---------- */

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
}
.form-field input {
  height: 46px;
  padding: 0 16px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  color: var(--fg);
  font-size: 15px;
  transition: all 0.15s;
  font-family: var(--sans);
}
.form-field input::placeholder { color: var(--fg-muted); }
.form-field input:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 3px var(--ember-soft);
}
.form-field input:hover:not(:focus) { border-color: var(--fg-muted); }

/* ==========================================================================
   PORTAL (logged-in area)
   ========================================================================== */

.portal-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: oklch(0.16 0.008 50 / 0.82);
  border-bottom: 1px solid var(--line);
}
.portal-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 32px;
}
.portal-nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  margin-left: auto;
  margin-right: 28px;
}
.portal-nav-links a {
  color: var(--fg-dim);
  transition: color 0.15s;
  position: relative;
  padding: 20px 0;
}
.portal-nav-links a:hover { color: var(--fg); }
.portal-nav-links a.active { color: var(--fg); }
.portal-nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--ember);
}

.portal-nav-user {
  display: flex;
  align-items: center;
  gap: 16px;
}
.portal-nav-ident {
  font-size: 12px;
  color: var(--fg-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-elev);
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.logout-form { display: inline; }

/* ---------- status dots ---------- */

.status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--fg-muted);
  flex-shrink: 0;
}
.status-dot--live, .status-dot--ok {
  background: var(--good);
  box-shadow: 0 0 8px var(--good);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* ---------- page hero ---------- */

.portal-main { min-height: calc(100vh - 64px); }

.page-hero {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -30%; right: -15%;
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--ember) 0%, transparent 65%);
  opacity: 0.08;
  pointer-events: none;
}
.page-hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: end;
  position: relative;
}
.page-hero-inner--service { grid-template-columns: 1.5fr 1fr; }
.page-title {
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-top: 20px;
}
.page-title em { font-style: italic; color: var(--ember); }
.page-lead {
  font-size: 17px;
  color: var(--fg-dim);
  line-height: 1.55;
  max-width: 52ch;
  margin-top: 24px;
}
.service-title {
  font-size: clamp(48px, 6vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-top: 16px;
  word-break: break-word;
}

.back-link {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color 0.15s;
  margin-bottom: 32px;
}
.back-link:hover { color: var(--ember); }

/* ---------- status banner ---------- */

.status-banner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  align-self: stretch;
  justify-self: end;
  max-width: 420px;
}
.status-banner-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.status-banner-label::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
}
.status-banner p {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.5;
}
.status-banner--ok .status-banner-label { color: var(--good); }
.status-banner--ok .status-banner-label::before { background: var(--good); box-shadow: 0 0 8px var(--good); }
.status-banner--warning .status-banner-label { color: var(--warn); }
.status-banner--warning .status-banner-label::before { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.status-banner--error .status-banner-label { color: var(--danger); }
.status-banner--error .status-banner-label::before { background: var(--danger); box-shadow: 0 0 8px var(--danger); }

/* ---------- numbers strip ---------- */

.section-stats { padding: 48px 0 0; }
.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.number-cell {
  background: var(--bg);
  padding: 28px 32px;
}
.number-cell .big {
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.number-cell .big em { color: var(--ember); font-style: normal; }
.number-cell .label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  margin-top: 14px;
}

/* ---------- section ---------- */

.section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.section--centered { display: grid; place-items: center; min-height: 60vh; }
.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 56px;
  align-items: end;
}
.section-header h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-top: 10px;
  max-width: 14ch;
}
.section-header .lead {
  font-size: 16px;
  color: var(--fg-dim);
  line-height: 1.55;
  max-width: 52ch;
}

.two-col {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}

/* ---------- service cards ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: all 0.2s ease;
  color: var(--fg);
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px oklch(0 0 0 / 0.25);
}
.service-card::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle at top right, var(--ember) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.service-card:hover::after { opacity: 0.08; }
.service-card--error { border-color: oklch(0.45 0.18 25 / 0.4); }
.service-card--warning { border-color: oklch(0.5 0.15 75 / 0.4); }

.service-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.service-card-num {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.14em;
}

.service-card-domain {
  font-size: 28px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-top: 12px;
  word-break: break-word;
}
.service-card-plan {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

.service-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  padding: 20px 0;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.service-card-grid dt {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.service-card-grid dd {
  font-size: 14px;
  color: var(--fg);
  margin-top: 4px;
}

.service-card-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.15s;
}
.service-card:hover .service-card-foot { color: var(--ember); }

/* ---------- status pill ---------- */

.service-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  background: var(--bg);
}
.service-status-large {
  font-size: 11px;
  padding: 7px 14px;
}
.service-status--ok { color: var(--good); border-color: oklch(0.4 0.08 150); }
.service-status--ok .status-dot { background: var(--good); box-shadow: 0 0 8px var(--good); }
.service-status--warning { color: var(--warn); border-color: oklch(0.5 0.14 75); }
.service-status--warning .status-dot { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.service-status--error { color: var(--danger); border-color: oklch(0.5 0.2 25); }
.service-status--error .status-dot { background: var(--danger); box-shadow: 0 0 8px var(--danger); }
.service-status--unknown .status-dot { background: var(--fg-muted); }

/* ---------- service actions ---------- */

.service-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.service-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 8px;
}
.hero-meta-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  align-items: center;
}
.hero-meta-item:first-child { border-top: none; padding-top: 0; }
.hero-meta-item .label {
  font-family: var(--mono);
  color: var(--fg-muted);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.14em;
}
.hero-meta-item .value { color: var(--fg-dim); line-height: 1.5; }
.hero-meta-item .value strong { color: var(--fg); font-weight: 500; }

/* ---------- hook grid (stats) ---------- */

.hook-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.hook-cell {
  background: var(--bg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
}
.hook-num {
  font-size: 11px;
  color: var(--ember);
  letter-spacing: 0.14em;
}
.hook-cell h4 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.hook-cell p {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.55;
  margin-top: auto;
}
.hook-cell p strong { color: var(--fg); font-weight: 500; }

/* ---------- spec panel ---------- */

.spec-panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  padding: 8px 32px;
}
.spec-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  align-items: center;
}
.spec-row:last-child { border-bottom: none; }
.spec-row .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.spec-row .v { color: var(--fg-dim); line-height: 1.5; word-break: break-word; }
.spec-row .v strong { color: var(--fg); font-weight: 500; }
.spec-note {
  margin-top: 20px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ---------- form panel (conta) ---------- */

.form-panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  padding: 32px;
}
.stacked-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.stacked-form .btn { margin-top: 12px; width: fit-content; }

/* ---------- empty state ---------- */

.empty-state {
  text-align: center;
  padding: 96px 32px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
}
.empty-state h3 {
  font-size: 32px;
  margin-top: 12px;
}
.empty-state p {
  color: var(--fg-dim);
  max-width: 44ch;
  margin: 16px auto 32px;
  line-height: 1.55;
}

/* ---------- slim CTA band ---------- */

.cta-slim {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 40% 80% at 85% 50%, var(--ember-soft) 0%, transparent 60%),
    var(--bg);
}
.cta-slim-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.cta-slim h3 {
  font-size: 36px;
  margin-top: 10px;
  line-height: 1.1;
}
.cta-slim p {
  color: var(--fg-dim);
  margin-top: 14px;
  max-width: 48ch;
  font-size: 15px;
}
.cta-slim-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- footer ---------- */

.portal-footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
  margin-top: 0;
}
.portal-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  text-transform: uppercase;
  flex-wrap: wrap;
}
.portal-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--fg);
}
.portal-footer-meta { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.portal-footer-meta .sep { opacity: 0.5; }
.portal-footer-meta a:hover { color: var(--ember); }

/* ---------- selection + scrollbar ---------- */

::selection { background: var(--ember); color: oklch(0.14 0.01 50); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--fg-muted); }

/* ---------- alias list (service detail) ---------- */

.alias-badge {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--ember);
  background: var(--ember-soft);
  color: var(--ember);
  border-radius: 2px;
  font-size: 10px;
  letter-spacing: 0.08em;
  margin-left: 6px;
}

.alias-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-elev);
}
.alias-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.alias-row:last-child { border-bottom: none; }
.alias-row--primary {
  background: linear-gradient(90deg, var(--ember-soft) 0%, transparent 40%);
}

.alias-main {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.alias-kind-badge {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  flex-shrink: 0;
  min-width: 90px;
  text-align: center;
}
.alias-kind-badge--primary {
  border-color: var(--ember);
  background: var(--ember-soft);
  color: var(--ember);
}
.alias-domain {
  font-size: 15px;
  color: var(--fg);
  word-break: break-word;
}

.alias-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.06em;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1080px) {
  .login-inner { grid-template-columns: 1fr; gap: 48px; }
  .login-brand { order: 1; max-width: 540px; }
  .login-form-wrap { order: 2; max-width: 520px; }
  .page-hero-inner,
  .page-hero-inner--service { grid-template-columns: 1fr; gap: 40px; }
  .status-banner { max-width: none; justify-self: stretch; }
  .section-header { grid-template-columns: 1fr; gap: 24px; }
  .section-header h2 { max-width: none; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .numbers, .hook-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .portal-nav-links { display: none; }
  .portal-nav-ident { display: none; }
  .portal-nav-user { gap: 8px; }
  .numbers, .hook-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .page-hero { padding: 56px 0 40px; }
  .login-card { padding: 28px; }
  .spec-row { grid-template-columns: 1fr; gap: 6px; padding: 14px 0; }
  .spec-panel { padding: 8px 20px; }
  .form-panel { padding: 24px; }
  .login-headline { font-size: 48px; }
  .portal-footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
