/* Личный кабинет */
.acc { width: min(100% - var(--gutter) * 2, 760px); margin: clamp(20px, 4vw, 44px) auto 0; display: grid; gap: 16px; }
.acc h1 { font-size: clamp(26px, 5vw, 36px); letter-spacing: -.03em; }
.acc h2 { font-size: 19px; letter-spacing: -.02em; }
.acc h3 { font-size: 16px; margin-bottom: 8px; }
.acc-lead { color: var(--muted); font-size: 15px; line-height: 1.5; }
.acc-lead strong { color: var(--ink); }
.acc-card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 20px; }

/* вход / регистрация */
.acc-auth { width: min(100%, 440px); margin: 0 auto; display: grid; gap: 14px; }
.acc-form { display: grid; gap: 14px; }
.acc-link { text-align: center; font-size: 14px; color: var(--muted); }
.acc-link:hover { color: var(--ink); }
.acc-switch { text-align: center; font-size: 14px; color: var(--muted); }
.acc-switch a { color: var(--accent); font-weight: 600; }
.acc-alert { padding: 12px 16px; border-radius: var(--r-md); font-size: 14px; line-height: 1.4; }
.acc-alert--err { background: #fde8ec; color: #b3243b; }
.acc-alert--ok { background: #e3f5ea; color: #1b6d3e; }

/* шапка кабинета */
.acc-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.acc-hero__hello { color: var(--muted); font-size: 14px; }
.acc-hero h1 { overflow-wrap: anywhere; }
.acc-points {
	flex: none; display: grid; gap: 2px; padding: 12px 18px; text-align: right; border-radius: var(--r-lg);
	background: var(--accent); color: var(--accent-ink);
	transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.acc-points:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -14px var(--accent); }
.acc-points span, .acc-points small { font-size: 12px; opacity: .75; }
.acc-points strong { font-size: 28px; line-height: 1; letter-spacing: -.02em; }

.acc-tabs { display: flex; gap: 6px; padding: 5px; background: var(--surface-2); border-radius: var(--r-pill); }
.acc-tabs a {
	flex: 1; text-align: center; padding: 10px 8px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: var(--muted);
	transition: background-color var(--t) var(--ease), color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.acc-tabs a:hover { color: var(--ink); }
.acc-tabs a.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* заказы */
.acc-empty { display: grid; gap: 16px; justify-items: start; color: var(--muted); }
.acc-orders { display: grid; gap: 14px; }
.acc-order { display: grid; gap: 16px; }
.acc-order__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.acc-order__head time { font-size: 13px; color: var(--muted); }
.acc-pill { padding: 6px 12px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.acc-pill--new { background: #e8ecff; color: #2a3fa6; }
.acc-pill--progress { background: #fff1d6; color: #8a5a00; }
.acc-pill--shipped { background: #e0f2ff; color: #0b5d94; }
.acc-pill--done { background: #e3f5ea; color: #1b6d3e; }
.acc-pill--cancelled { background: #fde8ec; color: #b3243b; }

.acc-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; list-style: none; padding: 0; margin: 0; }
.acc-steps li { display: grid; gap: 8px; justify-items: start; font-size: 12px; color: var(--muted); }
.acc-steps i { display: block; width: 100%; height: 5px; border-radius: 3px; background: var(--surface-2); transition: background-color var(--t) var(--ease); }
.acc-steps .is-past i, .acc-steps .is-current i { background: var(--accent); }
.acc-steps .is-current { color: var(--ink); font-weight: 600; }

.acc-track, .acc-copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--bg); border-radius: var(--r-md); }
.acc-track div, .acc-copy div { display: grid; gap: 2px; min-width: 0; }
.acc-track span, .acc-copy span { font-size: 12px; color: var(--muted); }
.acc-track strong, .acc-copy strong { font-size: 16px; letter-spacing: .02em; overflow-wrap: anywhere; }
.acc-track .btn, .acc-copy .btn { flex: none; min-height: 40px; padding: 0 16px; font-size: 14px; }
.acc-note { font-size: 14px; color: var(--muted); padding: 12px 14px; background: var(--bg); border-radius: var(--r-md); }
.acc-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; line-height: 1.4; }
.acc-lines li { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.acc-lines li:last-child { border: 0; padding-bottom: 0; }
.acc-order__foot { display: grid; gap: 4px; justify-items: end; font-size: 13px; color: var(--muted); }
.acc-order__foot strong { font-size: 18px; color: var(--ink); }

/* рефералка */
.acc-ref { display: grid; gap: 14px; }
.acc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.acc-stats .acc-card { padding: 16px; display: grid; gap: 6px; }
.acc-stats span { font-size: 12px; color: var(--muted); }
.acc-stats strong { font-size: 26px; letter-spacing: -.02em; }
.acc-list { list-style: none; margin: 0; padding: 0; display: grid; }
.acc-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.acc-list li:first-child { border-top: 0; }
.acc-list small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.acc-list em { font-style: normal; font-weight: 600; color: var(--muted); }
.acc-list em.is-plus { color: #1b8a4c; }
.acc-list em.is-minus { color: #b3243b; }
.acc-logout { justify-self: center; padding: 10px; font-size: 14px; color: var(--muted); }
.acc-logout:hover { color: #b3243b; }

@media (max-width: 767px) {
	.acc { padding-bottom: 96px; }
	.acc-card { padding: 16px; }
	.acc-stats strong { font-size: 22px; }
}
