.account-page {
  --site-nav-height: 70px;
}

.account-shell {
  max-width: 960px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

.account-card {
  background: #fff;
  border: 1px solid #e6eef5;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(10, 42, 67, 0.06);
  margin-bottom: 20px;
}

.account-card h2 {
  margin: 0 0 12px;
  color: #0a2a43;
  font-size: 1.25em;
}

.account-card p {
  margin: 0 0 10px;
  color: #555;
  line-height: 1.6;
}

.account-meta {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.account-meta dt {
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a8fa3;
  margin: 0;
}

.account-meta dd {
  margin: 0 0 8px;
  color: #0a2a43;
  font-weight: 600;
  word-break: break-all;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.account-tile {
  background: #f7fbff;
  border: 1px solid #d9ecff;
  border-radius: 12px;
  padding: 20px;
}

.account-tile h3 {
  margin: 0 0 8px;
  color: #0a2a43;
  font-size: 1.05em;
}

.account-tile p {
  margin: 0;
  font-size: 0.95em;
}

.account-tile .coming-soon {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.75em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4db8ff;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.account-status,
.login-status {
  margin-top: 14px;
  min-height: 1.4em;
  color: #0a2a43;
  font-weight: 600;
}

.account-card .login-status {
  color: #0a2a43;
  margin: 14px 0 0;
}

.account-card .login-status.is-visible {
  padding: 10px 12px;
  border-radius: 8px;
  background: #eef6ff;
  border: 1px solid #cfe3f7;
}

.account-status.error,
.login-status.error,
.account-card .login-status.error {
  color: #b42318;
}

.account-card .login-status.error.is-visible {
  background: #fdecec;
  border-color: #f3c1c1;
}

.login-form .btn-primary {
  position: relative;
  width: 100%;
  margin-top: 20px;
}

.login-form .btn-primary.is-loading {
  cursor: wait;
  opacity: 0.92;
}

.login-form .btn-primary .btn-spinner {
  display: none;
  width: 1.05em;
  height: 1.05em;
  margin-right: 10px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -0.15em;
  animation: tourai-spin 0.8s linear infinite;
}

.login-form .btn-primary.is-loading .btn-spinner {
  display: inline-block;
}

.login-form .btn-primary.is-loading:hover {
  background: #0a2a43;
  border-color: #0a2a43;
  color: #fff;
}

.login-shell {
  max-width: 480px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

.login-form label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 600;
  color: #0a2a43;
}

.login-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #c9d7e3;
  border-radius: 10px;
  font-size: 1em;
}

.login-form .link-button {
  background: none;
  border: none;
  color: #0d6efd;
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-decoration: underline;
}

.login-note {
  margin-top: 18px;
  font-size: 0.95em;
  color: #555;
  line-height: 1.6;
}

.account-empty,
.account-note {
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.account-note {
  margin-top: 16px;
  font-size: 0.92em;
}

.account-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8em;
  font-weight: 700;
  background: #e8f4ff;
  color: #0a2a43;
}

.account-badge--active {
  background: #d9f7e8;
  color: #0b6b3a;
}

.account-table-wrap {
  overflow-x: auto;
}

.account-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

.account-table th,
.account-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e6eef5;
  vertical-align: top;
}

.account-table th {
  color: #7a8fa3;
  font-size: 0.78em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-payment-status {
  font-weight: 700;
}

.account-payment-status--paid {
  color: #0b6b3a;
}

.account-payment-status--pending {
  color: #b8860b;
}

.account-payment-status--cancelled {
  color: #c62828;
}

.account-table tbody tr.account-table__row--cancelled {
  background: #f3f5f7;
}

.account-table tbody tr.account-table__row--cancelled td {
  border-bottom-color: #e0e6eb;
}

.register-terms {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 8px !important;
  font-weight: 500 !important;
  color: #35566f !important;
  font-size: 0.92em;
  line-height: 1.45;
}

.register-terms input {
  width: auto !important;
  margin: 3px 0 0 !important;
}

.register-terms a {
  color: #0d6efd;
}

.login-remember {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 4px !important;
  font-weight: 500 !important;
  color: #35566f !important;
  font-size: 0.92em;
  line-height: 1.45;
  cursor: pointer;
}

.login-remember input {
  width: auto !important;
  margin: 3px 0 0 !important;
}

.account-tabs {
  margin-bottom: 20px;
}

.account-subnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 2px solid #d9e4ee;
  background: transparent;
  position: static;
  top: auto;
  z-index: auto;
  box-shadow: none;
}

.account-subnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 12px 22px;
  margin: 0 0 -2px;
  border-radius: 10px 10px 0 0;
  border: 2px solid transparent;
  border-bottom: none;
  color: #5a7388;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95em;
  text-transform: none;
  background: transparent;
}

.account-subnav a:hover {
  color: #0a2a43;
}

.account-subnav a.active {
  background: #f0f4f8;
  border-color: #d9e4ee;
  border-bottom-color: #f0f4f8;
  color: #0a2a43;
  pointer-events: none;
}

.account-panel {
  background: #f0f4f8;
  border: 2px solid #d9e4ee;
  border-top: none;
  border-radius: 0 12px 12px 12px;
  padding: 24px;
}

.account-tabs:has(.account-subnav a:not(:first-child).active) .account-panel {
  border-radius: 12px;
}

.account-panel > .account-card,
.account-panel > .account-accordion {
  margin-bottom: 16px;
}

.account-panel > .account-card:last-child,
.account-panel > .account-accordion:last-child {
  margin-bottom: 0;
}

.account-panel #accountProfileMount > :last-child {
  margin-bottom: 0;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
}

.account-actions-bar {
  background: #fff;
  border: 1px solid #e6eef5;
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 8px 24px rgba(10, 42, 67, 0.06);
}

.account-actions-bar .account-status {
  margin-top: 12px;
}

@media (max-width: 560px) {
  .account-subnav a {
    padding: 12px 14px;
    margin: 0 0 -2px;
    font-size: 0.9em;
  }

  .account-panel {
    padding: 16px;
    border-radius: 0 0 12px 12px;
  }

  .account-actions {
    flex-direction: column;
  }

  .account-actions .site-btn {
    width: 100%;
  }
}

.account-accordion {
  padding: 0;
  overflow: hidden;
}

/* Sticky site nav — keep accordion title below nav on hash / CTA scroll. */
#buy-plans-section,
#buy-plans-section .account-accordion__toggle {
  scroll-margin-top: 6.5rem;
}

.account-accordion__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border: 0;
  background: transparent;
  color: #0a2a43;
  font: inherit;
  font-size: 1.15em;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.account-accordion__toggle:hover {
  background: #f7fbff;
}

.account-accordion__chevron {
  width: 0.65em;
  height: 0.65em;
  border-right: 2px solid #0a2a43;
  border-bottom: 2px solid #0a2a43;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.account-accordion.is-open .account-accordion__chevron {
  transform: rotate(-135deg);
}

.account-accordion__panel {
  padding: 0 22px 22px;
  border-top: 1px solid #e6eef5;
}

.account-accordion__body {
  padding-top: 16px;
}

.account-empty--error {
  color: #b42318;
  font-weight: 600;
}

/* Freemium-only upgrade promo (dashboard active plan empty state). */
.plan-freemium-promo {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #d7e6f2;
  background: linear-gradient(160deg, #f4fafc 0%, #e8f4ff 55%, #f7fbfc 100%);
}

.plan-freemium-promo__eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2f7a98;
}

.plan-freemium-promo__title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
  color: #0a2a43;
}

.plan-freemium-promo__body {
  margin: 0;
  color: #555;
  line-height: 1.6;
}

.plan-freemium-promo__actions {
  margin: 4px 0 0;
}

.plan-freemium-promo__actions .btn-primary {
  width: 100%;
  max-width: 360px;
}

.plan-freemium-promo .account-note {
  margin-top: 0;
}

/* ConfirmPage → MessageBlockSelectAndActiveUserPlan (app parity). */
.plan-activate-confirm__intro {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.plan-activate-confirm__line1 {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #555555;
}

.plan-activate-confirm__plan-name {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: #2f7a98;
}

.plan-activate-confirm__body {
  padding-left: 20px;
}

.plan-activate-confirm__benefit {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  align-items: start;
}

.plan-activate-confirm__check {
  font-size: 16px;
  line-height: 1.45;
}

.plan-activate-confirm__line2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #333333;
}

.plan-activate-confirm__line3 {
  margin: 24px 0 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: #333333;
}

.plan-buy-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-buy-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #d7e6f2;
  background: #fff;
}

.plan-buy-card__copy {
  flex: 1 1 220px;
  min-width: 0;
}

.plan-buy-card__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: #0a2a43;
}

.plan-buy-card__body,
.plan-buy-card__meta {
  margin: 0 0 6px;
  color: #555;
  line-height: 1.5;
  font-size: 0.92rem;
}

.plan-buy-card__price {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0a2a43;
}

.plan-buy-card__actions {
  margin: 0;
  flex: 0 0 auto;
}

.plan-buy-card__actions .btn-primary {
  min-width: 180px;
}

/* Plan list cards — mirror app PlanListItemBorder / UserPlansHistoryView */
.plan-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-list-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.plan-list-card--interactive {
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.plan-list-card--interactive:hover,
.plan-list-card--interactive:focus-visible {
  background: #f5f5f5;
  border-color: #d0d0d0;
  outline: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
}

.plan-list-card--interactive:focus-visible {
  box-shadow: 0 0 0 3px rgba(77, 184, 255, 0.35), 0 3px 10px rgba(0, 0, 0, 0.14);
}

.plan-list-card__header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  background: transparent;
  color: inherit;
  padding: 0;
  margin: 0;
  border: 0;
  text-align: left;
  box-shadow: none;
}

.plan-list-card__bullet {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 6px;
  background: #9e9e9e;
  flex-shrink: 0;
}

.plan-list-card[data-plan-state="freemium"] .plan-list-card__bullet {
  background: #34c759;
}

.plan-list-card[data-plan-state="pending"] .plan-list-card__bullet {
  background: #ff9500;
}

.plan-list-card[data-plan-state="active"] .plan-list-card__bullet {
  background: #2f7a98;
}

.plan-list-card[data-plan-state="consumed"] .plan-list-card__bullet {
  background: #5b7fa6;
}

.plan-list-card[data-plan-state="expired"] .plan-list-card__bullet {
  background: #e53935;
}

.plan-list-card[data-plan-state="other"] .plan-list-card__bullet {
  background: #9e9e9e;
}

.plan-list-card__titles {
  min-width: 0;
}

.plan-list-card__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 800;
  color: #1e1e1e;
  line-height: 1.3;
  word-break: break-word;
}

.plan-list-card__status {
  margin: 2px 0 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #666;
}

.plan-list-card__description {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #666;
}

.plan-list-card__divider {
  margin: 12px 0;
  height: 1px;
  background: #eee;
}

.plan-list-card__metrics {
  display: grid;
  gap: 4px;
  margin: 0;
}

.plan-list-card__metrics > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}

.plan-list-card__metrics dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  color: #777;
}

.plan-list-card__metrics dd {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 800;
}

.plan-list-card__metric-accent {
  color: #2f7a98;
  text-transform: uppercase;
}

.plan-list-card__metric-date {
  color: #007aff;
}

.plan-detail-modal.modal {
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow: auto;
  z-index: 1200;
  box-sizing: border-box;
}

.plan-detail-modal.modal.is-open {
  display: flex !important;
}

.plan-detail-modal .modal-content,
.plan-detail-modal .plan-detail-modal__content {
  max-width: 720px;
  width: 100%;
  margin: auto;
  text-align: left;
  max-height: min(90vh, 900px);
  overflow: auto;
  padding: 28px 24px 22px;
  position: relative;
}

.plan-detail-modal .close-modal,
.account-edit-modal .close-modal {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  background: #fff;
  color: #6b7280;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.plan-detail-modal .close-modal:hover,
.account-edit-modal .close-modal:hover {
  background: #f5f7fa;
  border-color: #b8c5d0;
  color: #0a2a43;
}

.plan-detail-modal .modal-content h2,
.plan-detail-modal .modal-content h3 {
  border-bottom: 0;
  padding-bottom: 0;
}

.plan-detail__intro {
  margin: 0 0 16px;
  padding-right: 28px;
}

.plan-detail__title {
  margin: 0;
  color: #0a2a43;
  font-size: 1.35em;
  font-weight: 900;
}

.plan-detail__subtitle {
  margin: 6px 0 0;
  color: #555;
  line-height: 1.45;
}

.plan-detail .plan-list-card {
  margin-bottom: 16px;
}

.plan-usage-table {
  border: 1px solid #ddd;
  overflow: hidden;
  background: #fff;
}

.plan-usage-table__head {
  display: grid;
  grid-template-columns: 1fr 152px;
  background: #f7f7f7;
  border-bottom: 1px solid #ddd;
}

.plan-usage-table__query,
.plan-usage-table__date,
.plan-usage-row__query,
.plan-usage-row__date {
  padding: 10px 20px;
  font-size: 0.92em;
  line-height: 1.4;
  word-break: break-word;
}

.plan-usage-table__query,
.plan-usage-table__date {
  font-weight: 800;
  color: #444;
}

.plan-usage-table__date,
.plan-usage-row__date {
  text-align: center;
  border-left: 1px solid #ddd;
  color: #666;
}

.plan-usage-row {
  display: grid;
  grid-template-columns: 1fr 152px;
  border-bottom: 1px solid #ddd;
}

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

.plan-usage-row__query {
  color: #1e1e1e;
}

.plan-usage-count {
  margin: 14px 0 0;
  text-align: center;
  color: #555;
  font-size: 0.92em;
}

.plan-detail__actions {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e6eef5;
}

.plan-detail-modal .plan-detail__actions .btn-secondary {
  width: auto;
  min-width: 140px;
}

.plan-detail-modal .plan-detail__actions .btn-secondary:hover {
  background: #f7fbff;
  border-color: #4db8ff;
  color: #0a2a43;
}

@media (max-width: 640px) {
  .plan-usage-table__head,
  .plan-usage-row {
    grid-template-columns: 1fr 120px;
  }

  .plan-usage-table__query,
  .plan-usage-table__date,
  .plan-usage-row__query,
  .plan-usage-row__date {
    padding: 10px 12px;
  }
}

/* Profile card — same visual language as plan cards */
.profile-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  margin-bottom: 20px;
}

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

.profile-card__avatar {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #0a2a43;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 2px solid #4db8ff;
  box-sizing: border-box;
}

.profile-card__avatar img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  display: block;
  pointer-events: none;
}

.profile-card__name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e1e1e;
  line-height: 1.3;
  word-break: break-word;
}

.profile-card__email {
  margin: 4px 0 0;
  color: #666;
  font-size: 0.95rem;
  word-break: break-all;
}

.profile-card__divider {
  margin: 14px 0;
  height: 1px;
  background: #eee;
}

.profile-card__metrics {
  display: grid;
  gap: 6px;
  margin: 0;
}

.profile-card__metrics > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}

.profile-card__metrics dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  color: #777;
}

.profile-card__metrics dd {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 800;
}

.profile-card__metric-accent {
  color: #2f7a98;
  text-transform: uppercase;
}

.profile-card__metric-date {
  color: #007aff;
}

.profile-card__actions {
  margin-top: 16px;
}

.account-edit-modal.modal {
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow: auto;
  z-index: 1200;
  box-sizing: border-box;
}

.account-edit-modal.modal.is-open {
  display: flex !important;
}

.account-edit-modal .modal-content,
.account-edit-modal .account-edit-modal__content {
  max-width: 560px;
  width: 100%;
  margin: auto;
  text-align: left;
  max-height: min(90vh, 900px);
  overflow: auto;
  padding: 28px 24px 22px;
  position: relative;
}

.account-edit-modal .modal-content h2 {
  margin: 0 28px 8px 0;
  color: #0a2a43;
  border-bottom: 0;
  padding-bottom: 0;
  font-size: 1.35em;
  font-weight: 900;
}

.account-edit-modal__subtitle {
  margin: 0 0 18px;
  color: #555;
  line-height: 1.45;
}

.account-edit-form__photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  text-align: center;
}

.account-edit-form__photo-preview {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #0a2a43;
  border: 2px solid #4db8ff;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.account-edit-form__photo-preview.has-photo {
  cursor: grab;
}

.account-edit-form__photo-preview.has-photo.is-panning {
  cursor: grabbing;
}

.account-edit-modal .account-edit-form__photo-preview,
.account-edit-modal .account-edit-form__photo-preview:hover {
  width: 120px;
  height: 120px;
  background: #fff;
  color: #0a2a43;
  border: 2px solid #4db8ff;
  border-radius: 50%;
  padding: 0;
}

.account-edit-form__photo-preview:hover {
  border-color: #7ccfff;
  box-shadow: 0 0 0 3px rgba(77, 184, 255, 0.25);
}

.account-edit-form__photo-preview:focus-visible {
  outline: 3px solid #4db8ff;
  outline-offset: 2px;
}

.account-edit-form__photo-preview img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  display: block;
  pointer-events: none;
}

.account-edit-form__photo-initials {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.account-edit-form__photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.account-edit-modal .account-edit-form__photo-actions .btn-secondary {
  width: auto;
  min-width: 0;
}

.account-edit-form__photo .account-edit-form__hint {
  max-width: 36em;
}

.account-edit-form label {
  display: block;
  margin: 12px 0 4px;
  font-weight: 700;
  color: #0a2a43;
}

.account-edit-form label:first-of-type {
  margin-top: 0;
}

.account-edit-modal .account-edit-form input[type="text"],
.account-edit-modal .account-edit-form input[type="email"],
.account-edit-modal .account-edit-form input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #c9d7e3;
  border-radius: 10px;
  font-size: 1em;
}

.birthdate-field {
  position: relative;
  width: 100%;
  min-width: 0;
}

.account-edit-modal .birthdate-picker__input {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #c9d7e3;
  border-radius: 10px;
  background: #fff;
  color: #0a2a43;
  font-size: 1em;
  font-weight: 600;
}

.account-edit-modal .birthdate-picker__input:hover:not(:disabled) {
  border-color: #4db8ff;
  background: #f7fbff;
}

.account-edit-modal .birthdate-picker__input:disabled {
  background: #eef2f6;
  color: #9aa8b6;
  border-color: #d5dde5;
  cursor: not-allowed;
  opacity: 1;
}

.account-edit-form input[readonly] {
  background: #f5f8fb;
  color: #557086;
}

.account-edit-form__hint {
  margin: 6px 0 0;
  color: #7a8fa3;
  font-size: 0.88em;
  line-height: 1.4;
}

.account-edit-form__error {
  margin: 6px 0 0;
  color: #b42318;
  font-size: 0.88em;
  font-weight: 600;
}

.account-edit-form__birth {
  margin-top: 12px;
}

.account-edit-form__birth.is-disabled .account-edit-form__switch,
.account-edit-form__birth.is-disabled .account-edit-form__switch span {
  color: #9aa8b6 !important;
  cursor: default;
}

.account-edit-form__birth.is-disabled .account-edit-form__switch input {
  cursor: pointer;
  opacity: 0.75;
}

.account-edit-form__birth-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.account-edit-form__birth-row .account-edit-form__switch {
  flex: 0 1 auto;
  width: auto;
  max-width: min(100%, 22rem);
  margin: 0 !important;
}

.account-edit-form__birth-row .birthdate-field {
  flex: 1 1 10rem;
  min-width: 9.5rem;
  width: auto;
}

.account-edit-form__switch {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  margin: 14px 0 4px !important;
  font-weight: 600 !important;
  color: #35566f !important;
  cursor: pointer;
  line-height: 1.35;
}

.account-edit-form__switch input {
  width: auto !important;
  height: 1.1em;
  margin: 0 !important;
  flex-shrink: 0;
  align-self: center;
}

.account-edit-form__switch span {
  display: block;
  line-height: 1.35;
}

@media (max-width: 520px) {
  .account-edit-form__birth-row {
    flex-wrap: wrap;
  }

  .account-edit-form__birth-row .account-edit-form__switch {
    white-space: normal;
    width: 100%;
  }

  .account-edit-form__birth-row .birthdate-field {
    flex: 1 1 100%;
  }
}

.account-edit-form__password-entry {
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.account-edit-modal .account-edit-form__password-entry .btn-secondary {
  width: auto;
  min-width: 0;
}

.account-password-modal.modal {
  z-index: 1300;
}

.account-edit-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.account-edit-modal .account-edit-form__actions .btn-primary,
.account-edit-modal .account-edit-form__actions .btn-secondary {
  width: auto;
  min-width: 140px;
}

.account-edit-modal .auth-password-strength {
  margin-top: 8px;
}

.account-edit-modal .auth-password-strength__bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}

.account-edit-modal .auth-password-strength__bar {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: #ddd;
}

.account-edit-modal .auth-password-strength__bar.is-active.is-weak {
  background: #ff3b30;
}

.account-edit-modal .auth-password-strength__bar.is-active.is-medium {
  background: #ff9500;
}

.account-edit-modal .auth-password-strength__bar.is-active.is-strong {
  background: #34c759;
}

.account-edit-modal .auth-password-strength__label {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #6e6e73;
}

.account-edit-modal .auth-password-strength__label.is-weak {
  color: #ff3b30;
}

.account-edit-modal .auth-password-strength__label.is-medium {
  color: #ff9500;
}

.account-edit-modal .auth-password-strength__label.is-strong {
  color: #34c759;
}

/* Skeleton / shimmer (paged loads) */
@keyframes tourai-shimmer {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

.tourai-skeleton {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.tourai-skeleton__card,
.tourai-skeleton__row {
  padding: 14px;
  border: 1px solid #eef3f7;
  border-radius: 12px;
  background: #fff;
}

.tourai-skeleton__row {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 12px;
  align-items: center;
}

.tourai-skeleton__line {
  height: 11px;
  border-radius: 6px;
  background: #e4ebf2;
  animation: tourai-shimmer 1.15s ease-in-out infinite;
}

.tourai-skeleton__line--sm {
  width: 38%;
}

.tourai-skeleton__line--md {
  width: 62%;
}

.tourai-skeleton__line--lg {
  width: 88%;
  height: 14px;
}

.tourai-skeleton--usage .tourai-skeleton__row {
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #eef3f7;
  background: transparent;
}

.tourai-scroll-sentinel {
  height: 1px;
  width: 100%;
  pointer-events: none;
}

