:root {
  --bg: #e8eef5;
  --ink: #0b1220;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --panel: rgba(248, 250, 252, 0.96);
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Syne", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #e8eef5;
}

html::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

html::-webkit-scrollbar-track {
  background: #e8eef5;
}

html::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 999px;
  border: 3px solid #e8eef5;
}

html::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

html::-webkit-scrollbar-corner {
  background: #e8eef5;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(255, 255, 255, 0.75), transparent 55%),
    linear-gradient(180deg, #dce5f0 0%, var(--bg) 50%, #d7e0ec 100%);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(232, 238, 245, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__bar {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: inline-flex;
  padding: 8px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.nav__link:hover {
  opacity: 0.55;
}

.nav__link--active {
  font-weight: 700;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__website-btn {
  display: none;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(11, 18, 32, 0.18);
  background: transparent;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav__website-btn:hover {
  color: #eef2f7;
  background: var(--ink);
  border-color: var(--ink);
}

.nav__auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(11, 18, 32, 0.18);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav__user {
  position: relative;
}

.nav__user[hidden] {
  display: none !important;
}

.nav__account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  padding: 10px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  z-index: 1100;
}

.nav__account-menu[hidden] {
  display: none;
}

.nav__account-item {
  display: flex;
  width: 100%;
  align-items: center;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: 700 0.72rem var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.nav__account-item:hover {
  background: rgba(15, 23, 42, 0.06);
}

.nav__account-item--logout {
  color: #7f1d1d;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 64px;
}

.heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.heading .eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.heading h1 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
}

.heading a {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #eef2f7;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
  white-space: nowrap;
}

.dash-profile {
  margin-bottom: 24px;
}

.dash-profile__panel {
  padding: 24px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.dash-profile__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px 20px;
  align-items: start;
}

.dash-profile__avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #eef2f7;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.55rem;
  overflow: hidden;
  box-shadow: 0 0 0 4px rgba(11, 18, 32, 0.08), 0 10px 24px rgba(15, 23, 42, 0.16);
}

.dash-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dash-profile__who {
  min-width: 0;
}

.profile-name-line {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.verified-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 999px;
  background: #1D9BF0;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(29, 155, 240, 0.18);
}

.verified-tick[hidden] {
  display: none !important;
}

.verified-tick svg {
  width: 11px;
  height: 11px;
}

.dash-profile__handle {
  margin: 4px 0 0;
  color: var(--muted);
  font: 500 0.95rem/1.4 var(--font);
  word-break: break-all;
}

.dash-profile__who .role-badge {
  margin-top: 8px;
}

.dash-profile__bio {
  margin: 10px 0 0;
  color: var(--muted);
  font: 500 0.9rem/1.55 var(--font);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dash-profile__who .verify-active {
  margin-top: 10px;
}

.dash-profile__side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  min-width: 220px;
}

.dash-profile__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-profile__follow {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: #f8fafc;
  text-decoration: none;
  font: 700 0.88rem/1 var(--font);
  box-shadow: 0 10px 22px rgba(11, 18, 32, 0.22);
  white-space: nowrap;
  cursor: pointer;
}

.dash-profile__msg {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.dash-profile__msg svg {
  width: 18px;
  height: 18px;
}

.dash-profile__details {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.dash-profile__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
}

.dash-profile__facts li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.dash-profile__fact-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(11, 18, 32, 0.06);
  color: var(--ink);
}

.dash-profile__fact-icon svg {
  width: 16px;
  height: 16px;
}

.dash-profile__facts small {
  display: block;
  color: var(--muted);
  font: 600 0.7rem/1.2 var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dash-profile__facts strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font: 600 0.9rem/1.35 var(--font);
  word-break: break-word;
  white-space: pre-wrap;
}

.dash-profile__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.dash-metric {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  min-width: 0;
  position: relative;
}

.dash-metric:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: var(--line);
}

.dash-metric__icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(11, 18, 32, 0.06);
  color: var(--ink);
}

.dash-metric__icon svg {
  width: 18px;
  height: 18px;
}

.dash-metric strong {
  display: block;
  font: 800 1.15rem/1.1 var(--display);
  color: var(--ink);
  letter-spacing: -0.02em;
}

.dash-metric span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font: 500 0.78rem/1.2 var(--font);
}

.role-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 7px 12px;
  border-radius: 999px;
  background: #0b1220;
  color: #eef2f7;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.role-badge[hidden] {
  display: none !important;
}

.verify-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(29, 155, 240, 0.08);
  border: 1px solid rgba(29, 155, 240, 0.22);
}

.verify-cta[hidden] {
  display: none !important;
}

.verify-cta__copy {
  flex: 1 1 120px;
  min-width: 0;
}

.verify-cta__copy strong {
  display: block;
  margin: 0;
  color: var(--ink);
  font: 700 0.84rem/1.3 var(--font);
}

.verify-cta__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.verify-cta__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(29, 155, 240, 0.14);
  color: #0B6BCB;
  cursor: pointer;
}

.verify-cta__info svg {
  width: 14px;
  height: 14px;
}

.verify-cta__info:hover {
  background: rgba(29, 155, 240, 0.24);
}

.verify-cta__copy span {
  color: var(--muted);
  font: 500 0.76rem/1.35 var(--font);
}

.verify-cta__btn {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: #1D9BF0;
  color: #fff;
  font: 700 0.82rem/1 var(--font);
  cursor: pointer;
}

.verify-cta__btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.verify-active {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0B6BCB;
  font: 600 0.86rem/1.3 var(--font);
}

.verify-active[hidden] {
  display: none !important;
}

.verify-active .verified-tick {
  width: 16px;
  height: 16px;
}

.verify-active .verified-tick svg {
  width: 9px;
  height: 9px;
}

.stats {
  display: none;
}



.stat {
  padding: 20px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 8px;
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.stat small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.stat--purchase strong {
  font-size: 1.55rem;
}

.actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.btn-sold {
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(22, 101, 52, 0.28);
  border-radius: 10px;
  background: rgba(220, 252, 231, 0.7);
  color: #166534;
  font: 700 0.72rem var(--font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-sold:hover {
  background: #166534;
  color: #fff;
  border-color: #166534;
}

.btn-sold:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.card {
  padding: 22px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.card h3 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 1.15rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.status {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status.is-sale {
  background: rgba(21, 128, 61, 0.12);
  color: #166534;
}

.status.is-new {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.status.is-aged {
  background: rgba(100, 116, 139, 0.14);
  color: #475569;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.btn-delete {
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(190, 18, 60, 0.28);
  border-radius: 10px;
  background: rgba(254, 226, 226, 0.55);
  color: #be123c;
  font: 700 0.72rem var(--font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-delete:hover {
  background: #be123c;
  color: #fff;
  border-color: #be123c;
}

.btn-delete:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.actions-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.btn-open {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #0B1220;
  color: #E8EEF5;
  font: 600 0.72rem var(--font);
  text-decoration: none;
}

.btn-open:hover {
  background: #1e293b;
}

.btn-unsave {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 600 0.72rem var(--font);
  cursor: pointer;
}

.btn-unsave:hover {
  background: rgba(15, 23, 42, 0.05);
}

.btn-unsave:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.muted {
  color: var(--muted);
  font-size: 0.78rem;
}

.card + .card {
  margin-top: 18px;
}

.btn-buy {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #1a73e8;
  color: #fff;
  font: 600 0.72rem var(--font);
  cursor: pointer;
}

.btn-buy:hover {
  background: #1557b0;
}

.btn-buy:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.pay-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.pay-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.58);
  backdrop-filter: blur(6px);
}

.pay-card {
  position: relative;
  z-index: 1;
  width: min(380px, 100%);
  padding: 28px 22px 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(11, 18, 32, 0.3);
  text-align: center;
}

.pay-card__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.06);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.pay-card__eyebrow {
  margin: 0;
  color: #1a73e8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pay-card h2 {
  margin: 8px 0 6px;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.pay-card__project {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.pay-card__amount {
  margin: 10px 0 16px;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.pay-card__qr-wrap {
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  padding: 14px;
  width: fit-content;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f8fafc;
}

.pay-card__qr {
  display: block;
  width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.pay-card__upi {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  word-break: break-all;
}

.pay-card__gpay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: #1a73e8;
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
}

.pay-card__gpay:hover {
  background: #1557b0;
}

.pay-card__hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.pay-card__form {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  text-align: left;
}

.pay-card__form label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pay-card__form label span {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.pay-card__form input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
}

.pay-card__form input:focus {
  outline: 0;
  border-color: rgba(26, 115, 232, 0.55);
  background: #fff;
}

.pay-card__form-msg {
  min-height: 18px;
  margin: 0;
  color: #c0392b;
  font-size: 0.75rem;
}

.pay-card__form-msg.is-success {
  color: #1b7a4a;
}

.pay-card__submit {
  min-height: 46px;
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.pay-card__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.pay-card__paybox {
  margin-top: 8px;
}

.pay-card__paybox[hidden] {
  display: none;
}

.edit-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.edit-profile-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.edit-profile-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.58);
  backdrop-filter: blur(6px);
}

.edit-profile-card {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  padding: 26px 22px 20px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(11, 18, 32, 0.3);
}

.edit-profile-card__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.06);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.edit-profile-card__eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.edit-profile-card h2 {
  margin: 8px 0 6px;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.edit-profile-card__intro {
  margin: 0 0 16px;
  color: var(--muted);
  font: 500 0.9rem/1.45 var(--font);
}

.edit-profile-form {
  display: grid;
  gap: 12px;
}

.edit-profile-form__field {
  display: grid;
  gap: 6px;
}

.edit-profile-form__field label {
  color: var(--muted);
  font: 700 0.72rem/1.2 var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.edit-profile-form__field input,
.edit-profile-form__field select,
.edit-profile-form__field textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: 500 0.94rem/1.4 var(--font);
  resize: vertical;
}

.edit-profile-form__field textarea {
  min-height: 72px;
}

.edit-profile-form__field input:focus,
.edit-profile-form__field select:focus,
.edit-profile-form__field textarea:focus {
  outline: 2px solid rgba(11, 18, 32, 0.16);
  outline-offset: 1px;
}

.edit-profile-form__field input[readonly] {
  background: rgba(15, 23, 42, 0.04);
  color: var(--muted);
}

.edit-profile-form__msg {
  min-height: 1.2em;
  margin: 0;
  color: #c0392b;
  font: 500 0.84rem/1.4 var(--font);
}

.edit-profile-form__msg.is-success {
  color: #1b7a4a;
}

.edit-profile-form__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.edit-profile-form__cancel,
.edit-profile-form__save {
  min-height: 46px;
  border-radius: 12px;
  font: 700 0.9rem/1 var(--font);
  cursor: pointer;
}

.edit-profile-form__cancel {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.edit-profile-form__save {
  border: 0;
  background: var(--ink);
  color: #f8fafc;
}

.edit-profile-form__save:disabled {
  opacity: 0.65;
  cursor: wait;
}

.gate,
.loading {
  min-height: 50vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 16px;
}

.gate h1,
.loading h1 {
  margin: 0 0 10px;
  font-family: var(--display);
}

.gate p,
.loading p {
  margin: 0 0 18px;
  color: var(--muted);
}

.gate a {
  display: inline-flex;
  height: 44px;
  align-items: center;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--ink);
  color: #eef2f7;
  text-decoration: none;
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .dash-profile__top {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .dash-profile__side {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .dash-profile__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-profile__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-metric:nth-child(2n)::after {
    display: none;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .nav__links {
    display: none;
  }

  .shell {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .nav__website-btn {
    display: inline-flex;
  }

  .dash-profile__panel {
    padding: 18px;
    border-radius: 22px;
  }

  .dash-profile__top {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .dash-profile__avatar {
    width: 84px;
    height: 84px;
  }

  .dash-profile__side {
    width: 100%;
  }

  .dash-profile__facts {
    grid-template-columns: 1fr;
  }

  .dash-profile__metrics {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .dash-metric:not(:last-child)::after {
    display: none;
  }

  .dash-metric {
    border-bottom: 1px solid var(--line);
  }

  .dash-metric:nth-child(2n) {
    border-bottom: 1px solid var(--line);
  }

  .dash-metric:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .heading {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .heading h1 {
    font-size: clamp(1.45rem, 6vw, 1.85rem);
  }

  .heading a {
    height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

.legal-strip {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 84px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  font-size: 0.82rem;
}

.legal-strip a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.legal-strip a:hover {
  color: var(--ink);
}

@media (min-width: 801px) {
  .legal-strip {
    margin-bottom: 20px;
  }
}
