/* Доводки поверх дизайн-системы: общая обвязка страниц и мелочи профиля. */

/* Шапка/футер липнут к краям, контент тянет страницу на всю высоту. */
.page-shell { display: flex; flex-direction: column; min-height: 100vh; }
.app-main { flex: 1 0 auto; }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* Индикатор активных примерок: спиннер крутится, пока есть pending; иначе скрыт. */
.gen-indicator { display: none; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--plum-900); font-size: 13px; font-weight: 700; text-decoration: none; }
.gen-indicator.is-active { display: inline-flex; }
.gen-indicator__spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--plum-100, #e6dcff); border-top-color: var(--plum-800); animation: gen-indicator-spin .7s linear infinite; }
@keyframes gen-indicator-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gen-indicator__spinner { animation: none; } }

/* Профиль */
[data-section][hidden] { display: none; }
.account-menu a { cursor: pointer; }
.account-menu__logout { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.account-menu__logout button { width: 100%; text-align: left; padding: 12px 13px; border: 0; border-radius: 13px; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.account-menu__logout button:hover { background: var(--plum-050); color: var(--plum-900); font-weight: 700; }
a.mini-look { display: block; color: inherit; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
a.mini-look:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 20, 20, .1); }
/* Карточка-обложка в портрете 9:16 — иначе object-fit обрезает голову. */
.mini-look__image, .published-card .mini-look__image { height: auto; aspect-ratio: 9 / 16; }
.mini-look__image--photo::after { display: none; }
.mini-look__image--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini-look--editable { display: flex; flex-direction: column; }
.mini-look--editable .mini-look__link { display: block; color: inherit; text-decoration: none; }
.mini-look--editable .mini-look__body { flex: 1; padding-bottom: 6px; }
.mini-look__actions { padding: 0 14px 14px; }
.mini-look__actions .button { width: 100%; }
.profile-empty { padding: 36px; text-align: center; color: var(--muted); }
.flash-success { margin-bottom: 16px; padding: 12px 14px; border-radius: 14px; background: #eef6d6; color: #4d5d16; font-size: 13px; font-weight: 600; }
.flash-error { margin-bottom: 16px; padding: 12px 14px; border-radius: 14px; background: #fbe4e4; color: #a32d2d; font-size: 13px; font-weight: 600; }
.form-readonly { background: var(--milk); color: var(--muted); }

/* Конструктор внутри общего лейаута */
.lb-stage { padding: 40px 0 56px; display: flex; justify-content: center; }

/* AJAX-попап входа (виджет) */
body.is-modal-open { overflow: hidden; }

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(26, 17, 28, .52);
  backdrop-filter: blur(8px);
}
.login-modal.is-open { display: flex; animation: login-modal-fade .18s ease; }
@keyframes login-modal-fade { from { opacity: 0; } to { opacity: 1; } }

.login-modal__dialog {
  position: relative;
  width: min(100%, 400px);
  padding: 36px 32px 32px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  text-align: center;
  animation: login-modal-rise .22s ease;
}
@keyframes login-modal-rise { from { transform: translateY(14px); opacity: .4; } to { transform: none; opacity: 1; } }

.login-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--plum-050);
  color: var(--muted);
  transition: color .15s, background .15s;
}
.login-modal__close:hover { color: var(--plum-900); background: var(--plum-100); }
.login-modal__close svg { width: 18px; height: 18px; }

.login-modal__mark { margin: 0 auto 18px; transform: scale(.9); }
.login-modal__title { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.login-modal__sub { margin-top: 6px; color: var(--muted); font-size: 14px; }

.login-modal__referral { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 9px 14px; border-radius: 999px; background: var(--plum-050); color: var(--plum-700); font-size: 13px; font-weight: 500; }
.login-modal__referral svg { width: 16px; height: 16px; flex-shrink: 0; }

.login-modal__providers { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.login__provider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.login__provider:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.login__provider-icon { width: 22px; height: 22px; display: grid; place-items: center; font-size: 13px; font-weight: 700; border-radius: 6px; }
.login__yandex { background: #fc3f1d; color: #fff; }
.login__yandex .login__provider-icon { background: #fff; color: #fc3f1d; }
.login__google { background: #fff; color: var(--graphite); border-color: var(--line); }
.login__google:hover { background: #faf9fc; }
.login__vk { background: #07f; color: #fff; }
.login__vk .login__provider-icon { background: rgba(255, 255, 255, .2); color: #fff; font-size: 11px; }

.login-modal__divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.login-modal__divider::before, .login-modal__divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.login-modal__passkey-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--plum-900);
  font-size: 15px;
  font-weight: 600;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.login-modal__passkey-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); border-color: #d5c6da; }
.login-modal__passkey-btn svg { width: 20px; height: 20px; }

.login-modal__hint { margin-top: 12px; font-size: 13px; color: var(--muted); }
.login-modal__hint--error { color: #a32d2d; }

/* Заставка страницы /login (фон под авто-открытым попапом) */
.login-splash { padding: 96px 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.login-splash .brand-mark { margin-bottom: 16px; }
.login-splash h1 { font-size: 34px; letter-spacing: -.02em; }
.login-splash p { max-width: 440px; color: var(--muted); }
.login-splash__error { margin-top: 4px; color: #a32d2d; font-size: 14px; }
.login-splash .button { margin-top: 16px; }

/* Страница 404 */
.notfound {
  padding: 80px 0 96px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.notfound__art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.notfound__digit {
  font-size: clamp(120px, 26vw, 240px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--plum-900), #6e19a6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Вешалка-логотип вместо нуля */
.notfound__hanger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(90px, 20vw, 180px);
  height: clamp(120px, 26vw, 240px);
}
.notfound__hanger .brand-mark {
  transform: scale(2.2) rotate(-8deg);
  transform-origin: center;
  animation: notfound-swing 3.2s ease-in-out infinite;
}
@keyframes notfound-swing {
  0%, 100% { transform: scale(2.2) rotate(-8deg); }
  50% { transform: scale(2.2) rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .notfound__hanger .brand-mark { animation: none; }
}
.notfound h1 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -.02em; margin: 0; }
.notfound p { max-width: 460px; color: var(--muted); margin: 4px 0 0; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
