:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: #f8f7fb;
  background: #07060b;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(126, 65, 255, .23), transparent 42%),
    radial-gradient(circle at 100% 70%, rgba(219, 54, 255, .10), transparent 30%),
    #07060b;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.orb {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(80px);
  opacity: .22;
}

.orb-a {
  width: 420px;
  height: 420px;
  top: -200px;
  left: -140px;
  background: #7c3aed;
}

.orb-b {
  width: 360px;
  height: 360px;
  right: -170px;
  bottom: -120px;
  background: #d946ef;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(92vw, 520px);
  margin: 0 auto;
  padding: 42px 0 30px;
}

.shell-wide {
  width: min(92vw, 900px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  text-decoration: none;
}

.brand-mark {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .12em;
}

.brand-id {
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #cdbbff;
  background: rgba(124,58,237,.12);
}

.card {
  padding: 34px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 28px;
  background: rgba(15, 13, 22, .82);
  box-shadow: 0 30px 90px rgba(0,0,0,.40);
  backdrop-filter: blur(18px);
}

.card-code {
  width: min(92vw, 760px);
  margin-left: 50%;
  transform: translateX(-50%);
}

.eyebrow {
  margin-bottom: 14px;
  color: #bda5ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 50px);
  line-height: 1.04;
  letter-spacing: -.04em;
}

.lead {
  margin: 18px 0 0;
  color: #b5b0c0;
  line-height: 1.65;
  font-size: 16px;
}

.form {
  display: grid;
  gap: 17px;
  margin-top: 28px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #dad6e3;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  outline: none;
  color: #fff;
  background: rgba(255,255,255,.045);
  transition: border-color .15s ease, box-shadow .15s ease;
}

input:focus {
  border-color: #9b72ff;
  box-shadow: 0 0 0 4px rgba(124,58,237,.13);
}

.field-help,
.muted,
.fineprint {
  color: #827d8d;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  font-weight: 850;
  background:
    linear-gradient(135deg, #8b5cf6, #6d28d9 62%, #a21caf);
  box-shadow: 0 14px 30px rgba(109,40,217,.23);
}

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

.button-secondary {
  border: 1px solid rgba(255,255,255,.11);
  color: #e8e4ee;
  background: rgba(255,255,255,.045);
  box-shadow: none;
}

.hero-actions {
  display: grid;
  gap: 11px;
  margin-top: 30px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.trust-grid div {
  padding: 13px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid strong {
  margin-bottom: 4px;
  font-size: 12px;
}

.trust-grid span {
  color: #7f7989;
  font-size: 10px;
}

.alert {
  margin-top: 22px;
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.alert-error {
  border: 1px solid rgba(248,113,113,.24);
  color: #fecaca;
  background: rgba(127,29,29,.18);
}

.alert-success {
  border: 1px solid rgba(74,222,128,.24);
  color: #bbf7d0;
  background: rgba(20,83,45,.18);
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0;
  color: #6e6977;
  font-size: 11px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.07);
}

.text-link {
  display: block;
  margin-top: 20px;
  text-align: center;
  color: #8f899b;
  font-size: 12px;
}

.check {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
}

.check input {
  width: 17px;
  height: 17px;
}

.app-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  color: #9c96a7;
  background: rgba(255,255,255,.025);
  font-size: 11px;
}

.app-pill strong {
  color: #e9e5ef;
}

.scope-list {
  display: grid;
  gap: 10px;
  margin: 25px 0;
}

.scope-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
  background: rgba(255,255,255,.025);
}

.scope-icon {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #d8caff;
  background: rgba(124,58,237,.19);
  font-size: 12px;
  font-weight: 900;
}

.scope-row strong,
.scope-row span {
  display: block;
}

.scope-row strong {
  margin-bottom: 3px;
  font-size: 13px;
}

.scope-row span {
  color: #8e8998;
  font-size: 11px;
  line-height: 1.45;
}

.consent-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 16px;
  color: #c4b5fd;
  background: rgba(124,58,237,.18);
  font-size: 24px;
  font-weight: 900;
}

.dev-box {
  display: grid;
  gap: 8px;
  margin: 24px 0;
  padding: 15px;
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 14px;
  color: #b6b0c0;
  background: rgba(255,255,255,.025);
  font-size: 12px;
}

.dev-box strong {
  color: #fff;
}

.dev-box a {
  color: #cdbbff;
  word-break: break-all;
}

pre {
  max-height: 460px;
  overflow: auto;
  margin: 24px 0;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  color: #c9f7d5;
  background: #090b0c;
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
}

code {
  padding: 2px 5px;
  border-radius: 6px;
  background: rgba(255,255,255,.055);
  color: #d9ccff;
}

.footer {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 20px 10px 0;
  color: #5f5969;
  text-align: center;
  font-size: 10px;
}

@media (max-width: 560px) {
  .shell {
    padding-top: 22px;
  }

  .card {
    padding: 25px 20px;
    border-radius: 22px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .consent-actions {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-wrap: wrap;
  }
}


/* ============================================================
   VÆZRA ID v0.3.1 - Account Center
   ============================================================ */

.account-card {
  display: grid;
  gap: 18px;
}

.account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 2px 2px;
}

.account-title {
  font-size: clamp(30px, 5vw, 44px);
}

.account-email {
  margin: 8px 0 0;
  color: #8f899b;
  font-size: 13px;
}

.account-nav {
  display: flex;
  gap: 7px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
  overflow-x: auto;
}

.account-nav a {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 11px;
  color: #8f899b;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.account-nav a:hover,
.account-nav a.is-active {
  color: #fff;
  background: rgba(124,58,237,.18);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.metric {
  min-width: 0;
  padding: 17px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
}

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

.metric span {
  color: #817a8c;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.metric strong {
  margin-top: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f7f5fa;
  font-size: 17px;
  white-space: nowrap;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.panel {
  padding: 25px;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 22px;
  background: rgba(15,13,22,.72);
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

.panel-spaced {
  margin-top: 0;
}

.narrow-panel {
  width: min(100%, 620px);
}

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

.panel h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -.025em;
}

.panel-copy {
  margin: 10px 0 0;
  max-width: 650px;
  color: #918b9d;
  font-size: 13px;
  line-height: 1.65;
}

.text-button,
.button-inline {
  border: 0;
  padding: 0;
  color: #bda5ff;
  background: none;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.button-small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 12px;
}

.button-danger,
.button-danger-ghost {
  background: rgba(127,29,29,.48);
  box-shadow: none;
}

.button-danger-ghost {
  border: 1px solid rgba(248,113,113,.18);
  color: #fecaca;
}

.danger-text {
  color: #fca5a5 !important;
}

.detail-list {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
}

.detail-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.055);
}

.detail-list div:last-child {
  border-bottom: 0;
}

.detail-list dt {
  color: #777180;
  font-size: 11px;
}

.detail-list dd {
  margin: 0;
  color: #e7e2ed;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
}

.quick-links {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.quick-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 13px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 13px;
  color: #d8d3df;
  background: rgba(255,255,255,.018);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.quick-links a:hover {
  border-color: rgba(157,113,255,.25);
  background: rgba(124,58,237,.08);
}

.list-row {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.055);
}

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

.list-icon,
.app-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #d8caff;
  background: rgba(124,58,237,.14);
  font-size: 12px;
  font-weight: 900;
}

.app-avatar {
  background:
    linear-gradient(
      135deg,
      rgba(124,58,237,.22),
      rgba(217,70,239,.14)
    );
}

.list-main {
  flex: 1;
  min-width: 0;
}

.list-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #f0edf4;
  font-size: 13px;
  font-weight: 800;
}

.list-meta {
  margin-top: 4px;
  overflow: hidden;
  color: #76707f;
  text-overflow: ellipsis;
  font-size: 10px;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border: 1px solid rgba(124,58,237,.20);
  border-radius: 999px;
  color: #cdbbff;
  background: rgba(124,58,237,.10);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.badge-success {
  border-color: rgba(74,222,128,.17);
  color: #bbf7d0;
  background: rgba(20,83,45,.18);
}

.security-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.empty-state {
  display: grid;
  gap: 5px;
  padding: 22px 0 8px;
  color: #8d8797;
  text-align: center;
  font-size: 12px;
}

.empty-state strong {
  color: #d8d2df;
}

.form-grid {
  grid-template-columns: 1fr 1fr;
}

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

.info-box {
  margin-top: 20px;
  padding: 13px 14px;
  border: 1px solid rgba(124,58,237,.15);
  border-radius: 12px;
  color: #aaa3b5;
  background: rgba(124,58,237,.07);
  font-size: 12px;
}

.info-box strong {
  color: #e6defa;
}

.danger-panel {
  border-color: rgba(248,113,113,.13);
  background: rgba(40,12,18,.30);
}

@media (max-width: 760px) {
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .account-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-span {
    grid-column: auto;
  }

  .list-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .list-main {
    min-width: calc(100% - 55px);
  }

  .list-row form {
    width: 100%;
    padding-left: 49px;
  }
}
