:root {
  --ink: #171b25;
  --muted: #5f6677;
  --line: #ded7c9;
  --gold: #9a6a12;
  --gold-dark: #805307;
  --green: #00b87a;
  --red: #ff463f;
  --surface: #ffffff;
  --wash: #f7f8fb;
  --phone: #eff8f5;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--wash);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

select {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.sim-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 20px;
}

.login-body {
  background: #f9faf8;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.login-panel {
  width: min(100%, 1180px);
  min-height: min(920px, calc(100vh - 64px));
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 22px;
  border-top: 8px solid #0ea4bc;
  border-bottom: 4px solid #00a76f;
  background: #fff;
  box-shadow: 0 24px 70px rgba(23, 27, 37, 0.08);
}

.login-brand {
  display: grid;
  justify-items: center;
  gap: 18px;
  color: #39445a;
}

.login-brand strong {
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 500;
}

.fingerprint-mark.large {
  width: 84px;
  height: 84px;
  border-width: 8px;
}

.sim-login-form {
  display: grid;
  gap: 18px;
  width: min(440px, calc(100vw - 56px));
}

.sim-login-form input[type="text"],
.sim-login-form input[type="password"],
.sim-login-form input[type="tel"],
.sim-login-form input:not([type]) {
  width: 100%;
}

#simLoginInput,
#simPinInput,
#phonePinInput {
  min-height: 72px;
  width: 100%;
  border: 2px solid #9dccff;
  border-radius: 16px;
  padding: 0 20px;
  color: #39445a;
  font-size: 18px;
  box-shadow: 0 0 0 5px rgba(44, 145, 255, 0.18);
}

#simPinInput,
#phonePinInput {
  letter-spacing: 0;
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #171b25;
  font-size: 18px;
}

.remember-row input {
  width: 22px;
  height: 22px;
  accent-color: #1486dc;
}

.login-button {
  min-height: 76px;
  border: 0;
  border-radius: 16px;
  background: #7f8da8;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.login-error {
  min-height: 22px;
  color: var(--red);
  font-weight: 800;
  text-align: center;
}

.login-links {
  display: grid;
  justify-items: center;
  gap: 14px;
  color: #171b25;
  font-size: 18px;
}

.login-links p {
  margin: 0;
}

.login-links span {
  color: #00a76f;
}

.login-request-context {
  display: grid;
  gap: 5px;
  width: min(440px, calc(100vw - 56px));
  padding: 16px 18px;
  border: 1px solid #cfe7dc;
  border-radius: 16px;
  background: #f5fbf8;
  color: #39445a;
}

.login-request-context strong,
.login-request-context span,
.login-request-context small {
  display: block;
}

.sim-disclaimer {
  margin: 0;
  color: #6d768d;
  font-weight: 800;
}

.login-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  width: min(820px, calc(100vw - 56px));
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #dce2ec;
}

.login-footer a {
  color: #7f8da8;
  text-decoration: none;
  font-size: 18px;
}

.sim-card {
  width: min(820px, 100%);
  min-height: 620px;
  background: var(--surface);
  border: 1px solid var(--gold);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 24px;
  padding: 56px;
  box-shadow: 0 30px 80px rgba(23, 27, 37, 0.08);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 24px;
  text-align: left;
}

.brand-mark {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 2px solid #0abf84;
  border-radius: 50%;
  color: #0abf84;
  font-size: 34px;
  font-weight: 900;
}

.brand-lockup strong {
  display: block;
  color: var(--gold);
  font-size: 22px;
  text-transform: uppercase;
}

.brand-lockup span {
  display: block;
  color: var(--gold-dark);
  font-weight: 800;
}

.request-title {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1;
  text-align: center;
  margin: 76px 0 8px;
}

.request-subtitle {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 22px;
  line-height: 1.45;
}

.pass-button {
  border: 0;
  background: #050505;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 330px;
  min-height: 82px;
  padding: 20px 34px;
  font-size: 26px;
  font-weight: 900;
  cursor: pointer;
}

.pass-button.link-action {
  text-decoration: none;
}

.pass-button span {
  width: 27px;
  height: 27px;
  border: 4px solid var(--green);
  border-radius: 50%;
  display: inline-block;
}

.pass-button.compact {
  min-width: 0;
  min-height: 58px;
  padding: 14px 22px;
  font-size: 18px;
}

.pass-button.compact span {
  width: 18px;
  height: 18px;
  border-width: 3px;
}

.manual-link {
  color: var(--gold-dark);
  font-weight: 800;
}

.portal-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.account-chip {
  display: grid;
  gap: 4px;
  min-width: 340px;
  border: 1px solid var(--line);
  padding: 16px 18px;
  text-align: center;
}

.account-chip span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-chip strong {
  font-size: 22px;
}

.account-chip a {
  color: var(--gold-dark);
  font-weight: 900;
}

.account-shell {
  place-items: stretch;
  padding: 36px;
}

.account-page {
  width: min(1180px, 100%);
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--gold);
  padding: 36px;
  box-shadow: 0 30px 80px rgba(23, 27, 37, 0.08);
}

.account-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 32px;
  padding-top: 32px;
}

.account-panel h1,
.account-panel h2 {
  margin: 0 0 20px;
}

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

.account-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-form input,
.account-form select {
  width: 100%;
  border: 1px solid var(--line);
  padding: 14px 12px;
  color: var(--ink);
  background: #fff;
  text-transform: none;
}

.account-form button {
  grid-column: 1 / -1;
  justify-self: start;
}

.account-rows {
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
}

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  padding: 16px;
}

.account-row.active {
  border-color: var(--green);
  background: #f1fbf7;
}

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

.account-row span {
  margin-top: 4px;
  color: var(--muted);
}

.account-row small {
  margin-top: 5px;
  color: var(--gold-dark);
  font-weight: 900;
}

.secondary-action {
  border: 1px solid var(--gold);
  background: #fff;
  color: var(--gold-dark);
  padding: 11px 14px;
  font-weight: 900;
  cursor: pointer;
}

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

.audit-list p {
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.audit-list strong,
.audit-list span {
  display: block;
}

.audit-list span {
  color: var(--muted);
  font-size: 13px;
}

.approval-card {
  position: relative;
  width: min(1120px, calc(100vw - 48px));
  min-height: min(620px, calc(100vh - 72px));
  background: var(--surface);
  border: 1px solid #c8efd8;
  border-radius: 24px;
  padding: 42px 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  box-shadow: 0 30px 80px rgba(23, 27, 37, 0.08);
}

.approval-main {
  display: grid;
  align-content: start;
  gap: 18px;
  max-width: 680px;
}

.approval-brand {
  align-self: start;
}

.approval-brand strong {
  display: block;
  font-size: 30px;
}

.approval-brand span {
  display: block;
  font-size: 22px;
}

.cancel-action {
  position: absolute;
  top: 34px;
  right: 46px;
  color: var(--red);
  background: transparent;
  border: 0;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.request-from {
  margin-top: 12px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.relying-service {
  font-size: 26px;
}

.approval-heading {
  margin: 10px 0 0;
  max-width: 640px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.14;
  font-weight: 500;
}

.challenge-panel {
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(100%, 520px);
  margin-top: 12px;
  border: 1px solid #c8efd8;
  background: #f7fffb;
  border-radius: 20px;
  padding: 16px;
}

.number-tile {
  flex: 0 0 auto;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 16px;
  background: #eef8f3;
  color: #515d70;
  font-size: 58px;
  border-right: 4px solid #008960;
}

.challenge-details {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.status-line {
  margin-top: 0;
  color: var(--gold-dark);
  font-size: 20px;
  font-weight: 700;
}

.countdown-line {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.phone-illustration {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  min-height: 360px;
  position: relative;
}

.phone-illustration::before {
  content: "";
  position: absolute;
  width: 245px;
  height: 260px;
  right: 92px;
  top: 76px;
  border-radius: 20px;
  background: linear-gradient(90deg, #cadfd7, #edf7f4);
}

.phone-illustration::after {
  content: "";
  position: absolute;
  width: 176px;
  height: 340px;
  right: 16px;
  top: 14px;
  border-radius: 40px;
  background: #fff;
  box-shadow: 0 18px 70px rgba(23, 27, 37, 0.12);
}

.check-mark {
  position: absolute;
  right: 74px;
  top: 214px;
  z-index: 2;
  width: 78px;
  height: 78px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #16b474;
  color: #fff;
  font-size: 52px;
  font-weight: 400;
}

.phone-open {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  color: var(--gold-dark);
  border: 1px solid #e2d2b9;
  background: #fffdf8;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 900;
  font-size: 15px;
  text-decoration: none;
}

.phone-body {
  background: #0d1b22;
}

.phone-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.phone-card {
  width: min(430px, 100%);
  min-height: 760px;
  border-radius: 40px;
  background: #f8fffc;
  padding: 38px 26px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 28px;
  border-bottom: 1px solid #d6ebe2;
}

.phone-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--green);
  display: grid;
  place-items: center;
  color: var(--green);
  font-weight: 900;
}

.phone-top strong {
  display: block;
  font-size: 20px;
}

.phone-top span {
  display: block;
  color: var(--muted);
}

.phone-section {
  padding: 28px 0;
}

.phone-section h1 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.12;
}

.phone-section p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.summary-box {
  border: 1px solid #d6ebe2;
  background: #fff;
  padding: 18px;
  margin: 20px 0;
}

.summary-box dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-box dd {
  margin: 4px 0 14px;
  font-size: 18px;
  font-weight: 800;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.choice-button {
  min-height: 84px;
  border: 1px solid #c8ded5;
  border-radius: 18px;
  background: #fff;
  color: #304052;
  font-size: 36px;
  font-weight: 900;
  cursor: pointer;
}

.choice-button:hover,
.choice-button:focus-visible {
  outline: 3px solid rgba(0, 184, 122, 0.22);
  border-color: var(--green);
}

.pin-confirm-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.phone-error {
  min-height: 22px;
  color: var(--red);
  font-weight: 800;
  text-align: center;
}

.approved-state {
  display: grid;
  place-items: center;
  min-height: 560px;
  text-align: center;
}

.approved-state strong {
  width: 110px;
  height: 110px;
  border-radius: 28px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 76px;
  font-weight: 400;
}

.approved-state h1 {
  margin: 28px 0 8px;
}

.empty-state {
  max-width: 520px;
  text-align: center;
}

.empty-state h1 {
  font-size: 42px;
}

.empty-state a {
  color: var(--gold-dark);
  font-weight: 900;
}

@media (max-width: 860px) {
  .sim-card {
    padding: 34px 24px;
  }

  .account-page {
    padding: 24px;
  }

  .account-page-header,
  .account-row {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .approval-card {
    grid-template-columns: 1fr;
    padding: 36px 24px;
    width: min(100%, calc(100vw - 28px));
    min-height: auto;
  }

  .phone-illustration {
    display: none;
  }

  .cancel-action {
    top: 28px;
    right: 24px;
  }

  .approval-heading {
    font-size: clamp(28px, 8vw, 38px);
  }

  .challenge-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .number-tile {
    width: 100%;
    height: 106px;
    border-right: 0;
    border-bottom: 4px solid #008960;
  }
}

.app-body {
  background: #eef1ec;
}

.mobile-app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.mobile-app {
  width: min(430px, 100%);
  min-height: min(920px, calc(100vh - 36px));
  max-height: calc(100vh - 36px);
  background: #f2f5f0;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(23, 27, 37, 0.16);
}

.mobile-app-screen {
  position: relative;
  min-height: inherit;
  max-height: inherit;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  padding: 0;
  scrollbar-width: none;
}

.mobile-app-content {
  min-height: 0;
  overflow-y: auto;
  padding: 0 16px 24px;
  scrollbar-width: none;
}

.mobile-app-screen::-webkit-scrollbar,
.mobile-app-content::-webkit-scrollbar {
  display: none;
}

.home-hero {
  position: relative;
  margin: 0 -16px;
  padding: 0 16px 28px;
  background: #13a977;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: -90px -20px auto;
  height: 270px;
  opacity: 0.22;
  background:
    radial-gradient(circle at 12% 10%, rgba(255,255,255,0.5) 0 34px, transparent 35px),
    radial-gradient(circle at 88% 24%, rgba(255,255,255,0.42) 0 30px, transparent 31px),
    repeating-radial-gradient(ellipse at center, transparent 0 42px, rgba(255,255,255,0.32) 43px 73px, transparent 74px 112px);
}

.verified-card {
  position: relative;
  margin-top: 72px;
  border-radius: 18px;
  background: #ebfbf5;
  color: #050505;
  box-shadow: 0 8px 24px rgba(23, 27, 37, 0.12);
  padding: 22px 16px 0;
}

.verified-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.avatar-stack {
  position: relative;
  margin-top: -58px;
}

.app-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #dff7ee;
  color: #069b67;
  font-weight: 900;
  border: 5px solid #0fa971;
  object-fit: cover;
}

.app-avatar.large {
  width: 106px;
  height: 106px;
  font-size: 34px;
}

.app-avatar.small {
  width: 58px;
  height: 58px;
  border-width: 0;
  font-size: 20px;
}

.verified-badge {
  position: absolute;
  right: -8px;
  bottom: 6px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #17ad76;
  color: #fff;
  border: 5px solid #ebfbf5;
  font-size: 28px;
  font-weight: 900;
}

.trustgate-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.fingerprint-mark {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid #111;
  border-left-color: transparent;
  border-bottom-color: #0fa971;
}

.fingerprint-mark::before,
.fingerprint-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.fingerprint-mark::before {
  inset: 7px;
  border: 3px solid #111;
  border-right-color: transparent;
}

.fingerprint-mark::after {
  width: 7px;
  height: 7px;
  left: 16px;
  top: 16px;
  background: #e7473c;
}

.fingerprint-mark.large {
  width: 84px;
  height: 84px;
  border-width: 8px;
}

.fingerprint-mark.large::before {
  inset: 15px;
  border-width: 6px;
}

.fingerprint-mark.large::after {
  width: 14px;
  height: 14px;
  left: 34px;
  top: 34px;
}

.trustgate-logo small,
.trustgate-logo strong {
  display: block;
  white-space: nowrap;
}

.trustgate-logo small {
  font-size: 19px;
  line-height: 1.1;
}

.trustgate-logo strong {
  font-size: 22px;
  letter-spacing: 0;
}

.verified-card h1 {
  margin: 24px 0 8px;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
}

.verified-copy {
  margin: 0 0 18px;
  color: #16a774;
  font-size: 22px;
  font-weight: 900;
}

.credential-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: center;
  color: #3e4843;
  font-size: 14px;
  font-weight: 900;
}

.credential-row strong {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  margin-right: 4px;
  border-radius: 50%;
  background: #19a978;
  color: #fff;
  font-size: 13px;
}

.credential-row a {
  color: #17a876;
  text-decoration: none;
  font-size: 31px;
  line-height: 1;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 18px -16px 0;
  border-top: 1px solid rgba(23, 27, 37, 0.08);
  background: #fff;
  border-radius: 0 0 18px 18px;
}

.quick-actions a {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 12px 18px;
  color: #050505;
  text-decoration: none;
}

.quick-actions a + a {
  border-left: 1px solid rgba(23, 27, 37, 0.2);
}

.quick-actions span {
  grid-row: 1 / span 2;
  color: #a89000;
  font-size: 42px;
  line-height: 1;
}

.quick-actions strong,
.quick-actions em {
  display: block;
  font-style: normal;
  line-height: 1.05;
}

.quick-actions strong {
  font-size: 26px;
}

.quick-actions em {
  font-size: 25px;
}

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

.home-list {
  margin-top: 18px;
}

.app-list-row,
.profile-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  color: #050505;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(23, 27, 37, 0.05);
}

button.app-list-row {
  width: 100%;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.logout-row strong {
  color: var(--red);
}

.static-profile-card {
  grid-template-columns: auto 1fr;
  cursor: default;
}

.app-list-row strong,
.profile-card strong {
  display: block;
  font-size: 22px;
  line-height: 1.15;
}

.app-list-row small,
.profile-card small {
  display: block;
  margin-top: 5px;
  color: #505750;
  font-size: 19px;
  line-height: 1.25;
}

.app-list-row b,
.profile-card b {
  color: #050505;
  font-size: 32px;
  font-weight: 500;
}

.row-icon {
  width: 44px;
  min-width: 44px;
  color: #a89000;
  font-size: 34px;
  font-weight: 900;
  text-align: center;
}

.row-icon.text-icon {
  font-size: 26px;
}

.rate-pill {
  width: max-content;
  max-width: 100%;
  margin: 34px auto 0;
  padding: 16px 24px;
  border-radius: 999px;
  background: #dff8ee;
  color: #16a774;
  font-size: 23px;
  font-weight: 900;
}

.rate-pill span {
  margin-right: 8px;
}

.live-request-mount {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.live-request-mount:empty {
  display: none;
}

.live-request-backdrop {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 20px 18px 92px;
  background: rgba(17, 24, 39, 0.34);
  pointer-events: auto;
  overflow-y: auto;
}

.live-request-panel {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  margin-top: 18px;
  padding: 16px;
  border: 2px solid #19b87d;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 46px rgba(23, 27, 37, 0.28);
}

.live-request-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.live-request-header strong {
  display: block;
  color: #050505;
  font-size: 21px;
  line-height: 1.1;
}

.live-request-header small,
.live-request-panel p {
  margin: 0;
  color: #505750;
  font-size: 16px;
  line-height: 1.25;
}

.live-request-meta,
.live-request-status {
  font-weight: 800;
}

.live-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.live-choice-grid .choice-button {
  min-height: 68px;
  font-size: 28px;
}

.live-pin-form {
  display: grid;
  gap: 10px;
}

.live-pin-form .phone-pin-input {
  min-height: 58px;
  font-size: 21px;
}

.live-pin-form .login-button {
  min-height: 58px;
  font-size: 21px;
}

.app-bottom-nav {
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin: 0;
  padding: 10px 8px 14px;
  background: #fff;
  border-top: 1px solid rgba(23, 27, 37, 0.07);
}

.app-nav-link {
  display: grid;
  place-items: center;
  gap: 3px;
  color: #050505;
  text-decoration: none;
  font-size: 13px;
}

.app-nav-link span {
  width: 62px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 26px;
  line-height: 1;
}

.app-nav-link strong {
  font-size: 13px;
}

.app-nav-link.active span {
  background: #caffe4;
}

.app-nav-link.active strong {
  font-weight: 900;
}

.app-page-header {
  position: relative;
  padding: 40px 0 22px;
}

.app-page-header h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1;
  font-weight: 500;
}

.filter-mark {
  position: absolute;
  top: 20px;
  right: 0;
  color: #0da871;
  font-size: 44px;
  font-weight: 900;
}

.search-box {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  margin-bottom: 34px;
  padding: 0 20px;
  border-radius: 16px;
  background: #fff;
}

.search-box span {
  color: #303a39;
  font-size: 30px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #333;
  font-size: 24px;
  background: transparent;
}

.profile-card {
  margin-bottom: 24px;
}

.profile-details {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.profile-details div {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(23, 27, 37, 0.05);
}

.profile-details span,
.profile-details small {
  color: #5c665f;
  font-size: 15px;
  line-height: 1.25;
}

.profile-details strong {
  color: #050505;
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.section-label {
  margin: 22px 0 10px;
  font-size: 24px;
}

.toggle-on {
  width: 68px;
  height: 42px;
  border-radius: 999px;
  background: #19a978;
  justify-self: end;
  position: relative;
}

.toggle-on::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 5px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
}

.language-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 178px;
  padding: 4px;
  border-radius: 999px;
  background: #ddece5;
  color: #050505;
  font-size: 15px;
}

.language-toggle b {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 999px;
  font-size: 16px;
}

.language-toggle b:first-child {
  background: #fff;
  box-shadow: 0 2px 8px rgba(23, 27, 37, 0.08);
}

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

.history-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  color: #050505;
  box-shadow: 0 4px 16px rgba(23, 27, 37, 0.05);
}

.history-card + .history-card {
  margin-top: 12px;
}

.history-card strong {
  display: block;
  font-size: 21px;
  line-height: 1.15;
}

.history-card small {
  display: block;
  margin-top: 5px;
  color: #505750;
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.history-card b {
  color: #050505;
  font-size: 32px;
  font-weight: 500;
}

.history-card.status-approved {
  border-inline-start: 4px solid #18a66f;
}

.history-card.status-failed,
.history-card.status-expired,
.history-card.status-cancelled {
  border-inline-start: 4px solid var(--red);
}

.document-list,
.notification-list {
  display: grid;
  gap: 12px;
}

.document-card,
.notification-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(23, 27, 37, 0.05);
}

.document-card strong,
.notification-row strong {
  display: block;
  font-size: 21px;
  line-height: 1.15;
}

.document-card small,
.notification-row small {
  display: block;
  margin-top: 5px;
  color: #505750;
  font-size: 18px;
}

.document-card b,
.notification-row b {
  color: #17855e;
  font-size: 15px;
  text-align: right;
}

.notification-row.pending b {
  color: var(--gold-dark);
}

.notification-note {
  margin: 18px 4px 0;
  color: #5c665f;
  font-size: 16px;
}

.history-group h2 {
  margin: 0 0 12px;
  color: #3d4a43;
  font-size: 22px;
  line-height: 1;
}

.empty-mobile-state {
  display: grid;
  place-items: center;
  min-height: 520px;
  text-align: center;
  color: #4d554f;
}

.empty-mobile-state h2 {
  margin: 14px 0 6px;
  color: #050505;
  font-size: 28px;
}

.empty-mobile-state p {
  max-width: 300px;
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.back-chip {
  position: absolute;
  top: 32px;
  right: 0;
  color: var(--gold-dark);
  font-weight: 900;
}

.sim-management {
  display: grid;
  gap: 16px;
  margin: 16px 0 24px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
}

.sim-management h2 {
  margin: 0;
  font-size: 19px;
}

.sim-management .account-rows {
  margin-bottom: 0;
}

.sim-management .account-row {
  border-radius: 14px;
  padding: 12px;
}

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

.sim-management .account-form label {
  text-transform: none;
  font-size: 13px;
}

.sim-management .account-form input,
.sim-management .account-form select {
  border-radius: 10px;
}

@media (max-width: 520px) {
  .mobile-app-shell {
    padding: 0;
    place-items: stretch;
  }

  .mobile-app {
    width: 100%;
    min-height: 100vh;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
  }

  .mobile-app-screen {
    min-height: 100vh;
    max-height: none;
  }

  .mobile-app-content {
    min-height: 0;
  }
}

/* TrustGate original redesign layer */
:root {
  --tg-ink: #111827;
  --tg-navy: #17324d;
  --tg-teal: #006b68;
  --tg-teal-2: #00937f;
  --tg-gold: #b68422;
  --tg-red: #c73d32;
  --tg-line: #d8dfdc;
  --tg-soft: #f3f6f3;
  --tg-card: #ffffff;
}

.login-body {
  background:
    linear-gradient(90deg, rgba(0, 107, 104, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(0, 107, 104, 0.05) 0 1px, transparent 1px 100%),
    #f7f8f4;
  background-size: 56px 56px;
}

.login-shell {
  padding: 24px;
}

.tg-auth-panel {
  width: min(1180px, calc(100vw - 48px));
  min-height: min(760px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 520px);
  grid-template-rows: 1fr auto;
  gap: 28px;
  align-items: stretch;
  justify-items: stretch;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid rgba(0, 107, 104, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
}

.auth-intro {
  display: grid;
  align-content: center;
  gap: 18px;
  min-width: 0;
  padding: clamp(18px, 4vw, 42px);
  border-radius: 8px;
  background: #15394d;
  color: #fff;
}

.auth-intro .trustgate-logo {
  color: #fff;
  margin: 0;
}

.auth-intro .trustgate-logo small {
  color: #cfebdf;
}

.auth-intro h1 {
  max-width: 540px;
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.03;
  font-weight: 850;
}

.auth-intro p {
  max-width: 520px;
  margin: 0;
  color: #dce8e4;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.45;
}

.auth-kicker {
  color: #f0cf8b !important;
  font-weight: 850;
  text-transform: uppercase;
}

.trust-pill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.trust-pill-grid span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #eef8f3;
  font-weight: 800;
}

.auth-card {
  display: grid;
  align-content: center;
  gap: 18px;
  min-width: 0;
  padding: clamp(18px, 4vw, 38px);
  border: 1px solid var(--tg-line);
  border-radius: 8px;
  background: var(--tg-card);
}

.tg-auth-panel .sim-login-form {
  width: 100%;
  gap: 16px;
}

.tg-auth-panel .sim-login-form label {
  display: grid;
  gap: 8px;
  color: #40514f;
  font-size: 14px;
  font-weight: 850;
}

#simLoginInput,
#simPinInput,
#phonePinInput,
#livePinInput {
  min-height: 58px;
  border: 1px solid #c8d6d2;
  border-radius: 8px;
  background: #fbfcfa;
  box-shadow: none;
  color: var(--tg-ink);
  font-size: 18px;
}

#simLoginInput:focus,
#simPinInput:focus,
#phonePinInput:focus,
#livePinInput:focus {
  border-color: var(--tg-teal-2);
  outline: 3px solid rgba(0, 147, 127, 0.16);
}

.login-button {
  min-height: 60px;
  border-radius: 8px;
  background: var(--tg-teal);
  color: #fff;
  font-size: 20px;
  font-weight: 850;
}

.login-button:hover,
.login-button:focus-visible {
  background: #005a57;
  outline: 3px solid rgba(0, 147, 127, 0.18);
}

.remember-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  color: #40514f;
  font-size: 15px;
}

.remember-row input {
  accent-color: var(--tg-teal);
}

.login-links {
  justify-items: start;
  gap: 8px;
  color: #53605e;
  font-size: 15px;
}

.login-links span {
  color: var(--tg-teal);
  font-weight: 800;
}

.login-request-context {
  width: 100%;
  gap: 7px;
  padding: 16px;
  border: 1px solid rgba(0, 107, 104, 0.22);
  border-radius: 8px;
  background: #eef7f3;
  color: #243733;
}

.login-request-context strong {
  color: var(--tg-teal);
  font-size: 18px;
}

.sim-disclaimer {
  grid-column: 1 / -1;
  margin: 0;
  color: #5f6967;
  font-size: 14px;
  font-weight: 750;
  text-align: center;
}

.login-error {
  color: var(--tg-red);
}

.trustgate-logo {
  color: var(--tg-ink);
}

.trustgate-logo small {
  color: #60706c;
  font-size: 14px;
  font-weight: 800;
}

.trustgate-logo strong {
  font-size: 22px;
  font-weight: 900;
}

.tg-mark {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 12px;
}

.tg-mark::before,
.tg-mark::after,
.tg-mark i {
  content: "";
  position: absolute;
  display: block;
}

.tg-mark::before {
  width: 16px;
  height: 22px;
  border: 3px solid var(--tg-teal-2);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  left: 10px;
  top: 9px;
}

.tg-mark::after {
  width: 14px;
  height: 3px;
  background: var(--tg-gold);
  right: 8px;
  top: 19px;
}

.tg-mark i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tg-red);
  right: 6px;
  top: 17px;
}

.fingerprint-mark {
  display: none;
}

.approval-card.auth-waiting-card {
  width: min(1120px, calc(100vw - 48px));
  min-height: min(680px, calc(100vh - 48px));
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  align-items: stretch;
  border: 1px solid rgba(0, 107, 104, 0.22);
  border-radius: 8px;
  background: #fff;
  padding: clamp(24px, 4vw, 48px);
}

.approval-card .approval-brand {
  display: flex;
  align-items: center;
}

.request-from {
  margin-top: 20px;
  color: var(--tg-gold);
  font-size: 16px;
  text-transform: uppercase;
}

.relying-service {
  color: var(--tg-ink);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 850;
}

.approval-heading {
  max-width: 620px;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 850;
}

.challenge-panel {
  width: min(100%, 600px);
  border-color: #d9e4df;
  border-radius: 8px;
  background: #f5f8f4;
}

.number-tile {
  width: 118px;
  height: 118px;
  border: 1px solid rgba(0, 107, 104, 0.2);
  border-right: 6px solid var(--tg-teal);
  border-radius: 8px;
  background: #fff;
  color: var(--tg-navy);
  font-size: 58px;
  font-weight: 850;
}

.phone-open {
  color: #fff;
  border: 0;
  border-radius: 8px;
  background: var(--tg-navy);
}

.status-line {
  color: var(--tg-gold);
}

.cancel-action {
  z-index: 3;
  top: 24px;
  right: 32px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 69, 69, 0.28);
  border-radius: 8px;
  background: #fff;
  color: var(--tg-red);
  font-size: 18px;
}

.gate-illustration {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
  border-radius: 8px;
  background: #17324d;
  overflow: hidden;
}

.gate-illustration span {
  position: absolute;
  display: block;
  width: 52%;
  height: 72%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px 18px 4px 4px;
}

.gate-illustration span:nth-child(1) {
  left: 18%;
  top: 14%;
}

.gate-illustration span:nth-child(2) {
  left: 30%;
  top: 22%;
  border-color: rgba(240, 207, 139, 0.7);
}

.gate-illustration span:nth-child(3) {
  left: 42%;
  top: 30%;
  border-color: rgba(0, 147, 127, 0.8);
}

.gate-illustration b {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 8px;
  background: #fff;
  color: var(--tg-navy);
  font-size: 54px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.app-body {
  background: #eef2f0;
}

.mobile-app {
  border: 1px solid rgba(0, 107, 104, 0.18);
  border-radius: 24px;
  background: #f7f9f6;
}

.home-hero {
  background: #f7f9f6;
  padding-top: 20px;
}

.hero-pattern {
  display: none;
}

.verified-card {
  margin-top: 0;
  border: 1px solid rgba(0, 107, 104, 0.2);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.1);
  padding: 18px;
}

.verified-card-top {
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #e4eae7;
}

.trust-state {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e9f6f0;
  color: var(--tg-teal);
  font-size: 13px;
  font-weight: 900;
}

.identity-band {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
}

.avatar-stack {
  margin-top: 0;
}

.app-avatar {
  border-color: var(--tg-teal);
  background: #e7f5f1;
  color: var(--tg-teal);
}

.verified-badge {
  width: 34px;
  height: 34px;
  border-width: 3px;
  background: var(--tg-teal);
  font-size: 19px;
}

.verified-card h1 {
  margin: 0 0 6px;
  font-size: 24px;
}

.verified-copy {
  margin: 0;
  color: #52605d;
  font-size: 17px;
}

.credential-row {
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 12px 0 4px;
  font-size: 13px;
}

.credential-row strong {
  background: var(--tg-teal);
}

.quick-actions {
  gap: 10px;
  margin: 16px 0 0;
  border: 0;
  background: transparent;
}

.quick-actions a {
  min-height: 76px;
  grid-template-columns: auto 1fr;
  border: 1px solid #e1e8e4;
  border-radius: 8px;
  background: #f9fbf8;
}

.quick-actions a + a {
  border-left: 1px solid #e1e8e4;
}

.quick-actions span {
  color: var(--tg-gold);
  font-size: 30px;
}

.quick-actions strong {
  font-size: 18px;
}

.quick-actions em {
  color: #5d6864;
  font-size: 14px;
}

.app-bottom-nav {
  border-top: 1px solid #dce4e0;
}

.app-nav-link.active span {
  background: #e8f6f1;
  color: var(--tg-teal);
}

.app-page-header h1 {
  color: var(--tg-navy);
  font-weight: 850;
}

.filter-mark {
  color: var(--tg-teal);
}

.history-card,
.document-card,
.notification-row,
.profile-details div,
.profile-card,
.app-list-row {
  border: 1px solid #e1e8e4;
  border-radius: 8px;
  box-shadow: none;
}

.phone-body {
  background: #17324d;
}

.phone-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: #f7f9f6;
}

.phone-top {
  justify-content: space-between;
  border-bottom-color: #dce4e0;
}

.phone-stage {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e9f6f0;
  color: var(--tg-teal);
  font-size: 13px;
  font-weight: 900;
}

.summary-box {
  border-color: #dce4e0;
  border-radius: 8px;
}

.choice-button {
  border-radius: 8px;
  border-color: #d4dfda;
}

.choice-button:hover,
.choice-button:focus-visible {
  border-color: var(--tg-teal);
  outline-color: rgba(0, 147, 127, 0.18);
}

.approved-state strong {
  border-radius: 8px;
  background: var(--tg-teal);
}

.live-request-backdrop {
  background: rgba(17, 24, 39, 0.48);
}

.live-request-panel {
  border-color: var(--tg-teal);
  border-radius: 8px;
}

html[dir="rtl"] .number-tile {
  border-right: 1px solid rgba(0, 107, 104, 0.2);
  border-left: 6px solid var(--tg-teal);
}

/* TrustGate app-shell makeover */
.app-body {
  background:
    linear-gradient(135deg, rgba(15, 37, 58, 0.08), rgba(0, 107, 104, 0.08)),
    #eef2ef;
}

.mobile-app {
  border: 1px solid rgba(15, 37, 58, 0.18);
  border-radius: 18px;
  background: #f4f7f3;
  box-shadow: 0 28px 80px rgba(15, 37, 58, 0.18);
}

.mobile-app-content {
  padding: 0 18px 112px;
}

.tg-dashboard {
  display: grid;
  gap: 14px;
  padding-top: 18px;
}

.dashboard-command {
  position: relative;
  min-height: 250px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 20px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 147, 127, 0.32), transparent 52%),
    #15324d;
  color: #fff;
  overflow: hidden;
}

.dashboard-command::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -70px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.dashboard-brand-row,
.account-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-command .trustgate-logo {
  color: #fff;
}

.dashboard-command .trustgate-logo small {
  color: #cfe2dc;
}

.dashboard-command .trust-state {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.dashboard-kicker {
  position: relative;
  z-index: 1;
  margin: 10px 0 -8px;
  color: #f0cf8b;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dashboard-command h1 {
  position: relative;
  z-index: 1;
  max-width: 330px;
  margin: 0;
  color: #fff;
  font-size: 33px;
  line-height: 1.04;
  font-weight: 900;
}

.dashboard-command p:last-child {
  position: relative;
  z-index: 1;
  max-width: 330px;
  margin: -8px 0 0;
  color: #d7e5df;
  font-size: 15px;
  line-height: 1.35;
}

.identity-snapshot {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid #dbe6e1;
  border-radius: 8px;
  background: #fff;
}

.identity-snapshot .app-avatar {
  width: 62px;
  height: 62px;
  border-width: 0;
  background: #edf6f1;
  font-size: 25px;
}

.identity-snapshot span,
.trust-metrics span,
.task-board span,
.profile-section h2,
.account-person p {
  color: #6b776f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.identity-snapshot strong {
  display: block;
  margin-top: 3px;
  color: var(--tg-ink);
  font-size: 18px;
  line-height: 1.2;
}

.identity-snapshot small {
  display: block;
  margin-top: 4px;
  color: #56635f;
  font-size: 13px;
}

.trust-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.trust-metrics article {
  min-height: 120px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid #dbe6e1;
  border-radius: 8px;
  background: #fff;
}

.trust-metrics article:first-child {
  grid-column: 1 / -1;
  min-height: 92px;
  background: #edf7f3;
}

.trust-metrics strong {
  color: var(--tg-ink);
  font-size: 18px;
  line-height: 1.16;
}

.trust-metrics small {
  color: var(--tg-teal);
  font-size: 13px;
  font-weight: 850;
}

.task-board {
  display: grid;
  gap: 10px;
}

.task-board a {
  min-height: 86px;
  display: grid;
  grid-template-columns: 86px 1fr;
  grid-template-areas:
    "label title"
    "label note";
  align-items: center;
  gap: 0 14px;
  padding: 14px;
  border: 1px solid #dbe6e1;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.task-board span {
  grid-area: label;
  min-height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #15324d;
  color: #fff;
  text-transform: none;
}

.task-board strong {
  grid-area: title;
  align-self: end;
  color: var(--tg-ink);
  font-size: 18px;
}

.task-board small {
  grid-area: note;
  align-self: start;
  color: #5b6762;
  font-size: 13px;
  line-height: 1.3;
}

.assurance-band {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-left: 5px solid var(--tg-teal);
  border-radius: 8px;
  background: #fff;
  color: #52605c;
}

.assurance-band strong {
  color: var(--tg-ink);
}

.account-workspace {
  display: grid;
  gap: 14px;
  padding-top: 18px;
}

.account-topbar {
  min-height: 42px;
}

.account-topbar span {
  color: #697671;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-topbar .back-chip {
  position: static;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0 14px;
  border: 1px solid #d6e2dd;
  border-radius: 999px;
  background: #fff;
  color: var(--tg-navy);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.account-hero {
  display: grid;
  gap: 26px;
  padding: 18px;
  border-radius: 8px;
  background: #15324d;
  color: #fff;
}

.account-hero .trustgate-logo {
  color: #fff;
}

.account-hero .trustgate-logo small {
  color: #cfe2dc;
}

.account-person {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.account-person .app-avatar {
  width: 64px;
  height: 64px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 24px;
}

.account-person p,
.account-person h1,
.account-person span {
  margin: 0;
}

.account-person p {
  color: #f0cf8b;
}

.account-person h1 {
  margin-top: 5px;
  color: #fff;
  font-size: 26px;
  line-height: 1.05;
}

.account-person span {
  display: block;
  margin-top: 7px;
  color: #d7e5df;
  font-size: 14px;
  line-height: 1.25;
}

.profile-section {
  display: grid;
  gap: 8px;
}

.profile-section h2 {
  margin: 4px 2px 0;
}

.profile-section-grid {
  display: grid;
  gap: 8px;
}

.detail-row {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid #dbe6e1;
  border-radius: 8px;
  background: #fff;
}

.detail-row span {
  color: #697671;
  font-size: 13px;
}

.detail-row strong {
  color: var(--tg-ink);
  font-size: 17px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.detail-row small {
  color: #60706c;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.detail-row.static-strike span,
.detail-row.static-strike strong {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--tg-red);
}

.detail-row.static-strike small {
  color: var(--tg-red);
  font-weight: 850;
}

.session-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dbe6e1;
}

.session-panel strong,
.session-panel span {
  display: block;
}

.session-panel strong {
  color: var(--tg-ink);
}

.session-panel span {
  margin-top: 4px;
  color: #64716d;
  font-size: 13px;
}

.session-panel button {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: #17324d;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.pin-change-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #dbe6e1;
  border-radius: 8px;
  background: #fff;
}

.pin-change-panel strong,
.pin-change-panel span {
  display: block;
}

.pin-change-panel strong {
  color: var(--tg-ink);
}

.pin-change-panel span {
  margin-top: 4px;
  color: #64716d;
  font-size: 13px;
}

.pin-change-open {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: var(--tg-teal);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.pin-change-modal[hidden] {
  display: none;
}

.pin-change-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.pin-change-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 27, 42, 0.5);
  backdrop-filter: blur(4px);
}

.pin-change-dialog {
  position: relative;
  z-index: 1;
  width: min(500px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid #dbe6e1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 37, 58, 0.26);
}

.pin-change-dialog strong,
.pin-change-dialog span {
  display: block;
}

.pin-change-dialog strong {
  padding-right: 36px;
  color: var(--tg-ink);
  font-size: 25px;
}

.pin-change-dialog span {
  margin-top: 7px;
  color: #64716d;
  font-size: 15px;
  line-height: 1.35;
}

.pin-change-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #eef5f2;
  color: var(--tg-ink);
  font-size: 24px;
  font-weight: 900;
}

.pin-change-form {
  display: grid;
  gap: 10px;
}

.pin-change-form label {
  display: grid;
  gap: 6px;
}

.pin-change-form input {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #cddcd7;
  border-radius: 8px;
  background: #f9fcfb;
  color: var(--tg-ink);
  font-size: 18px;
  font-weight: 800;
}

.pin-change-form button {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: var(--tg-teal);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.pin-change-form button:disabled {
  opacity: 0.55;
}

.pin-change-message {
  min-height: 20px;
  color: #64716d;
  font-size: 13px;
  font-weight: 800;
}

.pin-change-message.success {
  color: var(--tg-teal-dark);
}

.pin-change-message.error {
  color: var(--tg-red);
}

.app-bottom-nav {
  margin: 0 12px 12px;
  padding: 8px;
  border: 1px solid #dbe6e1;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 34px rgba(15, 37, 58, 0.12);
}

.app-nav-link {
  color: #263733;
}

.app-nav-link span {
  width: 42px;
  height: 30px;
  font-size: 21px;
}

.app-nav-link strong {
  font-size: 11px;
}

.app-nav-link.active span {
  background: #15324d;
  color: #fff;
}

.admin-body {
  min-height: 100vh;
  background: #eef2ef;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 28px;
}

.admin-panel {
  width: min(1180px, 100%);
}

.admin-lock-panel {
  width: min(560px, 100%);
}

.admin-console {
  display: grid;
  gap: 18px;
}

.admin-lock,
.admin-hero,
.admin-create,
.admin-account-card,
.admin-loading {
  border: 1px solid #d4e0db;
  border-radius: 8px;
  background: #fff;
}

.admin-lock {
  display: grid;
  gap: 18px;
  padding: 28px;
  box-shadow: 0 22px 60px rgba(17, 42, 65, 0.12);
}

.admin-lock-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-lock-brand > span {
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff4de;
  color: #8a5b00;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-lock h1,
.admin-lock p {
  margin: 0;
}

.admin-lock h1 {
  color: var(--tg-navy);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.02;
}

.admin-lock p {
  color: #53625e;
  font-size: 16px;
  line-height: 1.45;
}

.admin-login-form {
  display: grid;
  gap: 12px;
}

.admin-login-form label {
  display: grid;
  gap: 7px;
  color: #65736e;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-login-form input {
  min-height: 50px;
  border: 1px solid #cbd8d3;
  border-radius: 8px;
  padding: 0 13px;
  background: #fbfcfa;
  color: var(--tg-ink);
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  text-transform: none;
}

.admin-login-form button {
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  background: var(--tg-navy);
  color: #fff;
  font-size: 17px;
  font-weight: 950;
}

.admin-login-form button:disabled {
  opacity: 0.55;
}

.admin-login-message {
  min-height: 20px;
  color: #65736e;
  font-size: 13px;
  font-weight: 850;
}

.admin-login-message.error {
  color: var(--tg-red);
}

.admin-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(0, 147, 127, 0.18), transparent 48%),
    #15324d;
  color: #fff;
}

.admin-hero .trustgate-logo {
  color: #fff;
}

.admin-hero .trustgate-logo small {
  color: #cfe2dc;
}

.admin-hero p,
.admin-hero h1,
.admin-hero span {
  margin: 0;
}

.admin-hero p {
  color: #f0cf8b;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-hero h1 {
  margin-top: 10px;
  max-width: 760px;
  color: #fff;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.04;
}

.admin-hero span {
  display: block;
  margin-top: 12px;
  max-width: 760px;
  color: #d8e5df;
  font-size: 16px;
  line-height: 1.45;
}

.admin-hero code {
  color: #fff;
  font-weight: 900;
}

.admin-session-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.admin-session-strip strong,
.admin-session-strip small {
  color: #fff;
}

.admin-session-strip small {
  color: #d8e5df;
}

.admin-session-strip button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 900;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.admin-stats article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid #d4e0db;
  border-radius: 8px;
  background: #fff;
}

.admin-stats span,
.admin-account-facts dt {
  color: #65736e;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-stats strong {
  color: var(--tg-navy);
  font-size: 34px;
}

.admin-create {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.admin-create h2,
.admin-accounts h2 {
  margin: 0;
  color: var(--tg-navy);
}

.admin-create form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.admin-create input,
.admin-create select {
  min-height: 46px;
  min-width: 0;
  border: 1px solid #cbd8d3;
  border-radius: 8px;
  padding: 0 12px;
  background: #fbfcfa;
  color: var(--tg-ink);
  font: inherit;
}

.admin-create button,
.admin-preset {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--tg-navy);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.admin-accounts {
  display: grid;
  gap: 12px;
}

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

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

.admin-account-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.admin-account-head strong,
.admin-account-head span {
  display: block;
}

.admin-account-head strong {
  color: var(--tg-ink);
  font-size: 20px;
}

.admin-account-head span {
  margin-top: 4px;
  color: #5e6b67;
  overflow-wrap: anywhere;
}

.admin-status {
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #e8f6f1;
  color: var(--tg-teal);
  font-size: 12px;
}

.admin-status.suspended {
  background: #fff0f0;
  color: var(--tg-red);
}

.admin-account-facts {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 12px;
  margin: 0;
}

.admin-account-facts dd {
  margin: 0;
  color: var(--tg-ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

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

.admin-preset {
  background: #eef5f2;
  color: var(--tg-navy);
}

.admin-preset.active {
  background: var(--tg-teal);
  color: #fff;
}

.admin-preset.danger {
  background: #fff0f0;
  color: var(--tg-red);
}

.admin-loading {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 28px;
}

@media (max-width: 900px) {
  .admin-stats,
  .admin-account-list,
  .admin-create form {
    grid-template-columns: 1fr;
  }

  .admin-hero {
    grid-template-columns: 1fr;
  }

  .admin-button-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .tg-auth-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-intro {
    min-height: 300px;
  }

  .approval-card.auth-waiting-card {
    grid-template-columns: 1fr;
  }

  .gate-illustration {
    min-height: 220px;
  }
}

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

  .tg-auth-panel {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    border: 0;
  }

  .auth-intro,
  .auth-card,
  .verified-card,
  .quick-actions a,
  .phone-card {
    border-radius: 0;
  }

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

  .identity-band {
    grid-template-columns: 1fr;
  }

  .approval-card.auth-waiting-card {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    border: 0;
  }

  .challenge-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .number-tile {
    width: 100%;
    border-right: 0;
    border-bottom: 6px solid var(--tg-teal);
  }
}
