/* css/profile.css — стили экрана «profile». Классы — с префиксом .profile-… .
 * Палитра — только токены styles.css. */

.profile-screen { padding: 8px 14px 24px; }

/* ── привет + имя ── */
.profile-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 16px; }
.profile-ava {
  width: 56px; height: 56px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  background: var(--pink-soft);
  border-radius: 50%;
}
.profile-hello { font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }
.profile-edit {
  color: var(--pink); font-size: 13px; font-weight: 700;
  padding: 4px 0; text-align: left;
}
.profile-name-input {
  width: 100%;
  border: 2px solid var(--pink);
  border-radius: var(--r-s);
  padding: 9px 12px;
  font-size: 16px; font-weight: 700;
  outline: none; background: var(--surface); color: var(--text);
}
.profile-namewrap { flex: 1; min-width: 0; }

/* ── карточки бонусов и заказов ── */
.profile-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile-card {
  background: var(--surface);
  border-radius: var(--r-m);
  box-shadow: var(--shadow);
  padding: 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.profile-card.tap { cursor: pointer; transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1); }
.profile-card.tap:active { transform: scale(0.97); }
.profile-card-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.profile-card-big { font-size: 22px; font-weight: 800; font-family: var(--font-head); }
.profile-card.bonus .profile-card-big { color: var(--sun); }
.profile-card-sub { color: var(--muted); font-size: 11.5px; line-height: 1.4; }

/* ── достижения ── */
.profile-h2 { font-size: 17px; margin: 22px 0 10px; }
.profile-count { color: var(--muted); font-weight: 600; font-size: 14px; }
.profile-ach {
  display: flex; gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  margin: 0 -14px; padding-left: 14px; padding-right: 14px;
}
.profile-ach::-webkit-scrollbar { display: none; }
.profile-ach-card {
  flex: none; width: 132px;
  scroll-snap-align: start;
  background: var(--surface);
  border-radius: var(--r-m);
  box-shadow: var(--shadow);
  padding: 12px;
  display: flex; flex-direction: column; gap: 5px;
}
.profile-ach-card.done { background: var(--pink-soft); }
.profile-ach-emoji { font-size: 24px; }
.profile-ach-name { font-size: 13px; font-weight: 800; line-height: 1.25; }
.profile-ach-desc { color: var(--muted); font-size: 11px; line-height: 1.35; flex: 1; }
.profile-ach-bar {
  height: 6px; border-radius: 3px;
  background: rgba(36, 26, 46, 0.08);
  overflow: hidden;
}
.profile-ach-fill {
  display: block; height: 100%;
  background: var(--pink);
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.profile-ach-card.done .profile-ach-fill { background: var(--green); }
.profile-ach-count { font-size: 11px; font-weight: 700; color: var(--muted); }
.profile-ach-card.done .profile-ach-count { color: var(--green); }

/* ── избранное ── */
.profile-fav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 600px) { .profile-fav-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── вы смотрели ── */
.profile-seen {
  display: flex; gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  margin: 0 -14px; padding-left: 14px; padding-right: 14px;
}
.profile-seen::-webkit-scrollbar { display: none; }
.profile-seen .pcard { flex: none; width: 148px; scroll-snap-align: start; }

/* ── пустые блоки ── */
.profile-empty {
  background: var(--surface);
  border-radius: var(--r-m);
  box-shadow: var(--shadow);
  padding: 20px 16px;
  text-align: center;
}
.profile-empty-emoji { font-size: 30px; }
.profile-empty p { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 8px auto 12px; max-width: 300px; }
.profile-empty-btn {
  background: var(--pink-soft); color: var(--pink);
  font-weight: 800; font-size: 13px;
  padding: 10px 18px; border-radius: 999px;
}

/* ── строка «Анонимность» (зона: тихо) ── */
.profile-anon {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border-radius: var(--r-m);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-top: 22px;
  text-align: left;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.profile-anon:active { transform: scale(0.98); }
.profile-anon-emoji { font-size: 24px; flex: none; }
.profile-anon-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.profile-anon-text b { font-size: 15px; }
.profile-anon-text small { color: var(--muted); font-size: 12px; }
.profile-anon-arrow { color: var(--muted); font-size: 22px; }

/* ── документы (зона: тихо) ── */
.profile-docs { margin-top: 24px; padding: 0 2px; }
.profile-docs-title {
  color: var(--muted); font-size: 12px; font-weight: 700;
  margin-bottom: 8px;
}
.profile-docs-links { display: flex; flex-direction: column; gap: 6px; }
.profile-docs-links a {
  color: var(--muted); font-size: 12.5px;
  text-decoration: underline; text-underline-offset: 2px;
}
.profile-docs-req { color: var(--muted); font-size: 11.5px; margin-top: 10px; }

/* ── шторка заказов ── */
.profile-orders-title { font-size: 18px; margin-bottom: 12px; }
.profile-order {
  background: var(--bg);
  border-radius: var(--r-m);
  padding: 12px 14px;
  margin-bottom: 8px;
}
.profile-order-top { display: flex; justify-content: space-between; font-size: 14px; }
.profile-order-top span { color: var(--muted); font-size: 12.5px; }
.profile-order-mid { color: var(--text); font-size: 13px; font-weight: 600; margin-top: 4px; }
.profile-order-status {
  display: inline-block;
  margin-top: 8px;
  background: color-mix(in oklab, var(--sun) 20%, var(--surface));
  color: color-mix(in oklab, var(--sun) 55%, var(--text));
  font-size: 11.5px; font-weight: 800;
  padding: 4px 10px; border-radius: 999px;
}
.profile-orders-note { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin-top: 10px; }
