.account-modal[hidden] { display: none; }
.account-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.account-backdrop { position: absolute; inset: 0; background: rgba(5, 28, 34, .68); backdrop-filter: blur(5px); }
.account-dialog { position: relative; width: min(760px, 100%); max-height: min(780px, calc(100vh - 40px)); overflow: auto; background: #fff; color: var(--ink); border-radius: 18px; padding: 26px; box-shadow: 0 28px 90px rgba(4, 30, 38, .32); outline: none; }
.account-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.account-dialog-head span { color: var(--brand-green); font-size: 13px; font-weight: 900; }
.account-dialog-head h2 { margin: 3px 0 0; font-size: clamp(25px, 4vw, 34px); line-height: 1.2; }
.account-close { width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: 25px; line-height: 1; }
.account-note { display: flex; align-items: center; gap: 10px; margin: 18px 0; padding: 12px 14px; border-radius: 10px; background: #edf7f2; color: #245943; font-size: 14px; }
.account-note b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-green); color: #fff; }
.account-login-callout { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding: 15px 17px; border: 1px solid #d9e9e1; border-radius: 12px; background: #f8fbfa; }
.account-login-callout div { display: flex; flex-direction: column; gap: 3px; }
.account-login-callout small, .account-step-copy { color: var(--muted); line-height: 1.6; }
.account-login-callout button { flex: 0 0 auto; padding: 9px 14px; border: 1px solid var(--brand-green); border-radius: 9px; background: #fff; color: var(--brand-green); font-weight: 900; }
.account-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.account-choice { min-height: 220px; padding: 22px; display: flex; flex-direction: column; align-items: flex-start; text-align: start; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); transition: .2s ease; }
.account-choice:hover, .account-choice:focus-visible { border-color: var(--brand-green); box-shadow: 0 14px 34px rgba(7, 84, 58, .12); transform: translateY(-2px); }
.account-choice-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: #e6f1ec; color: var(--brand-green); font-size: 25px; font-weight: 900; }
.account-choice strong { margin-top: 16px; font-size: 20px; }
.account-choice small { margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.account-choice em { margin-top: auto; padding-top: 16px; color: var(--brand-green); font-size: 13px; font-style: normal; font-weight: 900; }
.account-step > h3 { margin: 8px 0 13px; font-size: 21px; }
.account-back { border: 0; background: transparent; padding: 2px 0 10px; color: var(--brand-green); font-weight: 900; }
.account-summary { display: flex; align-items: center; gap: 15px; padding: 18px; background: #f5f8f7; border-radius: 13px; }
.account-summary-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-green); color: #fff; font-size: 28px; }
.account-summary h3 { margin: 0; font-size: 21px; }
.account-summary p { margin: 4px 0 0; color: var(--muted); }
.account-benefits { display: grid; gap: 9px; margin: 18px 0; padding: 0; list-style: none; }
.account-benefits li::before { content: "✓"; color: var(--brand-green); font-weight: 900; margin-inline-end: 9px; }
.professional-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.professional-grid button { min-height: 58px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 800; }
.professional-grid button:hover, .professional-grid button:focus-visible, .professional-grid button.is-selected { border-color: var(--brand-green); background: #eaf4ef; color: var(--brand-green); }
.team-preview { margin-top: 16px; padding: 15px; border: 1px solid #d9e9e1; border-radius: 12px; background: #f8fbfa; }
.team-preview > div { display: flex; gap: 11px; align-items: center; }
.team-preview > div > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-green); color: #fff; font-size: 21px; }
.team-preview > div div { display: flex; flex-direction: column; }
.team-preview small { color: var(--muted); }
.team-preview ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0 0; padding: 0; list-style: none; }
.team-preview li { padding: 5px 9px; border-radius: 50px; background: #e7f1ec; color: #315f4d; font-size: 12px; }
.account-primary { width: 100%; margin-top: 17px; border: 0; border-radius: 10px; padding: 13px 18px; background: var(--brand-green); color: #fff; font-weight: 900; }
.account-primary:disabled { background: #c9d4d0; cursor: not-allowed; }
.account-form { display: grid; gap: 14px; }
.account-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.account-form label:not(.account-check) { display: grid; gap: 6px; color: var(--ink); font-size: 13px; font-weight: 850; }
.account-form input:not([type="checkbox"]) { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font: inherit; }
.account-form input:focus { border-color: var(--brand-green); outline: 3px solid rgba(7, 84, 58, .12); }
.account-form input[aria-invalid="true"] { border-color: #b93030; outline-color: rgba(185, 48, 48, .1); }
.account-form label small { color: var(--muted); font-size: 12px; font-weight: 500; }
.account-form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-check { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.account-check input { margin-top: 3px; accent-color: var(--brand-green); }
.account-link { border: 0; padding: 2px; background: transparent; color: var(--brand-green); font-weight: 850; }
.account-form-status { min-height: 20px; margin: 0; color: #9d5a09; font-size: 13px; font-weight: 750; line-height: 1.5; }
.account-form-status.is-error { color: #a52727; }
.selected-professional { margin-bottom: 14px; padding: 10px 13px; border-radius: 9px; background: #eaf4ef; color: var(--brand-green); font-weight: 900; }
.account-security { margin: 19px 0 0; text-align: center; color: var(--muted); font-size: 12px; }
body.account-is-open { overflow: hidden; }
[dir="ltr"] .account-choice { text-align: left; }
[dir="ltr"] .account-back { direction: rtl; }

@media (max-width: 650px) {
  .account-modal { align-items: end; padding: 0; }
  .account-dialog { max-height: 92vh; border-radius: 20px 20px 0 0; padding: 20px 17px 24px; }
  .account-choice-grid { grid-template-columns: 1fr; }
  .account-choice { min-height: 165px; }
  .professional-grid { grid-template-columns: 1fr 1fr; }
  .account-login-callout, .account-form-row { align-items: stretch; flex-direction: column; }
  .account-form-grid { grid-template-columns: 1fr; }
}
