/* Lightweight custom account pages */
.mb-account-page {
  background: linear-gradient(180deg, #f7f9ff 0%, #fff 46%);
  padding: 34px 12px 56px;
}

.mb-account-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.mb-account-card,
.mb-account-dashboard {
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(17, 24, 39, .07);
  padding: 28px;
}

.mb-account-head { text-align: center; margin-bottom: 22px; }
.mb-account-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: #3665f3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mb-account-head h1,
.mb-account-summary h1 {
  margin: 0 0 8px;
  color: #111827;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: -.04em;
}
.mb-account-head p,
.mb-account-summary p {
  margin: 0;
  color: #5f6673;
  font-size: 15px;
}

.mb-account-form { display: grid; gap: 10px; }
.mb-account-form label {
  color: #20242c;
  font-size: 13px;
  font-weight: 750;
}
.mb-account-form input[type="text"],
.mb-account-form input[type="email"],
.mb-account-form input[type="password"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d7dbe5;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
}
.mb-account-form input:focus {
  border-color: #3665f3;
  box-shadow: 0 0 0 3px rgba(54, 101, 243, .12);
}

.mb-account-row,
.mb-account-actions,
.mb-account-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.mb-account-row { margin: 4px 0 6px; }
.mb-account-row a,
.mb-account-switch a,
.mb-account-footer-actions a { color: #0654ba; text-decoration: none; font-weight: 750; }
.mb-account-row a:hover,
.mb-account-switch a:hover,
.mb-account-footer-actions a:hover { text-decoration: underline; }
.mb-account-check { display: inline-flex; align-items: center; gap: 8px; color: #444; }
.mb-account-check input { width: 16px; height: 16px; }

.mb-account-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #3665f3;
  color: #fff !important;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.mb-account-form .mb-account-btn { width: 100%; margin-top: 4px; }
.mb-account-btn:hover,
.mb-account-btn:focus { filter: brightness(.94); text-decoration: none; }
.mb-account-btn.is-light {
  background: #fff;
  color: #111827 !important;
  border: 1px solid #d7dbe5;
}

.mb-account-switch {
  margin-top: 18px;
  text-align: center;
  color: #5f6673;
  font-size: 14px;
}
.mb-account-help {
  margin: -3px 0 4px;
  color: #6b7280;
  font-size: 12px;
}
.mb-account-notice {
  margin: 0 0 16px;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
}
.mb-account-notice.is-error { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }
.mb-account-notice.is-success { background: #ecfdf5; color: #047857; border: 1px solid #bbf7d0; }

.mb-account-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.mb-account-avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef2ff;
  color: #3665f3;
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
}
.mb-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.mb-account-tile {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #e6e8ee;
  border-radius: 16px;
  background: #fbfcff;
  padding: 16px;
  color: #111827;
  text-decoration: none;
}
.mb-account-tile:hover,
.mb-account-tile:focus { border-color: #3665f3; box-shadow: 0 10px 24px rgba(54, 101, 243, .10); }
.mb-account-tile strong { font-size: 16px; }
.mb-account-tile span { color: #3665f3; font-size: 13px; font-weight: 850; }

@media (max-width: 560px) {
  .mb-account-page { padding: 20px 10px 38px; }
  .mb-account-card,
  .mb-account-dashboard { padding: 20px; border-radius: 16px; }
  .mb-account-summary { align-items: flex-start; }
  .mb-account-avatar { width: 52px; height: 52px; font-size: 23px; }
}
