/**
 * 2b2tale Premium CSS v2.7.2
 * Single cosmic background - NO double layers
 */

/* ========================================
   SINGLE COSMIC BACKGROUND - BODY ONLY
   This is the ONLY background effect
   ======================================== */
body {
  background: #0a0a0a;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(139, 0, 0, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(139, 0, 0, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: cosmicPulse 15s ease-in-out infinite;
}

@keyframes cosmicPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #8b0000, #b22222);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  box-shadow: 0 10px 30px rgba(139, 0, 0, 0.4);
}

.btn-secondary {
  background: rgba(30, 30, 30, 0.9);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
}

.btn-secondary:hover {
  border-color: rgba(139, 0, 0, 0.4);
}

.btn-discord {
  background: linear-gradient(135deg, #5865F2, #4752C4);
  color: #fff;
  border: none;
}

.btn-discord:hover {
  box-shadow: 0 10px 30px rgba(88, 101, 242, 0.35);
}

/* ========================================
   CARDS
   ======================================== */
.card {
  background: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(139, 0, 0, 0.25);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* ========================================
   AUTH PAGES - TRANSPARENT CONTAINER
   ======================================== */
.auth-container {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  /* NO background - transparent to show body cosmic bg */
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 45px 40px;
  background: rgba(12, 12, 12, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  animation: cardFadeIn 0.4s ease;
}

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

.auth-card h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: #fff;
}

.auth-logo {
  width: 75px;
  height: 75px;
  margin: 0 auto 20px;
  background: rgba(139, 0, 0, 0.15);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc143c;
}

.auth-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
}

.auth-card .form-group {
  margin-bottom: 20px;
}

.auth-card .form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #888;
  font-size: 0.85rem;
  font-weight: 500;
}

.auth-card .form-label svg {
  color: #666;
}

.auth-card .form-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.auth-card .form-input:focus {
  outline: none;
  border-color: rgba(139, 0, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.auth-card .btn-primary {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  margin-top: 10px;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 25px 0;
  color: #444;
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.auth-divider span {
  padding: 0 15px;
}

.auth-links {
  text-align: center;
  color: #666;
}

.auth-links a {
  color: #dc143c;
  font-weight: 600;
}

.auth-links a:hover {
  color: #ff1744;
}

.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

@media (max-width: 500px) {
  .form-row-grid { grid-template-columns: 1fr; }
}

.form-row {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.forgot-link {
  font-size: 0.85rem;
  color: #666;
}

.forgot-link:hover {
  color: #dc143c;
}

/* ========================================
   NOTIFICATION DROPDOWN
   ======================================== */
.notification-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.notification-bell {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 10px;
  cursor: pointer;
  color: #888;
  transition: all 0.3s ease;
  border-radius: 8px;
  height: 42px;
  width: 42px;
}

.notification-bell:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  background: #dc143c;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  background: rgba(12, 12, 12, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 9999;
  max-height: 80vh;
  overflow-y: auto;
}

.notification-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.notification-header strong {
  color: #fff;
  font-size: 0.95rem;
}

.mark-read-btn {
  background: rgba(139, 0, 0, 0.2);
  border: 1px solid rgba(139, 0, 0, 0.3);
  color: #ccc;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mark-read-btn:hover {
  background: rgba(139, 0, 0, 0.35);
  color: #fff;
}

.notification-list {
  max-height: 320px;
  overflow-y: auto;
}

.notification-empty {
  padding: 40px 20px;
  text-align: center;
  color: #555;
}

.notification-item {
  display: block;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  color: inherit;
}

.notification-item:hover {
  background: rgba(139, 0, 0, 0.15);
}

.notification-item.unread {
  background: rgba(139, 0, 0, 0.08);
  border-left: 3px solid #dc143c;
}

.notification-item.unread:hover {
  background: rgba(139, 0, 0, 0.18);
}

.notif-message {
  color: #eee;
  font-size: 0.9rem;
  margin-bottom: 4px;
  line-height: 1.4;
}

.notification-item:hover .notif-message {
  color: #fff;
}

.notif-time {
  color: #888;
  font-size: 0.75rem;
}

/* ========================================
   RANK BADGES - EPIC ANARCHY SYSTEM
   ======================================== */
.user-level,
.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.user-level::before,
.rank-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.user-level:hover::before,
.rank-badge:hover::before {
  left: 100%;
}

.rank-icon { font-size: 0.9rem; }

/* WANDERER - Stone Gray */
.level-wanderer, .rank-wanderer,
.level-newbie, .rank-newbie {
  background: linear-gradient(135deg, rgba(55, 55, 65, 0.9), rgba(45, 45, 55, 0.9));
  color: #9ca3af;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* SURVIVOR - Forest Green */
.level-survivor, .rank-survivor {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #047857 100%);
  color: #fff;
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}

/* RAIDER - Steel Blue */
.level-raider, .rank-raider,
.level-member, .rank-member {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #2563eb 100%);
  color: #fff;
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.25), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* WARRIOR - Electric Cyan */
.level-warrior, .rank-warrior,
.level-active, .rank-active {
  background: linear-gradient(135deg, #0891b2 0%, #22d3ee 50%, #06b6d4 100%);
  color: #fff;
  border: 1px solid rgba(34, 211, 238, 0.3);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* WARLORD - Royal Purple */
.level-warlord, .rank-warlord,
.level-trusted, .rank-trusted {
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 40%, #7c3aed 100%);
  color: #fff;
  border: 1px solid rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  animation: warlordGlow 2.5s ease-in-out infinite;
}

@keyframes warlordGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(139, 92, 246, 0.35); }
  50% { box-shadow: 0 0 22px rgba(139, 92, 246, 0.5); }
}

/* DESTROYER - Inferno Orange */
.level-destroyer, .rank-destroyer,
.level-veteran, .rank-veteran {
  background: linear-gradient(135deg, #ff6348 0%, #ff9f43 30%, #ee5a24 60%, #d63031 100%);
  background-size: 200% 200%;
  color: #fff;
  border: 1px solid rgba(255, 99, 72, 0.4);
  box-shadow: 0 0 18px rgba(255, 99, 72, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
  animation: destroyerFlame 1.5s ease-in-out infinite;
}

@keyframes destroyerFlame {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* CONQUEROR - Blood Red Power */
.level-conqueror, .rank-conqueror,
.level-legend, .rank-legend {
  background: linear-gradient(135deg, #dc143c 0%, #ff4757 30%, #dc143c 50%, #8b0000 100%);
  background-size: 200% 200%;
  color: #fff;
  border: 1px solid rgba(220, 20, 60, 0.5);
  box-shadow: 0 0 20px rgba(220, 20, 60, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
  animation: conquerorPulse 2s ease-in-out infinite;
}

@keyframes conquerorPulse {
  0%, 100% { background-position: 0% 50%; box-shadow: 0 0 20px rgba(220, 20, 60, 0.4); }
  50% { background-position: 100% 50%; box-shadow: 0 0 30px rgba(220, 20, 60, 0.6); }
}

/* TYRANT - Golden Dominance */
.level-tyrant, .rank-tyrant {
  background: linear-gradient(135deg, #ffd700 0%, #ffec8b 25%, #ffd700 50%, #daa520 75%, #b8860b 100%);
  background-size: 200% 200%;
  color: #1a1a2e;
  font-weight: 900;
  border: 1px solid rgba(255, 215, 0, 0.6);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.5);
  animation: tyrantGold 2.5s ease-in-out infinite;
}

@keyframes tyrantGold {
  0%, 100% { background-position: 0% 50%; box-shadow: 0 0 25px rgba(255, 215, 0, 0.5); }
  50% { background-position: 100% 50%; box-shadow: 0 0 35px rgba(255, 215, 0, 0.7); }
}

/* OVERLORD - Platinum Prestige */
.level-overlord, .rank-overlord {
  background: linear-gradient(135deg, #e8e8e8 0%, #c0c0c0 25%, #ffffff 50%, #c0c0c0 75%, #a8a8a8 100%);
  background-size: 200% 200%;
  color: #1a1a2e;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3), inset 0 1px 0 rgba(255,255,255,0.8);
  animation: platinumShine 3s ease-in-out infinite;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

@keyframes platinumShine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* IMMORTAL - Rainbow Shifting */
.level-immortal, .rank-immortal {
  background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff, #5f27cd);
  background-size: 300% 100%;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  animation: immortalShift 4s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(255, 107, 107, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}

@keyframes immortalShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* GODLIKE - Cosmic Power */
.level-godlike, .rank-godlike {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #0f0f23 100%);
  color: #fff;
  border: 1px solid transparent;
  position: relative;
  animation: godlikeAura 3s ease-in-out infinite;
  text-shadow: 0 0 10px #fff, 0 0 20px #a855f7, 0 0 30px #6366f1;
}

.level-godlike::after, .rank-godlike::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #f43f5e, #a855f7, #6366f1, #06b6d4, #10b981, #eab308, #f43f5e);
  background-size: 400% 400%;
  border-radius: 22px;
  z-index: -1;
  animation: godlikeRainbow 3s linear infinite;
  filter: blur(3px);
}

@keyframes godlikeRainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes godlikeAura {
  0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.5), 0 0 40px rgba(99, 102, 241, 0.3); }
  50% { box-shadow: 0 0 30px rgba(168, 85, 247, 0.7), 0 0 60px rgba(99, 102, 241, 0.5); }
}

/* Role Badges */
.role-admin {
  background: linear-gradient(135deg, #8b0000, #dc143c);
  color: #fff;
}

.role-moderator {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  color: #fff;
}

.role-helper {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
}

/* ========================================
   FORUM STATS BAR (Bottom of forum index)
   ======================================== */
.stats-box {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 25px 30px;
  margin-top: 30px;
  background: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.stats-box .stat-item {
  text-align: center;
  padding: 0 20px;
}

.stats-box .stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.stats-box .stat-label {
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 600px) {
  .stats-box {
    flex-wrap: wrap;
    gap: 20px;
  }
  .stats-box .stat-item {
    width: 45%;
  }
}

/* Online Users Section */
.online-users {
  margin-top: 20px;
  padding: 20px 25px;
  background: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.online-users h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.online-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.online-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.online-user {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  color: #888;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.online-user:hover {
  background: rgba(139, 0, 0, 0.15);
  border-color: rgba(139, 0, 0, 0.3);
  color: #fff;
}

/* ========================================
   HOMEPAGE STATS GRID
   ======================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }

.stat-card {
  background: rgba(15, 15, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 0, 0, 0.25);
}

.stat-icon {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.stat-icon.red { background: rgba(220, 20, 60, 0.12); color: #dc143c; }
.stat-icon.blue { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.stat-icon.green { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.stat-icon.purple { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }

.stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.stat-card .stat-label {
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
}

/* Homepage Online Bar */
.online-bar {
  margin-top: 25px;
}

.online-widget {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: rgba(15, 15, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50px;
  margin: 0 auto;
}

.online-dot-animated {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

.online-widget span { color: #888; font-size: 0.9rem; }
.online-widget strong { color: #fff; }

.online-avatars {
  display: flex;
  margin-left: 5px;
}

.mini-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #0a0a0a;
  margin-left: -6px;
}

.mini-avatar:first-child { margin-left: 0; }

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  text-align: center;
  padding: 70px 20px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.hero p {
  color: #888;
  font-size: 1.1rem;
}

/* IP Copy Box */
.ip-copy-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: rgba(15, 15, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  margin: 25px auto 12px;
  max-width: 380px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.ip-copy-box:hover {
  border-color: rgba(139, 0, 0, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.ip-copy-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.ip-copy-input::selection {
  background: rgba(139, 0, 0, 0.5);
  color: #fff;
}

.ip-copy-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #8b0000, #b22222);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ip-copy-btn:hover {
  transform: translateY(-2px);
}

.ip-copy-btn.copied {
  background: linear-gradient(135deg, #166534, #22c55e);
}

.ip-hint {
  color: #9ca3af;
  font-size: 0.85rem;
  text-align: center;
  margin-top: 8px;
  transition: color 0.2s ease;
}

.ip-hint:hover {
  color: #d1d5db;
}

/* ========================================
   CATEGORY & THREAD ITEMS
   ======================================== */
.category-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  margin-bottom: 12px;
  background: rgba(15, 15, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.category-item:hover {
  border-color: rgba(139, 0, 0, 0.25);
  transform: translateY(-2px);
}

.cat-badge {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(139, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.cat-badge svg { color: #dc143c; }

/* Category-specific badge colors */
.cat-announcements { background: linear-gradient(135deg, rgba(220, 20, 60, 0.25), rgba(139, 0, 0, 0.15)); }
.cat-announcements svg { color: #ff4757; }

.cat-general { background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.1)); }
.cat-general svg { color: #60a5fa; }

.cat-showcases { background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(190, 24, 93, 0.1)); }
.cat-showcases svg { color: #f472b6; }

.cat-pvp { background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(185, 28, 28, 0.1)); }
.cat-pvp svg { color: #f87171; }

.cat-technical { background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.1)); }
.cat-technical svg { color: #4ade80; }

.cat-history { background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.1)); }
.cat-history svg { color: #fbbf24; }

.cat-recruitment { background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(109, 40, 217, 0.1)); }
.cat-recruitment svg { color: #a78bfa; }

.cat-creations { background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.1)); }
.cat-creations svg { color: #fcd34d; }

.cat-support { background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(13, 148, 136, 0.1)); }
.cat-support svg { color: #2dd4bf; }

.cat-off-topic { background: linear-gradient(135deg, rgba(107, 114, 128, 0.2), rgba(75, 85, 99, 0.1)); }
.cat-off-topic svg { color: #9ca3af; }

.cat-staff-applications { background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(126, 34, 206, 0.1)); }
.cat-staff-applications svg { color: #c084fc; }

.cat-bug-reports { background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.1)); }
.cat-bug-reports svg { color: #f87171; }

.cat-suggestions { background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(234, 179, 8, 0.1)); }
.cat-suggestions svg { color: #facc15; }

.cat-trading { background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(21, 128, 61, 0.1)); }
.cat-trading svg { color: #4ade80; }

.category-item:hover .cat-badge {
  transform: scale(1.08);
}

/* Category Badge Color Variations */
.cat-announcements .cat-badge,
.cat-badge.cat-announcements { background: rgba(220, 20, 60, 0.2) !important; }
.cat-announcements .cat-badge svg { color: #ff4757; }

.cat-general .cat-badge,
.cat-badge.cat-general { background: rgba(59, 130, 246, 0.2) !important; }
.cat-general .cat-badge svg { color: #60a5fa; }

.cat-support .cat-badge,
.cat-badge.cat-support { background: rgba(34, 197, 94, 0.2) !important; }
.cat-support .cat-badge svg { color: #22c55e; }

.cat-pvp .cat-badge,
.cat-badge.cat-pvp { background: rgba(239, 68, 68, 0.2) !important; }
.cat-pvp .cat-badge svg { color: #ef4444; }

.cat-technical .cat-badge,
.cat-badge.cat-technical { background: rgba(139, 92, 246, 0.2) !important; }
.cat-technical .cat-badge svg { color: #a78bfa; }

.cat-staff-applications .cat-badge,
.cat-badge.cat-staff-applications { background: rgba(245, 158, 11, 0.2) !important; }
.cat-staff-applications .cat-badge svg { color: #fbbf24; }

.cat-showcases .cat-badge,
.cat-badge.cat-showcases { background: rgba(236, 72, 153, 0.2) !important; }
.cat-showcases .cat-badge svg { color: #f472b6; }

.cat-off-topic .cat-badge,
.cat-badge.cat-off-topic { background: rgba(100, 116, 139, 0.2) !important; }
.cat-off-topic .cat-badge svg { color: #94a3b8; }

.cat-history .cat-badge,
.cat-badge.cat-history { background: rgba(168, 85, 247, 0.2) !important; }
.cat-history .cat-badge svg { color: #c084fc; }

.cat-recruitment .cat-badge,
.cat-badge.cat-recruitment { background: rgba(6, 182, 212, 0.2) !important; }
.cat-recruitment .cat-badge svg { color: #22d3ee; }

.cat-creations .cat-badge,
.cat-badge.cat-creations { background: rgba(251, 191, 36, 0.2) !important; }
.cat-creations .cat-badge svg { color: #fbbf24; }

.cat-bug-reports .cat-badge,
.cat-badge.cat-bug-reports { background: rgba(239, 68, 68, 0.2) !important; }
.cat-bug-reports .cat-badge svg { color: #f87171; }

.cat-suggestions .cat-badge,
.cat-badge.cat-suggestions { background: rgba(34, 197, 94, 0.2) !important; }
.cat-suggestions .cat-badge svg { color: #4ade80; }

.cat-trading .cat-badge,
.cat-badge.cat-trading { background: rgba(168, 85, 247, 0.2) !important; }
.cat-trading .cat-badge svg { color: #a855f7; }

.category-info h3 a {
  color: #fff;
  font-size: 1.05rem;
}

.category-info h3 a:hover { color: #dc143c; }

.category-info p {
  color: #666;
  font-size: 0.85rem;
  margin-top: 4px;
}

.category-stats {
  text-align: center;
  padding: 0 15px;
}

.category-stats .stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.category-stats .stat-label {
  font-size: 0.7rem;
  color: #666;
  text-transform: uppercase;
}

.category-latest {
  min-width: 160px;
  text-align: right;
}

.latest-title a { color: #888; font-size: 0.85rem; }
.latest-title a:hover { color: #dc143c; }
.latest-meta { color: #555; font-size: 0.75rem; margin-top: 3px; }

.thread-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  margin-bottom: 8px;
  background: rgba(15, 15, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.thread-item:hover {
  border-color: rgba(139, 0, 0, 0.25);
}

/* Thread avatars - circular */
.thread-avatar {
  width: 45px;
  height: 45px;
  min-width: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.3), rgba(139, 0, 0, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #dc143c;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.thread-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.thread-item:hover .thread-avatar {
  border-color: rgba(139, 0, 0, 0.4);
  box-shadow: 0 0 15px rgba(139, 0, 0, 0.2);
}

/* ========================================
   PROFILE PAGE
   ======================================== */
.profile-header {
  display: flex;
  gap: 25px;
  padding: 28px;
  margin-bottom: 25px;
  background: rgba(15, 15, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(139, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #dc143c;
  flex-shrink: 0;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.profile-stats {
  display: flex;
  gap: 25px;
  margin-top: 12px;
}

.profile-stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.profile-stat-label {
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
}

/* Level Progress */
.level-progress-card .card-body { padding: 22px; }

.current-level {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.level-score { color: #888; font-size: 0.9rem; }

.level-progress-bar {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b0000, #dc143c);
  border-radius: 4px;
}

.level-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #666;
}

.max-level-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: rgba(139, 0, 0, 0.15);
  border: 1px solid rgba(139, 0, 0, 0.3);
  border-radius: 8px;
  color: #dc143c;
  font-weight: 600;
}

.level-perks {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.level-perks h4 {
  color: #888;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.level-perks ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.level-perks li {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: rgba(139, 0, 0, 0.1);
  border-radius: 5px;
  color: #aaa;
  font-size: 0.85rem;
}

.level-perks li::before {
  content: '✓';
  color: #22c55e;
}

/* ========================================
   ALERTS
   ======================================== */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 18px;
}

.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.alert-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #86efac;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fcd34d;
}

.alert-info {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #93c5fd;
}

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #8b0000, #b22222);
  border: none;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* ========================================
   MOBILE
   ======================================== */
@media (max-width: 768px) {
  .auth-card { padding: 35px 25px; margin: 0 15px; }
  .auth-card h2 { font-size: 1.5rem; }
  .notification-dropdown { width: calc(100vw - 40px); right: -10px; }
  .profile-header { flex-direction: column; align-items: center; text-align: center; }
  .hero h1 { font-size: 2.2rem; }
  .category-stats, .category-latest { display: none; }
}

/* Header Nav Actions Alignment Fix */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-actions .btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #888;
  transition: all 0.3s ease;
}

.nav-actions .btn-icon:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.nav-actions .btn-ghost.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
}

/* Mobile Nav Actions */
@media (max-width: 900px) {
  .nav-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .nav-actions .btn-icon {
    width: 48px;
    height: 48px;
  }
  
  .notification-wrapper {
    order: 1;
  }
  
  .nav-actions .btn-ghost.user-btn {
    order: 2;
    width: 100%;
  }
  
  .nav-actions .btn-secondary,
  .nav-actions .btn-primary {
    flex: 1;
    min-width: 100px;
  }
}

/* ========================================
   ENHANCED POST/REPLY STYLES
   ======================================== */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.post-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.post-item:hover {
  border-color: rgba(139, 0, 0, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.post-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 15px;
  background: rgba(0, 0, 0, 0.3);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  gap: 8px;
}

.post-author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.3), rgba(139, 0, 0, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #dc143c;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.post-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.post-author-avatar.ring-admin {
  border-color: #dc143c;
  box-shadow: 0 0 15px rgba(220, 20, 60, 0.4);
}

.post-author-avatar.ring-moderator {
  border-color: #8b5cf6;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.post-author-avatar.ring-helper {
  border-color: #10b981;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.post-author-name {
  margin-top: 8px;
}

.post-author-name a {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.post-author-name a:hover {
  color: #dc143c;
}

.post-author-ign {
  font-size: 0.8rem;
  color: #888;
  font-style: italic;
}

.post-author-role {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-author-role.role-admin {
  background: linear-gradient(135deg, #8b0000, #dc143c);
  color: #fff;
}

.post-author-role.role-moderator {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  color: #fff;
}

.post-author-role.role-helper {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
}

.post-author-role.role-member {
  background: rgba(255, 255, 255, 0.1);
  color: #888;
}

.post-author-stats {
  font-size: 0.7rem;
  color: #666;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
}

.post-content-wrapper {
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.post-date {
  font-size: 0.8rem;
  color: #666;
}

.post-actions {
  display: flex;
  gap: 8px;
}

.post-content {
  flex: 1;
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.post-content p {
  margin-bottom: 12px;
}

.post-content p:last-child {
  margin-bottom: 0;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 12px 0;
}

.post-content blockquote {
  padding: 15px 20px;
  margin: 15px 0;
  background: rgba(139, 0, 0, 0.1);
  border-left: 4px solid #8b0000;
  border-radius: 0 8px 8px 0;
  color: #aaa;
  font-style: italic;
}

.post-content code {
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 0.85em;
  color: #f472b6;
}

.post-content pre {
  background: rgba(0, 0, 0, 0.5);
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 15px 0;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: #e5e5e5;
}

.post-signature {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: #666;
  font-style: italic;
}

/* Reactions on posts */
.post-reactions {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.reaction-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #888;
  font-size: 0.85rem;
}

.reaction-btn:hover {
  background: rgba(139, 0, 0, 0.2);
  border-color: rgba(139, 0, 0, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

.reaction-btn.active {
  background: rgba(139, 0, 0, 0.3);
  border-color: #8b0000;
  color: #fff;
}

.reaction-emoji {
  font-size: 1.2rem;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols", sans-serif;
  display: inline-block;
}

.reaction-count {
  font-weight: 600;
  min-width: 14px;
  text-align: center;
}

/* Thread header */
.thread-header {
  margin-bottom: 20px;
  padding: 25px;
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.thread-header h1 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.thread-header-meta {
  color: #666;
  font-size: 0.9rem;
}

.thread-header-meta a {
  color: #dc143c;
}

.thread-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-pinned {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-locked {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Reply form */
.reply-form-card {
  margin-top: 25px;
}

.reply-form-card .card-header {
  background: rgba(139, 0, 0, 0.1);
}

/* Mobile responsiveness for posts */
@media (max-width: 768px) {
  .post-item {
    grid-template-columns: 1fr;
  }
  
  .post-author {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 15px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 12px;
  }
  
  .post-author-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  .post-author-name {
    margin-top: 0;
  }
  
  .post-author-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .post-author-ign {
    display: none;
  }
  
  .post-author-stats {
    display: none;
  }
  
  .post-author-role {
    font-size: 0.65rem;
    padding: 3px 8px;
  }
  
  .user-level {
    font-size: 0.65rem;
    padding: 3px 8px;
  }
  
  .post-content-wrapper {
    padding: 15px;
  }
  
  .post-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .reaction-bar {
    gap: 6px;
  }
  
  .reaction-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
  }
  
  .thread-header h1 {
    font-size: 1.2rem;
  }
  
  .thread-actions {
    flex-direction: column;
  }
  
  .thread-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   ENHANCED ACHIEVEMENTS SYSTEM
   ======================================== */
.achievements-section {
  margin-top: 25px;
}

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

.achievement-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.achievement-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.achievement-item.unlocked {
  border-color: rgba(139, 0, 0, 0.4);
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.1), rgba(20, 20, 20, 0.9));
}

.achievement-item.locked {
  opacity: 0.5;
  filter: grayscale(70%);
}

.achievement-item.locked:hover {
  opacity: 0.7;
  filter: grayscale(50%);
}

.achievement-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(139, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.achievement-item.locked .achievement-icon-wrapper {
  background: rgba(100, 100, 100, 0.2);
}

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

.achievement-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 4px;
}

.achievement-item.locked .achievement-name {
  color: #888;
}

.achievement-desc {
  font-size: 0.8rem;
  color: #888;
  line-height: 1.4;
}

.achievement-item.locked .achievement-desc {
  color: #666;
}

.achievement-progress {
  margin-top: 8px;
}

.achievement-progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.achievement-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b0000, #dc143c);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.achievement-progress-text {
  font-size: 0.7rem;
  color: #666;
  margin-top: 4px;
  text-align: right;
}

.achievement-badge {
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}

.achievement-badge.earned {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.achievement-badge.locked {
  background: rgba(100, 100, 100, 0.2);
  color: #888;
  border: 1px solid rgba(100, 100, 100, 0.3);
}

.achievement-date {
  font-size: 0.7rem;
  color: #666;
  margin-top: 4px;
}

/* Achievements categories tabs */
.achievement-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.achievement-tab {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: #888;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.achievement-tab:hover {
  background: rgba(139, 0, 0, 0.2);
  border-color: rgba(139, 0, 0, 0.3);
  color: #fff;
}

.achievement-tab.active {
  background: rgba(139, 0, 0, 0.3);
  border-color: #8b0000;
  color: #fff;
}

.achievement-summary {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(139, 0, 0, 0.1);
  border: 1px solid rgba(139, 0, 0, 0.2);
  border-radius: 10px;
  flex-wrap: wrap;
}

.achievement-summary-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.achievement-summary-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.achievement-summary-label {
  font-size: 0.8rem;
  color: #888;
}

@media (max-width: 768px) {
  .achievements-grid {
    grid-template-columns: 1fr;
  }
  
  .achievement-tabs {
    justify-content: center;
  }
  
  .achievement-summary {
    justify-content: center;
  }
}

/* ========================================
   ONLINE BAR IMPROVEMENTS
   ======================================== */
.online-bar {
  text-align: center;
}

.online-widget {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.online-dot-animated {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
  animation: dotPulse 2s ease-in-out infinite;
}

/* ========================================
   BOOKMARK BUTTON
   ======================================== */
.bookmark-btn {
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  color: #888;
}

.bookmark-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.bookmark-btn.active {
  background: rgba(245, 158, 11, 0.3);
  border-color: #f59e0b;
  color: #fbbf24;
}

.bookmark-btn.active svg {
  fill: currentColor;
}

/* ========================================
   BTN DANGER OUTLINE
   ======================================== */
.btn-danger-outline {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #f87171;
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #fff;
}

/* ========================================
   ADDITIONAL MOBILE FIXES
   ======================================== */
@media (max-width: 600px) {
  /* Fix breadcrumbs overflow */
  .breadcrumbs {
    flex-wrap: wrap;
    font-size: 0.8rem;
  }
  
  /* Fix container padding */
  .container {
    padding: 0 15px;
  }
  
  /* Fix card headers */
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .card-header .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Fix online widget */
  .online-widget {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  
  .online-avatars {
    display: none;
  }
  
  /* Fix hero section */
  .hero {
    padding: 40px 15px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 0.95rem;
  }
  
  /* Fix IP copy box */
  .ip-copy-box {
    max-width: 100%;
    margin-left: 10px;
    margin-right: 10px;
  }
  
  .ip-copy-input {
    font-size: 1rem;
  }
  
  /* Fix stats grid */
  .stats-grid {
    gap: 12px;
  }
  
  .stat-card {
    padding: 18px;
  }
  
  .stat-card .stat-value {
    font-size: 1.5rem;
  }
  
  /* Fix thread list items */
  .thread-item {
    padding: 12px 15px;
  }
  
  /* Fix category items */
  .category-item {
    padding: 15px;
    gap: 12px;
  }
  
  .cat-badge {
    width: 40px;
    height: 40px;
  }
  
  .category-info h3 a {
    font-size: 0.95rem;
  }
  
  /* Fix footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
}

/* ========================================
   REPLY FORM IMPROVEMENTS
   ======================================== */
.reply-form {
  margin-top: 25px;
}

.reply-form .card-header {
  background: rgba(139, 0, 0, 0.1);
  border-bottom-color: rgba(139, 0, 0, 0.2);
}

.reply-form .card-title {
  color: #dc143c;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #888;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.toolbar-btn:hover {
  background: rgba(139, 0, 0, 0.2);
  border-color: rgba(139, 0, 0, 0.4);
  color: #fff;
}

.upload-status {
  font-size: 0.8rem;
  color: #888;
}

.upload-status.success {
  color: #4ade80;
}

.upload-status.error {
  color: #f87171;
}

/* ========================================
   PAGINATION IMPROVEMENTS
   ======================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 25px 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #888;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.pagination a:hover {
  background: rgba(139, 0, 0, 0.2);
  border-color: rgba(139, 0, 0, 0.4);
  color: #fff;
}

.pagination span.active {
  background: linear-gradient(135deg, #8b0000, #dc143c);
  border-color: #8b0000;
  color: #fff;
}

/* ========================================
   DELETE MODAL
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  width: 90%;
  max-width: 450px;
  background: rgba(15, 15, 15, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #fff;
}

.modal-body {
  color: #888;
  margin-bottom: 25px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

@media (max-width: 480px) {
  .modal-actions {
    flex-direction: column;
  }
  
  .modal-actions .btn {
    width: 100%;
  }
}

/* ========================================
   TOAST CONTAINER
   ======================================== */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100000;
  max-width: 350px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(15, 15, 15, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: toastSlideIn 0.3s ease;
}

.toast.success { border-left: 4px solid #22c55e; }
.toast.error { border-left: 4px solid #ef4444; }
.toast.warning { border-left: 4px solid #f59e0b; }
.toast.info { border-left: 4px solid #3b82f6; }

.toast.success .toast-icon { color: #22c55e; }
.toast.error .toast-icon { color: #ef4444; }
.toast.warning .toast-icon { color: #f59e0b; }
.toast.info .toast-icon { color: #3b82f6; }

.toast-message {
  flex: 1;
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: #666;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.toast-close:hover {
  color: #fff;
}

.toast-exit {
  animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastSlideOut {
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

@media (max-width: 480px) {
  .toast-container {
    left: 15px;
    right: 15px;
    bottom: 15px;
    max-width: none;
  }
}

/* ========================================
   READING PROGRESS BAR
   ======================================== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #8b0000, #dc143c);
  z-index: 10001;
  width: 0;
  transition: width 0.1s ease;
}

/* ========================================
   IMAGE MODAL / LIGHTBOX
   ======================================== */
.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-modal.active {
  opacity: 1;
}

.image-modal img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}

/* ========================================
   GLOBAL CIRCULAR AVATARS
   All avatars sitewide should be circular
   ======================================== */
[class*="avatar"] img,
.avatar img,
img.avatar {
  border-radius: 50% !important;
}

/* Header user avatar */
.header-user-avatar,
.nav-avatar,
.user-avatar {
  border-radius: 50% !important;
  overflow: hidden;
}

.header-user-avatar img,
.nav-avatar img,
.user-avatar img {
  border-radius: 50% !important;
  object-fit: cover;
}

/* ========================================
   ENTERPRISE UI ENHANCEMENTS
   ======================================== */

/* Smooth page transitions */
.main-content {
  animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced card hover effects */
.card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(139, 0, 0, 0.1);
}

/* Stats card shine effect */
.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.03),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.stat-card:hover::after {
  opacity: 1;
  animation: statShine 0.8s ease;
}

@keyframes statShine {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

/* Enhanced button styles */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:active {
  transform: scale(0.97);
}

/* Premium glow for primary buttons */
.btn-primary:hover {
  box-shadow: 
    0 8px 25px rgba(139, 0, 0, 0.4),
    0 0 40px rgba(139, 0, 0, 0.2);
}

/* Thread list smooth hover */
.thread-item {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.thread-item:hover {
  transform: translateX(4px);
  background: rgba(20, 20, 20, 0.95);
}

/* Category item enhanced hover */
.category-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
}

/* Post card improvements */
.post-card {
  transition: all 0.3s ease;
}

.post-card:hover {
  border-color: rgba(139, 0, 0, 0.3);
}

/* Enhanced form inputs */
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  box-shadow: 
    0 0 0 3px rgba(139, 0, 0, 0.15),
    0 4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

/* Badge shine effect */
.badge {
  position: relative;
  overflow: hidden;
}

.badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.badge:hover::before {
  left: 100%;
}

/* Smooth scrollbar for webkit */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 0, 0, 0.3) rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 0, 0, 0.3);
  border-radius: 4px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 0, 0, 0.5);
}

/* Better focus states for accessibility */
:focus-visible {
  outline: 2px solid rgba(139, 0, 0, 0.6);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(139, 0, 0, 0.6);
  outline-offset: 2px;
}

/* Loading skeleton effect */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Responsive improvements */
@media (max-width: 768px) {
  .card:hover,
  .thread-item:hover,
  .category-item:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
}

/* Print styles */
@media print {
  .site-header,
  .site-footer,
  .btn,
  .breadcrumbs {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
}

/* ============================================
   GLOBAL AVATAR OVERRIDE - ALWAYS CIRCULAR
   ============================================ */
[class*="avatar"],
.avatar,
.user-avatar,
.post-author-avatar,
.thread-avatar,
.profile-avatar,
.bookmark-avatar,
.online-avatar {
  border-radius: 50% !important;
  overflow: hidden !important;
}

[class*="avatar"] img,
.avatar img,
.user-avatar img,
.post-author-avatar img,
.thread-avatar img,
.profile-avatar img,
.bookmark-avatar img,
.online-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
}

/* ============================================
   ENHANCED ANIMATIONS & EFFECTS
   ============================================ */

/* Smooth page transitions */
.page-wrapper {
  animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card hover lift effect */
.card:hover,
.feature-card:hover,
.stat-card:hover {
  transform: translateY(-4px);
}

/* Skeleton loading animation */
.skeleton {
  background: linear-gradient(90deg, 
    rgba(255,255,255,0.05) 25%, 
    rgba(255,255,255,0.1) 50%, 
    rgba(255,255,255,0.05) 75%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b0000, #b22222);
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(139, 0, 0, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(139, 0, 0, 0.5);
}

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #8b0000, #dc143c);
  z-index: 10001;
  width: 0;
  transition: width 0.1s ease;
}

/* Image modal / lightbox */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  cursor: zoom-out;
}

.image-modal.active {
  opacity: 1;
  visibility: visible;
}

.image-modal img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Enhanced focus styles for accessibility */
*:focus-visible {
  outline: 2px solid #dc143c;
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #dc143c;
  outline-offset: 2px;
}

/* Better text selection */
::selection {
  background: rgba(139, 0, 0, 0.4);
  color: #fff;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading state for buttons */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn.loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: buttonSpin 0.8s linear infinite;
}

@keyframes buttonSpin {
  to { transform: rotate(360deg); }
}

/* Toast notification enhancement */
.toast-notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 14px 24px;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 10003;
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-notification.success {
  border-color: rgba(34, 197, 94, 0.5);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(10, 10, 10, 0.95));
}

.toast-notification.error {
  border-color: rgba(239, 68, 68, 0.5);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(10, 10, 10, 0.95));
}

/* Announcement banners */
.announcement-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 12px;
  margin-bottom: 12px;
  animation: slideInDown 0.4s ease;
}

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

.announcement-banner.info {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.announcement-banner.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.announcement-banner.warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.announcement-banner.danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.announcement-icon {
  font-size: 1.2rem;
}

.announcement-text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
}

.announcement-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s;
}

.announcement-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile improvements */
@media (max-width: 480px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
  
  .ip-copy-box {
    flex-direction: column;
    padding: 16px;
    gap: 12px;
  }
  
  .ip-copy-btn {
    width: 100%;
    justify-content: center;
  }
}
