@font-face { font-family: Sansation; font-style: normal; font-weight: 700; font-display: swap; src: url("sansation-700.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --canvas: #f5f4f0;
  --surface: #ffffff;
  --surface-2: #f0eeea;
  --border: #d4d0c9;
  --text: #1d1c19;
  --muted: #6b6560;
  --teal: #0f6071;
  --gold: #b87308;
  --danger: #b4412d;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }
#content { padding: 0 !important; }
#push { display: none; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(15, 96, 113, .1), transparent 28rem),
    radial-gradient(circle at 85% 88%, rgba(233, 165, 42, .1), transparent 25rem),
    var(--canvas);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
a { color: inherit; }

.identity-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.identity-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
  padding: 1.25rem 0;
}

.identity-brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}

.identity-mark {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: .75rem;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}

.identity-mark svg { width: 1.3rem; height: 1.3rem; }
.identity-brand-copy { display: grid; gap: .05rem; }
.identity-brand-copy strong { font-size: .92rem; letter-spacing: -.01em; }
.identity-brand-copy span { color: var(--muted); font-size: .7rem; }

.identity-secure {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--muted);
  font-size: .72rem;
}

.identity-secure svg { width: .85rem; height: .85rem; color: #6ee7b7; }

#content, #content .wrap, .wrap {
  padding: 0 !important;
  margin: 0 auto !important;
  max-width: 100% !important;
  width: 100% !important;
}

.identity-page {
  width: 100%;
  margin: 0;
  padding: 0;
}

.identity-main {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100vh;
  padding: 1.5rem 1rem;
  box-sizing: border-box;
}

.identity-card {
  position: relative;
  width: min(100%, 27rem);
  padding: 1.8rem;
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 70px rgba(54, 49, 39, .12);
  backdrop-filter: blur(14px);
}

.identity-card-header { margin-bottom: 1rem; text-align: center; }
.identity-card-header p { padding: 0; }
.identity-logo { display: block; width: 3.5rem; height: 3.5rem; margin: 0 auto .6rem; border-radius: 1rem; object-fit: contain; box-shadow: 0 10px 24px rgba(15, 96, 113, .16); }
.identity-eyebrow { margin: 0 0 .25rem; color: var(--gold); font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.identity-card h1 { margin: 0; font-family: Sansation, ui-sans-serif, system-ui, sans-serif; font-size: 1.45rem; letter-spacing: -.03em; }
.identity-lead { margin: .35rem auto 0; color: var(--muted); font-size: .84rem; line-height: 1.45; }

.identity-alert {
  margin: 0 0 1.1rem;
  padding: .8rem .9rem;
  border: 1px solid rgba(243, 139, 114, .42);
  border-radius: .7rem;
  background: #fff1ee;
  color: #8f2e1c;
  font-size: .78rem;
  line-height: 1.45;
}

.identity-alert strong { display: block; margin-bottom: .2rem; color: #762515; }
.identity-alert p { margin: 0; }
.identity-alert-warning { border-color: #e5c27b; background: #fff8e8; color: #79500b; }

.identity-form { display: grid; gap: 1rem; }
.identity-field { display: grid; gap: .42rem; }
.identity-field label { color: #3c3934; font-size: .78rem; font-weight: 600; }
.identity-input-wrap { position: relative; }

.identity-input {
  width: 100%;
  min-height: 2.8rem;
  padding: .72rem .85rem;
  border: 1px solid var(--border);
  border-radius: .65rem;
  outline: none;
  background: var(--surface-2);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.identity-input::placeholder { color: #99928a; }
.identity-input:hover { border-color: #aaa39a; }
.identity-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233, 165, 42, .14); }
.identity-input:disabled { opacity: .65; }
.identity-password { padding-right: 3.2rem; }

/* Custom select with distance from right edge for chevron down icon */
select.identity-input,
.identity-country-select,
.identity-province-select,
.identity-city-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='none' stroke='%2355504a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 1.15rem) center;
  background-size: 14px 14px;
  padding-right: 2.75rem !important;
  cursor: pointer;
}

select.identity-input:hover,
.identity-country-select:hover,
.identity-province-select:hover,
.identity-city-select:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='none' stroke='%23111827' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}
.iti { width: 100%; color: var(--text); }
.iti .identity-phone-input { width: 100%; }
.iti__country-container { color: var(--text); }
.iti__selected-country { border-radius: .65rem 0 0 .65rem; }
.iti__selected-country:hover, .iti__selected-country:focus { background: #e6e2dc; }
.iti__dropdown-content { border-color: var(--border); background: var(--surface); box-shadow: 0 12px 30px rgba(54, 49, 39, .16); }
.iti__search-input { border-color: var(--border); background: var(--surface); color: var(--text); }
.iti__country.iti__highlight { background: var(--surface-2); }
.identity-field-help { margin: 0; padding: 0; color: var(--muted); font-size: .68rem; line-height: 1.4; }

/* Hide native Edge / IE password reveal and clear icons to prevent duplicate eye icons */
input::-ms-reveal,
input::-ms-clear {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.identity-password-toggle {
  position: absolute;
  inset: 50% .45rem auto auto;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: .42rem;
  padding: .35rem .45rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.identity-password-toggle:hover { background: var(--surface); color: var(--text); }

.identity-options { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.identity-check { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .76rem; cursor: pointer; }
.identity-check input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--teal); }
.identity-link { color: #8d5904; font-size: .76rem; font-weight: 600; text-decoration: none; }
.identity-link:hover { color: var(--gold); text-decoration: underline; }

.identity-submit {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: .65rem;
  padding: .75rem 1rem;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 9px 24px rgba(15, 96, 113, .22);
  transition: filter .15s, transform .15s;
}

.identity-submit:hover { filter: brightness(1.12); }
.identity-submit:active { transform: translateY(1px); }
.identity-submit:disabled { cursor: wait; opacity: .72; }

.identity-divider { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0; color: #888078; font-size: .68rem; }
.identity-divider::before, .identity-divider::after { height: 1px; flex: 1; background: var(--border); content: ""; }
.identity-secondary { margin: 0; color: var(--muted); font-size: .78rem; text-align: center; }
.identity-secondary a { color: var(--text); font-weight: 700; text-decoration: none; }
.identity-secondary a:hover { color: var(--gold); }

.identity-footer { padding: 1rem; color: #77726b; font-size: .68rem; text-align: center; }

.identity-standalone {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem 1rem;
}

.identity-form .identity-alert { margin-bottom: 0; }
.identity-card-copy { margin: -.45rem 0 1.1rem; color: var(--muted); font-size: .78rem; line-height: 1.5; text-align: center; }
.identity-back { margin-top: 1.25rem; text-align: center; }
.identity-status { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.6; text-align: center; }
.identity-account-email { margin: -.45rem 0 1.2rem; color: var(--muted); font-size: .78rem; text-align: center; }
.identity-optional { color: var(--muted); font-size: .68rem; font-weight: 400; }
.identity-admin-link { margin-top: 1rem; text-align: center; }
.identity-table-wrap { overflow-x: auto; }
.identity-table { width: 100%; border-collapse: collapse; font-size: .75rem; }
.identity-table th, .identity-table td { padding: .7rem .5rem; border-bottom: 1px solid var(--border); text-align: left; }
.identity-table th { color: var(--muted); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.identity-table button { border: 0; background: transparent; color: var(--gold); cursor: pointer; font-weight: 700; }
.identity-card-wide { width: min(100%, 48rem); }
.identity-card-admin {
  width: min(100%, 78rem);
  max-width: 78rem;
  padding: 2.2rem;
  border-radius: 1.25rem;
}

.identity-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}
.identity-admin-title-box { display: flex; align-items: center; gap: .85rem; }
.identity-admin-title-box h1 { margin: 0; font-size: 1.45rem; line-height: 1.2; text-align: left; }
.identity-admin-title-box p { margin: .2rem 0 0; color: var(--muted); font-size: .8rem; text-align: left; }
.identity-admin-breadcrumbs {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: var(--muted);
}
.identity-admin-breadcrumbs a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}
.identity-admin-breadcrumbs a:hover {
  color: var(--gold);
}

.identity-admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: .85rem;
  margin-bottom: 1.5rem;
}
.identity-stat-card {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .9rem 1.1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: .85rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .03);
}
.identity-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: .65rem;
  flex-shrink: 0;
}
.identity-stat-icon-blue { background: #e0f2fe; color: #0284c7; }
.identity-stat-icon-green { background: #dcfce7; color: #16a34a; }
.identity-stat-icon-amber { background: #fef3c7; color: #d97706; }
.identity-stat-icon-slate { background: #f1f5f9; color: #475569; }

.identity-stat-number {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.identity-stat-label {
  font-size: .7rem;
  color: var(--muted);
  font-weight: 500;
}

.identity-admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.identity-admin-search {
  display: flex;
  gap: .5rem;
  flex: 1;
  max-width: 24rem;
}
.identity-admin-search input {
  flex: 1;
  padding: .55rem .85rem;
  border: 1px solid var(--border);
  border-radius: .65rem;
  font-size: .8rem;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .02);
}
.identity-admin-search input:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}
.identity-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem .95rem;
  border: 1px solid var(--border);
  border-radius: .65rem;
  background: #fff;
  color: var(--text);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
}
.identity-admin-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: #fff;
}
.identity-admin-btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(184, 115, 8, .2);
}
.identity-admin-btn-primary:hover {
  background: #996205;
  border-color: #996205;
  color: #fff !important;
  transform: translateY(-1px);
}

.identity-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: .85rem;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .04);
}
.identity-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
  text-align: left;
}
.identity-table th {
  padding: .85rem 1rem;
  background: #f8fafc;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.identity-table td {
  padding: .85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.identity-table tr:last-child td { border-bottom: none; }
.identity-table tbody tr:hover td { background: #fafbfc; }

.identity-user-cell {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.identity-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
  color: #fff;
}

.identity-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .55rem;
  border-radius: .4rem;
  font-size: .68rem;
  font-weight: 700;
}
.identity-badge-active { background: #e6f7ec; color: #15803d; }
.identity-badge-disabled { background: #fee2e2; color: #b91c1c; }
.identity-badge-admin { background: #fef3c7; color: #92400e; }
.identity-badge-user { background: #f1f5f9; color: #475569; }
.identity-badge-verified { background: #ecfdf5; color: #047857; }
.identity-badge-unverified { background: #fff7ed; color: #c2410c; }
.identity-dot {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: currentColor;
}

.identity-row-actions {
  display: inline-flex;
  gap: .35rem;
  align-items: center;
  flex-wrap: wrap;
}
.identity-btn-xs {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .3rem .55rem !important;
  border: 1px solid var(--border) !important;
  border-radius: .45rem !important;
  background: #fff !important;
  color: var(--text) !important;
  font-size: .7rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
}
.identity-btn-xs:hover {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
  background: #fffdf9 !important;
}
.identity-btn-xs-danger { color: #b91c1c !important; }
.identity-btn-xs-danger:hover {
  border-color: #b91c1c !important;
  background: #fee2e2 !important;
  color: #b91c1c !important;
}
.identity-btn-xs-success { color: #15803d !important; }
.identity-btn-xs-success:hover {
  border-color: #15803d !important;
  background: #e6f7ec !important;
  color: #15803d !important;
}

.identity-impersonation-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: .5rem 1rem;
  background: #92400e;
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}
.identity-impersonation-bar a {
  padding: .2rem .6rem !important;
  border-radius: .4rem;
  background: #fff;
  color: #92400e !important;
  font-weight: 700;
  text-decoration: none;
}
.identity-impersonation-bar a:hover {
  background: #fef3c7;
}

.welcome-shell { display: grid; width: min(100%, 34rem); gap: .75rem; }
.welcome-card { width: 100%; }
.welcome-card .identity-logo { margin-bottom: 1rem; }
.welcome-card .identity-eyebrow { margin-bottom: .1rem; }
.welcome-card .identity-lead { margin-top: .2rem; }
.welcome-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-top: 0; }
.identity-action {
  display: grid;
  width: 100%;
  gap: .22rem;
  min-width: 0;
  min-height: 4.4rem;
  align-content: center;
  box-sizing: border-box;
  padding: .85rem !important;
  border: 1px solid var(--border);
  border-radius: .7rem;
  background: var(--surface-2);
  text-decoration: none;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.identity-action:link,
.identity-action:visited,
.identity-action:hover,
.identity-action:focus-visible,
.identity-action:active { padding: .85rem !important; color: var(--text) !important; }
.identity-action:hover { border-color: var(--gold); background: #fffaf0; color: var(--text) !important; box-shadow: inset 0 0 0 1px rgba(184, 115, 8, .08); }
.identity-action strong { color: var(--text) !important; font-size: .8rem; }
.identity-action span { color: var(--muted) !important; font-size: .7rem; line-height: 1.4; }
.identity-action-primary,
.identity-action-account,
.identity-action-admin {
  display: flex !important;
  grid-column: 1 / -1;
  min-height: 4.8rem;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}
.identity-action-primary,
.identity-action-account {
  padding: 1rem 1.1rem !important;
  border-color: var(--teal);
  background: var(--teal);
  box-shadow: 0 10px 24px rgba(15, 96, 113, .2);
}
.identity-action-primary:link,
.identity-action-primary:visited,
.identity-action-primary:hover,
.identity-action-primary:focus-visible,
.identity-action-primary:active,
.identity-action-account:link,
.identity-action-account:visited,
.identity-action-account:hover,
.identity-action-account:focus-visible,
.identity-action-account:active { padding: 1rem 1.1rem !important; color: #fff !important; }
.identity-action-primary:hover,
.identity-action-account:hover { border-color: var(--teal) !important; background: #0c5362 !important; box-shadow: 0 12px 28px rgba(15, 96, 113, .28) !important; }

.identity-action-admin {
  padding: 1rem 1.1rem !important;
  border: 1px solid rgba(184, 115, 8, .35) !important;
  border-radius: .7rem;
  background: #fffdf9 !important;
  box-shadow: 0 4px 14px rgba(184, 115, 8, .06) !important;
  color: var(--text) !important;
}
.identity-action-admin:link,
.identity-action-admin:visited,
.identity-action-admin:active { padding: 1rem 1.1rem !important; color: var(--text) !important; }
.identity-action-admin:hover,
.identity-action-admin:focus-visible {
  padding: 1rem 1.1rem !important;
  border-color: var(--gold) !important;
  background: #fff8eb !important;
  box-shadow: 0 8px 22px rgba(184, 115, 8, .14) !important;
  transform: translateY(-1px);
  color: var(--text) !important;
}
.identity-action-admin span {
  display: grid;
  gap: .18rem;
  text-align: left;
}
.identity-action-admin strong {
  font-size: .88rem;
  color: var(--text) !important;
}
.identity-action-admin small {
  color: var(--muted);
  font-size: .7rem;
}
.identity-action-admin svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  flex: 0 0 auto;
  margin-left: auto;
}

.identity-action-secondary:hover { border-color: var(--gold) !important; background: #fffaf0 !important; box-shadow: inset 0 0 0 1px rgba(184, 115, 8, .08) !important; }
.identity-action-primary span,
.identity-action-account span { display: grid; gap: .18rem; color: rgba(255, 255, 255, .72) !important; }
.identity-action-primary strong,
.identity-action-account strong { color: #fff !important; font-size: .88rem; }
.identity-action-primary small,
.identity-action-account small { font-size: .7rem; }
.identity-action-primary svg,
.identity-action-account svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.identity-action-primary > svg:first-child { width: 1.35rem; height: 1.35rem; margin-right: .15rem; }
.identity-action-primary span { flex: 1; }
.identity-action-secondary { display: flex; min-height: 5rem; align-items: center; gap: .75rem; padding: .9rem !important; background: #fff; }
.identity-action-secondary:link,
.identity-action-secondary:visited,
.identity-action-secondary:hover,
.identity-action-secondary:focus-visible,
.identity-action-secondary:active { padding: .9rem !important; }
.identity-action-secondary > svg { width: 1.3rem; height: 1.3rem; flex: 0 0 auto; fill: none; stroke: var(--gold); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.identity-action-secondary span { display: grid; gap: .2rem; }
.identity-action-secondary small { color: var(--muted); font-size: .66rem; }

.welcome-apps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .65rem;
  width: 100%;
}
@media (max-width: 520px) {
  .welcome-apps {
    grid-template-columns: repeat(2, 1fr);
    gap: .55rem;
  }
}
.welcome-apps a {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: .85rem .35rem !important;
  border: 1px solid rgba(212, 208, 201, .8);
  border-radius: .9rem;
  background: rgba(255, 255, 255, .7);
  color: var(--text) !important;
  box-shadow: 0 8px 22px rgba(54, 49, 39, .07);
  font-size: .72rem;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: border-color .15s, box-shadow .15s, color .15s, transform .15s;
}
.welcome-apps a:hover { border-color: rgba(15, 96, 113, .45); color: var(--teal) !important; box-shadow: 0 12px 28px rgba(54, 49, 39, .12); transform: translateY(-2px); }
.welcome-apps svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: var(--teal); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.welcome-apps i { font-size: 1.6rem; color: var(--teal); line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.welcome-apps img { width: 1.6rem; height: 1.6rem; object-fit: contain; }

.welcome-app-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  width: 100%;
  min-width: 0;
  text-align: center;
}
.welcome-app-name {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.welcome-app-desc {
  display: block;
  font-size: .62rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.welcome-app-balance {
  color: #15803d !important;
  font-weight: 700;
  font-size: .66rem;
  letter-spacing: .02em;
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.identity-logout-btn {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: .65rem;
  background: rgba(255, 255, 255, .8);
  color: var(--muted);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, transform .15s;
}
.identity-logout-btn:hover {
  border-color: rgba(143, 46, 28, .35);
  background: #fff1ee;
  color: #8f2e1c;
  transform: translateY(-1px);
}
.identity-modal {
  margin: auto;
  padding: 0;
  border: none;
  border-radius: 1.15rem;
  background: transparent;
  box-shadow: 0 25px 70px rgba(0, 0, 0, .3);
  max-width: none;
}
.identity-modal::backdrop {
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(4px);
}
.identity-modal-box {
  width: min(90vw, 24rem);
  padding: 1.6rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  text-align: center;
  box-sizing: border-box;
}
.identity-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto .9rem;
  border-radius: 50%;
  background: #fff1ee;
  color: #8f2e1c;
}
/* Remove default SimpleSAMLphp dark background on inline text links only */
.identity-link:hover,
.identity-link:focus,
.identity-secondary a:hover,
.identity-secondary a:focus,
.identity-options a:hover,
.identity-options a:focus,
.identity-admin-link a:hover,
.identity-admin-link a:focus {
  background-color: transparent !important;
  padding: 0 !important;
  color: var(--gold) !important;
}

.identity-back-group { margin-top: 1.25rem; }
.identity-back-group .identity-back { margin-top: .35rem; }
.identity-back-group .identity-back:first-child { margin-top: 0; }

.identity-modal-title {
  margin: 0 0 .35rem;
  font-family: Sansation, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.25rem;
  color: var(--text);
  border-bottom: none !important;
  padding-bottom: 0 !important;
}
.identity-modal-text {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.5;
}
.identity-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}
.identity-modal-cancel {
  padding: .65rem 1rem;
  border: 1px solid var(--border);
  border-radius: .7rem;
  background: #f8fafc;
  color: var(--text);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.identity-modal-cancel:hover {
  background: #e2e8f0;
}
.identity-modal-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1rem;
  border: 1px solid transparent;
  border-radius: .7rem;
  background: #8f2e1c;
  color: #fff !important;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}
.identity-modal-confirm:hover {
  background: #742516;
}

.identity-admin-tabs {
  display: flex;
  gap: .5rem;
  padding: .35rem;
  background: #f1f5f9;
  border-radius: .8rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}
.identity-admin-tab {
  display: inline-flex;
  align-items: center;
  padding: .5rem 1rem;
  border-radius: .6rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}
.identity-admin-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .6);
}
.identity-admin-tab-active {
  background: #fff !important;
  color: var(--teal) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.identity-badge-gold {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid rgba(217, 119, 6, .25);
  font-weight: 700;
}
.identity-badge-regular {
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
}

.welcome-pass-status {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .65rem;
  margin: -.2rem 0 1rem;
}
.welcome-pass-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .75rem;
  border-radius: 2rem;
  font-size: .75rem;
  font-weight: 700;
}
.welcome-pass-pill-golden {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid rgba(217, 119, 6, .35);
  box-shadow: 0 4px 12px rgba(217, 119, 6, .12);
}
.welcome-pass-pill-regular {
  background: #f1f5f9;
  color: var(--muted);
  border: 1px solid var(--border);
}
.welcome-upgrade-trigger {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .8rem;
  border: 1px solid var(--gold);
  border-radius: 2rem;
  background: #fffdf9;
  color: #8d5904;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(184, 115, 8, .12);
  transition: all .15s;
}
.welcome-upgrade-trigger:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-1px);
}

.welcome-app-item {
  position: relative;
  overflow: visible;
}

/* ==========================================================================
   2D AISANTARA GOLDEN PASS CARD (Matching awlad-school/aisan-fe/index.html)
   ========================================================================== */
.golden-pass-card {
  position: relative;
  width: 100%;
  max-width: 34rem;
  aspect-ratio: 1.586 / 1;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #b38a3a 0%, #e6c877 22%, #f8e7b0 45%, #ddb966 68%, #f1db98 85%, #a98134 100%);
  border: 2px solid rgba(70, 45, 5, 0.75);
  box-shadow:
    inset 0 0 0 3px rgba(255, 252, 238, 0.75),
    inset 0 0 0 5px rgba(95, 62, 8, 0.55),
    0 16px 40px rgba(54, 40, 15, 0.22);
  padding: 1.5rem 1.65rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  overflow: hidden;
  color: #1a1000;
  user-select: none;
  margin-bottom: 0;
}

.golden-pass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 15%, rgba(255, 250, 225, 0.45) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.gcard-map-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
  z-index: 0;
}

.gcard-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Card Header */
.gcard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo on top-left */
.gcard-brand-logo {
  height: 38px;
  width: auto;
  max-width: 175px;
  object-fit: contain;
  display: block;
}

/* Top Right Signout Button */
.gcard-top-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.gcard-signout-btn {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(95, 62, 8, 0.45);
  color: #1a1000;
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  aspect-ratio: 1 / 1 !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  box-sizing: border-box !important;
  line-height: 1 !important;
  transition: all 0.15s ease;
}
.gcard-signout-btn svg {
  display: block;
  width: 16px;
  height: 16px;
  margin: auto;
  pointer-events: none;
}
.gcard-signout-btn:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: scale(1.08);
}

/* Middle section: Vertically centered */
.gcard-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin: 0.8rem 0;
}
.gcard-kicker {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #2a1a02;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.gcard-name {
  font-family: Sansation, "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #1a1000;
  text-shadow: 1.5px 1.5px 0 rgba(255, 248, 215, 0.85);
  margin: 0 0 0.45rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
}

/* Pass Pill Banner */
.gcard-banner {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #2e2108 0%, #0f0a02 100%);
  border: 1.5px solid #d4af37;
  box-shadow: 0 4px 12px rgba(60, 36, 0, 0.35);
  padding: 2px 8px 2px 2px;
  gap: 8px;
  max-width: 100%;
}
.gcard-banner-pill {
  background: linear-gradient(135deg, #fff3c4, #ebcb6c, #b98a2c, #f4dc92);
  color: #2a1a02;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.gcard-banner-tag {
  color: #f2ce6a;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding-right: 4px;
  white-space: nowrap;
}

/* Models strip */
.gcard-models {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: #2a1a02;
  letter-spacing: 0.05em;
  margin-top: 0.35rem;
}

/* API Key & Footer Row */
.gcard-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}
.gcard-footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  max-width: calc(100% - 12.5rem);
  min-width: 0;
  flex-shrink: 1;
}
.gcard-footer-right {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
}

/* Bottom Right Token Balance Amount */
.gcard-balance-container,
.gcard-balance-badge {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  text-align: right;
  flex-shrink: 0;
}
.gcard-balance-val {
  font-family: Sansation, "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(1.45rem, 4.4vw, 2.2rem);
  font-weight: 800;
  color: #0b3d33;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 1.5px 1.5px 0 rgba(255, 248, 215, 0.75);
  white-space: nowrap;
}
.gcard-key-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
  width: 100%;
  box-sizing: border-box;
}
.gcard-key {
  flex: 1 1 auto;
  min-width: 0;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a1000;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.32);
  padding: 0.22rem 0.5rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(95, 62, 8, 0.25);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}
.gcard-copy-btn {
  flex: 0 0 auto;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 0.4rem;
  cursor: pointer;
  border: 1px solid rgba(95, 62, 8, 0.45);
  background: linear-gradient(135deg, #fff3c4, #ebcb6c);
  color: #2a1a02;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.15s ease;
  white-space: nowrap;
  box-sizing: border-box;
}
.gcard-copy-btn:hover {
  background: #fff;
  transform: translateY(-1px);
}
.gcard-create-key-btn {
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  border-radius: 0.4rem;
  cursor: pointer;
  border: 1px solid rgba(95, 62, 8, 0.45);
  background: linear-gradient(135deg, #fff3c4, #ebcb6c);
  color: #2a1a02;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.15s ease;
  white-space: nowrap;
  box-sizing: border-box;
}
.gcard-create-key-btn:hover {
  background: #fff;
  transform: translateY(-1px);
}
.gcard-tagline {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  color: #3a2504;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* Dynamic Geography Fields: Proper Spacing/Gap */
/* Green Sign In button on card for non-logged-in users */
.gcard-signin-btn,
.gcard-signin-btn:link,
.gcard-signin-btn:visited,
.gcard-signin-btn:hover,
.gcard-signin-btn:focus,
.gcard-signin-btn:active {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.55rem !important;
  padding: 0.55rem 1.25rem !important;
  background: linear-gradient(135deg, #0e3f36 0%, #134e43 100%) !important;
  color: #5eead4 !important;
  border: 1.5px solid rgba(47, 191, 165, 0.45) !important;
  border-radius: 999px !important;
  font-family: Sansation, "Plus Jakarta Sans", system-ui, sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(10, 45, 38, 0.3) !important;
  transition: all 0.2s ease !important;
}
.gcard-signin-btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gcard-signin-btn:hover,
.gcard-signin-btn:focus {
  background: #2fbfa5 !important;
  color: #0b241e !important;
  border-color: #2fbfa5 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(47, 191, 165, 0.42) !important;
  padding: 0.55rem 1.25rem !important;
}

/* Dynamic Geography Fields: Proper Spacing/Gap */
.identity-indo-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
}
@media (min-width: 480px) {
  .identity-indo-wrap {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

/* App Details Modal Styles */
#modal-app-details {
  width: min(calc(100vw - 2rem), 34rem) !important;
  max-width: 34rem !important;
}
.app-modal-box {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 1.25rem !important;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 25px 65px -12px rgba(0, 0, 0, 0.35);
  text-align: left;
}
.app-modal-banner-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  background: linear-gradient(135deg, #092c25 0%, #11574a 60%, #9a7628 140%);
  overflow: hidden;
  display: block;
}
.app-modal-banner-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  display: block;
}
.app-modal-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2), transparent 60%),
    linear-gradient(135deg, #092c25 0%, #11574a 60%, #9a7628 140%);
  pointer-events: none;
}
.app-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 10;
  line-height: 1;
}
.app-modal-close svg {
  display: block;
  width: 14px;
  height: 14px;
  margin: auto;
}
.app-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.08);
}
.app-modal-body {
  padding: 0 1.6rem 1.6rem;
}
.app-modal-head {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-top: 0;
}
.app-modal-icon-wrap {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 3px solid #ffffff;
  box-shadow: 0 10px 25px -4px rgba(15, 96, 113, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.75rem;
  color: var(--teal);
  margin-top: -2rem;
  position: relative;
  z-index: 3;
}
.app-modal-icon-wrap img {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
}
.app-modal-icon-wrap svg {
  width: 2.35rem;
  height: 2.35rem;
  stroke: var(--teal);
  fill: none;
}
.app-modal-title {
  margin: 0.35rem 0 0.15rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  border-bottom: none !important;
  text-decoration: none !important;
}
.app-modal-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: #e6f4f1;
  color: #126356;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.app-modal-desc {
  color: #4b5563;
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 1.4rem;
  background: #f8fafc;
  padding: 1rem 1.15rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
}
.app-modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}
.app-modal-launch-btn,
.app-modal-launch-btn:link,
.app-modal-launch-btn:visited,
.app-modal-launch-btn:hover,
.app-modal-launch-btn:focus,
.app-modal-launch-btn:active {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  padding: 0.7rem 1.4rem !important;
  border-radius: 0.7rem !important;
  background: var(--teal) !important;
  color: #fff !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(15, 96, 113, 0.28) !important;
  transition: all 0.15s ease !important;
}
.app-modal-launch-btn:hover,
.app-modal-launch-btn:focus {
  background: #0c5362 !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 96, 113, 0.38) !important;
  padding: 0.7rem 1.4rem !important;
}

@media (max-width: 560px) {
  .golden-pass-card {
    padding: 0.95rem 1.15rem 0.85rem;
    border-radius: 0.95rem;
    box-shadow:
      inset 0 0 0 2px rgba(255, 252, 238, 0.75),
      inset 0 0 0 3.5px rgba(95, 62, 8, 0.55),
      0 10px 24px rgba(54, 40, 15, 0.2);
  }
  .gcard-brand-logo {
    height: clamp(20px, 5.2vw, 30px);
    max-width: 130px;
  }
  .gcard-signout-btn {
    width: 26px;
    height: 26px;
  }
  .gcard-body {
    margin: 0.35rem 0;
  }
  .gcard-kicker {
    font-size: clamp(0.55rem, 1.8vw, 0.68rem);
    margin-bottom: 0.1rem;
  }
  .gcard-name {
    font-size: clamp(1rem, 4.4vw, 1.45rem);
    margin-bottom: 0.25rem;
    line-height: 1.05;
  }
  .gcard-banner {
    padding: 1px 5px 1px 1px;
    gap: 4px;
  }
  .gcard-banner-pill {
    font-size: clamp(0.52rem, 1.6vw, 0.64rem);
    padding: 2px 6px;
  }
  .gcard-banner-tag {
    font-size: clamp(0.52rem, 1.6vw, 0.64rem);
  }
  .gcard-models {
    font-size: clamp(0.48rem, 1.6vw, 0.62rem);
    margin-top: 0.2rem;
  }
  .gcard-footer-left {
    max-width: calc(100% - 4.5rem);
  }
  .gcard-key-row {
    margin-bottom: 0.2rem;
    gap: 0.3rem;
    width: 100%;
  }
  .gcard-key {
    font-size: clamp(0.58rem, 1.8vw, 0.72rem);
    padding: 0.15rem 0.35rem;
    max-width: 100%;
  }
  .gcard-copy-btn,
  .gcard-create-key-btn {
    font-size: clamp(0.55rem, 1.6vw, 0.66rem);
    padding: 0.15rem 0.45rem;
  }
  .gcard-tagline {
    font-size: clamp(0.44rem, 1.4vw, 0.54rem);
  }
  .gcard-signin-btn,
  .gcard-signin-btn:link,
  .gcard-signin-btn:visited,
  .gcard-signin-btn:hover,
  .gcard-signin-btn:focus,
  .gcard-signin-btn:active {
    font-size: clamp(0.72rem, 2.4vw, 0.82rem) !important;
    padding: 0.45rem 1rem !important;
    gap: 0.4rem !important;
  }
  .gcard-balance-container,
  .gcard-balance-badge {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .gcard-balance-val {
    font-size: clamp(1.15rem, 5vw, 1.55rem);
  }
}

@media (max-width: 36rem) {
  .identity-topbar { padding-top: 0.75rem; }
  .identity-secure { display: none; }
  .identity-main, .identity-standalone {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 100vh !important;
    padding: 1.25rem 1rem 2.5rem !important;
    box-sizing: border-box !important;
  }
  .identity-card { padding: 1.25rem; border-radius: 1rem; }
  .identity-logout-btn { top: .85rem; right: .85rem; }
  .identity-options { align-items: flex-start; flex-direction: column; }
  .welcome-actions { grid-template-columns: 1fr; }
  .welcome-shell {
    width: 100% !important;
    max-width: 100% !important;
    gap: 0.75rem !important;
    align-content: start !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
