/* EVERMIRA — личный кабинет и мастер создания. Дополняет style.css */

.app-main { padding: 40px 0 80px; }
.app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 38px; }
.app-head h1 { font-size: clamp(28px, 4vw, 42px); }
.app-head .greet { color: var(--muted); margin-top: 6px; font-size: 15px; }

/* статистика */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px; }
.stat {
  padding: 22px 24px; border-radius: var(--radius-sm);
  background: var(--panel); border: 1px solid var(--line-soft);
}
.stat__ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(224,177,115,0.12); border: 1px solid rgba(224,177,115,0.22); margin-bottom: 14px; }
.stat__ic svg { width: 19px; height: 19px; color: var(--gold); }
.stat__num { font-family: var(--serif); font-size: 34px; line-height: 1; }
.stat__lbl { font-size: 12.5px; color: var(--faint); margin-top: 6px; letter-spacing: .4px; }

/* раскладка кабинета */
.app-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.panel-block { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px; }
.panel-block__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-block__head h3 { font-size: 20px; }
.panel-block__head a { font-size: 13px; color: var(--gold); }

/* карточки мемориалов */
.mcards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mcard {
  display: flex; flex-direction: column; border-radius: 14px; overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--line-soft);
  transition: transform .35s var(--ease), border-color .35s;
}
.mcard:hover { transform: translateY(-4px); border-color: rgba(224,177,115,0.3); }
.mcard__cover { height: 110px; position: relative; background: linear-gradient(150deg, #2a3140, #14171f); }
.mcard__cover img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.mcard__badge {
  position: absolute; top: 10px; right: 10px; font-size: 10.5px; letter-spacing: .5px;
  padding: 4px 10px; border-radius: 20px; background: rgba(12,14,19,0.7); backdrop-filter: blur(6px);
  border: 1px solid var(--line);
}
.mcard__badge.live { color: #8fd4a3; border-color: rgba(143,212,163,0.4); }
.mcard__badge.draft { color: var(--azure); }
.mcard__ava {
  position: absolute; left: 16px; bottom: -20px; width: 52px; height: 52px; border-radius: 13px;
  border: 2px solid var(--panel); display: grid; place-items: center; overflow: hidden;
  font-family: var(--serif); font-size: 22px; color: var(--ink);
  background: linear-gradient(150deg, var(--gold), var(--gold-soft));
}
.mcard__ava img { width: 100%; height: 100%; object-fit: cover; }
.mcard__body { padding: 30px 18px 18px; }
.mcard__name { font-family: var(--serif); font-size: 20px; }
.mcard__years { font-size: 13px; color: var(--gold); margin-top: 2px; }
.mcard__meta { display: flex; gap: 16px; margin-top: 14px; font-size: 12.5px; color: var(--faint); }
.mcard__meta span { display: inline-flex; align-items: center; gap: 6px; }
.mcard__meta svg { width: 14px; height: 14px; }

/* карточка-добавление */
.mcard--add {
  align-items: center; justify-content: center; text-align: center; min-height: 230px;
  border-style: dashed; border-color: var(--line); color: var(--muted); cursor: pointer;
}
.mcard--add:hover { color: var(--gold); border-color: var(--gold); }
.mcard--add svg { width: 30px; height: 30px; margin-bottom: 10px; }

/* лента активности */
.feed { display: flex; flex-direction: column; gap: 4px; }
.feed-item { display: flex; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.feed-item:last-child { border-bottom: none; }
.feed-item .fava { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 14px; color: var(--ink); background: linear-gradient(150deg, var(--gold), var(--gold-soft)); }
.feed-item p { font-size: 13.5px; color: var(--text); }
.feed-item p b { font-weight: 650; }
.feed-item time { font-size: 11.5px; color: var(--faint); }

/* очередь модерации */
.mod { display: flex; flex-direction: column; gap: 12px; }
.mod-item { padding: 14px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line-soft); }
.mod-item .who { font-size: 13px; font-weight: 650; }
.mod-item .who span { color: var(--faint); font-weight: 400; }
.mod-item p { font-size: 13px; color: var(--muted); font-style: italic; margin: 6px 0 12px; }
.mod-item .acts { display: flex; gap: 8px; }
.chip { font-size: 12px; padding: 6px 14px; border-radius: 9px; border: 1px solid var(--line); color: var(--text); transition: .2s; }
.chip:hover { border-color: var(--gold); }
.chip--ok { background: rgba(224,177,115,0.14); border-color: rgba(224,177,115,0.4); color: var(--gold); }

/* ===================== МАСТЕР СОЗДАНИЯ ===================== */
.wizard { max-width: 760px; }
.steps { display: flex; gap: 8px; margin-bottom: 40px; }
.step-dot { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.step-dot .bar { height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; }
.step-dot.is-done .bar, .step-dot.is-active .bar { background: var(--gold); }
.step-dot .lbl { font-size: 12px; color: var(--faint); }
.step-dot.is-active .lbl { color: var(--text); }

.wstep { display: none; animation: fade .4s var(--ease); }
.wstep.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.wstep h2 { font-size: 30px; margin-bottom: 8px; }
.wstep .sub { color: var(--muted); margin-bottom: 30px; }

.field { margin-bottom: 22px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; letter-spacing: .3px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border-radius: 11px; font-family: inherit; font-size: 15px;
  background: var(--ink-2); border: 1px solid var(--line); color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(224,177,115,0.12); }
.field textarea { resize: vertical; min-height: 100px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* выбор приватности */
.choices { display: grid; gap: 12px; }
.choice { display: flex; gap: 14px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--ink-2); cursor: pointer; transition: border-color .2s, background .2s; }
.choice:hover { border-color: rgba(224,177,115,0.4); }
.choice.is-sel { border-color: var(--gold); background: rgba(224,177,115,0.07); }
.choice .ic { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); }
.choice .ic svg { width: 18px; height: 18px; color: var(--gold); }
.choice h4 { font-family: var(--sans); font-size: 15px; font-weight: 650; }
.choice p { font-size: 13px; color: var(--muted); margin-top: 3px; }

.wnav { display: flex; justify-content: space-between; margin-top: 36px; }

/* финал */
.done-card { text-align: center; padding: 30px 0; }
.done-orb { width: 96px; height: 96px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, rgba(224,177,115,0.4), transparent 70%); }
.done-orb svg { width: 44px; height: 44px; color: var(--gold); }
.share-link { display: flex; gap: 10px; margin: 24px auto 0; max-width: 460px; }
.share-link input { flex: 1; }

@media (max-width: 920px) {
  .app-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .mcards { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .steps .lbl { display: none; }
}
