/* ============================================================
   Mind Group — личный кабинет
   ============================================================ */
.acc { padding: 56px 0 80px; }
.acc__container { max-width: 920px; }

/* атрибут hidden должен побеждать display:flex/grid у блоков и форм */
.acc__auth[hidden], .acc__dash[hidden], .acc__form[hidden] { display: none !important; }

/* ---- auth ---- */
.acc__auth { display: flex; justify-content: center; }
.acc__auth-card { width: 100%; max-width: 440px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 40px 38px; box-shadow: var(--shadow-lg); text-align: center; }
.acc__auth-emoji { font-size: 54px; margin-bottom: 8px; }
.acc__auth-card h1 { font-size: 28px; margin-bottom: 8px; }
.acc__auth-sub { color: var(--ink-soft); font-size: 15px; margin-bottom: 24px; }
.acc__notice { background: var(--cream-2); border-radius: var(--r); padding: 14px 16px; font-size: 13px; color: var(--ink); text-align: left; line-height: 1.5; margin-bottom: 22px; }
.acc__form { display: grid; gap: 14px; text-align: left; }
.acc__field { display: grid; gap: 6px; }

/* ---- вход по коду ---- */
.acc__code-hint { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 4px; }
.acc__code-hint strong { color: var(--ink); }
.acc__code-input { text-align: center; font-family: "Unbounded", monospace; font-size: 24px !important; letter-spacing: 7px; padding-left: 7px !important; font-weight: 700; }
.acc__code-details { text-align: left; margin-top: 4px; }
.acc__code-details summary { cursor: pointer; font-size: 13px; color: var(--ink-soft); user-select: none; }
.acc__code-details summary:hover { color: var(--ink); }
.acc__code-details[open] summary { margin-bottom: 4px; }
.acc__field span { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.acc__field input { padding: 13px 16px; border: 2px solid var(--line); border-radius: var(--r); background: var(--cream); font-family: inherit; font-size: 15px; color: var(--ink); outline: none; transition: border-color .2s; }
.acc__field input:focus { border-color: var(--peach-d); background: #fff; }
.acc__form .btn { margin-top: 6px; }
.acc__error { background: #fdecea; color: #b3261e; padding: 11px 14px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; }
.acc__ok { background: #e7f5ec; color: var(--sage-d); padding: 11px 14px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; }
.acc__links { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.acc__link { background: none; border: none; color: var(--peach-d); font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer; padding: 0; }
.acc__link:hover { text-decoration: underline; }

/* ---- dashboard ---- */
.acc__dash-head { display: flex; align-items: center; gap: 18px; margin-bottom: 34px; }
.acc__avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--grad-sun); color: #fff; display: grid; place-items: center; font-family: "Unbounded"; font-size: 28px; font-weight: 700; flex-shrink: 0; box-shadow: 0 8px 20px rgba(44,120,115,.35); }
.acc__dash-info { flex: 1; }
.acc__dash-info h1 { font-size: clamp(24px, 3vw, 32px); }
.acc__dash-info p { color: var(--ink-soft); font-size: 14.5px; }

.acc__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.acc__stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; text-align: center; box-shadow: var(--shadow-sm); }
.acc__stat-emoji { font-size: 26px; display: block; margin-bottom: 6px; }
.acc__stat strong { font-family: "Unbounded"; font-size: 26px; display: block; color: var(--terra); }
.acc__stat span { font-size: 13px; color: var(--ink-soft); }

.acc__section-title { font-size: 22px; margin-bottom: 18px; }
.acc__results { display: grid; gap: 14px; }
.rescard { display: flex; align-items: center; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.rescard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.rescard__emoji { width: 54px; height: 54px; border-radius: 16px; background: var(--cream-2); display: grid; place-items: center; font-size: 28px; flex-shrink: 0; color: var(--peach-d); font-weight: 700; line-height: 1; }
.rescard__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rescard__info strong { font-size: 16px; }
.rescard__headline { font-size: 14px; color: var(--peach-d); font-weight: 600; }
.rescard__date { font-size: 12.5px; color: var(--ink-soft); }
.rescard__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.rescard__del { background: none; border: none; font-size: 18px; cursor: pointer; opacity: .5; transition: opacity .2s; }
.rescard__del:hover { opacity: 1; }

.acc__empty { text-align: center; padding: 50px 20px; }
.acc__empty-emoji { font-size: 48px; margin-bottom: 12px; }
.acc__empty p { color: var(--ink-soft); font-size: 17px; margin-bottom: 18px; }

@media (max-width: 640px) {
  .acc__stats { grid-template-columns: 1fr; }
  .rescard { flex-wrap: wrap; }
  .rescard__actions { width: 100%; justify-content: space-between; }
}

/* ============================================================
   Вход/регистрация: Google, вкладки, подсказки
   ============================================================ */
.acc__google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 16px; font-family: inherit; font-size: 15px; font-weight: 700; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; transition: .2s; margin-bottom: 4px; }
.acc__google:hover { border-color: var(--sage); box-shadow: 0 4px 14px rgba(16,34,31,.08); }

.acc__or { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.acc__or::before, .acc__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.acc__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--cream-2); border-radius: 14px; padding: 5px; margin-bottom: 18px; }
.acc__tabs[hidden] { display: none; }
.acc__tab { padding: 10px; border: none; border-radius: 10px; background: none; font-family: inherit; font-size: 14.5px; font-weight: 700; color: var(--ink-soft); cursor: pointer; transition: .2s; }
.acc__tab.active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(16,34,31,.08); }

.acc__hint { font-size: 12.5px; color: var(--ink-soft); text-align: center; margin: 4px 0 0; }
