@font-face {
  font-family: "Lato";
  src: url("./fonts/Lato-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("./fonts/Lato-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("./fonts/Lato-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --page-bg: #edf2f8;
  --page-bg-strong: #dfe8f4;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-strong: #ffffff;
  --surface-muted: #f5f7fb;
  --ink: #16304d;
  --ink-soft: #47617d;
  --line: rgba(30, 115, 190, 0.15);
  --brand: #1e73be;
  --brand-strong: #142791;
  --brand-soft: #eaf3fb;
  --accent: #1ebbf0;
  --error-bg: #fff1f0;
  --error-ink: #b43f36;
  --success-bg: #edf8f0;
  --success-ink: #2c7a4b;
  --shadow-lg: 0 16px 42px rgba(20, 39, 145, 0.09);
  --shadow-md: 0 10px 24px rgba(20, 39, 145, 0.07);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Lato", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(30, 187, 240, 0.18), transparent 26%),
    radial-gradient(circle at top right, rgba(20, 39, 145, 0.22), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, var(--page-bg) 44%, var(--page-bg-strong) 100%);
}

body.modal-open {
  overflow: hidden;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.portal-shell {
  width: 100%;
  min-height: 100vh;
}

.portal-header-wrap,
.portal-footer-wrap {
  width: 100%;
}

.portal-topbar {
  background: rgba(228, 228, 228, 0.9);
  border-bottom: 1px solid rgba(30, 115, 190, 0.08);
}

.portal-topbar-inner,
.portal-header,
.portal-main-inner,
.portal-footer {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
}

.portal-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 34px;
}

.portal-topbar-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.portal-topbar-meta a {
  font-weight: 700;
}

.portal-header-band {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(30, 115, 190, 0.08);
  box-shadow: 0 8px 20px rgba(20, 39, 145, 0.05);
  backdrop-filter: blur(10px);
}

.portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  min-height: 76px;
}

.portal-mark {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}

.portal-mark:hover {
  text-decoration: none;
}

.portal-mark-logo {
  width: 228px;
  max-width: 100%;
  height: auto;
  display: block;
}

.portal-topbar-meta {
  color: var(--ink-soft);
}

.portal-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.portal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 2px;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  position: relative;
  transition: color 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.portal-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 30%, var(--brand-strong) 100%);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.portal-nav a.is-active {
  color: var(--brand-strong);
  background: transparent;
}

.portal-nav a.is-active::after {
  transform: scaleX(1);
}

.portal-nav a:hover {
  transform: translateY(-1px);
  color: var(--brand);
}

.portal-nav a:hover::after {
  transform: scaleX(1);
}

.portal-main {
  padding: 20px 0 28px;
}

.portal-main-inner {
  display: grid;
  gap: 18px;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.82fr);
  gap: 22px;
  align-items: start;
}

.account-main,
.account-sidebar,
.account-subgrid {
  display: grid;
  gap: 22px;
  align-content: start;
}

.account-subgrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-card,
.single-card {
  display: grid;
  gap: 24px;
}

.auth-card {
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  align-items: stretch;
}

.auth-copy,
.auth-panel,
.card,
.dashboard-hero {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.auth-copy,
.auth-panel,
.card,
.dashboard-hero {
  padding: 26px;
}

.auth-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 540px;
  color: #fff;
  background:
    linear-gradient(140deg, rgba(15, 34, 77, 0.12), rgba(15, 34, 77, 0.34)),
    linear-gradient(135deg, rgba(30, 115, 190, 0.92) 12%, rgba(20, 39, 145, 0.96) 72%);
}

.auth-copy::before {
  content: "";
  position: absolute;
  inset: auto -8% -18% auto;
  width: 360px;
  height: 360px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.04) 48%, transparent 70%);
  pointer-events: none;
}

.auth-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 24%),
    url("./images/logo-white.png") no-repeat right 34px bottom 28px / 180px auto;
  opacity: 0.95;
  pointer-events: none;
}

.auth-copy > * {
  position: relative;
  z-index: 1;
}

.auth-copy h1,
.card h1,
.dashboard-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(2rem, 3.3vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.card h1,
.dashboard-hero h1 {
  font-size: clamp(1.85rem, 2.5vw, 2.9rem);
}

.auth-copy p,
.card p,
.dashboard-hero p,
.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.62;
}

.auth-panel h2,
.card h2 {
  margin: 10px 0 8px;
  font-size: 1.55rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.auth-panel > p,
.card > p {
  margin: 0 0 22px;
}

.auth-copy p {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.02rem;
}

.auth-copy-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.metric {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  margin-bottom: 5px;
  font-size: 1.15rem;
}

.metric span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

.auth-panel,
.card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.94));
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label span {
  display: block;
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(30, 115, 190, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.auth-form input::placeholder {
  color: #7e95ad;
}

.auth-form input:focus {
  outline: none;
  border-color: rgba(30, 115, 190, 0.55);
  box-shadow: 0 0 0 5px rgba(30, 115, 190, 0.12);
  transform: translateY(-1px);
}

.auth-form select,
.auth-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(30, 115, 190, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.auth-form select:focus,
.auth-form textarea:focus {
  outline: none;
  border-color: rgba(30, 115, 190, 0.55);
  box-shadow: 0 0 0 5px rgba(30, 115, 190, 0.12);
  transform: translateY(-1px);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  filter: saturate(1.04);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 30%, var(--brand-strong) 100%);
  box-shadow: 0 12px 24px rgba(20, 39, 145, 0.16);
}

.button-secondary {
  color: var(--brand-strong);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(30, 115, 190, 0.16);
}

.button-tertiary {
  color: var(--ink-soft);
  background: rgba(30, 115, 190, 0.06);
  border: 1px solid rgba(30, 115, 190, 0.08);
}

.button-small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.84rem;
  white-space: nowrap;
}

.turnstile-wrap {
  display: block;
  margin-top: 2px;
}

.turnstile-wrap .cf-turnstile {
  min-height: 68px;
}

.turnstile-wrap-invisible .cf-turnstile {
  min-height: 0;
}

.auth-links {
  margin-top: 18px;
}

.auth-links a {
  font-weight: 700;
}

.flash {
  padding: 15px 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
}

.flash-error {
  color: var(--error-ink);
  background: var(--error-bg);
  border-color: rgba(180, 63, 54, 0.12);
}

.flash-success {
  color: var(--success-ink);
  background: var(--success-bg);
  border-color: rgba(44, 122, 75, 0.12);
}

.flash-action {
  margin-top: 14px;
}

.inline-action-form {
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(30, 187, 240, 0.12);
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  font-weight: 700;
}

.auth-copy .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.dashboard-hero {
  padding-bottom: 72px;
  background:
    radial-gradient(circle at top right, rgba(30, 187, 240, 0.2), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 255, 0.96));
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 18px;
  width: 180px;
  height: 44px;
  background: url("./images/logo-300.png") no-repeat center / contain;
  opacity: 0.18;
}

.hero-actions,
.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.page-hero h1 {
  margin: 8px 0 8px;
  font-size: clamp(1.85rem, 2.6vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.page-hero-compact {
  align-items: center;
}

.stats-grid,
.content-grid {
  display: grid;
  gap: 16px;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.content-grid-balanced {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.stat-card strong,
.hero-meta strong {
  display: block;
  font-size: clamp(1.75rem, 2.4vw, 2.3rem);
  line-height: 1;
}

.hero-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(620px, 100%);
}

.hero-meta-card {
  padding: 16px 18px;
  border: 1px solid rgba(30, 115, 190, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(8px);
}

.hero-meta-card strong {
  font-size: 1rem;
  line-height: 1.4;
}

.stat-card small {
  color: var(--ink-soft);
}

.stat-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  font-weight: 700;
}

.panel-card h2 {
  margin: 8px 0 0;
}

.account-card-compact {
  padding: 22px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(30, 115, 190, 0.08);
}

.section-heading a {
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
}

.portal-table th,
.portal-table td {
  padding: 11px 0;
  border-bottom: 1px solid rgba(30, 115, 190, 0.1);
  text-align: left;
  vertical-align: top;
}

.portal-table thead th {
  padding-top: 0;
  color: var(--ink-soft);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.portal-table tbody tr:hover td {
  background: rgba(30, 115, 190, 0.022);
}

.portal-table tbody tr:last-child td {
  border-bottom: 0;
}

.align-right {
  text-align: right;
}

.meta-line {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid-double {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-span-2 {
  grid-column: 1 / -1;
}

.form-grid-account {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 14px;
}

.field-span-1 {
  grid-column: span 1;
}

.field-span-2 {
  grid-column: span 2;
}

.field-span-4 {
  grid-column: 1 / -1;
}

.stack-grid {
  display: grid;
  gap: 16px;
}

.security-actions {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(30, 115, 190, 0.1);
  align-items: center;
}

.security-actions:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.security-summary strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.security-summary p {
  margin: 0;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.action-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.table-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.domain-actions {
  gap: 8px;
}

.domain-action-state {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(30, 115, 190, 0.08);
  border-radius: 10px;
  background: rgba(30, 115, 190, 0.05);
  white-space: nowrap;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-item {
  padding: 14px;
  border: 1px solid rgba(30, 115, 190, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.detail-label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-item strong {
  display: block;
  font-size: 1rem;
  line-height: 1.4;
}

.details-list {
  display: grid;
  gap: 10px;
}

.account-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.account-stat-card {
  padding: 14px 15px;
  border: 1px solid rgba(30, 115, 190, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.account-stat-card strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.45;
}

.details-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(30, 115, 190, 0.1);
}

.details-row:last-child {
  border-bottom: 0;
}

.details-row-emphasis strong {
  color: var(--brand-strong);
  font-size: 1.05rem;
}

.details-row span {
  color: var(--ink-soft);
}

.details-row strong {
  text-align: right;
}

.badge-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.tag-compact {
  min-height: 28px;
  margin-top: 0;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 0.76rem;
}

.compact-note {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.stack-form {
  display: grid;
  gap: 14px;
}

.inline-meta-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 16px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(30, 115, 190, 0.07);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.inline-meta-banner i {
  color: var(--brand);
}

.security-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(30, 115, 190, 0.12);
  border-radius: 12px;
  background: rgba(30, 115, 190, 0.06);
  color: var(--ink-soft);
  line-height: 1.6;
}

.security-note strong {
  color: var(--ink);
}

.code-wrap,
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.code-wrap {
  display: inline-block;
  word-break: break-all;
}

.icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid rgba(30, 115, 190, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand-strong);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.icon-action:hover {
  transform: translateY(-1px);
  border-color: rgba(30, 115, 190, 0.35);
  box-shadow: 0 8px 18px rgba(30, 115, 190, 0.08);
}

.button i,
.icon-action i {
  line-height: 1;
}

.button span {
  display: inline-flex;
  align-items: center;
}

.mtop10 {
  margin-top: 10px;
}

.list-stack {
  display: grid;
  gap: 10px;
}

.login-history-list {
  display: grid;
  gap: 12px;
}

.login-history-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(30, 115, 190, 0.1);
}

.login-history-item:first-child {
  padding-top: 0;
}

.login-history-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.login-history-item strong {
  display: block;
  margin-bottom: 3px;
}

.login-history-time {
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: right;
  white-space: nowrap;
}

.portal-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}

.portal-modal.is-open {
  display: block;
}

.portal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 29, 56, 0.48);
  backdrop-filter: blur(6px);
}

.portal-modal-dialog {
  position: relative;
  width: min(560px, calc(100% - 32px));
  margin: 72px auto 24px;
  padding: 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(14, 29, 56, 0.22);
  border: 1px solid rgba(30, 115, 190, 0.12);
  z-index: 1;
}

.portal-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.portal-modal-header h2 {
  margin: 8px 0 0;
}

.portal-modal-close {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.portal-modal-close:hover {
  color: var(--brand-strong);
}

.list-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 14px;
  border: 1px solid rgba(30, 115, 190, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-active {
  background: rgba(44, 122, 75, 0.12);
  color: #2c7a4b;
}

.status-pending {
  background: rgba(30, 115, 190, 0.12);
  color: var(--brand-strong);
}

.status-suspended,
.status-warning {
  background: rgba(220, 140, 34, 0.14);
  color: #9c5d11;
}

.status-error {
  background: rgba(180, 63, 54, 0.12);
  color: var(--error-ink);
}

.status-muted {
  background: rgba(71, 97, 125, 0.12);
  color: var(--ink-soft);
}

.empty-copy {
  color: var(--ink-soft);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 255, 0.92));
  box-shadow: var(--shadow-md);
}

.feature-card h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  line-height: 1.1;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 18px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.8rem;
  font-weight: 700;
}

.portal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0 22px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.portal-footer a {
  font-weight: 700;
}

@media (max-width: 980px) {
  .auth-card,
  .account-layout,
  .account-subgrid,
  .account-stat-grid,
  .grid,
  .hero-meta-grid,
  .stats-grid,
  .content-grid,
  .details-grid,
  .form-grid-double,
  .form-grid-account {
    grid-template-columns: 1fr;
  }

  .auth-copy {
    min-height: 420px;
  }

  .portal-header,
  .portal-footer {
    width: min(1220px, calc(100% - 28px));
  }
}

@media (max-width: 760px) {
  .portal-topbar-inner,
  .portal-header,
  .portal-main-inner,
  .portal-footer {
    width: min(100% - 20px, 1220px);
  }

  .portal-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0;
    min-height: auto;
  }

  .portal-mark {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .portal-mark-logo {
    width: 180px;
  }

  .portal-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .page-hero,
  .section-heading,
  .list-row,
  .details-row {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .section-heading,
  .list-row,
  .details-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .security-actions,
  .login-history-item,
  .inline-meta-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .field-span-1,
  .field-span-2,
  .field-span-4 {
    grid-column: auto;
  }

  .login-history-time {
    text-align: left;
    white-space: normal;
  }

  .align-right {
    text-align: left;
  }

  .auth-copy,
  .auth-panel,
  .card,
  .dashboard-hero {
    padding: 20px;
    border-radius: 18px;
  }

  .auth-copy h1,
  .card h1,
  .dashboard-hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .auth-copy-metrics {
    grid-template-columns: 1fr;
  }

  .portal-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 18px;
  }
}
