.account-page { min-height: 70vh; padding: 48px 20px 72px; background: linear-gradient(180deg, rgba(15,61,40,.05), transparent 420px); }
.account-shell { width: min(1120px, 100%); margin: 0 auto; }
.account-login-shell { max-width: 560px; }
.account-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: 0 18px 50px rgba(15,61,40,.06); }
.account-card h1 { margin: 8px 0 10px; font-size: clamp(28px, 5vw, 38px); line-height: 1.15; }
.account-card h2 { margin-bottom: 20px; font-size: 20px; }
.account-eyebrow { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.account-lead, .profile-head p { color: var(--muted); }
.login-steps { display: grid; gap: 12px; margin: 26px 0 20px; }
.login-steps li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: #f7f8f6; }
.login-steps li > span { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 800; }
.login-steps div { display: flex; flex-direction: column; }
.login-steps small, .field-note { color: var(--muted); font-size: 12px; }
.btn-telegram { width: 100%; justify-content: center; background: #229ed9; color: #fff; }
.account-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--muted); font-size: 12px; }
.account-divider::before, .account-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.login-code-form, .profile-form { display: grid; gap: 14px; }
.login-code-form label, .profile-form label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 700; }
.login-code-form input, .profile-form input, .profile-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; color: var(--text); font: inherit; }
.login-code-form input { height: 64px; text-align: center; font-size: 30px; font-weight: 800; letter-spacing: .35em; padding-left: calc(14px + .35em); }
.login-code-form input:focus, .profile-form input:focus, .profile-form textarea:focus { border-color: var(--accent); outline: 3px solid rgba(230,168,0,.16); }
.profile-form input[readonly] { background: #f4f5f3; color: var(--muted); }
.account-alert { margin: 14px 0; padding: 12px 14px; border-radius: 12px; background: #fff7df; color: #6d4b00; font-size: 14px; }
.account-alert.is-error { background: #fff0ee; color: #a82b1c; }
.account-security { margin-top: 18px; color: var(--muted); font-size: 12px; text-align: center; }
.profile-shell { width: min(1060px,100%); }
.profile-head { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; padding: 0 4px; }
.profile-identity { min-width: 0; display: flex; align-items: center; gap: 14px; }
.profile-avatar { width: 52px; height: 52px; flex: 0 0 52px; display: grid; place-items: center; border-radius: 16px; background: var(--brand); color: #fff; font-size: 20px; font-weight: 700; }
.profile-head h1 { margin: 0 0 3px; font-size: clamp(26px,4vw,34px); font-weight: 700; line-height: 1.15; }
.profile-head p { overflow: hidden; max-width: 520px; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.profile-logout { height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; }
.profile-logout:hover { border-color: rgba(214,59,39,.25); background: #fff5f3; color: var(--red); }
.profile-logout svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile-layout { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 20px; align-items: start; }
.profile-layout .account-card { padding: 24px; border-radius: 20px; box-shadow: 0 10px 34px rgba(15,61,40,.055); }
.profile-section-head { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.profile-section-head h2, .profile-layout .account-card h2 { margin: 0; font-size: 19px; font-weight: 650; }
.profile-details-card .profile-form { gap: 16px; }
.profile-details-card .profile-form label { margin-bottom: 6px; color: #3f433f; font-weight: 600; }
.profile-details-card .profile-form input, .profile-details-card .profile-form textarea { min-height: 48px; border-color: rgba(0,0,0,.12); border-radius: 11px; background: #fbfcfa; }
.profile-details-card .profile-form textarea { min-height: 82px; resize: vertical; }
.account-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.profile-readonly-value { min-height: 48px; display: grid; grid-template-columns: 20px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid rgba(0,0,0,.08); border-radius: 11px; background: #f4f6f3; }
.profile-readonly-value svg { width: 18px; height: 18px; fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.profile-readonly-value span { font-size: 14px; }
.profile-readonly-value small { color: #4a765e; font-size: 11px; font-weight: 600; }
.profile-form-actions { display: flex; justify-content: flex-end; padding-top: 2px; }
.profile-form-actions .btn { min-width: 178px; justify-content: center; border-radius: 11px; }
.orders-title span { min-width: 28px; height: 28px; display: grid; place-items: center; padding: 0 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 650; }
.profile-orders { display: grid; gap: 8px; }
.profile-order { display: grid; grid-template-columns: 42px minmax(0,1fr) auto 18px; align-items: center; gap: 11px; padding: 11px; border: 1px solid transparent; border-radius: 13px; background: #f8f9f7; transition: border-color .18s, background .18s, transform .18s; }
.profile-order:hover { transform: translateY(-1px); border-color: rgba(15,61,40,.14); background: #fff; }
.profile-order-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--brand); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 650; }
.profile-order-main, .profile-order-meta { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.profile-order-main strong { overflow: hidden; font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.profile-order-main small, .profile-order-meta small { color: var(--muted); font-size: 11px; }
.profile-order-meta { align-items: flex-end; text-align: right; }
.profile-order-meta strong { color: var(--brand); font-size: 13px; font-weight: 650; white-space: nowrap; }
.profile-order-meta small { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-order-arrow { width: 18px; height: 18px; fill: none; stroke: #a1a69f; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-empty { min-height: 240px; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; }
.account-empty > span { font-size: 34px; filter: grayscale(1); opacity: .55; }
.account-empty h3 { margin-bottom: 5px; font-size: 16px; font-weight: 600; }
.account-empty .btn { justify-content: center; }
.profile-link { display: grid; grid-template-columns: 42px minmax(0,1fr) auto 18px; align-items: center; gap: 11px; padding: 11px; border: 1px solid transparent; border-radius: 13px; background: #f8f9f7; color: inherit; text-decoration: none; transition: border-color .18s, background .18s, transform .18s; }
.profile-link:hover { transform: translateY(-1px); border-color: rgba(15,61,40,.14); background: #fff; }
.profile-link-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 18px; }
.profile-link-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.profile-link-main strong { font-size: 14px; font-weight: 650; }
.profile-link-main small { color: var(--muted); font-size: 11px; }
.profile-link-count { min-width: 28px; height: 28px; display: grid; place-items: center; padding: 0 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 650; }
.orders-shell { width: min(760px, 100%); }
.orders-card { padding: 24px; }
.orders-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.pagination-link { min-width: 36px; height: 36px; display: grid; place-items: center; padding: 0 8px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; }
.pagination-link:hover { background: var(--brand-soft); color: var(--brand); }
.pagination-link.is-current { background: var(--brand); color: #fff; box-shadow: none; }
.pagination-link.is-disabled { opacity: .35; cursor: default; }
@media (max-width: 820px) { .profile-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .account-page { padding: 22px 12px 56px; }
  .account-card, .profile-layout .account-card { padding: 18px; border-radius: 17px; }
  .profile-head { min-height: 64px; margin-bottom: 15px; padding: 0 2px; }
  .profile-avatar { width: 46px; height: 46px; flex-basis: 46px; border-radius: 14px; }
  .profile-head h1 { font-size: 25px; }
  .profile-head p { max-width: 210px; }
  .profile-logout { width: 42px; padding: 0; justify-content: center; }
  .profile-logout span { display: none; }
  .account-form-row { grid-template-columns: 1fr; }
  .profile-form-actions .btn { width: 100%; }
  .profile-order { grid-template-columns: 40px minmax(0,1fr) 18px; gap: 9px; padding: 10px 8px; }
  .profile-order-icon { width: 40px; height: 40px; }
  .profile-order-meta { grid-column: 2; align-items: flex-start; text-align: left; }
  .profile-order-arrow { grid-column: 3; grid-row: 1 / span 2; }
  .profile-link { grid-template-columns: 40px minmax(0,1fr) 18px; gap: 9px; padding: 10px 8px; }
  .profile-link-icon { width: 40px; height: 40px; }
  .profile-link-count { grid-column: 2; justify-self: start; }
  .profile-link .profile-order-arrow { grid-column: 3; grid-row: 1 / span 2; }
  .orders-card { padding: 18px; }
}
