/* =============================================
   ACCOUNT.CSS — личный кабинет (v2)
   ============================================= */

/* ===== АВТОРИЗОВАН: шапка профиля (светлая, широкая) ===== */
.ac-page { max-width: 1140px; margin: 0 auto; padding: 28px 5% 64px; }

.ac-hero {
  background:
    radial-gradient(720px 300px at 90% -45%, var(--pink-bg) 0%, rgba(255,240,246,0) 70%),
    var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px 30px;
  margin: 0 0 24px;
}
.ac-hero__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.ac-hero__avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(255,107,157,.4);
}
.ac-hero__info { flex: 1; min-width: 0; }
.ac-hero__name  { font-size: 1.25rem; font-weight: 900; color: var(--dark); }
.ac-hero__email { font-size: .82rem; color: var(--gray); margin-top: 2px; }

.ac-hero__stats { display: flex; align-items: center; gap: 22px; }
.ac-hero__stat  { text-align: center; }
.ac-hero__stat-num { display: block; font-size: 1.4rem; font-weight: 900; color: var(--dark); line-height: 1; }
.ac-hero__stat-lbl { font-size: .7rem; color: var(--gray); margin-top: 3px; }
.ac-hero__stat-sep { width: 1px; height: 36px; background: var(--border); }

.ac-hero__cta {
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 12px 24px;
  font-size: .92rem;
  font-weight: 800;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(255,107,157,.35);
  transition: transform .15s;
}
.ac-hero__cta:hover { transform: translateY(-2px); }

/* ===== Таб-навигация ===== */
.ac-tabs-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 20px 0 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}
.ac-tab {
  padding: 10px 20px;
  font-size: .88rem;
  font-weight: 800;
  color: var(--gray);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: color .15s, border-color .15s;
  text-decoration: none;
  white-space: nowrap;
}
.ac-tab:hover  { color: var(--dark); }
.ac-tab.active { color: var(--pink); border-bottom-color: var(--pink); }
.ac-tab--exit  { margin-left: auto; color: #ef4444; }
.ac-tab--exit:hover { color: #b91c1c; border-bottom-color: transparent; }

/* ===== Панели ===== */
.ac-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  overflow: hidden;
  margin-bottom: 20px;
}
.ac-panel__head {
  padding: 20px 24px;
  border-bottom: 2px solid var(--light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ac-panel__title { font-size: 1rem; font-weight: 900; }

.btn-sm-pink {
  background: var(--pink-bg);
  color: var(--pink);
  border: 1.5px solid #fda4af;
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  font-size: .82rem;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-sm-pink:hover { background: var(--pink); color: #fff; }

/* Загрузка / пустое состояние */
.ac-loading { padding: 40px; text-align: center; color: var(--gray); font-size: .9rem; }
.ac-empty   { padding: 48px 24px; text-align: center; }
.ac-empty__icon { font-size: 3rem; margin-bottom: 12px; }
.ac-empty__text { font-size: .95rem; color: var(--gray); font-weight: 700; }

/* ===== Таблица заказов ===== */
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th {
  padding: 12px 20px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gray);
  text-align: left;
  background: var(--light);
  border-bottom: 2px solid var(--border);
}
.orders-table td {
  padding: 14px 20px;
  font-size: .87rem;
  border-bottom: 1px solid var(--light);
  vertical-align: middle;
}
.orders-table tr:last-child td { border-bottom: none; }
.orders-table tbody tr:hover td { background: #fffbf8; }

.order-theme__name  { font-weight: 800; font-size: .9rem; }
.order-theme__child { font-size: .75rem; color: var(--gray); margin-top: 2px; }

.status-badge { font-size: .72rem; font-weight: 800; padding: 4px 12px; border-radius: 100px; }
.status-badge--paid    { background: #dcfce7; color: #15803d; }
.status-badge--pending { background: #fef3c7; color: #d97706; }

.btn-download-pdf {
  background: var(--pink-bg);
  color: var(--pink);
  border: 1.5px solid #fda4af;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: .76rem;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  text-decoration: none;
  transition: background .15s, color .15s;
  display: inline-block;
}
.btn-download-pdf:hover { background: var(--pink); color: #fff; }

/* ===== Форма профиля ===== */
.ac-form { padding: 24px; }
.ac-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.ac-form__field label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gray);
  margin-bottom: 6px;
}
.ac-form__field input {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .92rem;
  font-family: 'Nunito', sans-serif;
  outline: none;
  transition: border-color .15s;
}
.ac-form__field input:focus { border-color: var(--pink); }

/* ===== Подписка ===== */
.ac-sub { padding: 24px; }
.ac-sub__card--dark {
  background: linear-gradient(135deg, var(--pink-bg), var(--orng-bg));
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.ac-sub__plan   { font-size: 1.05rem; font-weight: 900; color: var(--dark); margin-bottom: 4px; }
.ac-sub__status { font-size: .82rem; color: var(--gray); }
.ac-sub__perks  { display: flex; flex-direction: column; gap: 10px; }
.ac-sub__perk   { font-size: .9rem; color: var(--dark); }

/* ===== Доп. наполнение кабинета ===== */
.ac-hero__badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.ac-badge {
  font-size: .72rem; font-weight: 800; padding: 4px 11px; border-radius: 100px;
  background: var(--light); color: var(--gray); border: 1px solid var(--border);
}
.ac-badge--ok { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }

#tab-orders > .ac-panel,
#tab-orders > .ac-promo { margin-bottom: 20px; }
#tab-orders > :last-child { margin-bottom: 0; }

.ac-promo {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--pink-bg), var(--purp-bg));
  border: 1.5px solid var(--border2); border-radius: var(--radius-lg); padding: 20px 24px;
}
.ac-promo__title { font-size: 1.02rem; font-weight: 900; color: var(--dark); }
.ac-promo__sub   { font-size: .82rem; color: var(--gray); margin-top: 3px; max-width: 470px; }

.ac-themes-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 20px 24px; }
.ac-theme-mini {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px;
  padding: 16px 10px; border: 1.5px solid var(--border); border-radius: var(--radius-md);
  background: var(--white); transition: border-color .15s, transform .15s, box-shadow .15s;
}
.ac-theme-mini:hover { border-color: var(--pink); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.ac-theme-mini__emoji { font-size: 1.9rem; line-height: 1; }
.ac-theme-mini__name  { font-size: .82rem; font-weight: 800; color: var(--dark); line-height: 1.2; }
.ac-theme-mini__age   { font-size: .7rem; color: var(--gray); }

.ac-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px 24px; }
.ac-info-card { display: flex; gap: 12px; align-items: flex-start; }
.ac-info-card__ic {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; background: var(--light);
  border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.ac-info-card__t { font-size: .88rem; font-weight: 800; color: var(--dark); }
.ac-info-card__d { font-size: .78rem; color: var(--gray); margin-top: 2px; line-height: 1.45; }
.ac-info-card__d a { color: var(--pink); font-weight: 800; }

@media (max-width: 680px) {
  .ac-themes-mini { grid-template-columns: repeat(2, 1fr); }
  .ac-info-grid   { grid-template-columns: 1fr; }
}

/* ===== НЕ АВТОРИЗОВАН: страница входа ===== */
.ac-auth-page {
  min-height: calc(100vh - 140px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1060px;
  margin: 0 auto;
  padding: 48px 5%;
  gap: 60px;
  align-items: center;
}
.ac-auth-left__logo  { font-size: 1.4rem; font-weight: 900; color: var(--pink); margin-bottom: 20px; }
.ac-auth-left__title { font-size: 2rem; font-weight: 900; line-height: 1.2; margin-bottom: 12px; }
.ac-auth-left__sub   { font-size: .95rem; color: var(--gray); line-height: 1.7; margin-bottom: 28px; }
.ac-auth-left__features { display: flex; flex-direction: column; gap: 12px; }
.ac-auth-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  font-weight: 700;
  color: var(--dark);
}

.ac-auth-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.08);
}

/* ===== Общие: форма входа ===== */
.auth-tabs { display: flex; border-bottom: 2px solid var(--border); }
.auth-tab {
  flex: 1;
  padding: 16px;
  text-align: center;
  font-size: .92rem;
  font-weight: 800;
  cursor: pointer;
  transition: color .15s;
  color: var(--gray);
  background: none;
  border: none;
  font-family: 'Nunito', sans-serif;
}
.auth-tab.active { color: var(--pink); box-shadow: inset 0 -3px 0 var(--pink); }

.auth-body { padding: 28px; }

.auth-field { margin-bottom: 16px; }
.auth-field label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gray);
  margin-bottom: 6px;
}
.auth-field input {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: .95rem;
  font-family: 'Nunito', sans-serif;
  outline: none;
  transition: border-color .15s;
}
.auth-field input:focus { border-color: var(--pink); }

.btn-auth {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  box-shadow: 0 4px 16px rgba(255,107,157,.3);
  transition: transform .15s, opacity .15s;
  margin-top: 4px;
  text-decoration: none;
  display: block;
  text-align: center;
}
.btn-auth:hover    { transform: translateY(-1px); }
.btn-auth:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Сообщения об ошибках */
.ac-msg { padding: 10px 14px; border-radius: 10px; font-size: .85rem; font-weight: 700; margin-bottom: 14px; }
.ac-msg--err { background: #fee2e2; color: #b91c1c; }
.ac-msg--ok  { background: #dcfce7; color: #15803d; }

/* =============================================
   AUTH v3 — светлый широкий экран входа (доверие)
   ============================================= */
.auth2 {
  background:
    radial-gradient(1100px 480px at 85% -8%, var(--pink-bg) 0%, rgba(255,240,246,0) 60%),
    radial-gradient(900px 420px at 0% 110%, var(--purp-bg) 0%, rgba(250,245,255,0) 55%),
    var(--white);
  padding: 56px 6% 80px;
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
}
.auth2__wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

/* --- Левая колонка: доверие --- */
.auth2__pill {
  display: inline-block;
  background: var(--pink-bg);
  color: var(--pink);
  border: 1.5px solid var(--border2);
  border-radius: 100px;
  padding: 7px 18px;
  font-size: .8rem;
  font-weight: 800;
  margin-bottom: 22px;
}
.auth2__title {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--dark);
  margin-bottom: 16px;
}
.auth2__sub {
  font-size: 1.02rem;
  color: var(--gray);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 34px;
}
.auth2__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 34px;
}
.auth2__feat { display: flex; align-items: flex-start; gap: 13px; }
.auth2__feat-ic {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--white);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.auth2__feat-t { font-size: .92rem; font-weight: 800; color: var(--dark); }
.auth2__feat-d { font-size: .8rem; color: var(--gray); margin-top: 2px; line-height: 1.4; }

.auth2__trust {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 16px 24px;
  width: fit-content;
}
.auth2__trust-item { text-align: center; }
.auth2__trust-item b { display: block; font-size: 1.15rem; font-weight: 900; color: var(--dark); }
.auth2__trust-item span { font-size: .72rem; color: var(--gray); }
.auth2__trust-sep { width: 1px; height: 30px; background: var(--border); }

/* --- Правая колонка: карточка формы --- */
.auth2__card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 60px rgba(26,26,46,.10);
  overflow: hidden;
  max-width: 440px;
  width: 100%;
  justify-self: end;
}
.auth2__tabs {
  display: flex;
  gap: 6px;
  padding: 10px;
  background: var(--light);
  border-bottom: 1.5px solid var(--border);
}
.auth2__tab {
  flex: 1;
  padding: 13px;
  text-align: center;
  font-size: .92rem;
  font-weight: 800;
  cursor: pointer;
  color: var(--gray);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  transition: background .15s, color .15s, box-shadow .15s;
}
.auth2__tab.active { color: var(--pink); background: var(--white); box-shadow: var(--shadow-sm); }
.auth2__form { padding: 28px 28px 8px; }
.auth2__secure {
  padding: 16px 28px 24px;
  font-size: .78rem;
  color: var(--gray);
  text-align: center;
}

/* --- Адаптив auth v3 --- */
@media (max-width: 880px) {
  .auth2__wrap { grid-template-columns: 1fr; gap: 36px; max-width: 460px; }
  .auth2 { padding-top: 36px; }
  .auth2__card { justify-self: stretch; max-width: none; }
  .auth2__features { grid-template-columns: 1fr; gap: 14px; }
  .auth2__trust { width: 100%; justify-content: space-between; }
}
@media (max-width: 420px) {
  .auth2__trust { gap: 10px; padding: 14px 16px; }
  .auth2__trust-item b { font-size: 1rem; }
}

/* ===== Адаптив (кабинет) ===== */
@media (max-width: 780px) {
  .ac-auth-page { grid-template-columns: 1fr; padding-top: 32px; gap: 32px; }
  .ac-auth-left { display: none; }
  .ac-hero__stats { display: none; }
  .ac-tabs-bar { overflow-x: auto; }
}
@media (max-width: 550px) {
  .ac-form__row { grid-template-columns: 1fr; }
  .ac-hero__inner { gap: 14px; }
  .ac-hero__cta { width: 100%; text-align: center; }
}

/* ===== Достижения ===== */
.ac-achv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 20px 24px; }
.ac-achv__item { text-align: center; padding: 16px 10px; border: 1.5px solid var(--border); border-radius: var(--radius-md); background: var(--light); opacity: .55; }
.ac-achv__item.is-done { opacity: 1; background: linear-gradient(135deg, #fffbeb, #fff0f6); border-color: var(--border2); }
.ac-achv__ic { font-size: 1.8rem; line-height: 1; }
.ac-achv__t { font-size: .84rem; font-weight: 800; color: var(--dark); margin-top: 6px; }
.ac-achv__d { font-size: .72rem; color: var(--gray); margin-top: 2px; line-height: 1.3; }

/* ===== Бейдж бонуса ===== */
.ac-badge--bonus { background: #fef9c3; color: #a16207; border-color: #fde68a; }

/* ===== Мои дети ===== */
.ac-children { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.ac-child { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-md); background: var(--white); }
.ac-child__ava { width: 40px; height: 40px; border-radius: 50%; background: var(--pink-bg); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.ac-child__info { flex: 1; min-width: 0; }
.ac-child__name { font-weight: 800; font-size: .92rem; color: var(--dark); }
.ac-child__age { font-size: .76rem; color: var(--gray); }
.ac-child__del { border: none; background: var(--light); color: var(--gray); width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-size: 1rem; line-height: 1; transition: background .15s, color .15s; }
.ac-child__del:hover { background: #fee2e2; color: #b91c1c; }
.ac-child-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ac-child-form input, .ac-child-form select { padding: 11px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-family: 'Nunito', sans-serif; font-size: .9rem; outline: none; }
.ac-child-form input { flex: 1; min-width: 160px; }
.ac-child-form input:focus, .ac-child-form select:focus { border-color: var(--pink); }

/* ===== Реферал ===== */
.ac-ref-box { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.ac-ref-box input { flex: 1; min-width: 200px; padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-family: 'Nunito', sans-serif; font-size: .9rem; background: var(--light); color: var(--dark); }
.ac-ref-stats { display: flex; gap: 28px; padding: 16px 0; border-top: 1.5px solid var(--border); border-bottom: 1.5px solid var(--border); margin-bottom: 18px; }
.ac-ref-stat b { display: block; font-size: 1.4rem; font-weight: 900; color: var(--pink); }
.ac-ref-stat span { font-size: .76rem; color: var(--gray); }
.ac-ref-share { display: flex; gap: 10px; flex-wrap: wrap; }
.ac-share { padding: 10px 18px; border-radius: var(--radius-sm); font-size: .85rem; font-weight: 800; color: #fff; text-decoration: none; }
.ac-share--vk { background: #4a76a8; }
.ac-share--tg { background: #2aabee; }
.ac-share--wa { background: #25d366; }
.ac-share:hover { opacity: .9; }

@media (max-width: 680px) {
  .ac-achv { grid-template-columns: repeat(2, 1fr); }
}
