/* ===== admin.css ===== */
/* ===== АДМИН-ПАНЕЛЬ VIONCHIKS ===== */

/* --- атрибут hidden обязан побеждать любые display-правила (иначе .auth-profile/.auth-tabs с display:flex перебивают скрытие гостю) --- */
[hidden] { display: none !important; }

/* --- оверлей «тех. работы» для посетителей --- */
.maintenance-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(900px 520px at 70% 15%, rgba(155, 140, 196, 0.14), transparent 60%),
    radial-gradient(800px 500px at 15% 85%, rgba(201, 168, 106, 0.12), transparent 60%),
    radial-gradient(600px 400px at 85% 90%, rgba(111, 168, 176, 0.1), transparent 60%),
    linear-gradient(180deg, #0c0b0f, #121117);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.maintenance-overlay.show {
  opacity: 1;
  visibility: visible;
}

.maintenance-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 106, 0.16), transparent 65%);
  filter: blur(40px);
  animation: maintenanceBreath 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes maintenanceBreath {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.18); opacity: 1; }
}

.maintenance-card {
  position: relative;
  text-align: center;
  max-width: 520px;
}

.maintenance-card .logo-mark {
  width: 96px;
  margin: 0 auto 26px;
  filter: drop-shadow(0 0 24px rgba(201, 168, 106, 0.4));
}

.maintenance-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 46px);
  color: var(--text);
  margin-bottom: 14px;
}

.maintenance-msg {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 26px;
}

.maintenance-note {
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* --- оверлей «доступ заблокирован» (бан устройства / IP) --- */
.ban-lock {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(900px 520px at 70% 15%, rgba(196, 110, 110, 0.14), transparent 60%),
    radial-gradient(600px 400px at 85% 90%, rgba(201, 168, 106, 0.1), transparent 60%),
    linear-gradient(180deg, #0c0b0f, #121117);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.ban-lock.show {
  opacity: 1;
  visibility: visible;
}

.ban-card {
  text-align: center;
  max-width: 460px;
}

.ban-icon {
  font-size: 44px;
  margin-bottom: 18px;
}

.ban-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.5vw, 40px);
  color: var(--text);
  margin-bottom: 14px;
}

.ban-msg {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 26px;
}

.ban-note {
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* --- полный бан: красная тема, без права обжалования --- */
.ban-card--full .ban-title { color: #ff6b6b; }
.ban-card--full .ban-icon { filter: drop-shadow(0 0 18px rgba(255, 90, 90, 0.5)); }
.ban-card--full .ban-msg {
  color: #c9c9d6;
  font-size: 16px;
  border: 1px solid rgba(255, 90, 90, 0.3);
  background: rgba(255, 80, 80, 0.07);
  border-radius: 14px;
  padding: 18px 20px;
}
.ban-card--full .ban-note {
  color: #a35b5b;
  letter-spacing: 3px;
}

.admin-section {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 14px;
  background: var(--panel-2);
}

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.admin-row:last-child { margin-bottom: 0; }

.admin-row b {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 3px;
}

.admin-hint {
  display: block;
  font-size: 12px;
  color: var(--faint);
  line-height: 1.45;
}

.admin-switch {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
  cursor: pointer;
}

.admin-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.admin-switch span {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background: var(--line-strong);
  transition: background 0.3s;
}

.admin-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s var(--ease);
}

.admin-switch input:checked + span {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
}

.admin-switch input:checked + span::after {
  transform: translateX(20px);
}

.admin-text {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
}

.admin-text:focus {
  outline: none;
  border-color: var(--gold-line);
}

.admin-label {
  display: block;
  margin: 12px 0 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
}

.admin-event-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}
.admin-event-swatch {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.admin-event-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.admin-event-meta b {
  font-size: 13px;
  color: var(--gold-bright);
}

.admin-input:focus {
  outline: none;
  border-color: var(--gold-line);
}

.admin-input::-webkit-calendar-picker-indicator {
  filter: invert(0.75);
  cursor: pointer;
}

select.admin-input {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.admin-section .btn--sm { margin-top: 10px; }

.admin-section .admin-inline .btn--sm { margin-top: 10px; }

.admin-section > .admin-hint { margin: 4px 0 2px; }

.admin-inline {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.admin-inline .admin-pass { margin-bottom: 0; }

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.admin-feedback {
  min-height: 18px;
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--gold-bright);
}

.admin-locked { overflow: hidden; }

.admin-fab {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 9990;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  color: var(--gold-bright);
  font-family: var(--font-display, inherit);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  border: 2px solid var(--gold-line);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.55), 0 0 18px rgba(201, 168, 106, 0.35), inset 0 0 12px rgba(201, 168, 106, 0.18);
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.admin-fab::after {
  content: "админ-панель";
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gold-bright);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 5px 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.admin-fab:hover {
  transform: translateY(-2px) rotate(-4deg) scale(1.06);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.55), 0 0 26px rgba(201, 168, 106, 0.55), inset 0 0 16px rgba(201, 168, 106, 0.28);
}
.admin-fab:hover::after { opacity: 1; }
.admin-fab:active { transform: scale(0.94); }


/* ================= АККАУНТЫ И ЖУРНАЛЫ ================= */

.admin-users { margin-top: 10px; }

.admin-user {
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel-2);
  margin-bottom: 8px;
}
.admin-user-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.admin-user-head b { font-size: 14px; }
.admin-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(201, 168, 106, 0.16);
  color: var(--gold-bright);
  margin-left: 6px;
  vertical-align: 2px;
}
.admin-badge--red {
  background: rgba(230, 90, 90, 0.16);
  color: #ff8a8a;
}
.admin-mono {
  margin-top: 8px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  line-height: 1.55;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 10px 12px;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.admin-log-line {
  padding: 4px 0;
  border-bottom: 1px dashed var(--line-strong);
  font-size: 12px;
}
.admin-log-line:last-child { border-bottom: 0; }
.admin-text--code { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; }

/* --- статистика / промокоды / аудит --- */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.admin-stat {
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}
.admin-stat b {
  display: block;
  font-size: 20px;
  color: var(--gold-bright);
  line-height: 1.2;
}
.admin-stat span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}
.admin-bars-row {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 96px;
  margin: 10px 0 6px;
  padding: 6px;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.admin-bar {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  min-width: 2px;
}
.admin-bar i {
  display: block;
  width: 100%;
  min-height: 4px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--gold-bright, #e6c98a), rgba(201, 168, 106, 0.35));
  transition: height 0.3s ease;
}
.admin-mono-title {
  margin-top: 12px;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.admin-badge--green {
  background: rgba(106, 220, 130, 0.16);
  color: #7fe39a;
}
.admin-badge--gold {
  background: rgba(230, 201, 138, 0.2);
  color: var(--gold-bright);
}
.admin-badge--tier {
  background: rgba(120, 130, 255, 0.16);
  color: #b9c0ff;
}
.admin-input--sm {
  width: 96px;
  padding: 12px 10px;
  flex: none;
}

/* ===== admin-modal.css ===== */
/* ===== АДМИН-ПАНЕЛЬ — модалка входа и панели ===== */
/* --- модалка админки --- */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.admin-modal.show {
  opacity: 1;
  visibility: visible;
}

.admin-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 9, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.admin-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(var(--app-h, 100vh) - 48px);
  overflow-y: auto;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(400px 220px at 85% -10%, rgba(201, 168, 106, 0.1), transparent 60%),
    var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(201, 168, 106, 0.08);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.35s var(--ease);
}

.admin-modal.admin-wide .admin-card {
  max-width: min(940px, 96vw);
}

.admin-modal.show .admin-card {
  transform: none;
}

.admin-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, transform 0.25s;
}

.admin-close:hover {
  color: var(--gold-bright);
  border-color: var(--gold-line);
  transform: rotate(90deg);
}

.admin-view { display: none; }
.admin-view.is-active { display: block; }

.admin-lock {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  background: var(--gold-soft);
  color: var(--gold-bright);
  font-size: 20px;
}

.admin-title {
  font-family: var(--font-display);
  font-size: 24px;
  text-align: center;
  color: var(--text);
  margin-bottom: 6px;
}

.admin-sub {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 22px;
}

.admin-pass {
  width: 100%;
  padding: 13px 18px;
  border-radius: 14px;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 1px;
  margin-bottom: 12px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.admin-pass:focus {
  outline: none;
  border-color: var(--gold-line);
  box-shadow: 0 0 0 4px rgba(201, 168, 106, 0.14);
}

.admin-error {
  min-height: 18px;
  color: var(--danger);
  font-size: 12px;
  text-align: center;
  margin-bottom: 8px;
}

.admin-error.shake { animation: adminShake 0.4s ease; }

@keyframes adminShake {
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.btn--block {
  width: 100%;
}

/* --- панель: шапка + горизонтальные вкладки --- */
.admin-view--login {
  max-width: 400px;
  margin: 0 auto;
}

.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-panel-head .admin-title { text-align: left; }
.admin-panel-head .admin-sub { text-align: left; margin-bottom: 0; }
.admin-panel-head .admin-actions { margin-top: 0; flex-wrap: wrap; justify-content: flex-end; }

.admin-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.admin-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 60px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.2s var(--ease), box-shadow 0.25s;
}

.admin-tab:hover {
  color: var(--gold-bright);
  border-color: var(--gold-line);
  transform: translateY(-1px);
}

.admin-tab.is-active {
  color: #1a1206;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(201, 168, 106, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.15);
}

.admin-panes {
  position: relative;
}

.admin-pane {
  display: none;
}

.admin-pane.is-active {
  display: block;
  animation: adminPaneIn 0.38s var(--ease) both;
}

@keyframes adminPaneIn {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .admin-card { padding: 22px; }
  .admin-panel-head { flex-direction: column; }
  .admin-panel-head .admin-actions { justify-content: flex-start; }
}

/* ===== interactive.css ===== */
/* ================= ЛАЙКИ / ИЗБРАННОЕ / КОММЕНТАРИИ ================= */

.sec-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 18px 0 4px;
}

.v-like,
.v-fav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.v-like:hover,
.v-fav:hover {
  transform: translateY(-1px);
  border-color: var(--gold-line);
}
.v-like.is-on {
  border-color: var(--gold-line);
  background: rgba(201, 168, 106, 0.14);
  color: var(--gold-bright);
}
.v-like-count { font-variant-numeric: tabular-nums; }

.v-comments {
  margin-top: 10px;
}
.v-comments-head {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 10px 0 8px;
  color: var(--gold-bright);
}
.v-comments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.v-comment {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--panel-2);
  animation: fadeIn 0.25s var(--ease);
}
.v-comment.is-promo {
  border-color: var(--gold-line);
  background: linear-gradient(180deg, rgba(201, 168, 106, 0.1), rgba(201, 168, 106, 0.03));
}
.v-comment.is-promo .v-comment-user { color: var(--gold-bright); }
.v-comment-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.v-comment-author {
  font-weight: 700;
  font-size: 13px;
  color: var(--gold-bright);
}
.v-comment-meta {
  font-size: 11px;
  color: var(--muted);
}
.v-comment-text {
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-wrap;
}
.v-comment-del {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  padding: 0 4px;
  border-radius: 6px;
  transition: color 0.2s var(--ease);
}
.v-comment-del:hover { color: #ff8a8a; }

.v-comments-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.v-comments-input,
.journal-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
}
.v-comments-input:focus,
.journal-input:focus {
  outline: none;
  border-color: var(--gold-line);
}

/* ----- Лимит символов ----- */
.char-limit {
  flex-basis: 100%;
  width: 100%;
  margin: 6px 2px 0;
  color: #ff5c5c;
  font-size: 12px;
  line-height: 1.4;
  animation: charLimitIn 0.2s var(--ease);
}
@keyframes charLimitIn {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: none; }
}
#journalInput.is-limit {
  border-color: #ff5c5c;
  box-shadow: 0 0 0 1px rgba(255, 92, 92, 0.35), 0 0 12px rgba(255, 92, 92, 0.25);
}

/* ================= ОПРОС ================= */

.live-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.live-grid > * {
  min-width: 0;
}
.live-grid--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 720px;
  margin: 0 auto;
}

.v-poll {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.v-poll-question { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.v-poll-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}
.v-poll-opt:hover { border-color: var(--gold-line); }
.v-poll-opt:disabled { cursor: default; }
.v-poll-bar {
  position: absolute;
  inset: 0;
  width: 0;
  background: rgba(201, 168, 106, 0.14);
  transition: width 0.5s var(--ease);
  z-index: 0;
}
.v-poll-opt > span { position: relative; z-index: 1; }
.v-poll-pct { float: right; font-weight: 700; color: var(--gold-bright); }
.v-poll-foot {
  font-size: 12px;
  color: var(--muted);
}

/* ================= ДНЕВНИК ================= */

.journal-card { max-width: 720px; margin: 0 auto; }
.journal-form { display: flex; gap: 8px; margin-bottom: 12px; }
.journal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}
.journal-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--panel-2);
}
.journal-star { flex: 0 0 auto; }
.journal-text { flex: 1; font-size: 13px; line-height: 1.5; word-break: break-word; }
.journal-del {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  border-radius: 6px;
  padding: 0 4px;
}
.journal-del:hover { color: #ff8a8a; }
.journal-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 18px 0; }

/* ================= ОНЛАЙН / ИЗБРАННОЕ ================= */

.footer-online {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
.footer-online b { color: var(--gold-bright); }

.modal-list { display: flex; flex-direction: column; gap: 8px; }
.modal-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  transition: border-color 0.25s var(--ease), transform 0.2s var(--ease);
}
.modal-link:hover { border-color: var(--gold-line); transform: translateY(-1px); }
.modal-link-fav { color: var(--gold-bright); }

.v-fav.is-on { border-color: var(--gold-line); background: rgba(201, 168, 106, 0.14); }

@media (max-width: 860px) {
  .live-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ===== extra.css ===== */
/* ===== ФИШКИ: скроллбар, spotlight, тултипы, конфетти, след, приветствие, кольцо наверх ===== */

/* --- КАСТОМНЫЙ СКРОЛЛБАР --- */
::-webkit-scrollbar {
  width: 11px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-deep), var(--gold));
  border-radius: 8px;
  border: 3px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-bright);
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--bg);
}

/* --- SPOTLIGHT: подсветка за курсором по всей странице --- */
.spotlight {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    420px circle at var(--sx, 50%) var(--sy, 50%),
    rgba(201, 168, 106, 0.05),
    transparent 65%
  );
}

.spotlight.on {
  opacity: 1;
}

/* --- ТУЛТИПЫ --- */
[data-tip] {
  position: relative;
}

[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid var(--gold-line);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  pointer-events: none;
  z-index: 9001;
}

[data-tip]:hover::after,
[data-tip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* --- КОНФЕТТИ --- */
.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -14px;
  border-radius: 2px;
  will-change: transform, opacity;
}

/* --- ПРИВЕТСТВИЕ И ДАТА --- */
.greeting {
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.greeting b {
  color: var(--gold-bright);
  font-weight: 800;
}

.footer-date {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 14px rgba(201, 168, 106, 0.5);
}

/* --- КНОПКА ВКЛЮЧЁННОГО СОСТОЯНИЯ --- */
.btn.is-on {
  border-color: var(--gold-line);
  background: var(--gold-soft);
  color: var(--gold-bright);
}

/* ===== extra-effects.css ===== */
/* ===== ДЕКОРАТИВНЫЕ ЭФФЕКТЫ: след, кольцо наверх, тикер ===== */
/* --- СВЕТЯЩИЙСЯ СЛЕД ЗА КУРСОРОМ --- */
.cursor-trail {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(201, 168, 106, 0.8), 0 0 22px rgba(201, 168, 106, 0.4);
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.custom-cursor .cursor-trail { opacity: 1; }

@media (pointer: coarse) {
  .cursor-trail { display: none; }
}
/* --- КОЛЬЦО ПРОГРЕССА НА КНОПКЕ «НАВЕРХ» --- */
.to-top {
  display: grid;
  place-items: center;
  padding: 0;
}

.to-top svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.to-top .ring-track,
.to-top .ring-progress {
  fill: none;
  stroke-width: 2;
}

.to-top .ring-track {
  stroke: var(--line-strong);
}

.to-top .ring-progress {
  stroke: var(--gold);
  stroke-linecap: round;
}

.to-top span {
  position: relative;
  z-index: 1;
  font-size: 18px;
}
/* --- ЖИВОЕ ВРЕМЯ В ТИКЕРЕ --- */
.ticker-live {
  color: var(--gold-bright) !important;
}

.ticker-live #tickerClock {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* ===== footer.css ===== */
/* ===== ПОДВАЛ ===== */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 56px 0 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-tag {
  color: var(--faint);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.25s;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 60px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: color 0.25s, border-color 0.25s, transform 0.2s var(--ease);
}

.social-link:hover {
  color: var(--gold-bright);
  border-color: var(--gold-line);
  transform: translateY(-2px);
}

.social-link--btn {
  background: none;
  border-style: dashed;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-vk {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-clock {
  color: var(--faint);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.footer-copy {
  color: var(--faint);
  font-size: 13px;
  letter-spacing: 0.5px;
}

.brand {
  color: var(--gold-bright);
}

.footer-version {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 3px 11px 4px;
  border: 1px solid rgba(201, 168, 106, 0.4);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--gold-bright);
  text-shadow: 0 0 10px rgba(230, 201, 138, 0.45);
  background: linear-gradient(180deg, rgba(201, 168, 106, 0.16), rgba(123, 92, 255, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 14px rgba(201, 168, 106, 0.18);
  animation: versionGlow 3.5s ease-in-out infinite;
}

.footer-version::before {
  content: "✦";
  font-size: 9px;
  color: var(--gold);
  animation: versionSpark 2.2s ease-in-out infinite;
}

@keyframes versionGlow {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 10px rgba(201, 168, 106, 0.14); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 20px rgba(201, 168, 106, 0.36); }
}

@keyframes versionSpark {
  0%, 100% { opacity: 0.55; transform: rotate(0deg); }
  50% { opacity: 1; transform: rotate(90deg); }
}

@media (prefers-reduced-motion: reduce) {
  .footer-version,
  .footer-version::before {
    animation: none;
  }
}

/* ===== animations.css ===== */
/* ===== АНИМАЦИИ ===== */

/* scroll-reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal].reveal-left {
  transform: translateX(-40px);
}

[data-reveal].reveal-left.visible {
  transform: translateX(0);
}

[data-reveal].reveal-right {
  transform: translateX(40px);
}

[data-reveal].reveal-right.visible {
  transform: translateX(0);
}

[data-reveal].reveal-zoom {
  transform: scale(0.92);
}

[data-reveal].reveal-zoom.visible {
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* живая точка LIVE */
@keyframes livePing {
  0% { box-shadow: 0 0 0 0 rgba(208, 106, 90, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(208, 106, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(208, 106, 90, 0); }
}

/* мерцание золотом (для будущих заголовков) */
.shimmer-text {
  background: linear-gradient(90deg, var(--muted), var(--gold-bright), var(--muted));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmerMove 6s linear infinite;
}

@keyframes shimmerMove {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* ===== particles.css ===== */
/* ===== ПАРТИКУЛЫ (приглушённые) ===== */
.particle {
  position: fixed;
  top: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  animation: particleFloat linear infinite;
  opacity: var(--p-op, 0.4);
}

.burst {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9000;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: burstFly 0.9s var(--ease) forwards;
}

.ripple {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 8999;
  border: 1px solid rgba(201, 168, 106, 0.5);
  transform: translate(-50%, -50%) scale(0);
  animation: rippleExpand 0.8s var(--ease) forwards;
}

@keyframes particleFloat {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(var(--p-drift, 0px), -42vh, 0); }
  100% { transform: translate3d(0, -84vh, 0); }
}

@keyframes burstFly {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--bx, 0px), var(--by, 0px)) scale(0.3); }
}

@keyframes rippleExpand {
  to { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* ===== responsive.css ===== */
/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 900px) {
  .block { padding: 72px 0; }

  .features {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* шапка и навигация: всё влезает на любом экране, без переносов */
@media (max-width: 920px) {
  .nav-links { gap: 18px; }
}

@media (max-width: 860px) {
  .nav-tools { gap: 7px; margin-left: 10px; }
  .search-input { width: 150px; }
  .search-input:focus { width: 170px; }
}

@media (max-width: 760px) {
  .nav-icon { width: 34px; height: 34px; font-size: 15px; }
  .nav-icon.is-user { min-width: 34px; height: 34px; padding: 0 10px; }
  .user-chip { max-width: 90px; font-size: 12px; }
  .offline-badge { padding: 4px 8px; font-size: 10.5px; }
}

@media (max-width: 600px) {
  .nav-inner { padding: 0 18px; }
  .container { padding: 0 18px; }

  .hero { padding-bottom: 48px; }

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .card { padding: 24px 20px; }

  .timer-ring {
    width: 205px;
    height: 205px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat { padding: 22px 10px; }

  .ticker-track span {
    font-size: 15px;
    letter-spacing: 3px;
  }

  .join-card { padding: 44px 20px; }

  .footer-links { gap: 16px; }
}

@media (max-width: 560px) {
  .search-box { display: none; }
  .nav-tools { gap: 5px; }
  .nav-icon { width: 32px; height: 32px; font-size: 14px; }
  .nav-icon.is-user { min-width: 32px; height: 32px; padding: 0 9px; }
  .user-chip { max-width: 76px; }
}

@media (max-width: 440px) {
  .offline-badge { display: none; }
  .user-chip .verified { width: 14px; height: 14px; font-size: 9px; flex: none; }
}

/* ===== app.css ===== */
/* ============================================================
   APP — профессиональные фичи: навигация, модалки,
   календарь, активность, поиск, уведомления.
   ============================================================ */

/* ---------- ИНСТРУМЕНТЫ НАВИГАЦИИ ---------- */
.nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 18px;
}

.search-box {
  position: relative;
}

.search-input {
  width: 200px;
  padding: 9px 14px;
  border-radius: 60px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  transition: border-color 0.25s, width 0.3s var(--ease);
}

.search-input:focus {
  outline: none;
  border-color: var(--gold-line);
  width: 240px;
}

.search-input::placeholder {
  color: var(--faint);
}

.search-drop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  max-height: 400px;
  overflow: auto;
  border-radius: 16px;
  border: 1px solid var(--gold-line);
  background: rgba(14, 14, 20, 0.96);
  box-shadow: var(--shadow), 0 18px 50px rgba(0, 0, 0, 0.5);
  z-index: 9000;
  padding: 6px;
  backdrop-filter: blur(10px);
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 168, 106, 0.4) transparent;
}

.search-drop[hidden] { display: none; }

.search-drop:not([hidden]) {
  animation: searchIn 0.18s var(--ease);
  transform-origin: top right;
}

@keyframes searchIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: none;
  border: 0;
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s;
}

.search-result + .search-result {
  border-top: 1px solid var(--line);
}

.search-result.is-active,
.search-result:hover {
  background: var(--gold-soft);
}

.search-result-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 20px;
  border-radius: 12px;
  border: 1px solid rgba(201, 168, 106, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, rgba(201, 168, 106, 0.22), rgba(123, 92, 255, 0.16));
}

.search-result-icon.ic0 { background: linear-gradient(135deg, rgba(201, 168, 106, 0.3), rgba(255, 160, 60, 0.14)); border-color: rgba(255, 190, 120, 0.3); }
.search-result-icon.ic1 { background: linear-gradient(135deg, rgba(123, 92, 255, 0.3), rgba(55, 224, 255, 0.14)); border-color: rgba(140, 120, 255, 0.3); }
.search-result-icon.ic2 { background: linear-gradient(135deg, rgba(55, 224, 255, 0.3), rgba(77, 255, 136, 0.14)); border-color: rgba(90, 230, 255, 0.3); }
.search-result-icon.ic3 { background: linear-gradient(135deg, rgba(255, 77, 210, 0.3), rgba(255, 166, 77, 0.16)); border-color: rgba(255, 120, 220, 0.3); }
.search-result-icon.ic4 { background: linear-gradient(135deg, rgba(77, 255, 136, 0.28), rgba(201, 168, 106, 0.16)); border-color: rgba(120, 255, 160, 0.3); }
.search-result-icon.ic5 { background: linear-gradient(135deg, rgba(255, 166, 77, 0.3), rgba(123, 92, 255, 0.16)); border-color: rgba(255, 190, 120, 0.3); }

.search-result-main {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  display: block;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--gold-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-title mark {
  background: rgba(255, 180, 90, 0.35);
  color: var(--gold-bright);
  border-radius: 3px;
  padding: 0 1px;
}

.search-result-snippet {
  display: block;
  font-size: 11.5px;
  color: var(--faint);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-snippet mark {
  background: rgba(255, 180, 90, 0.25);
  color: var(--gold);
  border-radius: 3px;
  padding: 0 1px;
}

.search-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  color: var(--faint);
  font-size: 13px;
}

.search-empty-icon {
  font-size: 18px;
  opacity: 0.8;
}

.search-hint {
  text-align: center;
  font-size: 10.5px;
  color: var(--faint);
  opacity: 0.7;
  padding: 8px 12px 10px;
  letter-spacing: 0.04em;
}

.search-flash {
  animation: searchFlash 1.6s ease;
}

@keyframes searchFlash {
  0% { box-shadow: 0 0 0 3px rgba(201, 168, 106, 0.5); }
  100% { box-shadow: 0 0 0 3px rgba(201, 168, 106, 0); }
}

.nav-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 17px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s, color 0.25s;
}

.nav-icon:hover {
  transform: translateY(-2px);
  border-color: var(--gold-line);
  color: var(--gold-bright);
}

.nav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 10px;
  background: var(--gold);
  color: #15130e;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
}

.avatar-letters {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.offline-badge {
  padding: 5px 10px;
  border-radius: 60px;
  background: rgba(200, 60, 60, 0.2);
  border: 1px solid rgba(200, 60, 60, 0.5);
  color: #ff9d9d;
  font-size: 11.5px;
  font-weight: 700;
}

/* ---------- МОДАЛКИ ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 8, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: min(480px, calc(100vw - 32px));
  max-height: 84vh;
  overflow: auto;
  padding: 26px;
  border-radius: 18px;
  border: 1px solid var(--gold-line);
  background: var(--panel);
  box-shadow: var(--shadow);
  transform: translateY(12px);
  transition: transform 0.25s var(--ease);
}

.modal.open .modal-card {
  transform: none;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: none;
  color: var(--faint);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--gold-line);
}

.modal-head {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text);
  margin-bottom: 6px;
}

.modal-sub {
  color: var(--faint);
  font-size: 13px;
  margin-bottom: 18px;
}

.modal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------- КНОПКИ В МОДАЛКАХ ---------- */
.auth-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

.auth-actions[hidden] { display: none; }

/* ---------- БАННЕР ЭФИРА ---------- */

.live-banner {
  position: relative;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 18px;
  background: linear-gradient(90deg, rgba(200, 40, 40, 0.22), rgba(200, 40, 40, 0.08));
  border-bottom: 1px solid rgba(200, 60, 60, 0.5);
  color: #ffc9c9;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
}

.live-banner[hidden] { display: none; }

.live-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff4040;
  box-shadow: 0 0 0 0 rgba(255, 64, 64, 0.6);
  animation: livePulse 1.4s infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 64, 64, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(255, 64, 64, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 64, 64, 0); }
}

/* ---------- КАЛЕНДАРЬ ---------- */
.events-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.event-card {
  display: flex;
  gap: 14px;
  padding: 16px;
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid var(--gold-line);
  background: var(--gold-soft);
  color: var(--gold-bright);
  padding: 8px 4px;
}

.event-day {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.event-month {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 3px;
}

.event-body { flex: 1; }

.event-icon { font-size: 16px; }

.event-title {
  display: inline-block;
  font-size: 16px;
  margin: 0 0 2px 8px;
  color: var(--text);
}

.event-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 4px;
}

.event-when {
  color: var(--gold-bright);
  font-size: 12.5px;
  font-weight: 700;
  margin-top: 6px;
}

.event-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.event-past {
  color: var(--faint);
  font-size: 11.5px;
  font-style: italic;
}

/* ===== app-misc.css ===== */
/* ============
   APP — активность, история, виджеты, респонсив.
   ============ */
/* ---------- АКТИВНОСТЬ ---------- */
.activity-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.act-chart {
  padding: 18px;
}

.act-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.act-bar {
  fill: var(--gold);
  opacity: 0.85;
  transition: opacity 0.2s;
}

.act-bar:hover { opacity: 1; }

.act-label {
  fill: var(--faint);
  font-size: 11px;
  font-family: var(--font-body);
}

.act-count {
  fill: var(--gold-bright);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-body);
}

.act-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.act-stat {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.act-stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}

.act-stat-label {
  color: var(--faint);
  font-size: 12.5px;
  margin-top: 2px;
}

/* ---------- ВИДЖЕТЫ ---------- */
.widget-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  font-size: 13.5px;
  color: var(--text);
}

.widget-row input {
  accent-color: var(--gold);
  width: 17px;
  height: 17px;
}

/* ---------- РЕСПОНСИВ ---------- */
@media (max-width: 1080px) {
  .activity-grid { grid-template-columns: 1fr; }
  .search-input { width: 150px; }
}

@media (max-width: 920px) {
  .search-box { display: none; }
  .search-drop { width: min(320px, calc(100vw - 32px)); }
}

@media (max-width: 600px) {
  .events-list { grid-template-columns: 1fr; }
}

/* ===== device.css ===== */
/* ===== ЭКРАН ОПРЕДЕЛЕНИЯ УСТРОЙСТВА ===== */
body.device-locked {
  overflow: hidden;
  height: 100%;
}

.device-screen {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  transition: opacity 0.6s var(--ease);
}

.device-screen.hide {
  opacity: 0;
  pointer-events: none;
}

/* — Бут-фаза: «Определение устройства…» — */
.device-boot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}

.device-logo {
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: 8px;
  color: var(--gold-bright);
  text-shadow: 0 0 18px rgba(201, 168, 106, 0.45);
  animation: devicePulse 1.8s ease-in-out infinite;
}

.device-status {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.device-dots {
  display: flex;
  gap: 10px;
}

.device-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: deviceDot 1.2s ease-in-out infinite;
}

.device-dots i:nth-child(2) { animation-delay: 0.2s; }
.device-dots i:nth-child(3) { animation-delay: 0.4s; }

@keyframes devicePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@keyframes deviceDot {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* — Подтверждение: «Это твоё устройство?» — */
.device-confirm {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.device-card {
  width: min(460px, 94vw);
  max-height: 92vh;
  overflow-y: auto;
  padding: 40px 34px 30px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  box-shadow: var(--shadow);
  animation: deviceCardIn 0.5s var(--ease);
}

@keyframes deviceCardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.device-badge {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  box-shadow: 0 0 34px rgba(201, 168, 106, 0.25);
}

.device-name {
  font-size: 26px;
  color: var(--text);
  margin-bottom: 6px;
}

.device-spec {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.4px;
  margin-bottom: 22px;
}

.device-question {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 26px;
}

.device-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.device-actions .btn {
  padding: 14px 30px;
  font-size: 14px;
}

.device-note {
  margin-top: 18px;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.3px;
}

/* — Факты об устройстве — */
.device-facts {
  list-style: none;
  margin: 0 0 22px;
  padding: 4px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  text-align: left;
}

.device-facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.device-facts span {
  color: var(--faint);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.device-facts b {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 420px) {
  .device-facts {
    grid-template-columns: 1fr;
  }
  .device-card {
    padding: 28px 20px 24px;
  }
}

/* ===== ОПТИМИЗАЦИЯ ПОД УСТРОЙСТВО ===== */
.dev-phone,
.dev-tablet {
  --nav-h: 62px;
}

/* телефон: урезаем анимации прелоудера (фон остаётся, кручение сохраняется) */
.dev-phone .preload-aurora,
.dev-phone .preload-grid,
.dev-phone .preload-scan,
.dev-phone .preload-grain,
.dev-phone .preload-glyph {
  display: none;
}

.dev-phone .preload-orb {
  animation: none;
  opacity: 0.6;
}

.dev-phone .preload-orbit {
  animation-duration: 120s;
}

.dev-phone .preload-brand {
  font-size: 26px;
}

.dev-phone .particle {
  animation-duration: 26s;
}

.dev-phone .sun {
  animation: none;
}

body.lowfx .particle {
  animation-duration: 30s;
}

/* ===== ux.css ===== */
/* ===== UX-фичи ===== */

/* реальные часы в шапке: город + время + дата */
.ux-clock {
  margin-left: auto;
  padding: 8px 14px;
  border-radius: 60px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ux-clock::before {
  content: "📍";
  margin-right: 5px;
  font-size: 11px;
}

@media (max-width: 1120px) {
  .ux-clock { display: none; }
}

/* искры при клике */
.ux-spark {
  position: fixed;
  z-index: 9990;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, var(--gold-bright) 40%, transparent 70%);
  box-shadow: 0 0 10px var(--gold-bright);
  pointer-events: none;
  animation: uxSpark 0.7s ease-out forwards;
}

@keyframes uxSpark {
  0%   { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* настройки из админки */
body.footer-ver-off .footer-version { display: none; }
body.nav-compact { --nav-h: 58px; }
body.ux-clock-off .ux-clock { display: none !important; }
body.no-totop #toTop { display: none !important; }
html.smooth-scroll { scroll-behavior: smooth; }

/* скорость тикера из админки */
.announce-track { animation-duration: var(--ticker-speed, 16s) !important; }

/* ===== АВТОСКРЫТИЕ ШАПКИ ===== */
.nav {
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.45s var(--ease);
}
.nav.nav-hide {
  transform: translateY(-100%);
}

/* ===== COOKIE-БАННЕР ===== */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9995;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 18px 16px 20px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(18, 18, 24, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  animation: cookieIn 0.5s var(--ease);
}

.cookie-banner p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.cookie-banner button {
  flex: 0 0 auto;
  padding: 11px 20px;
  border-radius: 60px;
  border: 1px solid var(--gold-line);
  background: var(--gold-soft);
  color: var(--gold-bright);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.3s;
}

.cookie-banner button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 106, 0.25);
}

.cookie-banner.hide {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s var(--ease);
}

@keyframes cookieIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ===== ОКНО ОБНОВЛЕНИЯ ===== */
.update-window {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.update-window.show {
  visibility: visible;
  opacity: 1;
}
.update-window-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 12, 0.62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.update-window-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 28px 24px 24px;
  border-radius: 18px;
  border: 1px solid var(--gold-line);
  background: linear-gradient(160deg, #201a10, #16130d 60%, #131010);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(230, 180, 80, 0.1), 0 0 60px rgba(230, 180, 80, 0.18);
  text-align: center;
  transform: translateY(14px) scale(0.96);
  transition: transform 0.32s var(--ease);
}
.update-window.show .update-window-card {
  transform: translateY(0) scale(1);
}
.update-window-icon {
  margin-bottom: 10px;
  font-size: 38px;
  animation: bannerSpin 3.5s linear infinite;
}
.update-window-title {
  color: var(--text);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.update-window-sub {
  margin: 10px 0 20px;
  color: var(--faint);
  font-size: 13.5px;
  line-height: 1.55;
}
.update-window-sub b {
  color: var(--gold-bright);
  font-weight: 800;
}
.update-window-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.update-window-actions .btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
}
@keyframes bannerSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== ПКМ-МЕНЮ ===== */
.ctx-menu {
  position: fixed;
  z-index: 10002;
  min-width: 220px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(18, 18, 24, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  animation: ctxIn 0.16s var(--ease);
}

.ctx-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 9px;
  background: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.ctx-menu button:hover {
  background: var(--gold-soft);
  color: var(--gold-bright);
}

.ctx-menu .ctx-icon {
  width: 18px;
  text-align: center;
}

@keyframes ctxIn {
  from { opacity: 0; transform: scale(0.94) translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* ===== АДМИН-FAB: виден только администратору ===== */
#adminFab {
  display: none;
}
body.is-admin #adminFab {
  display: flex;
}

/* ===== КНОПКА АККАУНТА / ЧИП ПОЛЬЗОВАТЕЛЯ ===== */
.nav-icon.is-user {
  width: auto;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 60px;
  border-color: var(--gold-line);
  background: var(--gold-soft);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 150px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--gold-bright);
}
.user-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* синяя галочка «проверено» — как в Telegram (админ MrSeffrem) */
.verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4db8ff, #2f9bff);
  color: #fff;
  font-style: normal;
  font-weight: 800;
  font-size: 10px;
  line-height: 1;
  box-shadow: 0 0 10px rgba(47, 155, 255, 0.65);
}
.verified::after { content: "✓"; }

/* ===== МОДАЛКА АККАУНТА (ВХОД / РЕГИСТРАЦИЯ) ===== */
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.auth-tab {
  flex: 1;
  padding: 10px;
  border-radius: 60px;
  border: 1px solid var(--line-strong);
  background: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.auth-tab:hover {
  color: var(--text);
}
.auth-tab.is-active {
  background: var(--gold-soft);
  border-color: var(--gold-line);
  color: var(--gold-bright);
}
.auth-forms {
  margin-top: 16px;
}
.auth-form {
  display: none;
}
.auth-form.is-active {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: authIn 0.25s var(--ease);
}
.auth-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.25s;
}
.auth-input:focus {
  outline: none;
  border-color: var(--gold-line);
}
.auth-input::placeholder { color: var(--faint); }
.auth-error {
  min-height: 18px;
  margin: 0;
  color: #ff9c9c;
  font-size: 12.5px;
  font-weight: 600;
}
.auth-switch {
  margin: 4px 0 0;
  color: var(--faint);
  font-size: 12.5px;
  text-align: center;
}
.auth-switch button {
  border: none;
  background: none;
  padding: 0;
  color: var(--gold-bright);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.auth-switch button:hover {
  text-decoration: underline;
}
.auth-profile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.auth-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}
.auth-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
}
.auth-name {
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

/* ===== РЕГИСТРАЦИЯ: ШАГИ ===== */
.auth-step { display: none; }
.auth-step.is-active {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: authIn 0.25s var(--ease);
}
.auth-step-title {
  margin: 0;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.auth-hint-slim {
  margin: -4px 0 0;
  color: var(--faint);
  font-size: 12px;
}
.auth-promo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-promo-hint {
  margin: 0;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.45;
}
.auth-input--promo { border-style: dashed; }
.auth-input--promo:focus { border-style: solid; }
.auth-step-optional {
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  margin-left: 6px;
}

/* тумблер 2FA на шаге 3 регистрации */
.auth-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.auth-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.auth-toggle-track {
  flex: none;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--card-2, #2a2a33);
  border: 1px solid var(--line, #3a3a44);
  position: relative;
  transition: background 0.2s var(--ease);
}
.auth-toggle-track i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s var(--ease);
}
.auth-toggle input:checked + .auth-toggle-track {
  background: var(--gold, #e6b450);
  border-color: var(--gold-line, #e6b450);
}
.auth-toggle input:checked + .auth-toggle-track i {
  transform: translateX(18px);
}
.auth-toggle-label {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
}

/* выбор аватарки */
.auth-avatar-prev {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--gold-line);
  background: var(--gold-soft);
  font-size: 34px;
  box-shadow: 0 0 18px rgba(201, 168, 106, 0.25);
}
.auth-avatar-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}
.auth-avatar-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 18px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.auth-avatar-opt:hover {
  border-color: var(--gold-line);
  transform: translateY(-1px);
}
.auth-avatar-opt.is-selected {
  border-color: var(--gold-bright);
  background: var(--gold-soft);
  box-shadow: 0 0 10px rgba(201, 168, 106, 0.35);
}

/* ===== ПРОМОКОД: ЗОЛОТО И НЕОН ===== */
.auth-avatar.is-promo {
  border: 2px solid var(--gold-bright);
  box-shadow: 0 0 0 3px var(--gold-soft), 0 0 16px rgba(201, 168, 106, 0.5);
}
.auth-name.is-promo {
  background: linear-gradient(90deg, #ffe9b0, #f4c96b, #ffd98a, #ffe9b0);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: promoShine 4s linear infinite;
}
@keyframes promoShine {
  to { background-position: 200% center; }
}
.promo-badge {
  display: inline-block;
  margin-right: 5px;
  font-size: 12px;
  vertical-align: middle;
}
.promo-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin: 0 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe9b0, #f4c96b);
  box-shadow: 0 0 6px rgba(201, 168, 106, 0.8);
}
.profile-status {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12.5px;
}
.profile-status.is-promo {
  border-color: var(--gold-line);
  background: var(--gold-soft);
  color: var(--gold-bright);
  font-weight: 700;
}

/* ===== РАННИЙ ДОСТУП ===== */
.promo-early {
  margin-top: 18px;
  border-color: var(--gold-line);
  background: linear-gradient(180deg, rgba(201, 168, 106, 0.12), rgba(201, 168, 106, 0.03));
}
.promo-early-head {
  margin: 0 0 6px;
  color: var(--gold-bright);
  font-size: 14px;
  font-weight: 800;
}
.promo-early-text {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.5;
}
.promo-early-hold {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

@keyframes authIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ===== mobile.css ===== */
/* ============================================================
   MOBILE — агрессивная оптимизация под телефоны.
   Подключается ПОСЛЕДНИМ: все переопределения ниже гарантированно
   выигрывают у остальных файлов на экранах <= 767px.
   ============================================================ */

@media (max-width: 767px) {

  /* ---------- ТИПОГРАФИКА / ОБЩЕЕ ---------- */
  html, body {
    -webkit-text-size-adjust: 100%;
  }

  /* без плавного скролла и задержек тапа */
  html, html.smooth-scroll {
    scroll-behavior: auto !important;
  }

  a, button, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
  }

  a, button {
    touch-action: manipulation;
  }

  /* крупный шрифт в полях — иначе iOS зумит на фокусе */
  input, select, textarea {
    font-size: 16px !important;
  }

  /* убиваем плавные переходы (приглушаем все до 0.15s) */
  *, *::before, *::after {
    transition-duration: 0.15s !important;
  }

  /* все декоративные анимации: один кадр, мгновенно */
  * {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
  }

  /* живой курсор в typing-строке оставляем (дёшево) */
  .typed-caret {
    animation: caretBlink 1s steps(1) infinite !important;
  }

  /* ---------- ШАПКА ---------- */
  :root { --nav-h: 56px; }

  .nav-inner {
    height: 56px;
    padding: 0 12px;
    gap: 8px;
  }

  .brand .logo-mark { width: 34px; }

  .nav-tools { gap: 6px; margin-left: 8px; }

  .nav-icon,
  .nav-icon.is-user {
    width: 32px;
    min-width: 32px;
    height: 32px;
    font-size: 14px;
    padding: 0 8px;
  }

  .user-chip { max-width: 70px; font-size: 11.5px; }

  .nav-links {
    padding: 14px 16px 22px;
    gap: 4px;
  }

  .nav-link {
    font-size: 13.5px;
    padding: 9px 4px;
    width: 100%;
    text-align: center;
  }

  .nav-links .btn--sm { width: 100%; }

  /* ---------- HERO ---------- */
  .hero {
    min-height: auto;
    padding: calc(var(--nav-h) + 18px) 14px 34px;
  }

  .hero-logo { margin-bottom: 12px; }
  .hero-logo .logo-mark--xl { width: 84px; }

  h1 {
    font-size: clamp(26px, 9vw, 44px);
    letter-spacing: 2px;
  }

  .hero-eyebrow {
    font-size: 10px;
    letter-spacing: 4px;
    margin-bottom: 14px;
  }

  .hero-sub { font-size: 17px; margin-top: 10px; }
  .hero-desc { font-size: 14.5px; margin-top: 12px; }

  .hero-actions {
    gap: 10px;
    margin-top: 20px;
  }

  .hero-actions .btn { max-width: 100%; }

  .hero-meta { gap: 8px; margin-top: 16px; }

  .scroll-hint { margin-top: 26px; }

  /* солнце статично и меньше */
  .sun-wrap { width: 260px; height: 260px; }
  .sun { width: 230px; height: 230px; filter: none; animation: none; }
  .sun::after { animation: none; }

  /* ---------- АНОНС: статичный, читаемый, без ленты ---------- */
  .announce { gap: 8px; margin-bottom: 18px; }
  .announce-loader { padding: 2px; }
  .announce-loader-svg { width: 30px; animation: none; }
  .al-ring { animation: none; }
  .announce-ribbon { padding: 10px 8px; border-radius: 10px; animation: none; }
  .announce-ribbon::before,
  .announce-ribbon::after { display: none; }
  .announce-track { display: block; animation: none; }
  .announce-item { display: none; }
  .announce-item:first-child {
    display: block;
    white-space: normal;
    font-size: 11.5px;
    letter-spacing: 0.02em;
    text-transform: none;
    line-height: 1.4;
    padding: 0;
  }

  /* ---------- СЕКЦИИ / КАРТОЧКИ / ЗАГОЛОВКИ ---------- */
  .container { padding: 0 14px; }
  .block { padding: 48px 0; }
  .section-head { margin-bottom: 24px; }

  h2 { font-size: 23px; letter-spacing: 0.5px; }
  h3 { font-size: 18px; }
  .section-desc { font-size: 14px; }
  .section-eyebrow { font-size: 10px; letter-spacing: 3px; }

  .card { padding: 18px 15px; border-radius: 14px; }

  .btn { padding: 12px 18px; font-size: 14px; }
  .btn--sm { padding: 8px 14px; font-size: 12.5px; }

  /* ---------- ТИКЕР: статичная строка ---------- */
  .ticker { padding: 9px 0; }
  .ticker-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    text-align: center;
  }
  .ticker-track span { font-size: 11.5px; letter-spacing: 1.5px; }

  /* ---------- СТАТИСТИКА ---------- */
  .stats { padding: 40px 0; }
  .stats-grid { gap: 10px; }
  .stat { padding: 15px 8px; border-radius: 14px; }
  .stat-num { font-size: 24px; }
  .stat-label { font-size: 10px; letter-spacing: 0.5px; }

  /* ---------- ТАЙМЕР ---------- */
  .timer-ring { width: 164px; height: 164px; }

  /* ---------- ПОДВАЛ ---------- */
  .footer { padding: 32px 0 26px; }
  .footer-inner { gap: 18px; }
  .footer-links { gap: 10px 16px; }
  .footer-links a { font-size: 13px; }

  /* ---------- МОДАЛКИ ---------- */
  .modal-card {
    width: calc(100vw - 16px);
    max-height: 92vh;
    padding: 18px 15px;
    border-radius: 14px;
  }

  /* ---------- УБИРАЕМ ТЯЖЁЛЫЕ ЭФФЕКТЫ ---------- */
  /* зерно-плёнка поверх всего — не нужно на телефоне */
  body::after { display: none; }

  /* свечения без blur-фильтра (дорого на мобильных GPU) */
  .bg-glow {
    filter: none;
    opacity: 0.45;
  }

  .bg-grid { background-size: 48px 48px; }

  /* фоновые частицы не создаём в JS, а если уже есть — прячем */
  .particle { display: none; }

  /* дорогие backdrop-filter отключаем */
  .nav,
  .nav-links.open,
  .modal,
  .modal-card,
  .search-drop,
  .to-top,
  .cookie-banner,
  .ctx-menu,
  .admin-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav { background: rgba(10, 10, 13, 0.94); }

  /* версия и прочие мерцания статичны */
  .footer-version,
  .footer-version::before {
    animation: none;
  }

  /* без hover-подъёмов на телефоне */
  .btn--primary:hover,
  .btn--ghost:hover,
  .stat:hover,
  .social-link:hover,
  .nav-icon:hover,
  .brand:hover {
    transform: none;
  }

  .btn--primary:hover { box-shadow: none; }

  /* ---------- ЭКРАН ОПРЕДЕЛЕНИЯ УСТРОЙСТВА ---------- */
  .device-screen { align-items: stretch; }
  .device-confirm { padding: 12px; }
  .device-card {
    padding: 22px 14px 18px;
    max-height: 94vh;
  }
  .device-badge { width: 58px; height: 58px; font-size: 28px; }
  .device-name { font-size: 21px; }
  .device-spec { font-size: 12px; margin-bottom: 14px; }
  .device-facts { gap: 6px; margin-bottom: 16px; }
  .device-question { font-size: 14px; margin-bottom: 16px; }

  /* ---------- КНОПКА НАВЕРХ / ТОСТЫ / COOKIE ---------- */
  .to-top {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 46px;
    height: 46px;
    font-size: 18px;
  }

  .toast-wrap {
    right: 12px;
    left: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .toast { padding: 12px 16px; font-size: 13.5px; }

  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
  }

  /* safe-area для модалок и шапки */
  .modal-card {
    padding-left: max(15px, env(safe-area-inset-left));
    padding-right: max(15px, env(safe-area-inset-right));
  }

  /* ---------- РЕГИСТРАЦИЯ ---------- */
  .auth-avatar-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
  }
  .auth-avatar-opt { font-size: 16px; }

  /* ---------- НАСТРОЙКИ: САЙДБАР НА МОБИЛЬНЫХ ---------- */
  #authModal.is-settings .modal-card { width: calc(100vw - 16px); }
  .prof-layout { flex-direction: column; }
  .prof-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .prof-nav {
    flex: none;
    white-space: nowrap;
    text-align: center;
  }
}

/* ===== ВХОД: ВТОРОЙ ШАГ (2FA) ===== */
.auth-form.is-2fa > .auth-input,
.auth-form.is-2fa > button[type="submit"],
.auth-form.is-2fa > .auth-switch,
.auth-form.is-2fa > .auth-forgot,
.auth-form.is-2fa > .auth-qr-btn { display: none; }
.auth-2fa {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: authIn 0.25s var(--ease);
}
.auth-2fa[hidden] { display: none; }

/* ===== ВХОД: РЕЖИМ ВОССТАНОВЛЕНИЯ ПАРОЛЯ ===== */
.auth-form.is-recover > .auth-input,
.auth-form.is-recover > .auth-2fa,
.auth-form.is-recover > .auth-switch,
.auth-form.is-recover > button[type="submit"],
.auth-form.is-recover > .auth-forgot,
.auth-form.is-recover > .auth-qr-btn { display: none; }
.auth-form.is-recover > .auth-recover { display: flex; }

/* ===== ПРОГРЕСС ШАГОВ РЕГИСТРАЦИИ ===== */
.auth-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 16px;
}
.auth-progress span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--faint);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  transition: all 0.25s var(--ease);
}
.auth-progress span.is-done {
  border-color: var(--gold-line);
  color: var(--text);
  background: rgba(201, 168, 106, 0.1);
}
.auth-progress span.is-active {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  box-shadow: 0 0 12px rgba(201, 168, 106, 0.3);
  transform: scale(1.1);
}

/* ===== ПОКАЗ/СКРЫТИЕ ПАРОЛЯ ===== */
.auth-passwrap { position: relative; display: block; }
.auth-passwrap .auth-input { padding-right: 44px; }
.auth-pass-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.65;
  padding: 0;
  transition: opacity 0.2s;
}
.auth-pass-toggle:hover { opacity: 1; }

/* ===== ПРОФИЛЬ: НАСТРОЙКИ ===== */
.auth-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.auth-login {
  color: var(--faint);
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prof-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 46vh;
  overflow: auto;
  padding-right: 4px;
  margin: 2px -4px 0 0;
}
.prof-scroll::-webkit-scrollbar { width: 5px; }
.prof-scroll::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }

.prof-sec {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}
.prof-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.prof-tag {
  padding: 2px 9px;
  border-radius: 30px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: none;
  border: 1px solid var(--line-strong);
  color: var(--faint);
}
.prof-tag.is-on {
  color: #7dffb0;
  border-color: rgba(125, 255, 176, 0.45);
  background: rgba(125, 255, 176, 0.08);
  box-shadow: 0 0 10px rgba(125, 255, 176, 0.25);
}
.prof-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.prof-row .auth-input { flex: 1; padding: 10px 12px; }
.prof-status {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
.prof-head, .prof-tag, .prof-row > *, .prof-pane, .prof-sec { min-width: 0; max-width: 100%; }
.prof-head { flex-wrap: wrap; }
.prof-row { flex-wrap: wrap; }
.prof-row > .auth-input { flex: 1 1 160px; min-width: 0; }
.prof-hint, .prof-msg { overflow-wrap: anywhere; word-break: break-word; max-width: 100%; }
.prof-hint {
  margin: 6px 0 0;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.55;
}
.prof-status--dim {
  color: var(--faint);
  font-size: 11.5px;
}
.btn:disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
  filter: saturate(0.6);
}
.prof-msg {
  margin: 0;
  color: #9fd7ff;
  font-size: 12px;
  min-height: 0;
}
.prof-msg.is-error { color: #ff9c9c; }

/* ---------- Настройки: сайдбар ---------- */
#authModal .modal-card { transition: transform 0.25s var(--ease), width 0.25s var(--ease); }
#authModal.is-settings .modal-card { width: min(660px, calc(100vw - 32px)); }

.prof-layout {
  display: flex;
  gap: 12px;
  margin-top: 2px;
}
.prof-sidebar {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 132px;
}
.prof-nav {
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: none;
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}
.prof-nav:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.prof-nav.is-active {
  color: var(--text);
  border-color: var(--gold-line);
  background: rgba(230, 180, 80, 0.08);
}
.prof-pane {
  display: none;
  flex-direction: column;
  gap: 10px;
}
.prof-pane.is-active { display: flex; }
.prof-tag--limit {
  color: #ffd57a;
  border-color: rgba(255, 213, 122, 0.4);
  background: rgba(255, 213, 122, 0.08);
}
.prof-sec--danger {
  border-color: rgba(255, 90, 90, 0.45);
}
.prof-sec--danger .prof-head { color: #ff9c9c; }
.btn--danger {
  color: #ffb0b0;
  border-color: rgba(255, 90, 90, 0.45);
  background: rgba(255, 90, 90, 0.08);
}
.btn--danger:hover {
  color: #fff;
  border-color: #ff6b6b;
  background: rgba(255, 90, 90, 0.25);
}

/* ---------- Настройки: Мои устройства ---------- */
.sess-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 34vh;
  overflow: auto;
}
.sess-list::-webkit-scrollbar { width: 5px; }
.sess-list::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
.sess-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 44px;
  padding: 8px 11px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}
.sess-item.is-current { border-color: rgba(125, 255, 176, 0.4); }
.sess-icon { font-size: 20px; flex: none; }
.sess-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 160px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.sess-info b { color: var(--text); font-size: 12.5px; }
.sess-info span { color: var(--faint); font-size: 11px; }
.sess-info .sess-last { color: var(--muted); font-size: 11px; }
.sess-revoke {
  margin-left: auto;
  flex: 0 0 auto;
  align-self: center;
}
.sess-now {
  margin-left: auto;
  flex: none;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  color: #7dffb0;
  border: 1px solid rgba(125, 255, 176, 0.4);
  background: rgba(125, 255, 176, 0.08);
}
.sess-item--empty {
  justify-content: center;
  color: var(--faint);
  font-size: 12px;
  border-style: dashed;
}

.prof-email-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text);
}

/* щит почты */
.shield {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 24px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  font-style: normal;
  color: #fff;
  background: linear-gradient(160deg, #4b4b55, #2b2b33);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.shield.is-on {
  background: linear-gradient(160deg, #54d98c, #2ea865);
  box-shadow: 0 0 12px rgba(46, 168, 101, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.shield i { font-style: normal; }

/* ===== 2FA: секрет для ручного ввода ===== */
.twofa-secret {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed var(--line-strong);
  color: var(--faint);
  font-size: 11.5px;
  font-family: monospace;
  word-break: break-all;
  text-align: center;
}

/* ===== QR ===== */
.qr-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 16px;
  border: 1px solid var(--gold-line);
  background: rgba(255, 255, 255, 0.05);
  min-height: 190px;
}
.qr-box svg { display: block; }
.qr-code {
  margin: 10px auto 6px;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid var(--gold-line);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 10px;
  color: var(--gold-bright);
  text-align: center;
  text-indent: 10px;
  box-shadow: 0 0 22px rgba(201, 168, 106, 0.25);
}
.qr-code-input {
  margin: 10px auto 6px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--gold-line);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 12px;
  color: var(--gold-bright);
  text-align: center;
  text-indent: 12px;
  width: 100%;
}
.qr-view {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ---------- СКАНЕР QR НА ТЕЛЕФОНЕ ---------- */
.qr-scan-box {
  position: relative;
  margin-bottom: 12px;
  border-radius: 16px;
  border: 1px solid var(--gold-line);
  background: #000;
  overflow: hidden;
}
.qr-scan-box video {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: #000;
}
.qr-scan-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180px;
  height: 180px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--gold-bright, #c9a86a);
  border-radius: 18px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.auth-qr-btn { margin-top: 4px; }

/* ---------- СОГЛАСИЕ НА ОБРАБОТКУ ПД ---------- */
.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 12px 0 4px;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.45;
  cursor: pointer;
  user-select: none;
}
.auth-consent input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: var(--gold-bright, #c9a86a);
  cursor: pointer;
}
.auth-consent a {
  color: #a78bfa;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(167, 139, 250, 0.5);
  text-shadow: 0 0 10px rgba(155, 140, 196, 0.5), 0 0 22px rgba(155, 140, 196, 0.25);
  transition: color 0.2s, text-shadow 0.2s, text-decoration-color 0.2s;
}
.auth-consent a:hover {
  color: #c4b5fd;
  text-shadow: 0 0 12px rgba(196, 181, 253, 0.75), 0 0 30px rgba(155, 140, 196, 0.45);
  text-decoration-color: rgba(196, 181, 253, 0.8);
}

/* ---------- ВОССТАНОВЛЕНИЕ ПАРОЛЯ ---------- */
.auth-forgot {
  display: block;
  margin: 6px auto 0;
  border: none;
  background: none;
  padding: 0;
  color: var(--gold-bright);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.auth-forgot:hover { opacity: 0.85; }
.auth-textarea {
  min-height: 74px;
  resize: vertical;
  line-height: 1.5;
}
.auth-recover {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auth-recover[hidden] { display: none; }

/* ---------- МОДАЛКА PND (СЕКРЕТНЫЕ СЛОВА) ---------- */
.modal-card--pnd {
  width: min(440px, calc(100vw - 32px));
  text-align: center;
}
.pnd-step { display: flex; flex-direction: column; gap: 12px; }
.pnd-step[hidden] { display: none; }
.pnd-icon { font-size: 42px; line-height: 1; }
.pnd-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text);
  margin: 0;
}
.pnd-text {
  color: var(--faint);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}
.pnd-words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 4px 0;
}
.pnd-word {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--gold-line);
  background: linear-gradient(135deg, rgba(201, 168, 106, 0.18), rgba(201, 168, 106, 0.06));
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.4px;
  box-shadow: 0 0 14px rgba(201, 168, 106, 0.18);
}
.pnd-warn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 170, 60, 0.4);
  background: rgba(255, 170, 60, 0.08);
  color: #ffd8a8;
  font-size: 12.5px;
  line-height: 1.45;
}
.modal-card--pnd .auth-consent { text-align: left; }
.modal-card--pnd .auth-error { text-align: left; }

/* ---------- АДМИНКА: РЕЗУЛЬТАТ ПРОВЕРКИ КОДОВ ---------- */
.admin-hint.is-ok { color: #2ecc71; font-weight: 700; }
.admin-hint.is-bad { color: #ff5f5f; font-weight: 700; }

/* ---------- MOBILE / iOS ---------- */
/* запрет авто-зума iOS при фокусе: шрифт полей >= 16px на тач-устройствах */
@media (pointer: coarse) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* safe-area: iPhone с «чёлкой» и жестовой панелью */
@supports (padding: env(safe-area-inset-top)) {
  .nav {
    padding-top: env(safe-area-inset-top);
  }
  .nav-inner {
    height: calc(var(--nav-h) - env(safe-area-inset-top));
  }
  .scroll-progress {
    top: env(safe-area-inset-top);
  }
  .to-top {
    bottom: calc(26px + env(safe-area-inset-bottom));
  }
  .toast-wrap {
    bottom: calc(22px + env(safe-area-inset-bottom));
  }
  .modal-card {
    max-height: calc(var(--app-h, 100vh) - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
}

/* ===== Скачать приложение ===== */
.download-card {
  display: grid;
  gap: 20px;
  padding: 26px 28px;
}
.download-info p {
  color: var(--faint);
  line-height: 1.7;
  margin-bottom: 6px;
}
.download-note {
  color: var(--faint);
  font-size: 13px;
  margin-top: 10px;
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.download-grid .btn {
  white-space: nowrap;
}




/* ================= ЗАГРУЗЧИК DESKTOP ================= */
.dl-hero {
  position: relative; overflow: hidden;
  padding: 42px 40px; border-radius: 24px;
  background:
    radial-gradient(900px 300px at 85% -10%, rgba(201,168,106,.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; gap: 34px;
}
.dl-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(230,201,138,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(230,201,138,.05) 1px, transparent 1px);
  background-size: 42px 42px; pointer-events: none;
  mask-image: radial-gradient(circle at 80% 0%, #000 20%, transparent 70%);
}
.dl-app-icon {
  position: relative; z-index: 1; flex-shrink: 0;
  width: clamp(120px, 16vw, 176px); aspect-ratio: 1; border-radius: 26px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(230,201,138,.14), rgba(201,168,106,.04));
  border: 1px solid rgba(201,168,106,.4);
  box-shadow: 0 24px 60px rgba(0,0,0,.5), inset 0 0 40px rgba(201,168,106,.08);
  animation: appIconFloat 5s ease-in-out infinite;
}
@keyframes appIconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.dl-app-img { width: 88%; height: 88%; object-fit: contain; border-radius: 18px; }
.dl-app-badge {
  position: absolute; bottom: -3px; right: -3px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .5px;
  color: #05060F; padding: 5px 10px; border-radius: 999px;
  background: linear-gradient(135deg, #e6c98a, #c9a86a);
  box-shadow: 0 6px 16px rgba(201,168,106,.45);
}
.dl-hero-main { position: relative; z-index: 1; min-width: 0; }
.dl-badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.dl-chip {
  font-size: 12.5px; color: var(--gold-bright); padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(201,168,106,.35); background: rgba(201,168,106,.08);
}
.dl-title { font-family: var(--font-display); font-size: clamp(26px, 4vw, 40px); line-height: 1.15; margin: 0 0 22px; }
.dl-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.dl-btn small { display: block; font-weight: 500; opacity: .75; font-size: 12px; margin-top: 2px; }
.dl-btn.btn--lg { padding: 14px 26px; text-align: left; }
.dl-note { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.dl-phone { margin-top: 22px; }
.dl-phone .dl-hero::after { display: none; }
.dl-desc { color: var(--muted); font-size: 14.5px; line-height: 1.6; max-width: 640px; margin: 0 0 16px; }
.dl-btn[disabled] { opacity: .82; cursor: default; }
.dl-nopc {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 20px 22px; margin: 6px 0 0; border-radius: 16px;
  border: 1px dashed rgba(239,68,68,.45); background: rgba(239,68,68,.06);
  max-width: 520px;
}
.dl-nopc-icon { font-size: 26px; }
.dl-nopc b { font-size: 17px; color: var(--text-strong, #eceaf2); }
.dl-nopc p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.dl-nopc .btn { margin-top: 10px; }

@media (max-width: 720px) {
  .dl-hero { padding: 30px 20px; flex-direction: column; text-align: center; gap: 20px; }
  .dl-badge-row, .dl-buttons { justify-content: center; }
}

/* ================= BIXURA (браузер сообщества) ================= */
.bix-hero {
  background:
    radial-gradient(900px 300px at 85% -10%, rgba(139,92,246,.2), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  border-color: rgba(139,92,246,.35);
}
.bix-hero::after {
  background-image: linear-gradient(rgba(139,92,246,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(139,92,246,.07) 1px, transparent 1px);
}
.bix-app-icon {
  background: linear-gradient(160deg, rgba(139,92,246,.18), rgba(76,29,149,.05));
  border-color: rgba(139,92,246,.55);
  box-shadow: 0 24px 60px rgba(0,0,0,.5), inset 0 0 40px rgba(139,92,246,.12);
}
.bix-app-img { border-radius: 22px; }
.bix-app-badge {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: #fff;
  box-shadow: 0 6px 16px rgba(139,92,246,.55);
}
.bix-chip {
  color: #c4b5fd;
  border-color: rgba(139,92,246,.45);
  background: rgba(139,92,246,.1);
}
.dl-soon {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 6px;
  font-size: 14px; font-weight: 700; color: #c4b5fd;
}
.dl-soon-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #a78bfa; box-shadow: 0 0 14px #a78bfa;
  animation: soonBlink 1.6s ease-in-out infinite;
}
@keyframes soonBlink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ================= НАВ-ДРОПДАУН «Скачать» ================= */
.nav-dd { position: relative; display: flex; align-items: center; }
.nav-dd-btn { display: inline-flex; align-items: center; gap: 7px; }
.nav-dd-caret { font-size: 11px; transition: transform .2s var(--ease); }
.nav-dd.open .nav-dd-caret { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute; top: calc(100% + 12px); right: 0; min-width: 232px; z-index: 9800;
  padding: 8px; border-radius: 16px;
  background: rgba(14,15,25,.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 44px rgba(0,0,0,.55);
  animation: ddIn .18s var(--ease);
}
.nav-dd-menu[hidden] { display: none; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nav-dd-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  color: var(--text); text-decoration: none; transition: background .15s;
}
.nav-dd-item:hover { background: rgba(255,255,255,.06); }
.nav-dd-item + .nav-dd-item { margin-top: 2px; }
.nav-dd-ic {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  font-size: 18px; background: rgba(230,201,138,.12); border: 1px solid rgba(201,168,106,.3);
}
.nav-dd-ic--bix { background: rgba(139,92,246,.14); border-color: rgba(139,92,246,.45); }
.nav-dd-txt { display: flex; flex-direction: column; }
.nav-dd-txt b { font-size: 13.5px; }
.nav-dd-txt small { font-size: 12px; color: var(--muted); }
.nav-dd-soon {
  display: inline-block; margin-top: 3px; width: max-content; font-size: 10.5px !important;
  font-weight: 800; letter-spacing: .6px; color: #c4b5fd !important; padding: 2px 8px; border-radius: 999px;
  background: rgba(139,92,246,.16); border: 1px solid rgba(139,92,246,.5);
}
@media (max-width: 900px) {
  .nav-dd { width: 100%; }
  .nav-dd-btn { width: 100%; justify-content: center; }
  .nav-dd-menu { position: static; width: 100%; margin-top: 6px; }
}
@media (max-width: 900px) {
  .nav-dd-menu { position: static; }
}

/* ================= ОСЕННИЕ ЛИСТИКИ ================= */
.auth-avatar, #authAvatar, .avatar-letters, .avatar-circle, .prof-avatar, .comment-avatar, .chat-user-avatar, .member-avatar {
  position: relative;
}
.auth-avatar::after, #authAvatar::after, .avatar-letters::after, .avatar-circle::after, .prof-avatar::after, .comment-avatar::after, .chat-user-avatar::after, .member-avatar::after {
  content: "🍁"; position: absolute; top: -2px; right: -3px; z-index: 3;
  font-size: 12px; line-height: 1; pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.45));
  transform: rotate(14deg);
}
.avatar-letters { position: relative; }
.avatar-letters::after { font-size: 11px; top: -2px; right: -2px; }

/* ============================================================
   АДАПТАЦИЯ ПОД УСТРОЙСТВО (авто-определение, без экрана выбора)
   data-device: phone | tablet | desktop | tv (ставит core.js)
   --app-h / --vh: реальная высота окна (visualViewport), а не 100vh
   ============================================================ */
:root {
  --app-h: 100vh;
  --vh: 1vh;
  --vw: 1vw;
  --tap: 44px;
}

/* --- Телефон: крупные цели, ничего не обрезано, текст переносится --- */
html[data-device="phone"] {
  --tap: 48px;
  --nav-h: 56px;
}
html[data-device="phone"] .btn { min-height: var(--tap); padding: 12px 16px; }
html[data-device="phone"] .btn--sm { min-height: 40px; padding: 9px 14px; }
html[data-device="phone"] .sess-item,
html[data-device="phone"] .prof-row { flex-wrap: wrap; }
html[data-device="phone"] .sess-revoke { margin-left: 0; width: 100%; }
html[data-device="phone"] .sess-info { flex: 1 1 100%; }
html[data-device="phone"] .prof-scroll { max-height: none; overflow: visible; }
html[data-device="phone"] .sess-list { max-height: none; overflow: visible; }
html[data-device="phone"] input,
html[data-device="phone"] select,
html[data-device="phone"] textarea { font-size: 16px; }
html[data-device="phone"] .qr-scan-box video { height: 62vh; }

/* --- Планшет: две колонки в профиле и списках --- */
html[data-device="tablet"] .prof-scroll,
html[data-device="tablet"] .sess-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

/* --- Десктоп: аккуратные ховеры, курсор мыши --- */
html[data-device="desktop"][data-touch="0"] .sess-revoke { opacity: 0; transition: opacity .15s ease; }
html[data-device="desktop"][data-touch="0"] .sess-item:hover .sess-revoke { opacity: 1; }
html[data-device="desktop"][data-touch="0"] .sess-revoke:focus-visible { opacity: 1; }

/* --- Телевизор: крупный текст и широкие кнопки --- */
html[data-device="tv"] { font-size: 19px; }
html[data-device="tv"] .btn { min-height: 56px; font-size: 18px; }
html[data-device="tv"] .prof-scroll, html[data-device="tv"] .sess-list { max-height: 62vh; }

/* --- Устройства без сенсорного ввода: убираем мелкие иконки-кнопки --- */
html[data-touch="0"] .tap-only { display: none !important; }

/* --- Очень низкие окна (ноутбук с открытым меню, телефон в landscape) --- */
@media (max-height: 560px) {
  .modal-card { max-height: calc(var(--app-h, 100vh) - 16px); }
  .prof-scroll, .sess-list { max-height: 46vh; }
  .qr-scan-box video { height: 44vh; }
}

/* --- Планшет/телефон: ничего не должно вылезать по горизонтали --- */
html[data-device="phone"] body,
html[data-device="tablet"] body { overflow-x: hidden; }
html[data-device="phone"] .modal-card,
html[data-device="phone"] .prof-scroll,
html[data-device="phone"] .prof-sec,
html[data-device="phone"] .sess-item { max-width: 100vw; }

/* ===== Аватарки-картинки =====
   Контейнеры круглые, но без overflow:hidden картинка с квадратными
   углами вылезала за скругление. Правила ниже гарантируют обрезку. */
.auth-avatar,
#authAvatar,
.avatar-letters,
.avatar-circle,
.prof-avatar,
.comment-avatar,
.chat-user-avatar,
.member-avatar,
.auth-avatar-prev {
  overflow: hidden;
}

.auth-avatar > img,
#authAvatar > img,
.avatar-letters > img,
.avatar-circle > img,
.prof-avatar > img,
.comment-avatar > img,
.chat-user-avatar > img,
.member-avatar > img,
.auth-avatar-prev > img {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Загрузка фото-аватарки в настройках профиля (десктоп) */
.prof-av-upload {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 4px;
  flex-wrap: wrap;
}
.prof-av-upload .av-upload-prev {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  font-size: 30px;
}
.prof-av-upload .av-upload-prev.is-emoji {
  display: grid;
  place-items: center;
}
.prof-av-upload-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}