body.page-user {
  background: #07070b;
  color: #e5e7eb;
}
body.page-user .loader { background: #07070b; }

.user-page {
  min-height: calc(100vh - 80px);
}
.user-hero {
  padding-bottom: 48px;
}
.user-hero-inner {
  position: relative;
  z-index: 1;
}

.user-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 36px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.1);
  background:
    linear-gradient(160deg, rgba(99,102,241,0.14) 0%, rgba(255,255,255,0.03) 42%, rgba(12,12,18,0.92) 100%);
  box-shadow: 0 28px 80px rgba(0,0,0,0.35);
}
.user-card.is-staff {
  border-color: rgba(251,191,36,0.35);
  background:
    linear-gradient(160deg, rgba(251,191,36,0.12) 0%, rgba(167,139,250,0.12) 38%, rgba(12,12,18,0.94) 100%);
  box-shadow: 0 28px 80px rgba(0,0,0,0.35), 0 0 48px rgba(251,191,36,0.08);
}

.user-ava {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto;
}
.user-ava-ring {
  display: block;
  width: 100%;
  height: 100%;
  padding: 8px;
  border-radius: 50%;
  background: linear-gradient(145deg, #a5b4fc, #e879f9 55%, #fbbf24);
  box-sizing: border-box;
}
.user-card.is-staff .user-ava-ring {
  background: linear-gradient(145deg, #fde68a, #fbbf24 40%, #a78bfa);
}
.user-ava-ring img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #12131a;
}
.user-ava-mark {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fde68a, #d97706);
  border: 3px solid #0b0b10;
  box-shadow: 0 0 16px rgba(251,191,36,0.45);
}
.user-ava-mark::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 9px;
  width: 8px;
  height: 12px;
  border: solid #1c1406;
  border-width: 0 2.4px 2.4px 0;
  transform: rotate(45deg);
}

.user-card-main h1 {
  margin: 8px 0 6px;
  color: #fff;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.user-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3b2a08;
  background: linear-gradient(90deg, #fde68a, #fbbf24);
}
.user-role {
  margin: 0 0 16px;
  color: #c4b5fd;
  font-size: 16px;
}
.user-card.is-staff .user-role {
  color: #fde68a;
}
.user-bio {
  margin: 0 0 28px;
  max-width: 560px;
  color: #9ca3af;
  font-size: 16px;
  line-height: 1.65;
}

.user-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.user-fact {
  min-width: 140px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.user-fact span {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.user-fact strong {
  color: #fff;
  font-size: 15px;
}
.user-fact a {
  color: #c4b5fd;
  text-decoration: none;
}
.user-fact a:hover {
  color: #fff;
}

@media (max-width: 800px) {
  .user-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px 22px 32px;
    gap: 24px;
  }
  .user-ava {
    width: 168px;
    height: 168px;
  }
  .user-bio {
    margin-left: auto;
    margin-right: auto;
  }
  .user-facts {
    justify-content: center;
  }
  .about-hero-actions {
    justify-content: center;
  }
}

.user-feed {
  position: relative;
  z-index: 1;
  padding: 8px 0 96px;
}
.user-feed-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
.user-feed.has-donates .user-feed-wrap {
  grid-template-columns: minmax(0, 1fr) 340px;
}
.user-feed-main {
  min-width: 0;
}
.user-donates {
  padding: 20px 18px 18px;
  border-radius: 22px;
  border: 1px solid rgba(251,191,36,0.22);
  background:
    linear-gradient(160deg, rgba(251,191,36,0.1) 0%, rgba(255,255,255,0.03) 42%, rgba(12,12,18,0.94) 100%);
}
.user-donates-head {
  margin-bottom: 16px;
}
.user-donates-head .about-kicker {
  color: #fde68a;
  margin-bottom: 6px;
}
.user-donates-head h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.user-donates-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(251,191,36,0.18);
}
.user-donates-total span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.user-donates-total strong {
  color: #fde68a;
  font-size: 20px;
}
.user-donates-form {
  margin: 16px 0 18px;
}
.user-donates-form .about-btn-tip {
  width: 100%;
}
.user-donates-guest p {
  margin: 0 0 12px;
  color: #9ca3af;
  font-size: 14px;
}
.user-donates-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.user-donate {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-donate-body {
  flex: 1;
  min-width: 0;
}
.user-donate-body time {
  display: block;
  margin-top: 2px;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
}
.user-donate-sum {
  color: #fde68a;
  font-size: 14px;
  white-space: nowrap;
}
.user-wall-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 22px;
}
.user-wall-head .about-kicker {
  width: 100%;
  margin-bottom: 0;
}
.user-wall-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.user-wall-count {
  min-width: 28px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #c4b5fd;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(167, 139, 250, 0.28);
}
.user-wall-compose {
  margin-bottom: 22px;
  padding: 22px 22px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.1);
  background:
    linear-gradient(160deg, rgba(99,102,241,0.12) 0%, rgba(255,255,255,0.03) 46%, rgba(12,12,18,0.92) 100%);
}
.user-wall-compose-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.user-wall-compose-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.user-wall-compose-name {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.user-wall-compose-name:hover {
  color: #c4b5fd;
}
.user-wall-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.user-wall-field span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.user-wall-field textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 110px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.28);
  color: #fff;
  font: inherit;
  resize: vertical;
}
.user-wall-field textarea:focus {
  outline: none;
  border-color: rgba(167,139,250,0.55);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.18);
}
.user-wall-compose-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.user-wall-note {
  margin: 0;
  color: rgba(255,255,255,0.45);
  font-size: 13px;
}
.user-wall-err {
  margin: 12px 0 0;
  color: #fca5a5;
  font-size: 13px;
  font-weight: 600;
}
.user-wall-guest p {
  margin: 8px 0 16px;
  color: #9ca3af;
}
.user-wall-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.user-wall-empty {
  margin: 0;
  padding: 18px 20px;
  border-radius: 16px;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.12);
  text-align: center;
}
.user-wall-post {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.user-wall-ava {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: #12131a;
}
.user-wall-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.user-wall-body {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}
.user-wall-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 8px;
}
.user-wall-author {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.user-wall-author:hover {
  color: #c4b5fd;
}
.user-wall-meta time {
  color: rgba(255,255,255,0.45);
  font-size: 12px;
}
.user-wall-del {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255,255,255,0.4);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.user-wall-del:hover {
  color: #fca5a5;
}
.user-wall-text {
  margin: 0;
  color: rgba(255,255,255,0.86);
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
@media (max-width: 800px) {
  .user-wall-compose-foot {
    flex-direction: column;
    align-items: stretch;
  }
}

.about-btn-tip {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  color: #1c1406;
  background: linear-gradient(135deg, #fde68a 0%, #fbbf24 55%, #f59e0b 100%);
  box-shadow: 0 10px 28px rgba(251, 191, 36, 0.28);
}
.about-btn-tip:hover { transform: translateY(-2px); }
.about-btn-tip:disabled {
  opacity: .55;
  pointer-events: none;
}

.user-tip-hint {
  margin: 0 0 12px;
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.5;
}
.user-tip-hint strong { color: #fde68a; }
.user-tip-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.user-tip-field span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.user-tip-field input {
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.28);
  color: #fff;
  font: inherit;
  font-size: 18px;
}
.user-tip-field input:focus {
  outline: none;
  border-color: rgba(251,191,36,0.55);
  box-shadow: 0 0 0 3px rgba(251,191,36,0.16);
}
.user-tip-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 16px;
}
.user-tip-preset {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #e5e7eb;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.user-tip-preset:hover {
  border-color: rgba(251,191,36,0.45);
  color: #fde68a;
}
.user-tip-err,
.user-tip-ok {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
}
.user-tip-err { color: #fca5a5; }
.user-tip-ok { color: #86efac; }
@media (max-width: 980px) {
  .user-feed.has-donates .user-feed-wrap {
    grid-template-columns: 1fr;
  }
  .user-donates {
    position: static;
  }
}
