@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;600;700&family=Orbitron:wght@400;700&display=swap');

:root {
  --bg-deep: #020205;
  --bg-dark: #0a0a0f;
  --neon-cyan: #00f3ff;
  --neon-magenta: #ff00ff;
  --neon-purple: #bc13fe;
  --neon-green: #39ff14;
  --soft-white: #e0e0e0;
  --gray-muted: #666677;
  --card-bg: rgba(15, 15, 20, 0.85);
  --border-glow: rgba(0, 243, 255, 0.3);
  
  --font-main: 'Exo 2', sans-serif;
  --font-header: 'Orbitron', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  /* Anti-DevTools: Block text selection everywhere */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
}

/* Allow selection inside inputs and textareas */

input, textarea {
  user-select: auto;
  -webkit-user-select: auto;
  -moz-user-select: auto;
  -ms-user-select: auto;
}

html {
  overscroll-behavior: none;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

body {
  background-color: var(--bg-deep);
  color: var(--soft-white);
  font-family: var(--font-main);
  overflow: hidden;
  height: 100%;
  width: 100%;
  overscroll-behavior: none;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

#root {
  height: 100%;
}

/* Universal Scrollbar Removal - Clean look for all platforms */

::-webkit-scrollbar {
  display: none;
}

* {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

#root {
  height: 100%;
}

/* Animations */

@keyframes gridMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(50px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 5px var(--neon-cyan); }
  50% { box-shadow: 0 0 15px var(--neon-cyan); }
}

@keyframes floatParticles {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  50% { opacity: 0.5; }
  100% { transform: translateY(-100vh) translateX(20px); opacity: 0; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.synth-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #020205 0%, #050510 60%, #150520 100%);
  overflow: hidden;
  z-index: -1;
}

.grid-plane {
  position: absolute;
  bottom: -30%;
  left: -50%;
  width: 200%;
  height: 80%;
  background-image: 
    linear-gradient(to right, rgba(188, 19, 254, 0.2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(188, 19, 254, 0.2) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(300px) rotateX(60deg);
  animation: gridMove 2s linear infinite;
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 90%);
}

.horizon-glow {
  position: absolute;
  bottom: 30%;
  left: 0;
  width: 100%;
  height: 20vh;
  background: linear-gradient(to top, var(--neon-magenta), transparent);
  opacity: 0.15;
  filter: blur(50px);
}

.particle {
  position: absolute;
  bottom: -10px;
  width: 2px;
  height: 2px;
  background-color: var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-cyan);
  animation: floatParticles linear infinite;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid rgba(188, 19, 254, 0.2);
  padding-bottom: Env(safe-area-inset-bottom);
  z-index: 100;
}

.nav-item {
  background: none;
  border: none;
  color: var(--gray-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  transition: var(--transition-smooth);
  flex: 1;
}

.nav-item.active {
  color: var(--neon-cyan);
}

.nav-label {
  font-size: 10px;
  font-family: var(--font-header);
}

.nav-glow {
  position: absolute;
  top: -15px;
  width: 40px;
  height: 2px;
  background: var(--neon-cyan);
  box-shadow: 0 0 15px var(--neon-cyan), 0 0 5px var(--neon-cyan);
  border-radius: 2px;
}

.nav-badge {
  position: absolute;
  top: -5px;
  right: 15%;
  background: var(--neon-pink);
  color: white;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 0 10px var(--neon-pink);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0 4px;
}
.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  background: #020205; /* Solid background for focus stability */
  border-bottom: 1px solid rgba(188, 19, 254, 0.2);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.mobile-header-left, .mobile-header-right {
  width: 60px;
  display: flex;
  align-items: center;
}

.mobile-header-right {
  justify-content: flex-end;
}

.mobile-header-center {
  flex: 1;
  text-align: center;
}

.mobile-title {
  font-family: var(--font-header);
  font-size: 14px;
  font-weight: 800;
  color: var(--soft-white);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.mobile-app-logo {
  font-family: var(--font-header);
  font-size: 20px;
  font-weight: 900;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--neon-cyan);
  letter-spacing: 2px;
}

.mobile-back-btn, .mobile-profile-btn {
  background: none;
  border: none;
  color: var(--soft-white);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-avatar-ring {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--neon-magenta);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
  overflow: hidden;
}

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

.mobile-avatar-ring span {
  font-size: 18px;
}

@media (min-width: 1024px) {
  .mobile-header {
    display: none;
  }
}
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background: linear-gradient(145deg, rgba(15, 15, 25, 0.95), rgba(10, 10, 18, 0.98));
  border: 1px solid rgba(0, 243, 255, 0.15);
  border-radius: 24px;
  padding: 35px 30px;
  max-width: 400px;
  width: 100%;
  position: relative;
  box-shadow: 0 0 60px rgba(188, 19, 254, 0.15), 0 0 20px rgba(0, 243, 255, 0.1);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-muted);
  transition: var(--transition-smooth);
}

.modal-close:hover {
  background: rgba(255, 0, 0, 0.15);
  color: #ff4444;
  border-color: rgba(255, 0, 0, 0.3);
}

.modal-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.modal-avatar-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--gray-muted), var(--gray-muted));
  margin-bottom: 10px;
}

.modal-avatar-ring.active {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.modal-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-deep);
}

.modal-status-badge {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
}

.modal-status-badge.online {
  background: rgba(57, 255, 20, 0.15);
  color: var(--neon-green);
  border: 1px solid rgba(57, 255, 20, 0.3);
}

.modal-status-badge.offline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--gray-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-player-name {
  font-family: var(--font-header);
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 15px;
  color: white;
}

.modal-stats-row {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 25px;
}

.modal-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--neon-cyan);
}

.modal-section {
  margin-bottom: 20px;
}

.modal-section-title {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gray-muted);
  margin-bottom: 10px;
  font-weight: 600;
}

.modal-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-role-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: rgba(0, 243, 255, 0.08);
  border: 1px solid rgba(0, 243, 255, 0.2);
  border-radius: 20px;
  font-size: 12px;
  color: var(--neon-cyan);
}

.modal-bio {
  font-size: 14px;
  color: var(--soft-white);
  line-height: 1.6;
  font-style: italic;
  opacity: 0.85;
}

.modal-actions {
  margin-top: 25px;
}

.modal-btn-chat {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  border: none;
  border-radius: 14px;
  color: white;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-smooth);
}

.modal-btn-chat:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 25px rgba(0, 243, 255, 0.3);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.confirm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.3s ease-out;
}

.confirm-modal-box {
  background: linear-gradient(135deg, #151921 0%, #0d1117 100%);
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  border: 1px solid rgba(0, 243, 255, 0.2);
  padding: 32px;
  position: relative;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
              0 0 30px rgba(0, 243, 255, 0.1);
  animation: modalScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #8b949e;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.modal-icon-container {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.modal-icon-bg {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(45deg);
}

.modal-icon-bg > * {
  transform: rotate(-45deg);
}

.modal-icon-bg.info {
  background: rgba(0, 243, 255, 0.1);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 243, 255, 0.3);
}

.modal-icon-bg.danger {
  background: rgba(255, 61, 113, 0.1);
  color: #ff3d71;
  border: 1px solid rgba(255, 61, 113, 0.3);
}

.modal-icon-bg.warning {
  background: rgba(255, 170, 51, 0.1);
  color: #ffaa33;
  border: 1px solid rgba(255, 170, 51, 0.3);
}

.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.modal-desc {
  color: #8b949e;
  line-height: 1.6;
  font-size: 15px;
  margin-bottom: 32px;
}

.modal-actions-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-modal-cancel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-modal-confirm {
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-modal-confirm.info {
  background: linear-gradient(135deg, #00f3ff 0%, #009ce1 100%);
}

.btn-modal-confirm.danger {
  background: linear-gradient(135deg, #ff3d71 0%, #ff1744 100%);
}

.btn-modal-confirm.warning {
  background: linear-gradient(135deg, #ffaa33 0%, #ff8c00 100%);
}

.btn-modal-confirm:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.screen-container {
  padding: 20px;
  padding-bottom: 100px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  overscroll-behavior: contain;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.app-logo-img {
  height: 35px;
  filter: drop-shadow(0 0 10px var(--neon-cyan));
}

@media (min-width: 1024px) {
  .app-header {
    display: none; /* Already in sidebar on desktop */
  }
}

.app-logo-small {
  font-family: var(--font-header);
  font-size: 24px;
  font-weight: 700;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--neon-cyan);
  letter-spacing: 2px;
}

.avatar-header {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--neon-purple);
  box-shadow: 0 0 10px var(--neon-purple);
}

.search-section {
  margin-bottom: 25px;
}

/* ============ LOBBY BOARD (Blackboard) ============ */
.lobby-board {
  background: rgba(5, 5, 15, 0.7);
  border: 1px solid rgba(0, 243, 255, 0.1);
  border-radius: 18px;
  margin-bottom: 25px;
  overflow: hidden;
}

.lobby-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0, 243, 255, 0.04);
  border-bottom: 1px solid rgba(0, 243, 255, 0.08);
}

.lobby-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--neon-cyan);
  font-weight: 700;
  font-size: 13px;
}

.lobby-online {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--gray-muted);
}

.lobby-live-dot {
  width: 6px;
  height: 6px;
  background: var(--neon-green);
  border-radius: 50%;
  animation: lobbyPulse 2s infinite;
}

@keyframes lobbyPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.lobby-board-messages {
  max-height: 200px;
  overflow-y: auto;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
}

.lobby-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  animation: lobbyFadeIn 0.2s ease;
}

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

.lobby-row-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lobby-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.lobby-row-name {
  font-weight: 700;
  font-size: 12px;
  color: var(--neon-cyan);
  flex-shrink: 0;
}

.lobby-row-text {
  font-size: 12px;
  color: var(--soft-white);
  line-height: 1.4;
  word-break: break-word;
}

.lobby-row-time {
  font-size: 9px;
  color: var(--gray-muted);
  flex-shrink: 0;
  margin-left: auto;
  padding-top: 2px;
}

.lobby-error {
  padding: 6px 14px;
  margin: 0 14px 6px;
  background: rgba(255, 165, 0, 0.08);
  border: 1px solid rgba(255, 165, 0, 0.2);
  border-radius: 8px;
  color: #ffaa33;
  font-size: 10px;
  text-align: center;
}

.lobby-board-input {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.lobby-board-input input {
  flex: 1;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  color: white;
  font-size: 12px;
  outline: none;
  font-family: var(--font-main);
}

.lobby-board-input input:focus {
  border-color: var(--neon-cyan);
}

.lobby-board-input button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--neon-cyan);
  border: none;
  color: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.lobby-board-input button:hover {
  box-shadow: 0 0 15px var(--neon-cyan);
}

.search-bar {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 243, 255, 0.2);
  border-radius: 12px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  transition: var(--transition-smooth);
}

.search-bar:focus-within {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.search-bar input {
  background: none;
  border: none;
  color: white;
  width: 100%;
  outline: none;
  font-family: var(--font-main);
}

.filter-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.filter-scroll::-webkit-scrollbar {
  display: none;
}

.pill {
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 13px;
  white-space: nowrap;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.pill.active {
  background: rgba(188, 19, 254, 0.2);
  border-color: var(--neon-purple);
  color: var(--neon-purple);
  text-shadow: 0 0 5px var(--neon-purple);
}

.feed-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.player-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(5px);
  transition: var(--transition-smooth);
}

.player-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.avatar-ring {
  padding: 3px;
  border-radius: 50%;
  border: 2px solid transparent;
}

.avatar-ring.active {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
}

.player-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.player-info {
  flex: 1;
}

.player-ign {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 2px;
}

.player-stars {
  font-size: 11px;
  color: var(--neon-magenta);
  font-weight: 600;
  letter-spacing: 1px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--gray-muted);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot.online {
  background: var(--neon-green);
  box-shadow: 0 0 5px var(--neon-green);
}

.dot.offline {
  background: #555;
}

.player-msg {
  font-size: 14px;
  color: var(--soft-white);
  line-height: 1.5;
  margin-bottom: 15px;
  font-style: italic;
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.role-tag {
  background: rgba(0, 243, 255, 0.1);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 243, 255, 0.2);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
}

.region-tag {
  background: rgba(255, 0, 255, 0.1);
  color: var(--neon-magenta);
  border: 1px solid rgba(255, 0, 255, 0.2);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
}

.card-actions {
  display: flex;
  gap: 10px;
}

.btn-primary, .btn-secondary {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-header);
}

.manage-post-actions {
  display: flex;
  gap: 8px;
  margin-left: 15px;
}

.manage-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--gray-muted);
}

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

.manage-btn.edit:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
  background: rgba(0, 243, 255, 0.05);
}

.manage-btn.delete:hover {
  color: #ff4d4d;
  border-color: #ff4d4d;
  box-shadow: 0 0 10px rgba(255, 77, 77, 0.3);
  background: rgba(255, 77, 77, 0.05);
}

.btn-primary {
  background: var(--neon-cyan);
  color: var(--bg-deep);
}

.btn-primary:active {
  box-shadow: 0 0 20px var(--neon-cyan);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.create-post-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(188, 19, 254, 0.15), rgba(0, 243, 255, 0.1));
  border: 1px dashed rgba(188, 19, 254, 0.3);
  border-radius: 14px;
  color: var(--neon-magenta);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-header);
  cursor: pointer;
  transition: var(--transition-smooth);
  letter-spacing: 0.5px;
}

.create-post-btn:hover {
  background: linear-gradient(135deg, rgba(188, 19, 254, 0.25), rgba(0, 243, 255, 0.15));
  border-color: var(--neon-magenta);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(188, 19, 254, 0.2);
}

.loading-more {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 40px;
}

/* Skeleton Loaders */
.skeleton {
  pointer-events: none;
  position: relative;
  overflow: hidden;
}

.skeleton-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.skeleton-line {
  height: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  margin-bottom: 8px;
}

.skeleton-line.short { width: 40%; }
.skeleton-line.full { width: 100%; height: 16px; margin-top: 5px; }

.skeleton .skeleton-avatar,
.skeleton .skeleton-line {
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.03) 25%, 
    rgba(255, 255, 255, 0.08) 50%, 
    rgba(255, 255, 255, 0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

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

.fade-in {
  animation: cardFadeIn 0.3s ease forwards;
}

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

.shimmer-card {
  height: 200px;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.03) 25%, 
    rgba(255, 255, 255, 0.08) 50%, 
    rgba(255, 255, 255, 0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.chat-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(5, 5, 10, 0.8);
  backdrop-filter: blur(10px);
}

.chat-header {
  height: 70px;
  background: rgba(15, 15, 25, 0.95);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  padding: 0 15px;
  gap: 15px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.back-btn, .more-btn {
  background: none;
  border: none;
  color: var(--soft-white);
  cursor: pointer;
}

.chat-user-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar-wrapper {
  position: relative;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--neon-cyan);
}

.online-dot-mini {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: var(--neon-green);
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
  box-shadow: 0 0 5px var(--neon-green);
}

.chat-user-name {
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mute-icon {
  color: var(--gray-muted);
  opacity: 0.6;
}

.chat-user-status {
  font-size: 11px;
  color: var(--neon-green);
}

.chat-user-status.offline {
  color: var(--gray-muted);
}

.chat-user-info.offline .chat-avatar-wrapper .chat-avatar {
  filter: grayscale(100%);
  opacity: 0.6;
  border-color: var(--gray-muted);
}

/* Dropdown Menu */
.chat-menu-wrapper {
  position: relative;
}

.chat-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 220px;
  background: rgba(15, 15, 25, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 8px;
  z-index: 200;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: menuSlide 0.15s ease;
}

@keyframes menuSlide {
  from { opacity: 0; transform: translateY(-8px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-dropdown-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: none;
  border: none;
  color: var(--soft-white);
  font-size: 13px;
  cursor: pointer;
  border-radius: 10px;
  transition: var(--transition-smooth);
  font-family: var(--font-main);
}

.chat-dropdown-menu button:hover {
  background: rgba(255, 255, 255, 0.06);
}

.menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 6px 0;
}

.menu-danger {
  color: #ff5555 !important;
}

.menu-danger:hover {
  background: rgba(255, 50, 50, 0.1) !important;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99;
}

/* Message Area */
.message-area {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chat-empty-state {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-muted);
  font-size: 14px;
}

.message-bubble-wrapper {
  display: flex;
  width: 100%;
}

.message-bubble-wrapper.sent {
  justify-content: flex-end;
}

.message-bubble-wrapper.received {
  justify-content: flex-start;
}

.message-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.message-copy-target {
  cursor: copy;
  user-select: text;
  -webkit-user-select: text;
  white-space: pre-wrap;
  word-break: break-word;
}

.sent .message-bubble {
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.18), rgba(0, 243, 255, 0.08));
  border: 1px solid rgba(0, 243, 255, 0.3);
  color: white;
  border-bottom-right-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 243, 255, 0.08);
}

.received .message-bubble {
  background: rgba(15, 15, 25, 0.9);
  border: 1px solid rgba(188, 19, 254, 0.18);
  color: var(--soft-white);
  border-bottom-left-radius: 6px;
}

.msg-time {
  font-size: 9px;
  color: var(--gray-muted);
  align-self: flex-end;
}

/* Input Area */
.chat-input-area {
  padding: 15px;
  background: rgba(10, 10, 15, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.input-wrapper {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 6px 6px 6px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-wrapper input {
  background: none;
  border: none;
  color: white;
  flex: 1;
  outline: none;
  font-family: var(--font-main);
  height: 38px;
}

.send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--neon-cyan);
  border: none;
  color: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 10px var(--neon-cyan);
}

.rate-limit-warning {
  padding: 8px 15px;
  margin: 0 15px;
  background: rgba(255, 165, 0, 0.1);
  border: 1px solid rgba(255, 165, 0, 0.3);
  border-radius: 10px;
  color: #ffaa33;
  font-size: 11px;
  text-align: center;
  animation: fadeIn 0.2s ease;
}

.chat-action-toast {
  margin: 0 15px 10px;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(0, 243, 255, 0.12);
  border: 1px solid rgba(0, 243, 255, 0.2);
  color: var(--neon-cyan);
  font-size: 11px;
  text-align: center;
}

/* Confirmation Modal */
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.15s ease;
}

.confirm-modal {
  background: rgba(15, 15, 25, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px 25px;
  max-width: 360px;
  width: 100%;
  position: relative;
  animation: slideUp 0.2s ease;
}

.confirm-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--gray-muted);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.confirm-title {
  font-family: var(--font-header);
  font-size: 17px;
  margin-bottom: 10px;
  color: white;
}

.confirm-desc {
  font-size: 13px;
  color: var(--gray-muted);
  line-height: 1.6;
  margin-bottom: 25px;
}

.confirm-actions {
  display: flex;
  gap: 10px;
}

.confirm-cancel {
  flex: 1;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--soft-white);
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font-main);
}

.confirm-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font-main);
}

.confirm-btn.danger {
  background: rgba(255, 50, 50, 0.2);
  color: #ff5555;
  border: 1px solid rgba(255, 50, 50, 0.3);
}

.confirm-btn.warning {
  background: rgba(255, 165, 0, 0.2);
  color: #ffaa33;
  border: 1px solid rgba(255, 165, 0, 0.3);
}

.confirm-btn.neutral {
  background: rgba(255, 255, 255, 0.08);
  color: var(--soft-white);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-list-screen {
  padding: 20px;
  padding-bottom: 100px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

/* Header / Actions Bar */
.chat-list-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 16px;
}

.settings-gear {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.settings-gear:hover {
  color: var(--neon-cyan);
  border-color: rgba(0, 243, 255, 0.2);
  background: rgba(0, 243, 255, 0.05);
}

/* Conversations */
.convos-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.convo-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.convo-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-glow);
}

.convo-avatar-wrapper {
  position: relative;
}

.convo-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.online-status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: var(--neon-green);
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
  box-shadow: 0 0 10px var(--neon-green);
}

.convo-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.convo-hold-hint {
  flex-shrink: 0;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.32);
  letter-spacing: 0.4px;
}

.convo-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.convo-name {
  font-weight: 700;
  font-size: 15px;
}

.convo-time {
  font-size: 10px;
  color: var(--gray-muted);
}

.convo-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.convo-msg {
  font-size: 13px;
  color: var(--gray-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.convo-msg.unread {
  color: var(--soft-white);
  font-weight: 600;
}

.unread-badge {
  width: 8px;
  height: 8px;
  background: var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-cyan);
}

/* ============ SETTINGS MODAL ============ */
.settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: settFadeIn 0.15s ease;
}

@keyframes settFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.settings-modal {
  background: rgba(12, 12, 20, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 0;
  max-width: 420px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  animation: settSlide 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  scrollbar-width: thin;
}

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

.settings-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  background: rgba(12, 12, 20, 0.97);
  z-index: 10;
}

.settings-modal-header h2 {
  font-family: var(--font-header);
  font-size: 17px;
  margin: 0;
  color: white;
}

.settings-close {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--gray-muted);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.settings-close:hover {
  background: rgba(255, 50, 50, 0.15);
  color: #ff5555;
}

/* Menu Items */
.settings-menu {
  padding: 10px 12px 20px;
}

.settings-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  background: none;
  border: none;
  border-radius: 14px;
  color: var(--soft-white);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-main);
  text-align: left;
}

.settings-menu-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.smi-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.smi-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.smi-icon.danger {
  background: rgba(255, 50, 50, 0.1);
  color: #ff5555;
}

.smi-icon.cyan {
  background: rgba(0, 243, 255, 0.1);
  color: var(--neon-cyan);
}

.smi-icon.purple {
  background: rgba(188, 19, 254, 0.1);
  color: var(--neon-purple);
}

.smi-icon.green {
  background: rgba(57, 255, 20, 0.1);
  color: var(--neon-green);
}

.smi-icon.orange {
  background: rgba(255, 165, 0, 0.1);
  color: #ffaa33;
}

.smi-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.smi-title {
  font-size: 14px;
  font-weight: 600;
}

.smi-desc {
  font-size: 11px;
  color: var(--gray-muted);
}

.smi-arrow {
  color: var(--gray-muted);
}

.danger-text {
  color: #ff5555 !important;
}

.settings-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 8px 14px;
}

/* Toggle Switch */
.toggle-switch {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  cursor: pointer;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  top: 3px;
  left: 3px;
  transition: var(--transition-smooth);
}

.toggle-switch.active {
  background: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.3);
}

.toggle-switch.active::after {
  left: 23px;
}

/* Sub Pages */
.settings-subpage {
  padding: 15px 20px 25px;
}

.back-link {
  background: none;
  border: none;
  color: var(--neon-cyan);
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 20px;
  display: block;
  font-family: var(--font-main);
}

/* Blocked List */
.blocked-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blocked-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
}

.blocked-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 50, 50, 0.2);
  opacity: 0.6;
}

.blocked-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-muted);
}

.unblock-btn {
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 12px;
  color: var(--soft-white);
  cursor: pointer;
  font-family: var(--font-main);
  transition: var(--transition-smooth);
}

.unblock-btn:hover {
  background: rgba(0, 243, 255, 0.1);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.empty-blocked {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-muted);
}

.empty-blocked svg {
  margin-bottom: 10px;
  opacity: 0.3;
}

/* Privacy Options */
.privacy-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.privacy-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.privacy-option:hover {
  background: rgba(255, 255, 255, 0.04);
}

.privacy-option.active {
  border-color: rgba(0, 243, 255, 0.3);
  background: rgba(0, 243, 255, 0.04);
}

.privacy-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  position: relative;
}

.privacy-option.active .privacy-radio {
  border-color: var(--neon-cyan);
}

.privacy-option.active .privacy-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-cyan);
}

.privacy-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.privacy-desc {
  font-size: 11px;
  color: var(--gray-muted);
}
.create-post-screen {
  padding: 20px;
  padding-bottom: 80px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.create-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.header-title {
  font-family: var(--font-header);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

.post-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.custom-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  color: var(--soft-white);
  cursor: pointer;
}

.custom-select select {
  width: 100%;
  padding: 15px;
  background: transparent;
  border: none;
  color: var(--soft-white);
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.custom-select select option {
  background: var(--bg-dark);
  color: var(--soft-white);
}

.char-count {
  font-size: 11px;
  color: var(--gray-muted);
  text-align: right;
  margin-top: -5px;
}

.form-error {
  padding: 10px 14px;
  background: rgba(255, 50, 50, 0.1);
  border: 1px solid rgba(255, 50, 50, 0.25);
  border-radius: 10px;
  color: #ff6b6b;
  font-size: 12px;
  text-align: center;
}

.role-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.role-chip {
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  font-size: 12px;
  text-align: center;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.role-chip.active {
  background: rgba(0, 243, 255, 0.1);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 15px;
  color: white;
  font-family: var(--font-main);
  outline: none;
  resize: none;
  transition: var(--transition-smooth);
}

textarea:focus {
  border-color: var(--neon-purple);
  box-shadow: 0 0 10px rgba(188, 19, 254, 0.2);
}

.submit-post-btn {
  margin-top: 10px;
  padding: 18px;
  background: linear-gradient(45deg, var(--neon-purple), var(--neon-magenta));
  border: none;
  border-radius: 12px;
  color: white;
  font-family: var(--font-header);
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(188, 19, 254, 0.3);
  transition: var(--transition-smooth);
}

.submit-post-btn:active {
  transform: scale(0.98);
  box-shadow: 0 0 30px var(--neon-purple);
}
.profile-screen {
  padding: 20px;
  padding-bottom: 100px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  touch-action: pan-y;
  overscroll-behavior: contain;
}

.profile-header-ui {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.profile-card-main {
  background: linear-gradient(135deg, rgba(188, 19, 254, 0.1), rgba(0, 243, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
}

/* Avatar Section Progress Fix */
.avatar-preview {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  border: 3px solid var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0f;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.profile-img-large {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder-large {
  font-size: 50px;
}

.upload-progress-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  z-index: 10;
}

.progress-circle-container {
  position: relative;
  width: 80px;
  height: 80px;
}

.progress-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 8;
}

.progress-fill {
  fill: none;
  stroke: var(--neon-cyan);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 0.3s ease;
  filter: drop-shadow(0 0 8px var(--neon-cyan));
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-header);
  text-shadow: 0 0 10px var(--neon-cyan);
}

.change-avatar-btn {
  position: absolute;
  bottom: 0px;
  right: 0px;
  background: var(--neon-purple);
  border: 2px solid white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(188, 19, 254, 0.4);
  z-index: 20;
}

.change-avatar-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.profile-avatar-big {
  position: relative;
  width: 100px;
  height: 100px;
}

.profile-avatar-big img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--neon-cyan);
  box-shadow: 0 0 20px var(--neon-cyan);
}

.rank-badge-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--neon-purple);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-deep);
  box-shadow: 0 0 10px var(--neon-purple);
}

.profile-ign-large {
  font-family: var(--font-header);
  font-size: 24px;
  font-weight: 700;
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.profile-id {
  font-size: 12px;
  color: var(--gray-muted);
  text-align: center;
}

.profile-stats {
  display: flex;
  justify-content: space-around;
  width: 100%;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-val {
  font-family: var(--font-header);
  font-size: 18px;
  font-weight: 700;
  color: var(--neon-magenta);
}

.stat-edit-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--neon-purple);
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  width: 90px;
  text-align: center;
  outline: none;
  font-family: inherit;
}

.stat-edit-input option {
  background: #1a1a2e;
  color: #fff;
}

.stat-label {
  font-size: 10px;
  color: var(--gray-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.profile-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: 2px;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px;
  width: 100%;
}

@media (max-width: 480px) {
  .roles-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px;
  }
}

.role-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 6px; /* Narrow padding for small screens */
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 0; /* Allow items to shrink */
}

.role-card.active {
  background: rgba(188, 19, 254, 0.1);
  border-color: rgba(188, 19, 254, 0.3);
  color: white;
}

.role-icon {
  color: var(--neon-purple);
}

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.bio-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
}

.bio-display {
  width: 100%;
  background: none;
  border: none;
  color: var(--soft-white);
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
  font-style: italic;
  cursor: pointer;
  font-family: var(--font-main);
}

.bio-editor {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 243, 255, 0.2);
  border-radius: 12px;
  color: white;
  padding: 12px;
  outline: none;
  font-family: var(--font-main);
  font-size: 13px;
  line-height: 1.5;
}

.bio-editor-footer {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bio-char-count {
  font-size: 11px;
  color: var(--gray-muted);
}

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

.bio-secondary-btn,
.bio-primary-btn {
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  font-family: var(--font-main);
  cursor: pointer;
}

.bio-secondary-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--soft-white);
}

.bio-primary-btn {
  background: rgba(0, 243, 255, 0.14);
  border: 1px solid rgba(0, 243, 255, 0.25);
  color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.1);
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

.setting-name {
  font-size: 14px;
  font-weight: 600;
}

.setting-desc {
  font-size: 11px;
  color: var(--gray-muted);
}

.toggle-switch {
  width: 40px;
  height: 20px;
  background: #333;
  border-radius: 10px;
  position: relative;
  transition: var(--transition-smooth);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.toggle-switch.active {
  background: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
}

.toggle-switch.active::after {
  left: calc(100% - 18px);
}

/* Admin Panel Button */
.admin-panel-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: linear-gradient(135deg, rgba(188, 19, 254, 0.08), rgba(255, 0, 255, 0.05));
  border: 1px solid rgba(188, 19, 254, 0.2);
  border-radius: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 100%;
  font-family: var(--font-main);
  text-align: left;
}

.admin-panel-btn:hover {
  background: linear-gradient(135deg, rgba(188, 19, 254, 0.15), rgba(255, 0, 255, 0.1));
  border-color: rgba(188, 19, 254, 0.4);
  transform: translateY(-1px);
}

.admin-btn-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(188, 19, 254, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-magenta);
}

.admin-btn-title {
  font-weight: 700;
  font-size: 14px;
  color: white;
}

.admin-btn-desc {
  font-size: 11px;
  color: var(--gray-muted);
  margin-top: 2px;
}

.admin-btn-arrow {
  color: var(--gray-muted);
}

.logout-btn {
  margin-top: 10px;
  padding: 15px;
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.2);
  border-radius: 12px;
  color: #ff4444;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.settings-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.3s ease;
}

.settings-modal {
  background: #11131a;
  width: 100%;
  max-width: 480px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.settings-header {
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.settings-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin: 0;
}

.close-settings {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #8b949e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.close-settings:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.settings-body {
  padding: 16px;
  max-height: 70vh;
  overflow-y: auto;
}

.settings-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.settings-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.settings-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-info {
  flex: 1;
}

.settings-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 2px;
}

.settings-desc {
  display: block;
  font-size: 13px;
  color: #8b949e;
}

/* Switch Styles */
.settings-switch {
  width: 44px;
  height: 24px;
  background: #21262d;
  border-radius: 12px;
  position: relative;
  transition: background 0.3s;
}

.settings-switch.active {
  background: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.settings-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

.settings-switch.active::after {
  transform: translateX(20px);
}

.danger-text {
  color: #ff3d71 !important;
}

.settings-chevron {
  color: #484f58;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.login-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 40px 15px;
}

.login-glow-bg {
  position: absolute;
  width: 100%;
  max-width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(188, 19, 254, 0.15), transparent 70%);
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  overflow: hidden; /* Added to clip outside parent if necessary */
}

.login-container {
  width: 100%;
  max-width: 420px;
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.login-logo-section {
  text-align: center;
  margin-bottom: 35px;
}

.login-logo-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 15px rgba(0, 243, 255, 0.4));
}

@media (min-width: 1024px) {
  .login-logo-img {
    width: 130px;
    height: 130px;
  }
}

.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.login-icon {
  color: var(--neon-cyan);
  margin-bottom: 12px;
  filter: drop-shadow(0 0 10px var(--neon-cyan));
}

.login-brand {
  font-family: var(--font-header);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
  margin-bottom: 5px;
}

.login-tagline {
  font-size: 13px;
  color: var(--gray-muted);
  margin-top: 8px;
  letter-spacing: 1px;
}

/* Card */
.login-card {
  width: 100%;
  background: rgba(15, 15, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 25px;
  backdrop-filter: blur(15px);
}

/* Tabs */
.login-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 25px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 4px;
}

.login-tab {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: var(--gray-muted);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.login-tab.active {
  background: rgba(0, 243, 255, 0.1);
  color: var(--neon-cyan);
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-field label {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--gray-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.login-field input,
.login-field select {
  width: 100%;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-family: var(--font-main);
  outline: none;
  transition: var(--transition-smooth);
}

.login-field input:focus,
.login-field select:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

.login-field select {
  -webkit-appearance: none;
  cursor: pointer;
}

.pass-wrapper {
  position: relative;
}

.eye-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-muted);
  cursor: pointer;
}

.login-error {
  padding: 10px 14px;
  background: rgba(255, 50, 50, 0.1);
  border: 1px solid rgba(255, 50, 50, 0.25);
  border-radius: 10px;
  color: #ff6b6b;
  font-size: 12px;
  text-align: center;
}

.login-submit {
  padding: 14px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  border: none;
  border-radius: 14px;
  color: white;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-header);
}

.login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 25px rgba(0, 243, 255, 0.3);
}

.login-footer-text {
  margin-top: 20px;
  font-size: 11px;
  color: var(--gray-muted);
  text-align: center;
}

/* New Auth Features Styles */

.forgot-link-area {
  display: flex;
  justify-content: flex-end;
  margin-top: -10px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--gray-muted);
  font-size: 11px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-link:hover {
  color: var(--neon-cyan);
  text-decoration: underline;
}

.forgot-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  color: white;
  width: 100%;
}

.forgot-back {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
}

.auth-status-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 10px;
}

.status-icon-ring {
  width: 80px;
  height: 80px;
  background: rgba(0, 243, 255, 0.1);
  border: 2px solid var(--neon-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: var(--neon-cyan);
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
}

.auth-status-panel h2 {
  font-family: var(--font-header);
  font-size: 24px;
  color: white;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.auth-status-panel p {
  font-size: 13px;
  color: var(--gray-muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

.btn-status-back {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.login-success {
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid rgba(0, 255, 0, 0.2);
  color: #00ff88;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.login-success.celebrate {
  border: 1px solid var(--neon-cyan);
  background: rgba(0, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
  animation: celebratePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes celebratePop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Animations */
.pulse {
  animation: iconPulse 2s infinite ease-in-out;
}

@keyframes iconPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 0px var(--neon-cyan)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 15px var(--neon-cyan)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 0px var(--neon-cyan)); }
}

/* Loader */
.loader-dots {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.loader-dots span {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: dotBounce 1.4s infinite ease-in-out both;
}

.loader-dots span:nth-child(1) { animation-delay: -0.32s; }
.loader-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Checkbox */
.terms-checkbox-wrapper {
  margin-top: 5px;
}

.checkbox-label {
  display: flex !important; /* Override block from .login-field label */
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  text-transform: none;
  font-weight: 400 !important;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--neon-cyan);
}

.checkbox-label span {
  flex: 1;
  font-size: 11px;
  color: var(--gray-muted);
  line-height: 1.4;
}
.terms-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.terms-modal {
  background: rgba(20, 20, 30, 0.95);
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.1), inset 0 0 20px rgba(0, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.terms-header {
  padding: 24px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}

.header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-icon {
  color: var(--neon-cyan, #00ffff);
  filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.5));
}

.terms-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 1px;
  font-family: 'Outfit', sans-serif;
}

.terms-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.terms-close:hover {
  background: rgba(255, 0, 255, 0.1);
  color: #ff00ff;
  transform: rotate(90deg);
}

.terms-content {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 255, 0.2) transparent;
}

.terms-content::-webkit-scrollbar {
  width: 6px;
}

.terms-content::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 255, 0.2);
  border-radius: 10px;
}

.terms-section {
  margin-bottom: 30px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--neon-cyan, #00ffff);
  margin-bottom: 12px;
}

.section-title h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.terms-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0;
}

.terms-section ul {
  margin-top: 10px;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.75);
}

.terms-section li {
  margin-bottom: 6px;
}

.terms-footer-note {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.terms-footer-note p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.terms-actions {
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(0, 255, 255, 0.1);
}

.btn-terms-accept {
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, #00ffff, #ff00ff);
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-terms-accept:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(0, 255, 255, 0.2);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Mobile responsive */
@media (max-width: 480px) {
  .terms-modal {
    max-height: 90vh;
  }
  .terms-header h2 {
    font-size: 1.2rem;
  }
}
.find-screen {
  padding: 20px;
  padding-bottom: 100px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.find-header {
  margin-bottom: 20px;
}

.find-title {
  font-family: var(--font-header);
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin: 0;
}

.find-subtitle {
  font-size: 13px;
  color: var(--gray-muted);
  margin-top: 4px;
}

/* Search */
.find-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 20px;
  color: var(--gray-muted);
  transition: var(--transition-smooth);
}

.find-search-bar:focus-within {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

.find-search-bar input {
  flex: 1;
  background: none;
  border: none;
  color: white;
  font-size: 14px;
  outline: none;
  font-family: var(--font-main);
}

/* Filters */
.find-filters {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.filter-group label {
  display: block;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--gray-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  color: var(--gray-muted);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-main);
}

.filter-pill.active {
  background: rgba(0, 243, 255, 0.1);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.filter-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.filter-group.compact {
  flex: 1;
}

.filter-group.compact select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--soft-white);
  font-size: 13px;
  font-family: var(--font-main);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.filter-group.compact select option {
  background: var(--bg-dark);
}

.online-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: var(--gray-muted);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
  font-family: var(--font-main);
}

.online-toggle.active {
  background: rgba(57, 255, 20, 0.08);
  border-color: rgba(57, 255, 20, 0.3);
  color: var(--neon-green);
}

.toggle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-muted);
  transition: var(--transition-smooth);
}

.online-toggle.active .toggle-dot {
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
}

/* Results */
.find-results-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-muted);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.find-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 100px;
}

.find-player-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.find-player-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-glow);
  transform: translateY(-1px);
}

.find-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.find-avatar-wrap img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.find-online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 12px;
  height: 12px;
  background: var(--neon-green);
  border-radius: 50%;
  border: 2px solid var(--bg-deep);
  box-shadow: 0 0 8px var(--neon-green);
}

.find-card-center {
  flex: 1;
  min-width: 0;
}

.find-ign {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 3px;
}

.find-bio {
  font-size: 12px;
  color: var(--gray-muted);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.find-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.find-tag {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
}

.find-tag.role {
  background: rgba(188, 19, 254, 0.1);
  color: var(--neon-purple);
  border: 1px solid rgba(188, 19, 254, 0.15);
}

.find-tag.region {
  background: rgba(0, 243, 255, 0.08);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 243, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 3px;
}

.find-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.find-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--neon-magenta);
  font-weight: 700;
}

.find-chat-btn {
  padding: 6px 16px;
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid rgba(0, 243, 255, 0.3);
  border-radius: 8px;
  color: var(--neon-cyan);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-main);
}

.find-chat-btn:hover {
  background: var(--neon-cyan);
  color: var(--bg-deep);
}

.find-no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-muted);
  font-size: 14px;
}
.lobby-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .lobby-screen {
    height: 100vh; /* no bottom nav on desktop */
  }
}

.lobby-announcement-row {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 15px 0;
  padding: 0 20px;
}

.lobby-info-card {
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.08), rgba(0, 243, 255, 0.03));
  border: 1px solid rgba(0, 243, 255, 0.2);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 10, 20, 0.4);
}

.dismiss-info-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}

.dismiss-info-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: rotate(90deg);
}

.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(0, 243, 255, 0.15);
  border: 1px solid rgba(0, 243, 255, 0.3);
  border-radius: 50px;
  color: var(--neon-cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.info-content h3 {
  font-family: var(--font-header);
  font-size: 18px;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: 0.5px;
}

.info-content p {
  font-size: 13px;
  color: var(--gray-muted);
  line-height: 1.6;
  margin: 0 0 15px;
}

.info-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 165, 0, 0.05);
  border: 1px solid rgba(255, 165, 0, 0.15);
  border-radius: 10px;
  color: #ffaa33;
}

.info-notice span {
  font-size: 11px;
  font-weight: 500;
}

.info-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(0, 243, 255, 0.1), transparent 70%);
  pointer-events: none;
}

.lobby-announcement-bubble {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.15), rgba(75, 0, 130, 0.25));
  border: 1px solid rgba(138, 43, 226, 0.4);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: 16px;
  max-width: 90%;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.1);
  animation: announcementPulse 3s infinite ease-in-out;
}

@keyframes announcementPulse {
  0% { box-shadow: 0 0 10px rgba(138, 43, 226, 0.1); border-color: rgba(138, 43, 226, 0.4); }
  50% { box-shadow: 0 0 25px rgba(138, 43, 226, 0.3); border-color: rgba(138, 43, 226, 0.8); }
  100% { box-shadow: 0 0 10px rgba(138, 43, 226, 0.1); border-color: rgba(138, 43, 226, 0.4); }
}

.announce-icon {
  color: #bf40bf;
  filter: drop-shadow(0 0 5px #bf40bf);
}

.announce-content {
  flex: 1;
}

.announce-label {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #bf40bf;
  margin-bottom: 2px;
  font-family: var(--font-main);
}

.lobby-announcement-bubble p {
  margin: 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
}

.lobby-announcement-bubble .message-time {
  font-size: 9px;
  opacity: 0.5;
  align-self: flex-end;
  min-width: fit-content;
}

.scroll-anchor {
  height: 1px;
}

/* Header */
.lobby-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lobby-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lobby-icon {
  color: var(--neon-cyan);
  filter: drop-shadow(0 0 8px var(--neon-cyan));
}

.lobby-heading {
  font-family: var(--font-header);
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin: 0;
}

.lobby-desc {
  font-size: 11px;
  color: var(--gray-muted);
  margin: 2px 0 0;
}

.lobby-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lobby-time-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 11px;
  color: var(--gray-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

.lobby-time-pill span {
  font-weight: 500;
}

.lobby-online-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: 20px;
  font-size: 12px;
  color: var(--neon-green);
}

.lobby-pulse {
  width: 8px;
  height: 8px;
  background: var(--neon-green);
  border-radius: 50%;
  animation: lobbyPulse 2s infinite;
  box-shadow: 0 0 8px var(--neon-green);
}

@keyframes lobbyPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Body */
.lobby-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Messages Area */
.lobby-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lobby-channel-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--gray-muted);
  padding: 6px 0 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 10px;
}

.lobby-message {
  display: flex;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 0.15s ease;
}

.lobby-message:hover {
  background: rgba(255, 255, 255, 0.02);
}

.lobby-msg-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.me .lobby-msg-body {
  align-items: flex-end;
}

.lobby-msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  padding: 0 10px;
}

.lobby-msg-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lobby-msg-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--neon-cyan);
}

.lobby-admin-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #071114;
  background: linear-gradient(135deg, #00f3ff, #39ff14);
  box-shadow: 0 0 14px rgba(0, 243, 255, 0.35);
}

.lobby-report-btn {
  background: none;
  border: none;
  color: var(--gray-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7; /* Increased visibility */
  transition: all 0.2s;
}

.lobby-report-btn:hover {
  opacity: 1;
  color: #ff4d4d;
  background: rgba(255, 77, 77, 0.15);
  box-shadow: 0 0 10px rgba(255, 77, 77, 0.2);
}

/* Report Modal Styles */
.lobby-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.lobby-modal {
  background: linear-gradient(135deg, #15002a, #0a0a1a);
  border: 1px solid rgba(255, 77, 77, 0.3);
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  padding: 30px;
  position: relative;
  box-shadow: 0 10px 40px rgba(255, 77, 77, 0.15);
}

.lobby-modal h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #ff4d4d;
  font-family: var(--font-header);
}

.lobby-modal p {
  font-size: 13px;
  color: var(--gray-muted);
  margin-bottom: 20px;
}

.report-input-group {
  margin-bottom: 25px;
}

.report-input-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #ff4d4d;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.report-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  color: white;
  font-family: var(--font-main);
  font-size: 14px;
  resize: none;
  min-height: 100px;
  outline: none;
  transition: border-color 0.2s;
}

.report-textarea:focus {
  border-color: #ff4d4d;
}

.report-modal-actions {
  display: flex;
  gap: 12px;
}

.report-cancel-btn, .report-submit-btn {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.report-cancel-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--soft-white);
}

.report-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.report-submit-btn {
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 65, 108, 0.3);
}

.report-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 65, 108, 0.4);
}

.report-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Toast Notifications */
.lobby-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  animation: toast-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.lobby-toast.success .toast-content {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: #00ff88;
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.15);
}

.lobby-toast.error .toast-content {
  background: rgba(255, 77, 77, 0.1);
  border: 1px solid rgba(255, 77, 77, 0.3);
  color: #ff4d4d;
  box-shadow: 0 4px 20px rgba(255, 77, 77, 0.15);
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}


.me .lobby-msg-name {
  display: none; /* Hide my own name in lobby to save space, usually standard */
}

.message-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--soft-white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.message-bubble-me {
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.15), rgba(0, 243, 255, 0.05));
  border: 1px solid rgba(0, 243, 255, 0.3);
  border-top-right-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 243, 255, 0.05);
}

.message-bubble-other {
  background: rgba(15, 15, 25, 0.8);
  border: 1px solid rgba(188, 19, 254, 0.15);
  border-top-left-radius: 4px;
}

.message-bubble p {
  margin: 0;
  word-break: break-word;
}

.message-time {
  font-size: 9px;
  color: var(--gray-muted);
  align-self: flex-end;
  margin-top: 2px;
  opacity: 0.7;
}

.me .message-time {
  color: rgba(0, 243, 255, 0.6);
}

/* Rate Limit */
.lobby-rate-error {
  padding: 8px 20px;
  background: rgba(255, 165, 0, 0.08);
  border-top: 1px solid rgba(255, 165, 0, 0.15);
  color: #ffaa33;
  font-size: 11px;
  text-align: center;
}

/* Input Bar */
.lobby-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 18, 0.6);
}

.lobby-emoji-btn {
  background: none;
}

/* Lobby Input Styling (Parallel to Chat) */
.lobby-input-area {
  padding: 15px;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 100;
}

.lobby-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 25px;
  padding: 5px 15px;
}

.lobby-input-wrapper:focus-within {
  border-color: var(--neon-cyan);
  background: rgba(255, 255, 255, 0.06);
}

.lobby-input-wrapper input {
  flex: 1;
  background: none;
  border: none;
  color: white;
  padding: 10px 0;
  outline: none;
  font-family: var(--font-main);
  font-size: 14px;
}

.lobby-emoji-btn, .lobby-send-btn {
  background: none;
  border: none;
  color: var(--gray-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.lobby-send-btn {
  color: var(--neon-cyan);
}

.lobby-send-btn:disabled {
  opacity: 0.3;
}

/* Skeleton Loaders */
.lobby-message-skeleton {
  width: 100%;
  display: flex;
  margin-bottom: 12px;
  animation: cardFadeIn 0.3s ease;
}

.skeleton-bubble {
  height: 45px;
  width: 60%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.03) 25%, 
    rgba(255, 255, 255, 0.08) 50%, 
    rgba(255, 255, 255, 0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}
.admin-screen {
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
}

/* Header */
.admin-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-back {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--neon-cyan);
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font-main);
}

.admin-title-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-shield {
  color: var(--neon-magenta);
  filter: drop-shadow(0 0 6px var(--neon-magenta));
}

.admin-title-area h1 {
  font-family: var(--font-header);
  font-size: 18px;
  margin: 0;
  color: white;
}

/* Tabs */
.admin-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  overflow-x: auto;
  scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar { display: none; }

.admin-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--gray-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
  font-family: var(--font-main);
}

.admin-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.admin-tab.active {
  background: rgba(188, 19, 254, 0.12);
  border-color: rgba(188, 19, 254, 0.3);
  color: var(--neon-magenta);
}

.tab-badge {
  background: #ff5555;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Content */
.admin-content {
  flex: 1;
  padding: 20px;
  padding-bottom: 40px;
  overflow-y: auto;
}

/* ========= DASHBOARD ========= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 16px;
}

.stat-card.cyan { border-left: 3px solid var(--neon-cyan); }
.stat-card.green { border-left: 3px solid var(--neon-green); }
.stat-card.orange { border-left: 3px solid #ffaa33; }
.stat-card.purple { border-left: 3px solid var(--neon-purple); }

.stat-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.stat-card.cyan .stat-card-top { color: var(--neon-cyan); }
.stat-card.green .stat-card-top { color: var(--neon-green); }
.stat-card.orange .stat-card-top { color: #ffaa33; }
.stat-card.purple .stat-card-top { color: var(--neon-purple); }

.stat-change {
  font-size: 11px;
  font-weight: 700;
}

.stat-card-value {
  font-family: var(--font-header);
  font-size: 26px;
  font-weight: 700;
  color: white;
  margin-bottom: 2px;
}

.stat-card-label {
  font-size: 11px;
  color: var(--gray-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card-change {
  font-size: 10px;
  color: var(--gray-muted);
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Admin Header Badge */
.admin-header-badge {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: 20px;
  font-size: 10px;
  color: var(--neon-green);
  font-weight: 700;
}

.admin-header-badge svg {
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Server Health */
.health-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.health-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.health-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--soft-white);
}

.health-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.health-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
  box-shadow: 0 0 8px currentColor;
}

.health-value {
  font-size: 10px;
  color: var(--gray-muted);
  text-align: right;
}

.empty-reports-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  text-align: center;
  margin-top: 20px;
}

.empty-reports-state .empty-icon {
  color: var(--gray-muted);
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-reports-state p {
  font-size: 16px;
  color: white;
  margin: 0 0 8px;
  font-weight: 600;
}

.empty-reports-state span {
  font-size: 13px;
  color: var(--gray-muted);
}

/* Announcements */
.announce-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.announce-form textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: white;
  font-size: 13px;
  font-family: var(--font-main);
  outline: none;
  resize: vertical;
}

.announce-form textarea:focus {
  border-color: var(--neon-cyan);
}

.announce-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.char-count {
  font-size: 10px;
  color: var(--gray-muted);
}

.announce-send {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-main);
  transition: var(--transition-smooth);
}

.announce-send:hover {
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
  transform: translateY(-1px);
}

.announce-success {
  padding: 8px;
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: 8px;
  color: var(--neon-green);
  font-size: 12px;
  text-align: center;
}

/* Audit Log */
.audit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.audit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.audit-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.audit-icon.ban { background: rgba(255, 50, 50, 0.1); color: #ff5555; }
.audit-icon.resolve { background: rgba(0, 243, 255, 0.1); color: var(--neon-cyan); }
.audit-icon.promote { background: rgba(188, 19, 254, 0.1); color: var(--neon-purple); }
.audit-icon.clear { background: rgba(255, 165, 0, 0.1); color: #ffaa33; }
.audit-icon.warn { background: rgba(255, 165, 0, 0.1); color: #ffaa33; }
.audit-icon.unban { background: rgba(57, 255, 20, 0.1); color: var(--neon-green); }

.audit-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.audit-action { font-size: 12px; font-weight: 600; }
.audit-target { font-size: 11px; color: var(--gray-muted); }
.audit-time { font-size: 10px; color: var(--gray-muted); flex-shrink: 0; }

/* Users Search */
.users-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 12px;
  color: var(--gray-muted);
}

.users-search-bar:focus-within {
  border-color: var(--neon-cyan);
}

.users-search-bar input {
  flex: 1;
  background: none;
  border: none;
  color: white;
  outline: none;
  font-size: 13px;
  font-family: var(--font-main);
}

.warn-badge {
  font-size: 9px;
  background: rgba(255, 165, 0, 0.15);
  color: #ffaa33;
  padding: 1px 6px;
  border-radius: 4px;
}

.load-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--neon-cyan);
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font-main);
  transition: var(--transition-smooth);
  width: 100%;
}

.load-more-btn:hover {
  background: rgba(0, 243, 255, 0.05);
  border-color: rgba(0, 243, 255, 0.3);
}

/* Reports Summary */
.reports-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 15px;
}

.report-sum-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.report-sum-item.high { border-bottom: 2px solid #ff5555; }
.report-sum-item.medium { border-bottom: 2px solid #ffaa33; }
.report-sum-item.low { border-bottom: 2px solid var(--gray-muted); }
.report-sum-item.resolved { border-bottom: 2px solid var(--neon-green); }

.rsi-val { font-family: var(--font-header); font-size: 20px; font-weight: 700; }
.report-sum-item.high .rsi-val { color: #ff5555; }
.report-sum-item.medium .rsi-val { color: #ffaa33; }
.report-sum-item.low .rsi-val { color: var(--gray-muted); }
.report-sum-item.resolved .rsi-val { color: var(--neon-green); }

.rsi-label { font-size: 10px; color: var(--gray-muted); text-transform: uppercase; }

/* Capacity */
.capacity-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.capacity-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gray-muted);
}

.capacity-val { font-weight: 700; color: var(--soft-white); }
.capacity-val.green { color: var(--neon-green); }
.capacity-val.orange { color: #ffaa33; }

.capacity-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  position: relative;
  margin-top: 5px;
}

.capacity-fill {
  height: 100%;
  background: var(--neon-green);
  border-radius: 4px;
  box-shadow: 0 0 10px var(--neon-green);
}

.capacity-marker {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 16px;
  background: #ffaa33;
  box-shadow: 0 0 6px #ffaa33;
}

.capacity-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--gray-muted);
  margin-top: 4px;
}

/* Section Card */
.admin-section-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 15px;
}

.admin-section-card h3 {
  font-family: var(--font-header);
  font-size: 14px;
  margin: 0 0 15px;
  color: white;
}

/* Activity List */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--soft-white);
}

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.activity-dot.green { background: var(--neon-green); box-shadow: 0 0 6px var(--neon-green); }
.activity-dot.orange { background: #ffaa33; box-shadow: 0 0 6px #ffaa33; }
.activity-dot.red { background: #ff5555; box-shadow: 0 0 6px #ff5555; }
.activity-dot.cyan { background: var(--neon-cyan); box-shadow: 0 0 6px var(--neon-cyan); }
.activity-dot.purple { background: var(--neon-purple); box-shadow: 0 0 6px var(--neon-purple); }

.activity-item span:first-of-type { flex: 1; }
.activity-time { font-size: 10px; color: var(--gray-muted); flex-shrink: 0; }

/* ========= USERS ========= */
.users-filter-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 7px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gray-muted);
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font-main);
  transition: var(--transition-smooth);
}

.filter-chip.active {
  background: rgba(0, 243, 255, 0.1);
  border-color: rgba(0, 243, 255, 0.3);
  color: var(--neon-cyan);
}

.user-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--gray-muted);
}

.users-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.user-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.user-row-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.user-row-info { flex: 1; }

.user-row-name {
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mod-badge {
  font-size: 9px;
  font-weight: 700;
  background: rgba(188, 19, 254, 0.15);
  color: var(--neon-purple);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.user-row-meta {
  font-size: 11px;
  color: var(--gray-muted);
  margin-top: 2px;
}

.user-status-pill {
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

.user-status-pill.active {
  background: rgba(57, 255, 20, 0.1);
  color: var(--neon-green);
  border: 1px solid rgba(57, 255, 20, 0.2);
}

.user-status-pill.banned {
  background: rgba(255, 50, 50, 0.1);
  color: #ff5555;
  border: 1px solid rgba(255, 50, 50, 0.2);
}

/* ========= REPORTS ========= */
.admin-reports {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.report-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.report-card:hover {
  background: rgba(255, 255, 255, 0.05);
}

.report-card.high { border-left: 3px solid #ff5555; }
.report-card.medium { border-left: 3px solid #ffaa33; }
.report-card.low { border-left: 3px solid var(--gray-muted); }

.report-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.report-severity {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.report-card.high .report-severity { color: #ff5555; }
.report-card.medium .report-severity { color: #ffaa33; }
.report-card.low .report-severity { color: var(--gray-muted); }

.report-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 600;
  text-transform: capitalize;
}

.report-status.pending {
  background: rgba(255, 165, 0, 0.1);
  color: #ffaa33;
}

.report-status.resolved {
  background: rgba(57, 255, 20, 0.1);
  color: var(--neon-green);
}

.report-reason {
  font-size: 13px;
  color: var(--soft-white);
  font-style: italic;
  margin: 0 0 10px;
  line-height: 1.4;
}

.report-parties {
  display: flex;
  gap: 15px;
  font-size: 11px;
  color: var(--gray-muted);
}

.report-date {
  font-size: 10px;
  color: var(--gray-muted);
  margin-top: 10px;
}

/* ========= MODERATION ========= */
.mod-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mod-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: var(--soft-white);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-main);
}

.mod-action-btn:hover {
  background: rgba(0, 243, 255, 0.06);
  border-color: rgba(0, 243, 255, 0.2);
  color: var(--neon-cyan);
}

.mod-rules {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mod-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mod-rule:last-child { border-bottom: none; }

.mod-rule-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
}

.mod-rule-desc {
  font-size: 11px;
  color: var(--gray-muted);
}

/* Toggle (reuse) */
.admin-screen .toggle-switch {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  cursor: pointer;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.admin-screen .toggle-switch::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  top: 3px;
  left: 3px;
  transition: var(--transition-smooth);
}

.admin-screen .toggle-switch.active {
  background: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.3);
}

.admin-screen .toggle-switch.active::after {
  left: 23px;
}

.toggle-load-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: toggleSpin 0.6s linear infinite;
}

@keyframes toggleSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ========= MODALS ========= */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: adminFade 0.15s ease;
}

@keyframes adminFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.admin-modal {
  background: rgba(12, 12, 20, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 25px;
  max-width: 400px;
  width: 100%;
  position: relative;
  animation: adminSlide 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes adminSlide {
  from { opacity: 0; transform: translateY(15px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.admin-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--gray-muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-user-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.modal-user-avatar-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.modal-user-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-user-avatar-placeholder {
  font-size: 40px;
  opacity: 0.5;
}

.user-status-pill.online {
  background: rgba(57, 255, 20, 0.1);
  color: var(--neon-green);
  border: 1px solid rgba(57, 255, 20, 0.3);
}

.user-status-pill.offline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--gray-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-user-header h3 {
  font-family: var(--font-header);
  font-size: 18px;
  margin: 0;
}

.modal-user-details, .modal-report-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
}

.detail-row span:first-child { color: var(--gray-muted); }
.detail-row span:last-child { font-weight: 600; }

.capitalize { text-transform: capitalize; }
.text-orange { color: #ffaa33; }
.text-red { color: #ff5555; }

.modal-report-header {
  margin-bottom: 20px;
  text-align: center;
}

.report-severity-large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.report-severity-large.high { background: rgba(255, 50, 50, 0.1); color: #ff5555; }
.report-severity-large.medium { background: rgba(255, 165, 0, 0.1); color: #ffaa33; }
.report-severity-large.low { background: rgba(255, 255, 255, 0.06); color: var(--gray-muted); }

.modal-report-reason {
  font-style: italic;
  color: var(--soft-white);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 15px;
  text-align: center;
}

.modal-user-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid;
  font-family: var(--font-main);
  transition: var(--transition-smooth);
  min-width: 100px;
}

.modal-btn.warn {
  background: rgba(255, 165, 0, 0.1);
  border-color: rgba(255, 165, 0, 0.3);
  color: #ffaa33;
}

.modal-btn.ban {
  background: rgba(255, 50, 50, 0.1);
  border-color: rgba(255, 50, 50, 0.3);
  color: #ff5555;
}

.modal-btn.unban {
  background: rgba(57, 255, 20, 0.1);
  border-color: rgba(57, 255, 20, 0.3);
  color: var(--neon-green);
}

.modal-btn.promote {
  background: rgba(188, 19, 254, 0.1);
  border-color: rgba(188, 19, 254, 0.3);
  color: var(--neon-purple);
}

.modal-btn.resolve {
  background: rgba(0, 243, 255, 0.1);
  border-color: rgba(0, 243, 255, 0.3);
  color: var(--neon-cyan);
}

.modal-btn:hover { transform: translateY(-1px); }
.app-viewport {
  width: 100vw;
  height: 100dvh;
  display: flex;
  flex-direction: column; /* Ensure vertical stack on all views */
  overflow: hidden;
  position: relative;
  background-color: var(--bg-deep);
}

.dashboard-container {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 100%; /* Explicitly lock to 100% */
  grid-template-rows: 1fr;
  position: relative;
  overflow: hidden; /* Prevent horizontal shifts */
}

/* Sidebar Styling (Desktop Only) */
.sidebar-nav {
  display: none; /* Hide on mobile */
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(188, 19, 254, 0.2);
  flex-direction: column;
  padding: 30px;
  z-index: 100;
}

.sidebar-header {
  margin-bottom: 50px;
}

.sidebar-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.4));
}

.app-logo-large {
  font-family: var(--font-header);
  font-size: 32px;
  font-weight: 700;
  color: var(--neon-cyan);
  text-shadow: 0 0 15px var(--neon-cyan);
  letter-spacing: 4px;
}

.terminal-tag {
  font-size: 10px;
  color: var(--neon-magenta);
  margin-top: 5px;
  letter-spacing: 2px;
  opacity: 0.8;
}

.sidebar-nav-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.sidebar-footer {
  font-size: 10px;
  color: var(--gray-muted);
  text-align: center;
}

/* Main Content Area */
.main-content {
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-top: calc(60px + env(safe-area-inset-top)); /* Handle notch properly */
}

@media (min-width: 1024px) {
  .main-content {
    padding-top: 0;
  }
}

.screen-wrapper {
  flex: 1;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  position: relative;
  overflow-y: auto;
  padding-bottom: 80px; /* Space for mobile nav */
}

.screen-wrapper.viewport-fixed {
  overflow: hidden;
  height: calc(100dvh - 60px); /* Use dvh for better mobile handle */
  padding-bottom: 75px; /* Offset for mobile bottom nav */
  transition: padding-bottom 0.2s ease;
}

.screen-wrapper.viewport-fixed.no-footer {
  padding-bottom: env(safe-area-inset-bottom);
  height: calc(100dvh - 60px);
}

@media (max-width: 1024px) {
  .screen-wrapper {
    height: calc(100dvh - 60px - env(safe-area-inset-top));
  }
}

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

/* Right Stats Panel (Desktop Only) */
.right-stats-panel {
  display: none; /* Hide on mobile */
  background: rgba(10, 10, 15, 0.4);
  backdrop-filter: blur(10px);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px;
  width: 300px;
}

.stats-header {
  font-family: var(--font-header);
  font-size: 14px;
  color: var(--soft-white);
  letter-spacing: 2px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(0, 243, 255, 0.2);
  padding-bottom: 10px;
}

.live-stat-item {
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.live-stat-item .label {
  font-size: 10px;
  color: var(--gray-muted);
}

.live-stat-item .value {
  font-family: var(--font-header);
  font-size: 24px;
  font-weight: 700;
}

.value.cyan { color: var(--neon-cyan); text-shadow: 0 0 10px var(--neon-cyan); }
.value.green { color: var(--neon-green); text-shadow: 0 0 10px var(--neon-green); }

.trending-regions h3 {
  font-size: 12px;
  color: var(--gray-muted);
  margin-bottom: 15px;
}

.region-pill {
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 11px;
  margin-bottom: 8px;
  color: var(--soft-white);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Nav Overlay */
.mobile-only-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* Responsive Breakpoints */
@media (min-width: 1024px) {
  .dashboard-container {
    grid-template-columns: 280px 1fr 300px;
  }
  
  .sidebar-nav {
    display: flex;
  }
  
  .right-stats-panel {
    display: block;
  }
  
  .mobile-only-nav {
    display: none;
  }
  
  .screen-wrapper {
    max-width: 800px; /* Limit content width on super wide screens */
  }
}

/* Sidebar Specific Nav Items */
.sidebar-nav-items .nav-item {
  flex: none;
  width: 100%;
  flex-direction: row;
  justify-content: flex-start;
  gap: 15px;
  padding: 15px;
  border-radius: 12px;
}

.sidebar-nav-items .nav-item.active {
  background: rgba(0, 243, 255, 0.1);
}

.sidebar-nav-items .nav-label {
  font-size: 14px;
}

.nav-glow-side {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  width: 3px;
  background: var(--neon-cyan);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px var(--neon-cyan);
}

/* Global Announcement Banner */
.global-announcement-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  padding: 20px;
  pointer-events: none;
  display: flex;
  justify-content: center;
  animation: slideAnnounceDown 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.announcement-banner {
  pointer-events: all;
  background: rgba(15, 15, 25, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--neon-magenta);
  box-shadow: 0 10px 40px rgba(188, 19, 254, 0.3), inset 0 0 20px rgba(188, 19, 254, 0.1);
  border-radius: 12px;
  padding: 15px 50px 15px 25px;
  min-width: 320px;
  max-width: 600px;
  position: relative;
  overflow: hidden;
}

.announcement-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--neon-magenta);
  letter-spacing: 2px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.announcement-banner p {
  color: var(--soft-white);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.close-announcement {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-muted);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
}

.close-announcement:hover {
  color: var(--soft-white);
}

.announcement-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--neon-magenta);
  width: 100%;
  animation: announceShrink 10s linear forwards;
}

@keyframes slideAnnounceDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes announceShrink {
  from { width: 100%; }
  to { width: 0%; }
}

/* Global Mobile Utilities */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}
