* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #140f0a;
  --bg-gradient: linear-gradient(180deg, #1a1208 0%, #1c140a 35%, #120e08 100%);
  --card: #241a10;
  --card-hover: #2e2114;
  --primary: #f59e0b;
  --primary-hover: #ea580c;
  --accent: #fbbf24;
  --glow: rgba(245, 158, 11, 0.35);
  --glow-strong: rgba(251, 191, 36, 0.55);
  --text: #fff7ed;
  --text-muted: #d6b896;
  --border: #5c3d1e;
  --shadow: 0 4px 28px rgba(245, 158, 11, 0.12), 0 8px 32px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --radius-sm: 12px;
  --input-bg: #1a120c;
  --header-bg: rgba(26, 18, 10, 0.92);
}

/* Light theme */
[data-theme="light"] {
  --bg: #fff7ed;
  --bg-gradient: linear-gradient(180deg, #ffedd5 0%, #fff7ed 40%, #fffbeb 100%);
  --card: #ffffff;
  --card-hover: #fffbeb;
  --primary: #ea580c;
  --primary-hover: #c2410c;
  --accent: #f59e0b;
  --glow: rgba(234, 88, 12, 0.2);
  --glow-strong: rgba(245, 158, 11, 0.35);
  --text: #431407;
  --text-muted: #9a3412;
  --border: #fdba74;
  --shadow: 0 4px 24px rgba(234, 88, 12, 0.1);
  --input-bg: #ffffff;
  --header-bg: rgba(255, 247, 237, 0.92);
}

[data-theme="light"] .nav {
  background: #ffedd5;
  border-color: #fdba74;
}

[data-theme="light"] .section-icon {
  background: #ffedd5;
}

[data-theme="light"] .topic-sidebar {
  background: #fff7ed;
}

[data-theme="light"] .profile-about,
[data-theme="light"] .profile-stat {
  background: #fff7ed;
}

[data-theme="light"] .badge-pink {
  background: #db2777;
  color: #ffffff;
}

[data-theme="light"] .badge-red {
  background: #dc2626;
  color: #ffffff;
}

[data-theme="light"] .badge-green {
  background: #16a34a;
  color: #ffffff;
}

[data-theme="light"] .badge-yellow {
  background: #b45309;
  color: #ffffff;
}

[data-theme="light"] .topic-body .post-content {
  color: #7c2d12;
}

[data-theme="light"] .topic-body .post-content strong {
  color: #ea580c;
}

[data-theme="light"] .topic-body .post-content a {
  color: #ea580c;
}

[data-theme="light"] .topic-body .post-content a:hover {
  color: #c2410c;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--card-hover);
  border-color: var(--primary);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-gradient);
  min-height: 100vh;
  color: var(--text);
  line-height: 1.5;
}

a {
  color: #fbbf24;
}

.header {
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 0;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  background: transparent;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.footer-logo .logo-icon {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  background: #1a120c;
  border-radius: 50px;
  padding: 4px;
  gap: 2px;
  border: 1px solid var(--border);
}

.nav a {
  padding: 8px 18px;
  border-radius: 50px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav a.active,
.nav a:hover {
  background: var(--primary);
  color: white;
}

.search-box {
  flex: 1;
  max-width: 220px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.search-box input:focus {
  border-color: var(--primary);
}

.search-box input::placeholder {
  color: #c4a574;
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px;
  height: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.btn {
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.card-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

.section-group {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
}

.section-group-header {
  padding: 16px 24px;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-item {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(30, 58, 95, 0.5);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  gap: 16px;
}

.section-item:last-child {
  border-bottom: none;
}

.section-item:hover {
  background: var(--card-hover);
}

.section-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: #1a120c;
}

.section-info {
  flex: 1;
  min-width: 0;
}

.section-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.section-info p {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.section-stats {
  text-align: right;
  min-width: 60px;
}

.section-stats .count {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.section-stats .label {
  font-size: 12px;
  color: var(--text-muted);
}

.section-last {
  min-width: 200px;
  text-align: right;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 4px;
}

.badge-pink {
  background: rgba(219, 39, 119, 0.25);
  color: #ffffff;
}

.badge-red {
  background: rgba(220, 38, 38, 0.25);
  color: #ffffff;
}

.badge-green {
  background: rgba(22, 163, 74, 0.25);
  color: #ffffff;
}

.badge-yellow {
  background: rgba(245, 158, 11, 0.25);
  color: #ffffff;
}

.last-title {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  margin-left: auto;
}

.last-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 2px;
}

.avatar-sm {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #5c3d1e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #d6b896;
}

.role-group {
  margin-bottom: 28px;
}

.role-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  color: white;
}

.role-label .count {
  background: rgba(255,255,255,0.25);
  padding: 1px 8px;
  border-radius: 50px;
  font-size: 12px;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.staff-card {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.staff-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.staff-info h4 {
  font-size: 15px;
  font-weight: 600;
}

.staff-role-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
  color: white;
}

.topic-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: var(--card);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
  border: 1px solid var(--border);
  cursor: pointer;
}

.topic-item:hover {
  background: var(--card-hover);
}

.topic-info {
  flex: 1;
}

.topic-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.topic-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.topic-replies {
  text-align: center;
  min-width: 50px;
}

.topic-replies .num {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.topic-replies .lbl {
  font-size: 11px;
  color: var(--text-muted);
}

/* Topic view */
.topic-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 16px;
}

.topic-sidebar {
  background: #1a120c;
  padding: 24px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.topic-sidebar .big-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 22px;
}

.topic-sidebar .author-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
}

.topic-sidebar .author-name:hover {
  color: var(--primary);
}

.topic-body {
  padding: 24px;
}

.topic-body .post-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.topic-body .post-content {
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
  color: #fde7c4;
}

.topic-body .post-content strong,
.topic-body .post-content b {
  color: #fbbf24;
}

.topic-body .post-content a {
  color: #fbbf24;
  text-decoration: underline;
  word-break: break-word;
}

.topic-body .post-content a:hover {
  color: #fcd34d;
}

/* Profile */
.profile-banner {
  height: 180px;
  border-radius: var(--radius) var(--radius) 0 0;
  background-color: #9a3412;
  background-image: linear-gradient(
    135deg,
    #9a3412 0%,
    #c2410c 45%,
    #f59e0b 100%
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.profile-banner.has-image {
  background-image: none;
}

.profile-page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0.35;
  pointer-events: none;
}

.profile-page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20,15,10,0.55) 0%,
    rgba(20,15,10,0.85) 100%
  );
}

.profile-bg-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.profile-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 20px;
}

.profile-header {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding: 0 24px 20px;
  margin-top: -40px;
  position: relative;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 32px;
  border: 4px solid var(--card);
  flex-shrink: 0;
}

.profile-name {
  font-size: 22px;
  font-weight: 700;
}

.profile-role-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  margin-left: 8px;
  vertical-align: middle;
}

.profile-lastseen {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 16px;
  padding: 0 24px 24px;
}

.profile-about {
  background: #1a120c;
  border-radius: var(--radius-sm);
  padding: 18px;
  border: 1px solid var(--border);
}

.profile-about h3 {
  font-size: 14px;
  margin-bottom: 8px;
}

.profile-about p {
  font-size: 13px;
  color: var(--text-muted);
}

.profile-stat {
  background: #1a120c;
  border-radius: var(--radius-sm);
  padding: 14px;
  border: 1px solid var(--border);
  text-align: center;
  margin-bottom: 10px;
}

.profile-stat .num {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.profile-stat .lbl {
  font-size: 12px;
  color: var(--text-muted);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--card);
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  padding: 28px;
  color: var(--text);
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  border: 1px solid var(--border);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}

.modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.modal-tabs button {
  flex: 1;
  padding: 10px;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.modal-tabs button.active {
  background: var(--primary);
  color: white;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-size: 14px;
  outline: none;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.modal .btn-primary {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  border-radius: 12px;
}

.modal-footer {
  text-align: center;
  margin-top: 16px;
}

.modal-footer a {
  color: var(--accent);
  font-size: 13px;
  text-decoration: none;
}

.form-error {
  background: #7f1d1d;
  color: #fecaca;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}

.form-success {
  background: #14532d;
  color: #bbf7d0;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}

.footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  padding: 10px 20px;
  border-radius: 50px;
  box-shadow: var(--shadow);
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
}

.section-item .accent {
  width: 4px;
  height: 42px;
  border-radius: 4px;
  flex-shrink: 0;
}

.reply-form {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  margin-top: 16px;
}

.reply-form textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: white;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .search-box {
    order: 3;
    max-width: 100%;
    width: 100%;
  }

  .section-last {
    display: none;
  }

  .staff-grid {
    grid-template-columns: 1fr;
  }

  .topic-layout {
    grid-template-columns: 1fr;
  }

  .topic-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }
}

.contact-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  text-decoration: none;
  padding: 0;
}

.contact-btn:hover {
  background: var(--card-hover);
}

.contact-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

.contact-btn.telegram {
  color: #229ED9;
  border-color: rgba(34,158,217,.45);
}

.contact-btn.telegram:hover {
  border-color: #229ED9;
  background: rgba(34,158,217,.12);
}

.contact-btn.discord {
  color: #5865F2;
  border-color: rgba(88,101,242,.45);
}

.contact-btn.discord:hover {
  border-color: #5865F2;
  background: rgba(88,101,242,.12);
}

.contact-btn.telegram svg,
.contact-btn.discord svg {
  fill: currentColor;
}

/* Orange glow extras */
.header {
  border-bottom-color: rgba(245, 158, 11, 0.35) !important;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.12);
}

.logo:hover .logo-icon {
  box-shadow: 0 0 16px var(--glow-strong);
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #ea580c) !important;
  border: none;
  color: #1c1005 !important;
  font-weight: 700;
  box-shadow: 0 0 18px var(--glow);
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  box-shadow: 0 0 28px var(--glow-strong);
  transform: translateY(-1px);
}

.btn-ghost:hover,
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--accent);
  box-shadow: 0 0 14px var(--glow);
}

.card,
.section-card,
.profile-card,
.staff-card,
.stat-card,
.admin-table {
  border: 1px solid rgba(245, 158, 11, 0.22);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.section-card:hover,
.staff-card:hover,
.card:hover {
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 0 24px var(--glow), 0 8px 32px rgba(0,0,0,.35);
}

.nav a.active,
.nav a:hover {
  color: var(--accent) !important;
  text-shadow: 0 0 12px var(--glow);
}

.theme-toggle:hover,
.contact-btn:hover {
  box-shadow: 0 0 14px var(--glow);
  border-color: var(--primary) !important;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--glow), 0 0 16px rgba(245,158,11,.2);
}

.badge {
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.user-avatar,
.big-avatar,
.profile-avatar,
.staff-avatar {
  box-shadow: 0 0 12px var(--glow);
}

.modal {
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 40px var(--glow), 0 20px 60px rgba(0,0,0,.5);
}

.footer {
  border-top: 1px solid rgba(245, 158, 11, 0.25);
}

/* Soft ambient glow behind page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(
      ellipse 60% 40% at 20% 0%,
      rgba(245,158,11,.14),
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 35% at 80% 10%,
      rgba(234,88,12,.1),
      transparent 55%
    ),
    radial-gradient(
      ellipse 40% 30% at 50% 100%,
      rgba(251,191,36,.08),
      transparent 50%
    );
}

/* Hide native file inputs everywhere */
input[type="file"] {
  position: fixed !important;
  left: -9999px !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
}

/* Support notification dot — only on nav Support link */
.nav a.nav-support-link {
  position: relative;
  padding-right: 18px;
}

.nav a.nav-support-link .nav-support-dot {
  display: none;
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.75);
  pointer-events: none;
}

.nav a.nav-support-link.has-unread .nav-support-dot {
  display: block;
}

/* =========================================================
   NICKNAME COLORS
   ========================================================= */

/* Обычный статичный градиент */
.nickname-rgb,
a .nickname-rgb,
.profile-name .nickname-rgb,
.staff-info h4 .nickname-rgb,
.author-name .nickname-rgb {
  display: inline-block !important;

  background: linear-gradient(
    90deg,
    var(--nick-color1, #ff0000) 0%,
    var(--nick-color2, #00ff00) 100%
  ) !important;

  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;

  font-weight: 700 !important;
  filter: drop-shadow(0 0 var(--nick-glow, 8px) var(--nick-color1, #ff0000));
}


/* =========================================================
   АНИМИРОВАННЫЙ ГРАДИЕНТ
   =========================================================
   
   Логика:
   
   COLOR1 COLOR1 COLOR1 COLOR2 COLOR2 COLOR1 COLOR1 ...
   
   То есть цветовые участки идут волной:
   
   💚💚💚💚🤍🤍🤍💚💚💚🤍🤍🤍💚💚💚
   
   и постоянно двигаются слева направо.
*/

.nickname-animated,
a .nickname-animated,
.profile-name .nickname-animated,
.staff-info h4 .nickname-animated,
.author-name .nickname-animated {
  display: inline-block !important;

  background: linear-gradient(
    90deg,

    /* COLOR 1 */
    var(--nick-color1, #ff0000) 0%,
    var(--nick-color1, #ff0000) 12%,

    /* COLOR 2 */
    var(--nick-color2, #00ff00) 20%,
    var(--nick-color2, #00ff00) 28%,

    /* COLOR 1 */
    var(--nick-color1, #ff0000) 36%,
    var(--nick-color1, #ff0000) 48%,

    /* COLOR 2 */
    var(--nick-color2, #00ff00) 56%,
    var(--nick-color2, #00ff00) 64%,

    /* COLOR 1 */
    var(--nick-color1, #ff0000) 72%,
    var(--nick-color1, #ff0000) 84%,

    /* COLOR 2 */
    var(--nick-color2, #00ff00) 92%,
    var(--nick-color2, #00ff00) 100%
  );

  background-size: 300% 100%;

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;
  color: transparent;

  font-weight: 700 !important;

  animation-name: nickname-wave;
  animation-duration: var(--nick-speed, 8s);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  
  filter: drop-shadow(0 0 var(--nick-glow, 8px) var(--nick-color1, #ff0000));
  will-change: background-position, filter;
}

@keyframes nickname-wave {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 300% center;
  }
}


/* =========================================================
   PULSE
   ========================================================= */

.nickname-pulse,
a .nickname-pulse,
.profile-name .nickname-pulse,
.staff-info h4 .nickname-pulse,
.author-name .nickname-pulse {
  display: inline-block !important;
  animation: nickname-pulse 2s ease-in-out infinite !important;
  font-weight: 700 !important;
}

@keyframes nickname-pulse {
  0%,
  100% {
    color: var(--nick-color1, #ff0000);
    text-shadow: 0 0 10px var(--nick-color1, #ff0000);
  }

  50% {
    color: var(--nick-color2, #00ff00);
    text-shadow: 0 0 20px var(--nick-color2, #00ff00);
  }
}


/* =========================================================
   RAINBOW
   ========================================================= */

.nickname-rainbow,
a .nickname-rainbow,
.profile-name .nickname-rainbow,
.staff-info h4 .nickname-rainbow,
.author-name .nickname-rainbow {
  display: inline-block !important;

  background: linear-gradient(
    90deg,
    #ff0000 0%,
    #ff7f00 14%,
    #ffff00 28%,
    #00ff00 42%,
    #0000ff 57%,
    #4b0082 71%,
    #9400d3 85%,
    #ff0000 100%
  ) !important;

  background-size: 200% auto !important;

  -webkit-background-clip: text !important;
  background-clip: text !important;

  -webkit-text-fill-color: transparent !important;
  color: transparent !important;

  animation: nickname-rainbow 4s linear infinite !important;
  font-weight: 700 !important;
}

@keyframes nickname-rainbow {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}