/* Previous CSS remains, adding staff features */

/* Staff Badges */
.role-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: bold;
  margin-left: 8px;
  text-transform: uppercase;
  animation: shine 2s infinite;
}

.role-badge.staff {
  background: linear-gradient(45deg, #ff4444, #ff8888);
  color: white;
  border: 1px solid #ff0000;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.role-badge.admin {
  background: linear-gradient(45deg, #ffaa00, #ffcc44);
  color: black;
  border: 1px solid #ffaa00;
  box-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
}

.role-badge.developer {
  background: linear-gradient(45deg, #7cf49a, #4d8bff);
  color: var(--dark);
  border: 1px solid var(--primary);
  box-shadow: 0 0 10px rgba(124, 244, 154, 0.3);
}

@keyframes shine {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Staff Modal */
.staff-modal-content {
  max-width: 800px;
  width: 95%;
  max-height: 90vh;
}

.staff-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(124, 244, 154, 0.2);
}

.staff-tab {
  flex: 1;
  padding: 15px 20px;
  background: none;
  border: none;
  color: var(--light);
  cursor: pointer;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
}

.staff-tab:hover {
  background: rgba(124, 244, 154, 0.1);
}

.staff-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(124, 244, 154, 0.05);
}

.staff-content {
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
}

.staff-tab-content {
  display: none;
}

.staff-tab-content.active {
  display: block;
}

.staff-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(124, 244, 154, 0.1);
}

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

.staff-section h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.staff-form textarea {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--light);
  font-size: 1rem;
  resize: vertical;
  min-height: 80px;
}

.staff-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.staff-form select {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--light);
  font-size: 1rem;
}

.staff-form select:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-warning {
  background: #ffaa00;
  color: var(--dark);
}

.btn-warning:hover {
  background: #e69900;
}

.btn-success {
  background: #00cc66;
  color: var(--dark);
}

.btn-success:hover {
  background: #00b359;
}

.btn-info {
  background: #4d8bff;
  color: var(--dark);
}

.btn-info:hover {
  background: #3d7be6;
}

/* User List */
.user-list-container {
  max-height: 300px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 15px;
}

.user-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: bold;
  color: var(--primary);
}

.user-roles {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.loading {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

/* Context Menu */
.context-menu {
  position: fixed;
  background: var(--dark);
  border: 1px solid rgba(124, 244, 154, 0.3);
  border-radius: 8px;
  padding: 5px 0;
  min-width: 150px;
  z-index: 1002;
  display: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.context-menu-item {
  padding: 8px 15px;
  cursor: pointer;
  color: var(--light);
  transition: background 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.context-menu-item:hover {
  background: rgba(124, 244, 154, 0.1);
}

.context-menu-item i {
  width: 16px;
  text-align: center;
}

/* Edit Message Modal */
.edit-message-content {
  padding: 20px;
}

.edit-message-content textarea {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--light);
  font-size: 1rem;
  resize: vertical;
  min-height: 100px;
  margin-bottom: 15px;
}

.edit-message-content textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.edit-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Message formatting fixes */
.message-text.big-text {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--primary);
  display: block;
  margin: 5px 0;
}

.message-text .bold-text {
  font-weight: bold;
  color: var(--light);
}

.message-text .italic-text {
  font-style: italic;
  color: var(--light);
}

/* Rest of the CSS remains the same as before */
:root {
  --primary: #7cf49a;
  --secondary: #4d8bff;
  --dark: #0a0a1a;
  --darker: #050510;
  --light: #e0e0ff;
  --accent: #ff6bcd;
  --danger: #ff3a3a;
  --success: #7cf49a;
  --warning: #ffcc00;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, var(--darker), var(--dark));
  color: var(--light);
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Animated Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(124, 244, 154, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(77, 139, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255, 107, 205, 0.1) 0%, transparent 50%);
  animation: pulse 15s ease-in-out infinite;
}

.grid-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(77, 139, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 139, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

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

/* Header */
.header {
  background: rgba(10, 10, 26, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(124, 244, 154, 0.2);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

.logo i {
  font-size: 2rem;
}

/* Auth Section */
.auth-buttons {
  display: flex;
  gap: 10px;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 20px;
  transition: background 0.3s;
}

.user-menu:hover {
  background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary);
}

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

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--dark);
  border: 1px solid rgba(124, 244, 154, 0.3);
  border-radius: 8px;
  padding: 10px 0;
  min-width: 150px;
  display: none;
  z-index: 101;
}

.user-menu:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
  color: var(--light);
  text-decoration: none;
  transition: background 0.3s;
}

.dropdown-menu a:hover {
  background: rgba(124, 244, 154, 0.1);
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

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

.btn-primary:hover {
  background: #6ae08a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(124, 244, 154, 0.3);
}

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

.btn-outline:hover {
  background: rgba(124, 244, 154, 0.1);
  transform: translateY(-2px);
}

.btn-large {
  padding: 15px 30px;
  font-size: 1.1rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Hero Section */
.hero {
  padding: 100px 0;
  position: relative;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-title {
  margin-bottom: 30px;
}

.title-main {
  display: block;
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.title-sub {
  display: block;
  font-size: 1.5rem;
  color: var(--light);
  opacity: 0.9;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 40px;
  line-height: 1.6;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-robot {
  font-size: 15rem;
  color: var(--primary);
  animation: float 6s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(124, 244, 154, 0.5);
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* Main Content */
.main-content {
  padding: 50px 0;
}

.content-section {
  margin-bottom: 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-divider {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin: 0 auto;
  border-radius: 2px;
}

/* Game Description */
.game-description {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.game-description p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 25px;
  opacity: 0.9;
}

.highlight {
  color: var(--primary);
  font-weight: bold;
}

.call-to-action {
  font-size: 1.5rem !important;
  font-weight: bold;
  color: var(--primary) !important;
  margin-top: 30px !important;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.video-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(124, 244, 154, 0.1);
}

.video-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.video-thumbnail {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.1);
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.video-card:hover .play-overlay {
  opacity: 1;
}

.play-overlay i {
  font-size: 3rem;
  color: white;
}

.video-info {
  padding: 20px;
}

.video-info h3 {
  margin-bottom: 10px;
  color: var(--primary);
}

/* Art Gallery */
.art-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.art-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 300px;
  transition: transform 0.3s;
}

.art-item:hover {
  transform: scale(1.05);
}

.art-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 20px;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.art-item:hover .art-overlay {
  transform: translateY(0);
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 25px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  text-decoration: none;
  color: var(--light);
  transition: all 0.3s;
  border: 1px solid transparent;
}

.social-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-card.discord {
  border-color: #5865F2;
}

.social-card.discord:hover {
  background: rgba(88, 101, 242, 0.1);
}

.social-card.tiktok {
  border-color: #000000;
}

.social-card.tiktok:hover {
  background: rgba(0, 0, 0, 0.1);
}

.social-card.youtube {
  border-color: #FF0000;
}

.social-card.youtube:hover {
  background: rgba(255, 0, 0, 0.1);
}

.social-card.twitter {
  border-color: #1DA1F2;
}

.social-card.twitter:hover {
  background: rgba(29, 161, 242, 0.1);
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--dark);
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  border: 1px solid rgba(124, 244, 154, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.chat-modal-content {
  max-width: 1000px;
  width: 95%;
  height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(124, 244, 154, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  color: var(--primary);
  font-size: 1.5rem;
}

.close-modal {
  background: none;
  border: none;
  color: var(--light);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover {
  color: var(--primary);
}

/* Auth Forms */
.auth-form {
  padding: 30px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--light);
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--light);
  font-size: 1rem;
  transition: border 0.3s;
}

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

.form-group small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.auth-footer {
  padding: 0 30px 20px;
  text-align: center;
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Profile Modal */
.profile-content {
  padding: 30px;
}

.profile-avatar {
  text-align: center;
  margin-bottom: 30px;
}

.profile-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  margin-bottom: 15px;
}

.avatar-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.profile-form {
  margin-top: 20px;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* Chat Modal */
.chat-container {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.chat-sidebar {
  width: 200px;
  background: rgba(0, 0, 0, 0.3);
  border-right: 1px solid rgba(124, 244, 154, 0.2);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.chat-rooms h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.room-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
  color: var(--light);
}

.room-item:hover {
  background: rgba(124, 244, 154, 0.1);
}

.room-item.active {
  background: rgba(124, 244, 154, 0.2);
  color: var(--primary);
  font-weight: bold;
}

.room-item i {
  width: 16px;
  text-align: center;
}

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.3s;
  position: relative;
}

.message:hover {
  background: rgba(255, 255, 255, 0.08);
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}

.message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-content {
  flex: 1;
  min-width: 0;
}

.message-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.message-sender {
  font-weight: bold;
  color: var(--primary);
}

.message-time {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.message-text {
  word-wrap: break-word;
  line-height: 1.4;
}

.message-image {
  max-width: 300px;
  max-height: 200px;
  border-radius: 8px;
  margin-top: 8px;
  border: 1px solid rgba(124, 244, 154, 0.3);
}

.message-system {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background: rgba(124, 244, 154, 0.1);
  border-radius: 8px;
  color: var(--primary);
  font-style: italic;
  margin: 10px 0;
}

.message-system i {
  font-size: 1.2rem;
}

.chat-input-container {
  padding: 20px;
  border-top: 1px solid rgba(124, 244, 154, 0.2);
  background: rgba(0, 0, 0, 0.3);
}

.chat-formatting-help {
  margin-bottom: 10px;
  text-align: center;
}

.chat-formatting-help small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.chat-input-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}

#chat-input {
  flex: 1;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  color: var(--light);
  font-size: 1rem;
  transition: border 0.3s;
}

#chat-input:focus {
  outline: none;
  border-color: var(--primary);
}

#image-upload-btn, #send-message-btn {
  padding: 12px;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Toast Notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  background: var(--dark);
  border-left: 4px solid var(--primary);
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  transform: translateX(150%);
  transition: transform 0.3s;
  max-width: 300px;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-left-color: var(--success);
}

.toast.error {
  border-left-color: var(--danger);
}

.toast.warning {
  border-left-color: var(--warning);
}

/* Responsive */
@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .title-main {
    font-size: 2.5rem;
  }
  
  .title-sub {
    font-size: 1.2rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .floating-robot {
    font-size: 10rem;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
  }
  
  .social-links {
    flex-direction: column;
    align-items: center;
  }

  .chat-modal-content {
    width: 98%;
    height: 95vh;
  }

  .chat-sidebar {
    width: 150px;
  }

  .staff-modal-content {
    width: 98%;
  }

  .staff-tabs {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .chat-container {
    flex-direction: column;
  }
  
  .chat-sidebar {
    width: 100%;
    max-height: 100px;
    overflow-y: auto;
    flex-direction: row;
  }
  
  .room-list {
    flex-direction: row;
    gap: 5px;
  }
  
  .room-item {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  .room-item span {
    display: none;
  }
}