/* Noryx — аккаунт: кнопка в шапке, вход/регистрация, профиль */

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-account {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-secondary);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.06);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nav-account:hover,
.nav-account.is-on {
  color: var(--text-primary);
  border-color: var(--accent-from);
}

.nav-account.is-on {
  background: linear-gradient(135deg, rgba(110, 110, 118, 0.35), rgba(70, 70, 77, 0.2));
}

.nav-account svg {
  width: 20px;
  height: 20px;
}




.acct-card {
  position: relative;
  width: min(440px, 100%);
  padding: 34px 30px 30px;
  border-radius: var(--radius-xl);
  background: linear-gradient(165deg, rgba(33, 33, 33, 0.96), rgba(16, 16, 22, 0.97));
  border: 1px solid var(--stroke-strong);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 80px rgba(110, 110, 118, 0.12);
  animation: acct-pop 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes acct-fade {
  from { opacity: 0; }
}

@keyframes acct-pop {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
}



.acct-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-weight: 700;
}

.acct-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  overflow-wrap: anywhere;
}

.acct-sub {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.acct-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 22px 0 18px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
}

.acct-tabs button {
  border: 0;
  background: transparent;
  padding: 10px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
}

.acct-tabs button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
}

.acct-form {
  display: grid;
  gap: 14px;
}

.acct-form[data-mode="login"] [data-only="register"] {
  display: none;
}

.acct-form label {
  display: grid;
  gap: 6px;
}

.acct-form label span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.acct-form input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-primary);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.acct-form input:focus {
  outline: none;
  border-color: var(--accent-from);
  box-shadow: 0 0 0 3px rgba(110, 110, 118, 0.25);
}

.acct-error {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.82rem;
  color: var(--error);
}

.acct-submit {
  width: 100%;
}

.acct-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 36px;
  margin-bottom: 22px;
}

.acct-avatar {
  flex: none;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  box-shadow: 0 10px 30px rgba(110, 110, 118, 0.4);
}

.acct-data {
  margin: 0;
  display: grid;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
}

.acct-data > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
}

.acct-data > div + div {
  border-top: 1px solid var(--stroke);
}

.acct-data dt {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.acct-data dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.acct-data .mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.acct-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--error);
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.acct-badge.is-on {
  color: var(--ok);
  background: rgba(134, 239, 172, 0.1);
  border-color: rgba(134, 239, 172, 0.3);
}

.acct-activate {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(110, 110, 118, 0.16), rgba(70, 70, 77, 0.07));
  border: 1px solid rgba(194, 194, 194, 0.2);
}


.acct-activate p {
  margin: 0 0 14px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.acct-plans {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.acct-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  font-size: 0.88rem;
}

.acct-plan b {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.acct-logout {
  margin-top: 18px;
}

@media (max-width: 960px) {
  .nav-right {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .acct-card {
    padding: 28px 20px 22px;
  }
}

/* ---------- страница аккаунта ---------- */

.acct-page {
  min-height: 100vh;
}

.acct-auth[hidden],
.acct-profile[hidden],
.acct-activate[hidden] {
  display: none;
}

.acct-auth {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 110px 16px 60px;
}

.acct-auth .glow-a {
  width: 520px;
  height: 520px;
  top: 8%;
  left: 50%;
  margin-left: -260px;
  background: rgba(110, 110, 118, 0.22);
}

.acct-profile {
  position: relative;
  padding: 130px 0 90px;
}

.acct-profile .glow-a {
  width: 560px;
  height: 560px;
  top: 0;
  left: -160px;
  background: rgba(110, 110, 118, 0.18);
}

.acct-profile .wrap {
  position: relative;
}

.acct-page-title {
  margin: 16px 0 36px;
}

.acct-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.acct-sidebar {
  display: grid;
  gap: 14px;
}

.acct-side,
.acct-panel {
  border-radius: var(--radius-xl);
  background: var(--glass);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.acct-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 34px 24px 26px;
}

.acct-side .acct-avatar {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  font-size: 2.4rem;
  margin-bottom: 18px;
}

.acct-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}

.acct-side .acct-sub {
  margin: 6px 0 16px;
}

.acct-side .acct-logout {
  margin-top: 24px;
}

.acct-cosmetics-nav {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.acct-cosmetics-nav:hover,
.acct-cosmetics-nav:focus-visible {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  transform: translateY(-2px);
}

.acct-cosmetics-nav-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
}

.acct-cosmetics-nav-icon svg {
  width: 22px;
  height: 22px;
}

.acct-cosmetics-nav-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.acct-cosmetics-nav-copy b {
  font-family: var(--font-display);
  font-size: 0.88rem;
}

.acct-cosmetics-nav-copy small {
  color: var(--text-secondary);
  font-size: 0.7rem;
  line-height: 1.35;
}

.acct-cosmetics-nav-arrow {
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.acct-cosmetics-nav:hover .acct-cosmetics-nav-arrow {
  color: var(--text-primary);
  transform: translateX(3px);
}

.acct-main {
  display: grid;
  gap: 22px;
}

.acct-panel {
  padding: 28px;
}

.acct-panel-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.acct-activate {
  background: linear-gradient(135deg, rgba(110, 110, 118, 0.18), rgba(70, 70, 77, 0.07));
  border-color: rgba(194, 194, 194, 0.22);
}

.acct-activate-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.acct-activate-head svg {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
}

.acct-activate-head .acct-panel-title {
  margin-bottom: 6px;
}

.acct-activate-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.acct-plans {
  margin-top: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.acct-plan {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 18px;
}

.acct-plan > span:first-child {
  color: var(--text-secondary);
}

.acct-plan > span:last-child {
  justify-content: space-between;
}

.acct-plan b {
  font-size: 1.05rem;
}

@media (max-width: 960px) {
  .acct-grid {
    grid-template-columns: 1fr;
  }

  .acct-plans {
    grid-template-columns: 1fr;
  }
}

.acct-notice {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.acct-notice p {
  margin: 0 0 12px;
}

/* ===== косметика в кабинете ===== */
.acct-shop-sub {
  margin: -6px 0 18px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.shop-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.shop-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.shop-tab:hover {
  color: var(--text-primary);
}

.shop-tab.is-active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.shop-tab.is-empty:not(.is-active) {
  opacity: 0.6;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.shop-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
}

.shop-card.is-owned {
  border-color: rgba(134, 239, 172, 0.35);
}

.shop-art {
  display: grid;
  place-items: center;
  height: 110px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  color: var(--text-secondary);
}

.shop-card h3 {
  margin: 0;
  font-size: 0.95rem;
}

.shop-card p {
  margin: 0;
  flex: 1;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.shop-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.shop-footer b {
  font-family: var(--font-display);
  font-size: 1rem;
}

.shop-empty {
  grid-column: 1 / -1;
  padding: 26px 0;
  text-align: center;
  color: var(--text-muted);
}

.shop-note {
  min-height: 1.2em;
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.shop-note[data-kind="error"] {
  color: var(--error);
}

.shop-note[data-kind="ok"] {
  color: var(--ok);
}

/* предпросмотр косметики в карточке магазина (рендер персонажа с предметом) */
.shop-art.has-preview {
  height: 210px;
  overflow: hidden;
}

.shop-art img {
  display: block;
  height: 210px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
