:root {
  --bg: #0d0d16;
  --panel: #15151f;
  --panel-2: #1b1b28;
  --line: rgba(255,255,255,.08);
  --violet: #7c5cff;
  --pink: #ec4899;
  --orange: #fb923c;
  --yellow: #ffd667;
  --grad: linear-gradient(115deg, var(--violet) 0%, var(--pink) 55%, var(--orange) 100%);
  --text: #f2f0f7;
  --dim: #9b96ab;
  --ok: #34d399;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
html { background: var(--bg); }
body {
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 700px 420px at 10% -10%, rgba(124,92,255,.28), transparent 60%),
    radial-gradient(ellipse 600px 400px at 100% 0%, rgba(236,72,153,.18), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select, a { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
h1, h2, h3, .brand { font-family: "Space Grotesk", sans-serif; }

.app {
  display: flex;
  flex-direction: column;
  width: min(460px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 18px 26px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 0 6px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .01em;
  color: #fff;
  text-shadow: 0 0 18px rgba(236,72,153,.22);
}

.mark {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.16) 0 30%, transparent 31%),
    conic-gradient(from 215deg, #48d7ff, #7c5cff 27%, #ec4899 58%, #ff7a45 82%, #fff 100%);
  box-shadow:
    0 0 16px rgba(124,92,255,.42),
    0 0 24px rgba(236,72,153,.34);
}

.mark::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: var(--bg);
}

.mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  background: #fff;
  box-shadow: 0 0 14px rgba(255,255,255,.7);
}

.mark-img {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: block;
  border-radius: 9px;
  box-shadow:
    0 0 14px rgba(124,92,255,.28),
    0 0 20px rgba(236,72,153,.18);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.age, .language-select {
  min-height: 27px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: transparent;
  color: var(--dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}

.age {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
}

.language-select {
  width: 53px;
  padding: 0 6px;
}

.language-select option { color: #111; }

.step { display: none; animation: rise .4s ease; }
.step.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.home { padding-top: 8px; }
.home-hero {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 20px 24px;
  background: linear-gradient(155deg, rgba(124,92,255,.16), rgba(236,72,153,.10));
  text-align: center;
}

.home-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: var(--grad);
  box-shadow: 0 14px 32px -14px rgba(236,72,153,.55);
}

.home-logo.small { width: 48px; height: 48px; border-radius: 16px; }
.home-logo svg {
  width: 28px;
  height: 28px;
  stroke: #0d0d16;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home h1 {
  margin-bottom: 10px;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.25;
}

.home h1 span,
.eyebrow {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home .desc {
  max-width: 320px;
  margin: 0 auto;
  color: var(--dim);
  font-size: 14.5px;
  line-height: 1.55;
}

.home-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 20px;
  padding: 16px 18px;
  border: 0;
  border-radius: 14px;
  background: var(--grad);
  color: #0d0d16;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  transition: transform .2s ease;
}
.home-cta:active, .btn:active { transform: scale(.97); }

.home-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
}

.home-point {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.home-point .ico {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--panel-2);
}

.home-point .ico svg {
  width: 17px;
  height: 17px;
  stroke: var(--pink);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-point .txt b {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.home-point .txt span {
  color: var(--dim);
  font-size: 12.5px;
}

.home-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.home-chip {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 13px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.home-chip svg {
  width: 18px;
  height: 18px;
  stroke: var(--violet);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-foot {
  margin-top: 22px;
  color: var(--dim);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
}

.progress-wrap { margin-top: 14px; }
.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--panel-2);
}

.progress-fill {
  width: 12.5%;
  height: 100%;
  border-radius: 4px;
  background: var(--grad);
  transition: width .45s cubic-bezier(.65,0,.35,1);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 500;
}

.progress-label b,
.progress-label span:last-child { color: var(--text); }

.dots {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.dots i {
  flex: 1;
  height: 3px;
  border: 0;
  border-radius: 2px;
  background: var(--panel-2);
  transition: background .3s ease;
}
.dots i.done { background: var(--grad); }
.dots i.active { background: var(--text); }

.stage {
  position: relative;
  flex: 1;
  min-height: 420px;
  margin-top: 22px;
}

.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--grad);
  box-shadow: 0 12px 28px -12px rgba(236,72,153,.5);
}

.icon-badge svg {
  width: 26px;
  height: 26px;
  stroke: #0d0d16;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.step h2 {
  margin-bottom: 14px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 18px 18px 6px;
}

.card p.lead {
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 14px;
}

.card b { color: var(--text); font-weight: 600; }

.subhead {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pink);
  margin: 18px 0 10px;
}
.subhead:first-of-type { margin-top: 0; }

.bullet {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.bullet:first-of-type { border-top: none; }
.bullet .dot-ico {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bullet .dot-ico svg {
  width: 12px;
  height: 12px;
  stroke: var(--pink);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bullet div {
  color: var(--dim);
  font-size: 14px;
  line-height: 1.5;
}

.note {
  display: flex;
  gap: 10px;
  margin: 16px 0 4px;
  padding: 12px 14px;
  border: 1px solid rgba(124,92,255,.25);
  border-radius: 12px;
  background: rgba(124,92,255,.08);
  color: var(--dim);
  font-size: 13px;
  line-height: 1.5;
}
.note svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--violet);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inline-warning {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(236,72,153,.28);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(124,92,255,.13), rgba(236,72,153,.1)),
    rgba(255,255,255,.03);
  color: #d8d2e8;
  font-size: 12.5px;
  line-height: 1.45;
}
.inline-warning svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 1px;
  stroke: var(--pink);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rate-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}
.rate-box .lbl { color: var(--dim); font-size: 12px; }
.rate-box .val { font-family: "Space Grotesk", sans-serif; font-size: 17px; font-weight: 700; }

.pay-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pay-chip {
  flex: 1 1 calc(33.333% - 6px);
  min-width: 86px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
}
.pay-chip .tag {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nav {
  position: relative;
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.btn {
  min-height: 49px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s ease, opacity .2s ease;
}
.btn.primary { flex: 1; background: var(--grad); color: #0d0d16; }
.btn.primary.is-register-focus {
  animation: registerPulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(255, 214, 103, .42), 0 14px 34px rgba(255, 83, 135, .24);
}
.btn.ghost {
  width: 52px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
}
.btn.ghost.text { width: auto; }
.btn:disabled { opacity: .35; pointer-events: none; }

.register-pointer {
  position: absolute;
  right: 14px;
  bottom: calc(100% + 8px);
  display: none;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(13, 13, 22, .78);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .22);
  pointer-events: none;
  backdrop-filter: blur(12px);
  animation: pointerFloat 1.35s ease-in-out infinite;
}
.register-pointer svg {
  width: 15px;
  height: 15px;
  stroke: var(--yellow);
}
.nav.show-register-pointer .register-pointer {
  display: flex;
}

@keyframes pointerFloat {
  0%, 100% { transform: translateY(0); opacity: .9; }
  50% { transform: translateY(5px); opacity: 1; }
}

@keyframes registerPulse {
  0%, 100% { transform: translateZ(0); box-shadow: 0 0 0 0 rgba(255, 214, 103, .36), 0 14px 34px rgba(255, 83, 135, .22); }
  50% { transform: translateY(-1px); box-shadow: 0 0 0 8px rgba(255, 214, 103, 0), 0 18px 42px rgba(255, 83, 135, .34); }
}

.final { padding-top: 30px; text-align: center; }
.final .icon-badge { margin: 0 auto 18px; }
.final h2 { margin-bottom: 8px; font-size: 22px; }
.final p { margin-bottom: 22px; color: var(--dim); font-size: 14px; line-height: 1.55; }
.final-home-row {
  justify-content: center;
  margin-top: 18px;
}
.final-support-chip {
  flex: 0 1 210px;
}
.final-support-chip svg {
  width: 24px;
  height: 24px;
}

#adminView { padding-top: 8px; }
.admin-title { text-align: center; }
.admin-title.compact { text-align: left; }
.admin-title h2, .admin-hero h2 {
  margin: 6px 0 0;
  font-size: 24px;
  line-height: 1.2;
}

.admin-login,
.admin-hero,
.users-panel,
.user-card,
.admin-metrics article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.admin-login { margin-top: 14vh; padding: 22px 18px; }
.admin-login-form { display: grid; gap: 12px; margin-top: 18px; }
.admin-login-form label { color: var(--dim); font-size: 13px; font-weight: 600; }
.admin-login-form input {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--text);
  outline: 0;
}

.admin-hero { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 14px; }
.admin-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: stretch;
  flex: 0 0 124px;
}
.admin-actions .btn {
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  font-size: 12px;
}
.admin-actions .btn.is-loading {
  position: relative;
  opacity: .9;
}
.admin-actions .btn.is-loading::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-right: 7px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .72s linear infinite;
}
.admin-actions .btn.is-success {
  background: linear-gradient(135deg, rgba(52,211,153,.95), rgba(16,185,129,.92));
}
.admin-actions .btn.is-success::before {
  content: "✓";
  margin-right: 6px;
  font-weight: 900;
}
.admin-actions .btn.is-error {
  background: linear-gradient(135deg, rgba(236,72,153,.95), rgba(244,63,94,.9));
}
@keyframes spin { to { transform: rotate(360deg); } }
.admin-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}
.admin-menu .btn {
  width: 100%;
  min-height: 42px;
  padding: 10px;
  font-size: 12px;
}
.admin-menu .btn:first-child {
  grid-column: 1 / -1;
}
.admin-page { margin-top: 10px; }
.admin-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 10px 0; }
.admin-metrics article { min-height: 54px; padding: 9px; border-radius: 12px; }
.admin-metrics span { display: block; color: var(--dim); font-size: 9.5px; font-weight: 700; line-height: 1.15; }
.admin-metrics strong { display: block; margin-top: 4px; font-size: 20px; line-height: 1; }

.users-panel { padding: 14px; }
.autopost-panel {
  padding: 14px;
  margin: 10px 0;
}
.autopost-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.autopost-form label span {
  display: block;
  margin-bottom: 6px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 700;
}
.autopost-form textarea,
.autopost-form input,
.autopost-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  outline: 0;
  padding: 11px 12px;
  font: inherit;
}
.autopost-form input[type="file"] {
  padding: 10px;
}
.autopost-form textarea {
  resize: vertical;
  min-height: 118px;
}
.autopost-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.autopost-switch,
.autopost-buttons,
.autopost-days {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.autopost-switch label,
.autopost-buttons label,
.autopost-days label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
}
.autopost-switch input,
.autopost-buttons input,
.autopost-days input {
  width: auto;
  accent-color: #ff4fa3;
}
.autopost-buttons .toggle-row {
  justify-content: space-between;
  width: 100%;
  max-width: 360px;
  padding: 9px 10px 9px 13px;
}
.autopost-buttons .toggle-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.autopost-buttons .toggle-row i {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 4px rgba(0,0,0,.28);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.autopost-buttons .toggle-row i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.28);
  transition: transform .18s ease;
}
.autopost-buttons .toggle-row input:checked + i {
  background: linear-gradient(135deg, #ff4fa3, #ff7a45);
  border-color: rgba(255,255,255,.35);
  box-shadow: 0 0 18px rgba(255,79,163,.28);
}
.autopost-buttons .toggle-row input:checked + i::after {
  transform: translateX(20px);
}
.autopost-switch span,
.autopost-buttons span,
.autopost-days span {
  margin: 0;
  color: var(--text);
  font-size: 11px;
}
.autopost-form input:disabled,
.autopost-form select:disabled,
.autopost-form textarea:disabled,
.autopost-switch label:has(input:disabled),
.autopost-buttons label:has(input:disabled),
.autopost-days label:has(input:disabled),
.autopost-days.is-disabled label {
  opacity: .46;
  cursor: not-allowed;
}
.autopost-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.autopost-card {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
}
.autopost-card.paused {
  opacity: .72;
}
.autopost-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.autopost-card strong,
.autopost-card p {
  overflow-wrap: anywhere;
}
.autopost-card p {
  margin: 8px 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
}
.autopost-media {
  display: block;
  width: 100%;
  max-height: 190px;
  margin-top: 9px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
}
.autopost-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}
.autopost-meta span {
  padding: 7px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  color: var(--dim);
  font-size: 10px;
  font-weight: 700;
}
.autopost-card-actions {
  display: flex;
  gap: 7px;
  margin-top: 9px;
}
.autopost-card-actions .btn {
  min-height: 34px;
  padding: 8px 10px;
  font-size: 11px;
}
.support-panel {
  padding: 14px;
  margin: 10px 0;
}
.support-layout {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.support-list {
  display: grid;
  gap: 8px;
}
.support-ticket {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.support-ticket.active {
  border-color: rgba(236,72,153,.5);
  background: linear-gradient(135deg, rgba(236,72,153,.11), rgba(21,21,31,1) 50%);
}
.support-ticket-top,
.support-ticket-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.support-ticket strong,
.support-ticket-message {
  overflow-wrap: anywhere;
}
.support-ticket small {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-size: 10.5px;
}
.support-ticket-message {
  display: -webkit-box;
  margin-top: 8px;
  color: #ddd8ea;
  font-size: 12px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.support-ticket-bottom {
  margin-top: 8px;
  color: var(--dim);
  font-size: 10px;
}
.support-ticket-bottom em {
  min-width: 22px;
  min-height: 22px;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--grad);
  color: #0d0d16;
  font-style: normal;
  font-weight: 800;
  text-align: center;
}
.support-chat {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  overflow: hidden;
}
.support-empty {
  padding: 18px;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.45;
}
.support-profile {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(124,92,255,.13), rgba(236,72,153,.07));
}
.support-profile strong {
  display: block;
  overflow-wrap: anywhere;
}
.support-profile small {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-size: 10.5px;
}
.support-profile a {
  color: #fbcfe8;
}
.support-profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 10px 12px;
}
.support-profile-grid span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: var(--dim);
  font-size: 10.5px;
}
.support-profile-grid b {
  color: var(--text);
  text-align: right;
  overflow-wrap: anywhere;
}
.support-messages {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  padding: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.support-message {
  width: min(88%, 320px);
  padding: 9px 10px;
  border-radius: 13px;
  background: rgba(255,255,255,.06);
}
.support-message.admin {
  justify-self: end;
  background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(236,72,153,.16));
}
.support-message p {
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.support-message small {
  display: block;
  margin-top: 5px;
  color: var(--dim);
  font-size: 9.5px;
}
.support-reply-form {
  display: grid;
  gap: 8px;
  padding: 12px;
}
.support-reply-form textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  outline: 0;
  padding: 11px 12px;
  font: inherit;
}
.support-actions {
  display: flex;
  gap: 8px;
}
.support-actions .btn {
  min-height: 40px;
  padding: 9px 12px;
  font-size: 12px;
}
.user-cards { display: grid; gap: 8px; margin-top: 10px; }
.user-card { padding: 11px; border-radius: 13px; }
.user-card.online {
  border-color: rgba(52,211,153,.34);
  background: linear-gradient(135deg, rgba(52,211,153,.08), rgba(21,21,31,1) 42%);
}
.user-card.offline {
  border-color: rgba(155,150,171,.16);
}
.user-card.blocked {
  border-color: rgba(236,72,153,.4);
  background: linear-gradient(135deg, rgba(236,72,153,.10), rgba(21,21,31,1) 44%);
}
.user-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.user-card strong { display: block; overflow-wrap: anywhere; }
.user-card small, .user-meta, .user-card-grid span, .user-info-row span { color: var(--dim); }
.user-card small { display: block; margin-top: 2px; font-size: 11px; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  min-height: 23px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--dim);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dim);
}
.status-badge.online { color: #baf7df; border-color: rgba(52,211,153,.35); }
.status-badge.online::before { background: var(--ok); box-shadow: 0 0 0 4px rgba(52,211,153,.12); }
.status-badge.offline { color: var(--dim); }
.status-badge.blocked { color: #ffd1e8; border-color: rgba(236,72,153,.38); }
.status-badge.blocked::before { background: var(--pink); box-shadow: 0 0 0 4px rgba(236,72,153,.12); }
.last-seen {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 8px 9px;
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  color: var(--dim);
  font-size: 11px;
}
.last-seen b { color: var(--text); font-weight: 600; text-align: right; }
.user-card-lines {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}
.user-info-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 9px;
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  color: var(--dim);
  font-size: 11px;
}
.user-info-row b {
  color: var(--text);
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}
.user-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 8px; }
.user-card-grid div { padding: 8px; border-radius: 9px; background: var(--panel-2); }
.user-card-grid span { display: block; font-size: 9.5px; font-weight: 700; }
.user-card-grid strong { margin-top: 2px; font-size: 12px; line-height: 1.2; }

.toast {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 50;
  width: min(420px, calc(100% - 28px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: .24s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

body:not(.admin-authorized) .cms-private { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
